~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-runtime/configure

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="intl/dcigettext.c"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subdirs_all="$ac_subdirs_all libasprintf"
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot docdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE YACC CPP EGREP HAVE_GCJ_IN_PATH HAVE_JAVAC_IN_PATH HAVE_JIKES_IN_PATH JAVAC CLASSPATH CLASSPATH_SEPARATOR HAVE_GCJ_C HAVE_JAVAC HAVE_JIKES JAR BUILDJAVA CSHARP_CHOICE HAVE_CSCC_IN_PATH HAVE_MCS_IN_PATH HAVE_CSC_IN_PATH HAVE_CSCC HAVE_MCS HAVE_CSC BUILDCSHARP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELOCATABLE LIBOBJS SET_RELOCATABLE RELOCATABLE_VIA_LD_TRUE RELOCATABLE_VIA_LD_FALSE STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PERL CROSS_COMPILING SUBDIR_libasprintf subdirs LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
Program names:
 
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1011
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1012
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1013
 
 
1014
System types:
 
1015
  --build=BUILD     configure for building on BUILD [guessed]
 
1016
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1017
_ACEOF
 
1018
fi
 
1019
 
 
1020
if test -n "$ac_init_help"; then
 
1021
 
 
1022
  cat <<\_ACEOF
 
1023
 
 
1024
Optional Features:
 
1025
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1026
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1027
  --disable-dependency-tracking  speeds up one-time build
 
1028
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1029
  --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
 
1030
  --enable-shared[=PKGS]
 
1031
                          build shared libraries [default=yes]
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=yes]
 
1034
  --enable-fast-install[=PKGS]
 
1035
                          optimize for fast installation [default=yes]
 
1036
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1037
  --enable-relocatable    install a package that can be moved in the filesystem
 
1038
  --disable-nls           do not use Native Language Support
 
1039
  --disable-rpath         do not hardcode runtime library paths
 
1040
  --disable-libasprintf   do not build libasprintf
 
1041
 
 
1042
Optional Packages:
 
1043
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1044
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1045
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1046
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1047
                          both]
 
1048
  --with-tags[=TAGS]
 
1049
                          include additional configurations [automatic]
 
1050
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1051
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1052
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1053
  --with-included-gettext use the GNU gettext library included here
 
1054
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1055
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1056
 
 
1057
Some influential environment variables:
 
1058
  CC          C compiler command
 
1059
  CFLAGS      C compiler flags
 
1060
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1061
              nonstandard directory <lib dir>
 
1062
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1063
              headers in a nonstandard directory <include dir>
 
1064
  CPP         C preprocessor
 
1065
  CXX         C++ compiler command
 
1066
  CXXFLAGS    C++ compiler flags
 
1067
  CXXCPP      C++ preprocessor
 
1068
  F77         Fortran 77 compiler command
 
1069
  FFLAGS      Fortran 77 compiler flags
 
1070
 
 
1071
Use these variables to override the choices made by `configure' or to help
 
1072
it to find libraries and programs with nonstandard names/locations.
 
1073
 
 
1074
_ACEOF
 
1075
fi
 
1076
 
 
1077
if test "$ac_init_help" = "recursive"; then
 
1078
  # If there are subdirs, report their specific --help.
 
1079
  ac_popdir=`pwd`
 
1080
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1081
    test -d $ac_dir || continue
 
1082
    ac_builddir=.
 
1083
 
 
1084
if test "$ac_dir" != .; then
 
1085
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1086
  # A "../" for each directory in $ac_dir_suffix.
 
1087
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1088
else
 
1089
  ac_dir_suffix= ac_top_builddir=
 
1090
fi
 
1091
 
 
1092
case $srcdir in
 
1093
  .)  # No --srcdir option.  We are building in place.
 
1094
    ac_srcdir=.
 
1095
    if test -z "$ac_top_builddir"; then
 
1096
       ac_top_srcdir=.
 
1097
    else
 
1098
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1099
    fi ;;
 
1100
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1101
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1102
    ac_top_srcdir=$srcdir ;;
 
1103
  *) # Relative path.
 
1104
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1105
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1106
esac
 
1107
 
 
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1109
# the directories may not exist.
 
1110
case `pwd` in
 
1111
.) ac_abs_builddir="$ac_dir";;
 
1112
*)
 
1113
  case "$ac_dir" in
 
1114
  .) ac_abs_builddir=`pwd`;;
 
1115
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1116
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1117
  esac;;
 
1118
esac
 
1119
case $ac_abs_builddir in
 
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1121
*)
 
1122
  case ${ac_top_builddir}. in
 
1123
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1125
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1126
  esac;;
 
1127
esac
 
1128
case $ac_abs_builddir in
 
1129
.) ac_abs_srcdir=$ac_srcdir;;
 
1130
*)
 
1131
  case $ac_srcdir in
 
1132
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1134
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1139
*)
 
1140
  case $ac_top_srcdir in
 
1141
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1143
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1144
  esac;;
 
1145
esac
 
1146
 
 
1147
    cd $ac_dir
 
1148
    # Check for guested configure; otherwise get Cygnus style configure.
 
1149
    if test -f $ac_srcdir/configure.gnu; then
 
1150
      echo
 
1151
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1152
    elif test -f $ac_srcdir/configure; then
 
1153
      echo
 
1154
      $SHELL $ac_srcdir/configure  --help=recursive
 
1155
    elif test -f $ac_srcdir/configure.ac ||
 
1156
           test -f $ac_srcdir/configure.in; then
 
1157
      echo
 
1158
      $ac_configure --help
 
1159
    else
 
1160
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1161
    fi
 
1162
    cd "$ac_popdir"
 
1163
  done
 
1164
fi
 
1165
 
 
1166
test -n "$ac_init_help" && exit 0
 
1167
if $ac_init_version; then
 
1168
  cat <<\_ACEOF
 
1169
 
 
1170
Copyright (C) 2003 Free Software Foundation, Inc.
 
1171
This configure script is free software; the Free Software Foundation
 
1172
gives unlimited permission to copy, distribute and modify it.
 
1173
_ACEOF
 
1174
  exit 0
 
1175
fi
 
1176
exec 5>config.log
 
1177
cat >&5 <<_ACEOF
 
1178
This file contains any messages produced by compilers while
 
1179
running configure, to aid debugging if configure makes a mistake.
 
1180
 
 
1181
It was created by $as_me, which was
 
1182
generated by GNU Autoconf 2.59.  Invocation command line was
 
1183
 
 
1184
  $ $0 $@
 
1185
 
 
1186
_ACEOF
 
1187
{
 
1188
cat <<_ASUNAME
 
1189
## --------- ##
 
1190
## Platform. ##
 
1191
## --------- ##
 
1192
 
 
1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1198
 
 
1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1200
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1201
 
 
1202
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1203
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1205
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1206
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1207
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1208
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1209
 
 
1210
_ASUNAME
 
1211
 
 
1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1213
for as_dir in $PATH
 
1214
do
 
1215
  IFS=$as_save_IFS
 
1216
  test -z "$as_dir" && as_dir=.
 
1217
  echo "PATH: $as_dir"
 
1218
done
 
1219
 
 
1220
} >&5
 
1221
 
 
1222
cat >&5 <<_ACEOF
 
1223
 
 
1224
 
 
1225
## ----------- ##
 
1226
## Core tests. ##
 
1227
## ----------- ##
 
1228
 
 
1229
_ACEOF
 
1230
 
 
1231
 
 
1232
# Keep a trace of the command line.
 
1233
# Strip out --no-create and --no-recursion so they do not pile up.
 
1234
# Strip out --silent because we don't want to record it for future runs.
 
1235
# Also quote any args containing shell meta-characters.
 
1236
# Make two passes to allow for proper duplicate-argument suppression.
 
1237
ac_configure_args=
 
1238
ac_configure_args0=
 
1239
ac_configure_args1=
 
1240
ac_sep=
 
1241
ac_must_keep_next=false
 
1242
for ac_pass in 1 2
 
1243
do
 
1244
  for ac_arg
 
1245
  do
 
1246
    case $ac_arg in
 
1247
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1248
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1249
    | -silent | --silent | --silen | --sile | --sil)
 
1250
      continue ;;
 
1251
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1252
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1253
    esac
 
1254
    case $ac_pass in
 
1255
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1256
    2)
 
1257
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1258
      if test $ac_must_keep_next = true; then
 
1259
        ac_must_keep_next=false # Got value, back to normal.
 
1260
      else
 
1261
        case $ac_arg in
 
1262
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1263
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1264
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1265
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1266
            case "$ac_configure_args0 " in
 
1267
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1268
            esac
 
1269
            ;;
 
1270
          -* ) ac_must_keep_next=true ;;
 
1271
        esac
 
1272
      fi
 
1273
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1274
      # Get rid of the leading space.
 
1275
      ac_sep=" "
 
1276
      ;;
 
1277
    esac
 
1278
  done
 
1279
done
 
1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1282
 
 
1283
# When interrupted or exit'd, cleanup temporary files, and complete
 
1284
# config.log.  We remove comments because anyway the quotes in there
 
1285
# would cause problems or look ugly.
 
1286
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1287
# such as our DU 5.0 friend, will then `close' the trap.
 
1288
trap 'exit_status=$?
 
1289
  # Save into config.log some information that might help in debugging.
 
1290
  {
 
1291
    echo
 
1292
 
 
1293
    cat <<\_ASBOX
 
1294
## ---------------- ##
 
1295
## Cache variables. ##
 
1296
## ---------------- ##
 
1297
_ASBOX
 
1298
    echo
 
1299
    # The following way of writing the cache mishandles newlines in values,
 
1300
{
 
1301
  (set) 2>&1 |
 
1302
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1303
    *ac_space=\ *)
 
1304
      sed -n \
 
1305
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1306
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1307
      ;;
 
1308
    *)
 
1309
      sed -n \
 
1310
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1311
      ;;
 
1312
    esac;
 
1313
}
 
1314
    echo
 
1315
 
 
1316
    cat <<\_ASBOX
 
1317
## ----------------- ##
 
1318
## Output variables. ##
 
1319
## ----------------- ##
 
1320
_ASBOX
 
1321
    echo
 
1322
    for ac_var in $ac_subst_vars
 
1323
    do
 
1324
      eval ac_val=$`echo $ac_var`
 
1325
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1326
    done | sort
 
1327
    echo
 
1328
 
 
1329
    if test -n "$ac_subst_files"; then
 
1330
      cat <<\_ASBOX
 
1331
## ------------- ##
 
1332
## Output files. ##
 
1333
## ------------- ##
 
1334
_ASBOX
 
1335
      echo
 
1336
      for ac_var in $ac_subst_files
 
1337
      do
 
1338
        eval ac_val=$`echo $ac_var`
 
1339
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1340
      done | sort
 
1341
      echo
 
1342
    fi
 
1343
 
 
1344
    if test -s confdefs.h; then
 
1345
      cat <<\_ASBOX
 
1346
## ----------- ##
 
1347
## confdefs.h. ##
 
1348
## ----------- ##
 
1349
_ASBOX
 
1350
      echo
 
1351
      sed "/^$/d" confdefs.h | sort
 
1352
      echo
 
1353
    fi
 
1354
    test "$ac_signal" != 0 &&
 
1355
      echo "$as_me: caught signal $ac_signal"
 
1356
    echo "$as_me: exit $exit_status"
 
1357
  } >&5
 
1358
  rm -f core *.core &&
 
1359
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1360
    exit $exit_status
 
1361
     ' 0
 
1362
for ac_signal in 1 2 13 15; do
 
1363
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1364
done
 
1365
ac_signal=0
 
1366
 
 
1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1368
rm -rf conftest* confdefs.h
 
1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1370
echo >confdefs.h
 
1371
 
 
1372
# Predefined preprocessor variables.
 
1373
 
 
1374
cat >>confdefs.h <<_ACEOF
 
1375
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1376
_ACEOF
 
1377
 
 
1378
 
 
1379
cat >>confdefs.h <<_ACEOF
 
1380
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1381
_ACEOF
 
1382
 
 
1383
 
 
1384
cat >>confdefs.h <<_ACEOF
 
1385
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1386
_ACEOF
 
1387
 
 
1388
 
 
1389
cat >>confdefs.h <<_ACEOF
 
1390
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1391
_ACEOF
 
1392
 
 
1393
 
 
1394
cat >>confdefs.h <<_ACEOF
 
1395
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1396
_ACEOF
 
1397
 
 
1398
 
 
1399
# Let the site file select an alternate cache file if it wants to.
 
1400
# Prefer explicitly selected file to automatically selected ones.
 
1401
if test -z "$CONFIG_SITE"; then
 
1402
  if test "x$prefix" != xNONE; then
 
1403
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1404
  else
 
1405
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1406
  fi
 
1407
fi
 
1408
for ac_site_file in $CONFIG_SITE; do
 
1409
  if test -r "$ac_site_file"; then
 
1410
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1411
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1412
    sed 's/^/| /' "$ac_site_file" >&5
 
1413
    . "$ac_site_file"
 
1414
  fi
 
1415
done
 
1416
 
 
1417
if test -r "$cache_file"; then
 
1418
  # Some versions of bash will fail to source /dev/null (special
 
1419
  # files actually), so we avoid doing that.
 
1420
  if test -f "$cache_file"; then
 
1421
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1422
echo "$as_me: loading cache $cache_file" >&6;}
 
1423
    case $cache_file in
 
1424
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1425
      *)                      . ./$cache_file;;
 
1426
    esac
 
1427
  fi
 
1428
else
 
1429
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1430
echo "$as_me: creating cache $cache_file" >&6;}
 
1431
  >$cache_file
 
1432
fi
 
1433
 
 
1434
# Check that the precious variables saved in the cache have kept the same
 
1435
# value.
 
1436
ac_cache_corrupted=false
 
1437
for ac_var in `(set) 2>&1 |
 
1438
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1439
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1440
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1441
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1442
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1443
  case $ac_old_set,$ac_new_set in
 
1444
    set,)
 
1445
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1447
      ac_cache_corrupted=: ;;
 
1448
    ,set)
 
1449
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1451
      ac_cache_corrupted=: ;;
 
1452
    ,);;
 
1453
    *)
 
1454
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1455
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1457
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1458
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1459
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1460
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1461
        ac_cache_corrupted=:
 
1462
      fi;;
 
1463
  esac
 
1464
  # Pass precious variables to config.status.
 
1465
  if test "$ac_new_set" = set; then
 
1466
    case $ac_new_val in
 
1467
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1468
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1469
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1470
    esac
 
1471
    case " $ac_configure_args " in
 
1472
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1473
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1474
    esac
 
1475
  fi
 
1476
done
 
1477
if $ac_cache_corrupted; then
 
1478
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1480
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1482
   { (exit 1); exit 1; }; }
 
1483
fi
 
1484
 
 
1485
ac_ext=c
 
1486
ac_cpp='$CPP $CPPFLAGS'
 
1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
ac_aux_dir=
 
1511
for ac_dir in ../config $srcdir/../config; do
 
1512
  if test -f $ac_dir/install-sh; then
 
1513
    ac_aux_dir=$ac_dir
 
1514
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1515
    break
 
1516
  elif test -f $ac_dir/install.sh; then
 
1517
    ac_aux_dir=$ac_dir
 
1518
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1519
    break
 
1520
  elif test -f $ac_dir/shtool; then
 
1521
    ac_aux_dir=$ac_dir
 
1522
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1523
    break
 
1524
  fi
 
1525
done
 
1526
if test -z "$ac_aux_dir"; then
 
1527
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../config $srcdir/../config" >&5
 
1528
echo "$as_me: error: cannot find install-sh or install.sh in ../config $srcdir/../config" >&2;}
 
1529
   { (exit 1); exit 1; }; }
 
1530
fi
 
1531
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1532
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1533
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1534
 
 
1535
. $srcdir/../version.sh
 
1536
am__api_version="1.8"
 
1537
# Find a good install program.  We prefer a C program (faster),
 
1538
# so one script is as good as another.  But avoid the broken or
 
1539
# incompatible versions:
 
1540
# SysV /etc/install, /usr/sbin/install
 
1541
# SunOS /usr/etc/install
 
1542
# IRIX /sbin/install
 
1543
# AIX /bin/install
 
1544
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1545
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1546
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1547
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1548
# OS/2's system install, which has a completely different semantic
 
1549
# ./install, which can be erroneously created by make from ./install.sh.
 
1550
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1551
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1552
if test -z "$INSTALL"; then
 
1553
if test "${ac_cv_path_install+set}" = set; then
 
1554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1555
else
 
1556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1557
for as_dir in $PATH
 
1558
do
 
1559
  IFS=$as_save_IFS
 
1560
  test -z "$as_dir" && as_dir=.
 
1561
  # Account for people who put trailing slashes in PATH elements.
 
1562
case $as_dir/ in
 
1563
  ./ | .// | /cC/* | \
 
1564
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1565
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1566
  /usr/ucb/* ) ;;
 
1567
  *)
 
1568
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1569
    # Don't use installbsd from OSF since it installs stuff as root
 
1570
    # by default.
 
1571
    for ac_prog in ginstall scoinst install; do
 
1572
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1573
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1574
          if test $ac_prog = install &&
 
1575
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1576
            # AIX install.  It has an incompatible calling convention.
 
1577
            :
 
1578
          elif test $ac_prog = install &&
 
1579
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1580
            # program-specific install script used by HP pwplus--don't use.
 
1581
            :
 
1582
          else
 
1583
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1584
            break 3
 
1585
          fi
 
1586
        fi
 
1587
      done
 
1588
    done
 
1589
    ;;
 
1590
esac
 
1591
done
 
1592
 
 
1593
 
 
1594
fi
 
1595
  if test "${ac_cv_path_install+set}" = set; then
 
1596
    INSTALL=$ac_cv_path_install
 
1597
  else
 
1598
    # As a last resort, use the slow shell script.  We don't cache a
 
1599
    # path for INSTALL within a source directory, because that will
 
1600
    # break other packages using the cache if that directory is
 
1601
    # removed, or if the path is relative.
 
1602
    INSTALL=$ac_install_sh
 
1603
  fi
 
1604
fi
 
1605
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1606
echo "${ECHO_T}$INSTALL" >&6
 
1607
 
 
1608
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1609
# It thinks the first close brace ends the variable substitution.
 
1610
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1611
 
 
1612
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1613
 
 
1614
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1615
 
 
1616
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1617
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1618
# Just in case
 
1619
sleep 1
 
1620
echo timestamp > conftest.file
 
1621
# Do `set' in a subshell so we don't clobber the current shell's
 
1622
# arguments.  Must try -L first in case configure is actually a
 
1623
# symlink; some systems play weird games with the mod time of symlinks
 
1624
# (eg FreeBSD returns the mod time of the symlink's containing
 
1625
# directory).
 
1626
if (
 
1627
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1628
   if test "$*" = "X"; then
 
1629
      # -L didn't work.
 
1630
      set X `ls -t $srcdir/configure conftest.file`
 
1631
   fi
 
1632
   rm -f conftest.file
 
1633
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1634
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1635
 
 
1636
      # If neither matched, then we have a broken ls.  This can happen
 
1637
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1638
      # broken ls alias from the environment.  This has actually
 
1639
      # happened.  Such a system could not be considered "sane".
 
1640
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1641
alias in your environment" >&5
 
1642
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1643
alias in your environment" >&2;}
 
1644
   { (exit 1); exit 1; }; }
 
1645
   fi
 
1646
 
 
1647
   test "$2" = conftest.file
 
1648
   )
 
1649
then
 
1650
   # Ok.
 
1651
   :
 
1652
else
 
1653
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1654
Check your system clock" >&5
 
1655
echo "$as_me: error: newly created file is older than distributed files!
 
1656
Check your system clock" >&2;}
 
1657
   { (exit 1); exit 1; }; }
 
1658
fi
 
1659
echo "$as_me:$LINENO: result: yes" >&5
 
1660
echo "${ECHO_T}yes" >&6
 
1661
test "$program_prefix" != NONE &&
 
1662
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1663
# Use a double $ so make ignores it.
 
1664
test "$program_suffix" != NONE &&
 
1665
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1666
# Double any \ or $.  echo might interpret backslashes.
 
1667
# By default was `s,x,x', remove it if useless.
 
1668
cat <<\_ACEOF >conftest.sed
 
1669
s/[\\$]/&&/g;s/;s,x,x,$//
 
1670
_ACEOF
 
1671
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1672
rm conftest.sed
 
1673
 
 
1674
# expand $ac_aux_dir to an absolute path
 
1675
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1676
 
 
1677
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1678
# Use eval to expand $SHELL
 
1679
if eval "$MISSING --run true"; then
 
1680
  am_missing_run="$MISSING --run "
 
1681
else
 
1682
  am_missing_run=
 
1683
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1684
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1685
fi
 
1686
 
 
1687
if mkdir -p -- . 2>/dev/null; then
 
1688
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
1689
  # argument.  Indeed, we sometimes output rules like
 
1690
  #   $(mkdir_p) $(somedir)
 
1691
  # where $(somedir) is conditionally defined.
 
1692
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
1693
  # expensive solution, as it forces Make to start a sub-shell.)
 
1694
  mkdir_p='mkdir -p -- .'
 
1695
else
 
1696
  # On NextStep and OpenStep, the `mkdir' command does not
 
1697
  # recognize any option.  It will interpret all options as
 
1698
  # directories to create, and then abort because `.' already
 
1699
  # exists.
 
1700
  for d in ./-p ./--;
 
1701
  do
 
1702
    test -d $d && rmdir $d
 
1703
  done
 
1704
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1705
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1706
    mkdir_p='$(mkinstalldirs)'
 
1707
  else
 
1708
    mkdir_p='$(install_sh) -d'
 
1709
  fi
 
1710
fi
 
1711
 
 
1712
for ac_prog in gawk mawk nawk awk
 
1713
do
 
1714
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1715
set dummy $ac_prog; ac_word=$2
 
1716
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1718
if test "${ac_cv_prog_AWK+set}" = set; then
 
1719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1720
else
 
1721
  if test -n "$AWK"; then
 
1722
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1723
else
 
1724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1725
for as_dir in $PATH
 
1726
do
 
1727
  IFS=$as_save_IFS
 
1728
  test -z "$as_dir" && as_dir=.
 
1729
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1731
    ac_cv_prog_AWK="$ac_prog"
 
1732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1733
    break 2
 
1734
  fi
 
1735
done
 
1736
done
 
1737
 
 
1738
fi
 
1739
fi
 
1740
AWK=$ac_cv_prog_AWK
 
1741
if test -n "$AWK"; then
 
1742
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1743
echo "${ECHO_T}$AWK" >&6
 
1744
else
 
1745
  echo "$as_me:$LINENO: result: no" >&5
 
1746
echo "${ECHO_T}no" >&6
 
1747
fi
 
1748
 
 
1749
  test -n "$AWK" && break
 
1750
done
 
1751
 
 
1752
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1753
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1754
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1755
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1757
else
 
1758
  cat >conftest.make <<\_ACEOF
 
1759
all:
 
1760
        @echo 'ac_maketemp="$(MAKE)"'
 
1761
_ACEOF
 
1762
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1763
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1764
if test -n "$ac_maketemp"; then
 
1765
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1766
else
 
1767
  eval ac_cv_prog_make_${ac_make}_set=no
 
1768
fi
 
1769
rm -f conftest.make
 
1770
fi
 
1771
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1772
  echo "$as_me:$LINENO: result: yes" >&5
 
1773
echo "${ECHO_T}yes" >&6
 
1774
  SET_MAKE=
 
1775
else
 
1776
  echo "$as_me:$LINENO: result: no" >&5
 
1777
echo "${ECHO_T}no" >&6
 
1778
  SET_MAKE="MAKE=${MAKE-make}"
 
1779
fi
 
1780
 
 
1781
rm -rf .tst 2>/dev/null
 
1782
mkdir .tst 2>/dev/null
 
1783
if test -d .tst; then
 
1784
  am__leading_dot=.
 
1785
else
 
1786
  am__leading_dot=_
 
1787
fi
 
1788
rmdir .tst 2>/dev/null
 
1789
 
 
1790
# test to see if srcdir already configured
 
1791
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1792
   test -f $srcdir/config.status; then
 
1793
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1794
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1795
   { (exit 1); exit 1; }; }
 
1796
fi
 
1797
 
 
1798
# test whether we have cygpath
 
1799
if test -z "$CYGPATH_W"; then
 
1800
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1801
    CYGPATH_W='cygpath -w'
 
1802
  else
 
1803
    CYGPATH_W=echo
 
1804
  fi
 
1805
fi
 
1806
 
 
1807
 
 
1808
# Define the identity of the package.
 
1809
 PACKAGE=gettext-runtime
 
1810
 VERSION=$VERSION_NUMBER
 
1811
 
 
1812
 
 
1813
cat >>confdefs.h <<_ACEOF
 
1814
#define PACKAGE "$PACKAGE"
 
1815
_ACEOF
 
1816
 
 
1817
 
 
1818
cat >>confdefs.h <<_ACEOF
 
1819
#define VERSION "$VERSION"
 
1820
_ACEOF
 
1821
 
 
1822
# Some tools Automake needs.
 
1823
 
 
1824
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1825
 
 
1826
 
 
1827
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1828
 
 
1829
 
 
1830
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1831
 
 
1832
 
 
1833
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1834
 
 
1835
 
 
1836
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1837
 
 
1838
 
 
1839
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1840
 
 
1841
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1842
 
 
1843
# Installed binaries are usually stripped using `strip' when the user
 
1844
# run `make install-strip'.  However `strip' might not be the right
 
1845
# tool to use in cross-compilation environments, therefore Automake
 
1846
# will honor the `STRIP' environment variable to overrule this program.
 
1847
if test "$cross_compiling" != no; then
 
1848
  if test -n "$ac_tool_prefix"; then
 
1849
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1850
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1851
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1853
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1855
else
 
1856
  if test -n "$STRIP"; then
 
1857
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1858
else
 
1859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1860
for as_dir in $PATH
 
1861
do
 
1862
  IFS=$as_save_IFS
 
1863
  test -z "$as_dir" && as_dir=.
 
1864
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1865
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1866
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1868
    break 2
 
1869
  fi
 
1870
done
 
1871
done
 
1872
 
 
1873
fi
 
1874
fi
 
1875
STRIP=$ac_cv_prog_STRIP
 
1876
if test -n "$STRIP"; then
 
1877
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1878
echo "${ECHO_T}$STRIP" >&6
 
1879
else
 
1880
  echo "$as_me:$LINENO: result: no" >&5
 
1881
echo "${ECHO_T}no" >&6
 
1882
fi
 
1883
 
 
1884
fi
 
1885
if test -z "$ac_cv_prog_STRIP"; then
 
1886
  ac_ct_STRIP=$STRIP
 
1887
  # Extract the first word of "strip", so it can be a program name with args.
 
1888
set dummy strip; ac_word=$2
 
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1891
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1893
else
 
1894
  if test -n "$ac_ct_STRIP"; then
 
1895
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1896
else
 
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1898
for as_dir in $PATH
 
1899
do
 
1900
  IFS=$as_save_IFS
 
1901
  test -z "$as_dir" && as_dir=.
 
1902
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1904
    ac_cv_prog_ac_ct_STRIP="strip"
 
1905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1906
    break 2
 
1907
  fi
 
1908
done
 
1909
done
 
1910
 
 
1911
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1912
fi
 
1913
fi
 
1914
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1915
if test -n "$ac_ct_STRIP"; then
 
1916
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1917
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1918
else
 
1919
  echo "$as_me:$LINENO: result: no" >&5
 
1920
echo "${ECHO_T}no" >&6
 
1921
fi
 
1922
 
 
1923
  STRIP=$ac_ct_STRIP
 
1924
else
 
1925
  STRIP="$ac_cv_prog_STRIP"
 
1926
fi
 
1927
 
 
1928
fi
 
1929
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1930
 
 
1931
# We need awk for the "check" target.  The system "awk" is bad on
 
1932
# some platforms.
 
1933
 
 
1934
 
 
1935
 
 
1936
          ac_config_headers="$ac_config_headers config.h"
 
1937
 
 
1938
 
 
1939
docdir='${datadir}/doc/gettext'
 
1940
 
 
1941
test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
 
1942
 
 
1943
ac_ext=c
 
1944
ac_cpp='$CPP $CPPFLAGS'
 
1945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1948
if test -n "$ac_tool_prefix"; then
 
1949
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1950
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1951
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1953
if test "${ac_cv_prog_CC+set}" = set; then
 
1954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1955
else
 
1956
  if test -n "$CC"; then
 
1957
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1958
else
 
1959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1960
for as_dir in $PATH
 
1961
do
 
1962
  IFS=$as_save_IFS
 
1963
  test -z "$as_dir" && as_dir=.
 
1964
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1965
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1966
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1968
    break 2
 
1969
  fi
 
1970
done
 
1971
done
 
1972
 
 
1973
fi
 
1974
fi
 
1975
CC=$ac_cv_prog_CC
 
1976
if test -n "$CC"; then
 
1977
  echo "$as_me:$LINENO: result: $CC" >&5
 
1978
echo "${ECHO_T}$CC" >&6
 
1979
else
 
1980
  echo "$as_me:$LINENO: result: no" >&5
 
1981
echo "${ECHO_T}no" >&6
 
1982
fi
 
1983
 
 
1984
fi
 
1985
if test -z "$ac_cv_prog_CC"; then
 
1986
  ac_ct_CC=$CC
 
1987
  # Extract the first word of "gcc", so it can be a program name with args.
 
1988
set dummy gcc; ac_word=$2
 
1989
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1991
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1993
else
 
1994
  if test -n "$ac_ct_CC"; then
 
1995
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1996
else
 
1997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1998
for as_dir in $PATH
 
1999
do
 
2000
  IFS=$as_save_IFS
 
2001
  test -z "$as_dir" && as_dir=.
 
2002
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2003
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2004
    ac_cv_prog_ac_ct_CC="gcc"
 
2005
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2006
    break 2
 
2007
  fi
 
2008
done
 
2009
done
 
2010
 
 
2011
fi
 
2012
fi
 
2013
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2014
if test -n "$ac_ct_CC"; then
 
2015
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2016
echo "${ECHO_T}$ac_ct_CC" >&6
 
2017
else
 
2018
  echo "$as_me:$LINENO: result: no" >&5
 
2019
echo "${ECHO_T}no" >&6
 
2020
fi
 
2021
 
 
2022
  CC=$ac_ct_CC
 
2023
else
 
2024
  CC="$ac_cv_prog_CC"
 
2025
fi
 
2026
 
 
2027
if test -z "$CC"; then
 
2028
  if test -n "$ac_tool_prefix"; then
 
2029
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2030
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2031
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2033
if test "${ac_cv_prog_CC+set}" = set; then
 
2034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2035
else
 
2036
  if test -n "$CC"; then
 
2037
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2038
else
 
2039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2040
for as_dir in $PATH
 
2041
do
 
2042
  IFS=$as_save_IFS
 
2043
  test -z "$as_dir" && as_dir=.
 
2044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2045
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2046
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2048
    break 2
 
2049
  fi
 
2050
done
 
2051
done
 
2052
 
 
2053
fi
 
2054
fi
 
2055
CC=$ac_cv_prog_CC
 
2056
if test -n "$CC"; then
 
2057
  echo "$as_me:$LINENO: result: $CC" >&5
 
2058
echo "${ECHO_T}$CC" >&6
 
2059
else
 
2060
  echo "$as_me:$LINENO: result: no" >&5
 
2061
echo "${ECHO_T}no" >&6
 
2062
fi
 
2063
 
 
2064
fi
 
2065
if test -z "$ac_cv_prog_CC"; then
 
2066
  ac_ct_CC=$CC
 
2067
  # Extract the first word of "cc", so it can be a program name with args.
 
2068
set dummy cc; ac_word=$2
 
2069
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2071
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2073
else
 
2074
  if test -n "$ac_ct_CC"; then
 
2075
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2076
else
 
2077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2078
for as_dir in $PATH
 
2079
do
 
2080
  IFS=$as_save_IFS
 
2081
  test -z "$as_dir" && as_dir=.
 
2082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2084
    ac_cv_prog_ac_ct_CC="cc"
 
2085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2086
    break 2
 
2087
  fi
 
2088
done
 
2089
done
 
2090
 
 
2091
fi
 
2092
fi
 
2093
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2094
if test -n "$ac_ct_CC"; then
 
2095
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2096
echo "${ECHO_T}$ac_ct_CC" >&6
 
2097
else
 
2098
  echo "$as_me:$LINENO: result: no" >&5
 
2099
echo "${ECHO_T}no" >&6
 
2100
fi
 
2101
 
 
2102
  CC=$ac_ct_CC
 
2103
else
 
2104
  CC="$ac_cv_prog_CC"
 
2105
fi
 
2106
 
 
2107
fi
 
2108
if test -z "$CC"; then
 
2109
  # Extract the first word of "cc", so it can be a program name with args.
 
2110
set dummy cc; ac_word=$2
 
2111
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2113
if test "${ac_cv_prog_CC+set}" = set; then
 
2114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2115
else
 
2116
  if test -n "$CC"; then
 
2117
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2118
else
 
2119
  ac_prog_rejected=no
 
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2121
for as_dir in $PATH
 
2122
do
 
2123
  IFS=$as_save_IFS
 
2124
  test -z "$as_dir" && as_dir=.
 
2125
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2126
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2127
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2128
       ac_prog_rejected=yes
 
2129
       continue
 
2130
     fi
 
2131
    ac_cv_prog_CC="cc"
 
2132
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2133
    break 2
 
2134
  fi
 
2135
done
 
2136
done
 
2137
 
 
2138
if test $ac_prog_rejected = yes; then
 
2139
  # We found a bogon in the path, so make sure we never use it.
 
2140
  set dummy $ac_cv_prog_CC
 
2141
  shift
 
2142
  if test $# != 0; then
 
2143
    # We chose a different compiler from the bogus one.
 
2144
    # However, it has the same basename, so the bogon will be chosen
 
2145
    # first if we set CC to just the basename; use the full file name.
 
2146
    shift
 
2147
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2148
  fi
 
2149
fi
 
2150
fi
 
2151
fi
 
2152
CC=$ac_cv_prog_CC
 
2153
if test -n "$CC"; then
 
2154
  echo "$as_me:$LINENO: result: $CC" >&5
 
2155
echo "${ECHO_T}$CC" >&6
 
2156
else
 
2157
  echo "$as_me:$LINENO: result: no" >&5
 
2158
echo "${ECHO_T}no" >&6
 
2159
fi
 
2160
 
 
2161
fi
 
2162
if test -z "$CC"; then
 
2163
  if test -n "$ac_tool_prefix"; then
 
2164
  for ac_prog in cl
 
2165
  do
 
2166
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2167
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2168
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2170
if test "${ac_cv_prog_CC+set}" = set; then
 
2171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2172
else
 
2173
  if test -n "$CC"; then
 
2174
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2175
else
 
2176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2177
for as_dir in $PATH
 
2178
do
 
2179
  IFS=$as_save_IFS
 
2180
  test -z "$as_dir" && as_dir=.
 
2181
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2183
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2185
    break 2
 
2186
  fi
 
2187
done
 
2188
done
 
2189
 
 
2190
fi
 
2191
fi
 
2192
CC=$ac_cv_prog_CC
 
2193
if test -n "$CC"; then
 
2194
  echo "$as_me:$LINENO: result: $CC" >&5
 
2195
echo "${ECHO_T}$CC" >&6
 
2196
else
 
2197
  echo "$as_me:$LINENO: result: no" >&5
 
2198
echo "${ECHO_T}no" >&6
 
2199
fi
 
2200
 
 
2201
    test -n "$CC" && break
 
2202
  done
 
2203
fi
 
2204
if test -z "$CC"; then
 
2205
  ac_ct_CC=$CC
 
2206
  for ac_prog in cl
 
2207
do
 
2208
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2209
set dummy $ac_prog; ac_word=$2
 
2210
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2212
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2214
else
 
2215
  if test -n "$ac_ct_CC"; then
 
2216
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2217
else
 
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2219
for as_dir in $PATH
 
2220
do
 
2221
  IFS=$as_save_IFS
 
2222
  test -z "$as_dir" && as_dir=.
 
2223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2225
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
 
 
2232
fi
 
2233
fi
 
2234
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2235
if test -n "$ac_ct_CC"; then
 
2236
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2237
echo "${ECHO_T}$ac_ct_CC" >&6
 
2238
else
 
2239
  echo "$as_me:$LINENO: result: no" >&5
 
2240
echo "${ECHO_T}no" >&6
 
2241
fi
 
2242
 
 
2243
  test -n "$ac_ct_CC" && break
 
2244
done
 
2245
 
 
2246
  CC=$ac_ct_CC
 
2247
fi
 
2248
 
 
2249
fi
 
2250
 
 
2251
 
 
2252
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2253
See \`config.log' for more details." >&5
 
2254
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2255
See \`config.log' for more details." >&2;}
 
2256
   { (exit 1); exit 1; }; }
 
2257
 
 
2258
# Provide some information about the compiler.
 
2259
echo "$as_me:$LINENO:" \
 
2260
     "checking for C compiler version" >&5
 
2261
ac_compiler=`set X $ac_compile; echo $2`
 
2262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2263
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2264
  ac_status=$?
 
2265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2266
  (exit $ac_status); }
 
2267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2268
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2269
  ac_status=$?
 
2270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2271
  (exit $ac_status); }
 
2272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2273
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2274
  ac_status=$?
 
2275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2276
  (exit $ac_status); }
 
2277
 
 
2278
cat >conftest.$ac_ext <<_ACEOF
 
2279
/* confdefs.h.  */
 
2280
_ACEOF
 
2281
cat confdefs.h >>conftest.$ac_ext
 
2282
cat >>conftest.$ac_ext <<_ACEOF
 
2283
/* end confdefs.h.  */
 
2284
 
 
2285
int
 
2286
main ()
 
2287
{
 
2288
 
 
2289
  ;
 
2290
  return 0;
 
2291
}
 
2292
_ACEOF
 
2293
ac_clean_files_save=$ac_clean_files
 
2294
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2295
# Try to create an executable without -o first, disregard a.out.
 
2296
# It will help us diagnose broken compilers, and finding out an intuition
 
2297
# of exeext.
 
2298
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2299
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2300
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2301
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2302
  (eval $ac_link_default) 2>&5
 
2303
  ac_status=$?
 
2304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2305
  (exit $ac_status); }; then
 
2306
  # Find the output, starting from the most likely.  This scheme is
 
2307
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2308
# resort.
 
2309
 
 
2310
# Be careful to initialize this variable, since it used to be cached.
 
2311
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2312
ac_cv_exeext=
 
2313
# b.out is created by i960 compilers.
 
2314
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2315
do
 
2316
  test -f "$ac_file" || continue
 
2317
  case $ac_file in
 
2318
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2319
        ;;
 
2320
    conftest.$ac_ext )
 
2321
        # This is the source file.
 
2322
        ;;
 
2323
    [ab].out )
 
2324
        # We found the default executable, but exeext='' is most
 
2325
        # certainly right.
 
2326
        break;;
 
2327
    *.* )
 
2328
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2329
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2330
        # but it would be cool to find out if it's true.  Does anybody
 
2331
        # maintain Libtool? --akim.
 
2332
        export ac_cv_exeext
 
2333
        break;;
 
2334
    * )
 
2335
        break;;
 
2336
  esac
 
2337
done
 
2338
else
 
2339
  echo "$as_me: failed program was:" >&5
 
2340
sed 's/^/| /' conftest.$ac_ext >&5
 
2341
 
 
2342
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2343
See \`config.log' for more details." >&5
 
2344
echo "$as_me: error: C compiler cannot create executables
 
2345
See \`config.log' for more details." >&2;}
 
2346
   { (exit 77); exit 77; }; }
 
2347
fi
 
2348
 
 
2349
ac_exeext=$ac_cv_exeext
 
2350
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2351
echo "${ECHO_T}$ac_file" >&6
 
2352
 
 
2353
# Check the compiler produces executables we can run.  If not, either
 
2354
# the compiler is broken, or we cross compile.
 
2355
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2356
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2357
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2358
# If not cross compiling, check that we can run a simple program.
 
2359
if test "$cross_compiling" != yes; then
 
2360
  if { ac_try='./$ac_file'
 
2361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2362
  (eval $ac_try) 2>&5
 
2363
  ac_status=$?
 
2364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2365
  (exit $ac_status); }; }; then
 
2366
    cross_compiling=no
 
2367
  else
 
2368
    if test "$cross_compiling" = maybe; then
 
2369
        cross_compiling=yes
 
2370
    else
 
2371
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2372
If you meant to cross compile, use \`--host'.
 
2373
See \`config.log' for more details." >&5
 
2374
echo "$as_me: error: cannot run C compiled programs.
 
2375
If you meant to cross compile, use \`--host'.
 
2376
See \`config.log' for more details." >&2;}
 
2377
   { (exit 1); exit 1; }; }
 
2378
    fi
 
2379
  fi
 
2380
fi
 
2381
echo "$as_me:$LINENO: result: yes" >&5
 
2382
echo "${ECHO_T}yes" >&6
 
2383
 
 
2384
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2385
ac_clean_files=$ac_clean_files_save
 
2386
# Check the compiler produces executables we can run.  If not, either
 
2387
# the compiler is broken, or we cross compile.
 
2388
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2389
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2390
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2391
echo "${ECHO_T}$cross_compiling" >&6
 
2392
 
 
2393
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2394
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2396
  (eval $ac_link) 2>&5
 
2397
  ac_status=$?
 
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2399
  (exit $ac_status); }; then
 
2400
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2401
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2402
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2403
# `rm'.
 
2404
for ac_file in conftest.exe conftest conftest.*; do
 
2405
  test -f "$ac_file" || continue
 
2406
  case $ac_file in
 
2407
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2408
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2409
          export ac_cv_exeext
 
2410
          break;;
 
2411
    * ) break;;
 
2412
  esac
 
2413
done
 
2414
else
 
2415
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2416
See \`config.log' for more details." >&5
 
2417
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2418
See \`config.log' for more details." >&2;}
 
2419
   { (exit 1); exit 1; }; }
 
2420
fi
 
2421
 
 
2422
rm -f conftest$ac_cv_exeext
 
2423
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2424
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2425
 
 
2426
rm -f conftest.$ac_ext
 
2427
EXEEXT=$ac_cv_exeext
 
2428
ac_exeext=$EXEEXT
 
2429
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2430
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2431
if test "${ac_cv_objext+set}" = set; then
 
2432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2433
else
 
2434
  cat >conftest.$ac_ext <<_ACEOF
 
2435
/* confdefs.h.  */
 
2436
_ACEOF
 
2437
cat confdefs.h >>conftest.$ac_ext
 
2438
cat >>conftest.$ac_ext <<_ACEOF
 
2439
/* end confdefs.h.  */
 
2440
 
 
2441
int
 
2442
main ()
 
2443
{
 
2444
 
 
2445
  ;
 
2446
  return 0;
 
2447
}
 
2448
_ACEOF
 
2449
rm -f conftest.o conftest.obj
 
2450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2451
  (eval $ac_compile) 2>&5
 
2452
  ac_status=$?
 
2453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2454
  (exit $ac_status); }; then
 
2455
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2456
  case $ac_file in
 
2457
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2458
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2459
       break;;
 
2460
  esac
 
2461
done
 
2462
else
 
2463
  echo "$as_me: failed program was:" >&5
 
2464
sed 's/^/| /' conftest.$ac_ext >&5
 
2465
 
 
2466
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2467
See \`config.log' for more details." >&5
 
2468
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2469
See \`config.log' for more details." >&2;}
 
2470
   { (exit 1); exit 1; }; }
 
2471
fi
 
2472
 
 
2473
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2474
fi
 
2475
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2476
echo "${ECHO_T}$ac_cv_objext" >&6
 
2477
OBJEXT=$ac_cv_objext
 
2478
ac_objext=$OBJEXT
 
2479
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2480
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2481
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2483
else
 
2484
  cat >conftest.$ac_ext <<_ACEOF
 
2485
/* confdefs.h.  */
 
2486
_ACEOF
 
2487
cat confdefs.h >>conftest.$ac_ext
 
2488
cat >>conftest.$ac_ext <<_ACEOF
 
2489
/* end confdefs.h.  */
 
2490
 
 
2491
int
 
2492
main ()
 
2493
{
 
2494
#ifndef __GNUC__
 
2495
       choke me
 
2496
#endif
 
2497
 
 
2498
  ;
 
2499
  return 0;
 
2500
}
 
2501
_ACEOF
 
2502
rm -f conftest.$ac_objext
 
2503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2504
  (eval $ac_compile) 2>conftest.er1
 
2505
  ac_status=$?
 
2506
  grep -v '^ *+' conftest.er1 >conftest.err
 
2507
  rm -f conftest.er1
 
2508
  cat conftest.err >&5
 
2509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2510
  (exit $ac_status); } &&
 
2511
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2513
  (eval $ac_try) 2>&5
 
2514
  ac_status=$?
 
2515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2516
  (exit $ac_status); }; } &&
 
2517
         { ac_try='test -s conftest.$ac_objext'
 
2518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2519
  (eval $ac_try) 2>&5
 
2520
  ac_status=$?
 
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2522
  (exit $ac_status); }; }; then
 
2523
  ac_compiler_gnu=yes
 
2524
else
 
2525
  echo "$as_me: failed program was:" >&5
 
2526
sed 's/^/| /' conftest.$ac_ext >&5
 
2527
 
 
2528
ac_compiler_gnu=no
 
2529
fi
 
2530
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2531
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2532
 
 
2533
fi
 
2534
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2535
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2536
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2537
ac_test_CFLAGS=${CFLAGS+set}
 
2538
ac_save_CFLAGS=$CFLAGS
 
2539
CFLAGS="-g"
 
2540
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2541
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2542
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2544
else
 
2545
  cat >conftest.$ac_ext <<_ACEOF
 
2546
/* confdefs.h.  */
 
2547
_ACEOF
 
2548
cat confdefs.h >>conftest.$ac_ext
 
2549
cat >>conftest.$ac_ext <<_ACEOF
 
2550
/* end confdefs.h.  */
 
2551
 
 
2552
int
 
2553
main ()
 
2554
{
 
2555
 
 
2556
  ;
 
2557
  return 0;
 
2558
}
 
2559
_ACEOF
 
2560
rm -f conftest.$ac_objext
 
2561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2562
  (eval $ac_compile) 2>conftest.er1
 
2563
  ac_status=$?
 
2564
  grep -v '^ *+' conftest.er1 >conftest.err
 
2565
  rm -f conftest.er1
 
2566
  cat conftest.err >&5
 
2567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2568
  (exit $ac_status); } &&
 
2569
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2571
  (eval $ac_try) 2>&5
 
2572
  ac_status=$?
 
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2574
  (exit $ac_status); }; } &&
 
2575
         { ac_try='test -s conftest.$ac_objext'
 
2576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2577
  (eval $ac_try) 2>&5
 
2578
  ac_status=$?
 
2579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2580
  (exit $ac_status); }; }; then
 
2581
  ac_cv_prog_cc_g=yes
 
2582
else
 
2583
  echo "$as_me: failed program was:" >&5
 
2584
sed 's/^/| /' conftest.$ac_ext >&5
 
2585
 
 
2586
ac_cv_prog_cc_g=no
 
2587
fi
 
2588
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2589
fi
 
2590
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2591
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2592
if test "$ac_test_CFLAGS" = set; then
 
2593
  CFLAGS=$ac_save_CFLAGS
 
2594
elif test $ac_cv_prog_cc_g = yes; then
 
2595
  if test "$GCC" = yes; then
 
2596
    CFLAGS="-g -O2"
 
2597
  else
 
2598
    CFLAGS="-g"
 
2599
  fi
 
2600
else
 
2601
  if test "$GCC" = yes; then
 
2602
    CFLAGS="-O2"
 
2603
  else
 
2604
    CFLAGS=
 
2605
  fi
 
2606
fi
 
2607
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2608
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2609
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2611
else
 
2612
  ac_cv_prog_cc_stdc=no
 
2613
ac_save_CC=$CC
 
2614
cat >conftest.$ac_ext <<_ACEOF
 
2615
/* confdefs.h.  */
 
2616
_ACEOF
 
2617
cat confdefs.h >>conftest.$ac_ext
 
2618
cat >>conftest.$ac_ext <<_ACEOF
 
2619
/* end confdefs.h.  */
 
2620
#include <stdarg.h>
 
2621
#include <stdio.h>
 
2622
#include <sys/types.h>
 
2623
#include <sys/stat.h>
 
2624
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2625
struct buf { int x; };
 
2626
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2627
static char *e (p, i)
 
2628
     char **p;
 
2629
     int i;
 
2630
{
 
2631
  return p[i];
 
2632
}
 
2633
static char *f (char * (*g) (char **, int), char **p, ...)
 
2634
{
 
2635
  char *s;
 
2636
  va_list v;
 
2637
  va_start (v,p);
 
2638
  s = g (p, va_arg (v,int));
 
2639
  va_end (v);
 
2640
  return s;
 
2641
}
 
2642
 
 
2643
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2644
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2645
   These don't provoke an error unfortunately, instead are silently treated
 
2646
   as 'x'.  The following induces an error, until -std1 is added to get
 
2647
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2648
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2649
   that's true only with -std1.  */
 
2650
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2651
 
 
2652
int test (int i, double x);
 
2653
struct s1 {int (*f) (int a);};
 
2654
struct s2 {int (*f) (double a);};
 
2655
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2656
int argc;
 
2657
char **argv;
 
2658
int
 
2659
main ()
 
2660
{
 
2661
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2662
  ;
 
2663
  return 0;
 
2664
}
 
2665
_ACEOF
 
2666
# Don't try gcc -ansi; that turns off useful extensions and
 
2667
# breaks some systems' header files.
 
2668
# AIX                   -qlanglvl=ansi
 
2669
# Ultrix and OSF/1      -std1
 
2670
# HP-UX 10.20 and later -Ae
 
2671
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2672
# SVR4                  -Xc -D__EXTENSIONS__
 
2673
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2674
do
 
2675
  CC="$ac_save_CC $ac_arg"
 
2676
  rm -f conftest.$ac_objext
 
2677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2678
  (eval $ac_compile) 2>conftest.er1
 
2679
  ac_status=$?
 
2680
  grep -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); } &&
 
2685
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2687
  (eval $ac_try) 2>&5
 
2688
  ac_status=$?
 
2689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2690
  (exit $ac_status); }; } &&
 
2691
         { ac_try='test -s conftest.$ac_objext'
 
2692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2693
  (eval $ac_try) 2>&5
 
2694
  ac_status=$?
 
2695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2696
  (exit $ac_status); }; }; then
 
2697
  ac_cv_prog_cc_stdc=$ac_arg
 
2698
break
 
2699
else
 
2700
  echo "$as_me: failed program was:" >&5
 
2701
sed 's/^/| /' conftest.$ac_ext >&5
 
2702
 
 
2703
fi
 
2704
rm -f conftest.err conftest.$ac_objext
 
2705
done
 
2706
rm -f conftest.$ac_ext conftest.$ac_objext
 
2707
CC=$ac_save_CC
 
2708
 
 
2709
fi
 
2710
 
 
2711
case "x$ac_cv_prog_cc_stdc" in
 
2712
  x|xno)
 
2713
    echo "$as_me:$LINENO: result: none needed" >&5
 
2714
echo "${ECHO_T}none needed" >&6 ;;
 
2715
  *)
 
2716
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2717
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2718
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2719
esac
 
2720
 
 
2721
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2722
# in C++ we need to declare it.  In case someone uses the same compiler
 
2723
# for both compiling C and C++ we need to have the C++ compiler decide
 
2724
# the declaration of exit, since it's the most demanding environment.
 
2725
cat >conftest.$ac_ext <<_ACEOF
 
2726
#ifndef __cplusplus
 
2727
  choke me
 
2728
#endif
 
2729
_ACEOF
 
2730
rm -f conftest.$ac_objext
 
2731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2732
  (eval $ac_compile) 2>conftest.er1
 
2733
  ac_status=$?
 
2734
  grep -v '^ *+' conftest.er1 >conftest.err
 
2735
  rm -f conftest.er1
 
2736
  cat conftest.err >&5
 
2737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2738
  (exit $ac_status); } &&
 
2739
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2741
  (eval $ac_try) 2>&5
 
2742
  ac_status=$?
 
2743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2744
  (exit $ac_status); }; } &&
 
2745
         { ac_try='test -s conftest.$ac_objext'
 
2746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2747
  (eval $ac_try) 2>&5
 
2748
  ac_status=$?
 
2749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2750
  (exit $ac_status); }; }; then
 
2751
  for ac_declaration in \
 
2752
   '' \
 
2753
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2754
   'extern "C" void std::exit (int); using std::exit;' \
 
2755
   'extern "C" void exit (int) throw ();' \
 
2756
   'extern "C" void exit (int);' \
 
2757
   'void exit (int);'
 
2758
do
 
2759
  cat >conftest.$ac_ext <<_ACEOF
 
2760
/* confdefs.h.  */
 
2761
_ACEOF
 
2762
cat confdefs.h >>conftest.$ac_ext
 
2763
cat >>conftest.$ac_ext <<_ACEOF
 
2764
/* end confdefs.h.  */
 
2765
$ac_declaration
 
2766
#include <stdlib.h>
 
2767
int
 
2768
main ()
 
2769
{
 
2770
exit (42);
 
2771
  ;
 
2772
  return 0;
 
2773
}
 
2774
_ACEOF
 
2775
rm -f conftest.$ac_objext
 
2776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2777
  (eval $ac_compile) 2>conftest.er1
 
2778
  ac_status=$?
 
2779
  grep -v '^ *+' conftest.er1 >conftest.err
 
2780
  rm -f conftest.er1
 
2781
  cat conftest.err >&5
 
2782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); } &&
 
2784
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2786
  (eval $ac_try) 2>&5
 
2787
  ac_status=$?
 
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2789
  (exit $ac_status); }; } &&
 
2790
         { ac_try='test -s conftest.$ac_objext'
 
2791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2792
  (eval $ac_try) 2>&5
 
2793
  ac_status=$?
 
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2795
  (exit $ac_status); }; }; then
 
2796
  :
 
2797
else
 
2798
  echo "$as_me: failed program was:" >&5
 
2799
sed 's/^/| /' conftest.$ac_ext >&5
 
2800
 
 
2801
continue
 
2802
fi
 
2803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2804
  cat >conftest.$ac_ext <<_ACEOF
 
2805
/* confdefs.h.  */
 
2806
_ACEOF
 
2807
cat confdefs.h >>conftest.$ac_ext
 
2808
cat >>conftest.$ac_ext <<_ACEOF
 
2809
/* end confdefs.h.  */
 
2810
$ac_declaration
 
2811
int
 
2812
main ()
 
2813
{
 
2814
exit (42);
 
2815
  ;
 
2816
  return 0;
 
2817
}
 
2818
_ACEOF
 
2819
rm -f conftest.$ac_objext
 
2820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2821
  (eval $ac_compile) 2>conftest.er1
 
2822
  ac_status=$?
 
2823
  grep -v '^ *+' conftest.er1 >conftest.err
 
2824
  rm -f conftest.er1
 
2825
  cat conftest.err >&5
 
2826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2827
  (exit $ac_status); } &&
 
2828
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2830
  (eval $ac_try) 2>&5
 
2831
  ac_status=$?
 
2832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2833
  (exit $ac_status); }; } &&
 
2834
         { ac_try='test -s conftest.$ac_objext'
 
2835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2836
  (eval $ac_try) 2>&5
 
2837
  ac_status=$?
 
2838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2839
  (exit $ac_status); }; }; then
 
2840
  break
 
2841
else
 
2842
  echo "$as_me: failed program was:" >&5
 
2843
sed 's/^/| /' conftest.$ac_ext >&5
 
2844
 
 
2845
fi
 
2846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2847
done
 
2848
rm -f conftest*
 
2849
if test -n "$ac_declaration"; then
 
2850
  echo '#ifdef __cplusplus' >>confdefs.h
 
2851
  echo $ac_declaration      >>confdefs.h
 
2852
  echo '#endif'             >>confdefs.h
 
2853
fi
 
2854
 
 
2855
else
 
2856
  echo "$as_me: failed program was:" >&5
 
2857
sed 's/^/| /' conftest.$ac_ext >&5
 
2858
 
 
2859
fi
 
2860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2861
ac_ext=c
 
2862
ac_cpp='$CPP $CPPFLAGS'
 
2863
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2864
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2865
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2866
DEPDIR="${am__leading_dot}deps"
 
2867
 
 
2868
          ac_config_commands="$ac_config_commands depfiles"
 
2869
 
 
2870
 
 
2871
am_make=${MAKE-make}
 
2872
cat > confinc << 'END'
 
2873
am__doit:
 
2874
        @echo done
 
2875
.PHONY: am__doit
 
2876
END
 
2877
# If we don't find an include directive, just comment out the code.
 
2878
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2879
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2880
am__include="#"
 
2881
am__quote=
 
2882
_am_result=none
 
2883
# First try GNU make style include.
 
2884
echo "include confinc" > confmf
 
2885
# We grep out `Entering directory' and `Leaving directory'
 
2886
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2887
# In particular we don't look at `^make:' because GNU make might
 
2888
# be invoked under some other name (usually "gmake"), in which
 
2889
# case it prints its new name instead of `make'.
 
2890
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2891
   am__include=include
 
2892
   am__quote=
 
2893
   _am_result=GNU
 
2894
fi
 
2895
# Now try BSD make style include.
 
2896
if test "$am__include" = "#"; then
 
2897
   echo '.include "confinc"' > confmf
 
2898
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2899
      am__include=.include
 
2900
      am__quote="\""
 
2901
      _am_result=BSD
 
2902
   fi
 
2903
fi
 
2904
 
 
2905
 
 
2906
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2907
echo "${ECHO_T}$_am_result" >&6
 
2908
rm -f confinc confmf
 
2909
 
 
2910
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2911
if test "${enable_dependency_tracking+set}" = set; then
 
2912
  enableval="$enable_dependency_tracking"
 
2913
 
 
2914
fi;
 
2915
if test "x$enable_dependency_tracking" != xno; then
 
2916
  am_depcomp="$ac_aux_dir/depcomp"
 
2917
  AMDEPBACKSLASH='\'
 
2918
fi
 
2919
 
 
2920
 
 
2921
if test "x$enable_dependency_tracking" != xno; then
 
2922
  AMDEP_TRUE=
 
2923
  AMDEP_FALSE='#'
 
2924
else
 
2925
  AMDEP_TRUE='#'
 
2926
  AMDEP_FALSE=
 
2927
fi
 
2928
 
 
2929
 
 
2930
 
 
2931
 
 
2932
depcc="$CC"   am_compiler_list=
 
2933
 
 
2934
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2935
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2936
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2938
else
 
2939
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2940
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2941
  # making bogus files that we don't know about and never remove.  For
 
2942
  # instance it was reported that on HP-UX the gcc test will end up
 
2943
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2944
  # in D'.
 
2945
  mkdir conftest.dir
 
2946
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2947
  # using a relative directory.
 
2948
  cp "$am_depcomp" conftest.dir
 
2949
  cd conftest.dir
 
2950
  # We will build objects and dependencies in a subdirectory because
 
2951
  # it helps to detect inapplicable dependency modes.  For instance
 
2952
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2953
  # side effect of compilation, but ICC will put the dependencies in
 
2954
  # the current directory while Tru64 will put them in the object
 
2955
  # directory.
 
2956
  mkdir sub
 
2957
 
 
2958
  am_cv_CC_dependencies_compiler_type=none
 
2959
  if test "$am_compiler_list" = ""; then
 
2960
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2961
  fi
 
2962
  for depmode in $am_compiler_list; do
 
2963
    # Setup a source with many dependencies, because some compilers
 
2964
    # like to wrap large dependency lists on column 80 (with \), and
 
2965
    # we should not choose a depcomp mode which is confused by this.
 
2966
    #
 
2967
    # We need to recreate these files for each test, as the compiler may
 
2968
    # overwrite some of them when testing with obscure command lines.
 
2969
    # This happens at least with the AIX C compiler.
 
2970
    : > sub/conftest.c
 
2971
    for i in 1 2 3 4 5 6; do
 
2972
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2973
      : > sub/conftst$i.h
 
2974
    done
 
2975
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2976
 
 
2977
    case $depmode in
 
2978
    nosideeffect)
 
2979
      # after this tag, mechanisms are not by side-effect, so they'll
 
2980
      # only be used when explicitly requested
 
2981
      if test "x$enable_dependency_tracking" = xyes; then
 
2982
        continue
 
2983
      else
 
2984
        break
 
2985
      fi
 
2986
      ;;
 
2987
    none) break ;;
 
2988
    esac
 
2989
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2990
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2991
    # handle `-M -o', and we need to detect this.
 
2992
    if depmode=$depmode \
 
2993
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2994
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2995
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2996
         >/dev/null 2>conftest.err &&
 
2997
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2998
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2999
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3000
      # icc doesn't choke on unknown options, it will just issue warnings
 
3001
      # (even with -Werror).  So we grep stderr for any message
 
3002
      # that says an option was ignored.
 
3003
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3004
        am_cv_CC_dependencies_compiler_type=$depmode
 
3005
        break
 
3006
      fi
 
3007
    fi
 
3008
  done
 
3009
 
 
3010
  cd ..
 
3011
  rm -rf conftest.dir
 
3012
else
 
3013
  am_cv_CC_dependencies_compiler_type=none
 
3014
fi
 
3015
 
 
3016
fi
 
3017
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3018
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3019
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3020
 
 
3021
 
 
3022
 
 
3023
if
 
3024
  test "x$enable_dependency_tracking" != xno \
 
3025
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3026
  am__fastdepCC_TRUE=
 
3027
  am__fastdepCC_FALSE='#'
 
3028
else
 
3029
  am__fastdepCC_TRUE='#'
 
3030
  am__fastdepCC_FALSE=
 
3031
fi
 
3032
 
 
3033
 
 
3034
# Find a good install program.  We prefer a C program (faster),
 
3035
# so one script is as good as another.  But avoid the broken or
 
3036
# incompatible versions:
 
3037
# SysV /etc/install, /usr/sbin/install
 
3038
# SunOS /usr/etc/install
 
3039
# IRIX /sbin/install
 
3040
# AIX /bin/install
 
3041
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3042
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3043
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3044
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3045
# OS/2's system install, which has a completely different semantic
 
3046
# ./install, which can be erroneously created by make from ./install.sh.
 
3047
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3048
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3049
if test -z "$INSTALL"; then
 
3050
if test "${ac_cv_path_install+set}" = set; then
 
3051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3052
else
 
3053
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3054
for as_dir in $PATH
 
3055
do
 
3056
  IFS=$as_save_IFS
 
3057
  test -z "$as_dir" && as_dir=.
 
3058
  # Account for people who put trailing slashes in PATH elements.
 
3059
case $as_dir/ in
 
3060
  ./ | .// | /cC/* | \
 
3061
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3062
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3063
  /usr/ucb/* ) ;;
 
3064
  *)
 
3065
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3066
    # Don't use installbsd from OSF since it installs stuff as root
 
3067
    # by default.
 
3068
    for ac_prog in ginstall scoinst install; do
 
3069
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3070
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3071
          if test $ac_prog = install &&
 
3072
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3073
            # AIX install.  It has an incompatible calling convention.
 
3074
            :
 
3075
          elif test $ac_prog = install &&
 
3076
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3077
            # program-specific install script used by HP pwplus--don't use.
 
3078
            :
 
3079
          else
 
3080
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3081
            break 3
 
3082
          fi
 
3083
        fi
 
3084
      done
 
3085
    done
 
3086
    ;;
 
3087
esac
 
3088
done
 
3089
 
 
3090
 
 
3091
fi
 
3092
  if test "${ac_cv_path_install+set}" = set; then
 
3093
    INSTALL=$ac_cv_path_install
 
3094
  else
 
3095
    # As a last resort, use the slow shell script.  We don't cache a
 
3096
    # path for INSTALL within a source directory, because that will
 
3097
    # break other packages using the cache if that directory is
 
3098
    # removed, or if the path is relative.
 
3099
    INSTALL=$ac_install_sh
 
3100
  fi
 
3101
fi
 
3102
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3103
echo "${ECHO_T}$INSTALL" >&6
 
3104
 
 
3105
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3106
# It thinks the first close brace ends the variable substitution.
 
3107
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3108
 
 
3109
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3110
 
 
3111
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3112
 
 
3113
for ac_prog in 'bison -y' byacc
 
3114
do
 
3115
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3116
set dummy $ac_prog; ac_word=$2
 
3117
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3119
if test "${ac_cv_prog_YACC+set}" = set; then
 
3120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3121
else
 
3122
  if test -n "$YACC"; then
 
3123
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
3124
else
 
3125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3126
for as_dir in $PATH
 
3127
do
 
3128
  IFS=$as_save_IFS
 
3129
  test -z "$as_dir" && as_dir=.
 
3130
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3131
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3132
    ac_cv_prog_YACC="$ac_prog"
 
3133
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3134
    break 2
 
3135
  fi
 
3136
done
 
3137
done
 
3138
 
 
3139
fi
 
3140
fi
 
3141
YACC=$ac_cv_prog_YACC
 
3142
if test -n "$YACC"; then
 
3143
  echo "$as_me:$LINENO: result: $YACC" >&5
 
3144
echo "${ECHO_T}$YACC" >&6
 
3145
else
 
3146
  echo "$as_me:$LINENO: result: no" >&5
 
3147
echo "${ECHO_T}no" >&6
 
3148
fi
 
3149
 
 
3150
  test -n "$YACC" && break
 
3151
done
 
3152
test -n "$YACC" || YACC="yacc"
 
3153
 
 
3154
 
 
3155
 
 
3156
ac_ext=c
 
3157
ac_cpp='$CPP $CPPFLAGS'
 
3158
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3159
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3160
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3161
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3162
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3163
# On Suns, sometimes $CPP names a directory.
 
3164
if test -n "$CPP" && test -d "$CPP"; then
 
3165
  CPP=
 
3166
fi
 
3167
if test -z "$CPP"; then
 
3168
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3170
else
 
3171
      # Double quotes because CPP needs to be expanded
 
3172
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3173
    do
 
3174
      ac_preproc_ok=false
 
3175
for ac_c_preproc_warn_flag in '' yes
 
3176
do
 
3177
  # Use a header file that comes with gcc, so configuring glibc
 
3178
  # with a fresh cross-compiler works.
 
3179
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3180
  # <limits.h> exists even on freestanding compilers.
 
3181
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3182
  # not just through cpp. "Syntax error" is here to catch this case.
 
3183
  cat >conftest.$ac_ext <<_ACEOF
 
3184
/* confdefs.h.  */
 
3185
_ACEOF
 
3186
cat confdefs.h >>conftest.$ac_ext
 
3187
cat >>conftest.$ac_ext <<_ACEOF
 
3188
/* end confdefs.h.  */
 
3189
#ifdef __STDC__
 
3190
# include <limits.h>
 
3191
#else
 
3192
# include <assert.h>
 
3193
#endif
 
3194
                     Syntax error
 
3195
_ACEOF
 
3196
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3197
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3198
  ac_status=$?
 
3199
  grep -v '^ *+' conftest.er1 >conftest.err
 
3200
  rm -f conftest.er1
 
3201
  cat conftest.err >&5
 
3202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3203
  (exit $ac_status); } >/dev/null; then
 
3204
  if test -s conftest.err; then
 
3205
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3206
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3207
  else
 
3208
    ac_cpp_err=
 
3209
  fi
 
3210
else
 
3211
  ac_cpp_err=yes
 
3212
fi
 
3213
if test -z "$ac_cpp_err"; then
 
3214
  :
 
3215
else
 
3216
  echo "$as_me: failed program was:" >&5
 
3217
sed 's/^/| /' conftest.$ac_ext >&5
 
3218
 
 
3219
  # Broken: fails on valid input.
 
3220
continue
 
3221
fi
 
3222
rm -f conftest.err conftest.$ac_ext
 
3223
 
 
3224
  # OK, works on sane cases.  Now check whether non-existent headers
 
3225
  # can be detected and how.
 
3226
  cat >conftest.$ac_ext <<_ACEOF
 
3227
/* confdefs.h.  */
 
3228
_ACEOF
 
3229
cat confdefs.h >>conftest.$ac_ext
 
3230
cat >>conftest.$ac_ext <<_ACEOF
 
3231
/* end confdefs.h.  */
 
3232
#include <ac_nonexistent.h>
 
3233
_ACEOF
 
3234
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3235
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3236
  ac_status=$?
 
3237
  grep -v '^ *+' conftest.er1 >conftest.err
 
3238
  rm -f conftest.er1
 
3239
  cat conftest.err >&5
 
3240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3241
  (exit $ac_status); } >/dev/null; then
 
3242
  if test -s conftest.err; then
 
3243
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3244
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3245
  else
 
3246
    ac_cpp_err=
 
3247
  fi
 
3248
else
 
3249
  ac_cpp_err=yes
 
3250
fi
 
3251
if test -z "$ac_cpp_err"; then
 
3252
  # Broken: success on invalid input.
 
3253
continue
 
3254
else
 
3255
  echo "$as_me: failed program was:" >&5
 
3256
sed 's/^/| /' conftest.$ac_ext >&5
 
3257
 
 
3258
  # Passes both tests.
 
3259
ac_preproc_ok=:
 
3260
break
 
3261
fi
 
3262
rm -f conftest.err conftest.$ac_ext
 
3263
 
 
3264
done
 
3265
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3266
rm -f conftest.err conftest.$ac_ext
 
3267
if $ac_preproc_ok; then
 
3268
  break
 
3269
fi
 
3270
 
 
3271
    done
 
3272
    ac_cv_prog_CPP=$CPP
 
3273
 
 
3274
fi
 
3275
  CPP=$ac_cv_prog_CPP
 
3276
else
 
3277
  ac_cv_prog_CPP=$CPP
 
3278
fi
 
3279
echo "$as_me:$LINENO: result: $CPP" >&5
 
3280
echo "${ECHO_T}$CPP" >&6
 
3281
ac_preproc_ok=false
 
3282
for ac_c_preproc_warn_flag in '' yes
 
3283
do
 
3284
  # Use a header file that comes with gcc, so configuring glibc
 
3285
  # with a fresh cross-compiler works.
 
3286
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3287
  # <limits.h> exists even on freestanding compilers.
 
3288
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3289
  # not just through cpp. "Syntax error" is here to catch this case.
 
3290
  cat >conftest.$ac_ext <<_ACEOF
 
3291
/* confdefs.h.  */
 
3292
_ACEOF
 
3293
cat confdefs.h >>conftest.$ac_ext
 
3294
cat >>conftest.$ac_ext <<_ACEOF
 
3295
/* end confdefs.h.  */
 
3296
#ifdef __STDC__
 
3297
# include <limits.h>
 
3298
#else
 
3299
# include <assert.h>
 
3300
#endif
 
3301
                     Syntax error
 
3302
_ACEOF
 
3303
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3304
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3305
  ac_status=$?
 
3306
  grep -v '^ *+' conftest.er1 >conftest.err
 
3307
  rm -f conftest.er1
 
3308
  cat conftest.err >&5
 
3309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3310
  (exit $ac_status); } >/dev/null; then
 
3311
  if test -s conftest.err; then
 
3312
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3313
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3314
  else
 
3315
    ac_cpp_err=
 
3316
  fi
 
3317
else
 
3318
  ac_cpp_err=yes
 
3319
fi
 
3320
if test -z "$ac_cpp_err"; then
 
3321
  :
 
3322
else
 
3323
  echo "$as_me: failed program was:" >&5
 
3324
sed 's/^/| /' conftest.$ac_ext >&5
 
3325
 
 
3326
  # Broken: fails on valid input.
 
3327
continue
 
3328
fi
 
3329
rm -f conftest.err conftest.$ac_ext
 
3330
 
 
3331
  # OK, works on sane cases.  Now check whether non-existent headers
 
3332
  # can be detected and how.
 
3333
  cat >conftest.$ac_ext <<_ACEOF
 
3334
/* confdefs.h.  */
 
3335
_ACEOF
 
3336
cat confdefs.h >>conftest.$ac_ext
 
3337
cat >>conftest.$ac_ext <<_ACEOF
 
3338
/* end confdefs.h.  */
 
3339
#include <ac_nonexistent.h>
 
3340
_ACEOF
 
3341
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3342
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3343
  ac_status=$?
 
3344
  grep -v '^ *+' conftest.er1 >conftest.err
 
3345
  rm -f conftest.er1
 
3346
  cat conftest.err >&5
 
3347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3348
  (exit $ac_status); } >/dev/null; then
 
3349
  if test -s conftest.err; then
 
3350
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3351
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3352
  else
 
3353
    ac_cpp_err=
 
3354
  fi
 
3355
else
 
3356
  ac_cpp_err=yes
 
3357
fi
 
3358
if test -z "$ac_cpp_err"; then
 
3359
  # Broken: success on invalid input.
 
3360
continue
 
3361
else
 
3362
  echo "$as_me: failed program was:" >&5
 
3363
sed 's/^/| /' conftest.$ac_ext >&5
 
3364
 
 
3365
  # Passes both tests.
 
3366
ac_preproc_ok=:
 
3367
break
 
3368
fi
 
3369
rm -f conftest.err conftest.$ac_ext
 
3370
 
 
3371
done
 
3372
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3373
rm -f conftest.err conftest.$ac_ext
 
3374
if $ac_preproc_ok; then
 
3375
  :
 
3376
else
 
3377
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3378
See \`config.log' for more details." >&5
 
3379
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3380
See \`config.log' for more details." >&2;}
 
3381
   { (exit 1); exit 1; }; }
 
3382
fi
 
3383
 
 
3384
ac_ext=c
 
3385
ac_cpp='$CPP $CPPFLAGS'
 
3386
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3387
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3388
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3389
 
 
3390
 
 
3391
echo "$as_me:$LINENO: checking for egrep" >&5
 
3392
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3393
if test "${ac_cv_prog_egrep+set}" = set; then
 
3394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3395
else
 
3396
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3397
    then ac_cv_prog_egrep='grep -E'
 
3398
    else ac_cv_prog_egrep='egrep'
 
3399
    fi
 
3400
fi
 
3401
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3402
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3403
 EGREP=$ac_cv_prog_egrep
 
3404
 
 
3405
 
 
3406
 
 
3407
  echo "$as_me:$LINENO: checking for Java compiler" >&5
 
3408
echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6
 
3409
  cat >conftest.$ac_ext <<_ACEOF
 
3410
/* confdefs.h.  */
 
3411
_ACEOF
 
3412
cat confdefs.h >>conftest.$ac_ext
 
3413
cat >>conftest.$ac_ext <<_ACEOF
 
3414
/* end confdefs.h.  */
 
3415
 
 
3416
#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
 
3417
  yes
 
3418
#endif
 
3419
 
 
3420
_ACEOF
 
3421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3422
  $EGREP "yes" >/dev/null 2>&1; then
 
3423
  CLASSPATH_SEPARATOR=';'
 
3424
else
 
3425
  CLASSPATH_SEPARATOR=':'
 
3426
fi
 
3427
rm -f conftest*
 
3428
 
 
3429
  HAVE_JAVACOMP=1
 
3430
  if test -n "$JAVAC"; then
 
3431
    ac_result="$JAVAC"
 
3432
  else
 
3433
                # Extract the first word of "gcj", so it can be a program name with args.
 
3434
set dummy gcj; ac_word=$2
 
3435
:
 
3436
if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
 
3437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3438
else
 
3439
  if test -n "$HAVE_GCJ_IN_PATH"; then
 
3440
  ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
 
3441
else
 
3442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3443
for as_dir in $PATH
 
3444
do
 
3445
  IFS=$as_save_IFS
 
3446
  test -z "$as_dir" && as_dir=.
 
3447
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3448
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3449
    ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
 
3450
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3451
    break 2
 
3452
  fi
 
3453
done
 
3454
done
 
3455
 
 
3456
fi
 
3457
fi
 
3458
HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
 
3459
if test -n "$HAVE_GCJ_IN_PATH"; then
 
3460
  :
 
3461
else
 
3462
  :
 
3463
fi
 
3464
 
 
3465
    # Extract the first word of "javac", so it can be a program name with args.
 
3466
set dummy javac; ac_word=$2
 
3467
:
 
3468
if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
 
3469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3470
else
 
3471
  if test -n "$HAVE_JAVAC_IN_PATH"; then
 
3472
  ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
 
3473
else
 
3474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3475
for as_dir in $PATH
 
3476
do
 
3477
  IFS=$as_save_IFS
 
3478
  test -z "$as_dir" && as_dir=.
 
3479
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3480
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3481
    ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
 
3482
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3483
    break 2
 
3484
  fi
 
3485
done
 
3486
done
 
3487
 
 
3488
fi
 
3489
fi
 
3490
HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
 
3491
if test -n "$HAVE_JAVAC_IN_PATH"; then
 
3492
  :
 
3493
else
 
3494
  :
 
3495
fi
 
3496
 
 
3497
    # Extract the first word of "jikes", so it can be a program name with args.
 
3498
set dummy jikes; ac_word=$2
 
3499
:
 
3500
if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
 
3501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3502
else
 
3503
  if test -n "$HAVE_JIKES_IN_PATH"; then
 
3504
  ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
 
3505
else
 
3506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3507
for as_dir in $PATH
 
3508
do
 
3509
  IFS=$as_save_IFS
 
3510
  test -z "$as_dir" && as_dir=.
 
3511
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3512
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3513
    ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
 
3514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3515
    break 2
 
3516
  fi
 
3517
done
 
3518
done
 
3519
 
 
3520
fi
 
3521
fi
 
3522
HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
 
3523
if test -n "$HAVE_JIKES_IN_PATH"; then
 
3524
  :
 
3525
else
 
3526
  :
 
3527
fi
 
3528
 
 
3529
                # Test for a good gcj version (>= 3.0).
 
3530
    # Exclude some versions of gcj: gcj 3.0.4 compiles GetURL.java to invalid
 
3531
    # bytecode, that crashes with an IllegalAccessError when executed by
 
3532
    # gij 3.0.4 or with a VerifyError when executed by Sun Java. Likewise for
 
3533
    # gcj 3.1.
 
3534
    # I also exclude gcj 3.2, 3.3 etc. because I have no idea when this bug
 
3535
    # will be fixed. The bug is registered as java/7066, see
 
3536
    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7066
 
3537
    # FIXME: Check new versions of gcj as they come out.
 
3538
    if test -n "$HAVE_GCJ_IN_PATH" \
 
3539
       && gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[0123456789]/d' | grep '^[3-9]' >/dev/null \
 
3540
       && (
 
3541
        # See if libgcj.jar is well installed.
 
3542
        cat > conftest.java <<EOF
 
3543
public class conftest {
 
3544
  public static void main (String[] args) {
 
3545
  }
 
3546
}
 
3547
EOF
 
3548
        gcj -C -d . conftest.java 2>/dev/null
 
3549
        error=$?
 
3550
        rm -f conftest.java conftest.class
 
3551
        exit $error
 
3552
       ); then
 
3553
      HAVE_GCJ_C=1
 
3554
      ac_result="gcj -C"
 
3555
    else
 
3556
      if test -n "$HAVE_JAVAC_IN_PATH" \
 
3557
         && (javac -version >/dev/null 2>/dev/null || test $? -le 2) \
 
3558
         && (if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi); then
 
3559
        HAVE_JAVAC=1
 
3560
        ac_result="javac"
 
3561
      else
 
3562
        if test -n "$HAVE_JIKES_IN_PATH" \
 
3563
           && (jikes >/dev/null 2>/dev/null || test $? = 1) \
 
3564
           && (
 
3565
            # See if the existing CLASSPATH is sufficient to make jikes work.
 
3566
            cat > conftest.java <<EOF
 
3567
public class conftest {
 
3568
  public static void main (String[] args) {
 
3569
  }
 
3570
}
 
3571
EOF
 
3572
            unset JAVA_HOME
 
3573
            jikes conftest.java 2>/dev/null
 
3574
            error=$?
 
3575
            rm -f conftest.java conftest.class
 
3576
            exit $error
 
3577
           ); then
 
3578
          HAVE_JIKES=1
 
3579
          ac_result="jikes"
 
3580
        else
 
3581
          HAVE_JAVACOMP=
 
3582
          ac_result="no"
 
3583
        fi
 
3584
      fi
 
3585
    fi
 
3586
  fi
 
3587
  echo "$as_me:$LINENO: result: $ac_result" >&5
 
3588
echo "${ECHO_T}$ac_result" >&6
 
3589
 
 
3590
 
 
3591
 
 
3592
 
 
3593
 
 
3594
 
 
3595
 
 
3596
# Extract the first word of "jar", so it can be a program name with args.
 
3597
set dummy jar; ac_word=$2
 
3598
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3600
if test "${ac_cv_prog_JAR+set}" = set; then
 
3601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3602
else
 
3603
  if test -n "$JAR"; then
 
3604
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
 
3605
else
 
3606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3607
for as_dir in $PATH
 
3608
do
 
3609
  IFS=$as_save_IFS
 
3610
  test -z "$as_dir" && as_dir=.
 
3611
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3612
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3613
    ac_cv_prog_JAR="jar"
 
3614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3615
    break 2
 
3616
  fi
 
3617
done
 
3618
done
 
3619
 
 
3620
fi
 
3621
fi
 
3622
JAR=$ac_cv_prog_JAR
 
3623
if test -n "$JAR"; then
 
3624
  echo "$as_me:$LINENO: result: $JAR" >&5
 
3625
echo "${ECHO_T}$JAR" >&6
 
3626
else
 
3627
  echo "$as_me:$LINENO: result: no" >&5
 
3628
echo "${ECHO_T}no" >&6
 
3629
fi
 
3630
 
 
3631
if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
 
3632
  BUILDJAVA=yes
 
3633
else
 
3634
  BUILDJAVA=no
 
3635
fi
 
3636
 
 
3637
 
 
3638
 
 
3639
  echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
 
3640
echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6
 
3641
  # Check whether --enable-csharp or --disable-csharp was given.
 
3642
if test "${enable_csharp+set}" = set; then
 
3643
  enableval="$enable_csharp"
 
3644
  CSHARP_CHOICE="$enableval"
 
3645
else
 
3646
  CSHARP_CHOICE=any
 
3647
fi;
 
3648
 
 
3649
  echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
 
3650
echo "${ECHO_T}$CSHARP_CHOICE" >&6
 
3651
  case "$CSHARP_CHOICE" in
 
3652
    pnet)
 
3653
 
 
3654
cat >>confdefs.h <<\_ACEOF
 
3655
#define CSHARP_CHOICE_PNET 1
 
3656
_ACEOF
 
3657
 
 
3658
      ;;
 
3659
    mono)
 
3660
 
 
3661
cat >>confdefs.h <<\_ACEOF
 
3662
#define CSHARP_CHOICE_MONO 1
 
3663
_ACEOF
 
3664
 
 
3665
      ;;
 
3666
  esac
 
3667
 
 
3668
 
 
3669
 
 
3670
  echo "$as_me:$LINENO: checking for C# compiler" >&5
 
3671
echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6
 
3672
  HAVE_CSHARPCOMP=1
 
3673
        # Extract the first word of "cscc", so it can be a program name with args.
 
3674
set dummy cscc; ac_word=$2
 
3675
:
 
3676
if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
 
3677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3678
else
 
3679
  if test -n "$HAVE_CSCC_IN_PATH"; then
 
3680
  ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
 
3681
else
 
3682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3683
for as_dir in $PATH
 
3684
do
 
3685
  IFS=$as_save_IFS
 
3686
  test -z "$as_dir" && as_dir=.
 
3687
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3688
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3689
    ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
 
3690
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3691
    break 2
 
3692
  fi
 
3693
done
 
3694
done
 
3695
 
 
3696
fi
 
3697
fi
 
3698
HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
 
3699
if test -n "$HAVE_CSCC_IN_PATH"; then
 
3700
  :
 
3701
else
 
3702
  :
 
3703
fi
 
3704
 
 
3705
  # Extract the first word of "mcs", so it can be a program name with args.
 
3706
set dummy mcs; ac_word=$2
 
3707
:
 
3708
if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
 
3709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3710
else
 
3711
  if test -n "$HAVE_MCS_IN_PATH"; then
 
3712
  ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
 
3713
else
 
3714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3715
for as_dir in $PATH
 
3716
do
 
3717
  IFS=$as_save_IFS
 
3718
  test -z "$as_dir" && as_dir=.
 
3719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3720
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3721
    ac_cv_prog_HAVE_MCS_IN_PATH="yes"
 
3722
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3723
    break 2
 
3724
  fi
 
3725
done
 
3726
done
 
3727
 
 
3728
fi
 
3729
fi
 
3730
HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
 
3731
if test -n "$HAVE_MCS_IN_PATH"; then
 
3732
  :
 
3733
else
 
3734
  :
 
3735
fi
 
3736
 
 
3737
  # Extract the first word of "csc", so it can be a program name with args.
 
3738
set dummy csc; ac_word=$2
 
3739
:
 
3740
if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
 
3741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3742
else
 
3743
  if test -n "$HAVE_CSC_IN_PATH"; then
 
3744
  ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
 
3745
else
 
3746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3747
for as_dir in $PATH
 
3748
do
 
3749
  IFS=$as_save_IFS
 
3750
  test -z "$as_dir" && as_dir=.
 
3751
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3753
    ac_cv_prog_HAVE_CSC_IN_PATH="yes"
 
3754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3755
    break 2
 
3756
  fi
 
3757
done
 
3758
done
 
3759
 
 
3760
fi
 
3761
fi
 
3762
HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
 
3763
if test -n "$HAVE_CSC_IN_PATH"; then
 
3764
  :
 
3765
else
 
3766
  :
 
3767
fi
 
3768
 
 
3769
        for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
 
3770
    case "$impl" in
 
3771
      pnet)
 
3772
        if test -n "$HAVE_CSCC_IN_PATH" \
 
3773
           && cscc --version >/dev/null 2>/dev/null; then
 
3774
          HAVE_CSCC=1
 
3775
          ac_result="cscc"
 
3776
          break
 
3777
        fi
 
3778
        ;;
 
3779
      mono)
 
3780
        if test -n "$HAVE_MCS_IN_PATH" \
 
3781
           && mcs --version >/dev/null 2>/dev/null; then
 
3782
          HAVE_MCS=1
 
3783
          ac_result="mcs"
 
3784
          break
 
3785
        fi
 
3786
        ;;
 
3787
      sscli)
 
3788
        if test -n "$HAVE_CSC_IN_PATH" \
 
3789
           && csc -help >/dev/null 2>/dev/null; then
 
3790
          HAVE_CSC=1
 
3791
          ac_result="csc"
 
3792
          break
 
3793
        fi
 
3794
        ;;
 
3795
      no)
 
3796
        HAVE_CSHARPCOMP=
 
3797
        ac_result="no"
 
3798
        break
 
3799
        ;;
 
3800
    esac
 
3801
  done
 
3802
  echo "$as_me:$LINENO: result: $ac_result" >&5
 
3803
echo "${ECHO_T}$ac_result" >&6
 
3804
 
 
3805
 
 
3806
 
 
3807
 
 
3808
if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
 
3809
  BUILDCSHARP=yes
 
3810
else
 
3811
  BUILDCSHARP=no
 
3812
fi
 
3813
 
 
3814
 
 
3815
# Make sure we can run config.sub.
 
3816
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3817
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3818
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3819
   { (exit 1); exit 1; }; }
 
3820
 
 
3821
echo "$as_me:$LINENO: checking build system type" >&5
 
3822
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3823
if test "${ac_cv_build+set}" = set; then
 
3824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3825
else
 
3826
  ac_cv_build_alias=$build_alias
 
3827
test -z "$ac_cv_build_alias" &&
 
3828
  ac_cv_build_alias=`$ac_config_guess`
 
3829
test -z "$ac_cv_build_alias" &&
 
3830
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3831
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3832
   { (exit 1); exit 1; }; }
 
3833
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3834
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3835
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3836
   { (exit 1); exit 1; }; }
 
3837
 
 
3838
fi
 
3839
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3840
echo "${ECHO_T}$ac_cv_build" >&6
 
3841
build=$ac_cv_build
 
3842
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3843
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3844
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3845
 
 
3846
 
 
3847
echo "$as_me:$LINENO: checking host system type" >&5
 
3848
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3849
if test "${ac_cv_host+set}" = set; then
 
3850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3851
else
 
3852
  ac_cv_host_alias=$host_alias
 
3853
test -z "$ac_cv_host_alias" &&
 
3854
  ac_cv_host_alias=$ac_cv_build_alias
 
3855
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3856
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3857
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3858
   { (exit 1); exit 1; }; }
 
3859
 
 
3860
fi
 
3861
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3862
echo "${ECHO_T}$ac_cv_host" >&6
 
3863
host=$ac_cv_host
 
3864
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3865
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3866
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3867
 
 
3868
 
 
3869
 
 
3870
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
3871
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
3872
if test "${ac_cv_search_strerror+set}" = set; then
 
3873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3874
else
 
3875
  ac_func_search_save_LIBS=$LIBS
 
3876
ac_cv_search_strerror=no
 
3877
cat >conftest.$ac_ext <<_ACEOF
 
3878
/* confdefs.h.  */
 
3879
_ACEOF
 
3880
cat confdefs.h >>conftest.$ac_ext
 
3881
cat >>conftest.$ac_ext <<_ACEOF
 
3882
/* end confdefs.h.  */
 
3883
 
 
3884
/* Override any gcc2 internal prototype to avoid an error.  */
 
3885
#ifdef __cplusplus
 
3886
extern "C"
 
3887
#endif
 
3888
/* We use char because int might match the return type of a gcc2
 
3889
   builtin and then its argument prototype would still apply.  */
 
3890
char strerror ();
 
3891
int
 
3892
main ()
 
3893
{
 
3894
strerror ();
 
3895
  ;
 
3896
  return 0;
 
3897
}
 
3898
_ACEOF
 
3899
rm -f conftest.$ac_objext conftest$ac_exeext
 
3900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3901
  (eval $ac_link) 2>conftest.er1
 
3902
  ac_status=$?
 
3903
  grep -v '^ *+' conftest.er1 >conftest.err
 
3904
  rm -f conftest.er1
 
3905
  cat conftest.err >&5
 
3906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3907
  (exit $ac_status); } &&
 
3908
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3910
  (eval $ac_try) 2>&5
 
3911
  ac_status=$?
 
3912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3913
  (exit $ac_status); }; } &&
 
3914
         { ac_try='test -s conftest$ac_exeext'
 
3915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3916
  (eval $ac_try) 2>&5
 
3917
  ac_status=$?
 
3918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3919
  (exit $ac_status); }; }; then
 
3920
  ac_cv_search_strerror="none required"
 
3921
else
 
3922
  echo "$as_me: failed program was:" >&5
 
3923
sed 's/^/| /' conftest.$ac_ext >&5
 
3924
 
 
3925
fi
 
3926
rm -f conftest.err conftest.$ac_objext \
 
3927
      conftest$ac_exeext conftest.$ac_ext
 
3928
if test "$ac_cv_search_strerror" = no; then
 
3929
  for ac_lib in cposix; do
 
3930
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3931
    cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
 
3937
 
 
3938
/* Override any gcc2 internal prototype to avoid an error.  */
 
3939
#ifdef __cplusplus
 
3940
extern "C"
 
3941
#endif
 
3942
/* We use char because int might match the return type of a gcc2
 
3943
   builtin and then its argument prototype would still apply.  */
 
3944
char strerror ();
 
3945
int
 
3946
main ()
 
3947
{
 
3948
strerror ();
 
3949
  ;
 
3950
  return 0;
 
3951
}
 
3952
_ACEOF
 
3953
rm -f conftest.$ac_objext conftest$ac_exeext
 
3954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3955
  (eval $ac_link) 2>conftest.er1
 
3956
  ac_status=$?
 
3957
  grep -v '^ *+' conftest.er1 >conftest.err
 
3958
  rm -f conftest.er1
 
3959
  cat conftest.err >&5
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); } &&
 
3962
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3964
  (eval $ac_try) 2>&5
 
3965
  ac_status=$?
 
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3967
  (exit $ac_status); }; } &&
 
3968
         { ac_try='test -s conftest$ac_exeext'
 
3969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3970
  (eval $ac_try) 2>&5
 
3971
  ac_status=$?
 
3972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3973
  (exit $ac_status); }; }; then
 
3974
  ac_cv_search_strerror="-l$ac_lib"
 
3975
break
 
3976
else
 
3977
  echo "$as_me: failed program was:" >&5
 
3978
sed 's/^/| /' conftest.$ac_ext >&5
 
3979
 
 
3980
fi
 
3981
rm -f conftest.err conftest.$ac_objext \
 
3982
      conftest$ac_exeext conftest.$ac_ext
 
3983
  done
 
3984
fi
 
3985
LIBS=$ac_func_search_save_LIBS
 
3986
fi
 
3987
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
3988
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
3989
if test "$ac_cv_search_strerror" != no; then
 
3990
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
3991
 
 
3992
fi
 
3993
 
 
3994
 
 
3995
 
 
3996
 
 
3997
 
 
3998
 
 
3999
cat >>confdefs.h <<\_ACEOF
 
4000
#define _GNU_SOURCE 1
 
4001
_ACEOF
 
4002
 
 
4003
 
 
4004
 
 
4005
 
 
4006
 
 
4007
 
 
4008
      cat >>confdefs.h <<\_ACEOF
 
4009
#define __EXTENSIONS__ 1
 
4010
_ACEOF
 
4011
 
 
4012
 
 
4013
 
 
4014
 
 
4015
 
 
4016
# Check whether --enable-shared or --disable-shared was given.
 
4017
if test "${enable_shared+set}" = set; then
 
4018
  enableval="$enable_shared"
 
4019
  p=${PACKAGE-default}
 
4020
    case $enableval in
 
4021
    yes) enable_shared=yes ;;
 
4022
    no) enable_shared=no ;;
 
4023
    *)
 
4024
      enable_shared=no
 
4025
      # Look at the argument we got.  We use all the common list separators.
 
4026
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4027
      for pkg in $enableval; do
 
4028
        IFS="$lt_save_ifs"
 
4029
        if test "X$pkg" = "X$p"; then
 
4030
          enable_shared=yes
 
4031
        fi
 
4032
      done
 
4033
      IFS="$lt_save_ifs"
 
4034
      ;;
 
4035
    esac
 
4036
else
 
4037
  enable_shared=yes
 
4038
fi;
 
4039
 
 
4040
# Check whether --enable-static or --disable-static was given.
 
4041
if test "${enable_static+set}" = set; then
 
4042
  enableval="$enable_static"
 
4043
  p=${PACKAGE-default}
 
4044
    case $enableval in
 
4045
    yes) enable_static=yes ;;
 
4046
    no) enable_static=no ;;
 
4047
    *)
 
4048
     enable_static=no
 
4049
      # Look at the argument we got.  We use all the common list separators.
 
4050
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4051
      for pkg in $enableval; do
 
4052
        IFS="$lt_save_ifs"
 
4053
        if test "X$pkg" = "X$p"; then
 
4054
          enable_static=yes
 
4055
        fi
 
4056
      done
 
4057
      IFS="$lt_save_ifs"
 
4058
      ;;
 
4059
    esac
 
4060
else
 
4061
  enable_static=yes
 
4062
fi;
 
4063
 
 
4064
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4065
if test "${enable_fast_install+set}" = set; then
 
4066
  enableval="$enable_fast_install"
 
4067
  p=${PACKAGE-default}
 
4068
    case $enableval in
 
4069
    yes) enable_fast_install=yes ;;
 
4070
    no) enable_fast_install=no ;;
 
4071
    *)
 
4072
      enable_fast_install=no
 
4073
      # Look at the argument we got.  We use all the common list separators.
 
4074
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4075
      for pkg in $enableval; do
 
4076
        IFS="$lt_save_ifs"
 
4077
        if test "X$pkg" = "X$p"; then
 
4078
          enable_fast_install=yes
 
4079
        fi
 
4080
      done
 
4081
      IFS="$lt_save_ifs"
 
4082
      ;;
 
4083
    esac
 
4084
else
 
4085
  enable_fast_install=yes
 
4086
fi;
 
4087
 
 
4088
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4089
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4090
if test "${lt_cv_path_SED+set}" = set; then
 
4091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4092
else
 
4093
  # Loop through the user's path and test for sed and gsed.
 
4094
# Then use that list of sed's as ones to test for truncation.
 
4095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4096
for as_dir in $PATH
 
4097
do
 
4098
  IFS=$as_save_IFS
 
4099
  test -z "$as_dir" && as_dir=.
 
4100
  for lt_ac_prog in sed gsed; do
 
4101
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4102
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4103
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4104
      fi
 
4105
    done
 
4106
  done
 
4107
done
 
4108
lt_ac_max=0
 
4109
lt_ac_count=0
 
4110
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4111
# along with /bin/sed that truncates output.
 
4112
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4113
  test ! -f $lt_ac_sed && break
 
4114
  cat /dev/null > conftest.in
 
4115
  lt_ac_count=0
 
4116
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4117
  # Check for GNU sed and select it if it is found.
 
4118
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4119
    lt_cv_path_SED=$lt_ac_sed
 
4120
    break
 
4121
  fi
 
4122
  while true; do
 
4123
    cat conftest.in conftest.in >conftest.tmp
 
4124
    mv conftest.tmp conftest.in
 
4125
    cp conftest.in conftest.nl
 
4126
    echo >>conftest.nl
 
4127
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4128
    cmp -s conftest.out conftest.nl || break
 
4129
    # 10000 chars as input seems more than enough
 
4130
    test $lt_ac_count -gt 10 && break
 
4131
    lt_ac_count=`expr $lt_ac_count + 1`
 
4132
    if test $lt_ac_count -gt $lt_ac_max; then
 
4133
      lt_ac_max=$lt_ac_count
 
4134
      lt_cv_path_SED=$lt_ac_sed
 
4135
    fi
 
4136
  done
 
4137
done
 
4138
SED=$lt_cv_path_SED
 
4139
 
 
4140
fi
 
4141
 
 
4142
echo "$as_me:$LINENO: result: $SED" >&5
 
4143
echo "${ECHO_T}$SED" >&6
 
4144
 
 
4145
 
 
4146
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4147
if test "${with_gnu_ld+set}" = set; then
 
4148
  withval="$with_gnu_ld"
 
4149
  test "$withval" = no || with_gnu_ld=yes
 
4150
else
 
4151
  with_gnu_ld=no
 
4152
fi;
 
4153
ac_prog=ld
 
4154
if test "$GCC" = yes; then
 
4155
  # Check if gcc -print-prog-name=ld gives a path.
 
4156
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4157
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4158
  case $host in
 
4159
  *-*-mingw*)
 
4160
    # gcc leaves a trailing carriage return which upsets mingw
 
4161
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4162
  *)
 
4163
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4164
  esac
 
4165
  case $ac_prog in
 
4166
    # Accept absolute paths.
 
4167
    [\\/]* | ?:[\\/]*)
 
4168
      re_direlt='/[^/][^/]*/\.\./'
 
4169
      # Canonicalize the pathname of ld
 
4170
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4171
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4172
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4173
      done
 
4174
      test -z "$LD" && LD="$ac_prog"
 
4175
      ;;
 
4176
  "")
 
4177
    # If it fails, then pretend we aren't using GCC.
 
4178
    ac_prog=ld
 
4179
    ;;
 
4180
  *)
 
4181
    # If it is relative, then search for the first ld in PATH.
 
4182
    with_gnu_ld=unknown
 
4183
    ;;
 
4184
  esac
 
4185
elif test "$with_gnu_ld" = yes; then
 
4186
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4187
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4188
else
 
4189
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4190
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4191
fi
 
4192
if test "${lt_cv_path_LD+set}" = set; then
 
4193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4194
else
 
4195
  if test -z "$LD"; then
 
4196
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4197
  for ac_dir in $PATH; do
 
4198
    IFS="$lt_save_ifs"
 
4199
    test -z "$ac_dir" && ac_dir=.
 
4200
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4201
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4202
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4203
      # but apparently some GNU ld's only accept -v.
 
4204
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4205
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4206
      *GNU* | *'with BFD'*)
 
4207
        test "$with_gnu_ld" != no && break
 
4208
        ;;
 
4209
      *)
 
4210
        test "$with_gnu_ld" != yes && break
 
4211
        ;;
 
4212
      esac
 
4213
    fi
 
4214
  done
 
4215
  IFS="$lt_save_ifs"
 
4216
else
 
4217
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4218
fi
 
4219
fi
 
4220
 
 
4221
LD="$lt_cv_path_LD"
 
4222
if test -n "$LD"; then
 
4223
  echo "$as_me:$LINENO: result: $LD" >&5
 
4224
echo "${ECHO_T}$LD" >&6
 
4225
else
 
4226
  echo "$as_me:$LINENO: result: no" >&5
 
4227
echo "${ECHO_T}no" >&6
 
4228
fi
 
4229
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4230
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4231
   { (exit 1); exit 1; }; }
 
4232
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4233
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4234
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4236
else
 
4237
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4238
case `$LD -v 2>&1 </dev/null` in
 
4239
*GNU* | *'with BFD'*)
 
4240
  lt_cv_prog_gnu_ld=yes
 
4241
  ;;
 
4242
*)
 
4243
  lt_cv_prog_gnu_ld=no
 
4244
  ;;
 
4245
esac
 
4246
fi
 
4247
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4248
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4249
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4250
 
 
4251
 
 
4252
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4253
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4254
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4256
else
 
4257
  lt_cv_ld_reload_flag='-r'
 
4258
fi
 
4259
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4260
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4261
reload_flag=$lt_cv_ld_reload_flag
 
4262
case $reload_flag in
 
4263
"" | " "*) ;;
 
4264
*) reload_flag=" $reload_flag" ;;
 
4265
esac
 
4266
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4267
 
 
4268
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4269
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4270
if test "${lt_cv_path_NM+set}" = set; then
 
4271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4272
else
 
4273
  if test -n "$NM"; then
 
4274
  # Let the user override the test.
 
4275
  lt_cv_path_NM="$NM"
 
4276
else
 
4277
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4278
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4279
    IFS="$lt_save_ifs"
 
4280
    test -z "$ac_dir" && ac_dir=.
 
4281
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4282
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4283
      # Check to see if the nm accepts a BSD-compat flag.
 
4284
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4285
      #   nm: unknown option "B" ignored
 
4286
      # Tru64's nm complains that /dev/null is an invalid object file
 
4287
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4288
      */dev/null* | *'Invalid file or object type'*)
 
4289
        lt_cv_path_NM="$tmp_nm -B"
 
4290
        break
 
4291
        ;;
 
4292
      *)
 
4293
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4294
        */dev/null*)
 
4295
          lt_cv_path_NM="$tmp_nm -p"
 
4296
          break
 
4297
          ;;
 
4298
        *)
 
4299
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4300
          continue # so that we can try to find one that supports BSD flags
 
4301
          ;;
 
4302
        esac
 
4303
      esac
 
4304
    fi
 
4305
  done
 
4306
  IFS="$lt_save_ifs"
 
4307
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4308
fi
 
4309
fi
 
4310
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4311
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4312
NM="$lt_cv_path_NM"
 
4313
 
 
4314
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4315
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4316
LN_S=$as_ln_s
 
4317
if test "$LN_S" = "ln -s"; then
 
4318
  echo "$as_me:$LINENO: result: yes" >&5
 
4319
echo "${ECHO_T}yes" >&6
 
4320
else
 
4321
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4322
echo "${ECHO_T}no, using $LN_S" >&6
 
4323
fi
 
4324
 
 
4325
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4326
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4327
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4329
else
 
4330
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4331
lt_cv_file_magic_test_file=
 
4332
lt_cv_deplibs_check_method='unknown'
 
4333
# Need to set the preceding variable on all platforms that support
 
4334
# interlibrary dependencies.
 
4335
# 'none' -- dependencies not supported.
 
4336
# `unknown' -- same as none, but documents that we really don't know.
 
4337
# 'pass_all' -- all dependencies passed with no checks.
 
4338
# 'test_compile' -- check by making test program.
 
4339
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4340
# which responds to the $file_magic_cmd with a given extended regex.
 
4341
# If you have `file' or equivalent on your system and you're not sure
 
4342
# whether `pass_all' will *always* work, you probably want this one.
 
4343
 
 
4344
case $host_os in
 
4345
aix4* | aix5*)
 
4346
  lt_cv_deplibs_check_method=pass_all
 
4347
  ;;
 
4348
 
 
4349
beos*)
 
4350
  lt_cv_deplibs_check_method=pass_all
 
4351
  ;;
 
4352
 
 
4353
bsdi4*)
 
4354
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4355
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4356
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4357
  ;;
 
4358
 
 
4359
cygwin*)
 
4360
  # win32_libid is a shell function defined in ltmain.sh
 
4361
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4362
  lt_cv_file_magic_cmd='win32_libid'
 
4363
  ;;
 
4364
 
 
4365
mingw* | pw32*)
 
4366
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4367
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
4368
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4369
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4370
  ;;
 
4371
 
 
4372
darwin* | rhapsody*)
 
4373
  lt_cv_deplibs_check_method=pass_all
 
4374
  ;;
 
4375
 
 
4376
freebsd* | kfreebsd*-gnu)
 
4377
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4378
    case $host_cpu in
 
4379
    i*86 )
 
4380
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4381
      # Let's accept both of them until this is cleared up.
 
4382
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4383
      lt_cv_file_magic_cmd=/usr/bin/file
 
4384
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4385
      ;;
 
4386
    esac
 
4387
  else
 
4388
    lt_cv_deplibs_check_method=pass_all
 
4389
  fi
 
4390
  ;;
 
4391
 
 
4392
gnu*)
 
4393
  lt_cv_deplibs_check_method=pass_all
 
4394
  ;;
 
4395
 
 
4396
hpux10.20* | hpux11*)
 
4397
  lt_cv_file_magic_cmd=/usr/bin/file
 
4398
  case "$host_cpu" in
 
4399
  ia64*)
 
4400
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4401
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4402
    ;;
 
4403
  hppa*64*)
 
4404
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4405
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4406
    ;;
 
4407
  *)
 
4408
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4409
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4410
    ;;
 
4411
  esac
 
4412
  ;;
 
4413
 
 
4414
irix5* | irix6* | nonstopux*)
 
4415
  case $LD in
 
4416
  *-32|*"-32 ") libmagic=32-bit;;
 
4417
  *-n32|*"-n32 ") libmagic=N32;;
 
4418
  *-64|*"-64 ") libmagic=64-bit;;
 
4419
  *) libmagic=never-match;;
 
4420
  esac
 
4421
  lt_cv_deplibs_check_method=pass_all
 
4422
  ;;
 
4423
 
 
4424
# This must be Linux ELF.
 
4425
linux*)
 
4426
  lt_cv_deplibs_check_method=pass_all
 
4427
  ;;
 
4428
 
 
4429
netbsd* | knetbsd*-gnu)
 
4430
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4431
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4432
  else
 
4433
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4434
  fi
 
4435
  ;;
 
4436
 
 
4437
newos6*)
 
4438
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4439
  lt_cv_file_magic_cmd=/usr/bin/file
 
4440
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4441
  ;;
 
4442
 
 
4443
nto-qnx*)
 
4444
  lt_cv_deplibs_check_method=unknown
 
4445
  ;;
 
4446
 
 
4447
openbsd*)
 
4448
  lt_cv_file_magic_cmd=/usr/bin/file
 
4449
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4450
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4451
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4452
  else
 
4453
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4454
  fi
 
4455
  ;;
 
4456
 
 
4457
osf3* | osf4* | osf5*)
 
4458
  lt_cv_deplibs_check_method=pass_all
 
4459
  ;;
 
4460
 
 
4461
sco3.2v5*)
 
4462
  lt_cv_deplibs_check_method=pass_all
 
4463
  ;;
 
4464
 
 
4465
solaris*)
 
4466
  lt_cv_deplibs_check_method=pass_all
 
4467
  ;;
 
4468
 
 
4469
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4470
  case $host_vendor in
 
4471
  motorola)
 
4472
    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]'
 
4473
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4474
    ;;
 
4475
  ncr)
 
4476
    lt_cv_deplibs_check_method=pass_all
 
4477
    ;;
 
4478
  sequent)
 
4479
    lt_cv_file_magic_cmd='/bin/file'
 
4480
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4481
    ;;
 
4482
  sni)
 
4483
    lt_cv_file_magic_cmd='/bin/file'
 
4484
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4485
    lt_cv_file_magic_test_file=/lib/libc.so
 
4486
    ;;
 
4487
  siemens)
 
4488
    lt_cv_deplibs_check_method=pass_all
 
4489
    ;;
 
4490
  esac
 
4491
  ;;
 
4492
 
 
4493
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4494
  lt_cv_deplibs_check_method=pass_all
 
4495
  ;;
 
4496
esac
 
4497
 
 
4498
fi
 
4499
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4500
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4501
file_magic_cmd=$lt_cv_file_magic_cmd
 
4502
deplibs_check_method=$lt_cv_deplibs_check_method
 
4503
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4504
 
 
4505
 
 
4506
# If no C compiler was specified, use CC.
 
4507
LTCC=${LTCC-"$CC"}
 
4508
 
 
4509
# Allow CC to be a program name with arguments.
 
4510
compiler=$CC
 
4511
 
 
4512
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4513
if test "${enable_libtool_lock+set}" = set; then
 
4514
  enableval="$enable_libtool_lock"
 
4515
 
 
4516
fi;
 
4517
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4518
 
 
4519
# Some flags need to be propagated to the compiler or linker for good
 
4520
# libtool support.
 
4521
case $host in
 
4522
ia64-*-hpux*)
 
4523
  # Find out which ABI we are using.
 
4524
  echo 'int i;' > conftest.$ac_ext
 
4525
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4526
  (eval $ac_compile) 2>&5
 
4527
  ac_status=$?
 
4528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4529
  (exit $ac_status); }; then
 
4530
    case `/usr/bin/file conftest.$ac_objext` in
 
4531
    *ELF-32*)
 
4532
      HPUX_IA64_MODE="32"
 
4533
      ;;
 
4534
    *ELF-64*)
 
4535
      HPUX_IA64_MODE="64"
 
4536
      ;;
 
4537
    esac
 
4538
  fi
 
4539
  rm -rf conftest*
 
4540
  ;;
 
4541
*-*-irix6*)
 
4542
  # Find out which ABI we are using.
 
4543
  echo '#line 4543 "configure"' > conftest.$ac_ext
 
4544
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4545
  (eval $ac_compile) 2>&5
 
4546
  ac_status=$?
 
4547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4548
  (exit $ac_status); }; then
 
4549
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4550
    case `/usr/bin/file conftest.$ac_objext` in
 
4551
    *32-bit*)
 
4552
      LD="${LD-ld} -melf32bsmip"
 
4553
      ;;
 
4554
    *N32*)
 
4555
      LD="${LD-ld} -melf32bmipn32"
 
4556
      ;;
 
4557
    *64-bit*)
 
4558
      LD="${LD-ld} -melf64bmip"
 
4559
      ;;
 
4560
    esac
 
4561
   else
 
4562
    case `/usr/bin/file conftest.$ac_objext` in
 
4563
    *32-bit*)
 
4564
      LD="${LD-ld} -32"
 
4565
      ;;
 
4566
    *N32*)
 
4567
      LD="${LD-ld} -n32"
 
4568
      ;;
 
4569
    *64-bit*)
 
4570
      LD="${LD-ld} -64"
 
4571
      ;;
 
4572
    esac
 
4573
   fi
 
4574
  fi
 
4575
  rm -rf conftest*
 
4576
  ;;
 
4577
 
 
4578
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4579
  # Find out which ABI we are using.
 
4580
  echo 'int i;' > conftest.$ac_ext
 
4581
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4582
  (eval $ac_compile) 2>&5
 
4583
  ac_status=$?
 
4584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4585
  (exit $ac_status); }; then
 
4586
    case "`/usr/bin/file conftest.o`" in
 
4587
    *32-bit*)
 
4588
      case $host in
 
4589
        x86_64-*linux*)
 
4590
          LD="${LD-ld} -m elf_i386"
 
4591
          ;;
 
4592
        ppc64-*linux*|powerpc64-*linux*)
 
4593
          LD="${LD-ld} -m elf32ppclinux"
 
4594
          ;;
 
4595
        s390x-*linux*)
 
4596
          LD="${LD-ld} -m elf_s390"
 
4597
          ;;
 
4598
        sparc64-*linux*)
 
4599
          LD="${LD-ld} -m elf32_sparc"
 
4600
          ;;
 
4601
      esac
 
4602
      ;;
 
4603
    *64-bit*)
 
4604
      case $host in
 
4605
        x86_64-*linux*)
 
4606
          LD="${LD-ld} -m elf_x86_64"
 
4607
          ;;
 
4608
        ppc*-*linux*|powerpc*-*linux*)
 
4609
          LD="${LD-ld} -m elf64ppc"
 
4610
          ;;
 
4611
        s390*-*linux*)
 
4612
          LD="${LD-ld} -m elf64_s390"
 
4613
          ;;
 
4614
        sparc*-*linux*)
 
4615
          LD="${LD-ld} -m elf64_sparc"
 
4616
          ;;
 
4617
      esac
 
4618
      ;;
 
4619
    esac
 
4620
  fi
 
4621
  rm -rf conftest*
 
4622
  ;;
 
4623
 
 
4624
*-*-sco3.2v5*)
 
4625
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4626
  SAVE_CFLAGS="$CFLAGS"
 
4627
  CFLAGS="$CFLAGS -belf"
 
4628
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4629
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4630
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4632
else
 
4633
  ac_ext=c
 
4634
ac_cpp='$CPP $CPPFLAGS'
 
4635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4638
 
 
4639
     cat >conftest.$ac_ext <<_ACEOF
 
4640
/* confdefs.h.  */
 
4641
_ACEOF
 
4642
cat confdefs.h >>conftest.$ac_ext
 
4643
cat >>conftest.$ac_ext <<_ACEOF
 
4644
/* end confdefs.h.  */
 
4645
 
 
4646
int
 
4647
main ()
 
4648
{
 
4649
 
 
4650
  ;
 
4651
  return 0;
 
4652
}
 
4653
_ACEOF
 
4654
rm -f conftest.$ac_objext conftest$ac_exeext
 
4655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4656
  (eval $ac_link) 2>conftest.er1
 
4657
  ac_status=$?
 
4658
  grep -v '^ *+' conftest.er1 >conftest.err
 
4659
  rm -f conftest.er1
 
4660
  cat conftest.err >&5
 
4661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4662
  (exit $ac_status); } &&
 
4663
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4665
  (eval $ac_try) 2>&5
 
4666
  ac_status=$?
 
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); }; } &&
 
4669
         { ac_try='test -s conftest$ac_exeext'
 
4670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4671
  (eval $ac_try) 2>&5
 
4672
  ac_status=$?
 
4673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); }; }; then
 
4675
  lt_cv_cc_needs_belf=yes
 
4676
else
 
4677
  echo "$as_me: failed program was:" >&5
 
4678
sed 's/^/| /' conftest.$ac_ext >&5
 
4679
 
 
4680
lt_cv_cc_needs_belf=no
 
4681
fi
 
4682
rm -f conftest.err conftest.$ac_objext \
 
4683
      conftest$ac_exeext conftest.$ac_ext
 
4684
     ac_ext=c
 
4685
ac_cpp='$CPP $CPPFLAGS'
 
4686
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4687
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4688
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4689
 
 
4690
fi
 
4691
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4692
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4693
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4694
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4695
    CFLAGS="$SAVE_CFLAGS"
 
4696
  fi
 
4697
  ;;
 
4698
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
4699
  if test -n "$ac_tool_prefix"; then
 
4700
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4701
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4702
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4703
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4704
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4706
else
 
4707
  if test -n "$DLLTOOL"; then
 
4708
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4709
else
 
4710
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4711
for as_dir in $PATH
 
4712
do
 
4713
  IFS=$as_save_IFS
 
4714
  test -z "$as_dir" && as_dir=.
 
4715
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4716
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4717
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4718
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4719
    break 2
 
4720
  fi
 
4721
done
 
4722
done
 
4723
 
 
4724
fi
 
4725
fi
 
4726
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4727
if test -n "$DLLTOOL"; then
 
4728
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4729
echo "${ECHO_T}$DLLTOOL" >&6
 
4730
else
 
4731
  echo "$as_me:$LINENO: result: no" >&5
 
4732
echo "${ECHO_T}no" >&6
 
4733
fi
 
4734
 
 
4735
fi
 
4736
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4737
  ac_ct_DLLTOOL=$DLLTOOL
 
4738
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4739
set dummy dlltool; ac_word=$2
 
4740
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4741
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4742
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4744
else
 
4745
  if test -n "$ac_ct_DLLTOOL"; then
 
4746
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4747
else
 
4748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4749
for as_dir in $PATH
 
4750
do
 
4751
  IFS=$as_save_IFS
 
4752
  test -z "$as_dir" && as_dir=.
 
4753
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4754
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4755
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4756
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4757
    break 2
 
4758
  fi
 
4759
done
 
4760
done
 
4761
 
 
4762
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
4763
fi
 
4764
fi
 
4765
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4766
if test -n "$ac_ct_DLLTOOL"; then
 
4767
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4768
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4769
else
 
4770
  echo "$as_me:$LINENO: result: no" >&5
 
4771
echo "${ECHO_T}no" >&6
 
4772
fi
 
4773
 
 
4774
  DLLTOOL=$ac_ct_DLLTOOL
 
4775
else
 
4776
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4777
fi
 
4778
 
 
4779
  if test -n "$ac_tool_prefix"; then
 
4780
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4781
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4782
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4784
if test "${ac_cv_prog_AS+set}" = set; then
 
4785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4786
else
 
4787
  if test -n "$AS"; then
 
4788
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4789
else
 
4790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4791
for as_dir in $PATH
 
4792
do
 
4793
  IFS=$as_save_IFS
 
4794
  test -z "$as_dir" && as_dir=.
 
4795
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4796
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4797
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4798
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4799
    break 2
 
4800
  fi
 
4801
done
 
4802
done
 
4803
 
 
4804
fi
 
4805
fi
 
4806
AS=$ac_cv_prog_AS
 
4807
if test -n "$AS"; then
 
4808
  echo "$as_me:$LINENO: result: $AS" >&5
 
4809
echo "${ECHO_T}$AS" >&6
 
4810
else
 
4811
  echo "$as_me:$LINENO: result: no" >&5
 
4812
echo "${ECHO_T}no" >&6
 
4813
fi
 
4814
 
 
4815
fi
 
4816
if test -z "$ac_cv_prog_AS"; then
 
4817
  ac_ct_AS=$AS
 
4818
  # Extract the first word of "as", so it can be a program name with args.
 
4819
set dummy as; ac_word=$2
 
4820
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4822
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4824
else
 
4825
  if test -n "$ac_ct_AS"; then
 
4826
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4827
else
 
4828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4829
for as_dir in $PATH
 
4830
do
 
4831
  IFS=$as_save_IFS
 
4832
  test -z "$as_dir" && as_dir=.
 
4833
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4834
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4835
    ac_cv_prog_ac_ct_AS="as"
 
4836
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4837
    break 2
 
4838
  fi
 
4839
done
 
4840
done
 
4841
 
 
4842
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
4843
fi
 
4844
fi
 
4845
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4846
if test -n "$ac_ct_AS"; then
 
4847
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4848
echo "${ECHO_T}$ac_ct_AS" >&6
 
4849
else
 
4850
  echo "$as_me:$LINENO: result: no" >&5
 
4851
echo "${ECHO_T}no" >&6
 
4852
fi
 
4853
 
 
4854
  AS=$ac_ct_AS
 
4855
else
 
4856
  AS="$ac_cv_prog_AS"
 
4857
fi
 
4858
 
 
4859
  if test -n "$ac_tool_prefix"; then
 
4860
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4861
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4862
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4863
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4864
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4866
else
 
4867
  if test -n "$OBJDUMP"; then
 
4868
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4869
else
 
4870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4871
for as_dir in $PATH
 
4872
do
 
4873
  IFS=$as_save_IFS
 
4874
  test -z "$as_dir" && as_dir=.
 
4875
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4876
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4877
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4878
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4879
    break 2
 
4880
  fi
 
4881
done
 
4882
done
 
4883
 
 
4884
fi
 
4885
fi
 
4886
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4887
if test -n "$OBJDUMP"; then
 
4888
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4889
echo "${ECHO_T}$OBJDUMP" >&6
 
4890
else
 
4891
  echo "$as_me:$LINENO: result: no" >&5
 
4892
echo "${ECHO_T}no" >&6
 
4893
fi
 
4894
 
 
4895
fi
 
4896
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4897
  ac_ct_OBJDUMP=$OBJDUMP
 
4898
  # Extract the first word of "objdump", so it can be a program name with args.
 
4899
set dummy objdump; ac_word=$2
 
4900
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4901
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4902
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4904
else
 
4905
  if test -n "$ac_ct_OBJDUMP"; then
 
4906
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4907
else
 
4908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4909
for as_dir in $PATH
 
4910
do
 
4911
  IFS=$as_save_IFS
 
4912
  test -z "$as_dir" && as_dir=.
 
4913
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4914
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4915
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4916
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4917
    break 2
 
4918
  fi
 
4919
done
 
4920
done
 
4921
 
 
4922
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
4923
fi
 
4924
fi
 
4925
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4926
if test -n "$ac_ct_OBJDUMP"; then
 
4927
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4928
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
4929
else
 
4930
  echo "$as_me:$LINENO: result: no" >&5
 
4931
echo "${ECHO_T}no" >&6
 
4932
fi
 
4933
 
 
4934
  OBJDUMP=$ac_ct_OBJDUMP
 
4935
else
 
4936
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4937
fi
 
4938
 
 
4939
  ;;
 
4940
 
 
4941
esac
 
4942
 
 
4943
need_locks="$enable_libtool_lock"
 
4944
 
 
4945
 
 
4946
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4947
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4948
if test "${ac_cv_header_stdc+set}" = set; then
 
4949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4950
else
 
4951
  cat >conftest.$ac_ext <<_ACEOF
 
4952
/* confdefs.h.  */
 
4953
_ACEOF
 
4954
cat confdefs.h >>conftest.$ac_ext
 
4955
cat >>conftest.$ac_ext <<_ACEOF
 
4956
/* end confdefs.h.  */
 
4957
#include <stdlib.h>
 
4958
#include <stdarg.h>
 
4959
#include <string.h>
 
4960
#include <float.h>
 
4961
 
 
4962
int
 
4963
main ()
 
4964
{
 
4965
 
 
4966
  ;
 
4967
  return 0;
 
4968
}
 
4969
_ACEOF
 
4970
rm -f conftest.$ac_objext
 
4971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4972
  (eval $ac_compile) 2>conftest.er1
 
4973
  ac_status=$?
 
4974
  grep -v '^ *+' conftest.er1 >conftest.err
 
4975
  rm -f conftest.er1
 
4976
  cat conftest.err >&5
 
4977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4978
  (exit $ac_status); } &&
 
4979
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4981
  (eval $ac_try) 2>&5
 
4982
  ac_status=$?
 
4983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4984
  (exit $ac_status); }; } &&
 
4985
         { ac_try='test -s conftest.$ac_objext'
 
4986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4987
  (eval $ac_try) 2>&5
 
4988
  ac_status=$?
 
4989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4990
  (exit $ac_status); }; }; then
 
4991
  ac_cv_header_stdc=yes
 
4992
else
 
4993
  echo "$as_me: failed program was:" >&5
 
4994
sed 's/^/| /' conftest.$ac_ext >&5
 
4995
 
 
4996
ac_cv_header_stdc=no
 
4997
fi
 
4998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4999
 
 
5000
if test $ac_cv_header_stdc = yes; then
 
5001
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5002
  cat >conftest.$ac_ext <<_ACEOF
 
5003
/* confdefs.h.  */
 
5004
_ACEOF
 
5005
cat confdefs.h >>conftest.$ac_ext
 
5006
cat >>conftest.$ac_ext <<_ACEOF
 
5007
/* end confdefs.h.  */
 
5008
#include <string.h>
 
5009
 
 
5010
_ACEOF
 
5011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5012
  $EGREP "memchr" >/dev/null 2>&1; then
 
5013
  :
 
5014
else
 
5015
  ac_cv_header_stdc=no
 
5016
fi
 
5017
rm -f conftest*
 
5018
 
 
5019
fi
 
5020
 
 
5021
if test $ac_cv_header_stdc = yes; then
 
5022
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5023
  cat >conftest.$ac_ext <<_ACEOF
 
5024
/* confdefs.h.  */
 
5025
_ACEOF
 
5026
cat confdefs.h >>conftest.$ac_ext
 
5027
cat >>conftest.$ac_ext <<_ACEOF
 
5028
/* end confdefs.h.  */
 
5029
#include <stdlib.h>
 
5030
 
 
5031
_ACEOF
 
5032
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5033
  $EGREP "free" >/dev/null 2>&1; then
 
5034
  :
 
5035
else
 
5036
  ac_cv_header_stdc=no
 
5037
fi
 
5038
rm -f conftest*
 
5039
 
 
5040
fi
 
5041
 
 
5042
if test $ac_cv_header_stdc = yes; then
 
5043
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5044
  if test "$cross_compiling" = yes; then
 
5045
  :
 
5046
else
 
5047
  cat >conftest.$ac_ext <<_ACEOF
 
5048
/* confdefs.h.  */
 
5049
_ACEOF
 
5050
cat confdefs.h >>conftest.$ac_ext
 
5051
cat >>conftest.$ac_ext <<_ACEOF
 
5052
/* end confdefs.h.  */
 
5053
#include <ctype.h>
 
5054
#if ((' ' & 0x0FF) == 0x020)
 
5055
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5056
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5057
#else
 
5058
# define ISLOWER(c) \
 
5059
                   (('a' <= (c) && (c) <= 'i') \
 
5060
                     || ('j' <= (c) && (c) <= 'r') \
 
5061
                     || ('s' <= (c) && (c) <= 'z'))
 
5062
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5063
#endif
 
5064
 
 
5065
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5066
int
 
5067
main ()
 
5068
{
 
5069
  int i;
 
5070
  for (i = 0; i < 256; i++)
 
5071
    if (XOR (islower (i), ISLOWER (i))
 
5072
        || toupper (i) != TOUPPER (i))
 
5073
      exit(2);
 
5074
  exit (0);
 
5075
}
 
5076
_ACEOF
 
5077
rm -f conftest$ac_exeext
 
5078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5079
  (eval $ac_link) 2>&5
 
5080
  ac_status=$?
 
5081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5082
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5084
  (eval $ac_try) 2>&5
 
5085
  ac_status=$?
 
5086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5087
  (exit $ac_status); }; }; then
 
5088
  :
 
5089
else
 
5090
  echo "$as_me: program exited with status $ac_status" >&5
 
5091
echo "$as_me: failed program was:" >&5
 
5092
sed 's/^/| /' conftest.$ac_ext >&5
 
5093
 
 
5094
( exit $ac_status )
 
5095
ac_cv_header_stdc=no
 
5096
fi
 
5097
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5098
fi
 
5099
fi
 
5100
fi
 
5101
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5102
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5103
if test $ac_cv_header_stdc = yes; then
 
5104
 
 
5105
cat >>confdefs.h <<\_ACEOF
 
5106
#define STDC_HEADERS 1
 
5107
_ACEOF
 
5108
 
 
5109
fi
 
5110
 
 
5111
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5112
 
 
5113
 
 
5114
 
 
5115
 
 
5116
 
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5122
                  inttypes.h stdint.h unistd.h
 
5123
do
 
5124
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5125
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5126
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5127
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5129
else
 
5130
  cat >conftest.$ac_ext <<_ACEOF
 
5131
/* confdefs.h.  */
 
5132
_ACEOF
 
5133
cat confdefs.h >>conftest.$ac_ext
 
5134
cat >>conftest.$ac_ext <<_ACEOF
 
5135
/* end confdefs.h.  */
 
5136
$ac_includes_default
 
5137
 
 
5138
#include <$ac_header>
 
5139
_ACEOF
 
5140
rm -f conftest.$ac_objext
 
5141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5142
  (eval $ac_compile) 2>conftest.er1
 
5143
  ac_status=$?
 
5144
  grep -v '^ *+' conftest.er1 >conftest.err
 
5145
  rm -f conftest.er1
 
5146
  cat conftest.err >&5
 
5147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5148
  (exit $ac_status); } &&
 
5149
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5151
  (eval $ac_try) 2>&5
 
5152
  ac_status=$?
 
5153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5154
  (exit $ac_status); }; } &&
 
5155
         { ac_try='test -s conftest.$ac_objext'
 
5156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5157
  (eval $ac_try) 2>&5
 
5158
  ac_status=$?
 
5159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5160
  (exit $ac_status); }; }; then
 
5161
  eval "$as_ac_Header=yes"
 
5162
else
 
5163
  echo "$as_me: failed program was:" >&5
 
5164
sed 's/^/| /' conftest.$ac_ext >&5
 
5165
 
 
5166
eval "$as_ac_Header=no"
 
5167
fi
 
5168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5169
fi
 
5170
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5171
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5172
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5173
  cat >>confdefs.h <<_ACEOF
 
5174
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5175
_ACEOF
 
5176
 
 
5177
fi
 
5178
 
 
5179
done
 
5180
 
 
5181
 
 
5182
 
 
5183
for ac_header in dlfcn.h
 
5184
do
 
5185
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5187
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5188
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5189
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5191
fi
 
5192
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5193
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5194
else
 
5195
  # Is the header compilable?
 
5196
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5197
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5198
cat >conftest.$ac_ext <<_ACEOF
 
5199
/* confdefs.h.  */
 
5200
_ACEOF
 
5201
cat confdefs.h >>conftest.$ac_ext
 
5202
cat >>conftest.$ac_ext <<_ACEOF
 
5203
/* end confdefs.h.  */
 
5204
$ac_includes_default
 
5205
#include <$ac_header>
 
5206
_ACEOF
 
5207
rm -f conftest.$ac_objext
 
5208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5209
  (eval $ac_compile) 2>conftest.er1
 
5210
  ac_status=$?
 
5211
  grep -v '^ *+' conftest.er1 >conftest.err
 
5212
  rm -f conftest.er1
 
5213
  cat conftest.err >&5
 
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5215
  (exit $ac_status); } &&
 
5216
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5218
  (eval $ac_try) 2>&5
 
5219
  ac_status=$?
 
5220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5221
  (exit $ac_status); }; } &&
 
5222
         { ac_try='test -s conftest.$ac_objext'
 
5223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5224
  (eval $ac_try) 2>&5
 
5225
  ac_status=$?
 
5226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5227
  (exit $ac_status); }; }; then
 
5228
  ac_header_compiler=yes
 
5229
else
 
5230
  echo "$as_me: failed program was:" >&5
 
5231
sed 's/^/| /' conftest.$ac_ext >&5
 
5232
 
 
5233
ac_header_compiler=no
 
5234
fi
 
5235
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5236
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5237
echo "${ECHO_T}$ac_header_compiler" >&6
 
5238
 
 
5239
# Is the header present?
 
5240
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5241
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5242
cat >conftest.$ac_ext <<_ACEOF
 
5243
/* confdefs.h.  */
 
5244
_ACEOF
 
5245
cat confdefs.h >>conftest.$ac_ext
 
5246
cat >>conftest.$ac_ext <<_ACEOF
 
5247
/* end confdefs.h.  */
 
5248
#include <$ac_header>
 
5249
_ACEOF
 
5250
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5251
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5252
  ac_status=$?
 
5253
  grep -v '^ *+' conftest.er1 >conftest.err
 
5254
  rm -f conftest.er1
 
5255
  cat conftest.err >&5
 
5256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5257
  (exit $ac_status); } >/dev/null; then
 
5258
  if test -s conftest.err; then
 
5259
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5260
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5261
  else
 
5262
    ac_cpp_err=
 
5263
  fi
 
5264
else
 
5265
  ac_cpp_err=yes
 
5266
fi
 
5267
if test -z "$ac_cpp_err"; then
 
5268
  ac_header_preproc=yes
 
5269
else
 
5270
  echo "$as_me: failed program was:" >&5
 
5271
sed 's/^/| /' conftest.$ac_ext >&5
 
5272
 
 
5273
  ac_header_preproc=no
 
5274
fi
 
5275
rm -f conftest.err conftest.$ac_ext
 
5276
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5277
echo "${ECHO_T}$ac_header_preproc" >&6
 
5278
 
 
5279
# So?  What about this header?
 
5280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5281
  yes:no: )
 
5282
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5283
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5284
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5285
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5286
    ac_header_preproc=yes
 
5287
    ;;
 
5288
  no:yes:* )
 
5289
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5290
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5291
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5292
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5293
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5294
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5295
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5296
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5297
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5298
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5299
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5300
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5301
    (
 
5302
      cat <<\_ASBOX
 
5303
## ------------------------------------------ ##
 
5304
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5305
## ------------------------------------------ ##
 
5306
_ASBOX
 
5307
    ) |
 
5308
      sed "s/^/$as_me: WARNING:     /" >&2
 
5309
    ;;
 
5310
esac
 
5311
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5315
else
 
5316
  eval "$as_ac_Header=\$ac_header_preproc"
 
5317
fi
 
5318
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5319
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5320
 
 
5321
fi
 
5322
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5323
  cat >>confdefs.h <<_ACEOF
 
5324
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5325
_ACEOF
 
5326
 
 
5327
fi
 
5328
 
 
5329
done
 
5330
 
 
5331
ac_ext=cc
 
5332
ac_cpp='$CXXCPP $CPPFLAGS'
 
5333
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5334
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5335
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5336
if test -n "$ac_tool_prefix"; then
 
5337
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5338
  do
 
5339
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5340
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5341
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5343
if test "${ac_cv_prog_CXX+set}" = set; then
 
5344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5345
else
 
5346
  if test -n "$CXX"; then
 
5347
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5348
else
 
5349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5350
for as_dir in $PATH
 
5351
do
 
5352
  IFS=$as_save_IFS
 
5353
  test -z "$as_dir" && as_dir=.
 
5354
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5355
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5356
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5357
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5358
    break 2
 
5359
  fi
 
5360
done
 
5361
done
 
5362
 
 
5363
fi
 
5364
fi
 
5365
CXX=$ac_cv_prog_CXX
 
5366
if test -n "$CXX"; then
 
5367
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5368
echo "${ECHO_T}$CXX" >&6
 
5369
else
 
5370
  echo "$as_me:$LINENO: result: no" >&5
 
5371
echo "${ECHO_T}no" >&6
 
5372
fi
 
5373
 
 
5374
    test -n "$CXX" && break
 
5375
  done
 
5376
fi
 
5377
if test -z "$CXX"; then
 
5378
  ac_ct_CXX=$CXX
 
5379
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5380
do
 
5381
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5382
set dummy $ac_prog; ac_word=$2
 
5383
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5385
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5387
else
 
5388
  if test -n "$ac_ct_CXX"; then
 
5389
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5390
else
 
5391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5392
for as_dir in $PATH
 
5393
do
 
5394
  IFS=$as_save_IFS
 
5395
  test -z "$as_dir" && as_dir=.
 
5396
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5397
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5398
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5399
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5400
    break 2
 
5401
  fi
 
5402
done
 
5403
done
 
5404
 
 
5405
fi
 
5406
fi
 
5407
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5408
if test -n "$ac_ct_CXX"; then
 
5409
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5410
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5411
else
 
5412
  echo "$as_me:$LINENO: result: no" >&5
 
5413
echo "${ECHO_T}no" >&6
 
5414
fi
 
5415
 
 
5416
  test -n "$ac_ct_CXX" && break
 
5417
done
 
5418
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5419
 
 
5420
  CXX=$ac_ct_CXX
 
5421
fi
 
5422
 
 
5423
 
 
5424
# Provide some information about the compiler.
 
5425
echo "$as_me:$LINENO:" \
 
5426
     "checking for C++ compiler version" >&5
 
5427
ac_compiler=`set X $ac_compile; echo $2`
 
5428
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5429
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5430
  ac_status=$?
 
5431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5432
  (exit $ac_status); }
 
5433
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5434
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5435
  ac_status=$?
 
5436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5437
  (exit $ac_status); }
 
5438
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5439
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5440
  ac_status=$?
 
5441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5442
  (exit $ac_status); }
 
5443
 
 
5444
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5445
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5446
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5448
else
 
5449
  cat >conftest.$ac_ext <<_ACEOF
 
5450
/* confdefs.h.  */
 
5451
_ACEOF
 
5452
cat confdefs.h >>conftest.$ac_ext
 
5453
cat >>conftest.$ac_ext <<_ACEOF
 
5454
/* end confdefs.h.  */
 
5455
 
 
5456
int
 
5457
main ()
 
5458
{
 
5459
#ifndef __GNUC__
 
5460
       choke me
 
5461
#endif
 
5462
 
 
5463
  ;
 
5464
  return 0;
 
5465
}
 
5466
_ACEOF
 
5467
rm -f conftest.$ac_objext
 
5468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5469
  (eval $ac_compile) 2>conftest.er1
 
5470
  ac_status=$?
 
5471
  grep -v '^ *+' conftest.er1 >conftest.err
 
5472
  rm -f conftest.er1
 
5473
  cat conftest.err >&5
 
5474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5475
  (exit $ac_status); } &&
 
5476
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5478
  (eval $ac_try) 2>&5
 
5479
  ac_status=$?
 
5480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5481
  (exit $ac_status); }; } &&
 
5482
         { ac_try='test -s conftest.$ac_objext'
 
5483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5484
  (eval $ac_try) 2>&5
 
5485
  ac_status=$?
 
5486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5487
  (exit $ac_status); }; }; then
 
5488
  ac_compiler_gnu=yes
 
5489
else
 
5490
  echo "$as_me: failed program was:" >&5
 
5491
sed 's/^/| /' conftest.$ac_ext >&5
 
5492
 
 
5493
ac_compiler_gnu=no
 
5494
fi
 
5495
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5496
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5497
 
 
5498
fi
 
5499
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5500
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5501
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5502
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5503
ac_save_CXXFLAGS=$CXXFLAGS
 
5504
CXXFLAGS="-g"
 
5505
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5506
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5507
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5509
else
 
5510
  cat >conftest.$ac_ext <<_ACEOF
 
5511
/* confdefs.h.  */
 
5512
_ACEOF
 
5513
cat confdefs.h >>conftest.$ac_ext
 
5514
cat >>conftest.$ac_ext <<_ACEOF
 
5515
/* end confdefs.h.  */
 
5516
 
 
5517
int
 
5518
main ()
 
5519
{
 
5520
 
 
5521
  ;
 
5522
  return 0;
 
5523
}
 
5524
_ACEOF
 
5525
rm -f conftest.$ac_objext
 
5526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5527
  (eval $ac_compile) 2>conftest.er1
 
5528
  ac_status=$?
 
5529
  grep -v '^ *+' conftest.er1 >conftest.err
 
5530
  rm -f conftest.er1
 
5531
  cat conftest.err >&5
 
5532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5533
  (exit $ac_status); } &&
 
5534
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5536
  (eval $ac_try) 2>&5
 
5537
  ac_status=$?
 
5538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5539
  (exit $ac_status); }; } &&
 
5540
         { ac_try='test -s conftest.$ac_objext'
 
5541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5542
  (eval $ac_try) 2>&5
 
5543
  ac_status=$?
 
5544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5545
  (exit $ac_status); }; }; then
 
5546
  ac_cv_prog_cxx_g=yes
 
5547
else
 
5548
  echo "$as_me: failed program was:" >&5
 
5549
sed 's/^/| /' conftest.$ac_ext >&5
 
5550
 
 
5551
ac_cv_prog_cxx_g=no
 
5552
fi
 
5553
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5554
fi
 
5555
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5556
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5557
if test "$ac_test_CXXFLAGS" = set; then
 
5558
  CXXFLAGS=$ac_save_CXXFLAGS
 
5559
elif test $ac_cv_prog_cxx_g = yes; then
 
5560
  if test "$GXX" = yes; then
 
5561
    CXXFLAGS="-g -O2"
 
5562
  else
 
5563
    CXXFLAGS="-g"
 
5564
  fi
 
5565
else
 
5566
  if test "$GXX" = yes; then
 
5567
    CXXFLAGS="-O2"
 
5568
  else
 
5569
    CXXFLAGS=
 
5570
  fi
 
5571
fi
 
5572
for ac_declaration in \
 
5573
   '' \
 
5574
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5575
   'extern "C" void std::exit (int); using std::exit;' \
 
5576
   'extern "C" void exit (int) throw ();' \
 
5577
   'extern "C" void exit (int);' \
 
5578
   'void exit (int);'
 
5579
do
 
5580
  cat >conftest.$ac_ext <<_ACEOF
 
5581
/* confdefs.h.  */
 
5582
_ACEOF
 
5583
cat confdefs.h >>conftest.$ac_ext
 
5584
cat >>conftest.$ac_ext <<_ACEOF
 
5585
/* end confdefs.h.  */
 
5586
$ac_declaration
 
5587
#include <stdlib.h>
 
5588
int
 
5589
main ()
 
5590
{
 
5591
exit (42);
 
5592
  ;
 
5593
  return 0;
 
5594
}
 
5595
_ACEOF
 
5596
rm -f conftest.$ac_objext
 
5597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5598
  (eval $ac_compile) 2>conftest.er1
 
5599
  ac_status=$?
 
5600
  grep -v '^ *+' conftest.er1 >conftest.err
 
5601
  rm -f conftest.er1
 
5602
  cat conftest.err >&5
 
5603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5604
  (exit $ac_status); } &&
 
5605
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5607
  (eval $ac_try) 2>&5
 
5608
  ac_status=$?
 
5609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5610
  (exit $ac_status); }; } &&
 
5611
         { ac_try='test -s conftest.$ac_objext'
 
5612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5613
  (eval $ac_try) 2>&5
 
5614
  ac_status=$?
 
5615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5616
  (exit $ac_status); }; }; then
 
5617
  :
 
5618
else
 
5619
  echo "$as_me: failed program was:" >&5
 
5620
sed 's/^/| /' conftest.$ac_ext >&5
 
5621
 
 
5622
continue
 
5623
fi
 
5624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5625
  cat >conftest.$ac_ext <<_ACEOF
 
5626
/* confdefs.h.  */
 
5627
_ACEOF
 
5628
cat confdefs.h >>conftest.$ac_ext
 
5629
cat >>conftest.$ac_ext <<_ACEOF
 
5630
/* end confdefs.h.  */
 
5631
$ac_declaration
 
5632
int
 
5633
main ()
 
5634
{
 
5635
exit (42);
 
5636
  ;
 
5637
  return 0;
 
5638
}
 
5639
_ACEOF
 
5640
rm -f conftest.$ac_objext
 
5641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5642
  (eval $ac_compile) 2>conftest.er1
 
5643
  ac_status=$?
 
5644
  grep -v '^ *+' conftest.er1 >conftest.err
 
5645
  rm -f conftest.er1
 
5646
  cat conftest.err >&5
 
5647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5648
  (exit $ac_status); } &&
 
5649
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5651
  (eval $ac_try) 2>&5
 
5652
  ac_status=$?
 
5653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5654
  (exit $ac_status); }; } &&
 
5655
         { ac_try='test -s conftest.$ac_objext'
 
5656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5657
  (eval $ac_try) 2>&5
 
5658
  ac_status=$?
 
5659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5660
  (exit $ac_status); }; }; then
 
5661
  break
 
5662
else
 
5663
  echo "$as_me: failed program was:" >&5
 
5664
sed 's/^/| /' conftest.$ac_ext >&5
 
5665
 
 
5666
fi
 
5667
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5668
done
 
5669
rm -f conftest*
 
5670
if test -n "$ac_declaration"; then
 
5671
  echo '#ifdef __cplusplus' >>confdefs.h
 
5672
  echo $ac_declaration      >>confdefs.h
 
5673
  echo '#endif'             >>confdefs.h
 
5674
fi
 
5675
 
 
5676
ac_ext=cc
 
5677
ac_cpp='$CXXCPP $CPPFLAGS'
 
5678
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5679
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5680
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5681
 
 
5682
depcc="$CXX"  am_compiler_list=
 
5683
 
 
5684
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5685
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5686
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5688
else
 
5689
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5690
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5691
  # making bogus files that we don't know about and never remove.  For
 
5692
  # instance it was reported that on HP-UX the gcc test will end up
 
5693
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5694
  # in D'.
 
5695
  mkdir conftest.dir
 
5696
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5697
  # using a relative directory.
 
5698
  cp "$am_depcomp" conftest.dir
 
5699
  cd conftest.dir
 
5700
  # We will build objects and dependencies in a subdirectory because
 
5701
  # it helps to detect inapplicable dependency modes.  For instance
 
5702
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5703
  # side effect of compilation, but ICC will put the dependencies in
 
5704
  # the current directory while Tru64 will put them in the object
 
5705
  # directory.
 
5706
  mkdir sub
 
5707
 
 
5708
  am_cv_CXX_dependencies_compiler_type=none
 
5709
  if test "$am_compiler_list" = ""; then
 
5710
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5711
  fi
 
5712
  for depmode in $am_compiler_list; do
 
5713
    # Setup a source with many dependencies, because some compilers
 
5714
    # like to wrap large dependency lists on column 80 (with \), and
 
5715
    # we should not choose a depcomp mode which is confused by this.
 
5716
    #
 
5717
    # We need to recreate these files for each test, as the compiler may
 
5718
    # overwrite some of them when testing with obscure command lines.
 
5719
    # This happens at least with the AIX C compiler.
 
5720
    : > sub/conftest.c
 
5721
    for i in 1 2 3 4 5 6; do
 
5722
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5723
      : > sub/conftst$i.h
 
5724
    done
 
5725
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5726
 
 
5727
    case $depmode in
 
5728
    nosideeffect)
 
5729
      # after this tag, mechanisms are not by side-effect, so they'll
 
5730
      # only be used when explicitly requested
 
5731
      if test "x$enable_dependency_tracking" = xyes; then
 
5732
        continue
 
5733
      else
 
5734
        break
 
5735
      fi
 
5736
      ;;
 
5737
    none) break ;;
 
5738
    esac
 
5739
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5740
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5741
    # handle `-M -o', and we need to detect this.
 
5742
    if depmode=$depmode \
 
5743
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5744
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5745
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5746
         >/dev/null 2>conftest.err &&
 
5747
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5748
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5749
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5750
      # icc doesn't choke on unknown options, it will just issue warnings
 
5751
      # (even with -Werror).  So we grep stderr for any message
 
5752
      # that says an option was ignored.
 
5753
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5754
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5755
        break
 
5756
      fi
 
5757
    fi
 
5758
  done
 
5759
 
 
5760
  cd ..
 
5761
  rm -rf conftest.dir
 
5762
else
 
5763
  am_cv_CXX_dependencies_compiler_type=none
 
5764
fi
 
5765
 
 
5766
fi
 
5767
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5768
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5769
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5770
 
 
5771
 
 
5772
 
 
5773
if
 
5774
  test "x$enable_dependency_tracking" != xno \
 
5775
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5776
  am__fastdepCXX_TRUE=
 
5777
  am__fastdepCXX_FALSE='#'
 
5778
else
 
5779
  am__fastdepCXX_TRUE='#'
 
5780
  am__fastdepCXX_FALSE=
 
5781
fi
 
5782
 
 
5783
 
 
5784
ac_ext=cc
 
5785
ac_cpp='$CXXCPP $CPPFLAGS'
 
5786
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5787
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5788
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5789
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5790
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5791
if test -z "$CXXCPP"; then
 
5792
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5794
else
 
5795
      # Double quotes because CXXCPP needs to be expanded
 
5796
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5797
    do
 
5798
      ac_preproc_ok=false
 
5799
for ac_cxx_preproc_warn_flag in '' yes
 
5800
do
 
5801
  # Use a header file that comes with gcc, so configuring glibc
 
5802
  # with a fresh cross-compiler works.
 
5803
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5804
  # <limits.h> exists even on freestanding compilers.
 
5805
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5806
  # not just through cpp. "Syntax error" is here to catch this case.
 
5807
  cat >conftest.$ac_ext <<_ACEOF
 
5808
/* confdefs.h.  */
 
5809
_ACEOF
 
5810
cat confdefs.h >>conftest.$ac_ext
 
5811
cat >>conftest.$ac_ext <<_ACEOF
 
5812
/* end confdefs.h.  */
 
5813
#ifdef __STDC__
 
5814
# include <limits.h>
 
5815
#else
 
5816
# include <assert.h>
 
5817
#endif
 
5818
                     Syntax error
 
5819
_ACEOF
 
5820
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5821
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5822
  ac_status=$?
 
5823
  grep -v '^ *+' conftest.er1 >conftest.err
 
5824
  rm -f conftest.er1
 
5825
  cat conftest.err >&5
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); } >/dev/null; then
 
5828
  if test -s conftest.err; then
 
5829
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5830
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5831
  else
 
5832
    ac_cpp_err=
 
5833
  fi
 
5834
else
 
5835
  ac_cpp_err=yes
 
5836
fi
 
5837
if test -z "$ac_cpp_err"; then
 
5838
  :
 
5839
else
 
5840
  echo "$as_me: failed program was:" >&5
 
5841
sed 's/^/| /' conftest.$ac_ext >&5
 
5842
 
 
5843
  # Broken: fails on valid input.
 
5844
continue
 
5845
fi
 
5846
rm -f conftest.err conftest.$ac_ext
 
5847
 
 
5848
  # OK, works on sane cases.  Now check whether non-existent headers
 
5849
  # can be detected and how.
 
5850
  cat >conftest.$ac_ext <<_ACEOF
 
5851
/* confdefs.h.  */
 
5852
_ACEOF
 
5853
cat confdefs.h >>conftest.$ac_ext
 
5854
cat >>conftest.$ac_ext <<_ACEOF
 
5855
/* end confdefs.h.  */
 
5856
#include <ac_nonexistent.h>
 
5857
_ACEOF
 
5858
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5859
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5860
  ac_status=$?
 
5861
  grep -v '^ *+' conftest.er1 >conftest.err
 
5862
  rm -f conftest.er1
 
5863
  cat conftest.err >&5
 
5864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5865
  (exit $ac_status); } >/dev/null; then
 
5866
  if test -s conftest.err; then
 
5867
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5868
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5869
  else
 
5870
    ac_cpp_err=
 
5871
  fi
 
5872
else
 
5873
  ac_cpp_err=yes
 
5874
fi
 
5875
if test -z "$ac_cpp_err"; then
 
5876
  # Broken: success on invalid input.
 
5877
continue
 
5878
else
 
5879
  echo "$as_me: failed program was:" >&5
 
5880
sed 's/^/| /' conftest.$ac_ext >&5
 
5881
 
 
5882
  # Passes both tests.
 
5883
ac_preproc_ok=:
 
5884
break
 
5885
fi
 
5886
rm -f conftest.err conftest.$ac_ext
 
5887
 
 
5888
done
 
5889
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5890
rm -f conftest.err conftest.$ac_ext
 
5891
if $ac_preproc_ok; then
 
5892
  break
 
5893
fi
 
5894
 
 
5895
    done
 
5896
    ac_cv_prog_CXXCPP=$CXXCPP
 
5897
 
 
5898
fi
 
5899
  CXXCPP=$ac_cv_prog_CXXCPP
 
5900
else
 
5901
  ac_cv_prog_CXXCPP=$CXXCPP
 
5902
fi
 
5903
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5904
echo "${ECHO_T}$CXXCPP" >&6
 
5905
ac_preproc_ok=false
 
5906
for ac_cxx_preproc_warn_flag in '' yes
 
5907
do
 
5908
  # Use a header file that comes with gcc, so configuring glibc
 
5909
  # with a fresh cross-compiler works.
 
5910
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5911
  # <limits.h> exists even on freestanding compilers.
 
5912
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5913
  # not just through cpp. "Syntax error" is here to catch this case.
 
5914
  cat >conftest.$ac_ext <<_ACEOF
 
5915
/* confdefs.h.  */
 
5916
_ACEOF
 
5917
cat confdefs.h >>conftest.$ac_ext
 
5918
cat >>conftest.$ac_ext <<_ACEOF
 
5919
/* end confdefs.h.  */
 
5920
#ifdef __STDC__
 
5921
# include <limits.h>
 
5922
#else
 
5923
# include <assert.h>
 
5924
#endif
 
5925
                     Syntax error
 
5926
_ACEOF
 
5927
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5928
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5929
  ac_status=$?
 
5930
  grep -v '^ *+' conftest.er1 >conftest.err
 
5931
  rm -f conftest.er1
 
5932
  cat conftest.err >&5
 
5933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5934
  (exit $ac_status); } >/dev/null; then
 
5935
  if test -s conftest.err; then
 
5936
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5937
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5938
  else
 
5939
    ac_cpp_err=
 
5940
  fi
 
5941
else
 
5942
  ac_cpp_err=yes
 
5943
fi
 
5944
if test -z "$ac_cpp_err"; then
 
5945
  :
 
5946
else
 
5947
  echo "$as_me: failed program was:" >&5
 
5948
sed 's/^/| /' conftest.$ac_ext >&5
 
5949
 
 
5950
  # Broken: fails on valid input.
 
5951
continue
 
5952
fi
 
5953
rm -f conftest.err conftest.$ac_ext
 
5954
 
 
5955
  # OK, works on sane cases.  Now check whether non-existent headers
 
5956
  # can be detected and how.
 
5957
  cat >conftest.$ac_ext <<_ACEOF
 
5958
/* confdefs.h.  */
 
5959
_ACEOF
 
5960
cat confdefs.h >>conftest.$ac_ext
 
5961
cat >>conftest.$ac_ext <<_ACEOF
 
5962
/* end confdefs.h.  */
 
5963
#include <ac_nonexistent.h>
 
5964
_ACEOF
 
5965
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5966
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5967
  ac_status=$?
 
5968
  grep -v '^ *+' conftest.er1 >conftest.err
 
5969
  rm -f conftest.er1
 
5970
  cat conftest.err >&5
 
5971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5972
  (exit $ac_status); } >/dev/null; then
 
5973
  if test -s conftest.err; then
 
5974
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5975
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5976
  else
 
5977
    ac_cpp_err=
 
5978
  fi
 
5979
else
 
5980
  ac_cpp_err=yes
 
5981
fi
 
5982
if test -z "$ac_cpp_err"; then
 
5983
  # Broken: success on invalid input.
 
5984
continue
 
5985
else
 
5986
  echo "$as_me: failed program was:" >&5
 
5987
sed 's/^/| /' conftest.$ac_ext >&5
 
5988
 
 
5989
  # Passes both tests.
 
5990
ac_preproc_ok=:
 
5991
break
 
5992
fi
 
5993
rm -f conftest.err conftest.$ac_ext
 
5994
 
 
5995
done
 
5996
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5997
rm -f conftest.err conftest.$ac_ext
 
5998
if $ac_preproc_ok; then
 
5999
  :
 
6000
else
 
6001
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6002
See \`config.log' for more details." >&5
 
6003
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6004
See \`config.log' for more details." >&2;}
 
6005
   { (exit 1); exit 1; }; }
 
6006
fi
 
6007
 
 
6008
ac_ext=cc
 
6009
ac_cpp='$CXXCPP $CPPFLAGS'
 
6010
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6011
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6012
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6013
 
 
6014
 
 
6015
ac_ext=f
 
6016
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6017
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6018
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6019
if test -n "$ac_tool_prefix"; then
 
6020
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6021
  do
 
6022
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6023
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6024
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6026
if test "${ac_cv_prog_F77+set}" = set; then
 
6027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6028
else
 
6029
  if test -n "$F77"; then
 
6030
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6031
else
 
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6033
for as_dir in $PATH
 
6034
do
 
6035
  IFS=$as_save_IFS
 
6036
  test -z "$as_dir" && as_dir=.
 
6037
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6038
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6039
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6040
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6041
    break 2
 
6042
  fi
 
6043
done
 
6044
done
 
6045
 
 
6046
fi
 
6047
fi
 
6048
F77=$ac_cv_prog_F77
 
6049
if test -n "$F77"; then
 
6050
  echo "$as_me:$LINENO: result: $F77" >&5
 
6051
echo "${ECHO_T}$F77" >&6
 
6052
else
 
6053
  echo "$as_me:$LINENO: result: no" >&5
 
6054
echo "${ECHO_T}no" >&6
 
6055
fi
 
6056
 
 
6057
    test -n "$F77" && break
 
6058
  done
 
6059
fi
 
6060
if test -z "$F77"; then
 
6061
  ac_ct_F77=$F77
 
6062
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6063
do
 
6064
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6065
set dummy $ac_prog; ac_word=$2
 
6066
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6068
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6070
else
 
6071
  if test -n "$ac_ct_F77"; then
 
6072
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6073
else
 
6074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6075
for as_dir in $PATH
 
6076
do
 
6077
  IFS=$as_save_IFS
 
6078
  test -z "$as_dir" && as_dir=.
 
6079
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6080
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6081
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6082
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6083
    break 2
 
6084
  fi
 
6085
done
 
6086
done
 
6087
 
 
6088
fi
 
6089
fi
 
6090
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6091
if test -n "$ac_ct_F77"; then
 
6092
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6093
echo "${ECHO_T}$ac_ct_F77" >&6
 
6094
else
 
6095
  echo "$as_me:$LINENO: result: no" >&5
 
6096
echo "${ECHO_T}no" >&6
 
6097
fi
 
6098
 
 
6099
  test -n "$ac_ct_F77" && break
 
6100
done
 
6101
 
 
6102
  F77=$ac_ct_F77
 
6103
fi
 
6104
 
 
6105
 
 
6106
# Provide some information about the compiler.
 
6107
echo "$as_me:6107:" \
 
6108
     "checking for Fortran 77 compiler version" >&5
 
6109
ac_compiler=`set X $ac_compile; echo $2`
 
6110
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6111
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6112
  ac_status=$?
 
6113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6114
  (exit $ac_status); }
 
6115
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6116
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6117
  ac_status=$?
 
6118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6119
  (exit $ac_status); }
 
6120
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6121
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6122
  ac_status=$?
 
6123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6124
  (exit $ac_status); }
 
6125
rm -f a.out
 
6126
 
 
6127
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6128
# input file.  (Note that this only needs to work for GNU compilers.)
 
6129
ac_save_ext=$ac_ext
 
6130
ac_ext=F
 
6131
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6132
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6133
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6135
else
 
6136
  cat >conftest.$ac_ext <<_ACEOF
 
6137
      program main
 
6138
#ifndef __GNUC__
 
6139
       choke me
 
6140
#endif
 
6141
 
 
6142
      end
 
6143
_ACEOF
 
6144
rm -f conftest.$ac_objext
 
6145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6146
  (eval $ac_compile) 2>conftest.er1
 
6147
  ac_status=$?
 
6148
  grep -v '^ *+' conftest.er1 >conftest.err
 
6149
  rm -f conftest.er1
 
6150
  cat conftest.err >&5
 
6151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6152
  (exit $ac_status); } &&
 
6153
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6155
  (eval $ac_try) 2>&5
 
6156
  ac_status=$?
 
6157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6158
  (exit $ac_status); }; } &&
 
6159
         { ac_try='test -s conftest.$ac_objext'
 
6160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6161
  (eval $ac_try) 2>&5
 
6162
  ac_status=$?
 
6163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6164
  (exit $ac_status); }; }; then
 
6165
  ac_compiler_gnu=yes
 
6166
else
 
6167
  echo "$as_me: failed program was:" >&5
 
6168
sed 's/^/| /' conftest.$ac_ext >&5
 
6169
 
 
6170
ac_compiler_gnu=no
 
6171
fi
 
6172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6173
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6174
 
 
6175
fi
 
6176
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6177
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6178
ac_ext=$ac_save_ext
 
6179
ac_test_FFLAGS=${FFLAGS+set}
 
6180
ac_save_FFLAGS=$FFLAGS
 
6181
FFLAGS=
 
6182
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6183
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6184
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6186
else
 
6187
  FFLAGS=-g
 
6188
cat >conftest.$ac_ext <<_ACEOF
 
6189
      program main
 
6190
 
 
6191
      end
 
6192
_ACEOF
 
6193
rm -f conftest.$ac_objext
 
6194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6195
  (eval $ac_compile) 2>conftest.er1
 
6196
  ac_status=$?
 
6197
  grep -v '^ *+' conftest.er1 >conftest.err
 
6198
  rm -f conftest.er1
 
6199
  cat conftest.err >&5
 
6200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6201
  (exit $ac_status); } &&
 
6202
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6204
  (eval $ac_try) 2>&5
 
6205
  ac_status=$?
 
6206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6207
  (exit $ac_status); }; } &&
 
6208
         { ac_try='test -s conftest.$ac_objext'
 
6209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6210
  (eval $ac_try) 2>&5
 
6211
  ac_status=$?
 
6212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6213
  (exit $ac_status); }; }; then
 
6214
  ac_cv_prog_f77_g=yes
 
6215
else
 
6216
  echo "$as_me: failed program was:" >&5
 
6217
sed 's/^/| /' conftest.$ac_ext >&5
 
6218
 
 
6219
ac_cv_prog_f77_g=no
 
6220
fi
 
6221
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6222
 
 
6223
fi
 
6224
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6225
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6226
if test "$ac_test_FFLAGS" = set; then
 
6227
  FFLAGS=$ac_save_FFLAGS
 
6228
elif test $ac_cv_prog_f77_g = yes; then
 
6229
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6230
    FFLAGS="-g -O2"
 
6231
  else
 
6232
    FFLAGS="-g"
 
6233
  fi
 
6234
else
 
6235
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6236
    FFLAGS="-O2"
 
6237
  else
 
6238
    FFLAGS=
 
6239
  fi
 
6240
fi
 
6241
 
 
6242
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6243
ac_ext=c
 
6244
ac_cpp='$CPP $CPPFLAGS'
 
6245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6248
 
 
6249
 
 
6250
 
 
6251
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6252
 
 
6253
# find the maximum length of command line arguments
 
6254
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6255
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6256
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6258
else
 
6259
    i=0
 
6260
  testring="ABCD"
 
6261
 
 
6262
  case $build_os in
 
6263
  msdosdjgpp*)
 
6264
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6265
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6266
    # during glob expansion).  Even if it were fixed, the result of this
 
6267
    # check would be larger than it should be.
 
6268
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6269
    ;;
 
6270
 
 
6271
  gnu*)
 
6272
    # Under GNU Hurd, this test is not required because there is
 
6273
    # no limit to the length of command line arguments.
 
6274
    # Libtool will interpret -1 as no limit whatsoever
 
6275
    lt_cv_sys_max_cmd_len=-1;
 
6276
    ;;
 
6277
 
 
6278
  cygwin* | mingw*)
 
6279
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6280
    # about 5 minutes as the teststring grows exponentially.
 
6281
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6282
    # you end up with a "frozen" computer, even though with patience
 
6283
    # the test eventually succeeds (with a max line length of 256k).
 
6284
    # Instead, let's just punt: use the minimum linelength reported by
 
6285
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6286
    lt_cv_sys_max_cmd_len=8192;
 
6287
    ;;
 
6288
 
 
6289
  amigaos*)
 
6290
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6291
    # So we just punt and use a minimum line length of 8192.
 
6292
    lt_cv_sys_max_cmd_len=8192;
 
6293
    ;;
 
6294
 
 
6295
 *)
 
6296
    # If test is not a shell built-in, we'll probably end up computing a
 
6297
    # maximum length that is only half of the actual maximum length, but
 
6298
    # we can't tell.
 
6299
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
6300
               = "XX$testring") >/dev/null 2>&1 &&
 
6301
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
6302
            lt_cv_sys_max_cmd_len=$new_result &&
 
6303
            test $i != 17 # 1/2 MB should be enough
 
6304
    do
 
6305
      i=`expr $i + 1`
 
6306
      testring=$testring$testring
 
6307
    done
 
6308
    testring=
 
6309
    # Add a significant safety factor because C++ compilers can tack on massive
 
6310
    # amounts of additional arguments before passing them to the linker.
 
6311
    # It appears as though 1/2 is a usable value.
 
6312
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6313
    ;;
 
6314
  esac
 
6315
 
 
6316
fi
 
6317
 
 
6318
if test -n $lt_cv_sys_max_cmd_len ; then
 
6319
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6320
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6321
else
 
6322
  echo "$as_me:$LINENO: result: none" >&5
 
6323
echo "${ECHO_T}none" >&6
 
6324
fi
 
6325
 
 
6326
 
 
6327
 
 
6328
 
 
6329
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6330
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6331
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6332
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6334
else
 
6335
 
 
6336
# These are sane defaults that work on at least a few old systems.
 
6337
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6338
 
 
6339
# Character class describing NM global symbol codes.
 
6340
symcode='[BCDEGRST]'
 
6341
 
 
6342
# Regexp to match symbols that can be accessed directly from C.
 
6343
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6344
 
 
6345
# Transform the above into a raw symbol and a C symbol.
 
6346
symxfrm='\1 \2\3 \3'
 
6347
 
 
6348
# Transform an extracted symbol line into a proper C declaration
 
6349
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6350
 
 
6351
# Transform an extracted symbol line into symbol name and symbol address
 
6352
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6353
 
 
6354
# Define system-specific variables.
 
6355
case $host_os in
 
6356
aix*)
 
6357
  symcode='[BCDT]'
 
6358
  ;;
 
6359
cygwin* | mingw* | pw32*)
 
6360
  symcode='[ABCDGISTW]'
 
6361
  ;;
 
6362
hpux*) # Its linker distinguishes data from code symbols
 
6363
  if test "$host_cpu" = ia64; then
 
6364
    symcode='[ABCDEGRST]'
 
6365
  fi
 
6366
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6367
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6368
  ;;
 
6369
irix* | nonstopux*)
 
6370
  symcode='[BCDEGRST]'
 
6371
  ;;
 
6372
osf*)
 
6373
  symcode='[BCDEGQRST]'
 
6374
  ;;
 
6375
solaris* | sysv5*)
 
6376
  symcode='[BDRT]'
 
6377
  ;;
 
6378
sysv4)
 
6379
  symcode='[DFNSTU]'
 
6380
  ;;
 
6381
esac
 
6382
 
 
6383
# Handle CRLF in mingw tool chain
 
6384
opt_cr=
 
6385
case $build_os in
 
6386
mingw*)
 
6387
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6388
  ;;
 
6389
esac
 
6390
 
 
6391
# If we're using GNU nm, then use its standard symbol codes.
 
6392
case `$NM -V 2>&1` in
 
6393
*GNU* | *'with BFD'*)
 
6394
  symcode='[ABCDGIRSTW]' ;;
 
6395
esac
 
6396
 
 
6397
# Try without a prefix undercore, then with it.
 
6398
for ac_symprfx in "" "_"; do
 
6399
 
 
6400
  # Write the raw and C identifiers.
 
6401
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6402
 
 
6403
  # Check to see that the pipe works correctly.
 
6404
  pipe_works=no
 
6405
 
 
6406
  rm -f conftest*
 
6407
  cat > conftest.$ac_ext <<EOF
 
6408
#ifdef __cplusplus
 
6409
extern "C" {
 
6410
#endif
 
6411
char nm_test_var;
 
6412
void nm_test_func(){}
 
6413
#ifdef __cplusplus
 
6414
}
 
6415
#endif
 
6416
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6417
EOF
 
6418
 
 
6419
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6420
  (eval $ac_compile) 2>&5
 
6421
  ac_status=$?
 
6422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6423
  (exit $ac_status); }; then
 
6424
    # Now try to grab the symbols.
 
6425
    nlist=conftest.nm
 
6426
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6427
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6428
  ac_status=$?
 
6429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6430
  (exit $ac_status); } && test -s "$nlist"; then
 
6431
      # Try sorting and uniquifying the output.
 
6432
      if sort "$nlist" | uniq > "$nlist"T; then
 
6433
        mv -f "$nlist"T "$nlist"
 
6434
      else
 
6435
        rm -f "$nlist"T
 
6436
      fi
 
6437
 
 
6438
      # Make sure that we snagged all the symbols we need.
 
6439
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6440
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6441
          cat <<EOF > conftest.$ac_ext
 
6442
#ifdef __cplusplus
 
6443
extern "C" {
 
6444
#endif
 
6445
 
 
6446
EOF
 
6447
          # Now generate the symbol file.
 
6448
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6449
 
 
6450
          cat <<EOF >> conftest.$ac_ext
 
6451
#if defined (__STDC__) && __STDC__
 
6452
# define lt_ptr_t void *
 
6453
#else
 
6454
# define lt_ptr_t char *
 
6455
# define const
 
6456
#endif
 
6457
 
 
6458
/* The mapping between symbol names and symbols. */
 
6459
const struct {
 
6460
  const char *name;
 
6461
  lt_ptr_t address;
 
6462
}
 
6463
lt_preloaded_symbols[] =
 
6464
{
 
6465
EOF
 
6466
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6467
          cat <<\EOF >> conftest.$ac_ext
 
6468
  {0, (lt_ptr_t) 0}
 
6469
};
 
6470
 
 
6471
#ifdef __cplusplus
 
6472
}
 
6473
#endif
 
6474
EOF
 
6475
          # Now try linking the two files.
 
6476
          mv conftest.$ac_objext conftstm.$ac_objext
 
6477
          lt_save_LIBS="$LIBS"
 
6478
          lt_save_CFLAGS="$CFLAGS"
 
6479
          LIBS="conftstm.$ac_objext"
 
6480
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6481
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6482
  (eval $ac_link) 2>&5
 
6483
  ac_status=$?
 
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6485
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6486
            pipe_works=yes
 
6487
          fi
 
6488
          LIBS="$lt_save_LIBS"
 
6489
          CFLAGS="$lt_save_CFLAGS"
 
6490
        else
 
6491
          echo "cannot find nm_test_func in $nlist" >&5
 
6492
        fi
 
6493
      else
 
6494
        echo "cannot find nm_test_var in $nlist" >&5
 
6495
      fi
 
6496
    else
 
6497
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6498
    fi
 
6499
  else
 
6500
    echo "$progname: failed program was:" >&5
 
6501
    cat conftest.$ac_ext >&5
 
6502
  fi
 
6503
  rm -f conftest* conftst*
 
6504
 
 
6505
  # Do not use the global_symbol_pipe unless it works.
 
6506
  if test "$pipe_works" = yes; then
 
6507
    break
 
6508
  else
 
6509
    lt_cv_sys_global_symbol_pipe=
 
6510
  fi
 
6511
done
 
6512
 
 
6513
fi
 
6514
 
 
6515
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6516
  lt_cv_sys_global_symbol_to_cdecl=
 
6517
fi
 
6518
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6519
  echo "$as_me:$LINENO: result: failed" >&5
 
6520
echo "${ECHO_T}failed" >&6
 
6521
else
 
6522
  echo "$as_me:$LINENO: result: ok" >&5
 
6523
echo "${ECHO_T}ok" >&6
 
6524
fi
 
6525
 
 
6526
echo "$as_me:$LINENO: checking for objdir" >&5
 
6527
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6528
if test "${lt_cv_objdir+set}" = set; then
 
6529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6530
else
 
6531
  rm -f .libs 2>/dev/null
 
6532
mkdir .libs 2>/dev/null
 
6533
if test -d .libs; then
 
6534
  lt_cv_objdir=.libs
 
6535
else
 
6536
  # MS-DOS does not allow filenames that begin with a dot.
 
6537
  lt_cv_objdir=_libs
 
6538
fi
 
6539
rmdir .libs 2>/dev/null
 
6540
fi
 
6541
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6542
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6543
objdir=$lt_cv_objdir
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
case $host_os in
 
6550
aix3*)
 
6551
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6552
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6553
  # vanish in a puff of smoke.
 
6554
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6555
    COLLECT_NAMES=
 
6556
    export COLLECT_NAMES
 
6557
  fi
 
6558
  ;;
 
6559
esac
 
6560
 
 
6561
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6562
# metacharacters that are still active within double-quoted strings.
 
6563
Xsed='sed -e s/^X//'
 
6564
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6565
 
 
6566
# Same as above, but do not quote variable references.
 
6567
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6568
 
 
6569
# Sed substitution to delay expansion of an escaped shell variable in a
 
6570
# double_quote_subst'ed string.
 
6571
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6572
 
 
6573
# Sed substitution to avoid accidental globbing in evaled expressions
 
6574
no_glob_subst='s/\*/\\\*/g'
 
6575
 
 
6576
# Constants:
 
6577
rm="rm -f"
 
6578
 
 
6579
# Global variables:
 
6580
default_ofile=libtool
 
6581
can_build_shared=yes
 
6582
 
 
6583
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6584
# which needs '.lib').
 
6585
libext=a
 
6586
ltmain="$ac_aux_dir/ltmain.sh"
 
6587
ofile="$default_ofile"
 
6588
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6589
 
 
6590
if test -n "$ac_tool_prefix"; then
 
6591
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6592
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6593
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6595
if test "${ac_cv_prog_AR+set}" = set; then
 
6596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6597
else
 
6598
  if test -n "$AR"; then
 
6599
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6600
else
 
6601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6602
for as_dir in $PATH
 
6603
do
 
6604
  IFS=$as_save_IFS
 
6605
  test -z "$as_dir" && as_dir=.
 
6606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6607
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6608
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6609
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6610
    break 2
 
6611
  fi
 
6612
done
 
6613
done
 
6614
 
 
6615
fi
 
6616
fi
 
6617
AR=$ac_cv_prog_AR
 
6618
if test -n "$AR"; then
 
6619
  echo "$as_me:$LINENO: result: $AR" >&5
 
6620
echo "${ECHO_T}$AR" >&6
 
6621
else
 
6622
  echo "$as_me:$LINENO: result: no" >&5
 
6623
echo "${ECHO_T}no" >&6
 
6624
fi
 
6625
 
 
6626
fi
 
6627
if test -z "$ac_cv_prog_AR"; then
 
6628
  ac_ct_AR=$AR
 
6629
  # Extract the first word of "ar", so it can be a program name with args.
 
6630
set dummy ar; ac_word=$2
 
6631
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6633
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6635
else
 
6636
  if test -n "$ac_ct_AR"; then
 
6637
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6638
else
 
6639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6640
for as_dir in $PATH
 
6641
do
 
6642
  IFS=$as_save_IFS
 
6643
  test -z "$as_dir" && as_dir=.
 
6644
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6645
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6646
    ac_cv_prog_ac_ct_AR="ar"
 
6647
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6648
    break 2
 
6649
  fi
 
6650
done
 
6651
done
 
6652
 
 
6653
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6654
fi
 
6655
fi
 
6656
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6657
if test -n "$ac_ct_AR"; then
 
6658
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6659
echo "${ECHO_T}$ac_ct_AR" >&6
 
6660
else
 
6661
  echo "$as_me:$LINENO: result: no" >&5
 
6662
echo "${ECHO_T}no" >&6
 
6663
fi
 
6664
 
 
6665
  AR=$ac_ct_AR
 
6666
else
 
6667
  AR="$ac_cv_prog_AR"
 
6668
fi
 
6669
 
 
6670
if test -n "$ac_tool_prefix"; then
 
6671
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6672
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6673
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6675
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6677
else
 
6678
  if test -n "$RANLIB"; then
 
6679
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6680
else
 
6681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6682
for as_dir in $PATH
 
6683
do
 
6684
  IFS=$as_save_IFS
 
6685
  test -z "$as_dir" && as_dir=.
 
6686
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6688
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6690
    break 2
 
6691
  fi
 
6692
done
 
6693
done
 
6694
 
 
6695
fi
 
6696
fi
 
6697
RANLIB=$ac_cv_prog_RANLIB
 
6698
if test -n "$RANLIB"; then
 
6699
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6700
echo "${ECHO_T}$RANLIB" >&6
 
6701
else
 
6702
  echo "$as_me:$LINENO: result: no" >&5
 
6703
echo "${ECHO_T}no" >&6
 
6704
fi
 
6705
 
 
6706
fi
 
6707
if test -z "$ac_cv_prog_RANLIB"; then
 
6708
  ac_ct_RANLIB=$RANLIB
 
6709
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6710
set dummy ranlib; ac_word=$2
 
6711
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6712
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6713
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6715
else
 
6716
  if test -n "$ac_ct_RANLIB"; then
 
6717
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6718
else
 
6719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6720
for as_dir in $PATH
 
6721
do
 
6722
  IFS=$as_save_IFS
 
6723
  test -z "$as_dir" && as_dir=.
 
6724
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6725
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6726
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6727
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6728
    break 2
 
6729
  fi
 
6730
done
 
6731
done
 
6732
 
 
6733
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6734
fi
 
6735
fi
 
6736
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6737
if test -n "$ac_ct_RANLIB"; then
 
6738
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6739
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6740
else
 
6741
  echo "$as_me:$LINENO: result: no" >&5
 
6742
echo "${ECHO_T}no" >&6
 
6743
fi
 
6744
 
 
6745
  RANLIB=$ac_ct_RANLIB
 
6746
else
 
6747
  RANLIB="$ac_cv_prog_RANLIB"
 
6748
fi
 
6749
 
 
6750
if test -n "$ac_tool_prefix"; then
 
6751
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6752
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6753
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6754
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6755
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6757
else
 
6758
  if test -n "$STRIP"; then
 
6759
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6760
else
 
6761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6762
for as_dir in $PATH
 
6763
do
 
6764
  IFS=$as_save_IFS
 
6765
  test -z "$as_dir" && as_dir=.
 
6766
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6767
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6768
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6769
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6770
    break 2
 
6771
  fi
 
6772
done
 
6773
done
 
6774
 
 
6775
fi
 
6776
fi
 
6777
STRIP=$ac_cv_prog_STRIP
 
6778
if test -n "$STRIP"; then
 
6779
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6780
echo "${ECHO_T}$STRIP" >&6
 
6781
else
 
6782
  echo "$as_me:$LINENO: result: no" >&5
 
6783
echo "${ECHO_T}no" >&6
 
6784
fi
 
6785
 
 
6786
fi
 
6787
if test -z "$ac_cv_prog_STRIP"; then
 
6788
  ac_ct_STRIP=$STRIP
 
6789
  # Extract the first word of "strip", so it can be a program name with args.
 
6790
set dummy strip; ac_word=$2
 
6791
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6792
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6793
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6795
else
 
6796
  if test -n "$ac_ct_STRIP"; then
 
6797
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6798
else
 
6799
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6800
for as_dir in $PATH
 
6801
do
 
6802
  IFS=$as_save_IFS
 
6803
  test -z "$as_dir" && as_dir=.
 
6804
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6805
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6806
    ac_cv_prog_ac_ct_STRIP="strip"
 
6807
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6808
    break 2
 
6809
  fi
 
6810
done
 
6811
done
 
6812
 
 
6813
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6814
fi
 
6815
fi
 
6816
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6817
if test -n "$ac_ct_STRIP"; then
 
6818
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6819
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6820
else
 
6821
  echo "$as_me:$LINENO: result: no" >&5
 
6822
echo "${ECHO_T}no" >&6
 
6823
fi
 
6824
 
 
6825
  STRIP=$ac_ct_STRIP
 
6826
else
 
6827
  STRIP="$ac_cv_prog_STRIP"
 
6828
fi
 
6829
 
 
6830
 
 
6831
old_CC="$CC"
 
6832
old_CFLAGS="$CFLAGS"
 
6833
 
 
6834
# Set sane defaults for various variables
 
6835
test -z "$AR" && AR=ar
 
6836
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6837
test -z "$AS" && AS=as
 
6838
test -z "$CC" && CC=cc
 
6839
test -z "$LTCC" && LTCC=$CC
 
6840
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6841
test -z "$LD" && LD=ld
 
6842
test -z "$LN_S" && LN_S="ln -s"
 
6843
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6844
test -z "$NM" && NM=nm
 
6845
test -z "$SED" && SED=sed
 
6846
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6847
test -z "$RANLIB" && RANLIB=:
 
6848
test -z "$STRIP" && STRIP=:
 
6849
test -z "$ac_objext" && ac_objext=o
 
6850
 
 
6851
# Determine commands to create old-style static archives.
 
6852
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6853
old_postinstall_cmds='chmod 644 $oldlib'
 
6854
old_postuninstall_cmds=
 
6855
 
 
6856
if test -n "$RANLIB"; then
 
6857
  case $host_os in
 
6858
  openbsd*)
 
6859
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6860
    ;;
 
6861
  *)
 
6862
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6863
    ;;
 
6864
  esac
 
6865
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6866
fi
 
6867
 
 
6868
# Only perform the check for file, if the check method requires it
 
6869
case $deplibs_check_method in
 
6870
file_magic*)
 
6871
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6872
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6873
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6874
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6876
else
 
6877
  case $MAGIC_CMD in
 
6878
[\\/*] |  ?:[\\/]*)
 
6879
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6880
  ;;
 
6881
*)
 
6882
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6883
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6884
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6885
  for ac_dir in $ac_dummy; do
 
6886
    IFS="$lt_save_ifs"
 
6887
    test -z "$ac_dir" && ac_dir=.
 
6888
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6889
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6890
      if test -n "$file_magic_test_file"; then
 
6891
        case $deplibs_check_method in
 
6892
        "file_magic "*)
 
6893
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6894
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6895
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6896
            $EGREP "$file_magic_regex" > /dev/null; then
 
6897
            :
 
6898
          else
 
6899
            cat <<EOF 1>&2
 
6900
 
 
6901
*** Warning: the command libtool uses to detect shared libraries,
 
6902
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6903
*** The result is that libtool may fail to recognize shared libraries
 
6904
*** as such.  This will affect the creation of libtool libraries that
 
6905
*** depend on shared libraries, but programs linked with such libtool
 
6906
*** libraries will work regardless of this problem.  Nevertheless, you
 
6907
*** may want to report the problem to your system manager and/or to
 
6908
*** bug-libtool@gnu.org
 
6909
 
 
6910
EOF
 
6911
          fi ;;
 
6912
        esac
 
6913
      fi
 
6914
      break
 
6915
    fi
 
6916
  done
 
6917
  IFS="$lt_save_ifs"
 
6918
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6919
  ;;
 
6920
esac
 
6921
fi
 
6922
 
 
6923
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6924
if test -n "$MAGIC_CMD"; then
 
6925
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6926
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6927
else
 
6928
  echo "$as_me:$LINENO: result: no" >&5
 
6929
echo "${ECHO_T}no" >&6
 
6930
fi
 
6931
 
 
6932
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6933
  if test -n "$ac_tool_prefix"; then
 
6934
    echo "$as_me:$LINENO: checking for file" >&5
 
6935
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6936
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6938
else
 
6939
  case $MAGIC_CMD in
 
6940
[\\/*] |  ?:[\\/]*)
 
6941
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6942
  ;;
 
6943
*)
 
6944
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6945
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6946
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6947
  for ac_dir in $ac_dummy; do
 
6948
    IFS="$lt_save_ifs"
 
6949
    test -z "$ac_dir" && ac_dir=.
 
6950
    if test -f $ac_dir/file; then
 
6951
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6952
      if test -n "$file_magic_test_file"; then
 
6953
        case $deplibs_check_method in
 
6954
        "file_magic "*)
 
6955
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6956
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6957
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6958
            $EGREP "$file_magic_regex" > /dev/null; then
 
6959
            :
 
6960
          else
 
6961
            cat <<EOF 1>&2
 
6962
 
 
6963
*** Warning: the command libtool uses to detect shared libraries,
 
6964
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6965
*** The result is that libtool may fail to recognize shared libraries
 
6966
*** as such.  This will affect the creation of libtool libraries that
 
6967
*** depend on shared libraries, but programs linked with such libtool
 
6968
*** libraries will work regardless of this problem.  Nevertheless, you
 
6969
*** may want to report the problem to your system manager and/or to
 
6970
*** bug-libtool@gnu.org
 
6971
 
 
6972
EOF
 
6973
          fi ;;
 
6974
        esac
 
6975
      fi
 
6976
      break
 
6977
    fi
 
6978
  done
 
6979
  IFS="$lt_save_ifs"
 
6980
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6981
  ;;
 
6982
esac
 
6983
fi
 
6984
 
 
6985
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6986
if test -n "$MAGIC_CMD"; then
 
6987
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6988
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6989
else
 
6990
  echo "$as_me:$LINENO: result: no" >&5
 
6991
echo "${ECHO_T}no" >&6
 
6992
fi
 
6993
 
 
6994
  else
 
6995
    MAGIC_CMD=:
 
6996
  fi
 
6997
fi
 
6998
 
 
6999
  fi
 
7000
  ;;
 
7001
esac
 
7002
 
 
7003
enable_dlopen=no
 
7004
enable_win32_dll=yes
 
7005
 
 
7006
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7007
if test "${enable_libtool_lock+set}" = set; then
 
7008
  enableval="$enable_libtool_lock"
 
7009
 
 
7010
fi;
 
7011
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7012
 
 
7013
 
 
7014
# Check whether --with-pic or --without-pic was given.
 
7015
if test "${with_pic+set}" = set; then
 
7016
  withval="$with_pic"
 
7017
  pic_mode="$withval"
 
7018
else
 
7019
  pic_mode=default
 
7020
fi;
 
7021
test -z "$pic_mode" && pic_mode=default
 
7022
 
 
7023
# Use C for the default configuration in the libtool script
 
7024
tagname=
 
7025
lt_save_CC="$CC"
 
7026
ac_ext=c
 
7027
ac_cpp='$CPP $CPPFLAGS'
 
7028
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7029
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7030
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7031
 
 
7032
 
 
7033
# Source file extension for C test sources.
 
7034
ac_ext=c
 
7035
 
 
7036
# Object file extension for compiled C test sources.
 
7037
objext=o
 
7038
objext=$objext
 
7039
 
 
7040
# Code to be used in simple compile tests
 
7041
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7042
 
 
7043
# Code to be used in simple link tests
 
7044
lt_simple_link_test_code='int main(){return(0);}\n'
 
7045
 
 
7046
 
 
7047
# If no C compiler was specified, use CC.
 
7048
LTCC=${LTCC-"$CC"}
 
7049
 
 
7050
# Allow CC to be a program name with arguments.
 
7051
compiler=$CC
 
7052
 
 
7053
 
 
7054
#
 
7055
# Check for any special shared library compilation flags.
 
7056
#
 
7057
lt_prog_cc_shlib=
 
7058
if test "$GCC" = no; then
 
7059
  case $host_os in
 
7060
  sco3.2v5*)
 
7061
    lt_prog_cc_shlib='-belf'
 
7062
    ;;
 
7063
  esac
 
7064
fi
 
7065
if test -n "$lt_prog_cc_shlib"; then
 
7066
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7067
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7068
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7069
  else
 
7070
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7071
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7072
    lt_cv_prog_cc_can_build_shared=no
 
7073
  fi
 
7074
fi
 
7075
 
 
7076
 
 
7077
#
 
7078
# Check to make sure the static flag actually works.
 
7079
#
 
7080
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7081
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7082
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7084
else
 
7085
  lt_prog_compiler_static_works=no
 
7086
   save_LDFLAGS="$LDFLAGS"
 
7087
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7088
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7089
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7090
     # The compiler can only warn and ignore the option if not recognized
 
7091
     # So say no if there are warnings
 
7092
     if test -s conftest.err; then
 
7093
       # Append any errors to the config.log.
 
7094
       cat conftest.err 1>&5
 
7095
     else
 
7096
       lt_prog_compiler_static_works=yes
 
7097
     fi
 
7098
   fi
 
7099
   $rm conftest*
 
7100
   LDFLAGS="$save_LDFLAGS"
 
7101
 
 
7102
fi
 
7103
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7104
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7105
 
 
7106
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7107
    :
 
7108
else
 
7109
    lt_prog_compiler_static=
 
7110
fi
 
7111
 
 
7112
 
 
7113
 
 
7114
## CAVEAT EMPTOR:
 
7115
## There is no encapsulation within the following macros, do not change
 
7116
## the running order or otherwise move them around unless you know exactly
 
7117
## what you are doing...
 
7118
 
 
7119
lt_prog_compiler_no_builtin_flag=
 
7120
 
 
7121
if test "$GCC" = yes; then
 
7122
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7123
 
 
7124
 
 
7125
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7126
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7127
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7129
else
 
7130
  lt_cv_prog_compiler_rtti_exceptions=no
 
7131
  ac_outfile=conftest.$ac_objext
 
7132
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7133
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7134
   # Insert the option either (1) after the last *FLAGS variable, or
 
7135
   # (2) before a word containing "conftest.", or (3) at the end.
 
7136
   # Note that $ac_compile itself does not contain backslashes and begins
 
7137
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7138
   # The option is referenced via a variable to avoid confusing sed.
 
7139
   lt_compile=`echo "$ac_compile" | $SED \
 
7140
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7141
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7142
   -e 's:$: $lt_compiler_flag:'`
 
7143
   (eval echo "\"\$as_me:7143: $lt_compile\"" >&5)
 
7144
   (eval "$lt_compile" 2>conftest.err)
 
7145
   ac_status=$?
 
7146
   cat conftest.err >&5
 
7147
   echo "$as_me:7147: \$? = $ac_status" >&5
 
7148
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7149
     # The compiler can only warn and ignore the option if not recognized
 
7150
     # So say no if there are warnings
 
7151
     if test ! -s conftest.err; then
 
7152
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7153
     fi
 
7154
   fi
 
7155
   $rm conftest*
 
7156
 
 
7157
fi
 
7158
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7159
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7160
 
 
7161
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7162
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7163
else
 
7164
    :
 
7165
fi
 
7166
 
 
7167
fi
 
7168
 
 
7169
lt_prog_compiler_wl=
 
7170
lt_prog_compiler_pic=
 
7171
lt_prog_compiler_static=
 
7172
 
 
7173
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7174
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7175
 
 
7176
  if test "$GCC" = yes; then
 
7177
    lt_prog_compiler_wl='-Wl,'
 
7178
    lt_prog_compiler_static='-static'
 
7179
 
 
7180
    case $host_os in
 
7181
      aix*)
 
7182
      # All AIX code is PIC.
 
7183
      if test "$host_cpu" = ia64; then
 
7184
        # AIX 5 now supports IA64 processor
 
7185
        lt_prog_compiler_static='-Bstatic'
 
7186
      fi
 
7187
      ;;
 
7188
 
 
7189
    amigaos*)
 
7190
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7191
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7192
      # like `-m68040'.
 
7193
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7194
      ;;
 
7195
 
 
7196
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7197
      # PIC is the default for these OSes.
 
7198
      ;;
 
7199
 
 
7200
    mingw* | pw32* | os2*)
 
7201
      # This hack is so that the source file can tell whether it is being
 
7202
      # built for inclusion in a dll (and should export symbols for example).
 
7203
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7204
      ;;
 
7205
 
 
7206
    darwin* | rhapsody*)
 
7207
      # PIC is the default on this platform
 
7208
      # Common symbols not allowed in MH_DYLIB files
 
7209
      lt_prog_compiler_pic='-fno-common'
 
7210
      ;;
 
7211
 
 
7212
    msdosdjgpp*)
 
7213
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7214
      # on systems that don't support them.
 
7215
      lt_prog_compiler_can_build_shared=no
 
7216
      enable_shared=no
 
7217
      ;;
 
7218
 
 
7219
    sysv4*MP*)
 
7220
      if test -d /usr/nec; then
 
7221
        lt_prog_compiler_pic=-Kconform_pic
 
7222
      fi
 
7223
      ;;
 
7224
 
 
7225
    hpux*)
 
7226
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7227
      # not for PA HP-UX.
 
7228
      case "$host_cpu" in
 
7229
      hppa*64*|ia64*)
 
7230
        # +Z the default
 
7231
        ;;
 
7232
      *)
 
7233
        lt_prog_compiler_pic='-fPIC'
 
7234
        ;;
 
7235
      esac
 
7236
      ;;
 
7237
 
 
7238
    *)
 
7239
      lt_prog_compiler_pic='-fPIC'
 
7240
      ;;
 
7241
    esac
 
7242
  else
 
7243
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7244
    case $host_os in
 
7245
    aix*)
 
7246
      lt_prog_compiler_wl='-Wl,'
 
7247
      if test "$host_cpu" = ia64; then
 
7248
        # AIX 5 now supports IA64 processor
 
7249
        lt_prog_compiler_static='-Bstatic'
 
7250
      else
 
7251
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7252
      fi
 
7253
      ;;
 
7254
 
 
7255
    mingw* | pw32* | os2*)
 
7256
      # This hack is so that the source file can tell whether it is being
 
7257
      # built for inclusion in a dll (and should export symbols for example).
 
7258
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7259
      ;;
 
7260
 
 
7261
    hpux9* | hpux10* | hpux11*)
 
7262
      lt_prog_compiler_wl='-Wl,'
 
7263
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7264
      # not for PA HP-UX.
 
7265
      case "$host_cpu" in
 
7266
      hppa*64*|ia64*)
 
7267
        # +Z the default
 
7268
        ;;
 
7269
      *)
 
7270
        lt_prog_compiler_pic='+Z'
 
7271
        ;;
 
7272
      esac
 
7273
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7274
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7275
      ;;
 
7276
 
 
7277
    irix5* | irix6* | nonstopux*)
 
7278
      lt_prog_compiler_wl='-Wl,'
 
7279
      # PIC (with -KPIC) is the default.
 
7280
      lt_prog_compiler_static='-non_shared'
 
7281
      ;;
 
7282
 
 
7283
    newsos6)
 
7284
      lt_prog_compiler_pic='-KPIC'
 
7285
      lt_prog_compiler_static='-Bstatic'
 
7286
      ;;
 
7287
 
 
7288
    linux*)
 
7289
      case $CC in
 
7290
      icc* | ecc*)
 
7291
        lt_prog_compiler_wl='-Wl,'
 
7292
        lt_prog_compiler_pic='-KPIC'
 
7293
        lt_prog_compiler_static='-static'
 
7294
        ;;
 
7295
      ccc*)
 
7296
        lt_prog_compiler_wl='-Wl,'
 
7297
        # All Alpha code is PIC.
 
7298
        lt_prog_compiler_static='-non_shared'
 
7299
        ;;
 
7300
      esac
 
7301
      ;;
 
7302
 
 
7303
    osf3* | osf4* | osf5*)
 
7304
      lt_prog_compiler_wl='-Wl,'
 
7305
      # All OSF/1 code is PIC.
 
7306
      lt_prog_compiler_static='-non_shared'
 
7307
      ;;
 
7308
 
 
7309
    sco3.2v5*)
 
7310
      lt_prog_compiler_pic='-Kpic'
 
7311
      lt_prog_compiler_static='-dn'
 
7312
      ;;
 
7313
 
 
7314
    solaris*)
 
7315
      lt_prog_compiler_wl='-Wl,'
 
7316
      lt_prog_compiler_pic='-KPIC'
 
7317
      lt_prog_compiler_static='-Bstatic'
 
7318
      ;;
 
7319
 
 
7320
    sunos4*)
 
7321
      lt_prog_compiler_wl='-Qoption ld '
 
7322
      lt_prog_compiler_pic='-PIC'
 
7323
      lt_prog_compiler_static='-Bstatic'
 
7324
      ;;
 
7325
 
 
7326
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7327
      lt_prog_compiler_wl='-Wl,'
 
7328
      lt_prog_compiler_pic='-KPIC'
 
7329
      lt_prog_compiler_static='-Bstatic'
 
7330
      ;;
 
7331
 
 
7332
    sysv4*MP*)
 
7333
      if test -d /usr/nec ;then
 
7334
        lt_prog_compiler_pic='-Kconform_pic'
 
7335
        lt_prog_compiler_static='-Bstatic'
 
7336
      fi
 
7337
      ;;
 
7338
 
 
7339
    uts4*)
 
7340
      lt_prog_compiler_pic='-pic'
 
7341
      lt_prog_compiler_static='-Bstatic'
 
7342
      ;;
 
7343
 
 
7344
    *)
 
7345
      lt_prog_compiler_can_build_shared=no
 
7346
      ;;
 
7347
    esac
 
7348
  fi
 
7349
 
 
7350
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7351
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7352
 
 
7353
#
 
7354
# Check to make sure the PIC flag actually works.
 
7355
#
 
7356
if test -n "$lt_prog_compiler_pic"; then
 
7357
 
 
7358
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7359
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7360
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7362
else
 
7363
  lt_prog_compiler_pic_works=no
 
7364
  ac_outfile=conftest.$ac_objext
 
7365
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7366
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7367
   # Insert the option either (1) after the last *FLAGS variable, or
 
7368
   # (2) before a word containing "conftest.", or (3) at the end.
 
7369
   # Note that $ac_compile itself does not contain backslashes and begins
 
7370
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7371
   # The option is referenced via a variable to avoid confusing sed.
 
7372
   lt_compile=`echo "$ac_compile" | $SED \
 
7373
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7374
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7375
   -e 's:$: $lt_compiler_flag:'`
 
7376
   (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
 
7377
   (eval "$lt_compile" 2>conftest.err)
 
7378
   ac_status=$?
 
7379
   cat conftest.err >&5
 
7380
   echo "$as_me:7380: \$? = $ac_status" >&5
 
7381
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7382
     # The compiler can only warn and ignore the option if not recognized
 
7383
     # So say no if there are warnings
 
7384
     if test ! -s conftest.err; then
 
7385
       lt_prog_compiler_pic_works=yes
 
7386
     fi
 
7387
   fi
 
7388
   $rm conftest*
 
7389
 
 
7390
fi
 
7391
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7392
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7393
 
 
7394
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7395
    case $lt_prog_compiler_pic in
 
7396
     "" | " "*) ;;
 
7397
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7398
     esac
 
7399
else
 
7400
    lt_prog_compiler_pic=
 
7401
     lt_prog_compiler_can_build_shared=no
 
7402
fi
 
7403
 
 
7404
fi
 
7405
case "$host_os" in
 
7406
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7407
  *djgpp*)
 
7408
    lt_prog_compiler_pic=
 
7409
    ;;
 
7410
  *)
 
7411
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7412
    ;;
 
7413
esac
 
7414
 
 
7415
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7416
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7417
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7419
else
 
7420
  lt_cv_prog_compiler_c_o=no
 
7421
   $rm -r conftest 2>/dev/null
 
7422
   mkdir conftest
 
7423
   cd conftest
 
7424
   mkdir out
 
7425
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7426
 
 
7427
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7428
   # Insert the option either (1) after the last *FLAGS variable, or
 
7429
   # (2) before a word containing "conftest.", or (3) at the end.
 
7430
   # Note that $ac_compile itself does not contain backslashes and begins
 
7431
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7432
   lt_compile=`echo "$ac_compile" | $SED \
 
7433
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7434
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7435
   -e 's:$: $lt_compiler_flag:'`
 
7436
   (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
 
7437
   (eval "$lt_compile" 2>out/conftest.err)
 
7438
   ac_status=$?
 
7439
   cat out/conftest.err >&5
 
7440
   echo "$as_me:7440: \$? = $ac_status" >&5
 
7441
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7442
   then
 
7443
     # The compiler can only warn and ignore the option if not recognized
 
7444
     # So say no if there are warnings
 
7445
     if test ! -s out/conftest.err; then
 
7446
       lt_cv_prog_compiler_c_o=yes
 
7447
     fi
 
7448
   fi
 
7449
   chmod u+w .
 
7450
   $rm conftest*
 
7451
   # SGI C++ compiler will create directory out/ii_files/ for
 
7452
   # template instantiation
 
7453
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7454
   $rm out/* && rmdir out
 
7455
   cd ..
 
7456
   rmdir conftest
 
7457
   $rm conftest*
 
7458
 
 
7459
fi
 
7460
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7461
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7462
 
 
7463
 
 
7464
hard_links="nottested"
 
7465
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7466
  # do not overwrite the value of need_locks provided by the user
 
7467
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7468
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7469
  hard_links=yes
 
7470
  $rm conftest*
 
7471
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7472
  touch conftest.a
 
7473
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7474
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7475
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7476
echo "${ECHO_T}$hard_links" >&6
 
7477
  if test "$hard_links" = no; then
 
7478
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7479
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7480
    need_locks=warn
 
7481
  fi
 
7482
else
 
7483
  need_locks=no
 
7484
fi
 
7485
 
 
7486
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7487
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7488
 
 
7489
  runpath_var=
 
7490
  allow_undefined_flag=
 
7491
  enable_shared_with_static_runtimes=no
 
7492
  archive_cmds=
 
7493
  archive_expsym_cmds=
 
7494
  old_archive_From_new_cmds=
 
7495
  old_archive_from_expsyms_cmds=
 
7496
  export_dynamic_flag_spec=
 
7497
  whole_archive_flag_spec=
 
7498
  thread_safe_flag_spec=
 
7499
  hardcode_libdir_flag_spec=
 
7500
  hardcode_libdir_flag_spec_ld=
 
7501
  hardcode_libdir_separator=
 
7502
  hardcode_direct=no
 
7503
  hardcode_minus_L=no
 
7504
  hardcode_shlibpath_var=unsupported
 
7505
  link_all_deplibs=unknown
 
7506
  hardcode_automatic=no
 
7507
  module_cmds=
 
7508
  module_expsym_cmds=
 
7509
  always_export_symbols=no
 
7510
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7511
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7512
  # included in the symbol list
 
7513
  include_expsyms=
 
7514
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7515
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7516
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7517
  # as well as any symbol that contains `d'.
 
7518
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7519
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7520
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7521
  # the symbol is explicitly referenced.  Since portable code cannot
 
7522
  # rely on this symbol name, it's probably fine to never include it in
 
7523
  # preloaded symbol tables.
 
7524
  extract_expsyms_cmds=
 
7525
 
 
7526
  case $host_os in
 
7527
  cygwin* | mingw* | pw32*)
 
7528
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7529
    # When not using gcc, we currently assume that we are using
 
7530
    # Microsoft Visual C++.
 
7531
    if test "$GCC" != yes; then
 
7532
      with_gnu_ld=no
 
7533
    fi
 
7534
    ;;
 
7535
  openbsd*)
 
7536
    with_gnu_ld=no
 
7537
    ;;
 
7538
  esac
 
7539
 
 
7540
  ld_shlibs=yes
 
7541
  if test "$with_gnu_ld" = yes; then
 
7542
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7543
    wlarc='${wl}'
 
7544
 
 
7545
    # See if GNU ld supports shared libraries.
 
7546
    case $host_os in
 
7547
    aix3* | aix4* | aix5*)
 
7548
      # On AIX/PPC, the GNU linker is very broken
 
7549
      if test "$host_cpu" != ia64; then
 
7550
        ld_shlibs=no
 
7551
        cat <<EOF 1>&2
 
7552
 
 
7553
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7554
*** to be unable to reliably create shared libraries on AIX.
 
7555
*** Therefore, libtool is disabling shared libraries support.  If you
 
7556
*** really care for shared libraries, you may want to modify your PATH
 
7557
*** so that a non-GNU linker is found, and then restart.
 
7558
 
 
7559
EOF
 
7560
      fi
 
7561
      ;;
 
7562
 
 
7563
    amigaos*)
 
7564
      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)'
 
7565
      hardcode_libdir_flag_spec='-L$libdir'
 
7566
      hardcode_minus_L=yes
 
7567
 
 
7568
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7569
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7570
      # to version 4, is to share data among multiple programs linked
 
7571
      # with the same dynamic library.  Since this doesn't match the
 
7572
      # behavior of shared libraries on other platforms, we can't use
 
7573
      # them.
 
7574
      ld_shlibs=no
 
7575
      ;;
 
7576
 
 
7577
    beos*)
 
7578
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7579
        allow_undefined_flag=unsupported
 
7580
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7581
        # support --undefined.  This deserves some investigation.  FIXME
 
7582
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7583
      else
 
7584
        ld_shlibs=no
 
7585
      fi
 
7586
      ;;
 
7587
 
 
7588
    cygwin* | mingw* | pw32*)
 
7589
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7590
      # as there is no search path for DLLs.
 
7591
      hardcode_libdir_flag_spec='-L$libdir'
 
7592
      allow_undefined_flag=unsupported
 
7593
      always_export_symbols=no
 
7594
      enable_shared_with_static_runtimes=yes
 
7595
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7596
 
 
7597
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7598
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7599
        # If the export-symbols file already is a .def file (1st line
 
7600
        # is EXPORTS), use it as is; otherwise, prepend...
 
7601
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7602
          cp $export_symbols $output_objdir/$soname.def;
 
7603
        else
 
7604
          echo EXPORTS > $output_objdir/$soname.def;
 
7605
          cat $export_symbols >> $output_objdir/$soname.def;
 
7606
        fi~
 
7607
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7608
      else
 
7609
        ld_shlibs=no
 
7610
      fi
 
7611
      ;;
 
7612
 
 
7613
    netbsd* | knetbsd*-gnu)
 
7614
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7615
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7616
        wlarc=
 
7617
      else
 
7618
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7619
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7620
      fi
 
7621
      ;;
 
7622
 
 
7623
    solaris* | sysv5*)
 
7624
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7625
        ld_shlibs=no
 
7626
        cat <<EOF 1>&2
 
7627
 
 
7628
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7629
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7630
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7631
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7632
*** your PATH or compiler configuration so that the native linker is
 
7633
*** used, and then restart.
 
7634
 
 
7635
EOF
 
7636
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7637
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7638
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7639
      else
 
7640
        ld_shlibs=no
 
7641
      fi
 
7642
      ;;
 
7643
 
 
7644
    sunos4*)
 
7645
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7646
      wlarc=
 
7647
      hardcode_direct=yes
 
7648
      hardcode_shlibpath_var=no
 
7649
      ;;
 
7650
 
 
7651
  linux*)
 
7652
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7653
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7654
        archive_cmds="$tmp_archive_cmds"
 
7655
      supports_anon_versioning=no
 
7656
      case `$LD -v 2>/dev/null` in
 
7657
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7658
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7659
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7660
        *\ 2.11.*) ;; # other 2.11 versions
 
7661
        *) supports_anon_versioning=yes ;;
 
7662
      esac
 
7663
      if test $supports_anon_versioning = yes; then
 
7664
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7665
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7666
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7667
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7668
      else
 
7669
        archive_expsym_cmds="$tmp_archive_cmds"
 
7670
      fi
 
7671
    else
 
7672
      ld_shlibs=no
 
7673
    fi
 
7674
    ;;
 
7675
 
 
7676
    *)
 
7677
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7678
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7679
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7680
      else
 
7681
        ld_shlibs=no
 
7682
      fi
 
7683
      ;;
 
7684
    esac
 
7685
 
 
7686
    if test "$ld_shlibs" = yes; then
 
7687
      runpath_var=LD_RUN_PATH
 
7688
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7689
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
7690
      # ancient GNU ld didn't support --whole-archive et. al.
 
7691
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7692
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7693
      else
 
7694
        whole_archive_flag_spec=
 
7695
      fi
 
7696
    fi
 
7697
  else
 
7698
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7699
    case $host_os in
 
7700
    aix3*)
 
7701
      allow_undefined_flag=unsupported
 
7702
      always_export_symbols=yes
 
7703
      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'
 
7704
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7705
      # are no directories specified by -L.
 
7706
      hardcode_minus_L=yes
 
7707
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7708
        # Neither direct hardcoding nor static linking is supported with a
 
7709
        # broken collect2.
 
7710
        hardcode_direct=unsupported
 
7711
      fi
 
7712
      ;;
 
7713
 
 
7714
    aix4* | aix5*)
 
7715
      if test "$host_cpu" = ia64; then
 
7716
        # On IA64, the linker does run time linking by default, so we don't
 
7717
        # have to do anything special.
 
7718
        aix_use_runtimelinking=no
 
7719
        exp_sym_flag='-Bexport'
 
7720
        no_entry_flag=""
 
7721
      else
 
7722
        # If we're using GNU nm, then we don't want the "-C" option.
 
7723
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7724
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7725
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7726
        else
 
7727
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7728
        fi
 
7729
        aix_use_runtimelinking=no
 
7730
 
 
7731
        # Test if we are trying to use run time linking or normal
 
7732
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7733
        # need to do runtime linking.
 
7734
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7735
          for ld_flag in $LDFLAGS; do
 
7736
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7737
            aix_use_runtimelinking=yes
 
7738
            break
 
7739
          fi
 
7740
          done
 
7741
        esac
 
7742
 
 
7743
        exp_sym_flag='-bexport'
 
7744
        no_entry_flag='-bnoentry'
 
7745
      fi
 
7746
 
 
7747
      # When large executables or shared objects are built, AIX ld can
 
7748
      # have problems creating the table of contents.  If linking a library
 
7749
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7750
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7751
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7752
 
 
7753
      archive_cmds=''
 
7754
      hardcode_direct=yes
 
7755
      hardcode_libdir_separator=':'
 
7756
      link_all_deplibs=yes
 
7757
 
 
7758
      if test "$GCC" = yes; then
 
7759
        case $host_os in aix4.012|aix4.012.*)
 
7760
        # We only want to do this on AIX 4.2 and lower, the check
 
7761
        # below for broken collect2 doesn't work under 4.3+
 
7762
          collect2name=`${CC} -print-prog-name=collect2`
 
7763
          if test -f "$collect2name" && \
 
7764
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7765
          then
 
7766
          # We have reworked collect2
 
7767
          hardcode_direct=yes
 
7768
          else
 
7769
          # We have old collect2
 
7770
          hardcode_direct=unsupported
 
7771
          # It fails to find uninstalled libraries when the uninstalled
 
7772
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7773
          # to unsupported forces relinking
 
7774
          hardcode_minus_L=yes
 
7775
          hardcode_libdir_flag_spec='-L$libdir'
 
7776
          hardcode_libdir_separator=
 
7777
          fi
 
7778
        esac
 
7779
        shared_flag='-shared'
 
7780
      else
 
7781
        # not using gcc
 
7782
        if test "$host_cpu" = ia64; then
 
7783
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7784
        # chokes on -Wl,-G. The following line is correct:
 
7785
          shared_flag='-G'
 
7786
        else
 
7787
        if test "$aix_use_runtimelinking" = yes; then
 
7788
            shared_flag='${wl}-G'
 
7789
          else
 
7790
            shared_flag='${wl}-bM:SRE'
 
7791
        fi
 
7792
        fi
 
7793
      fi
 
7794
 
 
7795
      # It seems that -bexpall does not export symbols beginning with
 
7796
      # underscore (_), so it is better to generate a list of symbols to export.
 
7797
      always_export_symbols=yes
 
7798
      if test "$aix_use_runtimelinking" = yes; then
 
7799
        # Warning - without using the other runtime loading flags (-brtl),
 
7800
        # -berok will link without error, but may produce a broken library.
 
7801
        allow_undefined_flag='-berok'
 
7802
       # Determine the default libpath from the value encoded in an empty executable.
 
7803
       cat >conftest.$ac_ext <<_ACEOF
 
7804
/* confdefs.h.  */
 
7805
_ACEOF
 
7806
cat confdefs.h >>conftest.$ac_ext
 
7807
cat >>conftest.$ac_ext <<_ACEOF
 
7808
/* end confdefs.h.  */
 
7809
 
 
7810
int
 
7811
main ()
 
7812
{
 
7813
 
 
7814
  ;
 
7815
  return 0;
 
7816
}
 
7817
_ACEOF
 
7818
rm -f conftest.$ac_objext conftest$ac_exeext
 
7819
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7820
  (eval $ac_link) 2>conftest.er1
 
7821
  ac_status=$?
 
7822
  grep -v '^ *+' conftest.er1 >conftest.err
 
7823
  rm -f conftest.er1
 
7824
  cat conftest.err >&5
 
7825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7826
  (exit $ac_status); } &&
 
7827
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7829
  (eval $ac_try) 2>&5
 
7830
  ac_status=$?
 
7831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7832
  (exit $ac_status); }; } &&
 
7833
         { ac_try='test -s conftest$ac_exeext'
 
7834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7835
  (eval $ac_try) 2>&5
 
7836
  ac_status=$?
 
7837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7838
  (exit $ac_status); }; }; then
 
7839
 
 
7840
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7841
}'`
 
7842
# Check for a 64-bit object if we didn't find anything.
 
7843
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7844
}'`; fi
 
7845
else
 
7846
  echo "$as_me: failed program was:" >&5
 
7847
sed 's/^/| /' conftest.$ac_ext >&5
 
7848
 
 
7849
fi
 
7850
rm -f conftest.err conftest.$ac_objext \
 
7851
      conftest$ac_exeext conftest.$ac_ext
 
7852
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7853
 
 
7854
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7855
        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"
 
7856
       else
 
7857
        if test "$host_cpu" = ia64; then
 
7858
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7859
          allow_undefined_flag="-z nodefs"
 
7860
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7861
        else
 
7862
         # Determine the default libpath from the value encoded in an empty executable.
 
7863
         cat >conftest.$ac_ext <<_ACEOF
 
7864
/* confdefs.h.  */
 
7865
_ACEOF
 
7866
cat confdefs.h >>conftest.$ac_ext
 
7867
cat >>conftest.$ac_ext <<_ACEOF
 
7868
/* end confdefs.h.  */
 
7869
 
 
7870
int
 
7871
main ()
 
7872
{
 
7873
 
 
7874
  ;
 
7875
  return 0;
 
7876
}
 
7877
_ACEOF
 
7878
rm -f conftest.$ac_objext conftest$ac_exeext
 
7879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7880
  (eval $ac_link) 2>conftest.er1
 
7881
  ac_status=$?
 
7882
  grep -v '^ *+' conftest.er1 >conftest.err
 
7883
  rm -f conftest.er1
 
7884
  cat conftest.err >&5
 
7885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7886
  (exit $ac_status); } &&
 
7887
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7889
  (eval $ac_try) 2>&5
 
7890
  ac_status=$?
 
7891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7892
  (exit $ac_status); }; } &&
 
7893
         { ac_try='test -s conftest$ac_exeext'
 
7894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7895
  (eval $ac_try) 2>&5
 
7896
  ac_status=$?
 
7897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7898
  (exit $ac_status); }; }; then
 
7899
 
 
7900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7901
}'`
 
7902
# Check for a 64-bit object if we didn't find anything.
 
7903
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7904
}'`; fi
 
7905
else
 
7906
  echo "$as_me: failed program was:" >&5
 
7907
sed 's/^/| /' conftest.$ac_ext >&5
 
7908
 
 
7909
fi
 
7910
rm -f conftest.err conftest.$ac_objext \
 
7911
      conftest$ac_exeext conftest.$ac_ext
 
7912
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7913
 
 
7914
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7915
          # Warning - without using the other run time loading flags,
 
7916
          # -berok will link without error, but may produce a broken library.
 
7917
          no_undefined_flag=' ${wl}-bernotok'
 
7918
          allow_undefined_flag=' ${wl}-berok'
 
7919
          # -bexpall does not export symbols beginning with underscore (_)
 
7920
          always_export_symbols=yes
 
7921
          # Exported symbols can be pulled into shared objects from archives
 
7922
          whole_archive_flag_spec=' '
 
7923
          archive_cmds_need_lc=yes
 
7924
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7925
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7926
        fi
 
7927
      fi
 
7928
      ;;
 
7929
 
 
7930
    amigaos*)
 
7931
      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)'
 
7932
      hardcode_libdir_flag_spec='-L$libdir'
 
7933
      hardcode_minus_L=yes
 
7934
      # see comment about different semantics on the GNU ld section
 
7935
      ld_shlibs=no
 
7936
      ;;
 
7937
 
 
7938
    bsdi4*)
 
7939
      export_dynamic_flag_spec=-rdynamic
 
7940
      ;;
 
7941
 
 
7942
    cygwin* | mingw* | pw32*)
 
7943
      # When not using gcc, we currently assume that we are using
 
7944
      # Microsoft Visual C++.
 
7945
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7946
      # no search path for DLLs.
 
7947
      hardcode_libdir_flag_spec=' '
 
7948
      allow_undefined_flag=unsupported
 
7949
      # Tell ltmain to make .lib files, not .a files.
 
7950
      libext=lib
 
7951
      # Tell ltmain to make .dll files, not .so files.
 
7952
      shrext=".dll"
 
7953
      # FIXME: Setting linknames here is a bad hack.
 
7954
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7955
      # The linker will automatically build a .lib file if we build a DLL.
 
7956
      old_archive_From_new_cmds='true'
 
7957
      # FIXME: Should let the user specify the lib program.
 
7958
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7959
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7960
      enable_shared_with_static_runtimes=yes
 
7961
      ;;
 
7962
 
 
7963
    darwin* | rhapsody*)
 
7964
    if test "$GXX" = yes ; then
 
7965
      archive_cmds_need_lc=no
 
7966
      case "$host_os" in
 
7967
      rhapsody* | darwin1.[012])
 
7968
        allow_undefined_flag='-undefined suppress'
 
7969
        ;;
 
7970
      *) # Darwin 1.3 on
 
7971
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7972
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7973
      else
 
7974
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7975
          10.[012])
 
7976
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7977
            ;;
 
7978
          10.*)
 
7979
            allow_undefined_flag='-undefined dynamic_lookup'
 
7980
            ;;
 
7981
        esac
 
7982
      fi
 
7983
        ;;
 
7984
      esac
 
7985
        lt_int_apple_cc_single_mod=no
 
7986
        output_verbose_link_cmd='echo'
 
7987
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7988
          lt_int_apple_cc_single_mod=yes
 
7989
        fi
 
7990
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7991
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7992
        else
 
7993
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7994
      fi
 
7995
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7996
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7997
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7998
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7999
        else
 
8000
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8001
        fi
 
8002
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8003
      hardcode_direct=no
 
8004
      hardcode_automatic=yes
 
8005
      hardcode_shlibpath_var=unsupported
 
8006
      whole_archive_flag_spec='-all_load $convenience'
 
8007
      link_all_deplibs=yes
 
8008
    else
 
8009
      ld_shlibs=no
 
8010
    fi
 
8011
      ;;
 
8012
 
 
8013
    dgux*)
 
8014
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8015
      hardcode_libdir_flag_spec='-L$libdir'
 
8016
      hardcode_shlibpath_var=no
 
8017
      ;;
 
8018
 
 
8019
    freebsd1*)
 
8020
      ld_shlibs=no
 
8021
      ;;
 
8022
 
 
8023
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8024
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8025
    # does not break anything, and helps significantly (at the cost of a little
 
8026
    # extra space).
 
8027
    freebsd2.2*)
 
8028
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8029
      hardcode_libdir_flag_spec='-R$libdir'
 
8030
      hardcode_direct=yes
 
8031
      hardcode_shlibpath_var=no
 
8032
      ;;
 
8033
 
 
8034
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8035
    freebsd2*)
 
8036
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8037
      hardcode_direct=yes
 
8038
      hardcode_minus_L=yes
 
8039
      hardcode_shlibpath_var=no
 
8040
      ;;
 
8041
 
 
8042
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8043
    freebsd* | kfreebsd*-gnu)
 
8044
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8045
      hardcode_libdir_flag_spec='-R$libdir'
 
8046
      hardcode_direct=yes
 
8047
      hardcode_shlibpath_var=no
 
8048
      ;;
 
8049
 
 
8050
    hpux9*)
 
8051
      if test "$GCC" = yes; then
 
8052
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8053
      else
 
8054
        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'
 
8055
      fi
 
8056
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8057
      hardcode_libdir_separator=:
 
8058
      hardcode_direct=yes
 
8059
 
 
8060
      # hardcode_minus_L: Not really in the search PATH,
 
8061
      # but as the default location of the library.
 
8062
      hardcode_minus_L=yes
 
8063
      export_dynamic_flag_spec='${wl}-E'
 
8064
      ;;
 
8065
 
 
8066
    hpux10* | hpux11*)
 
8067
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8068
        case "$host_cpu" in
 
8069
        hppa*64*|ia64*)
 
8070
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8071
          ;;
 
8072
        *)
 
8073
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8074
          ;;
 
8075
        esac
 
8076
      else
 
8077
        case "$host_cpu" in
 
8078
        hppa*64*|ia64*)
 
8079
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8080
          ;;
 
8081
        *)
 
8082
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8083
          ;;
 
8084
        esac
 
8085
      fi
 
8086
      if test "$with_gnu_ld" = no; then
 
8087
        case "$host_cpu" in
 
8088
        hppa*64*)
 
8089
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8090
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8091
          hardcode_libdir_separator=:
 
8092
          hardcode_direct=no
 
8093
          hardcode_shlibpath_var=no
 
8094
          ;;
 
8095
        ia64*)
 
8096
          hardcode_libdir_flag_spec='-L$libdir'
 
8097
          hardcode_direct=no
 
8098
          hardcode_shlibpath_var=no
 
8099
 
 
8100
          # hardcode_minus_L: Not really in the search PATH,
 
8101
          # but as the default location of the library.
 
8102
          hardcode_minus_L=yes
 
8103
          ;;
 
8104
        *)
 
8105
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8106
          hardcode_libdir_separator=:
 
8107
          hardcode_direct=yes
 
8108
          export_dynamic_flag_spec='${wl}-E'
 
8109
 
 
8110
          # hardcode_minus_L: Not really in the search PATH,
 
8111
          # but as the default location of the library.
 
8112
          hardcode_minus_L=yes
 
8113
          ;;
 
8114
        esac
 
8115
      fi
 
8116
      ;;
 
8117
 
 
8118
    irix5* | irix6* | nonstopux*)
 
8119
      if test "$GCC" = yes; then
 
8120
        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'
 
8121
      else
 
8122
        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'
 
8123
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8124
      fi
 
8125
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8126
      hardcode_libdir_separator=:
 
8127
      link_all_deplibs=yes
 
8128
      ;;
 
8129
 
 
8130
    netbsd* | knetbsd*-gnu)
 
8131
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8132
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8133
      else
 
8134
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8135
      fi
 
8136
      hardcode_libdir_flag_spec='-R$libdir'
 
8137
      hardcode_direct=yes
 
8138
      hardcode_shlibpath_var=no
 
8139
      ;;
 
8140
 
 
8141
    newsos6)
 
8142
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8143
      hardcode_direct=yes
 
8144
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8145
      hardcode_libdir_separator=:
 
8146
      hardcode_shlibpath_var=no
 
8147
      ;;
 
8148
 
 
8149
    openbsd*)
 
8150
      hardcode_direct=yes
 
8151
      hardcode_shlibpath_var=no
 
8152
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8153
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8154
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8155
        export_dynamic_flag_spec='${wl}-E'
 
8156
      else
 
8157
       case $host_os in
 
8158
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8159
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8160
           hardcode_libdir_flag_spec='-R$libdir'
 
8161
           ;;
 
8162
         *)
 
8163
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8164
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8165
           ;;
 
8166
       esac
 
8167
      fi
 
8168
      ;;
 
8169
 
 
8170
    os2*)
 
8171
      hardcode_libdir_flag_spec='-L$libdir'
 
8172
      hardcode_minus_L=yes
 
8173
      allow_undefined_flag=unsupported
 
8174
      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'
 
8175
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8176
      ;;
 
8177
 
 
8178
    osf3*)
 
8179
      if test "$GCC" = yes; then
 
8180
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8181
        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'
 
8182
      else
 
8183
        allow_undefined_flag=' -expect_unresolved \*'
 
8184
        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'
 
8185
      fi
 
8186
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8187
      hardcode_libdir_separator=:
 
8188
      ;;
 
8189
 
 
8190
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8191
      if test "$GCC" = yes; then
 
8192
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8193
        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'
 
8194
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8195
      else
 
8196
        allow_undefined_flag=' -expect_unresolved \*'
 
8197
        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'
 
8198
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8199
        $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'
 
8200
 
 
8201
        # Both c and cxx compiler support -rpath directly
 
8202
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8203
      fi
 
8204
      hardcode_libdir_separator=:
 
8205
      ;;
 
8206
 
 
8207
    sco3.2v5*)
 
8208
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8209
      hardcode_shlibpath_var=no
 
8210
      export_dynamic_flag_spec='${wl}-Bexport'
 
8211
      runpath_var=LD_RUN_PATH
 
8212
      hardcode_runpath_var=yes
 
8213
      ;;
 
8214
 
 
8215
    solaris*)
 
8216
      no_undefined_flag=' -z text'
 
8217
      if test "$GCC" = yes; then
 
8218
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8219
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8220
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8221
      else
 
8222
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8223
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8224
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8225
      fi
 
8226
      hardcode_libdir_flag_spec='-R$libdir'
 
8227
      hardcode_shlibpath_var=no
 
8228
      case $host_os in
 
8229
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8230
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8231
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8232
      esac
 
8233
      link_all_deplibs=yes
 
8234
      ;;
 
8235
 
 
8236
    sunos4*)
 
8237
      if test "x$host_vendor" = xsequent; then
 
8238
        # Use $CC to link under sequent, because it throws in some extra .o
 
8239
        # files that make .init and .fini sections work.
 
8240
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8241
      else
 
8242
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8243
      fi
 
8244
      hardcode_libdir_flag_spec='-L$libdir'
 
8245
      hardcode_direct=yes
 
8246
      hardcode_minus_L=yes
 
8247
      hardcode_shlibpath_var=no
 
8248
      ;;
 
8249
 
 
8250
    sysv4)
 
8251
      case $host_vendor in
 
8252
        sni)
 
8253
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8254
          hardcode_direct=yes # is this really true???
 
8255
        ;;
 
8256
        siemens)
 
8257
          ## LD is ld it makes a PLAMLIB
 
8258
          ## CC just makes a GrossModule.
 
8259
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8260
          reload_cmds='$CC -r -o $output$reload_objs'
 
8261
          hardcode_direct=no
 
8262
        ;;
 
8263
        motorola)
 
8264
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8265
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8266
        ;;
 
8267
      esac
 
8268
      runpath_var='LD_RUN_PATH'
 
8269
      hardcode_shlibpath_var=no
 
8270
      ;;
 
8271
 
 
8272
    sysv4.3*)
 
8273
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8274
      hardcode_shlibpath_var=no
 
8275
      export_dynamic_flag_spec='-Bexport'
 
8276
      ;;
 
8277
 
 
8278
    sysv4*MP*)
 
8279
      if test -d /usr/nec; then
 
8280
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8281
        hardcode_shlibpath_var=no
 
8282
        runpath_var=LD_RUN_PATH
 
8283
        hardcode_runpath_var=yes
 
8284
        ld_shlibs=yes
 
8285
      fi
 
8286
      ;;
 
8287
 
 
8288
    sysv4.2uw2*)
 
8289
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8290
      hardcode_direct=yes
 
8291
      hardcode_minus_L=no
 
8292
      hardcode_shlibpath_var=no
 
8293
      hardcode_runpath_var=yes
 
8294
      runpath_var=LD_RUN_PATH
 
8295
      ;;
 
8296
 
 
8297
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8298
      no_undefined_flag='${wl}-z ${wl}text'
 
8299
      if test "$GCC" = yes; then
 
8300
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8301
      else
 
8302
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8303
      fi
 
8304
      runpath_var='LD_RUN_PATH'
 
8305
      hardcode_shlibpath_var=no
 
8306
      ;;
 
8307
 
 
8308
    sysv5*)
 
8309
      no_undefined_flag=' -z text'
 
8310
      # $CC -shared without GNU ld will not create a library from C++
 
8311
      # object files and a static libstdc++, better avoid it by now
 
8312
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8313
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8314
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8315
      hardcode_libdir_flag_spec=
 
8316
      hardcode_shlibpath_var=no
 
8317
      runpath_var='LD_RUN_PATH'
 
8318
      ;;
 
8319
 
 
8320
    uts4*)
 
8321
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8322
      hardcode_libdir_flag_spec='-L$libdir'
 
8323
      hardcode_shlibpath_var=no
 
8324
      ;;
 
8325
 
 
8326
    *)
 
8327
      ld_shlibs=no
 
8328
      ;;
 
8329
    esac
 
8330
  fi
 
8331
 
 
8332
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8333
echo "${ECHO_T}$ld_shlibs" >&6
 
8334
test "$ld_shlibs" = no && can_build_shared=no
 
8335
 
 
8336
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8337
if test "$GCC" = yes; then
 
8338
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8339
fi
 
8340
 
 
8341
#
 
8342
# Do we need to explicitly link libc?
 
8343
#
 
8344
case "x$archive_cmds_need_lc" in
 
8345
x|xyes)
 
8346
  # Assume -lc should be added
 
8347
  archive_cmds_need_lc=yes
 
8348
 
 
8349
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8350
    case $archive_cmds in
 
8351
    *'~'*)
 
8352
      # FIXME: we may have to deal with multi-command sequences.
 
8353
      ;;
 
8354
    '$CC '*)
 
8355
      # Test whether the compiler implicitly links with -lc since on some
 
8356
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8357
      # to ld, don't add -lc before -lgcc.
 
8358
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8359
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8360
      $rm conftest*
 
8361
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8362
 
 
8363
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8364
  (eval $ac_compile) 2>&5
 
8365
  ac_status=$?
 
8366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8367
  (exit $ac_status); } 2>conftest.err; then
 
8368
        soname=conftest
 
8369
        lib=conftest
 
8370
        libobjs=conftest.$ac_objext
 
8371
        deplibs=
 
8372
        wl=$lt_prog_compiler_wl
 
8373
        compiler_flags=-v
 
8374
        linker_flags=-v
 
8375
        verstring=
 
8376
        output_objdir=.
 
8377
        libname=conftest
 
8378
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8379
        allow_undefined_flag=
 
8380
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8381
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8382
  ac_status=$?
 
8383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8384
  (exit $ac_status); }
 
8385
        then
 
8386
          archive_cmds_need_lc=no
 
8387
        else
 
8388
          archive_cmds_need_lc=yes
 
8389
        fi
 
8390
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8391
      else
 
8392
        cat conftest.err 1>&5
 
8393
      fi
 
8394
      $rm conftest*
 
8395
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8396
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8397
      ;;
 
8398
    esac
 
8399
  fi
 
8400
  ;;
 
8401
esac
 
8402
 
 
8403
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8404
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8405
library_names_spec=
 
8406
libname_spec='lib$name'
 
8407
soname_spec=
 
8408
shrext=".so"
 
8409
postinstall_cmds=
 
8410
postuninstall_cmds=
 
8411
finish_cmds=
 
8412
finish_eval=
 
8413
shlibpath_var=
 
8414
shlibpath_overrides_runpath=unknown
 
8415
version_type=none
 
8416
dynamic_linker="$host_os ld.so"
 
8417
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8418
if test "$GCC" = yes; then
 
8419
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8420
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8421
    # if the path contains ";" then we assume it to be the separator
 
8422
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8423
    # assumed that no part of a normal pathname contains ";" but that should
 
8424
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8425
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8426
  else
 
8427
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8428
  fi
 
8429
else
 
8430
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8431
fi
 
8432
need_lib_prefix=unknown
 
8433
hardcode_into_libs=no
 
8434
 
 
8435
# when you set need_version to no, make sure it does not cause -set_version
 
8436
# flags to be left without arguments
 
8437
need_version=unknown
 
8438
 
 
8439
case $host_os in
 
8440
aix3*)
 
8441
  version_type=linux
 
8442
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8443
  shlibpath_var=LIBPATH
 
8444
 
 
8445
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8446
  soname_spec='${libname}${release}${shared_ext}$major'
 
8447
  ;;
 
8448
 
 
8449
aix4* | aix5*)
 
8450
  version_type=linux
 
8451
  need_lib_prefix=no
 
8452
  need_version=no
 
8453
  hardcode_into_libs=yes
 
8454
  if test "$host_cpu" = ia64; then
 
8455
    # AIX 5 supports IA64
 
8456
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8457
    shlibpath_var=LD_LIBRARY_PATH
 
8458
  else
 
8459
    # With GCC up to 2.95.x, collect2 would create an import file
 
8460
    # for dependence libraries.  The import file would start with
 
8461
    # the line `#! .'.  This would cause the generated library to
 
8462
    # depend on `.', always an invalid library.  This was fixed in
 
8463
    # development snapshots of GCC prior to 3.0.
 
8464
    case $host_os in
 
8465
      aix4 | aix4.[01] | aix4.[01].*)
 
8466
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8467
           echo ' yes '
 
8468
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8469
        :
 
8470
      else
 
8471
        can_build_shared=no
 
8472
      fi
 
8473
      ;;
 
8474
    esac
 
8475
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8476
    # soname into executable. Probably we can add versioning support to
 
8477
    # collect2, so additional links can be useful in future.
 
8478
    if test "$aix_use_runtimelinking" = yes; then
 
8479
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8480
      # instead of lib<name>.a to let people know that these are not
 
8481
      # typical AIX shared libraries.
 
8482
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8483
    else
 
8484
      # We preserve .a as extension for shared libraries through AIX4.2
 
8485
      # and later when we are not doing run time linking.
 
8486
      library_names_spec='${libname}${release}.a $libname.a'
 
8487
      soname_spec='${libname}${release}${shared_ext}$major'
 
8488
    fi
 
8489
    shlibpath_var=LIBPATH
 
8490
  fi
 
8491
  ;;
 
8492
 
 
8493
amigaos*)
 
8494
  library_names_spec='$libname.ixlibrary $libname.a'
 
8495
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8496
  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'
 
8497
  ;;
 
8498
 
 
8499
beos*)
 
8500
  library_names_spec='${libname}${shared_ext}'
 
8501
  dynamic_linker="$host_os ld.so"
 
8502
  shlibpath_var=LIBRARY_PATH
 
8503
  ;;
 
8504
 
 
8505
bsdi4*)
 
8506
  version_type=linux
 
8507
  need_version=no
 
8508
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8509
  soname_spec='${libname}${release}${shared_ext}$major'
 
8510
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8511
  shlibpath_var=LD_LIBRARY_PATH
 
8512
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8513
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8514
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8515
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8516
  # libtool to hard-code these into programs
 
8517
  ;;
 
8518
 
 
8519
cygwin* | mingw* | pw32*)
 
8520
  version_type=windows
 
8521
  shrext=".dll"
 
8522
  need_version=no
 
8523
  need_lib_prefix=no
 
8524
 
 
8525
  case $GCC,$host_os in
 
8526
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8527
    library_names_spec='$libname.dll.a'
 
8528
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8529
    postinstall_cmds='base_file=`basename \${file}`~
 
8530
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8531
      dldir=$destdir/`dirname \$dlpath`~
 
8532
      test -d \$dldir || mkdir -p \$dldir~
 
8533
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8534
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8535
      dlpath=$dir/\$dldll~
 
8536
       $rm \$dlpath'
 
8537
    shlibpath_overrides_runpath=yes
 
8538
 
 
8539
    case $host_os in
 
8540
    cygwin*)
 
8541
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8542
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8543
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8544
      ;;
 
8545
    mingw*)
 
8546
      # MinGW DLLs use traditional 'lib' prefix
 
8547
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8548
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8549
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8550
        # It is most probably a Windows format PATH printed by
 
8551
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8552
        # path with ; separators, and with drive letters. We can handle the
 
8553
        # drive letters (cygwin fileutils understands them), so leave them,
 
8554
        # especially as we might pass files found there to a mingw objdump,
 
8555
        # which wouldn't understand a cygwinified path. Ahh.
 
8556
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8557
      else
 
8558
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8559
      fi
 
8560
      ;;
 
8561
    pw32*)
 
8562
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8563
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8564
      ;;
 
8565
    esac
 
8566
    ;;
 
8567
 
 
8568
  *)
 
8569
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8570
    ;;
 
8571
  esac
 
8572
  dynamic_linker='Win32 ld.exe'
 
8573
  # FIXME: first we should search . and the directory the executable is in
 
8574
  shlibpath_var=PATH
 
8575
  ;;
 
8576
 
 
8577
darwin* | rhapsody*)
 
8578
  dynamic_linker="$host_os dyld"
 
8579
  version_type=darwin
 
8580
  need_lib_prefix=no
 
8581
  need_version=no
 
8582
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8583
  soname_spec='${libname}${release}${major}$shared_ext'
 
8584
  shlibpath_overrides_runpath=yes
 
8585
  shlibpath_var=DYLD_LIBRARY_PATH
 
8586
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
8587
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8588
  if test "$GCC" = yes; then
 
8589
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8590
  else
 
8591
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8592
  fi
 
8593
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8594
  ;;
 
8595
 
 
8596
dgux*)
 
8597
  version_type=linux
 
8598
  need_lib_prefix=no
 
8599
  need_version=no
 
8600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8601
  soname_spec='${libname}${release}${shared_ext}$major'
 
8602
  shlibpath_var=LD_LIBRARY_PATH
 
8603
  ;;
 
8604
 
 
8605
freebsd1*)
 
8606
  dynamic_linker=no
 
8607
  ;;
 
8608
 
 
8609
kfreebsd*-gnu)
 
8610
  version_type=linux
 
8611
  need_lib_prefix=no
 
8612
  need_version=no
 
8613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8614
  soname_spec='${libname}${release}${shared_ext}$major'
 
8615
  shlibpath_var=LD_LIBRARY_PATH
 
8616
  shlibpath_overrides_runpath=no
 
8617
  hardcode_into_libs=yes
 
8618
  dynamic_linker='GNU ld.so'
 
8619
  ;;
 
8620
 
 
8621
freebsd*)
 
8622
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8623
  version_type=freebsd-$objformat
 
8624
  case $version_type in
 
8625
    freebsd-elf*)
 
8626
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8627
      need_version=no
 
8628
      need_lib_prefix=no
 
8629
      ;;
 
8630
    freebsd-*)
 
8631
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8632
      need_version=yes
 
8633
      ;;
 
8634
  esac
 
8635
  shlibpath_var=LD_LIBRARY_PATH
 
8636
  case $host_os in
 
8637
  freebsd2*)
 
8638
    shlibpath_overrides_runpath=yes
 
8639
    ;;
 
8640
  freebsd3.01* | freebsdelf3.01*)
 
8641
    shlibpath_overrides_runpath=yes
 
8642
    hardcode_into_libs=yes
 
8643
    ;;
 
8644
  *) # from 3.2 on
 
8645
    shlibpath_overrides_runpath=no
 
8646
    hardcode_into_libs=yes
 
8647
    ;;
 
8648
  esac
 
8649
  ;;
 
8650
 
 
8651
gnu*)
 
8652
  version_type=linux
 
8653
  need_lib_prefix=no
 
8654
  need_version=no
 
8655
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8656
  soname_spec='${libname}${release}${shared_ext}$major'
 
8657
  shlibpath_var=LD_LIBRARY_PATH
 
8658
  hardcode_into_libs=yes
 
8659
  ;;
 
8660
 
 
8661
hpux9* | hpux10* | hpux11*)
 
8662
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8663
  # link against other versions.
 
8664
  version_type=sunos
 
8665
  need_lib_prefix=no
 
8666
  need_version=no
 
8667
  case "$host_cpu" in
 
8668
  ia64*)
 
8669
    shrext='.so'
 
8670
    hardcode_into_libs=yes
 
8671
    dynamic_linker="$host_os dld.so"
 
8672
    shlibpath_var=LD_LIBRARY_PATH
 
8673
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8674
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8675
    soname_spec='${libname}${release}${shared_ext}$major'
 
8676
    if test "X$HPUX_IA64_MODE" = X32; then
 
8677
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8678
    else
 
8679
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8680
    fi
 
8681
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8682
    ;;
 
8683
   hppa*64*)
 
8684
     shrext='.sl'
 
8685
     hardcode_into_libs=yes
 
8686
     dynamic_linker="$host_os dld.sl"
 
8687
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8688
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8689
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8690
     soname_spec='${libname}${release}${shared_ext}$major'
 
8691
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8692
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8693
     ;;
 
8694
   *)
 
8695
    shrext='.sl'
 
8696
    dynamic_linker="$host_os dld.sl"
 
8697
    shlibpath_var=SHLIB_PATH
 
8698
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8699
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8700
    soname_spec='${libname}${release}${shared_ext}$major'
 
8701
    ;;
 
8702
  esac
 
8703
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8704
  postinstall_cmds='chmod 555 $lib'
 
8705
  ;;
 
8706
 
 
8707
irix5* | irix6* | nonstopux*)
 
8708
  case $host_os in
 
8709
    nonstopux*) version_type=nonstopux ;;
 
8710
    *)
 
8711
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8712
                version_type=linux
 
8713
        else
 
8714
                version_type=irix
 
8715
        fi ;;
 
8716
  esac
 
8717
  need_lib_prefix=no
 
8718
  need_version=no
 
8719
  soname_spec='${libname}${release}${shared_ext}$major'
 
8720
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8721
  case $host_os in
 
8722
  irix5* | nonstopux*)
 
8723
    libsuff= shlibsuff=
 
8724
    ;;
 
8725
  *)
 
8726
    case $LD in # libtool.m4 will add one of these switches to LD
 
8727
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8728
      libsuff= shlibsuff= libmagic=32-bit;;
 
8729
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8730
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8731
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8732
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8733
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8734
    esac
 
8735
    ;;
 
8736
  esac
 
8737
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8738
  shlibpath_overrides_runpath=no
 
8739
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8740
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8741
  hardcode_into_libs=yes
 
8742
  ;;
 
8743
 
 
8744
# No shared lib support for Linux oldld, aout, or coff.
 
8745
linux*oldld* | linux*aout* | linux*coff*)
 
8746
  dynamic_linker=no
 
8747
  ;;
 
8748
 
 
8749
# This must be Linux ELF.
 
8750
linux*)
 
8751
  version_type=linux
 
8752
  need_lib_prefix=no
 
8753
  need_version=no
 
8754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8755
  soname_spec='${libname}${release}${shared_ext}$major'
 
8756
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8757
  shlibpath_var=LD_LIBRARY_PATH
 
8758
  shlibpath_overrides_runpath=no
 
8759
  # This implies no fast_install, which is unacceptable.
 
8760
  # Some rework will be needed to allow for fast_install
 
8761
  # before this can be enabled.
 
8762
  hardcode_into_libs=yes
 
8763
 
 
8764
  # Append ld.so.conf contents to the search path
 
8765
  if test -f /etc/ld.so.conf; then
 
8766
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
8767
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
8768
  fi
 
8769
 
 
8770
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8771
  # powerpc, because MkLinux only supported shared libraries with the
 
8772
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8773
  # most powerpc-linux boxes support dynamic linking these days and
 
8774
  # people can always --disable-shared, the test was removed, and we
 
8775
  # assume the GNU/Linux dynamic linker is in use.
 
8776
  dynamic_linker='GNU/Linux ld.so'
 
8777
  ;;
 
8778
 
 
8779
knetbsd*-gnu)
 
8780
  version_type=linux
 
8781
  need_lib_prefix=no
 
8782
  need_version=no
 
8783
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8784
  soname_spec='${libname}${release}${shared_ext}$major'
 
8785
  shlibpath_var=LD_LIBRARY_PATH
 
8786
  shlibpath_overrides_runpath=no
 
8787
  hardcode_into_libs=yes
 
8788
  dynamic_linker='GNU ld.so'
 
8789
  ;;
 
8790
 
 
8791
netbsd*)
 
8792
  version_type=sunos
 
8793
  need_lib_prefix=no
 
8794
  need_version=no
 
8795
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8796
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8797
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8798
    dynamic_linker='NetBSD (a.out) ld.so'
 
8799
  else
 
8800
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8801
    soname_spec='${libname}${release}${shared_ext}$major'
 
8802
    dynamic_linker='NetBSD ld.elf_so'
 
8803
  fi
 
8804
  shlibpath_var=LD_LIBRARY_PATH
 
8805
  shlibpath_overrides_runpath=yes
 
8806
  hardcode_into_libs=yes
 
8807
  ;;
 
8808
 
 
8809
newsos6)
 
8810
  version_type=linux
 
8811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8812
  shlibpath_var=LD_LIBRARY_PATH
 
8813
  shlibpath_overrides_runpath=yes
 
8814
  ;;
 
8815
 
 
8816
nto-qnx*)
 
8817
  version_type=linux
 
8818
  need_lib_prefix=no
 
8819
  need_version=no
 
8820
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8821
  soname_spec='${libname}${release}${shared_ext}$major'
 
8822
  shlibpath_var=LD_LIBRARY_PATH
 
8823
  shlibpath_overrides_runpath=yes
 
8824
  ;;
 
8825
 
 
8826
openbsd*)
 
8827
  version_type=sunos
 
8828
  need_lib_prefix=no
 
8829
  need_version=yes
 
8830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8831
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8832
  shlibpath_var=LD_LIBRARY_PATH
 
8833
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8834
    case $host_os in
 
8835
      openbsd2.[89] | openbsd2.[89].*)
 
8836
        shlibpath_overrides_runpath=no
 
8837
        ;;
 
8838
      *)
 
8839
        shlibpath_overrides_runpath=yes
 
8840
        ;;
 
8841
      esac
 
8842
  else
 
8843
    shlibpath_overrides_runpath=yes
 
8844
  fi
 
8845
  ;;
 
8846
 
 
8847
os2*)
 
8848
  libname_spec='$name'
 
8849
  shrext=".dll"
 
8850
  need_lib_prefix=no
 
8851
  library_names_spec='$libname${shared_ext} $libname.a'
 
8852
  dynamic_linker='OS/2 ld.exe'
 
8853
  shlibpath_var=LIBPATH
 
8854
  ;;
 
8855
 
 
8856
osf3* | osf4* | osf5*)
 
8857
  version_type=osf
 
8858
  need_lib_prefix=no
 
8859
  need_version=no
 
8860
  soname_spec='${libname}${release}${shared_ext}$major'
 
8861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8862
  shlibpath_var=LD_LIBRARY_PATH
 
8863
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8864
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8865
  ;;
 
8866
 
 
8867
sco3.2v5*)
 
8868
  version_type=osf
 
8869
  soname_spec='${libname}${release}${shared_ext}$major'
 
8870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8871
  shlibpath_var=LD_LIBRARY_PATH
 
8872
  ;;
 
8873
 
 
8874
solaris*)
 
8875
  version_type=linux
 
8876
  need_lib_prefix=no
 
8877
  need_version=no
 
8878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8879
  soname_spec='${libname}${release}${shared_ext}$major'
 
8880
  shlibpath_var=LD_LIBRARY_PATH
 
8881
  shlibpath_overrides_runpath=yes
 
8882
  hardcode_into_libs=yes
 
8883
  # ldd complains unless libraries are executable
 
8884
  postinstall_cmds='chmod +x $lib'
 
8885
  ;;
 
8886
 
 
8887
sunos4*)
 
8888
  version_type=sunos
 
8889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8890
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8891
  shlibpath_var=LD_LIBRARY_PATH
 
8892
  shlibpath_overrides_runpath=yes
 
8893
  if test "$with_gnu_ld" = yes; then
 
8894
    need_lib_prefix=no
 
8895
  fi
 
8896
  need_version=yes
 
8897
  ;;
 
8898
 
 
8899
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8900
  version_type=linux
 
8901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8902
  soname_spec='${libname}${release}${shared_ext}$major'
 
8903
  shlibpath_var=LD_LIBRARY_PATH
 
8904
  case $host_vendor in
 
8905
    sni)
 
8906
      shlibpath_overrides_runpath=no
 
8907
      need_lib_prefix=no
 
8908
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8909
      runpath_var=LD_RUN_PATH
 
8910
      ;;
 
8911
    siemens)
 
8912
      need_lib_prefix=no
 
8913
      ;;
 
8914
    motorola)
 
8915
      need_lib_prefix=no
 
8916
      need_version=no
 
8917
      shlibpath_overrides_runpath=no
 
8918
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8919
      ;;
 
8920
  esac
 
8921
  ;;
 
8922
 
 
8923
sysv4*MP*)
 
8924
  if test -d /usr/nec ;then
 
8925
    version_type=linux
 
8926
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8927
    soname_spec='$libname${shared_ext}.$major'
 
8928
    shlibpath_var=LD_LIBRARY_PATH
 
8929
  fi
 
8930
  ;;
 
8931
 
 
8932
uts4*)
 
8933
  version_type=linux
 
8934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8935
  soname_spec='${libname}${release}${shared_ext}$major'
 
8936
  shlibpath_var=LD_LIBRARY_PATH
 
8937
  ;;
 
8938
 
 
8939
*)
 
8940
  dynamic_linker=no
 
8941
  ;;
 
8942
esac
 
8943
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8944
echo "${ECHO_T}$dynamic_linker" >&6
 
8945
test "$dynamic_linker" = no && can_build_shared=no
 
8946
 
 
8947
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8948
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8949
hardcode_action=
 
8950
if test -n "$hardcode_libdir_flag_spec" || \
 
8951
   test -n "$runpath_var " || \
 
8952
   test "X$hardcode_automatic"="Xyes" ; then
 
8953
 
 
8954
  # We can hardcode non-existant directories.
 
8955
  if test "$hardcode_direct" != no &&
 
8956
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8957
     # have to relink, otherwise we might link with an installed library
 
8958
     # when we should be linking with a yet-to-be-installed one
 
8959
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8960
     test "$hardcode_minus_L" != no; then
 
8961
    # Linking always hardcodes the temporary library directory.
 
8962
    hardcode_action=relink
 
8963
  else
 
8964
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8965
    hardcode_action=immediate
 
8966
  fi
 
8967
else
 
8968
  # We cannot hardcode anything, or else we can only hardcode existing
 
8969
  # directories.
 
8970
  hardcode_action=unsupported
 
8971
fi
 
8972
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8973
echo "${ECHO_T}$hardcode_action" >&6
 
8974
 
 
8975
if test "$hardcode_action" = relink; then
 
8976
  # Fast installation is not supported
 
8977
  enable_fast_install=no
 
8978
elif test "$shlibpath_overrides_runpath" = yes ||
 
8979
     test "$enable_shared" = no; then
 
8980
  # Fast installation is not necessary
 
8981
  enable_fast_install=needless
 
8982
fi
 
8983
 
 
8984
striplib=
 
8985
old_striplib=
 
8986
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8987
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8988
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8989
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8990
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8991
  echo "$as_me:$LINENO: result: yes" >&5
 
8992
echo "${ECHO_T}yes" >&6
 
8993
else
 
8994
# FIXME - insert some real tests, host_os isn't really good enough
 
8995
  case $host_os in
 
8996
   darwin*)
 
8997
       if test -n "$STRIP" ; then
 
8998
         striplib="$STRIP -x"
 
8999
         echo "$as_me:$LINENO: result: yes" >&5
 
9000
echo "${ECHO_T}yes" >&6
 
9001
       else
 
9002
  echo "$as_me:$LINENO: result: no" >&5
 
9003
echo "${ECHO_T}no" >&6
 
9004
fi
 
9005
       ;;
 
9006
   *)
 
9007
  echo "$as_me:$LINENO: result: no" >&5
 
9008
echo "${ECHO_T}no" >&6
 
9009
    ;;
 
9010
  esac
 
9011
fi
 
9012
 
 
9013
if test "x$enable_dlopen" != xyes; then
 
9014
  enable_dlopen=unknown
 
9015
  enable_dlopen_self=unknown
 
9016
  enable_dlopen_self_static=unknown
 
9017
else
 
9018
  lt_cv_dlopen=no
 
9019
  lt_cv_dlopen_libs=
 
9020
 
 
9021
  case $host_os in
 
9022
  beos*)
 
9023
    lt_cv_dlopen="load_add_on"
 
9024
    lt_cv_dlopen_libs=
 
9025
    lt_cv_dlopen_self=yes
 
9026
    ;;
 
9027
 
 
9028
  mingw* | pw32*)
 
9029
    lt_cv_dlopen="LoadLibrary"
 
9030
    lt_cv_dlopen_libs=
 
9031
   ;;
 
9032
 
 
9033
  cygwin*)
 
9034
    lt_cv_dlopen="dlopen"
 
9035
    lt_cv_dlopen_libs=
 
9036
   ;;
 
9037
 
 
9038
  darwin*)
 
9039
  # if libdl is installed we need to link against it
 
9040
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9041
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9042
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9044
else
 
9045
  ac_check_lib_save_LIBS=$LIBS
 
9046
LIBS="-ldl  $LIBS"
 
9047
cat >conftest.$ac_ext <<_ACEOF
 
9048
/* confdefs.h.  */
 
9049
_ACEOF
 
9050
cat confdefs.h >>conftest.$ac_ext
 
9051
cat >>conftest.$ac_ext <<_ACEOF
 
9052
/* end confdefs.h.  */
 
9053
 
 
9054
/* Override any gcc2 internal prototype to avoid an error.  */
 
9055
#ifdef __cplusplus
 
9056
extern "C"
 
9057
#endif
 
9058
/* We use char because int might match the return type of a gcc2
 
9059
   builtin and then its argument prototype would still apply.  */
 
9060
char dlopen ();
 
9061
int
 
9062
main ()
 
9063
{
 
9064
dlopen ();
 
9065
  ;
 
9066
  return 0;
 
9067
}
 
9068
_ACEOF
 
9069
rm -f conftest.$ac_objext conftest$ac_exeext
 
9070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9071
  (eval $ac_link) 2>conftest.er1
 
9072
  ac_status=$?
 
9073
  grep -v '^ *+' conftest.er1 >conftest.err
 
9074
  rm -f conftest.er1
 
9075
  cat conftest.err >&5
 
9076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9077
  (exit $ac_status); } &&
 
9078
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9080
  (eval $ac_try) 2>&5
 
9081
  ac_status=$?
 
9082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9083
  (exit $ac_status); }; } &&
 
9084
         { ac_try='test -s conftest$ac_exeext'
 
9085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9086
  (eval $ac_try) 2>&5
 
9087
  ac_status=$?
 
9088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9089
  (exit $ac_status); }; }; then
 
9090
  ac_cv_lib_dl_dlopen=yes
 
9091
else
 
9092
  echo "$as_me: failed program was:" >&5
 
9093
sed 's/^/| /' conftest.$ac_ext >&5
 
9094
 
 
9095
ac_cv_lib_dl_dlopen=no
 
9096
fi
 
9097
rm -f conftest.err conftest.$ac_objext \
 
9098
      conftest$ac_exeext conftest.$ac_ext
 
9099
LIBS=$ac_check_lib_save_LIBS
 
9100
fi
 
9101
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9102
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9103
if test $ac_cv_lib_dl_dlopen = yes; then
 
9104
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9105
else
 
9106
 
 
9107
    lt_cv_dlopen="dyld"
 
9108
    lt_cv_dlopen_libs=
 
9109
    lt_cv_dlopen_self=yes
 
9110
 
 
9111
fi
 
9112
 
 
9113
   ;;
 
9114
 
 
9115
  *)
 
9116
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9117
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9118
if test "${ac_cv_func_shl_load+set}" = set; then
 
9119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9120
else
 
9121
  cat >conftest.$ac_ext <<_ACEOF
 
9122
/* confdefs.h.  */
 
9123
_ACEOF
 
9124
cat confdefs.h >>conftest.$ac_ext
 
9125
cat >>conftest.$ac_ext <<_ACEOF
 
9126
/* end confdefs.h.  */
 
9127
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9128
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9129
#define shl_load innocuous_shl_load
 
9130
 
 
9131
/* System header to define __stub macros and hopefully few prototypes,
 
9132
    which can conflict with char shl_load (); below.
 
9133
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9134
    <limits.h> exists even on freestanding compilers.  */
 
9135
 
 
9136
#ifdef __STDC__
 
9137
# include <limits.h>
 
9138
#else
 
9139
# include <assert.h>
 
9140
#endif
 
9141
 
 
9142
#undef shl_load
 
9143
 
 
9144
/* Override any gcc2 internal prototype to avoid an error.  */
 
9145
#ifdef __cplusplus
 
9146
extern "C"
 
9147
{
 
9148
#endif
 
9149
/* We use char because int might match the return type of a gcc2
 
9150
   builtin and then its argument prototype would still apply.  */
 
9151
char shl_load ();
 
9152
/* The GNU C library defines this for functions which it implements
 
9153
    to always fail with ENOSYS.  Some functions are actually named
 
9154
    something starting with __ and the normal name is an alias.  */
 
9155
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9156
choke me
 
9157
#else
 
9158
char (*f) () = shl_load;
 
9159
#endif
 
9160
#ifdef __cplusplus
 
9161
}
 
9162
#endif
 
9163
 
 
9164
int
 
9165
main ()
 
9166
{
 
9167
return f != shl_load;
 
9168
  ;
 
9169
  return 0;
 
9170
}
 
9171
_ACEOF
 
9172
rm -f conftest.$ac_objext conftest$ac_exeext
 
9173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9174
  (eval $ac_link) 2>conftest.er1
 
9175
  ac_status=$?
 
9176
  grep -v '^ *+' conftest.er1 >conftest.err
 
9177
  rm -f conftest.er1
 
9178
  cat conftest.err >&5
 
9179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9180
  (exit $ac_status); } &&
 
9181
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9183
  (eval $ac_try) 2>&5
 
9184
  ac_status=$?
 
9185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9186
  (exit $ac_status); }; } &&
 
9187
         { ac_try='test -s conftest$ac_exeext'
 
9188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9189
  (eval $ac_try) 2>&5
 
9190
  ac_status=$?
 
9191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9192
  (exit $ac_status); }; }; then
 
9193
  ac_cv_func_shl_load=yes
 
9194
else
 
9195
  echo "$as_me: failed program was:" >&5
 
9196
sed 's/^/| /' conftest.$ac_ext >&5
 
9197
 
 
9198
ac_cv_func_shl_load=no
 
9199
fi
 
9200
rm -f conftest.err conftest.$ac_objext \
 
9201
      conftest$ac_exeext conftest.$ac_ext
 
9202
fi
 
9203
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9204
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9205
if test $ac_cv_func_shl_load = yes; then
 
9206
  lt_cv_dlopen="shl_load"
 
9207
else
 
9208
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9209
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9210
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9212
else
 
9213
  ac_check_lib_save_LIBS=$LIBS
 
9214
LIBS="-ldld  $LIBS"
 
9215
cat >conftest.$ac_ext <<_ACEOF
 
9216
/* confdefs.h.  */
 
9217
_ACEOF
 
9218
cat confdefs.h >>conftest.$ac_ext
 
9219
cat >>conftest.$ac_ext <<_ACEOF
 
9220
/* end confdefs.h.  */
 
9221
 
 
9222
/* Override any gcc2 internal prototype to avoid an error.  */
 
9223
#ifdef __cplusplus
 
9224
extern "C"
 
9225
#endif
 
9226
/* We use char because int might match the return type of a gcc2
 
9227
   builtin and then its argument prototype would still apply.  */
 
9228
char shl_load ();
 
9229
int
 
9230
main ()
 
9231
{
 
9232
shl_load ();
 
9233
  ;
 
9234
  return 0;
 
9235
}
 
9236
_ACEOF
 
9237
rm -f conftest.$ac_objext conftest$ac_exeext
 
9238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9239
  (eval $ac_link) 2>conftest.er1
 
9240
  ac_status=$?
 
9241
  grep -v '^ *+' conftest.er1 >conftest.err
 
9242
  rm -f conftest.er1
 
9243
  cat conftest.err >&5
 
9244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9245
  (exit $ac_status); } &&
 
9246
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9248
  (eval $ac_try) 2>&5
 
9249
  ac_status=$?
 
9250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9251
  (exit $ac_status); }; } &&
 
9252
         { ac_try='test -s conftest$ac_exeext'
 
9253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9254
  (eval $ac_try) 2>&5
 
9255
  ac_status=$?
 
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9257
  (exit $ac_status); }; }; then
 
9258
  ac_cv_lib_dld_shl_load=yes
 
9259
else
 
9260
  echo "$as_me: failed program was:" >&5
 
9261
sed 's/^/| /' conftest.$ac_ext >&5
 
9262
 
 
9263
ac_cv_lib_dld_shl_load=no
 
9264
fi
 
9265
rm -f conftest.err conftest.$ac_objext \
 
9266
      conftest$ac_exeext conftest.$ac_ext
 
9267
LIBS=$ac_check_lib_save_LIBS
 
9268
fi
 
9269
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9270
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9271
if test $ac_cv_lib_dld_shl_load = yes; then
 
9272
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9273
else
 
9274
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9275
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9276
if test "${ac_cv_func_dlopen+set}" = set; then
 
9277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9278
else
 
9279
  cat >conftest.$ac_ext <<_ACEOF
 
9280
/* confdefs.h.  */
 
9281
_ACEOF
 
9282
cat confdefs.h >>conftest.$ac_ext
 
9283
cat >>conftest.$ac_ext <<_ACEOF
 
9284
/* end confdefs.h.  */
 
9285
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9286
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9287
#define dlopen innocuous_dlopen
 
9288
 
 
9289
/* System header to define __stub macros and hopefully few prototypes,
 
9290
    which can conflict with char dlopen (); below.
 
9291
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9292
    <limits.h> exists even on freestanding compilers.  */
 
9293
 
 
9294
#ifdef __STDC__
 
9295
# include <limits.h>
 
9296
#else
 
9297
# include <assert.h>
 
9298
#endif
 
9299
 
 
9300
#undef dlopen
 
9301
 
 
9302
/* Override any gcc2 internal prototype to avoid an error.  */
 
9303
#ifdef __cplusplus
 
9304
extern "C"
 
9305
{
 
9306
#endif
 
9307
/* We use char because int might match the return type of a gcc2
 
9308
   builtin and then its argument prototype would still apply.  */
 
9309
char dlopen ();
 
9310
/* The GNU C library defines this for functions which it implements
 
9311
    to always fail with ENOSYS.  Some functions are actually named
 
9312
    something starting with __ and the normal name is an alias.  */
 
9313
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9314
choke me
 
9315
#else
 
9316
char (*f) () = dlopen;
 
9317
#endif
 
9318
#ifdef __cplusplus
 
9319
}
 
9320
#endif
 
9321
 
 
9322
int
 
9323
main ()
 
9324
{
 
9325
return f != dlopen;
 
9326
  ;
 
9327
  return 0;
 
9328
}
 
9329
_ACEOF
 
9330
rm -f conftest.$ac_objext conftest$ac_exeext
 
9331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9332
  (eval $ac_link) 2>conftest.er1
 
9333
  ac_status=$?
 
9334
  grep -v '^ *+' conftest.er1 >conftest.err
 
9335
  rm -f conftest.er1
 
9336
  cat conftest.err >&5
 
9337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9338
  (exit $ac_status); } &&
 
9339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9341
  (eval $ac_try) 2>&5
 
9342
  ac_status=$?
 
9343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9344
  (exit $ac_status); }; } &&
 
9345
         { ac_try='test -s conftest$ac_exeext'
 
9346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9347
  (eval $ac_try) 2>&5
 
9348
  ac_status=$?
 
9349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9350
  (exit $ac_status); }; }; then
 
9351
  ac_cv_func_dlopen=yes
 
9352
else
 
9353
  echo "$as_me: failed program was:" >&5
 
9354
sed 's/^/| /' conftest.$ac_ext >&5
 
9355
 
 
9356
ac_cv_func_dlopen=no
 
9357
fi
 
9358
rm -f conftest.err conftest.$ac_objext \
 
9359
      conftest$ac_exeext conftest.$ac_ext
 
9360
fi
 
9361
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9362
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9363
if test $ac_cv_func_dlopen = yes; then
 
9364
  lt_cv_dlopen="dlopen"
 
9365
else
 
9366
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9367
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9368
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9370
else
 
9371
  ac_check_lib_save_LIBS=$LIBS
 
9372
LIBS="-ldl  $LIBS"
 
9373
cat >conftest.$ac_ext <<_ACEOF
 
9374
/* confdefs.h.  */
 
9375
_ACEOF
 
9376
cat confdefs.h >>conftest.$ac_ext
 
9377
cat >>conftest.$ac_ext <<_ACEOF
 
9378
/* end confdefs.h.  */
 
9379
 
 
9380
/* Override any gcc2 internal prototype to avoid an error.  */
 
9381
#ifdef __cplusplus
 
9382
extern "C"
 
9383
#endif
 
9384
/* We use char because int might match the return type of a gcc2
 
9385
   builtin and then its argument prototype would still apply.  */
 
9386
char dlopen ();
 
9387
int
 
9388
main ()
 
9389
{
 
9390
dlopen ();
 
9391
  ;
 
9392
  return 0;
 
9393
}
 
9394
_ACEOF
 
9395
rm -f conftest.$ac_objext conftest$ac_exeext
 
9396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9397
  (eval $ac_link) 2>conftest.er1
 
9398
  ac_status=$?
 
9399
  grep -v '^ *+' conftest.er1 >conftest.err
 
9400
  rm -f conftest.er1
 
9401
  cat conftest.err >&5
 
9402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9403
  (exit $ac_status); } &&
 
9404
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9406
  (eval $ac_try) 2>&5
 
9407
  ac_status=$?
 
9408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9409
  (exit $ac_status); }; } &&
 
9410
         { ac_try='test -s conftest$ac_exeext'
 
9411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9412
  (eval $ac_try) 2>&5
 
9413
  ac_status=$?
 
9414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9415
  (exit $ac_status); }; }; then
 
9416
  ac_cv_lib_dl_dlopen=yes
 
9417
else
 
9418
  echo "$as_me: failed program was:" >&5
 
9419
sed 's/^/| /' conftest.$ac_ext >&5
 
9420
 
 
9421
ac_cv_lib_dl_dlopen=no
 
9422
fi
 
9423
rm -f conftest.err conftest.$ac_objext \
 
9424
      conftest$ac_exeext conftest.$ac_ext
 
9425
LIBS=$ac_check_lib_save_LIBS
 
9426
fi
 
9427
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9428
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9429
if test $ac_cv_lib_dl_dlopen = yes; then
 
9430
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9431
else
 
9432
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9433
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9434
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9436
else
 
9437
  ac_check_lib_save_LIBS=$LIBS
 
9438
LIBS="-lsvld  $LIBS"
 
9439
cat >conftest.$ac_ext <<_ACEOF
 
9440
/* confdefs.h.  */
 
9441
_ACEOF
 
9442
cat confdefs.h >>conftest.$ac_ext
 
9443
cat >>conftest.$ac_ext <<_ACEOF
 
9444
/* end confdefs.h.  */
 
9445
 
 
9446
/* Override any gcc2 internal prototype to avoid an error.  */
 
9447
#ifdef __cplusplus
 
9448
extern "C"
 
9449
#endif
 
9450
/* We use char because int might match the return type of a gcc2
 
9451
   builtin and then its argument prototype would still apply.  */
 
9452
char dlopen ();
 
9453
int
 
9454
main ()
 
9455
{
 
9456
dlopen ();
 
9457
  ;
 
9458
  return 0;
 
9459
}
 
9460
_ACEOF
 
9461
rm -f conftest.$ac_objext conftest$ac_exeext
 
9462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9463
  (eval $ac_link) 2>conftest.er1
 
9464
  ac_status=$?
 
9465
  grep -v '^ *+' conftest.er1 >conftest.err
 
9466
  rm -f conftest.er1
 
9467
  cat conftest.err >&5
 
9468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9469
  (exit $ac_status); } &&
 
9470
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9472
  (eval $ac_try) 2>&5
 
9473
  ac_status=$?
 
9474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9475
  (exit $ac_status); }; } &&
 
9476
         { ac_try='test -s conftest$ac_exeext'
 
9477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9478
  (eval $ac_try) 2>&5
 
9479
  ac_status=$?
 
9480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9481
  (exit $ac_status); }; }; then
 
9482
  ac_cv_lib_svld_dlopen=yes
 
9483
else
 
9484
  echo "$as_me: failed program was:" >&5
 
9485
sed 's/^/| /' conftest.$ac_ext >&5
 
9486
 
 
9487
ac_cv_lib_svld_dlopen=no
 
9488
fi
 
9489
rm -f conftest.err conftest.$ac_objext \
 
9490
      conftest$ac_exeext conftest.$ac_ext
 
9491
LIBS=$ac_check_lib_save_LIBS
 
9492
fi
 
9493
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9494
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9495
if test $ac_cv_lib_svld_dlopen = yes; then
 
9496
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9497
else
 
9498
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9499
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9500
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9502
else
 
9503
  ac_check_lib_save_LIBS=$LIBS
 
9504
LIBS="-ldld  $LIBS"
 
9505
cat >conftest.$ac_ext <<_ACEOF
 
9506
/* confdefs.h.  */
 
9507
_ACEOF
 
9508
cat confdefs.h >>conftest.$ac_ext
 
9509
cat >>conftest.$ac_ext <<_ACEOF
 
9510
/* end confdefs.h.  */
 
9511
 
 
9512
/* Override any gcc2 internal prototype to avoid an error.  */
 
9513
#ifdef __cplusplus
 
9514
extern "C"
 
9515
#endif
 
9516
/* We use char because int might match the return type of a gcc2
 
9517
   builtin and then its argument prototype would still apply.  */
 
9518
char dld_link ();
 
9519
int
 
9520
main ()
 
9521
{
 
9522
dld_link ();
 
9523
  ;
 
9524
  return 0;
 
9525
}
 
9526
_ACEOF
 
9527
rm -f conftest.$ac_objext conftest$ac_exeext
 
9528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9529
  (eval $ac_link) 2>conftest.er1
 
9530
  ac_status=$?
 
9531
  grep -v '^ *+' conftest.er1 >conftest.err
 
9532
  rm -f conftest.er1
 
9533
  cat conftest.err >&5
 
9534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9535
  (exit $ac_status); } &&
 
9536
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9538
  (eval $ac_try) 2>&5
 
9539
  ac_status=$?
 
9540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9541
  (exit $ac_status); }; } &&
 
9542
         { ac_try='test -s conftest$ac_exeext'
 
9543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9544
  (eval $ac_try) 2>&5
 
9545
  ac_status=$?
 
9546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9547
  (exit $ac_status); }; }; then
 
9548
  ac_cv_lib_dld_dld_link=yes
 
9549
else
 
9550
  echo "$as_me: failed program was:" >&5
 
9551
sed 's/^/| /' conftest.$ac_ext >&5
 
9552
 
 
9553
ac_cv_lib_dld_dld_link=no
 
9554
fi
 
9555
rm -f conftest.err conftest.$ac_objext \
 
9556
      conftest$ac_exeext conftest.$ac_ext
 
9557
LIBS=$ac_check_lib_save_LIBS
 
9558
fi
 
9559
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9560
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9561
if test $ac_cv_lib_dld_dld_link = yes; then
 
9562
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9563
fi
 
9564
 
 
9565
 
 
9566
fi
 
9567
 
 
9568
 
 
9569
fi
 
9570
 
 
9571
 
 
9572
fi
 
9573
 
 
9574
 
 
9575
fi
 
9576
 
 
9577
 
 
9578
fi
 
9579
 
 
9580
    ;;
 
9581
  esac
 
9582
 
 
9583
  if test "x$lt_cv_dlopen" != xno; then
 
9584
    enable_dlopen=yes
 
9585
  else
 
9586
    enable_dlopen=no
 
9587
  fi
 
9588
 
 
9589
  case $lt_cv_dlopen in
 
9590
  dlopen)
 
9591
    save_CPPFLAGS="$CPPFLAGS"
 
9592
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9593
 
 
9594
    save_LDFLAGS="$LDFLAGS"
 
9595
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9596
 
 
9597
    save_LIBS="$LIBS"
 
9598
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9599
 
 
9600
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9601
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9602
if test "${lt_cv_dlopen_self+set}" = set; then
 
9603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9604
else
 
9605
          if test "$cross_compiling" = yes; then :
 
9606
  lt_cv_dlopen_self=cross
 
9607
else
 
9608
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9609
  lt_status=$lt_dlunknown
 
9610
  cat > conftest.$ac_ext <<EOF
 
9611
#line 9611 "configure"
 
9612
#include "confdefs.h"
 
9613
 
 
9614
#if HAVE_DLFCN_H
 
9615
#include <dlfcn.h>
 
9616
#endif
 
9617
 
 
9618
#include <stdio.h>
 
9619
 
 
9620
#ifdef RTLD_GLOBAL
 
9621
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9622
#else
 
9623
#  ifdef DL_GLOBAL
 
9624
#    define LT_DLGLOBAL         DL_GLOBAL
 
9625
#  else
 
9626
#    define LT_DLGLOBAL         0
 
9627
#  endif
 
9628
#endif
 
9629
 
 
9630
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9631
   find out it does not work in some platform. */
 
9632
#ifndef LT_DLLAZY_OR_NOW
 
9633
#  ifdef RTLD_LAZY
 
9634
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9635
#  else
 
9636
#    ifdef DL_LAZY
 
9637
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9638
#    else
 
9639
#      ifdef RTLD_NOW
 
9640
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9641
#      else
 
9642
#        ifdef DL_NOW
 
9643
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9644
#        else
 
9645
#          define LT_DLLAZY_OR_NOW      0
 
9646
#        endif
 
9647
#      endif
 
9648
#    endif
 
9649
#  endif
 
9650
#endif
 
9651
 
 
9652
#ifdef __cplusplus
 
9653
extern "C" void exit (int);
 
9654
#endif
 
9655
 
 
9656
void fnord() { int i=42;}
 
9657
int main ()
 
9658
{
 
9659
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9660
  int status = $lt_dlunknown;
 
9661
 
 
9662
  if (self)
 
9663
    {
 
9664
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9665
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9666
      /* dlclose (self); */
 
9667
    }
 
9668
 
 
9669
    exit (status);
 
9670
}
 
9671
EOF
 
9672
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9673
  (eval $ac_link) 2>&5
 
9674
  ac_status=$?
 
9675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9676
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9677
    (./conftest; exit; ) 2>/dev/null
 
9678
    lt_status=$?
 
9679
    case x$lt_status in
 
9680
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9681
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9682
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9683
    esac
 
9684
  else :
 
9685
    # compilation failed
 
9686
    lt_cv_dlopen_self=no
 
9687
  fi
 
9688
fi
 
9689
rm -fr conftest*
 
9690
 
 
9691
 
 
9692
fi
 
9693
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9694
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9695
 
 
9696
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9697
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9698
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9699
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9700
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9702
else
 
9703
          if test "$cross_compiling" = yes; then :
 
9704
  lt_cv_dlopen_self_static=cross
 
9705
else
 
9706
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9707
  lt_status=$lt_dlunknown
 
9708
  cat > conftest.$ac_ext <<EOF
 
9709
#line 9709 "configure"
 
9710
#include "confdefs.h"
 
9711
 
 
9712
#if HAVE_DLFCN_H
 
9713
#include <dlfcn.h>
 
9714
#endif
 
9715
 
 
9716
#include <stdio.h>
 
9717
 
 
9718
#ifdef RTLD_GLOBAL
 
9719
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9720
#else
 
9721
#  ifdef DL_GLOBAL
 
9722
#    define LT_DLGLOBAL         DL_GLOBAL
 
9723
#  else
 
9724
#    define LT_DLGLOBAL         0
 
9725
#  endif
 
9726
#endif
 
9727
 
 
9728
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9729
   find out it does not work in some platform. */
 
9730
#ifndef LT_DLLAZY_OR_NOW
 
9731
#  ifdef RTLD_LAZY
 
9732
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9733
#  else
 
9734
#    ifdef DL_LAZY
 
9735
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9736
#    else
 
9737
#      ifdef RTLD_NOW
 
9738
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9739
#      else
 
9740
#        ifdef DL_NOW
 
9741
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9742
#        else
 
9743
#          define LT_DLLAZY_OR_NOW      0
 
9744
#        endif
 
9745
#      endif
 
9746
#    endif
 
9747
#  endif
 
9748
#endif
 
9749
 
 
9750
#ifdef __cplusplus
 
9751
extern "C" void exit (int);
 
9752
#endif
 
9753
 
 
9754
void fnord() { int i=42;}
 
9755
int main ()
 
9756
{
 
9757
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9758
  int status = $lt_dlunknown;
 
9759
 
 
9760
  if (self)
 
9761
    {
 
9762
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9763
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9764
      /* dlclose (self); */
 
9765
    }
 
9766
 
 
9767
    exit (status);
 
9768
}
 
9769
EOF
 
9770
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9771
  (eval $ac_link) 2>&5
 
9772
  ac_status=$?
 
9773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9774
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9775
    (./conftest; exit; ) 2>/dev/null
 
9776
    lt_status=$?
 
9777
    case x$lt_status in
 
9778
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9779
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9780
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9781
    esac
 
9782
  else :
 
9783
    # compilation failed
 
9784
    lt_cv_dlopen_self_static=no
 
9785
  fi
 
9786
fi
 
9787
rm -fr conftest*
 
9788
 
 
9789
 
 
9790
fi
 
9791
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9792
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9793
    fi
 
9794
 
 
9795
    CPPFLAGS="$save_CPPFLAGS"
 
9796
    LDFLAGS="$save_LDFLAGS"
 
9797
    LIBS="$save_LIBS"
 
9798
    ;;
 
9799
  esac
 
9800
 
 
9801
  case $lt_cv_dlopen_self in
 
9802
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9803
  *) enable_dlopen_self=unknown ;;
 
9804
  esac
 
9805
 
 
9806
  case $lt_cv_dlopen_self_static in
 
9807
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9808
  *) enable_dlopen_self_static=unknown ;;
 
9809
  esac
 
9810
fi
 
9811
 
 
9812
 
 
9813
# Report which librarie types wil actually be built
 
9814
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9815
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9816
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9817
echo "${ECHO_T}$can_build_shared" >&6
 
9818
 
 
9819
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9820
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9821
test "$can_build_shared" = "no" && enable_shared=no
 
9822
 
 
9823
# On AIX, shared libraries and static libraries use the same namespace, and
 
9824
# are all built from PIC.
 
9825
case "$host_os" in
 
9826
aix3*)
 
9827
  test "$enable_shared" = yes && enable_static=no
 
9828
  if test -n "$RANLIB"; then
 
9829
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9830
    postinstall_cmds='$RANLIB $lib'
 
9831
  fi
 
9832
  ;;
 
9833
 
 
9834
aix4*)
 
9835
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9836
    test "$enable_shared" = yes && enable_static=no
 
9837
  fi
 
9838
  ;;
 
9839
  darwin* | rhapsody*)
 
9840
  if test "$GCC" = yes; then
 
9841
    archive_cmds_need_lc=no
 
9842
    case "$host_os" in
 
9843
    rhapsody* | darwin1.[012])
 
9844
      allow_undefined_flag='-undefined suppress'
 
9845
      ;;
 
9846
    *) # Darwin 1.3 on
 
9847
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9848
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9849
      else
 
9850
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9851
          10.[012])
 
9852
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9853
            ;;
 
9854
          10.*)
 
9855
            allow_undefined_flag='-undefined dynamic_lookup'
 
9856
            ;;
 
9857
        esac
 
9858
      fi
 
9859
      ;;
 
9860
    esac
 
9861
    output_verbose_link_cmd='echo'
 
9862
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9863
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9864
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9865
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9866
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9867
    hardcode_direct=no
 
9868
    hardcode_automatic=yes
 
9869
    hardcode_shlibpath_var=unsupported
 
9870
    whole_archive_flag_spec='-all_load $convenience'
 
9871
    link_all_deplibs=yes
 
9872
  else
 
9873
    ld_shlibs=no
 
9874
  fi
 
9875
    ;;
 
9876
esac
 
9877
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9878
echo "${ECHO_T}$enable_shared" >&6
 
9879
 
 
9880
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9881
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9882
# Make sure either enable_shared or enable_static is yes.
 
9883
test "$enable_shared" = yes || enable_static=yes
 
9884
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9885
echo "${ECHO_T}$enable_static" >&6
 
9886
 
 
9887
# The else clause should only fire when bootstrapping the
 
9888
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9889
# with your package, and you will get complaints that there are
 
9890
# no rules to generate ltmain.sh.
 
9891
if test -f "$ltmain"; then
 
9892
  # See if we are running on zsh, and set the options which allow our commands through
 
9893
  # without removal of \ escapes.
 
9894
  if test -n "${ZSH_VERSION+set}" ; then
 
9895
    setopt NO_GLOB_SUBST
 
9896
  fi
 
9897
  # Now quote all the things that may contain metacharacters while being
 
9898
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9899
  # variables and quote the copies for generation of the libtool script.
 
9900
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9901
    SED SHELL STRIP \
 
9902
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9903
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9904
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9905
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9906
    lt_cv_sys_global_symbol_to_c_name_address \
 
9907
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9908
    old_postinstall_cmds old_postuninstall_cmds \
 
9909
    compiler \
 
9910
    CC \
 
9911
    LD \
 
9912
    lt_prog_compiler_wl \
 
9913
    lt_prog_compiler_pic \
 
9914
    lt_prog_compiler_static \
 
9915
    lt_prog_compiler_no_builtin_flag \
 
9916
    export_dynamic_flag_spec \
 
9917
    thread_safe_flag_spec \
 
9918
    whole_archive_flag_spec \
 
9919
    enable_shared_with_static_runtimes \
 
9920
    old_archive_cmds \
 
9921
    old_archive_from_new_cmds \
 
9922
    predep_objects \
 
9923
    postdep_objects \
 
9924
    predeps \
 
9925
    postdeps \
 
9926
    compiler_lib_search_path \
 
9927
    archive_cmds \
 
9928
    archive_expsym_cmds \
 
9929
    postinstall_cmds \
 
9930
    postuninstall_cmds \
 
9931
    old_archive_from_expsyms_cmds \
 
9932
    allow_undefined_flag \
 
9933
    no_undefined_flag \
 
9934
    export_symbols_cmds \
 
9935
    hardcode_libdir_flag_spec \
 
9936
    hardcode_libdir_flag_spec_ld \
 
9937
    hardcode_libdir_separator \
 
9938
    hardcode_automatic \
 
9939
    module_cmds \
 
9940
    module_expsym_cmds \
 
9941
    lt_cv_prog_compiler_c_o \
 
9942
    exclude_expsyms \
 
9943
    include_expsyms; do
 
9944
 
 
9945
    case $var in
 
9946
    old_archive_cmds | \
 
9947
    old_archive_from_new_cmds | \
 
9948
    archive_cmds | \
 
9949
    archive_expsym_cmds | \
 
9950
    module_cmds | \
 
9951
    module_expsym_cmds | \
 
9952
    old_archive_from_expsyms_cmds | \
 
9953
    export_symbols_cmds | \
 
9954
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9955
    postinstall_cmds | postuninstall_cmds | \
 
9956
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9957
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9958
      # Double-quote double-evaled strings.
 
9959
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9960
      ;;
 
9961
    *)
 
9962
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9963
      ;;
 
9964
    esac
 
9965
  done
 
9966
 
 
9967
  case $lt_echo in
 
9968
  *'\$0 --fallback-echo"')
 
9969
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9970
    ;;
 
9971
  esac
 
9972
 
 
9973
cfgfile="${ofile}T"
 
9974
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9975
  $rm -f "$cfgfile"
 
9976
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9977
echo "$as_me: creating $ofile" >&6;}
 
9978
 
 
9979
  cat <<__EOF__ >> "$cfgfile"
 
9980
#! $SHELL
 
9981
 
 
9982
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9983
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9984
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9985
#
 
9986
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9987
# Free Software Foundation, Inc.
 
9988
#
 
9989
# This file is part of GNU Libtool:
 
9990
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9991
#
 
9992
# This program is free software; you can redistribute it and/or modify
 
9993
# it under the terms of the GNU General Public License as published by
 
9994
# the Free Software Foundation; either version 2 of the License, or
 
9995
# (at your option) any later version.
 
9996
#
 
9997
# This program is distributed in the hope that it will be useful, but
 
9998
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9999
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10000
# General Public License for more details.
 
10001
#
 
10002
# You should have received a copy of the GNU General Public License
 
10003
# along with this program; if not, write to the Free Software
 
10004
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10005
#
 
10006
# As a special exception to the GNU General Public License, if you
 
10007
# distribute this file as part of a program that contains a
 
10008
# configuration script generated by Autoconf, you may include it under
 
10009
# the same distribution terms that you use for the rest of that program.
 
10010
 
 
10011
# A sed program that does not truncate output.
 
10012
SED=$lt_SED
 
10013
 
 
10014
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10015
Xsed="$SED -e s/^X//"
 
10016
 
 
10017
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10018
# if CDPATH is set.
 
10019
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10020
 
 
10021
# The names of the tagged configurations supported by this script.
 
10022
available_tags=
 
10023
 
 
10024
# ### BEGIN LIBTOOL CONFIG
 
10025
 
 
10026
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10027
 
 
10028
# Shell to use when invoking shell scripts.
 
10029
SHELL=$lt_SHELL
 
10030
 
 
10031
# Whether or not to build shared libraries.
 
10032
build_libtool_libs=$enable_shared
 
10033
 
 
10034
# Whether or not to build static libraries.
 
10035
build_old_libs=$enable_static
 
10036
 
 
10037
# Whether or not to add -lc for building shared libraries.
 
10038
build_libtool_need_lc=$archive_cmds_need_lc
 
10039
 
 
10040
# Whether or not to disallow shared libs when runtime libs are static
 
10041
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10042
 
 
10043
# Whether or not to optimize for fast installation.
 
10044
fast_install=$enable_fast_install
 
10045
 
 
10046
# The host system.
 
10047
host_alias=$host_alias
 
10048
host=$host
 
10049
 
 
10050
# An echo program that does not interpret backslashes.
 
10051
echo=$lt_echo
 
10052
 
 
10053
# The archiver.
 
10054
AR=$lt_AR
 
10055
AR_FLAGS=$lt_AR_FLAGS
 
10056
 
 
10057
# A C compiler.
 
10058
LTCC=$lt_LTCC
 
10059
 
 
10060
# A language-specific compiler.
 
10061
CC=$lt_compiler
 
10062
 
 
10063
# Is the compiler the GNU C compiler?
 
10064
with_gcc=$GCC
 
10065
 
 
10066
# An ERE matcher.
 
10067
EGREP=$lt_EGREP
 
10068
 
 
10069
# The linker used to build libraries.
 
10070
LD=$lt_LD
 
10071
 
 
10072
# Whether we need hard or soft links.
 
10073
LN_S=$lt_LN_S
 
10074
 
 
10075
# A BSD-compatible nm program.
 
10076
NM=$lt_NM
 
10077
 
 
10078
# A symbol stripping program
 
10079
STRIP=$lt_STRIP
 
10080
 
 
10081
# Used to examine libraries when file_magic_cmd begins "file"
 
10082
MAGIC_CMD=$MAGIC_CMD
 
10083
 
 
10084
# Used on cygwin: DLL creation program.
 
10085
DLLTOOL="$DLLTOOL"
 
10086
 
 
10087
# Used on cygwin: object dumper.
 
10088
OBJDUMP="$OBJDUMP"
 
10089
 
 
10090
# Used on cygwin: assembler.
 
10091
AS="$AS"
 
10092
 
 
10093
# The name of the directory that contains temporary libtool files.
 
10094
objdir=$objdir
 
10095
 
 
10096
# How to create reloadable object files.
 
10097
reload_flag=$lt_reload_flag
 
10098
reload_cmds=$lt_reload_cmds
 
10099
 
 
10100
# How to pass a linker flag through the compiler.
 
10101
wl=$lt_lt_prog_compiler_wl
 
10102
 
 
10103
# Object file suffix (normally "o").
 
10104
objext="$ac_objext"
 
10105
 
 
10106
# Old archive suffix (normally "a").
 
10107
libext="$libext"
 
10108
 
 
10109
# Shared library suffix (normally ".so").
 
10110
shrext='$shrext'
 
10111
 
 
10112
# Executable file suffix (normally "").
 
10113
exeext="$exeext"
 
10114
 
 
10115
# Additional compiler flags for building library objects.
 
10116
pic_flag=$lt_lt_prog_compiler_pic
 
10117
pic_mode=$pic_mode
 
10118
 
 
10119
# What is the maximum length of a command?
 
10120
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10121
 
 
10122
# Does compiler simultaneously support -c and -o options?
 
10123
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10124
 
 
10125
# Must we lock files when doing compilation ?
 
10126
need_locks=$lt_need_locks
 
10127
 
 
10128
# Do we need the lib prefix for modules?
 
10129
need_lib_prefix=$need_lib_prefix
 
10130
 
 
10131
# Do we need a version for libraries?
 
10132
need_version=$need_version
 
10133
 
 
10134
# Whether dlopen is supported.
 
10135
dlopen_support=$enable_dlopen
 
10136
 
 
10137
# Whether dlopen of programs is supported.
 
10138
dlopen_self=$enable_dlopen_self
 
10139
 
 
10140
# Whether dlopen of statically linked programs is supported.
 
10141
dlopen_self_static=$enable_dlopen_self_static
 
10142
 
 
10143
# Compiler flag to prevent dynamic linking.
 
10144
link_static_flag=$lt_lt_prog_compiler_static
 
10145
 
 
10146
# Compiler flag to turn off builtin functions.
 
10147
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10148
 
 
10149
# Compiler flag to allow reflexive dlopens.
 
10150
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10151
 
 
10152
# Compiler flag to generate shared objects directly from archives.
 
10153
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10154
 
 
10155
# Compiler flag to generate thread-safe objects.
 
10156
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10157
 
 
10158
# Library versioning type.
 
10159
version_type=$version_type
 
10160
 
 
10161
# Format of library name prefix.
 
10162
libname_spec=$lt_libname_spec
 
10163
 
 
10164
# List of archive names.  First name is the real one, the rest are links.
 
10165
# The last name is the one that the linker finds with -lNAME.
 
10166
library_names_spec=$lt_library_names_spec
 
10167
 
 
10168
# The coded name of the library, if different from the real name.
 
10169
soname_spec=$lt_soname_spec
 
10170
 
 
10171
# Commands used to build and install an old-style archive.
 
10172
RANLIB=$lt_RANLIB
 
10173
old_archive_cmds=$lt_old_archive_cmds
 
10174
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10175
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10176
 
 
10177
# Create an old-style archive from a shared archive.
 
10178
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10179
 
 
10180
# Create a temporary old-style archive to link instead of a shared archive.
 
10181
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10182
 
 
10183
# Commands used to build and install a shared archive.
 
10184
archive_cmds=$lt_archive_cmds
 
10185
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10186
postinstall_cmds=$lt_postinstall_cmds
 
10187
postuninstall_cmds=$lt_postuninstall_cmds
 
10188
 
 
10189
# Commands used to build a loadable module (assumed same as above if empty)
 
10190
module_cmds=$lt_module_cmds
 
10191
module_expsym_cmds=$lt_module_expsym_cmds
 
10192
 
 
10193
# Commands to strip libraries.
 
10194
old_striplib=$lt_old_striplib
 
10195
striplib=$lt_striplib
 
10196
 
 
10197
# Dependencies to place before the objects being linked to create a
 
10198
# shared library.
 
10199
predep_objects=$lt_predep_objects
 
10200
 
 
10201
# Dependencies to place after the objects being linked to create a
 
10202
# shared library.
 
10203
postdep_objects=$lt_postdep_objects
 
10204
 
 
10205
# Dependencies to place before the objects being linked to create a
 
10206
# shared library.
 
10207
predeps=$lt_predeps
 
10208
 
 
10209
# Dependencies to place after the objects being linked to create a
 
10210
# shared library.
 
10211
postdeps=$lt_postdeps
 
10212
 
 
10213
# The library search path used internally by the compiler when linking
 
10214
# a shared library.
 
10215
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10216
 
 
10217
# Method to check whether dependent libraries are shared objects.
 
10218
deplibs_check_method=$lt_deplibs_check_method
 
10219
 
 
10220
# Command to use when deplibs_check_method == file_magic.
 
10221
file_magic_cmd=$lt_file_magic_cmd
 
10222
 
 
10223
# Flag that allows shared libraries with undefined symbols to be built.
 
10224
allow_undefined_flag=$lt_allow_undefined_flag
 
10225
 
 
10226
# Flag that forces no undefined symbols.
 
10227
no_undefined_flag=$lt_no_undefined_flag
 
10228
 
 
10229
# Commands used to finish a libtool library installation in a directory.
 
10230
finish_cmds=$lt_finish_cmds
 
10231
 
 
10232
# Same as above, but a single script fragment to be evaled but not shown.
 
10233
finish_eval=$lt_finish_eval
 
10234
 
 
10235
# Take the output of nm and produce a listing of raw symbols and C names.
 
10236
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10237
 
 
10238
# Transform the output of nm in a proper C declaration
 
10239
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10240
 
 
10241
# Transform the output of nm in a C name address pair
 
10242
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10243
 
 
10244
# This is the shared library runtime path variable.
 
10245
runpath_var=$runpath_var
 
10246
 
 
10247
# This is the shared library path variable.
 
10248
shlibpath_var=$shlibpath_var
 
10249
 
 
10250
# Is shlibpath searched before the hard-coded library search path?
 
10251
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10252
 
 
10253
# How to hardcode a shared library path into an executable.
 
10254
hardcode_action=$hardcode_action
 
10255
 
 
10256
# Whether we should hardcode library paths into libraries.
 
10257
hardcode_into_libs=$hardcode_into_libs
 
10258
 
 
10259
# Flag to hardcode \$libdir into a binary during linking.
 
10260
# This must work even if \$libdir does not exist.
 
10261
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10262
 
 
10263
# If ld is used when linking, flag to hardcode \$libdir into
 
10264
# a binary during linking. This must work even if \$libdir does
 
10265
# not exist.
 
10266
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10267
 
 
10268
# Whether we need a single -rpath flag with a separated argument.
 
10269
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10270
 
 
10271
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10272
# resulting binary.
 
10273
hardcode_direct=$hardcode_direct
 
10274
 
 
10275
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10276
# resulting binary.
 
10277
hardcode_minus_L=$hardcode_minus_L
 
10278
 
 
10279
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10280
# the resulting binary.
 
10281
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10282
 
 
10283
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10284
# and all subsequent libraries and executables linked against it.
 
10285
hardcode_automatic=$hardcode_automatic
 
10286
 
 
10287
# Variables whose values should be saved in libtool wrapper scripts and
 
10288
# restored at relink time.
 
10289
variables_saved_for_relink="$variables_saved_for_relink"
 
10290
 
 
10291
# Whether libtool must link a program against all its dependency libraries.
 
10292
link_all_deplibs=$link_all_deplibs
 
10293
 
 
10294
# Compile-time system search path for libraries
 
10295
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10296
 
 
10297
# Run-time system search path for libraries
 
10298
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10299
 
 
10300
# Fix the shell variable \$srcfile for the compiler.
 
10301
fix_srcfile_path="$fix_srcfile_path"
 
10302
 
 
10303
# Set to yes if exported symbols are required.
 
10304
always_export_symbols=$always_export_symbols
 
10305
 
 
10306
# The commands to list exported symbols.
 
10307
export_symbols_cmds=$lt_export_symbols_cmds
 
10308
 
 
10309
# The commands to extract the exported symbol list from a shared archive.
 
10310
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10311
 
 
10312
# Symbols that should not be listed in the preloaded symbols.
 
10313
exclude_expsyms=$lt_exclude_expsyms
 
10314
 
 
10315
# Symbols that must always be exported.
 
10316
include_expsyms=$lt_include_expsyms
 
10317
 
 
10318
# ### END LIBTOOL CONFIG
 
10319
 
 
10320
__EOF__
 
10321
 
 
10322
 
 
10323
  case $host_os in
 
10324
  aix3*)
 
10325
    cat <<\EOF >> "$cfgfile"
 
10326
 
 
10327
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10328
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10329
# vanish in a puff of smoke.
 
10330
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10331
  COLLECT_NAMES=
 
10332
  export COLLECT_NAMES
 
10333
fi
 
10334
EOF
 
10335
    ;;
 
10336
  esac
 
10337
 
 
10338
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10339
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10340
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10341
  # is reportedly fixed, but why not run on old versions too?
 
10342
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10343
 
 
10344
  mv -f "$cfgfile" "$ofile" || \
 
10345
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10346
  chmod +x "$ofile"
 
10347
 
 
10348
else
 
10349
  # If there is no Makefile yet, we rely on a make rule to execute
 
10350
  # `config.status --recheck' to rerun these tests and create the
 
10351
  # libtool script then.
 
10352
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10353
  if test -f "$ltmain_in"; then
 
10354
    test -f Makefile && make "$ltmain"
 
10355
  fi
 
10356
fi
 
10357
 
 
10358
 
 
10359
ac_ext=c
 
10360
ac_cpp='$CPP $CPPFLAGS'
 
10361
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10362
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10363
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10364
 
 
10365
CC="$lt_save_CC"
 
10366
 
 
10367
 
 
10368
# Check whether --with-tags or --without-tags was given.
 
10369
if test "${with_tags+set}" = set; then
 
10370
  withval="$with_tags"
 
10371
  tagnames="$withval"
 
10372
fi;
 
10373
 
 
10374
if test -f "$ltmain" && test -n "$tagnames"; then
 
10375
  if test ! -f "${ofile}"; then
 
10376
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10377
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10378
  fi
 
10379
 
 
10380
  if test -z "$LTCC"; then
 
10381
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10382
    if test -z "$LTCC"; then
 
10383
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10384
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10385
    else
 
10386
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10387
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10388
    fi
 
10389
  fi
 
10390
 
 
10391
  # Extract list of available tagged configurations in $ofile.
 
10392
  # Note that this assumes the entire list is on one line.
 
10393
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10394
 
 
10395
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10396
  for tagname in $tagnames; do
 
10397
    IFS="$lt_save_ifs"
 
10398
    # Check whether tagname contains only valid characters
 
10399
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10400
    "") ;;
 
10401
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10402
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10403
   { (exit 1); exit 1; }; }
 
10404
        ;;
 
10405
    esac
 
10406
 
 
10407
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10408
    then
 
10409
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10410
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10411
   { (exit 1); exit 1; }; }
 
10412
    fi
 
10413
 
 
10414
    # Update the list of available tags.
 
10415
    if test -n "$tagname"; then
 
10416
      echo appending configuration tag \"$tagname\" to $ofile
 
10417
 
 
10418
      case $tagname in
 
10419
      CXX)
 
10420
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10421
          ac_ext=cc
 
10422
ac_cpp='$CXXCPP $CPPFLAGS'
 
10423
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10424
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10425
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
archive_cmds_need_lc_CXX=no
 
10431
allow_undefined_flag_CXX=
 
10432
always_export_symbols_CXX=no
 
10433
archive_expsym_cmds_CXX=
 
10434
export_dynamic_flag_spec_CXX=
 
10435
hardcode_direct_CXX=no
 
10436
hardcode_libdir_flag_spec_CXX=
 
10437
hardcode_libdir_flag_spec_ld_CXX=
 
10438
hardcode_libdir_separator_CXX=
 
10439
hardcode_minus_L_CXX=no
 
10440
hardcode_automatic_CXX=no
 
10441
module_cmds_CXX=
 
10442
module_expsym_cmds_CXX=
 
10443
link_all_deplibs_CXX=unknown
 
10444
old_archive_cmds_CXX=$old_archive_cmds
 
10445
no_undefined_flag_CXX=
 
10446
whole_archive_flag_spec_CXX=
 
10447
enable_shared_with_static_runtimes_CXX=no
 
10448
 
 
10449
# Dependencies to place before and after the object being linked:
 
10450
predep_objects_CXX=
 
10451
postdep_objects_CXX=
 
10452
predeps_CXX=
 
10453
postdeps_CXX=
 
10454
compiler_lib_search_path_CXX=
 
10455
 
 
10456
# Source file extension for C++ test sources.
 
10457
ac_ext=cc
 
10458
 
 
10459
# Object file extension for compiled C++ test sources.
 
10460
objext=o
 
10461
objext_CXX=$objext
 
10462
 
 
10463
# Code to be used in simple compile tests
 
10464
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10465
 
 
10466
# Code to be used in simple link tests
 
10467
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10468
 
 
10469
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10470
 
 
10471
# If no C compiler was specified, use CC.
 
10472
LTCC=${LTCC-"$CC"}
 
10473
 
 
10474
# Allow CC to be a program name with arguments.
 
10475
compiler=$CC
 
10476
 
 
10477
 
 
10478
# Allow CC to be a program name with arguments.
 
10479
lt_save_CC=$CC
 
10480
lt_save_LD=$LD
 
10481
lt_save_GCC=$GCC
 
10482
GCC=$GXX
 
10483
lt_save_with_gnu_ld=$with_gnu_ld
 
10484
lt_save_path_LD=$lt_cv_path_LD
 
10485
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10486
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10487
else
 
10488
  unset lt_cv_prog_gnu_ld
 
10489
fi
 
10490
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10491
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10492
else
 
10493
  unset lt_cv_path_LD
 
10494
fi
 
10495
test -z "${LDCXX+set}" || LD=$LDCXX
 
10496
CC=${CXX-"c++"}
 
10497
compiler=$CC
 
10498
compiler_CXX=$CC
 
10499
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10500
 
 
10501
# We don't want -fno-exception wen compiling C++ code, so set the
 
10502
# no_builtin_flag separately
 
10503
if test "$GXX" = yes; then
 
10504
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10505
else
 
10506
  lt_prog_compiler_no_builtin_flag_CXX=
 
10507
fi
 
10508
 
 
10509
if test "$GXX" = yes; then
 
10510
  # Set up default GNU C++ configuration
 
10511
 
 
10512
 
 
10513
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10514
if test "${with_gnu_ld+set}" = set; then
 
10515
  withval="$with_gnu_ld"
 
10516
  test "$withval" = no || with_gnu_ld=yes
 
10517
else
 
10518
  with_gnu_ld=no
 
10519
fi;
 
10520
ac_prog=ld
 
10521
if test "$GCC" = yes; then
 
10522
  # Check if gcc -print-prog-name=ld gives a path.
 
10523
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10524
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10525
  case $host in
 
10526
  *-*-mingw*)
 
10527
    # gcc leaves a trailing carriage return which upsets mingw
 
10528
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10529
  *)
 
10530
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10531
  esac
 
10532
  case $ac_prog in
 
10533
    # Accept absolute paths.
 
10534
    [\\/]* | ?:[\\/]*)
 
10535
      re_direlt='/[^/][^/]*/\.\./'
 
10536
      # Canonicalize the pathname of ld
 
10537
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10538
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10539
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10540
      done
 
10541
      test -z "$LD" && LD="$ac_prog"
 
10542
      ;;
 
10543
  "")
 
10544
    # If it fails, then pretend we aren't using GCC.
 
10545
    ac_prog=ld
 
10546
    ;;
 
10547
  *)
 
10548
    # If it is relative, then search for the first ld in PATH.
 
10549
    with_gnu_ld=unknown
 
10550
    ;;
 
10551
  esac
 
10552
elif test "$with_gnu_ld" = yes; then
 
10553
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10554
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10555
else
 
10556
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10557
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10558
fi
 
10559
if test "${lt_cv_path_LD+set}" = set; then
 
10560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10561
else
 
10562
  if test -z "$LD"; then
 
10563
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10564
  for ac_dir in $PATH; do
 
10565
    IFS="$lt_save_ifs"
 
10566
    test -z "$ac_dir" && ac_dir=.
 
10567
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10568
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10569
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10570
      # but apparently some GNU ld's only accept -v.
 
10571
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10572
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10573
      *GNU* | *'with BFD'*)
 
10574
        test "$with_gnu_ld" != no && break
 
10575
        ;;
 
10576
      *)
 
10577
        test "$with_gnu_ld" != yes && break
 
10578
        ;;
 
10579
      esac
 
10580
    fi
 
10581
  done
 
10582
  IFS="$lt_save_ifs"
 
10583
else
 
10584
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10585
fi
 
10586
fi
 
10587
 
 
10588
LD="$lt_cv_path_LD"
 
10589
if test -n "$LD"; then
 
10590
  echo "$as_me:$LINENO: result: $LD" >&5
 
10591
echo "${ECHO_T}$LD" >&6
 
10592
else
 
10593
  echo "$as_me:$LINENO: result: no" >&5
 
10594
echo "${ECHO_T}no" >&6
 
10595
fi
 
10596
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10597
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10598
   { (exit 1); exit 1; }; }
 
10599
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10600
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10601
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10603
else
 
10604
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10605
case `$LD -v 2>&1 </dev/null` in
 
10606
*GNU* | *'with BFD'*)
 
10607
  lt_cv_prog_gnu_ld=yes
 
10608
  ;;
 
10609
*)
 
10610
  lt_cv_prog_gnu_ld=no
 
10611
  ;;
 
10612
esac
 
10613
fi
 
10614
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10615
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10616
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10617
 
 
10618
 
 
10619
 
 
10620
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10621
  # archiving commands below assume that GNU ld is being used.
 
10622
  if test "$with_gnu_ld" = yes; then
 
10623
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10624
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10625
 
 
10626
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10627
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10628
 
 
10629
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10630
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10631
    #     investigate it a little bit more. (MM)
 
10632
    wlarc='${wl}'
 
10633
 
 
10634
    # ancient GNU ld didn't support --whole-archive et. al.
 
10635
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10636
        grep 'no-whole-archive' > /dev/null; then
 
10637
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10638
    else
 
10639
      whole_archive_flag_spec_CXX=
 
10640
    fi
 
10641
  else
 
10642
    with_gnu_ld=no
 
10643
    wlarc=
 
10644
 
 
10645
    # A generic and very simple default shared library creation
 
10646
    # command for GNU C++ for the case where it uses the native
 
10647
    # linker, instead of GNU ld.  If possible, this setting should
 
10648
    # overridden to take advantage of the native linker features on
 
10649
    # the platform it is being used on.
 
10650
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10651
  fi
 
10652
 
 
10653
  # Commands to make compiler produce verbose output that lists
 
10654
  # what "hidden" libraries, object files and flags are used when
 
10655
  # linking a shared library.
 
10656
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10657
 
 
10658
else
 
10659
  GXX=no
 
10660
  with_gnu_ld=no
 
10661
  wlarc=
 
10662
fi
 
10663
 
 
10664
# PORTME: fill in a description of your system's C++ link characteristics
 
10665
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10666
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10667
ld_shlibs_CXX=yes
 
10668
case $host_os in
 
10669
  aix3*)
 
10670
    # FIXME: insert proper C++ library support
 
10671
    ld_shlibs_CXX=no
 
10672
    ;;
 
10673
  aix4* | aix5*)
 
10674
    if test "$host_cpu" = ia64; then
 
10675
      # On IA64, the linker does run time linking by default, so we don't
 
10676
      # have to do anything special.
 
10677
      aix_use_runtimelinking=no
 
10678
      exp_sym_flag='-Bexport'
 
10679
      no_entry_flag=""
 
10680
    else
 
10681
      aix_use_runtimelinking=no
 
10682
 
 
10683
      # Test if we are trying to use run time linking or normal
 
10684
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10685
      # need to do runtime linking.
 
10686
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10687
        for ld_flag in $LDFLAGS; do
 
10688
          case $ld_flag in
 
10689
          *-brtl*)
 
10690
            aix_use_runtimelinking=yes
 
10691
            break
 
10692
            ;;
 
10693
          esac
 
10694
        done
 
10695
      esac
 
10696
 
 
10697
      exp_sym_flag='-bexport'
 
10698
      no_entry_flag='-bnoentry'
 
10699
    fi
 
10700
 
 
10701
    # When large executables or shared objects are built, AIX ld can
 
10702
    # have problems creating the table of contents.  If linking a library
 
10703
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10704
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10705
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10706
 
 
10707
    archive_cmds_CXX=''
 
10708
    hardcode_direct_CXX=yes
 
10709
    hardcode_libdir_separator_CXX=':'
 
10710
    link_all_deplibs_CXX=yes
 
10711
 
 
10712
    if test "$GXX" = yes; then
 
10713
      case $host_os in aix4.012|aix4.012.*)
 
10714
      # We only want to do this on AIX 4.2 and lower, the check
 
10715
      # below for broken collect2 doesn't work under 4.3+
 
10716
        collect2name=`${CC} -print-prog-name=collect2`
 
10717
        if test -f "$collect2name" && \
 
10718
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10719
        then
 
10720
          # We have reworked collect2
 
10721
          hardcode_direct_CXX=yes
 
10722
        else
 
10723
          # We have old collect2
 
10724
          hardcode_direct_CXX=unsupported
 
10725
          # It fails to find uninstalled libraries when the uninstalled
 
10726
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10727
          # to unsupported forces relinking
 
10728
          hardcode_minus_L_CXX=yes
 
10729
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10730
          hardcode_libdir_separator_CXX=
 
10731
        fi
 
10732
      esac
 
10733
      shared_flag='-shared'
 
10734
    else
 
10735
      # not using gcc
 
10736
      if test "$host_cpu" = ia64; then
 
10737
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10738
        # chokes on -Wl,-G. The following line is correct:
 
10739
        shared_flag='-G'
 
10740
      else
 
10741
        if test "$aix_use_runtimelinking" = yes; then
 
10742
          shared_flag='${wl}-G'
 
10743
        else
 
10744
          shared_flag='${wl}-bM:SRE'
 
10745
        fi
 
10746
      fi
 
10747
    fi
 
10748
 
 
10749
    # It seems that -bexpall does not export symbols beginning with
 
10750
    # underscore (_), so it is better to generate a list of symbols to export.
 
10751
    always_export_symbols_CXX=yes
 
10752
    if test "$aix_use_runtimelinking" = yes; then
 
10753
      # Warning - without using the other runtime loading flags (-brtl),
 
10754
      # -berok will link without error, but may produce a broken library.
 
10755
      allow_undefined_flag_CXX='-berok'
 
10756
      # Determine the default libpath from the value encoded in an empty executable.
 
10757
      cat >conftest.$ac_ext <<_ACEOF
 
10758
/* confdefs.h.  */
 
10759
_ACEOF
 
10760
cat confdefs.h >>conftest.$ac_ext
 
10761
cat >>conftest.$ac_ext <<_ACEOF
 
10762
/* end confdefs.h.  */
 
10763
 
 
10764
int
 
10765
main ()
 
10766
{
 
10767
 
 
10768
  ;
 
10769
  return 0;
 
10770
}
 
10771
_ACEOF
 
10772
rm -f conftest.$ac_objext conftest$ac_exeext
 
10773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10774
  (eval $ac_link) 2>conftest.er1
 
10775
  ac_status=$?
 
10776
  grep -v '^ *+' conftest.er1 >conftest.err
 
10777
  rm -f conftest.er1
 
10778
  cat conftest.err >&5
 
10779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10780
  (exit $ac_status); } &&
 
10781
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10783
  (eval $ac_try) 2>&5
 
10784
  ac_status=$?
 
10785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10786
  (exit $ac_status); }; } &&
 
10787
         { ac_try='test -s conftest$ac_exeext'
 
10788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10789
  (eval $ac_try) 2>&5
 
10790
  ac_status=$?
 
10791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10792
  (exit $ac_status); }; }; then
 
10793
 
 
10794
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10795
}'`
 
10796
# Check for a 64-bit object if we didn't find anything.
 
10797
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10798
}'`; fi
 
10799
else
 
10800
  echo "$as_me: failed program was:" >&5
 
10801
sed 's/^/| /' conftest.$ac_ext >&5
 
10802
 
 
10803
fi
 
10804
rm -f conftest.err conftest.$ac_objext \
 
10805
      conftest$ac_exeext conftest.$ac_ext
 
10806
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10807
 
 
10808
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10809
 
 
10810
      archive_expsym_cmds_CXX="\$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"
 
10811
     else
 
10812
      if test "$host_cpu" = ia64; then
 
10813
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10814
        allow_undefined_flag_CXX="-z nodefs"
 
10815
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10816
      else
 
10817
        # Determine the default libpath from the value encoded in an empty executable.
 
10818
        cat >conftest.$ac_ext <<_ACEOF
 
10819
/* confdefs.h.  */
 
10820
_ACEOF
 
10821
cat confdefs.h >>conftest.$ac_ext
 
10822
cat >>conftest.$ac_ext <<_ACEOF
 
10823
/* end confdefs.h.  */
 
10824
 
 
10825
int
 
10826
main ()
 
10827
{
 
10828
 
 
10829
  ;
 
10830
  return 0;
 
10831
}
 
10832
_ACEOF
 
10833
rm -f conftest.$ac_objext conftest$ac_exeext
 
10834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10835
  (eval $ac_link) 2>conftest.er1
 
10836
  ac_status=$?
 
10837
  grep -v '^ *+' conftest.er1 >conftest.err
 
10838
  rm -f conftest.er1
 
10839
  cat conftest.err >&5
 
10840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10841
  (exit $ac_status); } &&
 
10842
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10844
  (eval $ac_try) 2>&5
 
10845
  ac_status=$?
 
10846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10847
  (exit $ac_status); }; } &&
 
10848
         { ac_try='test -s conftest$ac_exeext'
 
10849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10850
  (eval $ac_try) 2>&5
 
10851
  ac_status=$?
 
10852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10853
  (exit $ac_status); }; }; then
 
10854
 
 
10855
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10856
}'`
 
10857
# Check for a 64-bit object if we didn't find anything.
 
10858
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10859
}'`; fi
 
10860
else
 
10861
  echo "$as_me: failed program was:" >&5
 
10862
sed 's/^/| /' conftest.$ac_ext >&5
 
10863
 
 
10864
fi
 
10865
rm -f conftest.err conftest.$ac_objext \
 
10866
      conftest$ac_exeext conftest.$ac_ext
 
10867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10868
 
 
10869
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10870
        # Warning - without using the other run time loading flags,
 
10871
        # -berok will link without error, but may produce a broken library.
 
10872
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10873
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10874
        # -bexpall does not export symbols beginning with underscore (_)
 
10875
        always_export_symbols_CXX=yes
 
10876
        # Exported symbols can be pulled into shared objects from archives
 
10877
        whole_archive_flag_spec_CXX=' '
 
10878
        archive_cmds_need_lc_CXX=yes
 
10879
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10880
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10881
      fi
 
10882
    fi
 
10883
    ;;
 
10884
  chorus*)
 
10885
    case $cc_basename in
 
10886
      *)
 
10887
        # FIXME: insert proper C++ library support
 
10888
        ld_shlibs_CXX=no
 
10889
        ;;
 
10890
    esac
 
10891
    ;;
 
10892
 
 
10893
  cygwin* | mingw* | pw32*)
 
10894
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10895
    # as there is no search path for DLLs.
 
10896
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10897
    allow_undefined_flag_CXX=unsupported
 
10898
    always_export_symbols_CXX=no
 
10899
    enable_shared_with_static_runtimes_CXX=yes
 
10900
 
 
10901
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10902
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10903
      # If the export-symbols file already is a .def file (1st line
 
10904
      # is EXPORTS), use it as is; otherwise, prepend...
 
10905
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10906
        cp $export_symbols $output_objdir/$soname.def;
 
10907
      else
 
10908
        echo EXPORTS > $output_objdir/$soname.def;
 
10909
        cat $export_symbols >> $output_objdir/$soname.def;
 
10910
      fi~
 
10911
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10912
    else
 
10913
      ld_shlibs_CXX=no
 
10914
    fi
 
10915
  ;;
 
10916
 
 
10917
  darwin* | rhapsody*)
 
10918
  if test "$GXX" = yes; then
 
10919
    archive_cmds_need_lc_CXX=no
 
10920
    case "$host_os" in
 
10921
    rhapsody* | darwin1.[012])
 
10922
      allow_undefined_flag_CXX='-undefined suppress'
 
10923
      ;;
 
10924
    *) # Darwin 1.3 on
 
10925
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10926
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10927
      else
 
10928
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10929
          10.[012])
 
10930
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10931
            ;;
 
10932
          10.*)
 
10933
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10934
            ;;
 
10935
        esac
 
10936
      fi
 
10937
      ;;
 
10938
    esac
 
10939
    lt_int_apple_cc_single_mod=no
 
10940
    output_verbose_link_cmd='echo'
 
10941
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10942
      lt_int_apple_cc_single_mod=yes
 
10943
    fi
 
10944
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10945
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10946
    else
 
10947
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10948
    fi
 
10949
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10950
 
 
10951
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10952
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10953
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10954
    else
 
10955
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10956
    fi
 
10957
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10958
    hardcode_direct_CXX=no
 
10959
    hardcode_automatic_CXX=yes
 
10960
    hardcode_shlibpath_var_CXX=unsupported
 
10961
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10962
    link_all_deplibs_CXX=yes
 
10963
  else
 
10964
    ld_shlibs_CXX=no
 
10965
  fi
 
10966
    ;;
 
10967
 
 
10968
  dgux*)
 
10969
    case $cc_basename in
 
10970
      ec++)
 
10971
        # FIXME: insert proper C++ library support
 
10972
        ld_shlibs_CXX=no
 
10973
        ;;
 
10974
      ghcx)
 
10975
        # Green Hills C++ Compiler
 
10976
        # FIXME: insert proper C++ library support
 
10977
        ld_shlibs_CXX=no
 
10978
        ;;
 
10979
      *)
 
10980
        # FIXME: insert proper C++ library support
 
10981
        ld_shlibs_CXX=no
 
10982
        ;;
 
10983
    esac
 
10984
    ;;
 
10985
  freebsd12*)
 
10986
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10987
    ld_shlibs_CXX=no
 
10988
    ;;
 
10989
  freebsd-elf*)
 
10990
    archive_cmds_need_lc_CXX=no
 
10991
    ;;
 
10992
  freebsd* | kfreebsd*-gnu)
 
10993
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10994
    # conventions
 
10995
    ld_shlibs_CXX=yes
 
10996
    ;;
 
10997
  gnu*)
 
10998
    ;;
 
10999
  hpux9*)
 
11000
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11001
    hardcode_libdir_separator_CXX=:
 
11002
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11003
    hardcode_direct_CXX=yes
 
11004
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11005
                                # but as the default
 
11006
                                # location of the library.
 
11007
 
 
11008
    case $cc_basename in
 
11009
    CC)
 
11010
      # FIXME: insert proper C++ library support
 
11011
      ld_shlibs_CXX=no
 
11012
      ;;
 
11013
    aCC)
 
11014
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11015
      # Commands to make compiler produce verbose output that lists
 
11016
      # what "hidden" libraries, object files and flags are used when
 
11017
      # linking a shared library.
 
11018
      #
 
11019
      # There doesn't appear to be a way to prevent this compiler from
 
11020
      # explicitly linking system object files so we need to strip them
 
11021
      # from the output so that they don't get included in the library
 
11022
      # dependencies.
 
11023
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11024
      ;;
 
11025
    *)
 
11026
      if test "$GXX" = yes; then
 
11027
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11028
      else
 
11029
        # FIXME: insert proper C++ library support
 
11030
        ld_shlibs_CXX=no
 
11031
      fi
 
11032
      ;;
 
11033
    esac
 
11034
    ;;
 
11035
  hpux10*|hpux11*)
 
11036
    if test $with_gnu_ld = no; then
 
11037
      case "$host_cpu" in
 
11038
      hppa*64*)
 
11039
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11040
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11041
        hardcode_libdir_separator_CXX=:
 
11042
        ;;
 
11043
      ia64*)
 
11044
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11045
        ;;
 
11046
      *)
 
11047
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11048
        hardcode_libdir_separator_CXX=:
 
11049
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11050
        ;;
 
11051
      esac
 
11052
    fi
 
11053
    case "$host_cpu" in
 
11054
    hppa*64*)
 
11055
      hardcode_direct_CXX=no
 
11056
      hardcode_shlibpath_var_CXX=no
 
11057
      ;;
 
11058
    ia64*)
 
11059
      hardcode_direct_CXX=no
 
11060
      hardcode_shlibpath_var_CXX=no
 
11061
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11062
                                              # but as the default
 
11063
                                              # location of the library.
 
11064
      ;;
 
11065
    *)
 
11066
      hardcode_direct_CXX=yes
 
11067
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11068
                                              # but as the default
 
11069
                                              # location of the library.
 
11070
      ;;
 
11071
    esac
 
11072
 
 
11073
    case $cc_basename in
 
11074
      CC)
 
11075
        # FIXME: insert proper C++ library support
 
11076
        ld_shlibs_CXX=no
 
11077
        ;;
 
11078
      aCC)
 
11079
        case "$host_cpu" in
 
11080
        hppa*64*|ia64*)
 
11081
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11082
          ;;
 
11083
        *)
 
11084
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11085
          ;;
 
11086
        esac
 
11087
        # Commands to make compiler produce verbose output that lists
 
11088
        # what "hidden" libraries, object files and flags are used when
 
11089
        # linking a shared library.
 
11090
        #
 
11091
        # There doesn't appear to be a way to prevent this compiler from
 
11092
        # explicitly linking system object files so we need to strip them
 
11093
        # from the output so that they don't get included in the library
 
11094
        # dependencies.
 
11095
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11096
        ;;
 
11097
      *)
 
11098
        if test "$GXX" = yes; then
 
11099
          if test $with_gnu_ld = no; then
 
11100
            case "$host_cpu" in
 
11101
            ia64*|hppa*64*)
 
11102
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11103
              ;;
 
11104
            *)
 
11105
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11106
              ;;
 
11107
            esac
 
11108
          fi
 
11109
        else
 
11110
          # FIXME: insert proper C++ library support
 
11111
          ld_shlibs_CXX=no
 
11112
        fi
 
11113
        ;;
 
11114
    esac
 
11115
    ;;
 
11116
  irix5* | irix6*)
 
11117
    case $cc_basename in
 
11118
      CC)
 
11119
        # SGI C++
 
11120
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11121
 
 
11122
        # Archives containing C++ object files must be created using
 
11123
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11124
        # necessary to make sure instantiated templates are included
 
11125
        # in the archive.
 
11126
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11127
        ;;
 
11128
      *)
 
11129
        if test "$GXX" = yes; then
 
11130
          if test "$with_gnu_ld" = no; then
 
11131
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11132
          else
 
11133
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11134
          fi
 
11135
        fi
 
11136
        link_all_deplibs_CXX=yes
 
11137
        ;;
 
11138
    esac
 
11139
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11140
    hardcode_libdir_separator_CXX=:
 
11141
    ;;
 
11142
  linux*)
 
11143
    case $cc_basename in
 
11144
      KCC)
 
11145
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11146
 
 
11147
        # KCC will only create a shared library if the output file
 
11148
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11149
        # to its proper name (with version) after linking.
 
11150
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11151
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11152
        # Commands to make compiler produce verbose output that lists
 
11153
        # what "hidden" libraries, object files and flags are used when
 
11154
        # linking a shared library.
 
11155
        #
 
11156
        # There doesn't appear to be a way to prevent this compiler from
 
11157
        # explicitly linking system object files so we need to strip them
 
11158
        # from the output so that they don't get included in the library
 
11159
        # dependencies.
 
11160
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11161
 
 
11162
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11163
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11164
 
 
11165
        # Archives containing C++ object files must be created using
 
11166
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11167
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11168
        ;;
 
11169
      icpc)
 
11170
        # Intel C++
 
11171
        with_gnu_ld=yes
 
11172
        archive_cmds_need_lc_CXX=no
 
11173
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11174
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11175
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11176
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11177
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11178
        ;;
 
11179
      cxx)
 
11180
        # Compaq C++
 
11181
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11182
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11183
 
 
11184
        runpath_var=LD_RUN_PATH
 
11185
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11186
        hardcode_libdir_separator_CXX=:
 
11187
 
 
11188
        # Commands to make compiler produce verbose output that lists
 
11189
        # what "hidden" libraries, object files and flags are used when
 
11190
        # linking a shared library.
 
11191
        #
 
11192
        # There doesn't appear to be a way to prevent this compiler from
 
11193
        # explicitly linking system object files so we need to strip them
 
11194
        # from the output so that they don't get included in the library
 
11195
        # dependencies.
 
11196
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11197
        ;;
 
11198
    esac
 
11199
    ;;
 
11200
  lynxos*)
 
11201
    # FIXME: insert proper C++ library support
 
11202
    ld_shlibs_CXX=no
 
11203
    ;;
 
11204
  m88k*)
 
11205
    # FIXME: insert proper C++ library support
 
11206
    ld_shlibs_CXX=no
 
11207
    ;;
 
11208
  mvs*)
 
11209
    case $cc_basename in
 
11210
      cxx)
 
11211
        # FIXME: insert proper C++ library support
 
11212
        ld_shlibs_CXX=no
 
11213
        ;;
 
11214
      *)
 
11215
        # FIXME: insert proper C++ library support
 
11216
        ld_shlibs_CXX=no
 
11217
        ;;
 
11218
    esac
 
11219
    ;;
 
11220
  netbsd* | knetbsd*-gnu)
 
11221
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11222
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11223
      wlarc=
 
11224
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11225
      hardcode_direct_CXX=yes
 
11226
      hardcode_shlibpath_var_CXX=no
 
11227
    fi
 
11228
    # Workaround some broken pre-1.5 toolchains
 
11229
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11230
    ;;
 
11231
  osf3*)
 
11232
    case $cc_basename in
 
11233
      KCC)
 
11234
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11235
 
 
11236
        # KCC will only create a shared library if the output file
 
11237
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11238
        # to its proper name (with version) after linking.
 
11239
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11240
 
 
11241
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11242
        hardcode_libdir_separator_CXX=:
 
11243
 
 
11244
        # Archives containing C++ object files must be created using
 
11245
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11246
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11247
 
 
11248
        ;;
 
11249
      RCC)
 
11250
        # Rational C++ 2.4.1
 
11251
        # FIXME: insert proper C++ library support
 
11252
        ld_shlibs_CXX=no
 
11253
        ;;
 
11254
      cxx)
 
11255
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11256
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11257
 
 
11258
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11259
        hardcode_libdir_separator_CXX=:
 
11260
 
 
11261
        # Commands to make compiler produce verbose output that lists
 
11262
        # what "hidden" libraries, object files and flags are used when
 
11263
        # linking a shared library.
 
11264
        #
 
11265
        # There doesn't appear to be a way to prevent this compiler from
 
11266
        # explicitly linking system object files so we need to strip them
 
11267
        # from the output so that they don't get included in the library
 
11268
        # dependencies.
 
11269
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11270
        ;;
 
11271
      *)
 
11272
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11273
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11274
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11275
 
 
11276
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11277
          hardcode_libdir_separator_CXX=:
 
11278
 
 
11279
          # Commands to make compiler produce verbose output that lists
 
11280
          # what "hidden" libraries, object files and flags are used when
 
11281
          # linking a shared library.
 
11282
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11283
 
 
11284
        else
 
11285
          # FIXME: insert proper C++ library support
 
11286
          ld_shlibs_CXX=no
 
11287
        fi
 
11288
        ;;
 
11289
    esac
 
11290
    ;;
 
11291
  osf4* | osf5*)
 
11292
    case $cc_basename in
 
11293
      KCC)
 
11294
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11295
 
 
11296
        # KCC will only create a shared library if the output file
 
11297
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11298
        # to its proper name (with version) after linking.
 
11299
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11300
 
 
11301
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11302
        hardcode_libdir_separator_CXX=:
 
11303
 
 
11304
        # Archives containing C++ object files must be created using
 
11305
        # the KAI C++ compiler.
 
11306
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11307
        ;;
 
11308
      RCC)
 
11309
        # Rational C++ 2.4.1
 
11310
        # FIXME: insert proper C++ library support
 
11311
        ld_shlibs_CXX=no
 
11312
        ;;
 
11313
      cxx)
 
11314
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11315
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11316
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11317
          echo "-hidden">> $lib.exp~
 
11318
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
11319
          $rm $lib.exp'
 
11320
 
 
11321
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11322
        hardcode_libdir_separator_CXX=:
 
11323
 
 
11324
        # Commands to make compiler produce verbose output that lists
 
11325
        # what "hidden" libraries, object files and flags are used when
 
11326
        # linking a shared library.
 
11327
        #
 
11328
        # There doesn't appear to be a way to prevent this compiler from
 
11329
        # explicitly linking system object files so we need to strip them
 
11330
        # from the output so that they don't get included in the library
 
11331
        # dependencies.
 
11332
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11333
        ;;
 
11334
      *)
 
11335
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11336
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11337
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11338
 
 
11339
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11340
          hardcode_libdir_separator_CXX=:
 
11341
 
 
11342
          # Commands to make compiler produce verbose output that lists
 
11343
          # what "hidden" libraries, object files and flags are used when
 
11344
          # linking a shared library.
 
11345
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11346
 
 
11347
        else
 
11348
          # FIXME: insert proper C++ library support
 
11349
          ld_shlibs_CXX=no
 
11350
        fi
 
11351
        ;;
 
11352
    esac
 
11353
    ;;
 
11354
  psos*)
 
11355
    # FIXME: insert proper C++ library support
 
11356
    ld_shlibs_CXX=no
 
11357
    ;;
 
11358
  sco*)
 
11359
    archive_cmds_need_lc_CXX=no
 
11360
    case $cc_basename in
 
11361
      CC)
 
11362
        # FIXME: insert proper C++ library support
 
11363
        ld_shlibs_CXX=no
 
11364
        ;;
 
11365
      *)
 
11366
        # FIXME: insert proper C++ library support
 
11367
        ld_shlibs_CXX=no
 
11368
        ;;
 
11369
    esac
 
11370
    ;;
 
11371
  sunos4*)
 
11372
    case $cc_basename in
 
11373
      CC)
 
11374
        # Sun C++ 4.x
 
11375
        # FIXME: insert proper C++ library support
 
11376
        ld_shlibs_CXX=no
 
11377
        ;;
 
11378
      lcc)
 
11379
        # Lucid
 
11380
        # FIXME: insert proper C++ library support
 
11381
        ld_shlibs_CXX=no
 
11382
        ;;
 
11383
      *)
 
11384
        # FIXME: insert proper C++ library support
 
11385
        ld_shlibs_CXX=no
 
11386
        ;;
 
11387
    esac
 
11388
    ;;
 
11389
  solaris*)
 
11390
    case $cc_basename in
 
11391
      CC)
 
11392
        # Sun C++ 4.2, 5.x and Centerline C++
 
11393
        no_undefined_flag_CXX=' -zdefs'
 
11394
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11395
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11396
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11397
 
 
11398
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11399
        hardcode_shlibpath_var_CXX=no
 
11400
        case $host_os in
 
11401
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11402
          *)
 
11403
            # The C++ compiler is used as linker so we must use $wl
 
11404
            # flag to pass the commands to the underlying system
 
11405
            # linker.
 
11406
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11407
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11408
            ;;
 
11409
        esac
 
11410
        link_all_deplibs_CXX=yes
 
11411
 
 
11412
        # Commands to make compiler produce verbose output that lists
 
11413
        # what "hidden" libraries, object files and flags are used when
 
11414
        # linking a shared library.
 
11415
        #
 
11416
        # There doesn't appear to be a way to prevent this compiler from
 
11417
        # explicitly linking system object files so we need to strip them
 
11418
        # from the output so that they don't get included in the library
 
11419
        # dependencies.
 
11420
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11421
 
 
11422
        # Archives containing C++ object files must be created using
 
11423
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11424
        # necessary to make sure instantiated templates are included
 
11425
        # in the archive.
 
11426
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11427
        ;;
 
11428
      gcx)
 
11429
        # Green Hills C++ Compiler
 
11430
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11431
 
 
11432
        # The C++ compiler must be used to create the archive.
 
11433
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11434
        ;;
 
11435
      *)
 
11436
        # GNU C++ compiler with Solaris linker
 
11437
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11438
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11439
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11440
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11441
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11442
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11443
 
 
11444
            # Commands to make compiler produce verbose output that lists
 
11445
            # what "hidden" libraries, object files and flags are used when
 
11446
            # linking a shared library.
 
11447
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11448
          else
 
11449
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11450
            # platform.
 
11451
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11452
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11453
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11454
 
 
11455
            # Commands to make compiler produce verbose output that lists
 
11456
            # what "hidden" libraries, object files and flags are used when
 
11457
            # linking a shared library.
 
11458
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11459
          fi
 
11460
 
 
11461
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11462
        fi
 
11463
        ;;
 
11464
    esac
 
11465
    ;;
 
11466
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11467
    archive_cmds_need_lc_CXX=no
 
11468
    ;;
 
11469
  tandem*)
 
11470
    case $cc_basename in
 
11471
      NCC)
 
11472
        # NonStop-UX NCC 3.20
 
11473
        # FIXME: insert proper C++ library support
 
11474
        ld_shlibs_CXX=no
 
11475
        ;;
 
11476
      *)
 
11477
        # FIXME: insert proper C++ library support
 
11478
        ld_shlibs_CXX=no
 
11479
        ;;
 
11480
    esac
 
11481
    ;;
 
11482
  vxworks*)
 
11483
    # FIXME: insert proper C++ library support
 
11484
    ld_shlibs_CXX=no
 
11485
    ;;
 
11486
  *)
 
11487
    # FIXME: insert proper C++ library support
 
11488
    ld_shlibs_CXX=no
 
11489
    ;;
 
11490
esac
 
11491
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11492
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11493
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11494
 
 
11495
GCC_CXX="$GXX"
 
11496
LD_CXX="$LD"
 
11497
 
 
11498
## CAVEAT EMPTOR:
 
11499
## There is no encapsulation within the following macros, do not change
 
11500
## the running order or otherwise move them around unless you know exactly
 
11501
## what you are doing...
 
11502
 
 
11503
cat > conftest.$ac_ext <<EOF
 
11504
class Foo
 
11505
{
 
11506
public:
 
11507
  Foo (void) { a = 0; }
 
11508
private:
 
11509
  int a;
 
11510
};
 
11511
EOF
 
11512
 
 
11513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11514
  (eval $ac_compile) 2>&5
 
11515
  ac_status=$?
 
11516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11517
  (exit $ac_status); }; then
 
11518
  # Parse the compiler output and extract the necessary
 
11519
  # objects, libraries and library flags.
 
11520
 
 
11521
  # Sentinel used to keep track of whether or not we are before
 
11522
  # the conftest object file.
 
11523
  pre_test_object_deps_done=no
 
11524
 
 
11525
  # The `*' in the case matches for architectures that use `case' in
 
11526
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11527
  # eval without this substitution.
 
11528
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11529
 
 
11530
  for p in `eval $output_verbose_link_cmd`; do
 
11531
    case $p in
 
11532
 
 
11533
    -L* | -R* | -l*)
 
11534
       # Some compilers place space between "-{L,R}" and the path.
 
11535
       # Remove the space.
 
11536
       if test $p = "-L" \
 
11537
          || test $p = "-R"; then
 
11538
         prev=$p
 
11539
         continue
 
11540
       else
 
11541
         prev=
 
11542
       fi
 
11543
 
 
11544
       if test "$pre_test_object_deps_done" = no; then
 
11545
         case $p in
 
11546
         -L* | -R*)
 
11547
           # Internal compiler library paths should come after those
 
11548
           # provided the user.  The postdeps already come after the
 
11549
           # user supplied libs so there is no need to process them.
 
11550
           if test -z "$compiler_lib_search_path_CXX"; then
 
11551
             compiler_lib_search_path_CXX="${prev}${p}"
 
11552
           else
 
11553
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11554
           fi
 
11555
           ;;
 
11556
         # The "-l" case would never come before the object being
 
11557
         # linked, so don't bother handling this case.
 
11558
         esac
 
11559
       else
 
11560
         if test -z "$postdeps_CXX"; then
 
11561
           postdeps_CXX="${prev}${p}"
 
11562
         else
 
11563
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11564
         fi
 
11565
       fi
 
11566
       ;;
 
11567
 
 
11568
    *.$objext)
 
11569
       # This assumes that the test object file only shows up
 
11570
       # once in the compiler output.
 
11571
       if test "$p" = "conftest.$objext"; then
 
11572
         pre_test_object_deps_done=yes
 
11573
         continue
 
11574
       fi
 
11575
 
 
11576
       if test "$pre_test_object_deps_done" = no; then
 
11577
         if test -z "$predep_objects_CXX"; then
 
11578
           predep_objects_CXX="$p"
 
11579
         else
 
11580
           predep_objects_CXX="$predep_objects_CXX $p"
 
11581
         fi
 
11582
       else
 
11583
         if test -z "$postdep_objects_CXX"; then
 
11584
           postdep_objects_CXX="$p"
 
11585
         else
 
11586
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11587
         fi
 
11588
       fi
 
11589
       ;;
 
11590
 
 
11591
    *) ;; # Ignore the rest.
 
11592
 
 
11593
    esac
 
11594
  done
 
11595
 
 
11596
  # Clean up.
 
11597
  rm -f a.out a.exe
 
11598
else
 
11599
  echo "libtool.m4: error: problem compiling CXX test program"
 
11600
fi
 
11601
 
 
11602
$rm -f confest.$objext
 
11603
 
 
11604
case " $postdeps_CXX " in
 
11605
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11606
esac
 
11607
 
 
11608
lt_prog_compiler_wl_CXX=
 
11609
lt_prog_compiler_pic_CXX=
 
11610
lt_prog_compiler_static_CXX=
 
11611
 
 
11612
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11613
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11614
 
 
11615
  # C++ specific cases for pic, static, wl, etc.
 
11616
  if test "$GXX" = yes; then
 
11617
    lt_prog_compiler_wl_CXX='-Wl,'
 
11618
    lt_prog_compiler_static_CXX='-static'
 
11619
 
 
11620
    case $host_os in
 
11621
    aix*)
 
11622
      # All AIX code is PIC.
 
11623
      if test "$host_cpu" = ia64; then
 
11624
        # AIX 5 now supports IA64 processor
 
11625
        lt_prog_compiler_static_CXX='-Bstatic'
 
11626
      fi
 
11627
      ;;
 
11628
    amigaos*)
 
11629
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11630
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11631
      # like `-m68040'.
 
11632
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11633
      ;;
 
11634
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11635
      # PIC is the default for these OSes.
 
11636
      ;;
 
11637
    mingw* | os2* | pw32*)
 
11638
      # This hack is so that the source file can tell whether it is being
 
11639
      # built for inclusion in a dll (and should export symbols for example).
 
11640
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11641
      ;;
 
11642
    darwin* | rhapsody*)
 
11643
      # PIC is the default on this platform
 
11644
      # Common symbols not allowed in MH_DYLIB files
 
11645
      lt_prog_compiler_pic_CXX='-fno-common'
 
11646
      ;;
 
11647
    *djgpp*)
 
11648
      # DJGPP does not support shared libraries at all
 
11649
      lt_prog_compiler_pic_CXX=
 
11650
      ;;
 
11651
    sysv4*MP*)
 
11652
      if test -d /usr/nec; then
 
11653
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11654
      fi
 
11655
      ;;
 
11656
    hpux*)
 
11657
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11658
      # not for PA HP-UX.
 
11659
      case "$host_cpu" in
 
11660
      hppa*64*|ia64*)
 
11661
        ;;
 
11662
      *)
 
11663
        lt_prog_compiler_pic_CXX='-fPIC'
 
11664
        ;;
 
11665
      esac
 
11666
      ;;
 
11667
    *)
 
11668
      lt_prog_compiler_pic_CXX='-fPIC'
 
11669
      ;;
 
11670
    esac
 
11671
  else
 
11672
    case $host_os in
 
11673
      aix4* | aix5*)
 
11674
        # All AIX code is PIC.
 
11675
        if test "$host_cpu" = ia64; then
 
11676
          # AIX 5 now supports IA64 processor
 
11677
          lt_prog_compiler_static_CXX='-Bstatic'
 
11678
        else
 
11679
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11680
        fi
 
11681
        ;;
 
11682
      chorus*)
 
11683
        case $cc_basename in
 
11684
        cxch68)
 
11685
          # Green Hills C++ Compiler
 
11686
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
11687
          ;;
 
11688
        esac
 
11689
        ;;
 
11690
      dgux*)
 
11691
        case $cc_basename in
 
11692
          ec++)
 
11693
            lt_prog_compiler_pic_CXX='-KPIC'
 
11694
            ;;
 
11695
          ghcx)
 
11696
            # Green Hills C++ Compiler
 
11697
            lt_prog_compiler_pic_CXX='-pic'
 
11698
            ;;
 
11699
          *)
 
11700
            ;;
 
11701
        esac
 
11702
        ;;
 
11703
      freebsd* | kfreebsd*-gnu)
 
11704
        # FreeBSD uses GNU C++
 
11705
        ;;
 
11706
      hpux9* | hpux10* | hpux11*)
 
11707
        case $cc_basename in
 
11708
          CC)
 
11709
            lt_prog_compiler_wl_CXX='-Wl,'
 
11710
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11711
            if test "$host_cpu" != ia64; then
 
11712
              lt_prog_compiler_pic_CXX='+Z'
 
11713
            fi
 
11714
            ;;
 
11715
          aCC)
 
11716
            lt_prog_compiler_wl_CXX='-Wl,'
 
11717
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11718
            case "$host_cpu" in
 
11719
            hppa*64*|ia64*)
 
11720
              # +Z the default
 
11721
              ;;
 
11722
            *)
 
11723
              lt_prog_compiler_pic_CXX='+Z'
 
11724
              ;;
 
11725
            esac
 
11726
            ;;
 
11727
          *)
 
11728
            ;;
 
11729
        esac
 
11730
        ;;
 
11731
      irix5* | irix6* | nonstopux*)
 
11732
        case $cc_basename in
 
11733
          CC)
 
11734
            lt_prog_compiler_wl_CXX='-Wl,'
 
11735
            lt_prog_compiler_static_CXX='-non_shared'
 
11736
            # CC pic flag -KPIC is the default.
 
11737
            ;;
 
11738
          *)
 
11739
            ;;
 
11740
        esac
 
11741
        ;;
 
11742
      linux*)
 
11743
        case $cc_basename in
 
11744
          KCC)
 
11745
            # KAI C++ Compiler
 
11746
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11747
            lt_prog_compiler_pic_CXX='-fPIC'
 
11748
            ;;
 
11749
          icpc)
 
11750
            # Intel C++
 
11751
            lt_prog_compiler_wl_CXX='-Wl,'
 
11752
            lt_prog_compiler_pic_CXX='-KPIC'
 
11753
            lt_prog_compiler_static_CXX='-static'
 
11754
            ;;
 
11755
          cxx)
 
11756
            # Compaq C++
 
11757
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11758
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11759
            lt_prog_compiler_pic_CXX=
 
11760
            lt_prog_compiler_static_CXX='-non_shared'
 
11761
            ;;
 
11762
          *)
 
11763
            ;;
 
11764
        esac
 
11765
        ;;
 
11766
      lynxos*)
 
11767
        ;;
 
11768
      m88k*)
 
11769
        ;;
 
11770
      mvs*)
 
11771
        case $cc_basename in
 
11772
          cxx)
 
11773
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11774
            ;;
 
11775
          *)
 
11776
            ;;
 
11777
        esac
 
11778
        ;;
 
11779
      netbsd* | knetbsd*-gnu)
 
11780
        ;;
 
11781
      osf3* | osf4* | osf5*)
 
11782
        case $cc_basename in
 
11783
          KCC)
 
11784
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11785
            ;;
 
11786
          RCC)
 
11787
            # Rational C++ 2.4.1
 
11788
            lt_prog_compiler_pic_CXX='-pic'
 
11789
            ;;
 
11790
          cxx)
 
11791
            # Digital/Compaq C++
 
11792
            lt_prog_compiler_wl_CXX='-Wl,'
 
11793
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11794
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11795
            lt_prog_compiler_pic_CXX=
 
11796
            lt_prog_compiler_static_CXX='-non_shared'
 
11797
            ;;
 
11798
          *)
 
11799
            ;;
 
11800
        esac
 
11801
        ;;
 
11802
      psos*)
 
11803
        ;;
 
11804
      sco*)
 
11805
        case $cc_basename in
 
11806
          CC)
 
11807
            lt_prog_compiler_pic_CXX='-fPIC'
 
11808
            ;;
 
11809
          *)
 
11810
            ;;
 
11811
        esac
 
11812
        ;;
 
11813
      solaris*)
 
11814
        case $cc_basename in
 
11815
          CC)
 
11816
            # Sun C++ 4.2, 5.x and Centerline C++
 
11817
            lt_prog_compiler_pic_CXX='-KPIC'
 
11818
            lt_prog_compiler_static_CXX='-Bstatic'
 
11819
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11820
            ;;
 
11821
          gcx)
 
11822
            # Green Hills C++ Compiler
 
11823
            lt_prog_compiler_pic_CXX='-PIC'
 
11824
            ;;
 
11825
          *)
 
11826
            ;;
 
11827
        esac
 
11828
        ;;
 
11829
      sunos4*)
 
11830
        case $cc_basename in
 
11831
          CC)
 
11832
            # Sun C++ 4.x
 
11833
            lt_prog_compiler_pic_CXX='-pic'
 
11834
            lt_prog_compiler_static_CXX='-Bstatic'
 
11835
            ;;
 
11836
          lcc)
 
11837
            # Lucid
 
11838
            lt_prog_compiler_pic_CXX='-pic'
 
11839
            ;;
 
11840
          *)
 
11841
            ;;
 
11842
        esac
 
11843
        ;;
 
11844
      tandem*)
 
11845
        case $cc_basename in
 
11846
          NCC)
 
11847
            # NonStop-UX NCC 3.20
 
11848
            lt_prog_compiler_pic_CXX='-KPIC'
 
11849
            ;;
 
11850
          *)
 
11851
            ;;
 
11852
        esac
 
11853
        ;;
 
11854
      unixware*)
 
11855
        ;;
 
11856
      vxworks*)
 
11857
        ;;
 
11858
      *)
 
11859
        lt_prog_compiler_can_build_shared_CXX=no
 
11860
        ;;
 
11861
    esac
 
11862
  fi
 
11863
 
 
11864
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11865
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11866
 
 
11867
#
 
11868
# Check to make sure the PIC flag actually works.
 
11869
#
 
11870
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11871
 
 
11872
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11873
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11874
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11876
else
 
11877
  lt_prog_compiler_pic_works_CXX=no
 
11878
  ac_outfile=conftest.$ac_objext
 
11879
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11880
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11881
   # Insert the option either (1) after the last *FLAGS variable, or
 
11882
   # (2) before a word containing "conftest.", or (3) at the end.
 
11883
   # Note that $ac_compile itself does not contain backslashes and begins
 
11884
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11885
   # The option is referenced via a variable to avoid confusing sed.
 
11886
   lt_compile=`echo "$ac_compile" | $SED \
 
11887
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11888
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11889
   -e 's:$: $lt_compiler_flag:'`
 
11890
   (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
 
11891
   (eval "$lt_compile" 2>conftest.err)
 
11892
   ac_status=$?
 
11893
   cat conftest.err >&5
 
11894
   echo "$as_me:11894: \$? = $ac_status" >&5
 
11895
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11896
     # The compiler can only warn and ignore the option if not recognized
 
11897
     # So say no if there are warnings
 
11898
     if test ! -s conftest.err; then
 
11899
       lt_prog_compiler_pic_works_CXX=yes
 
11900
     fi
 
11901
   fi
 
11902
   $rm conftest*
 
11903
 
 
11904
fi
 
11905
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11906
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11907
 
 
11908
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11909
    case $lt_prog_compiler_pic_CXX in
 
11910
     "" | " "*) ;;
 
11911
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11912
     esac
 
11913
else
 
11914
    lt_prog_compiler_pic_CXX=
 
11915
     lt_prog_compiler_can_build_shared_CXX=no
 
11916
fi
 
11917
 
 
11918
fi
 
11919
case "$host_os" in
 
11920
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11921
  *djgpp*)
 
11922
    lt_prog_compiler_pic_CXX=
 
11923
    ;;
 
11924
  *)
 
11925
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11926
    ;;
 
11927
esac
 
11928
 
 
11929
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11930
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11931
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11933
else
 
11934
  lt_cv_prog_compiler_c_o_CXX=no
 
11935
   $rm -r conftest 2>/dev/null
 
11936
   mkdir conftest
 
11937
   cd conftest
 
11938
   mkdir out
 
11939
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11940
 
 
11941
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11942
   # Insert the option either (1) after the last *FLAGS variable, or
 
11943
   # (2) before a word containing "conftest.", or (3) at the end.
 
11944
   # Note that $ac_compile itself does not contain backslashes and begins
 
11945
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11946
   lt_compile=`echo "$ac_compile" | $SED \
 
11947
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11948
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11949
   -e 's:$: $lt_compiler_flag:'`
 
11950
   (eval echo "\"\$as_me:11950: $lt_compile\"" >&5)
 
11951
   (eval "$lt_compile" 2>out/conftest.err)
 
11952
   ac_status=$?
 
11953
   cat out/conftest.err >&5
 
11954
   echo "$as_me:11954: \$? = $ac_status" >&5
 
11955
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11956
   then
 
11957
     # The compiler can only warn and ignore the option if not recognized
 
11958
     # So say no if there are warnings
 
11959
     if test ! -s out/conftest.err; then
 
11960
       lt_cv_prog_compiler_c_o_CXX=yes
 
11961
     fi
 
11962
   fi
 
11963
   chmod u+w .
 
11964
   $rm conftest*
 
11965
   # SGI C++ compiler will create directory out/ii_files/ for
 
11966
   # template instantiation
 
11967
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11968
   $rm out/* && rmdir out
 
11969
   cd ..
 
11970
   rmdir conftest
 
11971
   $rm conftest*
 
11972
 
 
11973
fi
 
11974
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11975
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11976
 
 
11977
 
 
11978
hard_links="nottested"
 
11979
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11980
  # do not overwrite the value of need_locks provided by the user
 
11981
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11982
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11983
  hard_links=yes
 
11984
  $rm conftest*
 
11985
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11986
  touch conftest.a
 
11987
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11988
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11989
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11990
echo "${ECHO_T}$hard_links" >&6
 
11991
  if test "$hard_links" = no; then
 
11992
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11993
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11994
    need_locks=warn
 
11995
  fi
 
11996
else
 
11997
  need_locks=no
 
11998
fi
 
11999
 
 
12000
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12001
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12002
 
 
12003
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12004
  case $host_os in
 
12005
  aix4* | aix5*)
 
12006
    # If we're using GNU nm, then we don't want the "-C" option.
 
12007
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12008
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12009
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12010
    else
 
12011
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12012
    fi
 
12013
    ;;
 
12014
  pw32*)
 
12015
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12016
  ;;
 
12017
  cygwin* | mingw*)
 
12018
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12019
  ;;
 
12020
  *)
 
12021
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12022
  ;;
 
12023
  esac
 
12024
 
 
12025
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12026
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12027
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12028
 
 
12029
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12030
if test "$GCC" = yes; then
 
12031
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12032
fi
 
12033
 
 
12034
#
 
12035
# Do we need to explicitly link libc?
 
12036
#
 
12037
case "x$archive_cmds_need_lc_CXX" in
 
12038
x|xyes)
 
12039
  # Assume -lc should be added
 
12040
  archive_cmds_need_lc_CXX=yes
 
12041
 
 
12042
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12043
    case $archive_cmds_CXX in
 
12044
    *'~'*)
 
12045
      # FIXME: we may have to deal with multi-command sequences.
 
12046
      ;;
 
12047
    '$CC '*)
 
12048
      # Test whether the compiler implicitly links with -lc since on some
 
12049
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12050
      # to ld, don't add -lc before -lgcc.
 
12051
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12052
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12053
      $rm conftest*
 
12054
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12055
 
 
12056
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12057
  (eval $ac_compile) 2>&5
 
12058
  ac_status=$?
 
12059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12060
  (exit $ac_status); } 2>conftest.err; then
 
12061
        soname=conftest
 
12062
        lib=conftest
 
12063
        libobjs=conftest.$ac_objext
 
12064
        deplibs=
 
12065
        wl=$lt_prog_compiler_wl_CXX
 
12066
        compiler_flags=-v
 
12067
        linker_flags=-v
 
12068
        verstring=
 
12069
        output_objdir=.
 
12070
        libname=conftest
 
12071
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12072
        allow_undefined_flag_CXX=
 
12073
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12074
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12075
  ac_status=$?
 
12076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12077
  (exit $ac_status); }
 
12078
        then
 
12079
          archive_cmds_need_lc_CXX=no
 
12080
        else
 
12081
          archive_cmds_need_lc_CXX=yes
 
12082
        fi
 
12083
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12084
      else
 
12085
        cat conftest.err 1>&5
 
12086
      fi
 
12087
      $rm conftest*
 
12088
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12089
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12090
      ;;
 
12091
    esac
 
12092
  fi
 
12093
  ;;
 
12094
esac
 
12095
 
 
12096
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12097
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12098
library_names_spec=
 
12099
libname_spec='lib$name'
 
12100
soname_spec=
 
12101
shrext=".so"
 
12102
postinstall_cmds=
 
12103
postuninstall_cmds=
 
12104
finish_cmds=
 
12105
finish_eval=
 
12106
shlibpath_var=
 
12107
shlibpath_overrides_runpath=unknown
 
12108
version_type=none
 
12109
dynamic_linker="$host_os ld.so"
 
12110
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12111
if test "$GCC" = yes; then
 
12112
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12113
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12114
    # if the path contains ";" then we assume it to be the separator
 
12115
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12116
    # assumed that no part of a normal pathname contains ";" but that should
 
12117
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12118
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12119
  else
 
12120
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12121
  fi
 
12122
else
 
12123
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12124
fi
 
12125
need_lib_prefix=unknown
 
12126
hardcode_into_libs=no
 
12127
 
 
12128
# when you set need_version to no, make sure it does not cause -set_version
 
12129
# flags to be left without arguments
 
12130
need_version=unknown
 
12131
 
 
12132
case $host_os in
 
12133
aix3*)
 
12134
  version_type=linux
 
12135
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12136
  shlibpath_var=LIBPATH
 
12137
 
 
12138
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12139
  soname_spec='${libname}${release}${shared_ext}$major'
 
12140
  ;;
 
12141
 
 
12142
aix4* | aix5*)
 
12143
  version_type=linux
 
12144
  need_lib_prefix=no
 
12145
  need_version=no
 
12146
  hardcode_into_libs=yes
 
12147
  if test "$host_cpu" = ia64; then
 
12148
    # AIX 5 supports IA64
 
12149
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12150
    shlibpath_var=LD_LIBRARY_PATH
 
12151
  else
 
12152
    # With GCC up to 2.95.x, collect2 would create an import file
 
12153
    # for dependence libraries.  The import file would start with
 
12154
    # the line `#! .'.  This would cause the generated library to
 
12155
    # depend on `.', always an invalid library.  This was fixed in
 
12156
    # development snapshots of GCC prior to 3.0.
 
12157
    case $host_os in
 
12158
      aix4 | aix4.[01] | aix4.[01].*)
 
12159
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12160
           echo ' yes '
 
12161
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12162
        :
 
12163
      else
 
12164
        can_build_shared=no
 
12165
      fi
 
12166
      ;;
 
12167
    esac
 
12168
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12169
    # soname into executable. Probably we can add versioning support to
 
12170
    # collect2, so additional links can be useful in future.
 
12171
    if test "$aix_use_runtimelinking" = yes; then
 
12172
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12173
      # instead of lib<name>.a to let people know that these are not
 
12174
      # typical AIX shared libraries.
 
12175
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12176
    else
 
12177
      # We preserve .a as extension for shared libraries through AIX4.2
 
12178
      # and later when we are not doing run time linking.
 
12179
      library_names_spec='${libname}${release}.a $libname.a'
 
12180
      soname_spec='${libname}${release}${shared_ext}$major'
 
12181
    fi
 
12182
    shlibpath_var=LIBPATH
 
12183
  fi
 
12184
  ;;
 
12185
 
 
12186
amigaos*)
 
12187
  library_names_spec='$libname.ixlibrary $libname.a'
 
12188
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12189
  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'
 
12190
  ;;
 
12191
 
 
12192
beos*)
 
12193
  library_names_spec='${libname}${shared_ext}'
 
12194
  dynamic_linker="$host_os ld.so"
 
12195
  shlibpath_var=LIBRARY_PATH
 
12196
  ;;
 
12197
 
 
12198
bsdi4*)
 
12199
  version_type=linux
 
12200
  need_version=no
 
12201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12202
  soname_spec='${libname}${release}${shared_ext}$major'
 
12203
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12204
  shlibpath_var=LD_LIBRARY_PATH
 
12205
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12206
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12207
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12208
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12209
  # libtool to hard-code these into programs
 
12210
  ;;
 
12211
 
 
12212
cygwin* | mingw* | pw32*)
 
12213
  version_type=windows
 
12214
  shrext=".dll"
 
12215
  need_version=no
 
12216
  need_lib_prefix=no
 
12217
 
 
12218
  case $GCC,$host_os in
 
12219
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12220
    library_names_spec='$libname.dll.a'
 
12221
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12222
    postinstall_cmds='base_file=`basename \${file}`~
 
12223
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12224
      dldir=$destdir/`dirname \$dlpath`~
 
12225
      test -d \$dldir || mkdir -p \$dldir~
 
12226
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12227
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12228
      dlpath=$dir/\$dldll~
 
12229
       $rm \$dlpath'
 
12230
    shlibpath_overrides_runpath=yes
 
12231
 
 
12232
    case $host_os in
 
12233
    cygwin*)
 
12234
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12235
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12236
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12237
      ;;
 
12238
    mingw*)
 
12239
      # MinGW DLLs use traditional 'lib' prefix
 
12240
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12241
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12242
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12243
        # It is most probably a Windows format PATH printed by
 
12244
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12245
        # path with ; separators, and with drive letters. We can handle the
 
12246
        # drive letters (cygwin fileutils understands them), so leave them,
 
12247
        # especially as we might pass files found there to a mingw objdump,
 
12248
        # which wouldn't understand a cygwinified path. Ahh.
 
12249
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12250
      else
 
12251
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12252
      fi
 
12253
      ;;
 
12254
    pw32*)
 
12255
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12256
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12257
      ;;
 
12258
    esac
 
12259
    ;;
 
12260
 
 
12261
  *)
 
12262
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12263
    ;;
 
12264
  esac
 
12265
  dynamic_linker='Win32 ld.exe'
 
12266
  # FIXME: first we should search . and the directory the executable is in
 
12267
  shlibpath_var=PATH
 
12268
  ;;
 
12269
 
 
12270
darwin* | rhapsody*)
 
12271
  dynamic_linker="$host_os dyld"
 
12272
  version_type=darwin
 
12273
  need_lib_prefix=no
 
12274
  need_version=no
 
12275
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12276
  soname_spec='${libname}${release}${major}$shared_ext'
 
12277
  shlibpath_overrides_runpath=yes
 
12278
  shlibpath_var=DYLD_LIBRARY_PATH
 
12279
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
12280
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12281
  if test "$GCC" = yes; then
 
12282
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12283
  else
 
12284
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12285
  fi
 
12286
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12287
  ;;
 
12288
 
 
12289
dgux*)
 
12290
  version_type=linux
 
12291
  need_lib_prefix=no
 
12292
  need_version=no
 
12293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12294
  soname_spec='${libname}${release}${shared_ext}$major'
 
12295
  shlibpath_var=LD_LIBRARY_PATH
 
12296
  ;;
 
12297
 
 
12298
freebsd1*)
 
12299
  dynamic_linker=no
 
12300
  ;;
 
12301
 
 
12302
kfreebsd*-gnu)
 
12303
  version_type=linux
 
12304
  need_lib_prefix=no
 
12305
  need_version=no
 
12306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12307
  soname_spec='${libname}${release}${shared_ext}$major'
 
12308
  shlibpath_var=LD_LIBRARY_PATH
 
12309
  shlibpath_overrides_runpath=no
 
12310
  hardcode_into_libs=yes
 
12311
  dynamic_linker='GNU ld.so'
 
12312
  ;;
 
12313
 
 
12314
freebsd*)
 
12315
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12316
  version_type=freebsd-$objformat
 
12317
  case $version_type in
 
12318
    freebsd-elf*)
 
12319
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12320
      need_version=no
 
12321
      need_lib_prefix=no
 
12322
      ;;
 
12323
    freebsd-*)
 
12324
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12325
      need_version=yes
 
12326
      ;;
 
12327
  esac
 
12328
  shlibpath_var=LD_LIBRARY_PATH
 
12329
  case $host_os in
 
12330
  freebsd2*)
 
12331
    shlibpath_overrides_runpath=yes
 
12332
    ;;
 
12333
  freebsd3.01* | freebsdelf3.01*)
 
12334
    shlibpath_overrides_runpath=yes
 
12335
    hardcode_into_libs=yes
 
12336
    ;;
 
12337
  *) # from 3.2 on
 
12338
    shlibpath_overrides_runpath=no
 
12339
    hardcode_into_libs=yes
 
12340
    ;;
 
12341
  esac
 
12342
  ;;
 
12343
 
 
12344
gnu*)
 
12345
  version_type=linux
 
12346
  need_lib_prefix=no
 
12347
  need_version=no
 
12348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12349
  soname_spec='${libname}${release}${shared_ext}$major'
 
12350
  shlibpath_var=LD_LIBRARY_PATH
 
12351
  hardcode_into_libs=yes
 
12352
  ;;
 
12353
 
 
12354
hpux9* | hpux10* | hpux11*)
 
12355
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12356
  # link against other versions.
 
12357
  version_type=sunos
 
12358
  need_lib_prefix=no
 
12359
  need_version=no
 
12360
  case "$host_cpu" in
 
12361
  ia64*)
 
12362
    shrext='.so'
 
12363
    hardcode_into_libs=yes
 
12364
    dynamic_linker="$host_os dld.so"
 
12365
    shlibpath_var=LD_LIBRARY_PATH
 
12366
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12367
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12368
    soname_spec='${libname}${release}${shared_ext}$major'
 
12369
    if test "X$HPUX_IA64_MODE" = X32; then
 
12370
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12371
    else
 
12372
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12373
    fi
 
12374
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12375
    ;;
 
12376
   hppa*64*)
 
12377
     shrext='.sl'
 
12378
     hardcode_into_libs=yes
 
12379
     dynamic_linker="$host_os dld.sl"
 
12380
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12381
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12382
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12383
     soname_spec='${libname}${release}${shared_ext}$major'
 
12384
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12385
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12386
     ;;
 
12387
   *)
 
12388
    shrext='.sl'
 
12389
    dynamic_linker="$host_os dld.sl"
 
12390
    shlibpath_var=SHLIB_PATH
 
12391
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12392
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12393
    soname_spec='${libname}${release}${shared_ext}$major'
 
12394
    ;;
 
12395
  esac
 
12396
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12397
  postinstall_cmds='chmod 555 $lib'
 
12398
  ;;
 
12399
 
 
12400
irix5* | irix6* | nonstopux*)
 
12401
  case $host_os in
 
12402
    nonstopux*) version_type=nonstopux ;;
 
12403
    *)
 
12404
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12405
                version_type=linux
 
12406
        else
 
12407
                version_type=irix
 
12408
        fi ;;
 
12409
  esac
 
12410
  need_lib_prefix=no
 
12411
  need_version=no
 
12412
  soname_spec='${libname}${release}${shared_ext}$major'
 
12413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12414
  case $host_os in
 
12415
  irix5* | nonstopux*)
 
12416
    libsuff= shlibsuff=
 
12417
    ;;
 
12418
  *)
 
12419
    case $LD in # libtool.m4 will add one of these switches to LD
 
12420
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12421
      libsuff= shlibsuff= libmagic=32-bit;;
 
12422
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12423
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12424
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12425
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12426
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12427
    esac
 
12428
    ;;
 
12429
  esac
 
12430
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12431
  shlibpath_overrides_runpath=no
 
12432
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12433
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12434
  hardcode_into_libs=yes
 
12435
  ;;
 
12436
 
 
12437
# No shared lib support for Linux oldld, aout, or coff.
 
12438
linux*oldld* | linux*aout* | linux*coff*)
 
12439
  dynamic_linker=no
 
12440
  ;;
 
12441
 
 
12442
# This must be Linux ELF.
 
12443
linux*)
 
12444
  version_type=linux
 
12445
  need_lib_prefix=no
 
12446
  need_version=no
 
12447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12448
  soname_spec='${libname}${release}${shared_ext}$major'
 
12449
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12450
  shlibpath_var=LD_LIBRARY_PATH
 
12451
  shlibpath_overrides_runpath=no
 
12452
  # This implies no fast_install, which is unacceptable.
 
12453
  # Some rework will be needed to allow for fast_install
 
12454
  # before this can be enabled.
 
12455
  hardcode_into_libs=yes
 
12456
 
 
12457
  # Append ld.so.conf contents to the search path
 
12458
  if test -f /etc/ld.so.conf; then
 
12459
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
12460
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
12461
  fi
 
12462
 
 
12463
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12464
  # powerpc, because MkLinux only supported shared libraries with the
 
12465
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12466
  # most powerpc-linux boxes support dynamic linking these days and
 
12467
  # people can always --disable-shared, the test was removed, and we
 
12468
  # assume the GNU/Linux dynamic linker is in use.
 
12469
  dynamic_linker='GNU/Linux ld.so'
 
12470
  ;;
 
12471
 
 
12472
knetbsd*-gnu)
 
12473
  version_type=linux
 
12474
  need_lib_prefix=no
 
12475
  need_version=no
 
12476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12477
  soname_spec='${libname}${release}${shared_ext}$major'
 
12478
  shlibpath_var=LD_LIBRARY_PATH
 
12479
  shlibpath_overrides_runpath=no
 
12480
  hardcode_into_libs=yes
 
12481
  dynamic_linker='GNU ld.so'
 
12482
  ;;
 
12483
 
 
12484
netbsd*)
 
12485
  version_type=sunos
 
12486
  need_lib_prefix=no
 
12487
  need_version=no
 
12488
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12489
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12490
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12491
    dynamic_linker='NetBSD (a.out) ld.so'
 
12492
  else
 
12493
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12494
    soname_spec='${libname}${release}${shared_ext}$major'
 
12495
    dynamic_linker='NetBSD ld.elf_so'
 
12496
  fi
 
12497
  shlibpath_var=LD_LIBRARY_PATH
 
12498
  shlibpath_overrides_runpath=yes
 
12499
  hardcode_into_libs=yes
 
12500
  ;;
 
12501
 
 
12502
newsos6)
 
12503
  version_type=linux
 
12504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12505
  shlibpath_var=LD_LIBRARY_PATH
 
12506
  shlibpath_overrides_runpath=yes
 
12507
  ;;
 
12508
 
 
12509
nto-qnx*)
 
12510
  version_type=linux
 
12511
  need_lib_prefix=no
 
12512
  need_version=no
 
12513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12514
  soname_spec='${libname}${release}${shared_ext}$major'
 
12515
  shlibpath_var=LD_LIBRARY_PATH
 
12516
  shlibpath_overrides_runpath=yes
 
12517
  ;;
 
12518
 
 
12519
openbsd*)
 
12520
  version_type=sunos
 
12521
  need_lib_prefix=no
 
12522
  need_version=yes
 
12523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12524
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12525
  shlibpath_var=LD_LIBRARY_PATH
 
12526
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12527
    case $host_os in
 
12528
      openbsd2.[89] | openbsd2.[89].*)
 
12529
        shlibpath_overrides_runpath=no
 
12530
        ;;
 
12531
      *)
 
12532
        shlibpath_overrides_runpath=yes
 
12533
        ;;
 
12534
      esac
 
12535
  else
 
12536
    shlibpath_overrides_runpath=yes
 
12537
  fi
 
12538
  ;;
 
12539
 
 
12540
os2*)
 
12541
  libname_spec='$name'
 
12542
  shrext=".dll"
 
12543
  need_lib_prefix=no
 
12544
  library_names_spec='$libname${shared_ext} $libname.a'
 
12545
  dynamic_linker='OS/2 ld.exe'
 
12546
  shlibpath_var=LIBPATH
 
12547
  ;;
 
12548
 
 
12549
osf3* | osf4* | osf5*)
 
12550
  version_type=osf
 
12551
  need_lib_prefix=no
 
12552
  need_version=no
 
12553
  soname_spec='${libname}${release}${shared_ext}$major'
 
12554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12555
  shlibpath_var=LD_LIBRARY_PATH
 
12556
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12557
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12558
  ;;
 
12559
 
 
12560
sco3.2v5*)
 
12561
  version_type=osf
 
12562
  soname_spec='${libname}${release}${shared_ext}$major'
 
12563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12564
  shlibpath_var=LD_LIBRARY_PATH
 
12565
  ;;
 
12566
 
 
12567
solaris*)
 
12568
  version_type=linux
 
12569
  need_lib_prefix=no
 
12570
  need_version=no
 
12571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12572
  soname_spec='${libname}${release}${shared_ext}$major'
 
12573
  shlibpath_var=LD_LIBRARY_PATH
 
12574
  shlibpath_overrides_runpath=yes
 
12575
  hardcode_into_libs=yes
 
12576
  # ldd complains unless libraries are executable
 
12577
  postinstall_cmds='chmod +x $lib'
 
12578
  ;;
 
12579
 
 
12580
sunos4*)
 
12581
  version_type=sunos
 
12582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12583
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12584
  shlibpath_var=LD_LIBRARY_PATH
 
12585
  shlibpath_overrides_runpath=yes
 
12586
  if test "$with_gnu_ld" = yes; then
 
12587
    need_lib_prefix=no
 
12588
  fi
 
12589
  need_version=yes
 
12590
  ;;
 
12591
 
 
12592
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12593
  version_type=linux
 
12594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12595
  soname_spec='${libname}${release}${shared_ext}$major'
 
12596
  shlibpath_var=LD_LIBRARY_PATH
 
12597
  case $host_vendor in
 
12598
    sni)
 
12599
      shlibpath_overrides_runpath=no
 
12600
      need_lib_prefix=no
 
12601
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12602
      runpath_var=LD_RUN_PATH
 
12603
      ;;
 
12604
    siemens)
 
12605
      need_lib_prefix=no
 
12606
      ;;
 
12607
    motorola)
 
12608
      need_lib_prefix=no
 
12609
      need_version=no
 
12610
      shlibpath_overrides_runpath=no
 
12611
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12612
      ;;
 
12613
  esac
 
12614
  ;;
 
12615
 
 
12616
sysv4*MP*)
 
12617
  if test -d /usr/nec ;then
 
12618
    version_type=linux
 
12619
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12620
    soname_spec='$libname${shared_ext}.$major'
 
12621
    shlibpath_var=LD_LIBRARY_PATH
 
12622
  fi
 
12623
  ;;
 
12624
 
 
12625
uts4*)
 
12626
  version_type=linux
 
12627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12628
  soname_spec='${libname}${release}${shared_ext}$major'
 
12629
  shlibpath_var=LD_LIBRARY_PATH
 
12630
  ;;
 
12631
 
 
12632
*)
 
12633
  dynamic_linker=no
 
12634
  ;;
 
12635
esac
 
12636
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12637
echo "${ECHO_T}$dynamic_linker" >&6
 
12638
test "$dynamic_linker" = no && can_build_shared=no
 
12639
 
 
12640
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12642
hardcode_action_CXX=
 
12643
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12644
   test -n "$runpath_var CXX" || \
 
12645
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12646
 
 
12647
  # We can hardcode non-existant directories.
 
12648
  if test "$hardcode_direct_CXX" != no &&
 
12649
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12650
     # have to relink, otherwise we might link with an installed library
 
12651
     # when we should be linking with a yet-to-be-installed one
 
12652
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12653
     test "$hardcode_minus_L_CXX" != no; then
 
12654
    # Linking always hardcodes the temporary library directory.
 
12655
    hardcode_action_CXX=relink
 
12656
  else
 
12657
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12658
    hardcode_action_CXX=immediate
 
12659
  fi
 
12660
else
 
12661
  # We cannot hardcode anything, or else we can only hardcode existing
 
12662
  # directories.
 
12663
  hardcode_action_CXX=unsupported
 
12664
fi
 
12665
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12666
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12667
 
 
12668
if test "$hardcode_action_CXX" = relink; then
 
12669
  # Fast installation is not supported
 
12670
  enable_fast_install=no
 
12671
elif test "$shlibpath_overrides_runpath" = yes ||
 
12672
     test "$enable_shared" = no; then
 
12673
  # Fast installation is not necessary
 
12674
  enable_fast_install=needless
 
12675
fi
 
12676
 
 
12677
striplib=
 
12678
old_striplib=
 
12679
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12680
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12681
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12682
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12683
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12684
  echo "$as_me:$LINENO: result: yes" >&5
 
12685
echo "${ECHO_T}yes" >&6
 
12686
else
 
12687
# FIXME - insert some real tests, host_os isn't really good enough
 
12688
  case $host_os in
 
12689
   darwin*)
 
12690
       if test -n "$STRIP" ; then
 
12691
         striplib="$STRIP -x"
 
12692
         echo "$as_me:$LINENO: result: yes" >&5
 
12693
echo "${ECHO_T}yes" >&6
 
12694
       else
 
12695
  echo "$as_me:$LINENO: result: no" >&5
 
12696
echo "${ECHO_T}no" >&6
 
12697
fi
 
12698
       ;;
 
12699
   *)
 
12700
  echo "$as_me:$LINENO: result: no" >&5
 
12701
echo "${ECHO_T}no" >&6
 
12702
    ;;
 
12703
  esac
 
12704
fi
 
12705
 
 
12706
if test "x$enable_dlopen" != xyes; then
 
12707
  enable_dlopen=unknown
 
12708
  enable_dlopen_self=unknown
 
12709
  enable_dlopen_self_static=unknown
 
12710
else
 
12711
  lt_cv_dlopen=no
 
12712
  lt_cv_dlopen_libs=
 
12713
 
 
12714
  case $host_os in
 
12715
  beos*)
 
12716
    lt_cv_dlopen="load_add_on"
 
12717
    lt_cv_dlopen_libs=
 
12718
    lt_cv_dlopen_self=yes
 
12719
    ;;
 
12720
 
 
12721
  mingw* | pw32*)
 
12722
    lt_cv_dlopen="LoadLibrary"
 
12723
    lt_cv_dlopen_libs=
 
12724
   ;;
 
12725
 
 
12726
  cygwin*)
 
12727
    lt_cv_dlopen="dlopen"
 
12728
    lt_cv_dlopen_libs=
 
12729
   ;;
 
12730
 
 
12731
  darwin*)
 
12732
  # if libdl is installed we need to link against it
 
12733
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12737
else
 
12738
  ac_check_lib_save_LIBS=$LIBS
 
12739
LIBS="-ldl  $LIBS"
 
12740
cat >conftest.$ac_ext <<_ACEOF
 
12741
/* confdefs.h.  */
 
12742
_ACEOF
 
12743
cat confdefs.h >>conftest.$ac_ext
 
12744
cat >>conftest.$ac_ext <<_ACEOF
 
12745
/* end confdefs.h.  */
 
12746
 
 
12747
/* Override any gcc2 internal prototype to avoid an error.  */
 
12748
#ifdef __cplusplus
 
12749
extern "C"
 
12750
#endif
 
12751
/* We use char because int might match the return type of a gcc2
 
12752
   builtin and then its argument prototype would still apply.  */
 
12753
char dlopen ();
 
12754
int
 
12755
main ()
 
12756
{
 
12757
dlopen ();
 
12758
  ;
 
12759
  return 0;
 
12760
}
 
12761
_ACEOF
 
12762
rm -f conftest.$ac_objext conftest$ac_exeext
 
12763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12764
  (eval $ac_link) 2>conftest.er1
 
12765
  ac_status=$?
 
12766
  grep -v '^ *+' conftest.er1 >conftest.err
 
12767
  rm -f conftest.er1
 
12768
  cat conftest.err >&5
 
12769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12770
  (exit $ac_status); } &&
 
12771
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12773
  (eval $ac_try) 2>&5
 
12774
  ac_status=$?
 
12775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12776
  (exit $ac_status); }; } &&
 
12777
         { ac_try='test -s conftest$ac_exeext'
 
12778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12779
  (eval $ac_try) 2>&5
 
12780
  ac_status=$?
 
12781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12782
  (exit $ac_status); }; }; then
 
12783
  ac_cv_lib_dl_dlopen=yes
 
12784
else
 
12785
  echo "$as_me: failed program was:" >&5
 
12786
sed 's/^/| /' conftest.$ac_ext >&5
 
12787
 
 
12788
ac_cv_lib_dl_dlopen=no
 
12789
fi
 
12790
rm -f conftest.err conftest.$ac_objext \
 
12791
      conftest$ac_exeext conftest.$ac_ext
 
12792
LIBS=$ac_check_lib_save_LIBS
 
12793
fi
 
12794
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12795
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12796
if test $ac_cv_lib_dl_dlopen = yes; then
 
12797
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12798
else
 
12799
 
 
12800
    lt_cv_dlopen="dyld"
 
12801
    lt_cv_dlopen_libs=
 
12802
    lt_cv_dlopen_self=yes
 
12803
 
 
12804
fi
 
12805
 
 
12806
   ;;
 
12807
 
 
12808
  *)
 
12809
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12810
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12811
if test "${ac_cv_func_shl_load+set}" = set; then
 
12812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12813
else
 
12814
  cat >conftest.$ac_ext <<_ACEOF
 
12815
/* confdefs.h.  */
 
12816
_ACEOF
 
12817
cat confdefs.h >>conftest.$ac_ext
 
12818
cat >>conftest.$ac_ext <<_ACEOF
 
12819
/* end confdefs.h.  */
 
12820
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12821
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12822
#define shl_load innocuous_shl_load
 
12823
 
 
12824
/* System header to define __stub macros and hopefully few prototypes,
 
12825
    which can conflict with char shl_load (); below.
 
12826
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12827
    <limits.h> exists even on freestanding compilers.  */
 
12828
 
 
12829
#ifdef __STDC__
 
12830
# include <limits.h>
 
12831
#else
 
12832
# include <assert.h>
 
12833
#endif
 
12834
 
 
12835
#undef shl_load
 
12836
 
 
12837
/* Override any gcc2 internal prototype to avoid an error.  */
 
12838
#ifdef __cplusplus
 
12839
extern "C"
 
12840
{
 
12841
#endif
 
12842
/* We use char because int might match the return type of a gcc2
 
12843
   builtin and then its argument prototype would still apply.  */
 
12844
char shl_load ();
 
12845
/* The GNU C library defines this for functions which it implements
 
12846
    to always fail with ENOSYS.  Some functions are actually named
 
12847
    something starting with __ and the normal name is an alias.  */
 
12848
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12849
choke me
 
12850
#else
 
12851
char (*f) () = shl_load;
 
12852
#endif
 
12853
#ifdef __cplusplus
 
12854
}
 
12855
#endif
 
12856
 
 
12857
int
 
12858
main ()
 
12859
{
 
12860
return f != shl_load;
 
12861
  ;
 
12862
  return 0;
 
12863
}
 
12864
_ACEOF
 
12865
rm -f conftest.$ac_objext conftest$ac_exeext
 
12866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12867
  (eval $ac_link) 2>conftest.er1
 
12868
  ac_status=$?
 
12869
  grep -v '^ *+' conftest.er1 >conftest.err
 
12870
  rm -f conftest.er1
 
12871
  cat conftest.err >&5
 
12872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12873
  (exit $ac_status); } &&
 
12874
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12876
  (eval $ac_try) 2>&5
 
12877
  ac_status=$?
 
12878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12879
  (exit $ac_status); }; } &&
 
12880
         { ac_try='test -s conftest$ac_exeext'
 
12881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12882
  (eval $ac_try) 2>&5
 
12883
  ac_status=$?
 
12884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12885
  (exit $ac_status); }; }; then
 
12886
  ac_cv_func_shl_load=yes
 
12887
else
 
12888
  echo "$as_me: failed program was:" >&5
 
12889
sed 's/^/| /' conftest.$ac_ext >&5
 
12890
 
 
12891
ac_cv_func_shl_load=no
 
12892
fi
 
12893
rm -f conftest.err conftest.$ac_objext \
 
12894
      conftest$ac_exeext conftest.$ac_ext
 
12895
fi
 
12896
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12897
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12898
if test $ac_cv_func_shl_load = yes; then
 
12899
  lt_cv_dlopen="shl_load"
 
12900
else
 
12901
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12902
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12903
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12905
else
 
12906
  ac_check_lib_save_LIBS=$LIBS
 
12907
LIBS="-ldld  $LIBS"
 
12908
cat >conftest.$ac_ext <<_ACEOF
 
12909
/* confdefs.h.  */
 
12910
_ACEOF
 
12911
cat confdefs.h >>conftest.$ac_ext
 
12912
cat >>conftest.$ac_ext <<_ACEOF
 
12913
/* end confdefs.h.  */
 
12914
 
 
12915
/* Override any gcc2 internal prototype to avoid an error.  */
 
12916
#ifdef __cplusplus
 
12917
extern "C"
 
12918
#endif
 
12919
/* We use char because int might match the return type of a gcc2
 
12920
   builtin and then its argument prototype would still apply.  */
 
12921
char shl_load ();
 
12922
int
 
12923
main ()
 
12924
{
 
12925
shl_load ();
 
12926
  ;
 
12927
  return 0;
 
12928
}
 
12929
_ACEOF
 
12930
rm -f conftest.$ac_objext conftest$ac_exeext
 
12931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12932
  (eval $ac_link) 2>conftest.er1
 
12933
  ac_status=$?
 
12934
  grep -v '^ *+' conftest.er1 >conftest.err
 
12935
  rm -f conftest.er1
 
12936
  cat conftest.err >&5
 
12937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12938
  (exit $ac_status); } &&
 
12939
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12941
  (eval $ac_try) 2>&5
 
12942
  ac_status=$?
 
12943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12944
  (exit $ac_status); }; } &&
 
12945
         { ac_try='test -s conftest$ac_exeext'
 
12946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12947
  (eval $ac_try) 2>&5
 
12948
  ac_status=$?
 
12949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12950
  (exit $ac_status); }; }; then
 
12951
  ac_cv_lib_dld_shl_load=yes
 
12952
else
 
12953
  echo "$as_me: failed program was:" >&5
 
12954
sed 's/^/| /' conftest.$ac_ext >&5
 
12955
 
 
12956
ac_cv_lib_dld_shl_load=no
 
12957
fi
 
12958
rm -f conftest.err conftest.$ac_objext \
 
12959
      conftest$ac_exeext conftest.$ac_ext
 
12960
LIBS=$ac_check_lib_save_LIBS
 
12961
fi
 
12962
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12963
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12964
if test $ac_cv_lib_dld_shl_load = yes; then
 
12965
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12966
else
 
12967
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12968
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12969
if test "${ac_cv_func_dlopen+set}" = set; then
 
12970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12971
else
 
12972
  cat >conftest.$ac_ext <<_ACEOF
 
12973
/* confdefs.h.  */
 
12974
_ACEOF
 
12975
cat confdefs.h >>conftest.$ac_ext
 
12976
cat >>conftest.$ac_ext <<_ACEOF
 
12977
/* end confdefs.h.  */
 
12978
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12979
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12980
#define dlopen innocuous_dlopen
 
12981
 
 
12982
/* System header to define __stub macros and hopefully few prototypes,
 
12983
    which can conflict with char dlopen (); below.
 
12984
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12985
    <limits.h> exists even on freestanding compilers.  */
 
12986
 
 
12987
#ifdef __STDC__
 
12988
# include <limits.h>
 
12989
#else
 
12990
# include <assert.h>
 
12991
#endif
 
12992
 
 
12993
#undef dlopen
 
12994
 
 
12995
/* Override any gcc2 internal prototype to avoid an error.  */
 
12996
#ifdef __cplusplus
 
12997
extern "C"
 
12998
{
 
12999
#endif
 
13000
/* We use char because int might match the return type of a gcc2
 
13001
   builtin and then its argument prototype would still apply.  */
 
13002
char dlopen ();
 
13003
/* The GNU C library defines this for functions which it implements
 
13004
    to always fail with ENOSYS.  Some functions are actually named
 
13005
    something starting with __ and the normal name is an alias.  */
 
13006
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13007
choke me
 
13008
#else
 
13009
char (*f) () = dlopen;
 
13010
#endif
 
13011
#ifdef __cplusplus
 
13012
}
 
13013
#endif
 
13014
 
 
13015
int
 
13016
main ()
 
13017
{
 
13018
return f != dlopen;
 
13019
  ;
 
13020
  return 0;
 
13021
}
 
13022
_ACEOF
 
13023
rm -f conftest.$ac_objext conftest$ac_exeext
 
13024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13025
  (eval $ac_link) 2>conftest.er1
 
13026
  ac_status=$?
 
13027
  grep -v '^ *+' conftest.er1 >conftest.err
 
13028
  rm -f conftest.er1
 
13029
  cat conftest.err >&5
 
13030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13031
  (exit $ac_status); } &&
 
13032
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13034
  (eval $ac_try) 2>&5
 
13035
  ac_status=$?
 
13036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13037
  (exit $ac_status); }; } &&
 
13038
         { ac_try='test -s conftest$ac_exeext'
 
13039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13040
  (eval $ac_try) 2>&5
 
13041
  ac_status=$?
 
13042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13043
  (exit $ac_status); }; }; then
 
13044
  ac_cv_func_dlopen=yes
 
13045
else
 
13046
  echo "$as_me: failed program was:" >&5
 
13047
sed 's/^/| /' conftest.$ac_ext >&5
 
13048
 
 
13049
ac_cv_func_dlopen=no
 
13050
fi
 
13051
rm -f conftest.err conftest.$ac_objext \
 
13052
      conftest$ac_exeext conftest.$ac_ext
 
13053
fi
 
13054
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13055
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13056
if test $ac_cv_func_dlopen = yes; then
 
13057
  lt_cv_dlopen="dlopen"
 
13058
else
 
13059
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13060
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13061
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13063
else
 
13064
  ac_check_lib_save_LIBS=$LIBS
 
13065
LIBS="-ldl  $LIBS"
 
13066
cat >conftest.$ac_ext <<_ACEOF
 
13067
/* confdefs.h.  */
 
13068
_ACEOF
 
13069
cat confdefs.h >>conftest.$ac_ext
 
13070
cat >>conftest.$ac_ext <<_ACEOF
 
13071
/* end confdefs.h.  */
 
13072
 
 
13073
/* Override any gcc2 internal prototype to avoid an error.  */
 
13074
#ifdef __cplusplus
 
13075
extern "C"
 
13076
#endif
 
13077
/* We use char because int might match the return type of a gcc2
 
13078
   builtin and then its argument prototype would still apply.  */
 
13079
char dlopen ();
 
13080
int
 
13081
main ()
 
13082
{
 
13083
dlopen ();
 
13084
  ;
 
13085
  return 0;
 
13086
}
 
13087
_ACEOF
 
13088
rm -f conftest.$ac_objext conftest$ac_exeext
 
13089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13090
  (eval $ac_link) 2>conftest.er1
 
13091
  ac_status=$?
 
13092
  grep -v '^ *+' conftest.er1 >conftest.err
 
13093
  rm -f conftest.er1
 
13094
  cat conftest.err >&5
 
13095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13096
  (exit $ac_status); } &&
 
13097
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13099
  (eval $ac_try) 2>&5
 
13100
  ac_status=$?
 
13101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13102
  (exit $ac_status); }; } &&
 
13103
         { ac_try='test -s conftest$ac_exeext'
 
13104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13105
  (eval $ac_try) 2>&5
 
13106
  ac_status=$?
 
13107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13108
  (exit $ac_status); }; }; then
 
13109
  ac_cv_lib_dl_dlopen=yes
 
13110
else
 
13111
  echo "$as_me: failed program was:" >&5
 
13112
sed 's/^/| /' conftest.$ac_ext >&5
 
13113
 
 
13114
ac_cv_lib_dl_dlopen=no
 
13115
fi
 
13116
rm -f conftest.err conftest.$ac_objext \
 
13117
      conftest$ac_exeext conftest.$ac_ext
 
13118
LIBS=$ac_check_lib_save_LIBS
 
13119
fi
 
13120
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13121
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13122
if test $ac_cv_lib_dl_dlopen = yes; then
 
13123
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13124
else
 
13125
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13126
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13127
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13129
else
 
13130
  ac_check_lib_save_LIBS=$LIBS
 
13131
LIBS="-lsvld  $LIBS"
 
13132
cat >conftest.$ac_ext <<_ACEOF
 
13133
/* confdefs.h.  */
 
13134
_ACEOF
 
13135
cat confdefs.h >>conftest.$ac_ext
 
13136
cat >>conftest.$ac_ext <<_ACEOF
 
13137
/* end confdefs.h.  */
 
13138
 
 
13139
/* Override any gcc2 internal prototype to avoid an error.  */
 
13140
#ifdef __cplusplus
 
13141
extern "C"
 
13142
#endif
 
13143
/* We use char because int might match the return type of a gcc2
 
13144
   builtin and then its argument prototype would still apply.  */
 
13145
char dlopen ();
 
13146
int
 
13147
main ()
 
13148
{
 
13149
dlopen ();
 
13150
  ;
 
13151
  return 0;
 
13152
}
 
13153
_ACEOF
 
13154
rm -f conftest.$ac_objext conftest$ac_exeext
 
13155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13156
  (eval $ac_link) 2>conftest.er1
 
13157
  ac_status=$?
 
13158
  grep -v '^ *+' conftest.er1 >conftest.err
 
13159
  rm -f conftest.er1
 
13160
  cat conftest.err >&5
 
13161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13162
  (exit $ac_status); } &&
 
13163
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13165
  (eval $ac_try) 2>&5
 
13166
  ac_status=$?
 
13167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13168
  (exit $ac_status); }; } &&
 
13169
         { ac_try='test -s conftest$ac_exeext'
 
13170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13171
  (eval $ac_try) 2>&5
 
13172
  ac_status=$?
 
13173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13174
  (exit $ac_status); }; }; then
 
13175
  ac_cv_lib_svld_dlopen=yes
 
13176
else
 
13177
  echo "$as_me: failed program was:" >&5
 
13178
sed 's/^/| /' conftest.$ac_ext >&5
 
13179
 
 
13180
ac_cv_lib_svld_dlopen=no
 
13181
fi
 
13182
rm -f conftest.err conftest.$ac_objext \
 
13183
      conftest$ac_exeext conftest.$ac_ext
 
13184
LIBS=$ac_check_lib_save_LIBS
 
13185
fi
 
13186
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13187
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13188
if test $ac_cv_lib_svld_dlopen = yes; then
 
13189
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13190
else
 
13191
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13192
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13193
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13195
else
 
13196
  ac_check_lib_save_LIBS=$LIBS
 
13197
LIBS="-ldld  $LIBS"
 
13198
cat >conftest.$ac_ext <<_ACEOF
 
13199
/* confdefs.h.  */
 
13200
_ACEOF
 
13201
cat confdefs.h >>conftest.$ac_ext
 
13202
cat >>conftest.$ac_ext <<_ACEOF
 
13203
/* end confdefs.h.  */
 
13204
 
 
13205
/* Override any gcc2 internal prototype to avoid an error.  */
 
13206
#ifdef __cplusplus
 
13207
extern "C"
 
13208
#endif
 
13209
/* We use char because int might match the return type of a gcc2
 
13210
   builtin and then its argument prototype would still apply.  */
 
13211
char dld_link ();
 
13212
int
 
13213
main ()
 
13214
{
 
13215
dld_link ();
 
13216
  ;
 
13217
  return 0;
 
13218
}
 
13219
_ACEOF
 
13220
rm -f conftest.$ac_objext conftest$ac_exeext
 
13221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13222
  (eval $ac_link) 2>conftest.er1
 
13223
  ac_status=$?
 
13224
  grep -v '^ *+' conftest.er1 >conftest.err
 
13225
  rm -f conftest.er1
 
13226
  cat conftest.err >&5
 
13227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13228
  (exit $ac_status); } &&
 
13229
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13231
  (eval $ac_try) 2>&5
 
13232
  ac_status=$?
 
13233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13234
  (exit $ac_status); }; } &&
 
13235
         { ac_try='test -s conftest$ac_exeext'
 
13236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13237
  (eval $ac_try) 2>&5
 
13238
  ac_status=$?
 
13239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13240
  (exit $ac_status); }; }; then
 
13241
  ac_cv_lib_dld_dld_link=yes
 
13242
else
 
13243
  echo "$as_me: failed program was:" >&5
 
13244
sed 's/^/| /' conftest.$ac_ext >&5
 
13245
 
 
13246
ac_cv_lib_dld_dld_link=no
 
13247
fi
 
13248
rm -f conftest.err conftest.$ac_objext \
 
13249
      conftest$ac_exeext conftest.$ac_ext
 
13250
LIBS=$ac_check_lib_save_LIBS
 
13251
fi
 
13252
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13253
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13254
if test $ac_cv_lib_dld_dld_link = yes; then
 
13255
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13256
fi
 
13257
 
 
13258
 
 
13259
fi
 
13260
 
 
13261
 
 
13262
fi
 
13263
 
 
13264
 
 
13265
fi
 
13266
 
 
13267
 
 
13268
fi
 
13269
 
 
13270
 
 
13271
fi
 
13272
 
 
13273
    ;;
 
13274
  esac
 
13275
 
 
13276
  if test "x$lt_cv_dlopen" != xno; then
 
13277
    enable_dlopen=yes
 
13278
  else
 
13279
    enable_dlopen=no
 
13280
  fi
 
13281
 
 
13282
  case $lt_cv_dlopen in
 
13283
  dlopen)
 
13284
    save_CPPFLAGS="$CPPFLAGS"
 
13285
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13286
 
 
13287
    save_LDFLAGS="$LDFLAGS"
 
13288
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13289
 
 
13290
    save_LIBS="$LIBS"
 
13291
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13292
 
 
13293
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13294
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13295
if test "${lt_cv_dlopen_self+set}" = set; then
 
13296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13297
else
 
13298
          if test "$cross_compiling" = yes; then :
 
13299
  lt_cv_dlopen_self=cross
 
13300
else
 
13301
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13302
  lt_status=$lt_dlunknown
 
13303
  cat > conftest.$ac_ext <<EOF
 
13304
#line 13304 "configure"
 
13305
#include "confdefs.h"
 
13306
 
 
13307
#if HAVE_DLFCN_H
 
13308
#include <dlfcn.h>
 
13309
#endif
 
13310
 
 
13311
#include <stdio.h>
 
13312
 
 
13313
#ifdef RTLD_GLOBAL
 
13314
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13315
#else
 
13316
#  ifdef DL_GLOBAL
 
13317
#    define LT_DLGLOBAL         DL_GLOBAL
 
13318
#  else
 
13319
#    define LT_DLGLOBAL         0
 
13320
#  endif
 
13321
#endif
 
13322
 
 
13323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13324
   find out it does not work in some platform. */
 
13325
#ifndef LT_DLLAZY_OR_NOW
 
13326
#  ifdef RTLD_LAZY
 
13327
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13328
#  else
 
13329
#    ifdef DL_LAZY
 
13330
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13331
#    else
 
13332
#      ifdef RTLD_NOW
 
13333
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13334
#      else
 
13335
#        ifdef DL_NOW
 
13336
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13337
#        else
 
13338
#          define LT_DLLAZY_OR_NOW      0
 
13339
#        endif
 
13340
#      endif
 
13341
#    endif
 
13342
#  endif
 
13343
#endif
 
13344
 
 
13345
#ifdef __cplusplus
 
13346
extern "C" void exit (int);
 
13347
#endif
 
13348
 
 
13349
void fnord() { int i=42;}
 
13350
int main ()
 
13351
{
 
13352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13353
  int status = $lt_dlunknown;
 
13354
 
 
13355
  if (self)
 
13356
    {
 
13357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13358
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13359
      /* dlclose (self); */
 
13360
    }
 
13361
 
 
13362
    exit (status);
 
13363
}
 
13364
EOF
 
13365
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13366
  (eval $ac_link) 2>&5
 
13367
  ac_status=$?
 
13368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13369
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13370
    (./conftest; exit; ) 2>/dev/null
 
13371
    lt_status=$?
 
13372
    case x$lt_status in
 
13373
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13374
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13375
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13376
    esac
 
13377
  else :
 
13378
    # compilation failed
 
13379
    lt_cv_dlopen_self=no
 
13380
  fi
 
13381
fi
 
13382
rm -fr conftest*
 
13383
 
 
13384
 
 
13385
fi
 
13386
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13387
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13388
 
 
13389
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13390
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13391
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13392
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13393
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13395
else
 
13396
          if test "$cross_compiling" = yes; then :
 
13397
  lt_cv_dlopen_self_static=cross
 
13398
else
 
13399
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13400
  lt_status=$lt_dlunknown
 
13401
  cat > conftest.$ac_ext <<EOF
 
13402
#line 13402 "configure"
 
13403
#include "confdefs.h"
 
13404
 
 
13405
#if HAVE_DLFCN_H
 
13406
#include <dlfcn.h>
 
13407
#endif
 
13408
 
 
13409
#include <stdio.h>
 
13410
 
 
13411
#ifdef RTLD_GLOBAL
 
13412
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13413
#else
 
13414
#  ifdef DL_GLOBAL
 
13415
#    define LT_DLGLOBAL         DL_GLOBAL
 
13416
#  else
 
13417
#    define LT_DLGLOBAL         0
 
13418
#  endif
 
13419
#endif
 
13420
 
 
13421
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13422
   find out it does not work in some platform. */
 
13423
#ifndef LT_DLLAZY_OR_NOW
 
13424
#  ifdef RTLD_LAZY
 
13425
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13426
#  else
 
13427
#    ifdef DL_LAZY
 
13428
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13429
#    else
 
13430
#      ifdef RTLD_NOW
 
13431
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13432
#      else
 
13433
#        ifdef DL_NOW
 
13434
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13435
#        else
 
13436
#          define LT_DLLAZY_OR_NOW      0
 
13437
#        endif
 
13438
#      endif
 
13439
#    endif
 
13440
#  endif
 
13441
#endif
 
13442
 
 
13443
#ifdef __cplusplus
 
13444
extern "C" void exit (int);
 
13445
#endif
 
13446
 
 
13447
void fnord() { int i=42;}
 
13448
int main ()
 
13449
{
 
13450
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13451
  int status = $lt_dlunknown;
 
13452
 
 
13453
  if (self)
 
13454
    {
 
13455
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13456
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13457
      /* dlclose (self); */
 
13458
    }
 
13459
 
 
13460
    exit (status);
 
13461
}
 
13462
EOF
 
13463
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13464
  (eval $ac_link) 2>&5
 
13465
  ac_status=$?
 
13466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13467
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13468
    (./conftest; exit; ) 2>/dev/null
 
13469
    lt_status=$?
 
13470
    case x$lt_status in
 
13471
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13472
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13473
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13474
    esac
 
13475
  else :
 
13476
    # compilation failed
 
13477
    lt_cv_dlopen_self_static=no
 
13478
  fi
 
13479
fi
 
13480
rm -fr conftest*
 
13481
 
 
13482
 
 
13483
fi
 
13484
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13485
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13486
    fi
 
13487
 
 
13488
    CPPFLAGS="$save_CPPFLAGS"
 
13489
    LDFLAGS="$save_LDFLAGS"
 
13490
    LIBS="$save_LIBS"
 
13491
    ;;
 
13492
  esac
 
13493
 
 
13494
  case $lt_cv_dlopen_self in
 
13495
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13496
  *) enable_dlopen_self=unknown ;;
 
13497
  esac
 
13498
 
 
13499
  case $lt_cv_dlopen_self_static in
 
13500
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13501
  *) enable_dlopen_self_static=unknown ;;
 
13502
  esac
 
13503
fi
 
13504
 
 
13505
 
 
13506
# The else clause should only fire when bootstrapping the
 
13507
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13508
# with your package, and you will get complaints that there are
 
13509
# no rules to generate ltmain.sh.
 
13510
if test -f "$ltmain"; then
 
13511
  # See if we are running on zsh, and set the options which allow our commands through
 
13512
  # without removal of \ escapes.
 
13513
  if test -n "${ZSH_VERSION+set}" ; then
 
13514
    setopt NO_GLOB_SUBST
 
13515
  fi
 
13516
  # Now quote all the things that may contain metacharacters while being
 
13517
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13518
  # variables and quote the copies for generation of the libtool script.
 
13519
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13520
    SED SHELL STRIP \
 
13521
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13522
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13523
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13524
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13525
    lt_cv_sys_global_symbol_to_c_name_address \
 
13526
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13527
    old_postinstall_cmds old_postuninstall_cmds \
 
13528
    compiler_CXX \
 
13529
    CC_CXX \
 
13530
    LD_CXX \
 
13531
    lt_prog_compiler_wl_CXX \
 
13532
    lt_prog_compiler_pic_CXX \
 
13533
    lt_prog_compiler_static_CXX \
 
13534
    lt_prog_compiler_no_builtin_flag_CXX \
 
13535
    export_dynamic_flag_spec_CXX \
 
13536
    thread_safe_flag_spec_CXX \
 
13537
    whole_archive_flag_spec_CXX \
 
13538
    enable_shared_with_static_runtimes_CXX \
 
13539
    old_archive_cmds_CXX \
 
13540
    old_archive_from_new_cmds_CXX \
 
13541
    predep_objects_CXX \
 
13542
    postdep_objects_CXX \
 
13543
    predeps_CXX \
 
13544
    postdeps_CXX \
 
13545
    compiler_lib_search_path_CXX \
 
13546
    archive_cmds_CXX \
 
13547
    archive_expsym_cmds_CXX \
 
13548
    postinstall_cmds_CXX \
 
13549
    postuninstall_cmds_CXX \
 
13550
    old_archive_from_expsyms_cmds_CXX \
 
13551
    allow_undefined_flag_CXX \
 
13552
    no_undefined_flag_CXX \
 
13553
    export_symbols_cmds_CXX \
 
13554
    hardcode_libdir_flag_spec_CXX \
 
13555
    hardcode_libdir_flag_spec_ld_CXX \
 
13556
    hardcode_libdir_separator_CXX \
 
13557
    hardcode_automatic_CXX \
 
13558
    module_cmds_CXX \
 
13559
    module_expsym_cmds_CXX \
 
13560
    lt_cv_prog_compiler_c_o_CXX \
 
13561
    exclude_expsyms_CXX \
 
13562
    include_expsyms_CXX; do
 
13563
 
 
13564
    case $var in
 
13565
    old_archive_cmds_CXX | \
 
13566
    old_archive_from_new_cmds_CXX | \
 
13567
    archive_cmds_CXX | \
 
13568
    archive_expsym_cmds_CXX | \
 
13569
    module_cmds_CXX | \
 
13570
    module_expsym_cmds_CXX | \
 
13571
    old_archive_from_expsyms_cmds_CXX | \
 
13572
    export_symbols_cmds_CXX | \
 
13573
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13574
    postinstall_cmds | postuninstall_cmds | \
 
13575
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13576
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13577
      # Double-quote double-evaled strings.
 
13578
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13579
      ;;
 
13580
    *)
 
13581
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13582
      ;;
 
13583
    esac
 
13584
  done
 
13585
 
 
13586
  case $lt_echo in
 
13587
  *'\$0 --fallback-echo"')
 
13588
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13589
    ;;
 
13590
  esac
 
13591
 
 
13592
cfgfile="$ofile"
 
13593
 
 
13594
  cat <<__EOF__ >> "$cfgfile"
 
13595
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13596
 
 
13597
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13598
 
 
13599
# Shell to use when invoking shell scripts.
 
13600
SHELL=$lt_SHELL
 
13601
 
 
13602
# Whether or not to build shared libraries.
 
13603
build_libtool_libs=$enable_shared
 
13604
 
 
13605
# Whether or not to build static libraries.
 
13606
build_old_libs=$enable_static
 
13607
 
 
13608
# Whether or not to add -lc for building shared libraries.
 
13609
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13610
 
 
13611
# Whether or not to disallow shared libs when runtime libs are static
 
13612
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13613
 
 
13614
# Whether or not to optimize for fast installation.
 
13615
fast_install=$enable_fast_install
 
13616
 
 
13617
# The host system.
 
13618
host_alias=$host_alias
 
13619
host=$host
 
13620
 
 
13621
# An echo program that does not interpret backslashes.
 
13622
echo=$lt_echo
 
13623
 
 
13624
# The archiver.
 
13625
AR=$lt_AR
 
13626
AR_FLAGS=$lt_AR_FLAGS
 
13627
 
 
13628
# A C compiler.
 
13629
LTCC=$lt_LTCC
 
13630
 
 
13631
# A language-specific compiler.
 
13632
CC=$lt_compiler_CXX
 
13633
 
 
13634
# Is the compiler the GNU C compiler?
 
13635
with_gcc=$GCC_CXX
 
13636
 
 
13637
# An ERE matcher.
 
13638
EGREP=$lt_EGREP
 
13639
 
 
13640
# The linker used to build libraries.
 
13641
LD=$lt_LD_CXX
 
13642
 
 
13643
# Whether we need hard or soft links.
 
13644
LN_S=$lt_LN_S
 
13645
 
 
13646
# A BSD-compatible nm program.
 
13647
NM=$lt_NM
 
13648
 
 
13649
# A symbol stripping program
 
13650
STRIP=$lt_STRIP
 
13651
 
 
13652
# Used to examine libraries when file_magic_cmd begins "file"
 
13653
MAGIC_CMD=$MAGIC_CMD
 
13654
 
 
13655
# Used on cygwin: DLL creation program.
 
13656
DLLTOOL="$DLLTOOL"
 
13657
 
 
13658
# Used on cygwin: object dumper.
 
13659
OBJDUMP="$OBJDUMP"
 
13660
 
 
13661
# Used on cygwin: assembler.
 
13662
AS="$AS"
 
13663
 
 
13664
# The name of the directory that contains temporary libtool files.
 
13665
objdir=$objdir
 
13666
 
 
13667
# How to create reloadable object files.
 
13668
reload_flag=$lt_reload_flag
 
13669
reload_cmds=$lt_reload_cmds
 
13670
 
 
13671
# How to pass a linker flag through the compiler.
 
13672
wl=$lt_lt_prog_compiler_wl_CXX
 
13673
 
 
13674
# Object file suffix (normally "o").
 
13675
objext="$ac_objext"
 
13676
 
 
13677
# Old archive suffix (normally "a").
 
13678
libext="$libext"
 
13679
 
 
13680
# Shared library suffix (normally ".so").
 
13681
shrext='$shrext'
 
13682
 
 
13683
# Executable file suffix (normally "").
 
13684
exeext="$exeext"
 
13685
 
 
13686
# Additional compiler flags for building library objects.
 
13687
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13688
pic_mode=$pic_mode
 
13689
 
 
13690
# What is the maximum length of a command?
 
13691
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13692
 
 
13693
# Does compiler simultaneously support -c and -o options?
 
13694
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13695
 
 
13696
# Must we lock files when doing compilation ?
 
13697
need_locks=$lt_need_locks
 
13698
 
 
13699
# Do we need the lib prefix for modules?
 
13700
need_lib_prefix=$need_lib_prefix
 
13701
 
 
13702
# Do we need a version for libraries?
 
13703
need_version=$need_version
 
13704
 
 
13705
# Whether dlopen is supported.
 
13706
dlopen_support=$enable_dlopen
 
13707
 
 
13708
# Whether dlopen of programs is supported.
 
13709
dlopen_self=$enable_dlopen_self
 
13710
 
 
13711
# Whether dlopen of statically linked programs is supported.
 
13712
dlopen_self_static=$enable_dlopen_self_static
 
13713
 
 
13714
# Compiler flag to prevent dynamic linking.
 
13715
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13716
 
 
13717
# Compiler flag to turn off builtin functions.
 
13718
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13719
 
 
13720
# Compiler flag to allow reflexive dlopens.
 
13721
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13722
 
 
13723
# Compiler flag to generate shared objects directly from archives.
 
13724
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13725
 
 
13726
# Compiler flag to generate thread-safe objects.
 
13727
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13728
 
 
13729
# Library versioning type.
 
13730
version_type=$version_type
 
13731
 
 
13732
# Format of library name prefix.
 
13733
libname_spec=$lt_libname_spec
 
13734
 
 
13735
# List of archive names.  First name is the real one, the rest are links.
 
13736
# The last name is the one that the linker finds with -lNAME.
 
13737
library_names_spec=$lt_library_names_spec
 
13738
 
 
13739
# The coded name of the library, if different from the real name.
 
13740
soname_spec=$lt_soname_spec
 
13741
 
 
13742
# Commands used to build and install an old-style archive.
 
13743
RANLIB=$lt_RANLIB
 
13744
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13745
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13746
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13747
 
 
13748
# Create an old-style archive from a shared archive.
 
13749
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13750
 
 
13751
# Create a temporary old-style archive to link instead of a shared archive.
 
13752
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13753
 
 
13754
# Commands used to build and install a shared archive.
 
13755
archive_cmds=$lt_archive_cmds_CXX
 
13756
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13757
postinstall_cmds=$lt_postinstall_cmds
 
13758
postuninstall_cmds=$lt_postuninstall_cmds
 
13759
 
 
13760
# Commands used to build a loadable module (assumed same as above if empty)
 
13761
module_cmds=$lt_module_cmds_CXX
 
13762
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13763
 
 
13764
# Commands to strip libraries.
 
13765
old_striplib=$lt_old_striplib
 
13766
striplib=$lt_striplib
 
13767
 
 
13768
# Dependencies to place before the objects being linked to create a
 
13769
# shared library.
 
13770
predep_objects=$lt_predep_objects_CXX
 
13771
 
 
13772
# Dependencies to place after the objects being linked to create a
 
13773
# shared library.
 
13774
postdep_objects=$lt_postdep_objects_CXX
 
13775
 
 
13776
# Dependencies to place before the objects being linked to create a
 
13777
# shared library.
 
13778
predeps=$lt_predeps_CXX
 
13779
 
 
13780
# Dependencies to place after the objects being linked to create a
 
13781
# shared library.
 
13782
postdeps=$lt_postdeps_CXX
 
13783
 
 
13784
# The library search path used internally by the compiler when linking
 
13785
# a shared library.
 
13786
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13787
 
 
13788
# Method to check whether dependent libraries are shared objects.
 
13789
deplibs_check_method=$lt_deplibs_check_method
 
13790
 
 
13791
# Command to use when deplibs_check_method == file_magic.
 
13792
file_magic_cmd=$lt_file_magic_cmd
 
13793
 
 
13794
# Flag that allows shared libraries with undefined symbols to be built.
 
13795
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13796
 
 
13797
# Flag that forces no undefined symbols.
 
13798
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13799
 
 
13800
# Commands used to finish a libtool library installation in a directory.
 
13801
finish_cmds=$lt_finish_cmds
 
13802
 
 
13803
# Same as above, but a single script fragment to be evaled but not shown.
 
13804
finish_eval=$lt_finish_eval
 
13805
 
 
13806
# Take the output of nm and produce a listing of raw symbols and C names.
 
13807
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13808
 
 
13809
# Transform the output of nm in a proper C declaration
 
13810
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13811
 
 
13812
# Transform the output of nm in a C name address pair
 
13813
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13814
 
 
13815
# This is the shared library runtime path variable.
 
13816
runpath_var=$runpath_var
 
13817
 
 
13818
# This is the shared library path variable.
 
13819
shlibpath_var=$shlibpath_var
 
13820
 
 
13821
# Is shlibpath searched before the hard-coded library search path?
 
13822
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13823
 
 
13824
# How to hardcode a shared library path into an executable.
 
13825
hardcode_action=$hardcode_action_CXX
 
13826
 
 
13827
# Whether we should hardcode library paths into libraries.
 
13828
hardcode_into_libs=$hardcode_into_libs
 
13829
 
 
13830
# Flag to hardcode \$libdir into a binary during linking.
 
13831
# This must work even if \$libdir does not exist.
 
13832
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13833
 
 
13834
# If ld is used when linking, flag to hardcode \$libdir into
 
13835
# a binary during linking. This must work even if \$libdir does
 
13836
# not exist.
 
13837
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13838
 
 
13839
# Whether we need a single -rpath flag with a separated argument.
 
13840
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13841
 
 
13842
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13843
# resulting binary.
 
13844
hardcode_direct=$hardcode_direct_CXX
 
13845
 
 
13846
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13847
# resulting binary.
 
13848
hardcode_minus_L=$hardcode_minus_L_CXX
 
13849
 
 
13850
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13851
# the resulting binary.
 
13852
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13853
 
 
13854
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13855
# and all subsequent libraries and executables linked against it.
 
13856
hardcode_automatic=$hardcode_automatic_CXX
 
13857
 
 
13858
# Variables whose values should be saved in libtool wrapper scripts and
 
13859
# restored at relink time.
 
13860
variables_saved_for_relink="$variables_saved_for_relink"
 
13861
 
 
13862
# Whether libtool must link a program against all its dependency libraries.
 
13863
link_all_deplibs=$link_all_deplibs_CXX
 
13864
 
 
13865
# Compile-time system search path for libraries
 
13866
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13867
 
 
13868
# Run-time system search path for libraries
 
13869
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13870
 
 
13871
# Fix the shell variable \$srcfile for the compiler.
 
13872
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13873
 
 
13874
# Set to yes if exported symbols are required.
 
13875
always_export_symbols=$always_export_symbols_CXX
 
13876
 
 
13877
# The commands to list exported symbols.
 
13878
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13879
 
 
13880
# The commands to extract the exported symbol list from a shared archive.
 
13881
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13882
 
 
13883
# Symbols that should not be listed in the preloaded symbols.
 
13884
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13885
 
 
13886
# Symbols that must always be exported.
 
13887
include_expsyms=$lt_include_expsyms_CXX
 
13888
 
 
13889
# ### END LIBTOOL TAG CONFIG: $tagname
 
13890
 
 
13891
__EOF__
 
13892
 
 
13893
 
 
13894
else
 
13895
  # If there is no Makefile yet, we rely on a make rule to execute
 
13896
  # `config.status --recheck' to rerun these tests and create the
 
13897
  # libtool script then.
 
13898
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13899
  if test -f "$ltmain_in"; then
 
13900
    test -f Makefile && make "$ltmain"
 
13901
  fi
 
13902
fi
 
13903
 
 
13904
 
 
13905
ac_ext=c
 
13906
ac_cpp='$CPP $CPPFLAGS'
 
13907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13910
 
 
13911
CC=$lt_save_CC
 
13912
LDCXX=$LD
 
13913
LD=$lt_save_LD
 
13914
GCC=$lt_save_GCC
 
13915
with_gnu_ldcxx=$with_gnu_ld
 
13916
with_gnu_ld=$lt_save_with_gnu_ld
 
13917
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13918
lt_cv_path_LD=$lt_save_path_LD
 
13919
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13920
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13921
 
 
13922
        else
 
13923
          tagname=""
 
13924
        fi
 
13925
        ;;
 
13926
 
 
13927
      F77)
 
13928
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13929
 
 
13930
ac_ext=f
 
13931
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13932
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13933
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13934
 
 
13935
 
 
13936
archive_cmds_need_lc_F77=no
 
13937
allow_undefined_flag_F77=
 
13938
always_export_symbols_F77=no
 
13939
archive_expsym_cmds_F77=
 
13940
export_dynamic_flag_spec_F77=
 
13941
hardcode_direct_F77=no
 
13942
hardcode_libdir_flag_spec_F77=
 
13943
hardcode_libdir_flag_spec_ld_F77=
 
13944
hardcode_libdir_separator_F77=
 
13945
hardcode_minus_L_F77=no
 
13946
hardcode_automatic_F77=no
 
13947
module_cmds_F77=
 
13948
module_expsym_cmds_F77=
 
13949
link_all_deplibs_F77=unknown
 
13950
old_archive_cmds_F77=$old_archive_cmds
 
13951
no_undefined_flag_F77=
 
13952
whole_archive_flag_spec_F77=
 
13953
enable_shared_with_static_runtimes_F77=no
 
13954
 
 
13955
# Source file extension for f77 test sources.
 
13956
ac_ext=f
 
13957
 
 
13958
# Object file extension for compiled f77 test sources.
 
13959
objext=o
 
13960
objext_F77=$objext
 
13961
 
 
13962
# Code to be used in simple compile tests
 
13963
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13964
 
 
13965
# Code to be used in simple link tests
 
13966
lt_simple_link_test_code="      program t\n      end\n"
 
13967
 
 
13968
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13969
 
 
13970
# If no C compiler was specified, use CC.
 
13971
LTCC=${LTCC-"$CC"}
 
13972
 
 
13973
# Allow CC to be a program name with arguments.
 
13974
compiler=$CC
 
13975
 
 
13976
 
 
13977
# Allow CC to be a program name with arguments.
 
13978
lt_save_CC="$CC"
 
13979
CC=${F77-"f77"}
 
13980
compiler=$CC
 
13981
compiler_F77=$CC
 
13982
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13983
 
 
13984
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13985
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13986
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13987
echo "${ECHO_T}$can_build_shared" >&6
 
13988
 
 
13989
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13990
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13991
test "$can_build_shared" = "no" && enable_shared=no
 
13992
 
 
13993
# On AIX, shared libraries and static libraries use the same namespace, and
 
13994
# are all built from PIC.
 
13995
case "$host_os" in
 
13996
aix3*)
 
13997
  test "$enable_shared" = yes && enable_static=no
 
13998
  if test -n "$RANLIB"; then
 
13999
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14000
    postinstall_cmds='$RANLIB $lib'
 
14001
  fi
 
14002
  ;;
 
14003
aix4*)
 
14004
  test "$enable_shared" = yes && enable_static=no
 
14005
  ;;
 
14006
esac
 
14007
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14008
echo "${ECHO_T}$enable_shared" >&6
 
14009
 
 
14010
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14011
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14012
# Make sure either enable_shared or enable_static is yes.
 
14013
test "$enable_shared" = yes || enable_static=yes
 
14014
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14015
echo "${ECHO_T}$enable_static" >&6
 
14016
 
 
14017
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14018
 
 
14019
GCC_F77="$G77"
 
14020
LD_F77="$LD"
 
14021
 
 
14022
lt_prog_compiler_wl_F77=
 
14023
lt_prog_compiler_pic_F77=
 
14024
lt_prog_compiler_static_F77=
 
14025
 
 
14026
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14027
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14028
 
 
14029
  if test "$GCC" = yes; then
 
14030
    lt_prog_compiler_wl_F77='-Wl,'
 
14031
    lt_prog_compiler_static_F77='-static'
 
14032
 
 
14033
    case $host_os in
 
14034
      aix*)
 
14035
      # All AIX code is PIC.
 
14036
      if test "$host_cpu" = ia64; then
 
14037
        # AIX 5 now supports IA64 processor
 
14038
        lt_prog_compiler_static_F77='-Bstatic'
 
14039
      fi
 
14040
      ;;
 
14041
 
 
14042
    amigaos*)
 
14043
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14044
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14045
      # like `-m68040'.
 
14046
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14047
      ;;
 
14048
 
 
14049
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14050
      # PIC is the default for these OSes.
 
14051
      ;;
 
14052
 
 
14053
    mingw* | pw32* | os2*)
 
14054
      # This hack is so that the source file can tell whether it is being
 
14055
      # built for inclusion in a dll (and should export symbols for example).
 
14056
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14057
      ;;
 
14058
 
 
14059
    darwin* | rhapsody*)
 
14060
      # PIC is the default on this platform
 
14061
      # Common symbols not allowed in MH_DYLIB files
 
14062
      lt_prog_compiler_pic_F77='-fno-common'
 
14063
      ;;
 
14064
 
 
14065
    msdosdjgpp*)
 
14066
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14067
      # on systems that don't support them.
 
14068
      lt_prog_compiler_can_build_shared_F77=no
 
14069
      enable_shared=no
 
14070
      ;;
 
14071
 
 
14072
    sysv4*MP*)
 
14073
      if test -d /usr/nec; then
 
14074
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14075
      fi
 
14076
      ;;
 
14077
 
 
14078
    hpux*)
 
14079
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14080
      # not for PA HP-UX.
 
14081
      case "$host_cpu" in
 
14082
      hppa*64*|ia64*)
 
14083
        # +Z the default
 
14084
        ;;
 
14085
      *)
 
14086
        lt_prog_compiler_pic_F77='-fPIC'
 
14087
        ;;
 
14088
      esac
 
14089
      ;;
 
14090
 
 
14091
    *)
 
14092
      lt_prog_compiler_pic_F77='-fPIC'
 
14093
      ;;
 
14094
    esac
 
14095
  else
 
14096
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14097
    case $host_os in
 
14098
    aix*)
 
14099
      lt_prog_compiler_wl_F77='-Wl,'
 
14100
      if test "$host_cpu" = ia64; then
 
14101
        # AIX 5 now supports IA64 processor
 
14102
        lt_prog_compiler_static_F77='-Bstatic'
 
14103
      else
 
14104
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14105
      fi
 
14106
      ;;
 
14107
 
 
14108
    mingw* | pw32* | os2*)
 
14109
      # This hack is so that the source file can tell whether it is being
 
14110
      # built for inclusion in a dll (and should export symbols for example).
 
14111
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14112
      ;;
 
14113
 
 
14114
    hpux9* | hpux10* | hpux11*)
 
14115
      lt_prog_compiler_wl_F77='-Wl,'
 
14116
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14117
      # not for PA HP-UX.
 
14118
      case "$host_cpu" in
 
14119
      hppa*64*|ia64*)
 
14120
        # +Z the default
 
14121
        ;;
 
14122
      *)
 
14123
        lt_prog_compiler_pic_F77='+Z'
 
14124
        ;;
 
14125
      esac
 
14126
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14127
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14128
      ;;
 
14129
 
 
14130
    irix5* | irix6* | nonstopux*)
 
14131
      lt_prog_compiler_wl_F77='-Wl,'
 
14132
      # PIC (with -KPIC) is the default.
 
14133
      lt_prog_compiler_static_F77='-non_shared'
 
14134
      ;;
 
14135
 
 
14136
    newsos6)
 
14137
      lt_prog_compiler_pic_F77='-KPIC'
 
14138
      lt_prog_compiler_static_F77='-Bstatic'
 
14139
      ;;
 
14140
 
 
14141
    linux*)
 
14142
      case $CC in
 
14143
      icc* | ecc*)
 
14144
        lt_prog_compiler_wl_F77='-Wl,'
 
14145
        lt_prog_compiler_pic_F77='-KPIC'
 
14146
        lt_prog_compiler_static_F77='-static'
 
14147
        ;;
 
14148
      ccc*)
 
14149
        lt_prog_compiler_wl_F77='-Wl,'
 
14150
        # All Alpha code is PIC.
 
14151
        lt_prog_compiler_static_F77='-non_shared'
 
14152
        ;;
 
14153
      esac
 
14154
      ;;
 
14155
 
 
14156
    osf3* | osf4* | osf5*)
 
14157
      lt_prog_compiler_wl_F77='-Wl,'
 
14158
      # All OSF/1 code is PIC.
 
14159
      lt_prog_compiler_static_F77='-non_shared'
 
14160
      ;;
 
14161
 
 
14162
    sco3.2v5*)
 
14163
      lt_prog_compiler_pic_F77='-Kpic'
 
14164
      lt_prog_compiler_static_F77='-dn'
 
14165
      ;;
 
14166
 
 
14167
    solaris*)
 
14168
      lt_prog_compiler_wl_F77='-Wl,'
 
14169
      lt_prog_compiler_pic_F77='-KPIC'
 
14170
      lt_prog_compiler_static_F77='-Bstatic'
 
14171
      ;;
 
14172
 
 
14173
    sunos4*)
 
14174
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14175
      lt_prog_compiler_pic_F77='-PIC'
 
14176
      lt_prog_compiler_static_F77='-Bstatic'
 
14177
      ;;
 
14178
 
 
14179
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14180
      lt_prog_compiler_wl_F77='-Wl,'
 
14181
      lt_prog_compiler_pic_F77='-KPIC'
 
14182
      lt_prog_compiler_static_F77='-Bstatic'
 
14183
      ;;
 
14184
 
 
14185
    sysv4*MP*)
 
14186
      if test -d /usr/nec ;then
 
14187
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14188
        lt_prog_compiler_static_F77='-Bstatic'
 
14189
      fi
 
14190
      ;;
 
14191
 
 
14192
    uts4*)
 
14193
      lt_prog_compiler_pic_F77='-pic'
 
14194
      lt_prog_compiler_static_F77='-Bstatic'
 
14195
      ;;
 
14196
 
 
14197
    *)
 
14198
      lt_prog_compiler_can_build_shared_F77=no
 
14199
      ;;
 
14200
    esac
 
14201
  fi
 
14202
 
 
14203
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14204
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14205
 
 
14206
#
 
14207
# Check to make sure the PIC flag actually works.
 
14208
#
 
14209
if test -n "$lt_prog_compiler_pic_F77"; then
 
14210
 
 
14211
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14212
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14213
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14215
else
 
14216
  lt_prog_compiler_pic_works_F77=no
 
14217
  ac_outfile=conftest.$ac_objext
 
14218
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14219
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14220
   # Insert the option either (1) after the last *FLAGS variable, or
 
14221
   # (2) before a word containing "conftest.", or (3) at the end.
 
14222
   # Note that $ac_compile itself does not contain backslashes and begins
 
14223
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14224
   # The option is referenced via a variable to avoid confusing sed.
 
14225
   lt_compile=`echo "$ac_compile" | $SED \
 
14226
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14227
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14228
   -e 's:$: $lt_compiler_flag:'`
 
14229
   (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
 
14230
   (eval "$lt_compile" 2>conftest.err)
 
14231
   ac_status=$?
 
14232
   cat conftest.err >&5
 
14233
   echo "$as_me:14233: \$? = $ac_status" >&5
 
14234
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14235
     # The compiler can only warn and ignore the option if not recognized
 
14236
     # So say no if there are warnings
 
14237
     if test ! -s conftest.err; then
 
14238
       lt_prog_compiler_pic_works_F77=yes
 
14239
     fi
 
14240
   fi
 
14241
   $rm conftest*
 
14242
 
 
14243
fi
 
14244
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14245
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14246
 
 
14247
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14248
    case $lt_prog_compiler_pic_F77 in
 
14249
     "" | " "*) ;;
 
14250
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14251
     esac
 
14252
else
 
14253
    lt_prog_compiler_pic_F77=
 
14254
     lt_prog_compiler_can_build_shared_F77=no
 
14255
fi
 
14256
 
 
14257
fi
 
14258
case "$host_os" in
 
14259
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14260
  *djgpp*)
 
14261
    lt_prog_compiler_pic_F77=
 
14262
    ;;
 
14263
  *)
 
14264
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14265
    ;;
 
14266
esac
 
14267
 
 
14268
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14269
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14270
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14272
else
 
14273
  lt_cv_prog_compiler_c_o_F77=no
 
14274
   $rm -r conftest 2>/dev/null
 
14275
   mkdir conftest
 
14276
   cd conftest
 
14277
   mkdir out
 
14278
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14279
 
 
14280
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14281
   # Insert the option either (1) after the last *FLAGS variable, or
 
14282
   # (2) before a word containing "conftest.", or (3) at the end.
 
14283
   # Note that $ac_compile itself does not contain backslashes and begins
 
14284
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14285
   lt_compile=`echo "$ac_compile" | $SED \
 
14286
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14287
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14288
   -e 's:$: $lt_compiler_flag:'`
 
14289
   (eval echo "\"\$as_me:14289: $lt_compile\"" >&5)
 
14290
   (eval "$lt_compile" 2>out/conftest.err)
 
14291
   ac_status=$?
 
14292
   cat out/conftest.err >&5
 
14293
   echo "$as_me:14293: \$? = $ac_status" >&5
 
14294
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14295
   then
 
14296
     # The compiler can only warn and ignore the option if not recognized
 
14297
     # So say no if there are warnings
 
14298
     if test ! -s out/conftest.err; then
 
14299
       lt_cv_prog_compiler_c_o_F77=yes
 
14300
     fi
 
14301
   fi
 
14302
   chmod u+w .
 
14303
   $rm conftest*
 
14304
   # SGI C++ compiler will create directory out/ii_files/ for
 
14305
   # template instantiation
 
14306
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14307
   $rm out/* && rmdir out
 
14308
   cd ..
 
14309
   rmdir conftest
 
14310
   $rm conftest*
 
14311
 
 
14312
fi
 
14313
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14314
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14315
 
 
14316
 
 
14317
hard_links="nottested"
 
14318
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14319
  # do not overwrite the value of need_locks provided by the user
 
14320
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14321
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14322
  hard_links=yes
 
14323
  $rm conftest*
 
14324
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14325
  touch conftest.a
 
14326
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14327
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14328
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14329
echo "${ECHO_T}$hard_links" >&6
 
14330
  if test "$hard_links" = no; then
 
14331
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14332
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14333
    need_locks=warn
 
14334
  fi
 
14335
else
 
14336
  need_locks=no
 
14337
fi
 
14338
 
 
14339
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14340
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14341
 
 
14342
  runpath_var=
 
14343
  allow_undefined_flag_F77=
 
14344
  enable_shared_with_static_runtimes_F77=no
 
14345
  archive_cmds_F77=
 
14346
  archive_expsym_cmds_F77=
 
14347
  old_archive_From_new_cmds_F77=
 
14348
  old_archive_from_expsyms_cmds_F77=
 
14349
  export_dynamic_flag_spec_F77=
 
14350
  whole_archive_flag_spec_F77=
 
14351
  thread_safe_flag_spec_F77=
 
14352
  hardcode_libdir_flag_spec_F77=
 
14353
  hardcode_libdir_flag_spec_ld_F77=
 
14354
  hardcode_libdir_separator_F77=
 
14355
  hardcode_direct_F77=no
 
14356
  hardcode_minus_L_F77=no
 
14357
  hardcode_shlibpath_var_F77=unsupported
 
14358
  link_all_deplibs_F77=unknown
 
14359
  hardcode_automatic_F77=no
 
14360
  module_cmds_F77=
 
14361
  module_expsym_cmds_F77=
 
14362
  always_export_symbols_F77=no
 
14363
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14364
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14365
  # included in the symbol list
 
14366
  include_expsyms_F77=
 
14367
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14368
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14369
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14370
  # as well as any symbol that contains `d'.
 
14371
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14372
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14373
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14374
  # the symbol is explicitly referenced.  Since portable code cannot
 
14375
  # rely on this symbol name, it's probably fine to never include it in
 
14376
  # preloaded symbol tables.
 
14377
  extract_expsyms_cmds=
 
14378
 
 
14379
  case $host_os in
 
14380
  cygwin* | mingw* | pw32*)
 
14381
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14382
    # When not using gcc, we currently assume that we are using
 
14383
    # Microsoft Visual C++.
 
14384
    if test "$GCC" != yes; then
 
14385
      with_gnu_ld=no
 
14386
    fi
 
14387
    ;;
 
14388
  openbsd*)
 
14389
    with_gnu_ld=no
 
14390
    ;;
 
14391
  esac
 
14392
 
 
14393
  ld_shlibs_F77=yes
 
14394
  if test "$with_gnu_ld" = yes; then
 
14395
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14396
    wlarc='${wl}'
 
14397
 
 
14398
    # See if GNU ld supports shared libraries.
 
14399
    case $host_os in
 
14400
    aix3* | aix4* | aix5*)
 
14401
      # On AIX/PPC, the GNU linker is very broken
 
14402
      if test "$host_cpu" != ia64; then
 
14403
        ld_shlibs_F77=no
 
14404
        cat <<EOF 1>&2
 
14405
 
 
14406
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14407
*** to be unable to reliably create shared libraries on AIX.
 
14408
*** Therefore, libtool is disabling shared libraries support.  If you
 
14409
*** really care for shared libraries, you may want to modify your PATH
 
14410
*** so that a non-GNU linker is found, and then restart.
 
14411
 
 
14412
EOF
 
14413
      fi
 
14414
      ;;
 
14415
 
 
14416
    amigaos*)
 
14417
      archive_cmds_F77='$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)'
 
14418
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14419
      hardcode_minus_L_F77=yes
 
14420
 
 
14421
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14422
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14423
      # to version 4, is to share data among multiple programs linked
 
14424
      # with the same dynamic library.  Since this doesn't match the
 
14425
      # behavior of shared libraries on other platforms, we can't use
 
14426
      # them.
 
14427
      ld_shlibs_F77=no
 
14428
      ;;
 
14429
 
 
14430
    beos*)
 
14431
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14432
        allow_undefined_flag_F77=unsupported
 
14433
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14434
        # support --undefined.  This deserves some investigation.  FIXME
 
14435
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14436
      else
 
14437
        ld_shlibs_F77=no
 
14438
      fi
 
14439
      ;;
 
14440
 
 
14441
    cygwin* | mingw* | pw32*)
 
14442
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14443
      # as there is no search path for DLLs.
 
14444
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14445
      allow_undefined_flag_F77=unsupported
 
14446
      always_export_symbols_F77=no
 
14447
      enable_shared_with_static_runtimes_F77=yes
 
14448
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14449
 
 
14450
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14451
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14452
        # If the export-symbols file already is a .def file (1st line
 
14453
        # is EXPORTS), use it as is; otherwise, prepend...
 
14454
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14455
          cp $export_symbols $output_objdir/$soname.def;
 
14456
        else
 
14457
          echo EXPORTS > $output_objdir/$soname.def;
 
14458
          cat $export_symbols >> $output_objdir/$soname.def;
 
14459
        fi~
 
14460
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14461
      else
 
14462
        ld_shlibs=no
 
14463
      fi
 
14464
      ;;
 
14465
 
 
14466
    netbsd* | knetbsd*-gnu)
 
14467
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14468
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14469
        wlarc=
 
14470
      else
 
14471
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14472
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14473
      fi
 
14474
      ;;
 
14475
 
 
14476
    solaris* | sysv5*)
 
14477
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14478
        ld_shlibs_F77=no
 
14479
        cat <<EOF 1>&2
 
14480
 
 
14481
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14482
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14483
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14484
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14485
*** your PATH or compiler configuration so that the native linker is
 
14486
*** used, and then restart.
 
14487
 
 
14488
EOF
 
14489
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14490
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14491
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14492
      else
 
14493
        ld_shlibs_F77=no
 
14494
      fi
 
14495
      ;;
 
14496
 
 
14497
    sunos4*)
 
14498
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14499
      wlarc=
 
14500
      hardcode_direct_F77=yes
 
14501
      hardcode_shlibpath_var_F77=no
 
14502
      ;;
 
14503
 
 
14504
  linux*)
 
14505
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
14506
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14507
        archive_cmds_F77="$tmp_archive_cmds"
 
14508
      supports_anon_versioning=no
 
14509
      case `$LD -v 2>/dev/null` in
 
14510
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14511
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14512
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14513
        *\ 2.11.*) ;; # other 2.11 versions
 
14514
        *) supports_anon_versioning=yes ;;
 
14515
      esac
 
14516
      if test $supports_anon_versioning = yes; then
 
14517
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14518
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14519
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14520
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14521
      else
 
14522
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14523
      fi
 
14524
    else
 
14525
      ld_shlibs_F77=no
 
14526
    fi
 
14527
    ;;
 
14528
 
 
14529
    *)
 
14530
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14531
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14532
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14533
      else
 
14534
        ld_shlibs_F77=no
 
14535
      fi
 
14536
      ;;
 
14537
    esac
 
14538
 
 
14539
    if test "$ld_shlibs_F77" = yes; then
 
14540
      runpath_var=LD_RUN_PATH
 
14541
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14542
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14543
      # ancient GNU ld didn't support --whole-archive et. al.
 
14544
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14545
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14546
      else
 
14547
        whole_archive_flag_spec_F77=
 
14548
      fi
 
14549
    fi
 
14550
  else
 
14551
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14552
    case $host_os in
 
14553
    aix3*)
 
14554
      allow_undefined_flag_F77=unsupported
 
14555
      always_export_symbols_F77=yes
 
14556
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14557
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14558
      # are no directories specified by -L.
 
14559
      hardcode_minus_L_F77=yes
 
14560
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14561
        # Neither direct hardcoding nor static linking is supported with a
 
14562
        # broken collect2.
 
14563
        hardcode_direct_F77=unsupported
 
14564
      fi
 
14565
      ;;
 
14566
 
 
14567
    aix4* | aix5*)
 
14568
      if test "$host_cpu" = ia64; then
 
14569
        # On IA64, the linker does run time linking by default, so we don't
 
14570
        # have to do anything special.
 
14571
        aix_use_runtimelinking=no
 
14572
        exp_sym_flag='-Bexport'
 
14573
        no_entry_flag=""
 
14574
      else
 
14575
        # If we're using GNU nm, then we don't want the "-C" option.
 
14576
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14577
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14578
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14579
        else
 
14580
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14581
        fi
 
14582
        aix_use_runtimelinking=no
 
14583
 
 
14584
        # Test if we are trying to use run time linking or normal
 
14585
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14586
        # need to do runtime linking.
 
14587
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14588
          for ld_flag in $LDFLAGS; do
 
14589
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14590
            aix_use_runtimelinking=yes
 
14591
            break
 
14592
          fi
 
14593
          done
 
14594
        esac
 
14595
 
 
14596
        exp_sym_flag='-bexport'
 
14597
        no_entry_flag='-bnoentry'
 
14598
      fi
 
14599
 
 
14600
      # When large executables or shared objects are built, AIX ld can
 
14601
      # have problems creating the table of contents.  If linking a library
 
14602
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14603
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14604
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14605
 
 
14606
      archive_cmds_F77=''
 
14607
      hardcode_direct_F77=yes
 
14608
      hardcode_libdir_separator_F77=':'
 
14609
      link_all_deplibs_F77=yes
 
14610
 
 
14611
      if test "$GCC" = yes; then
 
14612
        case $host_os in aix4.012|aix4.012.*)
 
14613
        # We only want to do this on AIX 4.2 and lower, the check
 
14614
        # below for broken collect2 doesn't work under 4.3+
 
14615
          collect2name=`${CC} -print-prog-name=collect2`
 
14616
          if test -f "$collect2name" && \
 
14617
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14618
          then
 
14619
          # We have reworked collect2
 
14620
          hardcode_direct_F77=yes
 
14621
          else
 
14622
          # We have old collect2
 
14623
          hardcode_direct_F77=unsupported
 
14624
          # It fails to find uninstalled libraries when the uninstalled
 
14625
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14626
          # to unsupported forces relinking
 
14627
          hardcode_minus_L_F77=yes
 
14628
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14629
          hardcode_libdir_separator_F77=
 
14630
          fi
 
14631
        esac
 
14632
        shared_flag='-shared'
 
14633
      else
 
14634
        # not using gcc
 
14635
        if test "$host_cpu" = ia64; then
 
14636
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14637
        # chokes on -Wl,-G. The following line is correct:
 
14638
          shared_flag='-G'
 
14639
        else
 
14640
        if test "$aix_use_runtimelinking" = yes; then
 
14641
            shared_flag='${wl}-G'
 
14642
          else
 
14643
            shared_flag='${wl}-bM:SRE'
 
14644
        fi
 
14645
        fi
 
14646
      fi
 
14647
 
 
14648
      # It seems that -bexpall does not export symbols beginning with
 
14649
      # underscore (_), so it is better to generate a list of symbols to export.
 
14650
      always_export_symbols_F77=yes
 
14651
      if test "$aix_use_runtimelinking" = yes; then
 
14652
        # Warning - without using the other runtime loading flags (-brtl),
 
14653
        # -berok will link without error, but may produce a broken library.
 
14654
        allow_undefined_flag_F77='-berok'
 
14655
       # Determine the default libpath from the value encoded in an empty executable.
 
14656
       cat >conftest.$ac_ext <<_ACEOF
 
14657
      program main
 
14658
 
 
14659
      end
 
14660
_ACEOF
 
14661
rm -f conftest.$ac_objext conftest$ac_exeext
 
14662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14663
  (eval $ac_link) 2>conftest.er1
 
14664
  ac_status=$?
 
14665
  grep -v '^ *+' conftest.er1 >conftest.err
 
14666
  rm -f conftest.er1
 
14667
  cat conftest.err >&5
 
14668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14669
  (exit $ac_status); } &&
 
14670
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14672
  (eval $ac_try) 2>&5
 
14673
  ac_status=$?
 
14674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14675
  (exit $ac_status); }; } &&
 
14676
         { ac_try='test -s conftest$ac_exeext'
 
14677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14678
  (eval $ac_try) 2>&5
 
14679
  ac_status=$?
 
14680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14681
  (exit $ac_status); }; }; then
 
14682
 
 
14683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14684
}'`
 
14685
# Check for a 64-bit object if we didn't find anything.
 
14686
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14687
}'`; fi
 
14688
else
 
14689
  echo "$as_me: failed program was:" >&5
 
14690
sed 's/^/| /' conftest.$ac_ext >&5
 
14691
 
 
14692
fi
 
14693
rm -f conftest.err conftest.$ac_objext \
 
14694
      conftest$ac_exeext conftest.$ac_ext
 
14695
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14696
 
 
14697
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14698
        archive_expsym_cmds_F77="\$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"
 
14699
       else
 
14700
        if test "$host_cpu" = ia64; then
 
14701
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14702
          allow_undefined_flag_F77="-z nodefs"
 
14703
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14704
        else
 
14705
         # Determine the default libpath from the value encoded in an empty executable.
 
14706
         cat >conftest.$ac_ext <<_ACEOF
 
14707
      program main
 
14708
 
 
14709
      end
 
14710
_ACEOF
 
14711
rm -f conftest.$ac_objext conftest$ac_exeext
 
14712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14713
  (eval $ac_link) 2>conftest.er1
 
14714
  ac_status=$?
 
14715
  grep -v '^ *+' conftest.er1 >conftest.err
 
14716
  rm -f conftest.er1
 
14717
  cat conftest.err >&5
 
14718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14719
  (exit $ac_status); } &&
 
14720
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14722
  (eval $ac_try) 2>&5
 
14723
  ac_status=$?
 
14724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14725
  (exit $ac_status); }; } &&
 
14726
         { ac_try='test -s conftest$ac_exeext'
 
14727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14728
  (eval $ac_try) 2>&5
 
14729
  ac_status=$?
 
14730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14731
  (exit $ac_status); }; }; then
 
14732
 
 
14733
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14734
}'`
 
14735
# Check for a 64-bit object if we didn't find anything.
 
14736
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14737
}'`; fi
 
14738
else
 
14739
  echo "$as_me: failed program was:" >&5
 
14740
sed 's/^/| /' conftest.$ac_ext >&5
 
14741
 
 
14742
fi
 
14743
rm -f conftest.err conftest.$ac_objext \
 
14744
      conftest$ac_exeext conftest.$ac_ext
 
14745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14746
 
 
14747
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14748
          # Warning - without using the other run time loading flags,
 
14749
          # -berok will link without error, but may produce a broken library.
 
14750
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14751
          allow_undefined_flag_F77=' ${wl}-berok'
 
14752
          # -bexpall does not export symbols beginning with underscore (_)
 
14753
          always_export_symbols_F77=yes
 
14754
          # Exported symbols can be pulled into shared objects from archives
 
14755
          whole_archive_flag_spec_F77=' '
 
14756
          archive_cmds_need_lc_F77=yes
 
14757
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14758
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14759
        fi
 
14760
      fi
 
14761
      ;;
 
14762
 
 
14763
    amigaos*)
 
14764
      archive_cmds_F77='$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)'
 
14765
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14766
      hardcode_minus_L_F77=yes
 
14767
      # see comment about different semantics on the GNU ld section
 
14768
      ld_shlibs_F77=no
 
14769
      ;;
 
14770
 
 
14771
    bsdi4*)
 
14772
      export_dynamic_flag_spec_F77=-rdynamic
 
14773
      ;;
 
14774
 
 
14775
    cygwin* | mingw* | pw32*)
 
14776
      # When not using gcc, we currently assume that we are using
 
14777
      # Microsoft Visual C++.
 
14778
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14779
      # no search path for DLLs.
 
14780
      hardcode_libdir_flag_spec_F77=' '
 
14781
      allow_undefined_flag_F77=unsupported
 
14782
      # Tell ltmain to make .lib files, not .a files.
 
14783
      libext=lib
 
14784
      # Tell ltmain to make .dll files, not .so files.
 
14785
      shrext=".dll"
 
14786
      # FIXME: Setting linknames here is a bad hack.
 
14787
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14788
      # The linker will automatically build a .lib file if we build a DLL.
 
14789
      old_archive_From_new_cmds_F77='true'
 
14790
      # FIXME: Should let the user specify the lib program.
 
14791
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14792
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14793
      enable_shared_with_static_runtimes_F77=yes
 
14794
      ;;
 
14795
 
 
14796
    darwin* | rhapsody*)
 
14797
    if test "$GXX" = yes ; then
 
14798
      archive_cmds_need_lc_F77=no
 
14799
      case "$host_os" in
 
14800
      rhapsody* | darwin1.[012])
 
14801
        allow_undefined_flag_F77='-undefined suppress'
 
14802
        ;;
 
14803
      *) # Darwin 1.3 on
 
14804
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14805
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14806
      else
 
14807
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14808
          10.[012])
 
14809
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14810
            ;;
 
14811
          10.*)
 
14812
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14813
            ;;
 
14814
        esac
 
14815
      fi
 
14816
        ;;
 
14817
      esac
 
14818
        lt_int_apple_cc_single_mod=no
 
14819
        output_verbose_link_cmd='echo'
 
14820
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14821
          lt_int_apple_cc_single_mod=yes
 
14822
        fi
 
14823
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14824
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14825
        else
 
14826
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14827
      fi
 
14828
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14829
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14830
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14831
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14832
        else
 
14833
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14834
        fi
 
14835
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14836
      hardcode_direct_F77=no
 
14837
      hardcode_automatic_F77=yes
 
14838
      hardcode_shlibpath_var_F77=unsupported
 
14839
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14840
      link_all_deplibs_F77=yes
 
14841
    else
 
14842
      ld_shlibs_F77=no
 
14843
    fi
 
14844
      ;;
 
14845
 
 
14846
    dgux*)
 
14847
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14848
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14849
      hardcode_shlibpath_var_F77=no
 
14850
      ;;
 
14851
 
 
14852
    freebsd1*)
 
14853
      ld_shlibs_F77=no
 
14854
      ;;
 
14855
 
 
14856
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14857
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14858
    # does not break anything, and helps significantly (at the cost of a little
 
14859
    # extra space).
 
14860
    freebsd2.2*)
 
14861
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14862
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14863
      hardcode_direct_F77=yes
 
14864
      hardcode_shlibpath_var_F77=no
 
14865
      ;;
 
14866
 
 
14867
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14868
    freebsd2*)
 
14869
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14870
      hardcode_direct_F77=yes
 
14871
      hardcode_minus_L_F77=yes
 
14872
      hardcode_shlibpath_var_F77=no
 
14873
      ;;
 
14874
 
 
14875
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14876
    freebsd* | kfreebsd*-gnu)
 
14877
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14878
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14879
      hardcode_direct_F77=yes
 
14880
      hardcode_shlibpath_var_F77=no
 
14881
      ;;
 
14882
 
 
14883
    hpux9*)
 
14884
      if test "$GCC" = yes; then
 
14885
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14886
      else
 
14887
        archive_cmds_F77='$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'
 
14888
      fi
 
14889
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14890
      hardcode_libdir_separator_F77=:
 
14891
      hardcode_direct_F77=yes
 
14892
 
 
14893
      # hardcode_minus_L: Not really in the search PATH,
 
14894
      # but as the default location of the library.
 
14895
      hardcode_minus_L_F77=yes
 
14896
      export_dynamic_flag_spec_F77='${wl}-E'
 
14897
      ;;
 
14898
 
 
14899
    hpux10* | hpux11*)
 
14900
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14901
        case "$host_cpu" in
 
14902
        hppa*64*|ia64*)
 
14903
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14904
          ;;
 
14905
        *)
 
14906
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14907
          ;;
 
14908
        esac
 
14909
      else
 
14910
        case "$host_cpu" in
 
14911
        hppa*64*|ia64*)
 
14912
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14913
          ;;
 
14914
        *)
 
14915
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14916
          ;;
 
14917
        esac
 
14918
      fi
 
14919
      if test "$with_gnu_ld" = no; then
 
14920
        case "$host_cpu" in
 
14921
        hppa*64*)
 
14922
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14923
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14924
          hardcode_libdir_separator_F77=:
 
14925
          hardcode_direct_F77=no
 
14926
          hardcode_shlibpath_var_F77=no
 
14927
          ;;
 
14928
        ia64*)
 
14929
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14930
          hardcode_direct_F77=no
 
14931
          hardcode_shlibpath_var_F77=no
 
14932
 
 
14933
          # hardcode_minus_L: Not really in the search PATH,
 
14934
          # but as the default location of the library.
 
14935
          hardcode_minus_L_F77=yes
 
14936
          ;;
 
14937
        *)
 
14938
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14939
          hardcode_libdir_separator_F77=:
 
14940
          hardcode_direct_F77=yes
 
14941
          export_dynamic_flag_spec_F77='${wl}-E'
 
14942
 
 
14943
          # hardcode_minus_L: Not really in the search PATH,
 
14944
          # but as the default location of the library.
 
14945
          hardcode_minus_L_F77=yes
 
14946
          ;;
 
14947
        esac
 
14948
      fi
 
14949
      ;;
 
14950
 
 
14951
    irix5* | irix6* | nonstopux*)
 
14952
      if test "$GCC" = yes; then
 
14953
        archive_cmds_F77='$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'
 
14954
      else
 
14955
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14956
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14957
      fi
 
14958
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14959
      hardcode_libdir_separator_F77=:
 
14960
      link_all_deplibs_F77=yes
 
14961
      ;;
 
14962
 
 
14963
    netbsd* | knetbsd*-gnu)
 
14964
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14965
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14966
      else
 
14967
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14968
      fi
 
14969
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14970
      hardcode_direct_F77=yes
 
14971
      hardcode_shlibpath_var_F77=no
 
14972
      ;;
 
14973
 
 
14974
    newsos6)
 
14975
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14976
      hardcode_direct_F77=yes
 
14977
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14978
      hardcode_libdir_separator_F77=:
 
14979
      hardcode_shlibpath_var_F77=no
 
14980
      ;;
 
14981
 
 
14982
    openbsd*)
 
14983
      hardcode_direct_F77=yes
 
14984
      hardcode_shlibpath_var_F77=no
 
14985
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14986
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14987
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14988
        export_dynamic_flag_spec_F77='${wl}-E'
 
14989
      else
 
14990
       case $host_os in
 
14991
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14992
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14993
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14994
           ;;
 
14995
         *)
 
14996
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14997
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14998
           ;;
 
14999
       esac
 
15000
      fi
 
15001
      ;;
 
15002
 
 
15003
    os2*)
 
15004
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15005
      hardcode_minus_L_F77=yes
 
15006
      allow_undefined_flag_F77=unsupported
 
15007
      archive_cmds_F77='$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'
 
15008
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15009
      ;;
 
15010
 
 
15011
    osf3*)
 
15012
      if test "$GCC" = yes; then
 
15013
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15014
        archive_cmds_F77='$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'
 
15015
      else
 
15016
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15017
        archive_cmds_F77='$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'
 
15018
      fi
 
15019
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15020
      hardcode_libdir_separator_F77=:
 
15021
      ;;
 
15022
 
 
15023
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15024
      if test "$GCC" = yes; then
 
15025
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15026
        archive_cmds_F77='$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'
 
15027
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15028
      else
 
15029
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15030
        archive_cmds_F77='$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'
 
15031
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15032
        $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'
 
15033
 
 
15034
        # Both c and cxx compiler support -rpath directly
 
15035
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15036
      fi
 
15037
      hardcode_libdir_separator_F77=:
 
15038
      ;;
 
15039
 
 
15040
    sco3.2v5*)
 
15041
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15042
      hardcode_shlibpath_var_F77=no
 
15043
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15044
      runpath_var=LD_RUN_PATH
 
15045
      hardcode_runpath_var=yes
 
15046
      ;;
 
15047
 
 
15048
    solaris*)
 
15049
      no_undefined_flag_F77=' -z text'
 
15050
      if test "$GCC" = yes; then
 
15051
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15052
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15053
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15054
      else
 
15055
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15056
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15057
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15058
      fi
 
15059
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15060
      hardcode_shlibpath_var_F77=no
 
15061
      case $host_os in
 
15062
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15063
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15064
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15065
      esac
 
15066
      link_all_deplibs_F77=yes
 
15067
      ;;
 
15068
 
 
15069
    sunos4*)
 
15070
      if test "x$host_vendor" = xsequent; then
 
15071
        # Use $CC to link under sequent, because it throws in some extra .o
 
15072
        # files that make .init and .fini sections work.
 
15073
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15074
      else
 
15075
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15076
      fi
 
15077
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15078
      hardcode_direct_F77=yes
 
15079
      hardcode_minus_L_F77=yes
 
15080
      hardcode_shlibpath_var_F77=no
 
15081
      ;;
 
15082
 
 
15083
    sysv4)
 
15084
      case $host_vendor in
 
15085
        sni)
 
15086
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15087
          hardcode_direct_F77=yes # is this really true???
 
15088
        ;;
 
15089
        siemens)
 
15090
          ## LD is ld it makes a PLAMLIB
 
15091
          ## CC just makes a GrossModule.
 
15092
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15093
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15094
          hardcode_direct_F77=no
 
15095
        ;;
 
15096
        motorola)
 
15097
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15098
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15099
        ;;
 
15100
      esac
 
15101
      runpath_var='LD_RUN_PATH'
 
15102
      hardcode_shlibpath_var_F77=no
 
15103
      ;;
 
15104
 
 
15105
    sysv4.3*)
 
15106
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15107
      hardcode_shlibpath_var_F77=no
 
15108
      export_dynamic_flag_spec_F77='-Bexport'
 
15109
      ;;
 
15110
 
 
15111
    sysv4*MP*)
 
15112
      if test -d /usr/nec; then
 
15113
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15114
        hardcode_shlibpath_var_F77=no
 
15115
        runpath_var=LD_RUN_PATH
 
15116
        hardcode_runpath_var=yes
 
15117
        ld_shlibs_F77=yes
 
15118
      fi
 
15119
      ;;
 
15120
 
 
15121
    sysv4.2uw2*)
 
15122
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15123
      hardcode_direct_F77=yes
 
15124
      hardcode_minus_L_F77=no
 
15125
      hardcode_shlibpath_var_F77=no
 
15126
      hardcode_runpath_var=yes
 
15127
      runpath_var=LD_RUN_PATH
 
15128
      ;;
 
15129
 
 
15130
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15131
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15132
      if test "$GCC" = yes; then
 
15133
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15134
      else
 
15135
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15136
      fi
 
15137
      runpath_var='LD_RUN_PATH'
 
15138
      hardcode_shlibpath_var_F77=no
 
15139
      ;;
 
15140
 
 
15141
    sysv5*)
 
15142
      no_undefined_flag_F77=' -z text'
 
15143
      # $CC -shared without GNU ld will not create a library from C++
 
15144
      # object files and a static libstdc++, better avoid it by now
 
15145
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15146
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15147
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15148
      hardcode_libdir_flag_spec_F77=
 
15149
      hardcode_shlibpath_var_F77=no
 
15150
      runpath_var='LD_RUN_PATH'
 
15151
      ;;
 
15152
 
 
15153
    uts4*)
 
15154
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15155
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15156
      hardcode_shlibpath_var_F77=no
 
15157
      ;;
 
15158
 
 
15159
    *)
 
15160
      ld_shlibs_F77=no
 
15161
      ;;
 
15162
    esac
 
15163
  fi
 
15164
 
 
15165
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15166
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15167
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15168
 
 
15169
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15170
if test "$GCC" = yes; then
 
15171
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15172
fi
 
15173
 
 
15174
#
 
15175
# Do we need to explicitly link libc?
 
15176
#
 
15177
case "x$archive_cmds_need_lc_F77" in
 
15178
x|xyes)
 
15179
  # Assume -lc should be added
 
15180
  archive_cmds_need_lc_F77=yes
 
15181
 
 
15182
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15183
    case $archive_cmds_F77 in
 
15184
    *'~'*)
 
15185
      # FIXME: we may have to deal with multi-command sequences.
 
15186
      ;;
 
15187
    '$CC '*)
 
15188
      # Test whether the compiler implicitly links with -lc since on some
 
15189
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15190
      # to ld, don't add -lc before -lgcc.
 
15191
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15192
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15193
      $rm conftest*
 
15194
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15195
 
 
15196
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15197
  (eval $ac_compile) 2>&5
 
15198
  ac_status=$?
 
15199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15200
  (exit $ac_status); } 2>conftest.err; then
 
15201
        soname=conftest
 
15202
        lib=conftest
 
15203
        libobjs=conftest.$ac_objext
 
15204
        deplibs=
 
15205
        wl=$lt_prog_compiler_wl_F77
 
15206
        compiler_flags=-v
 
15207
        linker_flags=-v
 
15208
        verstring=
 
15209
        output_objdir=.
 
15210
        libname=conftest
 
15211
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15212
        allow_undefined_flag_F77=
 
15213
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15214
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15215
  ac_status=$?
 
15216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15217
  (exit $ac_status); }
 
15218
        then
 
15219
          archive_cmds_need_lc_F77=no
 
15220
        else
 
15221
          archive_cmds_need_lc_F77=yes
 
15222
        fi
 
15223
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15224
      else
 
15225
        cat conftest.err 1>&5
 
15226
      fi
 
15227
      $rm conftest*
 
15228
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15229
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15230
      ;;
 
15231
    esac
 
15232
  fi
 
15233
  ;;
 
15234
esac
 
15235
 
 
15236
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15237
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15238
library_names_spec=
 
15239
libname_spec='lib$name'
 
15240
soname_spec=
 
15241
shrext=".so"
 
15242
postinstall_cmds=
 
15243
postuninstall_cmds=
 
15244
finish_cmds=
 
15245
finish_eval=
 
15246
shlibpath_var=
 
15247
shlibpath_overrides_runpath=unknown
 
15248
version_type=none
 
15249
dynamic_linker="$host_os ld.so"
 
15250
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15251
if test "$GCC" = yes; then
 
15252
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15253
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15254
    # if the path contains ";" then we assume it to be the separator
 
15255
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15256
    # assumed that no part of a normal pathname contains ";" but that should
 
15257
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15258
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15259
  else
 
15260
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15261
  fi
 
15262
else
 
15263
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15264
fi
 
15265
need_lib_prefix=unknown
 
15266
hardcode_into_libs=no
 
15267
 
 
15268
# when you set need_version to no, make sure it does not cause -set_version
 
15269
# flags to be left without arguments
 
15270
need_version=unknown
 
15271
 
 
15272
case $host_os in
 
15273
aix3*)
 
15274
  version_type=linux
 
15275
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15276
  shlibpath_var=LIBPATH
 
15277
 
 
15278
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15279
  soname_spec='${libname}${release}${shared_ext}$major'
 
15280
  ;;
 
15281
 
 
15282
aix4* | aix5*)
 
15283
  version_type=linux
 
15284
  need_lib_prefix=no
 
15285
  need_version=no
 
15286
  hardcode_into_libs=yes
 
15287
  if test "$host_cpu" = ia64; then
 
15288
    # AIX 5 supports IA64
 
15289
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15290
    shlibpath_var=LD_LIBRARY_PATH
 
15291
  else
 
15292
    # With GCC up to 2.95.x, collect2 would create an import file
 
15293
    # for dependence libraries.  The import file would start with
 
15294
    # the line `#! .'.  This would cause the generated library to
 
15295
    # depend on `.', always an invalid library.  This was fixed in
 
15296
    # development snapshots of GCC prior to 3.0.
 
15297
    case $host_os in
 
15298
      aix4 | aix4.[01] | aix4.[01].*)
 
15299
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15300
           echo ' yes '
 
15301
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15302
        :
 
15303
      else
 
15304
        can_build_shared=no
 
15305
      fi
 
15306
      ;;
 
15307
    esac
 
15308
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15309
    # soname into executable. Probably we can add versioning support to
 
15310
    # collect2, so additional links can be useful in future.
 
15311
    if test "$aix_use_runtimelinking" = yes; then
 
15312
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15313
      # instead of lib<name>.a to let people know that these are not
 
15314
      # typical AIX shared libraries.
 
15315
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15316
    else
 
15317
      # We preserve .a as extension for shared libraries through AIX4.2
 
15318
      # and later when we are not doing run time linking.
 
15319
      library_names_spec='${libname}${release}.a $libname.a'
 
15320
      soname_spec='${libname}${release}${shared_ext}$major'
 
15321
    fi
 
15322
    shlibpath_var=LIBPATH
 
15323
  fi
 
15324
  ;;
 
15325
 
 
15326
amigaos*)
 
15327
  library_names_spec='$libname.ixlibrary $libname.a'
 
15328
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15329
  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'
 
15330
  ;;
 
15331
 
 
15332
beos*)
 
15333
  library_names_spec='${libname}${shared_ext}'
 
15334
  dynamic_linker="$host_os ld.so"
 
15335
  shlibpath_var=LIBRARY_PATH
 
15336
  ;;
 
15337
 
 
15338
bsdi4*)
 
15339
  version_type=linux
 
15340
  need_version=no
 
15341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15342
  soname_spec='${libname}${release}${shared_ext}$major'
 
15343
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15344
  shlibpath_var=LD_LIBRARY_PATH
 
15345
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15346
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15347
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15348
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15349
  # libtool to hard-code these into programs
 
15350
  ;;
 
15351
 
 
15352
cygwin* | mingw* | pw32*)
 
15353
  version_type=windows
 
15354
  shrext=".dll"
 
15355
  need_version=no
 
15356
  need_lib_prefix=no
 
15357
 
 
15358
  case $GCC,$host_os in
 
15359
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15360
    library_names_spec='$libname.dll.a'
 
15361
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15362
    postinstall_cmds='base_file=`basename \${file}`~
 
15363
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15364
      dldir=$destdir/`dirname \$dlpath`~
 
15365
      test -d \$dldir || mkdir -p \$dldir~
 
15366
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15367
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15368
      dlpath=$dir/\$dldll~
 
15369
       $rm \$dlpath'
 
15370
    shlibpath_overrides_runpath=yes
 
15371
 
 
15372
    case $host_os in
 
15373
    cygwin*)
 
15374
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15375
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15376
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15377
      ;;
 
15378
    mingw*)
 
15379
      # MinGW DLLs use traditional 'lib' prefix
 
15380
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15381
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15382
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15383
        # It is most probably a Windows format PATH printed by
 
15384
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15385
        # path with ; separators, and with drive letters. We can handle the
 
15386
        # drive letters (cygwin fileutils understands them), so leave them,
 
15387
        # especially as we might pass files found there to a mingw objdump,
 
15388
        # which wouldn't understand a cygwinified path. Ahh.
 
15389
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15390
      else
 
15391
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15392
      fi
 
15393
      ;;
 
15394
    pw32*)
 
15395
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15396
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15397
      ;;
 
15398
    esac
 
15399
    ;;
 
15400
 
 
15401
  *)
 
15402
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15403
    ;;
 
15404
  esac
 
15405
  dynamic_linker='Win32 ld.exe'
 
15406
  # FIXME: first we should search . and the directory the executable is in
 
15407
  shlibpath_var=PATH
 
15408
  ;;
 
15409
 
 
15410
darwin* | rhapsody*)
 
15411
  dynamic_linker="$host_os dyld"
 
15412
  version_type=darwin
 
15413
  need_lib_prefix=no
 
15414
  need_version=no
 
15415
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15416
  soname_spec='${libname}${release}${major}$shared_ext'
 
15417
  shlibpath_overrides_runpath=yes
 
15418
  shlibpath_var=DYLD_LIBRARY_PATH
 
15419
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
15420
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15421
  if test "$GCC" = yes; then
 
15422
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15423
  else
 
15424
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15425
  fi
 
15426
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15427
  ;;
 
15428
 
 
15429
dgux*)
 
15430
  version_type=linux
 
15431
  need_lib_prefix=no
 
15432
  need_version=no
 
15433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15434
  soname_spec='${libname}${release}${shared_ext}$major'
 
15435
  shlibpath_var=LD_LIBRARY_PATH
 
15436
  ;;
 
15437
 
 
15438
freebsd1*)
 
15439
  dynamic_linker=no
 
15440
  ;;
 
15441
 
 
15442
kfreebsd*-gnu)
 
15443
  version_type=linux
 
15444
  need_lib_prefix=no
 
15445
  need_version=no
 
15446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15447
  soname_spec='${libname}${release}${shared_ext}$major'
 
15448
  shlibpath_var=LD_LIBRARY_PATH
 
15449
  shlibpath_overrides_runpath=no
 
15450
  hardcode_into_libs=yes
 
15451
  dynamic_linker='GNU ld.so'
 
15452
  ;;
 
15453
 
 
15454
freebsd*)
 
15455
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15456
  version_type=freebsd-$objformat
 
15457
  case $version_type in
 
15458
    freebsd-elf*)
 
15459
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15460
      need_version=no
 
15461
      need_lib_prefix=no
 
15462
      ;;
 
15463
    freebsd-*)
 
15464
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15465
      need_version=yes
 
15466
      ;;
 
15467
  esac
 
15468
  shlibpath_var=LD_LIBRARY_PATH
 
15469
  case $host_os in
 
15470
  freebsd2*)
 
15471
    shlibpath_overrides_runpath=yes
 
15472
    ;;
 
15473
  freebsd3.01* | freebsdelf3.01*)
 
15474
    shlibpath_overrides_runpath=yes
 
15475
    hardcode_into_libs=yes
 
15476
    ;;
 
15477
  *) # from 3.2 on
 
15478
    shlibpath_overrides_runpath=no
 
15479
    hardcode_into_libs=yes
 
15480
    ;;
 
15481
  esac
 
15482
  ;;
 
15483
 
 
15484
gnu*)
 
15485
  version_type=linux
 
15486
  need_lib_prefix=no
 
15487
  need_version=no
 
15488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15489
  soname_spec='${libname}${release}${shared_ext}$major'
 
15490
  shlibpath_var=LD_LIBRARY_PATH
 
15491
  hardcode_into_libs=yes
 
15492
  ;;
 
15493
 
 
15494
hpux9* | hpux10* | hpux11*)
 
15495
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15496
  # link against other versions.
 
15497
  version_type=sunos
 
15498
  need_lib_prefix=no
 
15499
  need_version=no
 
15500
  case "$host_cpu" in
 
15501
  ia64*)
 
15502
    shrext='.so'
 
15503
    hardcode_into_libs=yes
 
15504
    dynamic_linker="$host_os dld.so"
 
15505
    shlibpath_var=LD_LIBRARY_PATH
 
15506
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15507
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15508
    soname_spec='${libname}${release}${shared_ext}$major'
 
15509
    if test "X$HPUX_IA64_MODE" = X32; then
 
15510
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15511
    else
 
15512
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15513
    fi
 
15514
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15515
    ;;
 
15516
   hppa*64*)
 
15517
     shrext='.sl'
 
15518
     hardcode_into_libs=yes
 
15519
     dynamic_linker="$host_os dld.sl"
 
15520
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15521
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15522
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15523
     soname_spec='${libname}${release}${shared_ext}$major'
 
15524
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15525
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15526
     ;;
 
15527
   *)
 
15528
    shrext='.sl'
 
15529
    dynamic_linker="$host_os dld.sl"
 
15530
    shlibpath_var=SHLIB_PATH
 
15531
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15532
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15533
    soname_spec='${libname}${release}${shared_ext}$major'
 
15534
    ;;
 
15535
  esac
 
15536
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15537
  postinstall_cmds='chmod 555 $lib'
 
15538
  ;;
 
15539
 
 
15540
irix5* | irix6* | nonstopux*)
 
15541
  case $host_os in
 
15542
    nonstopux*) version_type=nonstopux ;;
 
15543
    *)
 
15544
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15545
                version_type=linux
 
15546
        else
 
15547
                version_type=irix
 
15548
        fi ;;
 
15549
  esac
 
15550
  need_lib_prefix=no
 
15551
  need_version=no
 
15552
  soname_spec='${libname}${release}${shared_ext}$major'
 
15553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15554
  case $host_os in
 
15555
  irix5* | nonstopux*)
 
15556
    libsuff= shlibsuff=
 
15557
    ;;
 
15558
  *)
 
15559
    case $LD in # libtool.m4 will add one of these switches to LD
 
15560
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15561
      libsuff= shlibsuff= libmagic=32-bit;;
 
15562
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15563
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15564
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15565
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15566
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15567
    esac
 
15568
    ;;
 
15569
  esac
 
15570
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15571
  shlibpath_overrides_runpath=no
 
15572
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15573
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15574
  hardcode_into_libs=yes
 
15575
  ;;
 
15576
 
 
15577
# No shared lib support for Linux oldld, aout, or coff.
 
15578
linux*oldld* | linux*aout* | linux*coff*)
 
15579
  dynamic_linker=no
 
15580
  ;;
 
15581
 
 
15582
# This must be Linux ELF.
 
15583
linux*)
 
15584
  version_type=linux
 
15585
  need_lib_prefix=no
 
15586
  need_version=no
 
15587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15588
  soname_spec='${libname}${release}${shared_ext}$major'
 
15589
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15590
  shlibpath_var=LD_LIBRARY_PATH
 
15591
  shlibpath_overrides_runpath=no
 
15592
  # This implies no fast_install, which is unacceptable.
 
15593
  # Some rework will be needed to allow for fast_install
 
15594
  # before this can be enabled.
 
15595
  hardcode_into_libs=yes
 
15596
 
 
15597
  # Append ld.so.conf contents to the search path
 
15598
  if test -f /etc/ld.so.conf; then
 
15599
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
15600
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
15601
  fi
 
15602
 
 
15603
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15604
  # powerpc, because MkLinux only supported shared libraries with the
 
15605
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15606
  # most powerpc-linux boxes support dynamic linking these days and
 
15607
  # people can always --disable-shared, the test was removed, and we
 
15608
  # assume the GNU/Linux dynamic linker is in use.
 
15609
  dynamic_linker='GNU/Linux ld.so'
 
15610
  ;;
 
15611
 
 
15612
knetbsd*-gnu)
 
15613
  version_type=linux
 
15614
  need_lib_prefix=no
 
15615
  need_version=no
 
15616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15617
  soname_spec='${libname}${release}${shared_ext}$major'
 
15618
  shlibpath_var=LD_LIBRARY_PATH
 
15619
  shlibpath_overrides_runpath=no
 
15620
  hardcode_into_libs=yes
 
15621
  dynamic_linker='GNU ld.so'
 
15622
  ;;
 
15623
 
 
15624
netbsd*)
 
15625
  version_type=sunos
 
15626
  need_lib_prefix=no
 
15627
  need_version=no
 
15628
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15629
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15630
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15631
    dynamic_linker='NetBSD (a.out) ld.so'
 
15632
  else
 
15633
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15634
    soname_spec='${libname}${release}${shared_ext}$major'
 
15635
    dynamic_linker='NetBSD ld.elf_so'
 
15636
  fi
 
15637
  shlibpath_var=LD_LIBRARY_PATH
 
15638
  shlibpath_overrides_runpath=yes
 
15639
  hardcode_into_libs=yes
 
15640
  ;;
 
15641
 
 
15642
newsos6)
 
15643
  version_type=linux
 
15644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15645
  shlibpath_var=LD_LIBRARY_PATH
 
15646
  shlibpath_overrides_runpath=yes
 
15647
  ;;
 
15648
 
 
15649
nto-qnx*)
 
15650
  version_type=linux
 
15651
  need_lib_prefix=no
 
15652
  need_version=no
 
15653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15654
  soname_spec='${libname}${release}${shared_ext}$major'
 
15655
  shlibpath_var=LD_LIBRARY_PATH
 
15656
  shlibpath_overrides_runpath=yes
 
15657
  ;;
 
15658
 
 
15659
openbsd*)
 
15660
  version_type=sunos
 
15661
  need_lib_prefix=no
 
15662
  need_version=yes
 
15663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15664
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15665
  shlibpath_var=LD_LIBRARY_PATH
 
15666
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15667
    case $host_os in
 
15668
      openbsd2.[89] | openbsd2.[89].*)
 
15669
        shlibpath_overrides_runpath=no
 
15670
        ;;
 
15671
      *)
 
15672
        shlibpath_overrides_runpath=yes
 
15673
        ;;
 
15674
      esac
 
15675
  else
 
15676
    shlibpath_overrides_runpath=yes
 
15677
  fi
 
15678
  ;;
 
15679
 
 
15680
os2*)
 
15681
  libname_spec='$name'
 
15682
  shrext=".dll"
 
15683
  need_lib_prefix=no
 
15684
  library_names_spec='$libname${shared_ext} $libname.a'
 
15685
  dynamic_linker='OS/2 ld.exe'
 
15686
  shlibpath_var=LIBPATH
 
15687
  ;;
 
15688
 
 
15689
osf3* | osf4* | osf5*)
 
15690
  version_type=osf
 
15691
  need_lib_prefix=no
 
15692
  need_version=no
 
15693
  soname_spec='${libname}${release}${shared_ext}$major'
 
15694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15695
  shlibpath_var=LD_LIBRARY_PATH
 
15696
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15697
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15698
  ;;
 
15699
 
 
15700
sco3.2v5*)
 
15701
  version_type=osf
 
15702
  soname_spec='${libname}${release}${shared_ext}$major'
 
15703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15704
  shlibpath_var=LD_LIBRARY_PATH
 
15705
  ;;
 
15706
 
 
15707
solaris*)
 
15708
  version_type=linux
 
15709
  need_lib_prefix=no
 
15710
  need_version=no
 
15711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15712
  soname_spec='${libname}${release}${shared_ext}$major'
 
15713
  shlibpath_var=LD_LIBRARY_PATH
 
15714
  shlibpath_overrides_runpath=yes
 
15715
  hardcode_into_libs=yes
 
15716
  # ldd complains unless libraries are executable
 
15717
  postinstall_cmds='chmod +x $lib'
 
15718
  ;;
 
15719
 
 
15720
sunos4*)
 
15721
  version_type=sunos
 
15722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15723
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15724
  shlibpath_var=LD_LIBRARY_PATH
 
15725
  shlibpath_overrides_runpath=yes
 
15726
  if test "$with_gnu_ld" = yes; then
 
15727
    need_lib_prefix=no
 
15728
  fi
 
15729
  need_version=yes
 
15730
  ;;
 
15731
 
 
15732
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15733
  version_type=linux
 
15734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15735
  soname_spec='${libname}${release}${shared_ext}$major'
 
15736
  shlibpath_var=LD_LIBRARY_PATH
 
15737
  case $host_vendor in
 
15738
    sni)
 
15739
      shlibpath_overrides_runpath=no
 
15740
      need_lib_prefix=no
 
15741
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15742
      runpath_var=LD_RUN_PATH
 
15743
      ;;
 
15744
    siemens)
 
15745
      need_lib_prefix=no
 
15746
      ;;
 
15747
    motorola)
 
15748
      need_lib_prefix=no
 
15749
      need_version=no
 
15750
      shlibpath_overrides_runpath=no
 
15751
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15752
      ;;
 
15753
  esac
 
15754
  ;;
 
15755
 
 
15756
sysv4*MP*)
 
15757
  if test -d /usr/nec ;then
 
15758
    version_type=linux
 
15759
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15760
    soname_spec='$libname${shared_ext}.$major'
 
15761
    shlibpath_var=LD_LIBRARY_PATH
 
15762
  fi
 
15763
  ;;
 
15764
 
 
15765
uts4*)
 
15766
  version_type=linux
 
15767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15768
  soname_spec='${libname}${release}${shared_ext}$major'
 
15769
  shlibpath_var=LD_LIBRARY_PATH
 
15770
  ;;
 
15771
 
 
15772
*)
 
15773
  dynamic_linker=no
 
15774
  ;;
 
15775
esac
 
15776
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15777
echo "${ECHO_T}$dynamic_linker" >&6
 
15778
test "$dynamic_linker" = no && can_build_shared=no
 
15779
 
 
15780
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15781
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15782
hardcode_action_F77=
 
15783
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15784
   test -n "$runpath_var F77" || \
 
15785
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15786
 
 
15787
  # We can hardcode non-existant directories.
 
15788
  if test "$hardcode_direct_F77" != no &&
 
15789
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15790
     # have to relink, otherwise we might link with an installed library
 
15791
     # when we should be linking with a yet-to-be-installed one
 
15792
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15793
     test "$hardcode_minus_L_F77" != no; then
 
15794
    # Linking always hardcodes the temporary library directory.
 
15795
    hardcode_action_F77=relink
 
15796
  else
 
15797
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15798
    hardcode_action_F77=immediate
 
15799
  fi
 
15800
else
 
15801
  # We cannot hardcode anything, or else we can only hardcode existing
 
15802
  # directories.
 
15803
  hardcode_action_F77=unsupported
 
15804
fi
 
15805
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15806
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15807
 
 
15808
if test "$hardcode_action_F77" = relink; then
 
15809
  # Fast installation is not supported
 
15810
  enable_fast_install=no
 
15811
elif test "$shlibpath_overrides_runpath" = yes ||
 
15812
     test "$enable_shared" = no; then
 
15813
  # Fast installation is not necessary
 
15814
  enable_fast_install=needless
 
15815
fi
 
15816
 
 
15817
striplib=
 
15818
old_striplib=
 
15819
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15820
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15821
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15822
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15823
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15824
  echo "$as_me:$LINENO: result: yes" >&5
 
15825
echo "${ECHO_T}yes" >&6
 
15826
else
 
15827
# FIXME - insert some real tests, host_os isn't really good enough
 
15828
  case $host_os in
 
15829
   darwin*)
 
15830
       if test -n "$STRIP" ; then
 
15831
         striplib="$STRIP -x"
 
15832
         echo "$as_me:$LINENO: result: yes" >&5
 
15833
echo "${ECHO_T}yes" >&6
 
15834
       else
 
15835
  echo "$as_me:$LINENO: result: no" >&5
 
15836
echo "${ECHO_T}no" >&6
 
15837
fi
 
15838
       ;;
 
15839
   *)
 
15840
  echo "$as_me:$LINENO: result: no" >&5
 
15841
echo "${ECHO_T}no" >&6
 
15842
    ;;
 
15843
  esac
 
15844
fi
 
15845
 
 
15846
 
 
15847
 
 
15848
# The else clause should only fire when bootstrapping the
 
15849
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15850
# with your package, and you will get complaints that there are
 
15851
# no rules to generate ltmain.sh.
 
15852
if test -f "$ltmain"; then
 
15853
  # See if we are running on zsh, and set the options which allow our commands through
 
15854
  # without removal of \ escapes.
 
15855
  if test -n "${ZSH_VERSION+set}" ; then
 
15856
    setopt NO_GLOB_SUBST
 
15857
  fi
 
15858
  # Now quote all the things that may contain metacharacters while being
 
15859
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15860
  # variables and quote the copies for generation of the libtool script.
 
15861
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15862
    SED SHELL STRIP \
 
15863
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15864
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15865
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15866
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15867
    lt_cv_sys_global_symbol_to_c_name_address \
 
15868
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15869
    old_postinstall_cmds old_postuninstall_cmds \
 
15870
    compiler_F77 \
 
15871
    CC_F77 \
 
15872
    LD_F77 \
 
15873
    lt_prog_compiler_wl_F77 \
 
15874
    lt_prog_compiler_pic_F77 \
 
15875
    lt_prog_compiler_static_F77 \
 
15876
    lt_prog_compiler_no_builtin_flag_F77 \
 
15877
    export_dynamic_flag_spec_F77 \
 
15878
    thread_safe_flag_spec_F77 \
 
15879
    whole_archive_flag_spec_F77 \
 
15880
    enable_shared_with_static_runtimes_F77 \
 
15881
    old_archive_cmds_F77 \
 
15882
    old_archive_from_new_cmds_F77 \
 
15883
    predep_objects_F77 \
 
15884
    postdep_objects_F77 \
 
15885
    predeps_F77 \
 
15886
    postdeps_F77 \
 
15887
    compiler_lib_search_path_F77 \
 
15888
    archive_cmds_F77 \
 
15889
    archive_expsym_cmds_F77 \
 
15890
    postinstall_cmds_F77 \
 
15891
    postuninstall_cmds_F77 \
 
15892
    old_archive_from_expsyms_cmds_F77 \
 
15893
    allow_undefined_flag_F77 \
 
15894
    no_undefined_flag_F77 \
 
15895
    export_symbols_cmds_F77 \
 
15896
    hardcode_libdir_flag_spec_F77 \
 
15897
    hardcode_libdir_flag_spec_ld_F77 \
 
15898
    hardcode_libdir_separator_F77 \
 
15899
    hardcode_automatic_F77 \
 
15900
    module_cmds_F77 \
 
15901
    module_expsym_cmds_F77 \
 
15902
    lt_cv_prog_compiler_c_o_F77 \
 
15903
    exclude_expsyms_F77 \
 
15904
    include_expsyms_F77; do
 
15905
 
 
15906
    case $var in
 
15907
    old_archive_cmds_F77 | \
 
15908
    old_archive_from_new_cmds_F77 | \
 
15909
    archive_cmds_F77 | \
 
15910
    archive_expsym_cmds_F77 | \
 
15911
    module_cmds_F77 | \
 
15912
    module_expsym_cmds_F77 | \
 
15913
    old_archive_from_expsyms_cmds_F77 | \
 
15914
    export_symbols_cmds_F77 | \
 
15915
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15916
    postinstall_cmds | postuninstall_cmds | \
 
15917
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15918
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15919
      # Double-quote double-evaled strings.
 
15920
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15921
      ;;
 
15922
    *)
 
15923
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15924
      ;;
 
15925
    esac
 
15926
  done
 
15927
 
 
15928
  case $lt_echo in
 
15929
  *'\$0 --fallback-echo"')
 
15930
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15931
    ;;
 
15932
  esac
 
15933
 
 
15934
cfgfile="$ofile"
 
15935
 
 
15936
  cat <<__EOF__ >> "$cfgfile"
 
15937
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15938
 
 
15939
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15940
 
 
15941
# Shell to use when invoking shell scripts.
 
15942
SHELL=$lt_SHELL
 
15943
 
 
15944
# Whether or not to build shared libraries.
 
15945
build_libtool_libs=$enable_shared
 
15946
 
 
15947
# Whether or not to build static libraries.
 
15948
build_old_libs=$enable_static
 
15949
 
 
15950
# Whether or not to add -lc for building shared libraries.
 
15951
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15952
 
 
15953
# Whether or not to disallow shared libs when runtime libs are static
 
15954
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15955
 
 
15956
# Whether or not to optimize for fast installation.
 
15957
fast_install=$enable_fast_install
 
15958
 
 
15959
# The host system.
 
15960
host_alias=$host_alias
 
15961
host=$host
 
15962
 
 
15963
# An echo program that does not interpret backslashes.
 
15964
echo=$lt_echo
 
15965
 
 
15966
# The archiver.
 
15967
AR=$lt_AR
 
15968
AR_FLAGS=$lt_AR_FLAGS
 
15969
 
 
15970
# A C compiler.
 
15971
LTCC=$lt_LTCC
 
15972
 
 
15973
# A language-specific compiler.
 
15974
CC=$lt_compiler_F77
 
15975
 
 
15976
# Is the compiler the GNU C compiler?
 
15977
with_gcc=$GCC_F77
 
15978
 
 
15979
# An ERE matcher.
 
15980
EGREP=$lt_EGREP
 
15981
 
 
15982
# The linker used to build libraries.
 
15983
LD=$lt_LD_F77
 
15984
 
 
15985
# Whether we need hard or soft links.
 
15986
LN_S=$lt_LN_S
 
15987
 
 
15988
# A BSD-compatible nm program.
 
15989
NM=$lt_NM
 
15990
 
 
15991
# A symbol stripping program
 
15992
STRIP=$lt_STRIP
 
15993
 
 
15994
# Used to examine libraries when file_magic_cmd begins "file"
 
15995
MAGIC_CMD=$MAGIC_CMD
 
15996
 
 
15997
# Used on cygwin: DLL creation program.
 
15998
DLLTOOL="$DLLTOOL"
 
15999
 
 
16000
# Used on cygwin: object dumper.
 
16001
OBJDUMP="$OBJDUMP"
 
16002
 
 
16003
# Used on cygwin: assembler.
 
16004
AS="$AS"
 
16005
 
 
16006
# The name of the directory that contains temporary libtool files.
 
16007
objdir=$objdir
 
16008
 
 
16009
# How to create reloadable object files.
 
16010
reload_flag=$lt_reload_flag
 
16011
reload_cmds=$lt_reload_cmds
 
16012
 
 
16013
# How to pass a linker flag through the compiler.
 
16014
wl=$lt_lt_prog_compiler_wl_F77
 
16015
 
 
16016
# Object file suffix (normally "o").
 
16017
objext="$ac_objext"
 
16018
 
 
16019
# Old archive suffix (normally "a").
 
16020
libext="$libext"
 
16021
 
 
16022
# Shared library suffix (normally ".so").
 
16023
shrext='$shrext'
 
16024
 
 
16025
# Executable file suffix (normally "").
 
16026
exeext="$exeext"
 
16027
 
 
16028
# Additional compiler flags for building library objects.
 
16029
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16030
pic_mode=$pic_mode
 
16031
 
 
16032
# What is the maximum length of a command?
 
16033
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16034
 
 
16035
# Does compiler simultaneously support -c and -o options?
 
16036
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16037
 
 
16038
# Must we lock files when doing compilation ?
 
16039
need_locks=$lt_need_locks
 
16040
 
 
16041
# Do we need the lib prefix for modules?
 
16042
need_lib_prefix=$need_lib_prefix
 
16043
 
 
16044
# Do we need a version for libraries?
 
16045
need_version=$need_version
 
16046
 
 
16047
# Whether dlopen is supported.
 
16048
dlopen_support=$enable_dlopen
 
16049
 
 
16050
# Whether dlopen of programs is supported.
 
16051
dlopen_self=$enable_dlopen_self
 
16052
 
 
16053
# Whether dlopen of statically linked programs is supported.
 
16054
dlopen_self_static=$enable_dlopen_self_static
 
16055
 
 
16056
# Compiler flag to prevent dynamic linking.
 
16057
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16058
 
 
16059
# Compiler flag to turn off builtin functions.
 
16060
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16061
 
 
16062
# Compiler flag to allow reflexive dlopens.
 
16063
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16064
 
 
16065
# Compiler flag to generate shared objects directly from archives.
 
16066
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16067
 
 
16068
# Compiler flag to generate thread-safe objects.
 
16069
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16070
 
 
16071
# Library versioning type.
 
16072
version_type=$version_type
 
16073
 
 
16074
# Format of library name prefix.
 
16075
libname_spec=$lt_libname_spec
 
16076
 
 
16077
# List of archive names.  First name is the real one, the rest are links.
 
16078
# The last name is the one that the linker finds with -lNAME.
 
16079
library_names_spec=$lt_library_names_spec
 
16080
 
 
16081
# The coded name of the library, if different from the real name.
 
16082
soname_spec=$lt_soname_spec
 
16083
 
 
16084
# Commands used to build and install an old-style archive.
 
16085
RANLIB=$lt_RANLIB
 
16086
old_archive_cmds=$lt_old_archive_cmds_F77
 
16087
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16088
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16089
 
 
16090
# Create an old-style archive from a shared archive.
 
16091
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16092
 
 
16093
# Create a temporary old-style archive to link instead of a shared archive.
 
16094
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16095
 
 
16096
# Commands used to build and install a shared archive.
 
16097
archive_cmds=$lt_archive_cmds_F77
 
16098
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16099
postinstall_cmds=$lt_postinstall_cmds
 
16100
postuninstall_cmds=$lt_postuninstall_cmds
 
16101
 
 
16102
# Commands used to build a loadable module (assumed same as above if empty)
 
16103
module_cmds=$lt_module_cmds_F77
 
16104
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16105
 
 
16106
# Commands to strip libraries.
 
16107
old_striplib=$lt_old_striplib
 
16108
striplib=$lt_striplib
 
16109
 
 
16110
# Dependencies to place before the objects being linked to create a
 
16111
# shared library.
 
16112
predep_objects=$lt_predep_objects_F77
 
16113
 
 
16114
# Dependencies to place after the objects being linked to create a
 
16115
# shared library.
 
16116
postdep_objects=$lt_postdep_objects_F77
 
16117
 
 
16118
# Dependencies to place before the objects being linked to create a
 
16119
# shared library.
 
16120
predeps=$lt_predeps_F77
 
16121
 
 
16122
# Dependencies to place after the objects being linked to create a
 
16123
# shared library.
 
16124
postdeps=$lt_postdeps_F77
 
16125
 
 
16126
# The library search path used internally by the compiler when linking
 
16127
# a shared library.
 
16128
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16129
 
 
16130
# Method to check whether dependent libraries are shared objects.
 
16131
deplibs_check_method=$lt_deplibs_check_method
 
16132
 
 
16133
# Command to use when deplibs_check_method == file_magic.
 
16134
file_magic_cmd=$lt_file_magic_cmd
 
16135
 
 
16136
# Flag that allows shared libraries with undefined symbols to be built.
 
16137
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16138
 
 
16139
# Flag that forces no undefined symbols.
 
16140
no_undefined_flag=$lt_no_undefined_flag_F77
 
16141
 
 
16142
# Commands used to finish a libtool library installation in a directory.
 
16143
finish_cmds=$lt_finish_cmds
 
16144
 
 
16145
# Same as above, but a single script fragment to be evaled but not shown.
 
16146
finish_eval=$lt_finish_eval
 
16147
 
 
16148
# Take the output of nm and produce a listing of raw symbols and C names.
 
16149
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16150
 
 
16151
# Transform the output of nm in a proper C declaration
 
16152
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16153
 
 
16154
# Transform the output of nm in a C name address pair
 
16155
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16156
 
 
16157
# This is the shared library runtime path variable.
 
16158
runpath_var=$runpath_var
 
16159
 
 
16160
# This is the shared library path variable.
 
16161
shlibpath_var=$shlibpath_var
 
16162
 
 
16163
# Is shlibpath searched before the hard-coded library search path?
 
16164
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16165
 
 
16166
# How to hardcode a shared library path into an executable.
 
16167
hardcode_action=$hardcode_action_F77
 
16168
 
 
16169
# Whether we should hardcode library paths into libraries.
 
16170
hardcode_into_libs=$hardcode_into_libs
 
16171
 
 
16172
# Flag to hardcode \$libdir into a binary during linking.
 
16173
# This must work even if \$libdir does not exist.
 
16174
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16175
 
 
16176
# If ld is used when linking, flag to hardcode \$libdir into
 
16177
# a binary during linking. This must work even if \$libdir does
 
16178
# not exist.
 
16179
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16180
 
 
16181
# Whether we need a single -rpath flag with a separated argument.
 
16182
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16183
 
 
16184
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16185
# resulting binary.
 
16186
hardcode_direct=$hardcode_direct_F77
 
16187
 
 
16188
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16189
# resulting binary.
 
16190
hardcode_minus_L=$hardcode_minus_L_F77
 
16191
 
 
16192
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16193
# the resulting binary.
 
16194
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16195
 
 
16196
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16197
# and all subsequent libraries and executables linked against it.
 
16198
hardcode_automatic=$hardcode_automatic_F77
 
16199
 
 
16200
# Variables whose values should be saved in libtool wrapper scripts and
 
16201
# restored at relink time.
 
16202
variables_saved_for_relink="$variables_saved_for_relink"
 
16203
 
 
16204
# Whether libtool must link a program against all its dependency libraries.
 
16205
link_all_deplibs=$link_all_deplibs_F77
 
16206
 
 
16207
# Compile-time system search path for libraries
 
16208
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16209
 
 
16210
# Run-time system search path for libraries
 
16211
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16212
 
 
16213
# Fix the shell variable \$srcfile for the compiler.
 
16214
fix_srcfile_path="$fix_srcfile_path_F77"
 
16215
 
 
16216
# Set to yes if exported symbols are required.
 
16217
always_export_symbols=$always_export_symbols_F77
 
16218
 
 
16219
# The commands to list exported symbols.
 
16220
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16221
 
 
16222
# The commands to extract the exported symbol list from a shared archive.
 
16223
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16224
 
 
16225
# Symbols that should not be listed in the preloaded symbols.
 
16226
exclude_expsyms=$lt_exclude_expsyms_F77
 
16227
 
 
16228
# Symbols that must always be exported.
 
16229
include_expsyms=$lt_include_expsyms_F77
 
16230
 
 
16231
# ### END LIBTOOL TAG CONFIG: $tagname
 
16232
 
 
16233
__EOF__
 
16234
 
 
16235
 
 
16236
else
 
16237
  # If there is no Makefile yet, we rely on a make rule to execute
 
16238
  # `config.status --recheck' to rerun these tests and create the
 
16239
  # libtool script then.
 
16240
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16241
  if test -f "$ltmain_in"; then
 
16242
    test -f Makefile && make "$ltmain"
 
16243
  fi
 
16244
fi
 
16245
 
 
16246
 
 
16247
ac_ext=c
 
16248
ac_cpp='$CPP $CPPFLAGS'
 
16249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16252
 
 
16253
CC="$lt_save_CC"
 
16254
 
 
16255
        else
 
16256
          tagname=""
 
16257
        fi
 
16258
        ;;
 
16259
 
 
16260
      GCJ)
 
16261
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16262
 
 
16263
 
 
16264
 
 
16265
# Source file extension for Java test sources.
 
16266
ac_ext=java
 
16267
 
 
16268
# Object file extension for compiled Java test sources.
 
16269
objext=o
 
16270
objext_GCJ=$objext
 
16271
 
 
16272
# Code to be used in simple compile tests
 
16273
lt_simple_compile_test_code="class foo {}\n"
 
16274
 
 
16275
# Code to be used in simple link tests
 
16276
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16277
 
 
16278
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16279
 
 
16280
# If no C compiler was specified, use CC.
 
16281
LTCC=${LTCC-"$CC"}
 
16282
 
 
16283
# Allow CC to be a program name with arguments.
 
16284
compiler=$CC
 
16285
 
 
16286
 
 
16287
# Allow CC to be a program name with arguments.
 
16288
lt_save_CC="$CC"
 
16289
CC=${GCJ-"gcj"}
 
16290
compiler=$CC
 
16291
compiler_GCJ=$CC
 
16292
 
 
16293
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16294
archive_cmds_need_lc_GCJ=no
 
16295
 
 
16296
## CAVEAT EMPTOR:
 
16297
## There is no encapsulation within the following macros, do not change
 
16298
## the running order or otherwise move them around unless you know exactly
 
16299
## what you are doing...
 
16300
 
 
16301
lt_prog_compiler_no_builtin_flag_GCJ=
 
16302
 
 
16303
if test "$GCC" = yes; then
 
16304
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16305
 
 
16306
 
 
16307
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16308
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16309
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16311
else
 
16312
  lt_cv_prog_compiler_rtti_exceptions=no
 
16313
  ac_outfile=conftest.$ac_objext
 
16314
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16315
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16316
   # Insert the option either (1) after the last *FLAGS variable, or
 
16317
   # (2) before a word containing "conftest.", or (3) at the end.
 
16318
   # Note that $ac_compile itself does not contain backslashes and begins
 
16319
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16320
   # The option is referenced via a variable to avoid confusing sed.
 
16321
   lt_compile=`echo "$ac_compile" | $SED \
 
16322
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16323
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16324
   -e 's:$: $lt_compiler_flag:'`
 
16325
   (eval echo "\"\$as_me:16325: $lt_compile\"" >&5)
 
16326
   (eval "$lt_compile" 2>conftest.err)
 
16327
   ac_status=$?
 
16328
   cat conftest.err >&5
 
16329
   echo "$as_me:16329: \$? = $ac_status" >&5
 
16330
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16331
     # The compiler can only warn and ignore the option if not recognized
 
16332
     # So say no if there are warnings
 
16333
     if test ! -s conftest.err; then
 
16334
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16335
     fi
 
16336
   fi
 
16337
   $rm conftest*
 
16338
 
 
16339
fi
 
16340
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16341
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16342
 
 
16343
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16344
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16345
else
 
16346
    :
 
16347
fi
 
16348
 
 
16349
fi
 
16350
 
 
16351
lt_prog_compiler_wl_GCJ=
 
16352
lt_prog_compiler_pic_GCJ=
 
16353
lt_prog_compiler_static_GCJ=
 
16354
 
 
16355
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16356
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16357
 
 
16358
  if test "$GCC" = yes; then
 
16359
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16360
    lt_prog_compiler_static_GCJ='-static'
 
16361
 
 
16362
    case $host_os in
 
16363
      aix*)
 
16364
      # All AIX code is PIC.
 
16365
      if test "$host_cpu" = ia64; then
 
16366
        # AIX 5 now supports IA64 processor
 
16367
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16368
      fi
 
16369
      ;;
 
16370
 
 
16371
    amigaos*)
 
16372
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16373
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16374
      # like `-m68040'.
 
16375
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16376
      ;;
 
16377
 
 
16378
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16379
      # PIC is the default for these OSes.
 
16380
      ;;
 
16381
 
 
16382
    mingw* | pw32* | os2*)
 
16383
      # This hack is so that the source file can tell whether it is being
 
16384
      # built for inclusion in a dll (and should export symbols for example).
 
16385
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16386
      ;;
 
16387
 
 
16388
    darwin* | rhapsody*)
 
16389
      # PIC is the default on this platform
 
16390
      # Common symbols not allowed in MH_DYLIB files
 
16391
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16392
      ;;
 
16393
 
 
16394
    msdosdjgpp*)
 
16395
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16396
      # on systems that don't support them.
 
16397
      lt_prog_compiler_can_build_shared_GCJ=no
 
16398
      enable_shared=no
 
16399
      ;;
 
16400
 
 
16401
    sysv4*MP*)
 
16402
      if test -d /usr/nec; then
 
16403
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16404
      fi
 
16405
      ;;
 
16406
 
 
16407
    hpux*)
 
16408
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16409
      # not for PA HP-UX.
 
16410
      case "$host_cpu" in
 
16411
      hppa*64*|ia64*)
 
16412
        # +Z the default
 
16413
        ;;
 
16414
      *)
 
16415
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16416
        ;;
 
16417
      esac
 
16418
      ;;
 
16419
 
 
16420
    *)
 
16421
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16422
      ;;
 
16423
    esac
 
16424
  else
 
16425
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16426
    case $host_os in
 
16427
    aix*)
 
16428
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16429
      if test "$host_cpu" = ia64; then
 
16430
        # AIX 5 now supports IA64 processor
 
16431
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16432
      else
 
16433
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16434
      fi
 
16435
      ;;
 
16436
 
 
16437
    mingw* | pw32* | os2*)
 
16438
      # This hack is so that the source file can tell whether it is being
 
16439
      # built for inclusion in a dll (and should export symbols for example).
 
16440
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16441
      ;;
 
16442
 
 
16443
    hpux9* | hpux10* | hpux11*)
 
16444
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16445
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16446
      # not for PA HP-UX.
 
16447
      case "$host_cpu" in
 
16448
      hppa*64*|ia64*)
 
16449
        # +Z the default
 
16450
        ;;
 
16451
      *)
 
16452
        lt_prog_compiler_pic_GCJ='+Z'
 
16453
        ;;
 
16454
      esac
 
16455
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16456
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16457
      ;;
 
16458
 
 
16459
    irix5* | irix6* | nonstopux*)
 
16460
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16461
      # PIC (with -KPIC) is the default.
 
16462
      lt_prog_compiler_static_GCJ='-non_shared'
 
16463
      ;;
 
16464
 
 
16465
    newsos6)
 
16466
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16467
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16468
      ;;
 
16469
 
 
16470
    linux*)
 
16471
      case $CC in
 
16472
      icc* | ecc*)
 
16473
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16474
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16475
        lt_prog_compiler_static_GCJ='-static'
 
16476
        ;;
 
16477
      ccc*)
 
16478
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16479
        # All Alpha code is PIC.
 
16480
        lt_prog_compiler_static_GCJ='-non_shared'
 
16481
        ;;
 
16482
      esac
 
16483
      ;;
 
16484
 
 
16485
    osf3* | osf4* | osf5*)
 
16486
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16487
      # All OSF/1 code is PIC.
 
16488
      lt_prog_compiler_static_GCJ='-non_shared'
 
16489
      ;;
 
16490
 
 
16491
    sco3.2v5*)
 
16492
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16493
      lt_prog_compiler_static_GCJ='-dn'
 
16494
      ;;
 
16495
 
 
16496
    solaris*)
 
16497
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16498
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16499
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16500
      ;;
 
16501
 
 
16502
    sunos4*)
 
16503
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16504
      lt_prog_compiler_pic_GCJ='-PIC'
 
16505
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16506
      ;;
 
16507
 
 
16508
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16509
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16510
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16511
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16512
      ;;
 
16513
 
 
16514
    sysv4*MP*)
 
16515
      if test -d /usr/nec ;then
 
16516
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16517
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16518
      fi
 
16519
      ;;
 
16520
 
 
16521
    uts4*)
 
16522
      lt_prog_compiler_pic_GCJ='-pic'
 
16523
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16524
      ;;
 
16525
 
 
16526
    *)
 
16527
      lt_prog_compiler_can_build_shared_GCJ=no
 
16528
      ;;
 
16529
    esac
 
16530
  fi
 
16531
 
 
16532
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16533
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16534
 
 
16535
#
 
16536
# Check to make sure the PIC flag actually works.
 
16537
#
 
16538
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16539
 
 
16540
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16541
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16542
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16544
else
 
16545
  lt_prog_compiler_pic_works_GCJ=no
 
16546
  ac_outfile=conftest.$ac_objext
 
16547
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16548
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16549
   # Insert the option either (1) after the last *FLAGS variable, or
 
16550
   # (2) before a word containing "conftest.", or (3) at the end.
 
16551
   # Note that $ac_compile itself does not contain backslashes and begins
 
16552
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16553
   # The option is referenced via a variable to avoid confusing sed.
 
16554
   lt_compile=`echo "$ac_compile" | $SED \
 
16555
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16556
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16557
   -e 's:$: $lt_compiler_flag:'`
 
16558
   (eval echo "\"\$as_me:16558: $lt_compile\"" >&5)
 
16559
   (eval "$lt_compile" 2>conftest.err)
 
16560
   ac_status=$?
 
16561
   cat conftest.err >&5
 
16562
   echo "$as_me:16562: \$? = $ac_status" >&5
 
16563
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16564
     # The compiler can only warn and ignore the option if not recognized
 
16565
     # So say no if there are warnings
 
16566
     if test ! -s conftest.err; then
 
16567
       lt_prog_compiler_pic_works_GCJ=yes
 
16568
     fi
 
16569
   fi
 
16570
   $rm conftest*
 
16571
 
 
16572
fi
 
16573
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16574
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16575
 
 
16576
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16577
    case $lt_prog_compiler_pic_GCJ in
 
16578
     "" | " "*) ;;
 
16579
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16580
     esac
 
16581
else
 
16582
    lt_prog_compiler_pic_GCJ=
 
16583
     lt_prog_compiler_can_build_shared_GCJ=no
 
16584
fi
 
16585
 
 
16586
fi
 
16587
case "$host_os" in
 
16588
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16589
  *djgpp*)
 
16590
    lt_prog_compiler_pic_GCJ=
 
16591
    ;;
 
16592
  *)
 
16593
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16594
    ;;
 
16595
esac
 
16596
 
 
16597
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16598
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16599
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16601
else
 
16602
  lt_cv_prog_compiler_c_o_GCJ=no
 
16603
   $rm -r conftest 2>/dev/null
 
16604
   mkdir conftest
 
16605
   cd conftest
 
16606
   mkdir out
 
16607
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16608
 
 
16609
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16610
   # Insert the option either (1) after the last *FLAGS variable, or
 
16611
   # (2) before a word containing "conftest.", or (3) at the end.
 
16612
   # Note that $ac_compile itself does not contain backslashes and begins
 
16613
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16614
   lt_compile=`echo "$ac_compile" | $SED \
 
16615
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16616
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16617
   -e 's:$: $lt_compiler_flag:'`
 
16618
   (eval echo "\"\$as_me:16618: $lt_compile\"" >&5)
 
16619
   (eval "$lt_compile" 2>out/conftest.err)
 
16620
   ac_status=$?
 
16621
   cat out/conftest.err >&5
 
16622
   echo "$as_me:16622: \$? = $ac_status" >&5
 
16623
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16624
   then
 
16625
     # The compiler can only warn and ignore the option if not recognized
 
16626
     # So say no if there are warnings
 
16627
     if test ! -s out/conftest.err; then
 
16628
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16629
     fi
 
16630
   fi
 
16631
   chmod u+w .
 
16632
   $rm conftest*
 
16633
   # SGI C++ compiler will create directory out/ii_files/ for
 
16634
   # template instantiation
 
16635
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16636
   $rm out/* && rmdir out
 
16637
   cd ..
 
16638
   rmdir conftest
 
16639
   $rm conftest*
 
16640
 
 
16641
fi
 
16642
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16643
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16644
 
 
16645
 
 
16646
hard_links="nottested"
 
16647
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16648
  # do not overwrite the value of need_locks provided by the user
 
16649
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16650
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16651
  hard_links=yes
 
16652
  $rm conftest*
 
16653
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16654
  touch conftest.a
 
16655
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16656
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16657
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16658
echo "${ECHO_T}$hard_links" >&6
 
16659
  if test "$hard_links" = no; then
 
16660
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16661
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16662
    need_locks=warn
 
16663
  fi
 
16664
else
 
16665
  need_locks=no
 
16666
fi
 
16667
 
 
16668
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16669
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16670
 
 
16671
  runpath_var=
 
16672
  allow_undefined_flag_GCJ=
 
16673
  enable_shared_with_static_runtimes_GCJ=no
 
16674
  archive_cmds_GCJ=
 
16675
  archive_expsym_cmds_GCJ=
 
16676
  old_archive_From_new_cmds_GCJ=
 
16677
  old_archive_from_expsyms_cmds_GCJ=
 
16678
  export_dynamic_flag_spec_GCJ=
 
16679
  whole_archive_flag_spec_GCJ=
 
16680
  thread_safe_flag_spec_GCJ=
 
16681
  hardcode_libdir_flag_spec_GCJ=
 
16682
  hardcode_libdir_flag_spec_ld_GCJ=
 
16683
  hardcode_libdir_separator_GCJ=
 
16684
  hardcode_direct_GCJ=no
 
16685
  hardcode_minus_L_GCJ=no
 
16686
  hardcode_shlibpath_var_GCJ=unsupported
 
16687
  link_all_deplibs_GCJ=unknown
 
16688
  hardcode_automatic_GCJ=no
 
16689
  module_cmds_GCJ=
 
16690
  module_expsym_cmds_GCJ=
 
16691
  always_export_symbols_GCJ=no
 
16692
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16693
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16694
  # included in the symbol list
 
16695
  include_expsyms_GCJ=
 
16696
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16697
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16698
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16699
  # as well as any symbol that contains `d'.
 
16700
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16701
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16702
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16703
  # the symbol is explicitly referenced.  Since portable code cannot
 
16704
  # rely on this symbol name, it's probably fine to never include it in
 
16705
  # preloaded symbol tables.
 
16706
  extract_expsyms_cmds=
 
16707
 
 
16708
  case $host_os in
 
16709
  cygwin* | mingw* | pw32*)
 
16710
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16711
    # When not using gcc, we currently assume that we are using
 
16712
    # Microsoft Visual C++.
 
16713
    if test "$GCC" != yes; then
 
16714
      with_gnu_ld=no
 
16715
    fi
 
16716
    ;;
 
16717
  openbsd*)
 
16718
    with_gnu_ld=no
 
16719
    ;;
 
16720
  esac
 
16721
 
 
16722
  ld_shlibs_GCJ=yes
 
16723
  if test "$with_gnu_ld" = yes; then
 
16724
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16725
    wlarc='${wl}'
 
16726
 
 
16727
    # See if GNU ld supports shared libraries.
 
16728
    case $host_os in
 
16729
    aix3* | aix4* | aix5*)
 
16730
      # On AIX/PPC, the GNU linker is very broken
 
16731
      if test "$host_cpu" != ia64; then
 
16732
        ld_shlibs_GCJ=no
 
16733
        cat <<EOF 1>&2
 
16734
 
 
16735
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16736
*** to be unable to reliably create shared libraries on AIX.
 
16737
*** Therefore, libtool is disabling shared libraries support.  If you
 
16738
*** really care for shared libraries, you may want to modify your PATH
 
16739
*** so that a non-GNU linker is found, and then restart.
 
16740
 
 
16741
EOF
 
16742
      fi
 
16743
      ;;
 
16744
 
 
16745
    amigaos*)
 
16746
      archive_cmds_GCJ='$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)'
 
16747
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16748
      hardcode_minus_L_GCJ=yes
 
16749
 
 
16750
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16751
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16752
      # to version 4, is to share data among multiple programs linked
 
16753
      # with the same dynamic library.  Since this doesn't match the
 
16754
      # behavior of shared libraries on other platforms, we can't use
 
16755
      # them.
 
16756
      ld_shlibs_GCJ=no
 
16757
      ;;
 
16758
 
 
16759
    beos*)
 
16760
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16761
        allow_undefined_flag_GCJ=unsupported
 
16762
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16763
        # support --undefined.  This deserves some investigation.  FIXME
 
16764
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16765
      else
 
16766
        ld_shlibs_GCJ=no
 
16767
      fi
 
16768
      ;;
 
16769
 
 
16770
    cygwin* | mingw* | pw32*)
 
16771
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16772
      # as there is no search path for DLLs.
 
16773
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16774
      allow_undefined_flag_GCJ=unsupported
 
16775
      always_export_symbols_GCJ=no
 
16776
      enable_shared_with_static_runtimes_GCJ=yes
 
16777
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16778
 
 
16779
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16780
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16781
        # If the export-symbols file already is a .def file (1st line
 
16782
        # is EXPORTS), use it as is; otherwise, prepend...
 
16783
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16784
          cp $export_symbols $output_objdir/$soname.def;
 
16785
        else
 
16786
          echo EXPORTS > $output_objdir/$soname.def;
 
16787
          cat $export_symbols >> $output_objdir/$soname.def;
 
16788
        fi~
 
16789
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16790
      else
 
16791
        ld_shlibs=no
 
16792
      fi
 
16793
      ;;
 
16794
 
 
16795
    netbsd* | knetbsd*-gnu)
 
16796
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16797
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16798
        wlarc=
 
16799
      else
 
16800
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16801
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16802
      fi
 
16803
      ;;
 
16804
 
 
16805
    solaris* | sysv5*)
 
16806
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16807
        ld_shlibs_GCJ=no
 
16808
        cat <<EOF 1>&2
 
16809
 
 
16810
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16811
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16812
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16813
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16814
*** your PATH or compiler configuration so that the native linker is
 
16815
*** used, and then restart.
 
16816
 
 
16817
EOF
 
16818
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16819
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16820
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16821
      else
 
16822
        ld_shlibs_GCJ=no
 
16823
      fi
 
16824
      ;;
 
16825
 
 
16826
    sunos4*)
 
16827
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16828
      wlarc=
 
16829
      hardcode_direct_GCJ=yes
 
16830
      hardcode_shlibpath_var_GCJ=no
 
16831
      ;;
 
16832
 
 
16833
  linux*)
 
16834
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
16835
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16836
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16837
      supports_anon_versioning=no
 
16838
      case `$LD -v 2>/dev/null` in
 
16839
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16840
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16841
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16842
        *\ 2.11.*) ;; # other 2.11 versions
 
16843
        *) supports_anon_versioning=yes ;;
 
16844
      esac
 
16845
      if test $supports_anon_versioning = yes; then
 
16846
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16847
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16848
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16849
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16850
      else
 
16851
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16852
      fi
 
16853
    else
 
16854
      ld_shlibs_GCJ=no
 
16855
    fi
 
16856
    ;;
 
16857
 
 
16858
    *)
 
16859
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16860
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16861
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16862
      else
 
16863
        ld_shlibs_GCJ=no
 
16864
      fi
 
16865
      ;;
 
16866
    esac
 
16867
 
 
16868
    if test "$ld_shlibs_GCJ" = yes; then
 
16869
      runpath_var=LD_RUN_PATH
 
16870
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16871
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16872
      # ancient GNU ld didn't support --whole-archive et. al.
 
16873
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16874
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16875
      else
 
16876
        whole_archive_flag_spec_GCJ=
 
16877
      fi
 
16878
    fi
 
16879
  else
 
16880
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16881
    case $host_os in
 
16882
    aix3*)
 
16883
      allow_undefined_flag_GCJ=unsupported
 
16884
      always_export_symbols_GCJ=yes
 
16885
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16886
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16887
      # are no directories specified by -L.
 
16888
      hardcode_minus_L_GCJ=yes
 
16889
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16890
        # Neither direct hardcoding nor static linking is supported with a
 
16891
        # broken collect2.
 
16892
        hardcode_direct_GCJ=unsupported
 
16893
      fi
 
16894
      ;;
 
16895
 
 
16896
    aix4* | aix5*)
 
16897
      if test "$host_cpu" = ia64; then
 
16898
        # On IA64, the linker does run time linking by default, so we don't
 
16899
        # have to do anything special.
 
16900
        aix_use_runtimelinking=no
 
16901
        exp_sym_flag='-Bexport'
 
16902
        no_entry_flag=""
 
16903
      else
 
16904
        # If we're using GNU nm, then we don't want the "-C" option.
 
16905
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16906
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16907
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16908
        else
 
16909
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16910
        fi
 
16911
        aix_use_runtimelinking=no
 
16912
 
 
16913
        # Test if we are trying to use run time linking or normal
 
16914
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16915
        # need to do runtime linking.
 
16916
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16917
          for ld_flag in $LDFLAGS; do
 
16918
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16919
            aix_use_runtimelinking=yes
 
16920
            break
 
16921
          fi
 
16922
          done
 
16923
        esac
 
16924
 
 
16925
        exp_sym_flag='-bexport'
 
16926
        no_entry_flag='-bnoentry'
 
16927
      fi
 
16928
 
 
16929
      # When large executables or shared objects are built, AIX ld can
 
16930
      # have problems creating the table of contents.  If linking a library
 
16931
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16932
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16933
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16934
 
 
16935
      archive_cmds_GCJ=''
 
16936
      hardcode_direct_GCJ=yes
 
16937
      hardcode_libdir_separator_GCJ=':'
 
16938
      link_all_deplibs_GCJ=yes
 
16939
 
 
16940
      if test "$GCC" = yes; then
 
16941
        case $host_os in aix4.012|aix4.012.*)
 
16942
        # We only want to do this on AIX 4.2 and lower, the check
 
16943
        # below for broken collect2 doesn't work under 4.3+
 
16944
          collect2name=`${CC} -print-prog-name=collect2`
 
16945
          if test -f "$collect2name" && \
 
16946
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16947
          then
 
16948
          # We have reworked collect2
 
16949
          hardcode_direct_GCJ=yes
 
16950
          else
 
16951
          # We have old collect2
 
16952
          hardcode_direct_GCJ=unsupported
 
16953
          # It fails to find uninstalled libraries when the uninstalled
 
16954
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16955
          # to unsupported forces relinking
 
16956
          hardcode_minus_L_GCJ=yes
 
16957
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16958
          hardcode_libdir_separator_GCJ=
 
16959
          fi
 
16960
        esac
 
16961
        shared_flag='-shared'
 
16962
      else
 
16963
        # not using gcc
 
16964
        if test "$host_cpu" = ia64; then
 
16965
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16966
        # chokes on -Wl,-G. The following line is correct:
 
16967
          shared_flag='-G'
 
16968
        else
 
16969
        if test "$aix_use_runtimelinking" = yes; then
 
16970
            shared_flag='${wl}-G'
 
16971
          else
 
16972
            shared_flag='${wl}-bM:SRE'
 
16973
        fi
 
16974
        fi
 
16975
      fi
 
16976
 
 
16977
      # It seems that -bexpall does not export symbols beginning with
 
16978
      # underscore (_), so it is better to generate a list of symbols to export.
 
16979
      always_export_symbols_GCJ=yes
 
16980
      if test "$aix_use_runtimelinking" = yes; then
 
16981
        # Warning - without using the other runtime loading flags (-brtl),
 
16982
        # -berok will link without error, but may produce a broken library.
 
16983
        allow_undefined_flag_GCJ='-berok'
 
16984
       # Determine the default libpath from the value encoded in an empty executable.
 
16985
       cat >conftest.$ac_ext <<_ACEOF
 
16986
/* confdefs.h.  */
 
16987
_ACEOF
 
16988
cat confdefs.h >>conftest.$ac_ext
 
16989
cat >>conftest.$ac_ext <<_ACEOF
 
16990
/* end confdefs.h.  */
 
16991
 
 
16992
int
 
16993
main ()
 
16994
{
 
16995
 
 
16996
  ;
 
16997
  return 0;
 
16998
}
 
16999
_ACEOF
 
17000
rm -f conftest.$ac_objext conftest$ac_exeext
 
17001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17002
  (eval $ac_link) 2>conftest.er1
 
17003
  ac_status=$?
 
17004
  grep -v '^ *+' conftest.er1 >conftest.err
 
17005
  rm -f conftest.er1
 
17006
  cat conftest.err >&5
 
17007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17008
  (exit $ac_status); } &&
 
17009
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17011
  (eval $ac_try) 2>&5
 
17012
  ac_status=$?
 
17013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17014
  (exit $ac_status); }; } &&
 
17015
         { ac_try='test -s conftest$ac_exeext'
 
17016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17017
  (eval $ac_try) 2>&5
 
17018
  ac_status=$?
 
17019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17020
  (exit $ac_status); }; }; then
 
17021
 
 
17022
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17023
}'`
 
17024
# Check for a 64-bit object if we didn't find anything.
 
17025
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17026
}'`; fi
 
17027
else
 
17028
  echo "$as_me: failed program was:" >&5
 
17029
sed 's/^/| /' conftest.$ac_ext >&5
 
17030
 
 
17031
fi
 
17032
rm -f conftest.err conftest.$ac_objext \
 
17033
      conftest$ac_exeext conftest.$ac_ext
 
17034
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17035
 
 
17036
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17037
        archive_expsym_cmds_GCJ="\$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"
 
17038
       else
 
17039
        if test "$host_cpu" = ia64; then
 
17040
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17041
          allow_undefined_flag_GCJ="-z nodefs"
 
17042
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17043
        else
 
17044
         # Determine the default libpath from the value encoded in an empty executable.
 
17045
         cat >conftest.$ac_ext <<_ACEOF
 
17046
/* confdefs.h.  */
 
17047
_ACEOF
 
17048
cat confdefs.h >>conftest.$ac_ext
 
17049
cat >>conftest.$ac_ext <<_ACEOF
 
17050
/* end confdefs.h.  */
 
17051
 
 
17052
int
 
17053
main ()
 
17054
{
 
17055
 
 
17056
  ;
 
17057
  return 0;
 
17058
}
 
17059
_ACEOF
 
17060
rm -f conftest.$ac_objext conftest$ac_exeext
 
17061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17062
  (eval $ac_link) 2>conftest.er1
 
17063
  ac_status=$?
 
17064
  grep -v '^ *+' conftest.er1 >conftest.err
 
17065
  rm -f conftest.er1
 
17066
  cat conftest.err >&5
 
17067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17068
  (exit $ac_status); } &&
 
17069
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17071
  (eval $ac_try) 2>&5
 
17072
  ac_status=$?
 
17073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17074
  (exit $ac_status); }; } &&
 
17075
         { ac_try='test -s conftest$ac_exeext'
 
17076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17077
  (eval $ac_try) 2>&5
 
17078
  ac_status=$?
 
17079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17080
  (exit $ac_status); }; }; then
 
17081
 
 
17082
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17083
}'`
 
17084
# Check for a 64-bit object if we didn't find anything.
 
17085
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17086
}'`; fi
 
17087
else
 
17088
  echo "$as_me: failed program was:" >&5
 
17089
sed 's/^/| /' conftest.$ac_ext >&5
 
17090
 
 
17091
fi
 
17092
rm -f conftest.err conftest.$ac_objext \
 
17093
      conftest$ac_exeext conftest.$ac_ext
 
17094
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17095
 
 
17096
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17097
          # Warning - without using the other run time loading flags,
 
17098
          # -berok will link without error, but may produce a broken library.
 
17099
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17100
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17101
          # -bexpall does not export symbols beginning with underscore (_)
 
17102
          always_export_symbols_GCJ=yes
 
17103
          # Exported symbols can be pulled into shared objects from archives
 
17104
          whole_archive_flag_spec_GCJ=' '
 
17105
          archive_cmds_need_lc_GCJ=yes
 
17106
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17107
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17108
        fi
 
17109
      fi
 
17110
      ;;
 
17111
 
 
17112
    amigaos*)
 
17113
      archive_cmds_GCJ='$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)'
 
17114
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17115
      hardcode_minus_L_GCJ=yes
 
17116
      # see comment about different semantics on the GNU ld section
 
17117
      ld_shlibs_GCJ=no
 
17118
      ;;
 
17119
 
 
17120
    bsdi4*)
 
17121
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17122
      ;;
 
17123
 
 
17124
    cygwin* | mingw* | pw32*)
 
17125
      # When not using gcc, we currently assume that we are using
 
17126
      # Microsoft Visual C++.
 
17127
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17128
      # no search path for DLLs.
 
17129
      hardcode_libdir_flag_spec_GCJ=' '
 
17130
      allow_undefined_flag_GCJ=unsupported
 
17131
      # Tell ltmain to make .lib files, not .a files.
 
17132
      libext=lib
 
17133
      # Tell ltmain to make .dll files, not .so files.
 
17134
      shrext=".dll"
 
17135
      # FIXME: Setting linknames here is a bad hack.
 
17136
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17137
      # The linker will automatically build a .lib file if we build a DLL.
 
17138
      old_archive_From_new_cmds_GCJ='true'
 
17139
      # FIXME: Should let the user specify the lib program.
 
17140
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17141
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17142
      enable_shared_with_static_runtimes_GCJ=yes
 
17143
      ;;
 
17144
 
 
17145
    darwin* | rhapsody*)
 
17146
    if test "$GXX" = yes ; then
 
17147
      archive_cmds_need_lc_GCJ=no
 
17148
      case "$host_os" in
 
17149
      rhapsody* | darwin1.[012])
 
17150
        allow_undefined_flag_GCJ='-undefined suppress'
 
17151
        ;;
 
17152
      *) # Darwin 1.3 on
 
17153
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17154
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17155
      else
 
17156
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17157
          10.[012])
 
17158
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17159
            ;;
 
17160
          10.*)
 
17161
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
17162
            ;;
 
17163
        esac
 
17164
      fi
 
17165
        ;;
 
17166
      esac
 
17167
        lt_int_apple_cc_single_mod=no
 
17168
        output_verbose_link_cmd='echo'
 
17169
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17170
          lt_int_apple_cc_single_mod=yes
 
17171
        fi
 
17172
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17173
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17174
        else
 
17175
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17176
      fi
 
17177
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17178
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17179
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17180
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17181
        else
 
17182
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17183
        fi
 
17184
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17185
      hardcode_direct_GCJ=no
 
17186
      hardcode_automatic_GCJ=yes
 
17187
      hardcode_shlibpath_var_GCJ=unsupported
 
17188
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17189
      link_all_deplibs_GCJ=yes
 
17190
    else
 
17191
      ld_shlibs_GCJ=no
 
17192
    fi
 
17193
      ;;
 
17194
 
 
17195
    dgux*)
 
17196
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17197
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17198
      hardcode_shlibpath_var_GCJ=no
 
17199
      ;;
 
17200
 
 
17201
    freebsd1*)
 
17202
      ld_shlibs_GCJ=no
 
17203
      ;;
 
17204
 
 
17205
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17206
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17207
    # does not break anything, and helps significantly (at the cost of a little
 
17208
    # extra space).
 
17209
    freebsd2.2*)
 
17210
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17211
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17212
      hardcode_direct_GCJ=yes
 
17213
      hardcode_shlibpath_var_GCJ=no
 
17214
      ;;
 
17215
 
 
17216
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17217
    freebsd2*)
 
17218
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17219
      hardcode_direct_GCJ=yes
 
17220
      hardcode_minus_L_GCJ=yes
 
17221
      hardcode_shlibpath_var_GCJ=no
 
17222
      ;;
 
17223
 
 
17224
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17225
    freebsd* | kfreebsd*-gnu)
 
17226
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17227
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17228
      hardcode_direct_GCJ=yes
 
17229
      hardcode_shlibpath_var_GCJ=no
 
17230
      ;;
 
17231
 
 
17232
    hpux9*)
 
17233
      if test "$GCC" = yes; then
 
17234
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17235
      else
 
17236
        archive_cmds_GCJ='$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'
 
17237
      fi
 
17238
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17239
      hardcode_libdir_separator_GCJ=:
 
17240
      hardcode_direct_GCJ=yes
 
17241
 
 
17242
      # hardcode_minus_L: Not really in the search PATH,
 
17243
      # but as the default location of the library.
 
17244
      hardcode_minus_L_GCJ=yes
 
17245
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17246
      ;;
 
17247
 
 
17248
    hpux10* | hpux11*)
 
17249
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17250
        case "$host_cpu" in
 
17251
        hppa*64*|ia64*)
 
17252
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17253
          ;;
 
17254
        *)
 
17255
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17256
          ;;
 
17257
        esac
 
17258
      else
 
17259
        case "$host_cpu" in
 
17260
        hppa*64*|ia64*)
 
17261
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17262
          ;;
 
17263
        *)
 
17264
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17265
          ;;
 
17266
        esac
 
17267
      fi
 
17268
      if test "$with_gnu_ld" = no; then
 
17269
        case "$host_cpu" in
 
17270
        hppa*64*)
 
17271
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17272
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17273
          hardcode_libdir_separator_GCJ=:
 
17274
          hardcode_direct_GCJ=no
 
17275
          hardcode_shlibpath_var_GCJ=no
 
17276
          ;;
 
17277
        ia64*)
 
17278
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17279
          hardcode_direct_GCJ=no
 
17280
          hardcode_shlibpath_var_GCJ=no
 
17281
 
 
17282
          # hardcode_minus_L: Not really in the search PATH,
 
17283
          # but as the default location of the library.
 
17284
          hardcode_minus_L_GCJ=yes
 
17285
          ;;
 
17286
        *)
 
17287
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17288
          hardcode_libdir_separator_GCJ=:
 
17289
          hardcode_direct_GCJ=yes
 
17290
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17291
 
 
17292
          # hardcode_minus_L: Not really in the search PATH,
 
17293
          # but as the default location of the library.
 
17294
          hardcode_minus_L_GCJ=yes
 
17295
          ;;
 
17296
        esac
 
17297
      fi
 
17298
      ;;
 
17299
 
 
17300
    irix5* | irix6* | nonstopux*)
 
17301
      if test "$GCC" = yes; then
 
17302
        archive_cmds_GCJ='$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'
 
17303
      else
 
17304
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17305
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17306
      fi
 
17307
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17308
      hardcode_libdir_separator_GCJ=:
 
17309
      link_all_deplibs_GCJ=yes
 
17310
      ;;
 
17311
 
 
17312
    netbsd* | knetbsd*-gnu)
 
17313
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17314
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17315
      else
 
17316
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17317
      fi
 
17318
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17319
      hardcode_direct_GCJ=yes
 
17320
      hardcode_shlibpath_var_GCJ=no
 
17321
      ;;
 
17322
 
 
17323
    newsos6)
 
17324
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17325
      hardcode_direct_GCJ=yes
 
17326
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17327
      hardcode_libdir_separator_GCJ=:
 
17328
      hardcode_shlibpath_var_GCJ=no
 
17329
      ;;
 
17330
 
 
17331
    openbsd*)
 
17332
      hardcode_direct_GCJ=yes
 
17333
      hardcode_shlibpath_var_GCJ=no
 
17334
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17335
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17336
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17337
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17338
      else
 
17339
       case $host_os in
 
17340
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17341
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17342
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17343
           ;;
 
17344
         *)
 
17345
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17346
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17347
           ;;
 
17348
       esac
 
17349
      fi
 
17350
      ;;
 
17351
 
 
17352
    os2*)
 
17353
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17354
      hardcode_minus_L_GCJ=yes
 
17355
      allow_undefined_flag_GCJ=unsupported
 
17356
      archive_cmds_GCJ='$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'
 
17357
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17358
      ;;
 
17359
 
 
17360
    osf3*)
 
17361
      if test "$GCC" = yes; then
 
17362
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17363
        archive_cmds_GCJ='$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'
 
17364
      else
 
17365
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17366
        archive_cmds_GCJ='$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'
 
17367
      fi
 
17368
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17369
      hardcode_libdir_separator_GCJ=:
 
17370
      ;;
 
17371
 
 
17372
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17373
      if test "$GCC" = yes; then
 
17374
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17375
        archive_cmds_GCJ='$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'
 
17376
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17377
      else
 
17378
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17379
        archive_cmds_GCJ='$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'
 
17380
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17381
        $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'
 
17382
 
 
17383
        # Both c and cxx compiler support -rpath directly
 
17384
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17385
      fi
 
17386
      hardcode_libdir_separator_GCJ=:
 
17387
      ;;
 
17388
 
 
17389
    sco3.2v5*)
 
17390
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17391
      hardcode_shlibpath_var_GCJ=no
 
17392
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17393
      runpath_var=LD_RUN_PATH
 
17394
      hardcode_runpath_var=yes
 
17395
      ;;
 
17396
 
 
17397
    solaris*)
 
17398
      no_undefined_flag_GCJ=' -z text'
 
17399
      if test "$GCC" = yes; then
 
17400
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17401
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17402
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17403
      else
 
17404
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17405
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17406
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17407
      fi
 
17408
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17409
      hardcode_shlibpath_var_GCJ=no
 
17410
      case $host_os in
 
17411
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17412
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17413
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17414
      esac
 
17415
      link_all_deplibs_GCJ=yes
 
17416
      ;;
 
17417
 
 
17418
    sunos4*)
 
17419
      if test "x$host_vendor" = xsequent; then
 
17420
        # Use $CC to link under sequent, because it throws in some extra .o
 
17421
        # files that make .init and .fini sections work.
 
17422
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17423
      else
 
17424
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17425
      fi
 
17426
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17427
      hardcode_direct_GCJ=yes
 
17428
      hardcode_minus_L_GCJ=yes
 
17429
      hardcode_shlibpath_var_GCJ=no
 
17430
      ;;
 
17431
 
 
17432
    sysv4)
 
17433
      case $host_vendor in
 
17434
        sni)
 
17435
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17436
          hardcode_direct_GCJ=yes # is this really true???
 
17437
        ;;
 
17438
        siemens)
 
17439
          ## LD is ld it makes a PLAMLIB
 
17440
          ## CC just makes a GrossModule.
 
17441
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17442
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17443
          hardcode_direct_GCJ=no
 
17444
        ;;
 
17445
        motorola)
 
17446
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17447
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17448
        ;;
 
17449
      esac
 
17450
      runpath_var='LD_RUN_PATH'
 
17451
      hardcode_shlibpath_var_GCJ=no
 
17452
      ;;
 
17453
 
 
17454
    sysv4.3*)
 
17455
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17456
      hardcode_shlibpath_var_GCJ=no
 
17457
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17458
      ;;
 
17459
 
 
17460
    sysv4*MP*)
 
17461
      if test -d /usr/nec; then
 
17462
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17463
        hardcode_shlibpath_var_GCJ=no
 
17464
        runpath_var=LD_RUN_PATH
 
17465
        hardcode_runpath_var=yes
 
17466
        ld_shlibs_GCJ=yes
 
17467
      fi
 
17468
      ;;
 
17469
 
 
17470
    sysv4.2uw2*)
 
17471
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17472
      hardcode_direct_GCJ=yes
 
17473
      hardcode_minus_L_GCJ=no
 
17474
      hardcode_shlibpath_var_GCJ=no
 
17475
      hardcode_runpath_var=yes
 
17476
      runpath_var=LD_RUN_PATH
 
17477
      ;;
 
17478
 
 
17479
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17480
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17481
      if test "$GCC" = yes; then
 
17482
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17483
      else
 
17484
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17485
      fi
 
17486
      runpath_var='LD_RUN_PATH'
 
17487
      hardcode_shlibpath_var_GCJ=no
 
17488
      ;;
 
17489
 
 
17490
    sysv5*)
 
17491
      no_undefined_flag_GCJ=' -z text'
 
17492
      # $CC -shared without GNU ld will not create a library from C++
 
17493
      # object files and a static libstdc++, better avoid it by now
 
17494
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17495
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17496
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17497
      hardcode_libdir_flag_spec_GCJ=
 
17498
      hardcode_shlibpath_var_GCJ=no
 
17499
      runpath_var='LD_RUN_PATH'
 
17500
      ;;
 
17501
 
 
17502
    uts4*)
 
17503
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17504
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17505
      hardcode_shlibpath_var_GCJ=no
 
17506
      ;;
 
17507
 
 
17508
    *)
 
17509
      ld_shlibs_GCJ=no
 
17510
      ;;
 
17511
    esac
 
17512
  fi
 
17513
 
 
17514
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17515
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17516
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17517
 
 
17518
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17519
if test "$GCC" = yes; then
 
17520
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17521
fi
 
17522
 
 
17523
#
 
17524
# Do we need to explicitly link libc?
 
17525
#
 
17526
case "x$archive_cmds_need_lc_GCJ" in
 
17527
x|xyes)
 
17528
  # Assume -lc should be added
 
17529
  archive_cmds_need_lc_GCJ=yes
 
17530
 
 
17531
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17532
    case $archive_cmds_GCJ in
 
17533
    *'~'*)
 
17534
      # FIXME: we may have to deal with multi-command sequences.
 
17535
      ;;
 
17536
    '$CC '*)
 
17537
      # Test whether the compiler implicitly links with -lc since on some
 
17538
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17539
      # to ld, don't add -lc before -lgcc.
 
17540
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17541
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17542
      $rm conftest*
 
17543
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17544
 
 
17545
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17546
  (eval $ac_compile) 2>&5
 
17547
  ac_status=$?
 
17548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17549
  (exit $ac_status); } 2>conftest.err; then
 
17550
        soname=conftest
 
17551
        lib=conftest
 
17552
        libobjs=conftest.$ac_objext
 
17553
        deplibs=
 
17554
        wl=$lt_prog_compiler_wl_GCJ
 
17555
        compiler_flags=-v
 
17556
        linker_flags=-v
 
17557
        verstring=
 
17558
        output_objdir=.
 
17559
        libname=conftest
 
17560
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17561
        allow_undefined_flag_GCJ=
 
17562
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17563
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17564
  ac_status=$?
 
17565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17566
  (exit $ac_status); }
 
17567
        then
 
17568
          archive_cmds_need_lc_GCJ=no
 
17569
        else
 
17570
          archive_cmds_need_lc_GCJ=yes
 
17571
        fi
 
17572
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17573
      else
 
17574
        cat conftest.err 1>&5
 
17575
      fi
 
17576
      $rm conftest*
 
17577
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17578
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17579
      ;;
 
17580
    esac
 
17581
  fi
 
17582
  ;;
 
17583
esac
 
17584
 
 
17585
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17586
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17587
library_names_spec=
 
17588
libname_spec='lib$name'
 
17589
soname_spec=
 
17590
shrext=".so"
 
17591
postinstall_cmds=
 
17592
postuninstall_cmds=
 
17593
finish_cmds=
 
17594
finish_eval=
 
17595
shlibpath_var=
 
17596
shlibpath_overrides_runpath=unknown
 
17597
version_type=none
 
17598
dynamic_linker="$host_os ld.so"
 
17599
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17600
if test "$GCC" = yes; then
 
17601
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17602
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17603
    # if the path contains ";" then we assume it to be the separator
 
17604
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17605
    # assumed that no part of a normal pathname contains ";" but that should
 
17606
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17607
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17608
  else
 
17609
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17610
  fi
 
17611
else
 
17612
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17613
fi
 
17614
need_lib_prefix=unknown
 
17615
hardcode_into_libs=no
 
17616
 
 
17617
# when you set need_version to no, make sure it does not cause -set_version
 
17618
# flags to be left without arguments
 
17619
need_version=unknown
 
17620
 
 
17621
case $host_os in
 
17622
aix3*)
 
17623
  version_type=linux
 
17624
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17625
  shlibpath_var=LIBPATH
 
17626
 
 
17627
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17628
  soname_spec='${libname}${release}${shared_ext}$major'
 
17629
  ;;
 
17630
 
 
17631
aix4* | aix5*)
 
17632
  version_type=linux
 
17633
  need_lib_prefix=no
 
17634
  need_version=no
 
17635
  hardcode_into_libs=yes
 
17636
  if test "$host_cpu" = ia64; then
 
17637
    # AIX 5 supports IA64
 
17638
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17639
    shlibpath_var=LD_LIBRARY_PATH
 
17640
  else
 
17641
    # With GCC up to 2.95.x, collect2 would create an import file
 
17642
    # for dependence libraries.  The import file would start with
 
17643
    # the line `#! .'.  This would cause the generated library to
 
17644
    # depend on `.', always an invalid library.  This was fixed in
 
17645
    # development snapshots of GCC prior to 3.0.
 
17646
    case $host_os in
 
17647
      aix4 | aix4.[01] | aix4.[01].*)
 
17648
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17649
           echo ' yes '
 
17650
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17651
        :
 
17652
      else
 
17653
        can_build_shared=no
 
17654
      fi
 
17655
      ;;
 
17656
    esac
 
17657
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17658
    # soname into executable. Probably we can add versioning support to
 
17659
    # collect2, so additional links can be useful in future.
 
17660
    if test "$aix_use_runtimelinking" = yes; then
 
17661
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17662
      # instead of lib<name>.a to let people know that these are not
 
17663
      # typical AIX shared libraries.
 
17664
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17665
    else
 
17666
      # We preserve .a as extension for shared libraries through AIX4.2
 
17667
      # and later when we are not doing run time linking.
 
17668
      library_names_spec='${libname}${release}.a $libname.a'
 
17669
      soname_spec='${libname}${release}${shared_ext}$major'
 
17670
    fi
 
17671
    shlibpath_var=LIBPATH
 
17672
  fi
 
17673
  ;;
 
17674
 
 
17675
amigaos*)
 
17676
  library_names_spec='$libname.ixlibrary $libname.a'
 
17677
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17678
  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'
 
17679
  ;;
 
17680
 
 
17681
beos*)
 
17682
  library_names_spec='${libname}${shared_ext}'
 
17683
  dynamic_linker="$host_os ld.so"
 
17684
  shlibpath_var=LIBRARY_PATH
 
17685
  ;;
 
17686
 
 
17687
bsdi4*)
 
17688
  version_type=linux
 
17689
  need_version=no
 
17690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17691
  soname_spec='${libname}${release}${shared_ext}$major'
 
17692
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17693
  shlibpath_var=LD_LIBRARY_PATH
 
17694
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17695
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17696
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17697
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17698
  # libtool to hard-code these into programs
 
17699
  ;;
 
17700
 
 
17701
cygwin* | mingw* | pw32*)
 
17702
  version_type=windows
 
17703
  shrext=".dll"
 
17704
  need_version=no
 
17705
  need_lib_prefix=no
 
17706
 
 
17707
  case $GCC,$host_os in
 
17708
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17709
    library_names_spec='$libname.dll.a'
 
17710
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17711
    postinstall_cmds='base_file=`basename \${file}`~
 
17712
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17713
      dldir=$destdir/`dirname \$dlpath`~
 
17714
      test -d \$dldir || mkdir -p \$dldir~
 
17715
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17716
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17717
      dlpath=$dir/\$dldll~
 
17718
       $rm \$dlpath'
 
17719
    shlibpath_overrides_runpath=yes
 
17720
 
 
17721
    case $host_os in
 
17722
    cygwin*)
 
17723
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17724
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17725
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17726
      ;;
 
17727
    mingw*)
 
17728
      # MinGW DLLs use traditional 'lib' prefix
 
17729
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17730
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17731
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17732
        # It is most probably a Windows format PATH printed by
 
17733
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17734
        # path with ; separators, and with drive letters. We can handle the
 
17735
        # drive letters (cygwin fileutils understands them), so leave them,
 
17736
        # especially as we might pass files found there to a mingw objdump,
 
17737
        # which wouldn't understand a cygwinified path. Ahh.
 
17738
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17739
      else
 
17740
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17741
      fi
 
17742
      ;;
 
17743
    pw32*)
 
17744
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17745
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17746
      ;;
 
17747
    esac
 
17748
    ;;
 
17749
 
 
17750
  *)
 
17751
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17752
    ;;
 
17753
  esac
 
17754
  dynamic_linker='Win32 ld.exe'
 
17755
  # FIXME: first we should search . and the directory the executable is in
 
17756
  shlibpath_var=PATH
 
17757
  ;;
 
17758
 
 
17759
darwin* | rhapsody*)
 
17760
  dynamic_linker="$host_os dyld"
 
17761
  version_type=darwin
 
17762
  need_lib_prefix=no
 
17763
  need_version=no
 
17764
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17765
  soname_spec='${libname}${release}${major}$shared_ext'
 
17766
  shlibpath_overrides_runpath=yes
 
17767
  shlibpath_var=DYLD_LIBRARY_PATH
 
17768
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17769
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17770
  if test "$GCC" = yes; then
 
17771
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17772
  else
 
17773
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17774
  fi
 
17775
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17776
  ;;
 
17777
 
 
17778
dgux*)
 
17779
  version_type=linux
 
17780
  need_lib_prefix=no
 
17781
  need_version=no
 
17782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17783
  soname_spec='${libname}${release}${shared_ext}$major'
 
17784
  shlibpath_var=LD_LIBRARY_PATH
 
17785
  ;;
 
17786
 
 
17787
freebsd1*)
 
17788
  dynamic_linker=no
 
17789
  ;;
 
17790
 
 
17791
kfreebsd*-gnu)
 
17792
  version_type=linux
 
17793
  need_lib_prefix=no
 
17794
  need_version=no
 
17795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17796
  soname_spec='${libname}${release}${shared_ext}$major'
 
17797
  shlibpath_var=LD_LIBRARY_PATH
 
17798
  shlibpath_overrides_runpath=no
 
17799
  hardcode_into_libs=yes
 
17800
  dynamic_linker='GNU ld.so'
 
17801
  ;;
 
17802
 
 
17803
freebsd*)
 
17804
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17805
  version_type=freebsd-$objformat
 
17806
  case $version_type in
 
17807
    freebsd-elf*)
 
17808
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17809
      need_version=no
 
17810
      need_lib_prefix=no
 
17811
      ;;
 
17812
    freebsd-*)
 
17813
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17814
      need_version=yes
 
17815
      ;;
 
17816
  esac
 
17817
  shlibpath_var=LD_LIBRARY_PATH
 
17818
  case $host_os in
 
17819
  freebsd2*)
 
17820
    shlibpath_overrides_runpath=yes
 
17821
    ;;
 
17822
  freebsd3.01* | freebsdelf3.01*)
 
17823
    shlibpath_overrides_runpath=yes
 
17824
    hardcode_into_libs=yes
 
17825
    ;;
 
17826
  *) # from 3.2 on
 
17827
    shlibpath_overrides_runpath=no
 
17828
    hardcode_into_libs=yes
 
17829
    ;;
 
17830
  esac
 
17831
  ;;
 
17832
 
 
17833
gnu*)
 
17834
  version_type=linux
 
17835
  need_lib_prefix=no
 
17836
  need_version=no
 
17837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17838
  soname_spec='${libname}${release}${shared_ext}$major'
 
17839
  shlibpath_var=LD_LIBRARY_PATH
 
17840
  hardcode_into_libs=yes
 
17841
  ;;
 
17842
 
 
17843
hpux9* | hpux10* | hpux11*)
 
17844
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17845
  # link against other versions.
 
17846
  version_type=sunos
 
17847
  need_lib_prefix=no
 
17848
  need_version=no
 
17849
  case "$host_cpu" in
 
17850
  ia64*)
 
17851
    shrext='.so'
 
17852
    hardcode_into_libs=yes
 
17853
    dynamic_linker="$host_os dld.so"
 
17854
    shlibpath_var=LD_LIBRARY_PATH
 
17855
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17856
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17857
    soname_spec='${libname}${release}${shared_ext}$major'
 
17858
    if test "X$HPUX_IA64_MODE" = X32; then
 
17859
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17860
    else
 
17861
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17862
    fi
 
17863
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17864
    ;;
 
17865
   hppa*64*)
 
17866
     shrext='.sl'
 
17867
     hardcode_into_libs=yes
 
17868
     dynamic_linker="$host_os dld.sl"
 
17869
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17870
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17871
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17872
     soname_spec='${libname}${release}${shared_ext}$major'
 
17873
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17874
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17875
     ;;
 
17876
   *)
 
17877
    shrext='.sl'
 
17878
    dynamic_linker="$host_os dld.sl"
 
17879
    shlibpath_var=SHLIB_PATH
 
17880
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17881
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17882
    soname_spec='${libname}${release}${shared_ext}$major'
 
17883
    ;;
 
17884
  esac
 
17885
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17886
  postinstall_cmds='chmod 555 $lib'
 
17887
  ;;
 
17888
 
 
17889
irix5* | irix6* | nonstopux*)
 
17890
  case $host_os in
 
17891
    nonstopux*) version_type=nonstopux ;;
 
17892
    *)
 
17893
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17894
                version_type=linux
 
17895
        else
 
17896
                version_type=irix
 
17897
        fi ;;
 
17898
  esac
 
17899
  need_lib_prefix=no
 
17900
  need_version=no
 
17901
  soname_spec='${libname}${release}${shared_ext}$major'
 
17902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17903
  case $host_os in
 
17904
  irix5* | nonstopux*)
 
17905
    libsuff= shlibsuff=
 
17906
    ;;
 
17907
  *)
 
17908
    case $LD in # libtool.m4 will add one of these switches to LD
 
17909
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17910
      libsuff= shlibsuff= libmagic=32-bit;;
 
17911
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17912
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17913
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17914
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17915
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17916
    esac
 
17917
    ;;
 
17918
  esac
 
17919
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17920
  shlibpath_overrides_runpath=no
 
17921
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17922
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17923
  hardcode_into_libs=yes
 
17924
  ;;
 
17925
 
 
17926
# No shared lib support for Linux oldld, aout, or coff.
 
17927
linux*oldld* | linux*aout* | linux*coff*)
 
17928
  dynamic_linker=no
 
17929
  ;;
 
17930
 
 
17931
# This must be Linux ELF.
 
17932
linux*)
 
17933
  version_type=linux
 
17934
  need_lib_prefix=no
 
17935
  need_version=no
 
17936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17937
  soname_spec='${libname}${release}${shared_ext}$major'
 
17938
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17939
  shlibpath_var=LD_LIBRARY_PATH
 
17940
  shlibpath_overrides_runpath=no
 
17941
  # This implies no fast_install, which is unacceptable.
 
17942
  # Some rework will be needed to allow for fast_install
 
17943
  # before this can be enabled.
 
17944
  hardcode_into_libs=yes
 
17945
 
 
17946
  # Append ld.so.conf contents to the search path
 
17947
  if test -f /etc/ld.so.conf; then
 
17948
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
17949
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
17950
  fi
 
17951
 
 
17952
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17953
  # powerpc, because MkLinux only supported shared libraries with the
 
17954
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17955
  # most powerpc-linux boxes support dynamic linking these days and
 
17956
  # people can always --disable-shared, the test was removed, and we
 
17957
  # assume the GNU/Linux dynamic linker is in use.
 
17958
  dynamic_linker='GNU/Linux ld.so'
 
17959
  ;;
 
17960
 
 
17961
knetbsd*-gnu)
 
17962
  version_type=linux
 
17963
  need_lib_prefix=no
 
17964
  need_version=no
 
17965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17966
  soname_spec='${libname}${release}${shared_ext}$major'
 
17967
  shlibpath_var=LD_LIBRARY_PATH
 
17968
  shlibpath_overrides_runpath=no
 
17969
  hardcode_into_libs=yes
 
17970
  dynamic_linker='GNU ld.so'
 
17971
  ;;
 
17972
 
 
17973
netbsd*)
 
17974
  version_type=sunos
 
17975
  need_lib_prefix=no
 
17976
  need_version=no
 
17977
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17979
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17980
    dynamic_linker='NetBSD (a.out) ld.so'
 
17981
  else
 
17982
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17983
    soname_spec='${libname}${release}${shared_ext}$major'
 
17984
    dynamic_linker='NetBSD ld.elf_so'
 
17985
  fi
 
17986
  shlibpath_var=LD_LIBRARY_PATH
 
17987
  shlibpath_overrides_runpath=yes
 
17988
  hardcode_into_libs=yes
 
17989
  ;;
 
17990
 
 
17991
newsos6)
 
17992
  version_type=linux
 
17993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17994
  shlibpath_var=LD_LIBRARY_PATH
 
17995
  shlibpath_overrides_runpath=yes
 
17996
  ;;
 
17997
 
 
17998
nto-qnx*)
 
17999
  version_type=linux
 
18000
  need_lib_prefix=no
 
18001
  need_version=no
 
18002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18003
  soname_spec='${libname}${release}${shared_ext}$major'
 
18004
  shlibpath_var=LD_LIBRARY_PATH
 
18005
  shlibpath_overrides_runpath=yes
 
18006
  ;;
 
18007
 
 
18008
openbsd*)
 
18009
  version_type=sunos
 
18010
  need_lib_prefix=no
 
18011
  need_version=yes
 
18012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18013
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18014
  shlibpath_var=LD_LIBRARY_PATH
 
18015
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18016
    case $host_os in
 
18017
      openbsd2.[89] | openbsd2.[89].*)
 
18018
        shlibpath_overrides_runpath=no
 
18019
        ;;
 
18020
      *)
 
18021
        shlibpath_overrides_runpath=yes
 
18022
        ;;
 
18023
      esac
 
18024
  else
 
18025
    shlibpath_overrides_runpath=yes
 
18026
  fi
 
18027
  ;;
 
18028
 
 
18029
os2*)
 
18030
  libname_spec='$name'
 
18031
  shrext=".dll"
 
18032
  need_lib_prefix=no
 
18033
  library_names_spec='$libname${shared_ext} $libname.a'
 
18034
  dynamic_linker='OS/2 ld.exe'
 
18035
  shlibpath_var=LIBPATH
 
18036
  ;;
 
18037
 
 
18038
osf3* | osf4* | osf5*)
 
18039
  version_type=osf
 
18040
  need_lib_prefix=no
 
18041
  need_version=no
 
18042
  soname_spec='${libname}${release}${shared_ext}$major'
 
18043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18044
  shlibpath_var=LD_LIBRARY_PATH
 
18045
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18046
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18047
  ;;
 
18048
 
 
18049
sco3.2v5*)
 
18050
  version_type=osf
 
18051
  soname_spec='${libname}${release}${shared_ext}$major'
 
18052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18053
  shlibpath_var=LD_LIBRARY_PATH
 
18054
  ;;
 
18055
 
 
18056
solaris*)
 
18057
  version_type=linux
 
18058
  need_lib_prefix=no
 
18059
  need_version=no
 
18060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18061
  soname_spec='${libname}${release}${shared_ext}$major'
 
18062
  shlibpath_var=LD_LIBRARY_PATH
 
18063
  shlibpath_overrides_runpath=yes
 
18064
  hardcode_into_libs=yes
 
18065
  # ldd complains unless libraries are executable
 
18066
  postinstall_cmds='chmod +x $lib'
 
18067
  ;;
 
18068
 
 
18069
sunos4*)
 
18070
  version_type=sunos
 
18071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18072
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18073
  shlibpath_var=LD_LIBRARY_PATH
 
18074
  shlibpath_overrides_runpath=yes
 
18075
  if test "$with_gnu_ld" = yes; then
 
18076
    need_lib_prefix=no
 
18077
  fi
 
18078
  need_version=yes
 
18079
  ;;
 
18080
 
 
18081
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18082
  version_type=linux
 
18083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18084
  soname_spec='${libname}${release}${shared_ext}$major'
 
18085
  shlibpath_var=LD_LIBRARY_PATH
 
18086
  case $host_vendor in
 
18087
    sni)
 
18088
      shlibpath_overrides_runpath=no
 
18089
      need_lib_prefix=no
 
18090
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18091
      runpath_var=LD_RUN_PATH
 
18092
      ;;
 
18093
    siemens)
 
18094
      need_lib_prefix=no
 
18095
      ;;
 
18096
    motorola)
 
18097
      need_lib_prefix=no
 
18098
      need_version=no
 
18099
      shlibpath_overrides_runpath=no
 
18100
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18101
      ;;
 
18102
  esac
 
18103
  ;;
 
18104
 
 
18105
sysv4*MP*)
 
18106
  if test -d /usr/nec ;then
 
18107
    version_type=linux
 
18108
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18109
    soname_spec='$libname${shared_ext}.$major'
 
18110
    shlibpath_var=LD_LIBRARY_PATH
 
18111
  fi
 
18112
  ;;
 
18113
 
 
18114
uts4*)
 
18115
  version_type=linux
 
18116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18117
  soname_spec='${libname}${release}${shared_ext}$major'
 
18118
  shlibpath_var=LD_LIBRARY_PATH
 
18119
  ;;
 
18120
 
 
18121
*)
 
18122
  dynamic_linker=no
 
18123
  ;;
 
18124
esac
 
18125
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18126
echo "${ECHO_T}$dynamic_linker" >&6
 
18127
test "$dynamic_linker" = no && can_build_shared=no
 
18128
 
 
18129
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18130
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18131
hardcode_action_GCJ=
 
18132
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18133
   test -n "$runpath_var GCJ" || \
 
18134
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18135
 
 
18136
  # We can hardcode non-existant directories.
 
18137
  if test "$hardcode_direct_GCJ" != no &&
 
18138
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18139
     # have to relink, otherwise we might link with an installed library
 
18140
     # when we should be linking with a yet-to-be-installed one
 
18141
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18142
     test "$hardcode_minus_L_GCJ" != no; then
 
18143
    # Linking always hardcodes the temporary library directory.
 
18144
    hardcode_action_GCJ=relink
 
18145
  else
 
18146
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18147
    hardcode_action_GCJ=immediate
 
18148
  fi
 
18149
else
 
18150
  # We cannot hardcode anything, or else we can only hardcode existing
 
18151
  # directories.
 
18152
  hardcode_action_GCJ=unsupported
 
18153
fi
 
18154
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18155
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18156
 
 
18157
if test "$hardcode_action_GCJ" = relink; then
 
18158
  # Fast installation is not supported
 
18159
  enable_fast_install=no
 
18160
elif test "$shlibpath_overrides_runpath" = yes ||
 
18161
     test "$enable_shared" = no; then
 
18162
  # Fast installation is not necessary
 
18163
  enable_fast_install=needless
 
18164
fi
 
18165
 
 
18166
striplib=
 
18167
old_striplib=
 
18168
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18169
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18170
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18171
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18172
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18173
  echo "$as_me:$LINENO: result: yes" >&5
 
18174
echo "${ECHO_T}yes" >&6
 
18175
else
 
18176
# FIXME - insert some real tests, host_os isn't really good enough
 
18177
  case $host_os in
 
18178
   darwin*)
 
18179
       if test -n "$STRIP" ; then
 
18180
         striplib="$STRIP -x"
 
18181
         echo "$as_me:$LINENO: result: yes" >&5
 
18182
echo "${ECHO_T}yes" >&6
 
18183
       else
 
18184
  echo "$as_me:$LINENO: result: no" >&5
 
18185
echo "${ECHO_T}no" >&6
 
18186
fi
 
18187
       ;;
 
18188
   *)
 
18189
  echo "$as_me:$LINENO: result: no" >&5
 
18190
echo "${ECHO_T}no" >&6
 
18191
    ;;
 
18192
  esac
 
18193
fi
 
18194
 
 
18195
if test "x$enable_dlopen" != xyes; then
 
18196
  enable_dlopen=unknown
 
18197
  enable_dlopen_self=unknown
 
18198
  enable_dlopen_self_static=unknown
 
18199
else
 
18200
  lt_cv_dlopen=no
 
18201
  lt_cv_dlopen_libs=
 
18202
 
 
18203
  case $host_os in
 
18204
  beos*)
 
18205
    lt_cv_dlopen="load_add_on"
 
18206
    lt_cv_dlopen_libs=
 
18207
    lt_cv_dlopen_self=yes
 
18208
    ;;
 
18209
 
 
18210
  mingw* | pw32*)
 
18211
    lt_cv_dlopen="LoadLibrary"
 
18212
    lt_cv_dlopen_libs=
 
18213
   ;;
 
18214
 
 
18215
  cygwin*)
 
18216
    lt_cv_dlopen="dlopen"
 
18217
    lt_cv_dlopen_libs=
 
18218
   ;;
 
18219
 
 
18220
  darwin*)
 
18221
  # if libdl is installed we need to link against it
 
18222
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18226
else
 
18227
  ac_check_lib_save_LIBS=$LIBS
 
18228
LIBS="-ldl  $LIBS"
 
18229
cat >conftest.$ac_ext <<_ACEOF
 
18230
/* confdefs.h.  */
 
18231
_ACEOF
 
18232
cat confdefs.h >>conftest.$ac_ext
 
18233
cat >>conftest.$ac_ext <<_ACEOF
 
18234
/* end confdefs.h.  */
 
18235
 
 
18236
/* Override any gcc2 internal prototype to avoid an error.  */
 
18237
#ifdef __cplusplus
 
18238
extern "C"
 
18239
#endif
 
18240
/* We use char because int might match the return type of a gcc2
 
18241
   builtin and then its argument prototype would still apply.  */
 
18242
char dlopen ();
 
18243
int
 
18244
main ()
 
18245
{
 
18246
dlopen ();
 
18247
  ;
 
18248
  return 0;
 
18249
}
 
18250
_ACEOF
 
18251
rm -f conftest.$ac_objext conftest$ac_exeext
 
18252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18253
  (eval $ac_link) 2>conftest.er1
 
18254
  ac_status=$?
 
18255
  grep -v '^ *+' conftest.er1 >conftest.err
 
18256
  rm -f conftest.er1
 
18257
  cat conftest.err >&5
 
18258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18259
  (exit $ac_status); } &&
 
18260
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18262
  (eval $ac_try) 2>&5
 
18263
  ac_status=$?
 
18264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18265
  (exit $ac_status); }; } &&
 
18266
         { ac_try='test -s conftest$ac_exeext'
 
18267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18268
  (eval $ac_try) 2>&5
 
18269
  ac_status=$?
 
18270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18271
  (exit $ac_status); }; }; then
 
18272
  ac_cv_lib_dl_dlopen=yes
 
18273
else
 
18274
  echo "$as_me: failed program was:" >&5
 
18275
sed 's/^/| /' conftest.$ac_ext >&5
 
18276
 
 
18277
ac_cv_lib_dl_dlopen=no
 
18278
fi
 
18279
rm -f conftest.err conftest.$ac_objext \
 
18280
      conftest$ac_exeext conftest.$ac_ext
 
18281
LIBS=$ac_check_lib_save_LIBS
 
18282
fi
 
18283
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18284
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18285
if test $ac_cv_lib_dl_dlopen = yes; then
 
18286
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18287
else
 
18288
 
 
18289
    lt_cv_dlopen="dyld"
 
18290
    lt_cv_dlopen_libs=
 
18291
    lt_cv_dlopen_self=yes
 
18292
 
 
18293
fi
 
18294
 
 
18295
   ;;
 
18296
 
 
18297
  *)
 
18298
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18299
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18300
if test "${ac_cv_func_shl_load+set}" = set; then
 
18301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18302
else
 
18303
  cat >conftest.$ac_ext <<_ACEOF
 
18304
/* confdefs.h.  */
 
18305
_ACEOF
 
18306
cat confdefs.h >>conftest.$ac_ext
 
18307
cat >>conftest.$ac_ext <<_ACEOF
 
18308
/* end confdefs.h.  */
 
18309
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18310
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18311
#define shl_load innocuous_shl_load
 
18312
 
 
18313
/* System header to define __stub macros and hopefully few prototypes,
 
18314
    which can conflict with char shl_load (); below.
 
18315
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18316
    <limits.h> exists even on freestanding compilers.  */
 
18317
 
 
18318
#ifdef __STDC__
 
18319
# include <limits.h>
 
18320
#else
 
18321
# include <assert.h>
 
18322
#endif
 
18323
 
 
18324
#undef shl_load
 
18325
 
 
18326
/* Override any gcc2 internal prototype to avoid an error.  */
 
18327
#ifdef __cplusplus
 
18328
extern "C"
 
18329
{
 
18330
#endif
 
18331
/* We use char because int might match the return type of a gcc2
 
18332
   builtin and then its argument prototype would still apply.  */
 
18333
char shl_load ();
 
18334
/* The GNU C library defines this for functions which it implements
 
18335
    to always fail with ENOSYS.  Some functions are actually named
 
18336
    something starting with __ and the normal name is an alias.  */
 
18337
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18338
choke me
 
18339
#else
 
18340
char (*f) () = shl_load;
 
18341
#endif
 
18342
#ifdef __cplusplus
 
18343
}
 
18344
#endif
 
18345
 
 
18346
int
 
18347
main ()
 
18348
{
 
18349
return f != shl_load;
 
18350
  ;
 
18351
  return 0;
 
18352
}
 
18353
_ACEOF
 
18354
rm -f conftest.$ac_objext conftest$ac_exeext
 
18355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18356
  (eval $ac_link) 2>conftest.er1
 
18357
  ac_status=$?
 
18358
  grep -v '^ *+' conftest.er1 >conftest.err
 
18359
  rm -f conftest.er1
 
18360
  cat conftest.err >&5
 
18361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18362
  (exit $ac_status); } &&
 
18363
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18365
  (eval $ac_try) 2>&5
 
18366
  ac_status=$?
 
18367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18368
  (exit $ac_status); }; } &&
 
18369
         { ac_try='test -s conftest$ac_exeext'
 
18370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18371
  (eval $ac_try) 2>&5
 
18372
  ac_status=$?
 
18373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18374
  (exit $ac_status); }; }; then
 
18375
  ac_cv_func_shl_load=yes
 
18376
else
 
18377
  echo "$as_me: failed program was:" >&5
 
18378
sed 's/^/| /' conftest.$ac_ext >&5
 
18379
 
 
18380
ac_cv_func_shl_load=no
 
18381
fi
 
18382
rm -f conftest.err conftest.$ac_objext \
 
18383
      conftest$ac_exeext conftest.$ac_ext
 
18384
fi
 
18385
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18386
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18387
if test $ac_cv_func_shl_load = yes; then
 
18388
  lt_cv_dlopen="shl_load"
 
18389
else
 
18390
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18391
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18392
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18394
else
 
18395
  ac_check_lib_save_LIBS=$LIBS
 
18396
LIBS="-ldld  $LIBS"
 
18397
cat >conftest.$ac_ext <<_ACEOF
 
18398
/* confdefs.h.  */
 
18399
_ACEOF
 
18400
cat confdefs.h >>conftest.$ac_ext
 
18401
cat >>conftest.$ac_ext <<_ACEOF
 
18402
/* end confdefs.h.  */
 
18403
 
 
18404
/* Override any gcc2 internal prototype to avoid an error.  */
 
18405
#ifdef __cplusplus
 
18406
extern "C"
 
18407
#endif
 
18408
/* We use char because int might match the return type of a gcc2
 
18409
   builtin and then its argument prototype would still apply.  */
 
18410
char shl_load ();
 
18411
int
 
18412
main ()
 
18413
{
 
18414
shl_load ();
 
18415
  ;
 
18416
  return 0;
 
18417
}
 
18418
_ACEOF
 
18419
rm -f conftest.$ac_objext conftest$ac_exeext
 
18420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18421
  (eval $ac_link) 2>conftest.er1
 
18422
  ac_status=$?
 
18423
  grep -v '^ *+' conftest.er1 >conftest.err
 
18424
  rm -f conftest.er1
 
18425
  cat conftest.err >&5
 
18426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18427
  (exit $ac_status); } &&
 
18428
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18430
  (eval $ac_try) 2>&5
 
18431
  ac_status=$?
 
18432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18433
  (exit $ac_status); }; } &&
 
18434
         { ac_try='test -s conftest$ac_exeext'
 
18435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18436
  (eval $ac_try) 2>&5
 
18437
  ac_status=$?
 
18438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18439
  (exit $ac_status); }; }; then
 
18440
  ac_cv_lib_dld_shl_load=yes
 
18441
else
 
18442
  echo "$as_me: failed program was:" >&5
 
18443
sed 's/^/| /' conftest.$ac_ext >&5
 
18444
 
 
18445
ac_cv_lib_dld_shl_load=no
 
18446
fi
 
18447
rm -f conftest.err conftest.$ac_objext \
 
18448
      conftest$ac_exeext conftest.$ac_ext
 
18449
LIBS=$ac_check_lib_save_LIBS
 
18450
fi
 
18451
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18452
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18453
if test $ac_cv_lib_dld_shl_load = yes; then
 
18454
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18455
else
 
18456
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18457
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18458
if test "${ac_cv_func_dlopen+set}" = set; then
 
18459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18460
else
 
18461
  cat >conftest.$ac_ext <<_ACEOF
 
18462
/* confdefs.h.  */
 
18463
_ACEOF
 
18464
cat confdefs.h >>conftest.$ac_ext
 
18465
cat >>conftest.$ac_ext <<_ACEOF
 
18466
/* end confdefs.h.  */
 
18467
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18468
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18469
#define dlopen innocuous_dlopen
 
18470
 
 
18471
/* System header to define __stub macros and hopefully few prototypes,
 
18472
    which can conflict with char dlopen (); below.
 
18473
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18474
    <limits.h> exists even on freestanding compilers.  */
 
18475
 
 
18476
#ifdef __STDC__
 
18477
# include <limits.h>
 
18478
#else
 
18479
# include <assert.h>
 
18480
#endif
 
18481
 
 
18482
#undef dlopen
 
18483
 
 
18484
/* Override any gcc2 internal prototype to avoid an error.  */
 
18485
#ifdef __cplusplus
 
18486
extern "C"
 
18487
{
 
18488
#endif
 
18489
/* We use char because int might match the return type of a gcc2
 
18490
   builtin and then its argument prototype would still apply.  */
 
18491
char dlopen ();
 
18492
/* The GNU C library defines this for functions which it implements
 
18493
    to always fail with ENOSYS.  Some functions are actually named
 
18494
    something starting with __ and the normal name is an alias.  */
 
18495
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18496
choke me
 
18497
#else
 
18498
char (*f) () = dlopen;
 
18499
#endif
 
18500
#ifdef __cplusplus
 
18501
}
 
18502
#endif
 
18503
 
 
18504
int
 
18505
main ()
 
18506
{
 
18507
return f != dlopen;
 
18508
  ;
 
18509
  return 0;
 
18510
}
 
18511
_ACEOF
 
18512
rm -f conftest.$ac_objext conftest$ac_exeext
 
18513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18514
  (eval $ac_link) 2>conftest.er1
 
18515
  ac_status=$?
 
18516
  grep -v '^ *+' conftest.er1 >conftest.err
 
18517
  rm -f conftest.er1
 
18518
  cat conftest.err >&5
 
18519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18520
  (exit $ac_status); } &&
 
18521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18523
  (eval $ac_try) 2>&5
 
18524
  ac_status=$?
 
18525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18526
  (exit $ac_status); }; } &&
 
18527
         { ac_try='test -s conftest$ac_exeext'
 
18528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18529
  (eval $ac_try) 2>&5
 
18530
  ac_status=$?
 
18531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18532
  (exit $ac_status); }; }; then
 
18533
  ac_cv_func_dlopen=yes
 
18534
else
 
18535
  echo "$as_me: failed program was:" >&5
 
18536
sed 's/^/| /' conftest.$ac_ext >&5
 
18537
 
 
18538
ac_cv_func_dlopen=no
 
18539
fi
 
18540
rm -f conftest.err conftest.$ac_objext \
 
18541
      conftest$ac_exeext conftest.$ac_ext
 
18542
fi
 
18543
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18544
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18545
if test $ac_cv_func_dlopen = yes; then
 
18546
  lt_cv_dlopen="dlopen"
 
18547
else
 
18548
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18549
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18550
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18552
else
 
18553
  ac_check_lib_save_LIBS=$LIBS
 
18554
LIBS="-ldl  $LIBS"
 
18555
cat >conftest.$ac_ext <<_ACEOF
 
18556
/* confdefs.h.  */
 
18557
_ACEOF
 
18558
cat confdefs.h >>conftest.$ac_ext
 
18559
cat >>conftest.$ac_ext <<_ACEOF
 
18560
/* end confdefs.h.  */
 
18561
 
 
18562
/* Override any gcc2 internal prototype to avoid an error.  */
 
18563
#ifdef __cplusplus
 
18564
extern "C"
 
18565
#endif
 
18566
/* We use char because int might match the return type of a gcc2
 
18567
   builtin and then its argument prototype would still apply.  */
 
18568
char dlopen ();
 
18569
int
 
18570
main ()
 
18571
{
 
18572
dlopen ();
 
18573
  ;
 
18574
  return 0;
 
18575
}
 
18576
_ACEOF
 
18577
rm -f conftest.$ac_objext conftest$ac_exeext
 
18578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18579
  (eval $ac_link) 2>conftest.er1
 
18580
  ac_status=$?
 
18581
  grep -v '^ *+' conftest.er1 >conftest.err
 
18582
  rm -f conftest.er1
 
18583
  cat conftest.err >&5
 
18584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18585
  (exit $ac_status); } &&
 
18586
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18588
  (eval $ac_try) 2>&5
 
18589
  ac_status=$?
 
18590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18591
  (exit $ac_status); }; } &&
 
18592
         { ac_try='test -s conftest$ac_exeext'
 
18593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18594
  (eval $ac_try) 2>&5
 
18595
  ac_status=$?
 
18596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18597
  (exit $ac_status); }; }; then
 
18598
  ac_cv_lib_dl_dlopen=yes
 
18599
else
 
18600
  echo "$as_me: failed program was:" >&5
 
18601
sed 's/^/| /' conftest.$ac_ext >&5
 
18602
 
 
18603
ac_cv_lib_dl_dlopen=no
 
18604
fi
 
18605
rm -f conftest.err conftest.$ac_objext \
 
18606
      conftest$ac_exeext conftest.$ac_ext
 
18607
LIBS=$ac_check_lib_save_LIBS
 
18608
fi
 
18609
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18610
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18611
if test $ac_cv_lib_dl_dlopen = yes; then
 
18612
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18613
else
 
18614
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18615
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18616
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18618
else
 
18619
  ac_check_lib_save_LIBS=$LIBS
 
18620
LIBS="-lsvld  $LIBS"
 
18621
cat >conftest.$ac_ext <<_ACEOF
 
18622
/* confdefs.h.  */
 
18623
_ACEOF
 
18624
cat confdefs.h >>conftest.$ac_ext
 
18625
cat >>conftest.$ac_ext <<_ACEOF
 
18626
/* end confdefs.h.  */
 
18627
 
 
18628
/* Override any gcc2 internal prototype to avoid an error.  */
 
18629
#ifdef __cplusplus
 
18630
extern "C"
 
18631
#endif
 
18632
/* We use char because int might match the return type of a gcc2
 
18633
   builtin and then its argument prototype would still apply.  */
 
18634
char dlopen ();
 
18635
int
 
18636
main ()
 
18637
{
 
18638
dlopen ();
 
18639
  ;
 
18640
  return 0;
 
18641
}
 
18642
_ACEOF
 
18643
rm -f conftest.$ac_objext conftest$ac_exeext
 
18644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18645
  (eval $ac_link) 2>conftest.er1
 
18646
  ac_status=$?
 
18647
  grep -v '^ *+' conftest.er1 >conftest.err
 
18648
  rm -f conftest.er1
 
18649
  cat conftest.err >&5
 
18650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18651
  (exit $ac_status); } &&
 
18652
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18654
  (eval $ac_try) 2>&5
 
18655
  ac_status=$?
 
18656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18657
  (exit $ac_status); }; } &&
 
18658
         { ac_try='test -s conftest$ac_exeext'
 
18659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18660
  (eval $ac_try) 2>&5
 
18661
  ac_status=$?
 
18662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18663
  (exit $ac_status); }; }; then
 
18664
  ac_cv_lib_svld_dlopen=yes
 
18665
else
 
18666
  echo "$as_me: failed program was:" >&5
 
18667
sed 's/^/| /' conftest.$ac_ext >&5
 
18668
 
 
18669
ac_cv_lib_svld_dlopen=no
 
18670
fi
 
18671
rm -f conftest.err conftest.$ac_objext \
 
18672
      conftest$ac_exeext conftest.$ac_ext
 
18673
LIBS=$ac_check_lib_save_LIBS
 
18674
fi
 
18675
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18676
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18677
if test $ac_cv_lib_svld_dlopen = yes; then
 
18678
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18679
else
 
18680
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18681
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18682
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18684
else
 
18685
  ac_check_lib_save_LIBS=$LIBS
 
18686
LIBS="-ldld  $LIBS"
 
18687
cat >conftest.$ac_ext <<_ACEOF
 
18688
/* confdefs.h.  */
 
18689
_ACEOF
 
18690
cat confdefs.h >>conftest.$ac_ext
 
18691
cat >>conftest.$ac_ext <<_ACEOF
 
18692
/* end confdefs.h.  */
 
18693
 
 
18694
/* Override any gcc2 internal prototype to avoid an error.  */
 
18695
#ifdef __cplusplus
 
18696
extern "C"
 
18697
#endif
 
18698
/* We use char because int might match the return type of a gcc2
 
18699
   builtin and then its argument prototype would still apply.  */
 
18700
char dld_link ();
 
18701
int
 
18702
main ()
 
18703
{
 
18704
dld_link ();
 
18705
  ;
 
18706
  return 0;
 
18707
}
 
18708
_ACEOF
 
18709
rm -f conftest.$ac_objext conftest$ac_exeext
 
18710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18711
  (eval $ac_link) 2>conftest.er1
 
18712
  ac_status=$?
 
18713
  grep -v '^ *+' conftest.er1 >conftest.err
 
18714
  rm -f conftest.er1
 
18715
  cat conftest.err >&5
 
18716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18717
  (exit $ac_status); } &&
 
18718
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18720
  (eval $ac_try) 2>&5
 
18721
  ac_status=$?
 
18722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18723
  (exit $ac_status); }; } &&
 
18724
         { ac_try='test -s conftest$ac_exeext'
 
18725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18726
  (eval $ac_try) 2>&5
 
18727
  ac_status=$?
 
18728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18729
  (exit $ac_status); }; }; then
 
18730
  ac_cv_lib_dld_dld_link=yes
 
18731
else
 
18732
  echo "$as_me: failed program was:" >&5
 
18733
sed 's/^/| /' conftest.$ac_ext >&5
 
18734
 
 
18735
ac_cv_lib_dld_dld_link=no
 
18736
fi
 
18737
rm -f conftest.err conftest.$ac_objext \
 
18738
      conftest$ac_exeext conftest.$ac_ext
 
18739
LIBS=$ac_check_lib_save_LIBS
 
18740
fi
 
18741
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18742
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18743
if test $ac_cv_lib_dld_dld_link = yes; then
 
18744
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18745
fi
 
18746
 
 
18747
 
 
18748
fi
 
18749
 
 
18750
 
 
18751
fi
 
18752
 
 
18753
 
 
18754
fi
 
18755
 
 
18756
 
 
18757
fi
 
18758
 
 
18759
 
 
18760
fi
 
18761
 
 
18762
    ;;
 
18763
  esac
 
18764
 
 
18765
  if test "x$lt_cv_dlopen" != xno; then
 
18766
    enable_dlopen=yes
 
18767
  else
 
18768
    enable_dlopen=no
 
18769
  fi
 
18770
 
 
18771
  case $lt_cv_dlopen in
 
18772
  dlopen)
 
18773
    save_CPPFLAGS="$CPPFLAGS"
 
18774
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18775
 
 
18776
    save_LDFLAGS="$LDFLAGS"
 
18777
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18778
 
 
18779
    save_LIBS="$LIBS"
 
18780
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18781
 
 
18782
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18783
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18784
if test "${lt_cv_dlopen_self+set}" = set; then
 
18785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18786
else
 
18787
          if test "$cross_compiling" = yes; then :
 
18788
  lt_cv_dlopen_self=cross
 
18789
else
 
18790
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18791
  lt_status=$lt_dlunknown
 
18792
  cat > conftest.$ac_ext <<EOF
 
18793
#line 18793 "configure"
 
18794
#include "confdefs.h"
 
18795
 
 
18796
#if HAVE_DLFCN_H
 
18797
#include <dlfcn.h>
 
18798
#endif
 
18799
 
 
18800
#include <stdio.h>
 
18801
 
 
18802
#ifdef RTLD_GLOBAL
 
18803
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18804
#else
 
18805
#  ifdef DL_GLOBAL
 
18806
#    define LT_DLGLOBAL         DL_GLOBAL
 
18807
#  else
 
18808
#    define LT_DLGLOBAL         0
 
18809
#  endif
 
18810
#endif
 
18811
 
 
18812
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18813
   find out it does not work in some platform. */
 
18814
#ifndef LT_DLLAZY_OR_NOW
 
18815
#  ifdef RTLD_LAZY
 
18816
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18817
#  else
 
18818
#    ifdef DL_LAZY
 
18819
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18820
#    else
 
18821
#      ifdef RTLD_NOW
 
18822
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18823
#      else
 
18824
#        ifdef DL_NOW
 
18825
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18826
#        else
 
18827
#          define LT_DLLAZY_OR_NOW      0
 
18828
#        endif
 
18829
#      endif
 
18830
#    endif
 
18831
#  endif
 
18832
#endif
 
18833
 
 
18834
#ifdef __cplusplus
 
18835
extern "C" void exit (int);
 
18836
#endif
 
18837
 
 
18838
void fnord() { int i=42;}
 
18839
int main ()
 
18840
{
 
18841
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18842
  int status = $lt_dlunknown;
 
18843
 
 
18844
  if (self)
 
18845
    {
 
18846
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18847
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18848
      /* dlclose (self); */
 
18849
    }
 
18850
 
 
18851
    exit (status);
 
18852
}
 
18853
EOF
 
18854
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18855
  (eval $ac_link) 2>&5
 
18856
  ac_status=$?
 
18857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18858
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18859
    (./conftest; exit; ) 2>/dev/null
 
18860
    lt_status=$?
 
18861
    case x$lt_status in
 
18862
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18863
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18864
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18865
    esac
 
18866
  else :
 
18867
    # compilation failed
 
18868
    lt_cv_dlopen_self=no
 
18869
  fi
 
18870
fi
 
18871
rm -fr conftest*
 
18872
 
 
18873
 
 
18874
fi
 
18875
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18876
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18877
 
 
18878
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18879
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18880
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18881
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18882
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18884
else
 
18885
          if test "$cross_compiling" = yes; then :
 
18886
  lt_cv_dlopen_self_static=cross
 
18887
else
 
18888
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18889
  lt_status=$lt_dlunknown
 
18890
  cat > conftest.$ac_ext <<EOF
 
18891
#line 18891 "configure"
 
18892
#include "confdefs.h"
 
18893
 
 
18894
#if HAVE_DLFCN_H
 
18895
#include <dlfcn.h>
 
18896
#endif
 
18897
 
 
18898
#include <stdio.h>
 
18899
 
 
18900
#ifdef RTLD_GLOBAL
 
18901
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18902
#else
 
18903
#  ifdef DL_GLOBAL
 
18904
#    define LT_DLGLOBAL         DL_GLOBAL
 
18905
#  else
 
18906
#    define LT_DLGLOBAL         0
 
18907
#  endif
 
18908
#endif
 
18909
 
 
18910
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18911
   find out it does not work in some platform. */
 
18912
#ifndef LT_DLLAZY_OR_NOW
 
18913
#  ifdef RTLD_LAZY
 
18914
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18915
#  else
 
18916
#    ifdef DL_LAZY
 
18917
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18918
#    else
 
18919
#      ifdef RTLD_NOW
 
18920
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18921
#      else
 
18922
#        ifdef DL_NOW
 
18923
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18924
#        else
 
18925
#          define LT_DLLAZY_OR_NOW      0
 
18926
#        endif
 
18927
#      endif
 
18928
#    endif
 
18929
#  endif
 
18930
#endif
 
18931
 
 
18932
#ifdef __cplusplus
 
18933
extern "C" void exit (int);
 
18934
#endif
 
18935
 
 
18936
void fnord() { int i=42;}
 
18937
int main ()
 
18938
{
 
18939
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18940
  int status = $lt_dlunknown;
 
18941
 
 
18942
  if (self)
 
18943
    {
 
18944
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18945
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18946
      /* dlclose (self); */
 
18947
    }
 
18948
 
 
18949
    exit (status);
 
18950
}
 
18951
EOF
 
18952
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18953
  (eval $ac_link) 2>&5
 
18954
  ac_status=$?
 
18955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18956
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18957
    (./conftest; exit; ) 2>/dev/null
 
18958
    lt_status=$?
 
18959
    case x$lt_status in
 
18960
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18961
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18962
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18963
    esac
 
18964
  else :
 
18965
    # compilation failed
 
18966
    lt_cv_dlopen_self_static=no
 
18967
  fi
 
18968
fi
 
18969
rm -fr conftest*
 
18970
 
 
18971
 
 
18972
fi
 
18973
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18974
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18975
    fi
 
18976
 
 
18977
    CPPFLAGS="$save_CPPFLAGS"
 
18978
    LDFLAGS="$save_LDFLAGS"
 
18979
    LIBS="$save_LIBS"
 
18980
    ;;
 
18981
  esac
 
18982
 
 
18983
  case $lt_cv_dlopen_self in
 
18984
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18985
  *) enable_dlopen_self=unknown ;;
 
18986
  esac
 
18987
 
 
18988
  case $lt_cv_dlopen_self_static in
 
18989
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18990
  *) enable_dlopen_self_static=unknown ;;
 
18991
  esac
 
18992
fi
 
18993
 
 
18994
 
 
18995
# The else clause should only fire when bootstrapping the
 
18996
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18997
# with your package, and you will get complaints that there are
 
18998
# no rules to generate ltmain.sh.
 
18999
if test -f "$ltmain"; then
 
19000
  # See if we are running on zsh, and set the options which allow our commands through
 
19001
  # without removal of \ escapes.
 
19002
  if test -n "${ZSH_VERSION+set}" ; then
 
19003
    setopt NO_GLOB_SUBST
 
19004
  fi
 
19005
  # Now quote all the things that may contain metacharacters while being
 
19006
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19007
  # variables and quote the copies for generation of the libtool script.
 
19008
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19009
    SED SHELL STRIP \
 
19010
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19011
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19012
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19013
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19014
    lt_cv_sys_global_symbol_to_c_name_address \
 
19015
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19016
    old_postinstall_cmds old_postuninstall_cmds \
 
19017
    compiler_GCJ \
 
19018
    CC_GCJ \
 
19019
    LD_GCJ \
 
19020
    lt_prog_compiler_wl_GCJ \
 
19021
    lt_prog_compiler_pic_GCJ \
 
19022
    lt_prog_compiler_static_GCJ \
 
19023
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19024
    export_dynamic_flag_spec_GCJ \
 
19025
    thread_safe_flag_spec_GCJ \
 
19026
    whole_archive_flag_spec_GCJ \
 
19027
    enable_shared_with_static_runtimes_GCJ \
 
19028
    old_archive_cmds_GCJ \
 
19029
    old_archive_from_new_cmds_GCJ \
 
19030
    predep_objects_GCJ \
 
19031
    postdep_objects_GCJ \
 
19032
    predeps_GCJ \
 
19033
    postdeps_GCJ \
 
19034
    compiler_lib_search_path_GCJ \
 
19035
    archive_cmds_GCJ \
 
19036
    archive_expsym_cmds_GCJ \
 
19037
    postinstall_cmds_GCJ \
 
19038
    postuninstall_cmds_GCJ \
 
19039
    old_archive_from_expsyms_cmds_GCJ \
 
19040
    allow_undefined_flag_GCJ \
 
19041
    no_undefined_flag_GCJ \
 
19042
    export_symbols_cmds_GCJ \
 
19043
    hardcode_libdir_flag_spec_GCJ \
 
19044
    hardcode_libdir_flag_spec_ld_GCJ \
 
19045
    hardcode_libdir_separator_GCJ \
 
19046
    hardcode_automatic_GCJ \
 
19047
    module_cmds_GCJ \
 
19048
    module_expsym_cmds_GCJ \
 
19049
    lt_cv_prog_compiler_c_o_GCJ \
 
19050
    exclude_expsyms_GCJ \
 
19051
    include_expsyms_GCJ; do
 
19052
 
 
19053
    case $var in
 
19054
    old_archive_cmds_GCJ | \
 
19055
    old_archive_from_new_cmds_GCJ | \
 
19056
    archive_cmds_GCJ | \
 
19057
    archive_expsym_cmds_GCJ | \
 
19058
    module_cmds_GCJ | \
 
19059
    module_expsym_cmds_GCJ | \
 
19060
    old_archive_from_expsyms_cmds_GCJ | \
 
19061
    export_symbols_cmds_GCJ | \
 
19062
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19063
    postinstall_cmds | postuninstall_cmds | \
 
19064
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19065
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19066
      # Double-quote double-evaled strings.
 
19067
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19068
      ;;
 
19069
    *)
 
19070
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19071
      ;;
 
19072
    esac
 
19073
  done
 
19074
 
 
19075
  case $lt_echo in
 
19076
  *'\$0 --fallback-echo"')
 
19077
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19078
    ;;
 
19079
  esac
 
19080
 
 
19081
cfgfile="$ofile"
 
19082
 
 
19083
  cat <<__EOF__ >> "$cfgfile"
 
19084
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19085
 
 
19086
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19087
 
 
19088
# Shell to use when invoking shell scripts.
 
19089
SHELL=$lt_SHELL
 
19090
 
 
19091
# Whether or not to build shared libraries.
 
19092
build_libtool_libs=$enable_shared
 
19093
 
 
19094
# Whether or not to build static libraries.
 
19095
build_old_libs=$enable_static
 
19096
 
 
19097
# Whether or not to add -lc for building shared libraries.
 
19098
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19099
 
 
19100
# Whether or not to disallow shared libs when runtime libs are static
 
19101
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19102
 
 
19103
# Whether or not to optimize for fast installation.
 
19104
fast_install=$enable_fast_install
 
19105
 
 
19106
# The host system.
 
19107
host_alias=$host_alias
 
19108
host=$host
 
19109
 
 
19110
# An echo program that does not interpret backslashes.
 
19111
echo=$lt_echo
 
19112
 
 
19113
# The archiver.
 
19114
AR=$lt_AR
 
19115
AR_FLAGS=$lt_AR_FLAGS
 
19116
 
 
19117
# A C compiler.
 
19118
LTCC=$lt_LTCC
 
19119
 
 
19120
# A language-specific compiler.
 
19121
CC=$lt_compiler_GCJ
 
19122
 
 
19123
# Is the compiler the GNU C compiler?
 
19124
with_gcc=$GCC_GCJ
 
19125
 
 
19126
# An ERE matcher.
 
19127
EGREP=$lt_EGREP
 
19128
 
 
19129
# The linker used to build libraries.
 
19130
LD=$lt_LD_GCJ
 
19131
 
 
19132
# Whether we need hard or soft links.
 
19133
LN_S=$lt_LN_S
 
19134
 
 
19135
# A BSD-compatible nm program.
 
19136
NM=$lt_NM
 
19137
 
 
19138
# A symbol stripping program
 
19139
STRIP=$lt_STRIP
 
19140
 
 
19141
# Used to examine libraries when file_magic_cmd begins "file"
 
19142
MAGIC_CMD=$MAGIC_CMD
 
19143
 
 
19144
# Used on cygwin: DLL creation program.
 
19145
DLLTOOL="$DLLTOOL"
 
19146
 
 
19147
# Used on cygwin: object dumper.
 
19148
OBJDUMP="$OBJDUMP"
 
19149
 
 
19150
# Used on cygwin: assembler.
 
19151
AS="$AS"
 
19152
 
 
19153
# The name of the directory that contains temporary libtool files.
 
19154
objdir=$objdir
 
19155
 
 
19156
# How to create reloadable object files.
 
19157
reload_flag=$lt_reload_flag
 
19158
reload_cmds=$lt_reload_cmds
 
19159
 
 
19160
# How to pass a linker flag through the compiler.
 
19161
wl=$lt_lt_prog_compiler_wl_GCJ
 
19162
 
 
19163
# Object file suffix (normally "o").
 
19164
objext="$ac_objext"
 
19165
 
 
19166
# Old archive suffix (normally "a").
 
19167
libext="$libext"
 
19168
 
 
19169
# Shared library suffix (normally ".so").
 
19170
shrext='$shrext'
 
19171
 
 
19172
# Executable file suffix (normally "").
 
19173
exeext="$exeext"
 
19174
 
 
19175
# Additional compiler flags for building library objects.
 
19176
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19177
pic_mode=$pic_mode
 
19178
 
 
19179
# What is the maximum length of a command?
 
19180
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19181
 
 
19182
# Does compiler simultaneously support -c and -o options?
 
19183
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19184
 
 
19185
# Must we lock files when doing compilation ?
 
19186
need_locks=$lt_need_locks
 
19187
 
 
19188
# Do we need the lib prefix for modules?
 
19189
need_lib_prefix=$need_lib_prefix
 
19190
 
 
19191
# Do we need a version for libraries?
 
19192
need_version=$need_version
 
19193
 
 
19194
# Whether dlopen is supported.
 
19195
dlopen_support=$enable_dlopen
 
19196
 
 
19197
# Whether dlopen of programs is supported.
 
19198
dlopen_self=$enable_dlopen_self
 
19199
 
 
19200
# Whether dlopen of statically linked programs is supported.
 
19201
dlopen_self_static=$enable_dlopen_self_static
 
19202
 
 
19203
# Compiler flag to prevent dynamic linking.
 
19204
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19205
 
 
19206
# Compiler flag to turn off builtin functions.
 
19207
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19208
 
 
19209
# Compiler flag to allow reflexive dlopens.
 
19210
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19211
 
 
19212
# Compiler flag to generate shared objects directly from archives.
 
19213
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19214
 
 
19215
# Compiler flag to generate thread-safe objects.
 
19216
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19217
 
 
19218
# Library versioning type.
 
19219
version_type=$version_type
 
19220
 
 
19221
# Format of library name prefix.
 
19222
libname_spec=$lt_libname_spec
 
19223
 
 
19224
# List of archive names.  First name is the real one, the rest are links.
 
19225
# The last name is the one that the linker finds with -lNAME.
 
19226
library_names_spec=$lt_library_names_spec
 
19227
 
 
19228
# The coded name of the library, if different from the real name.
 
19229
soname_spec=$lt_soname_spec
 
19230
 
 
19231
# Commands used to build and install an old-style archive.
 
19232
RANLIB=$lt_RANLIB
 
19233
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19234
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19235
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19236
 
 
19237
# Create an old-style archive from a shared archive.
 
19238
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19239
 
 
19240
# Create a temporary old-style archive to link instead of a shared archive.
 
19241
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19242
 
 
19243
# Commands used to build and install a shared archive.
 
19244
archive_cmds=$lt_archive_cmds_GCJ
 
19245
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19246
postinstall_cmds=$lt_postinstall_cmds
 
19247
postuninstall_cmds=$lt_postuninstall_cmds
 
19248
 
 
19249
# Commands used to build a loadable module (assumed same as above if empty)
 
19250
module_cmds=$lt_module_cmds_GCJ
 
19251
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19252
 
 
19253
# Commands to strip libraries.
 
19254
old_striplib=$lt_old_striplib
 
19255
striplib=$lt_striplib
 
19256
 
 
19257
# Dependencies to place before the objects being linked to create a
 
19258
# shared library.
 
19259
predep_objects=$lt_predep_objects_GCJ
 
19260
 
 
19261
# Dependencies to place after the objects being linked to create a
 
19262
# shared library.
 
19263
postdep_objects=$lt_postdep_objects_GCJ
 
19264
 
 
19265
# Dependencies to place before the objects being linked to create a
 
19266
# shared library.
 
19267
predeps=$lt_predeps_GCJ
 
19268
 
 
19269
# Dependencies to place after the objects being linked to create a
 
19270
# shared library.
 
19271
postdeps=$lt_postdeps_GCJ
 
19272
 
 
19273
# The library search path used internally by the compiler when linking
 
19274
# a shared library.
 
19275
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19276
 
 
19277
# Method to check whether dependent libraries are shared objects.
 
19278
deplibs_check_method=$lt_deplibs_check_method
 
19279
 
 
19280
# Command to use when deplibs_check_method == file_magic.
 
19281
file_magic_cmd=$lt_file_magic_cmd
 
19282
 
 
19283
# Flag that allows shared libraries with undefined symbols to be built.
 
19284
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19285
 
 
19286
# Flag that forces no undefined symbols.
 
19287
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19288
 
 
19289
# Commands used to finish a libtool library installation in a directory.
 
19290
finish_cmds=$lt_finish_cmds
 
19291
 
 
19292
# Same as above, but a single script fragment to be evaled but not shown.
 
19293
finish_eval=$lt_finish_eval
 
19294
 
 
19295
# Take the output of nm and produce a listing of raw symbols and C names.
 
19296
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19297
 
 
19298
# Transform the output of nm in a proper C declaration
 
19299
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19300
 
 
19301
# Transform the output of nm in a C name address pair
 
19302
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19303
 
 
19304
# This is the shared library runtime path variable.
 
19305
runpath_var=$runpath_var
 
19306
 
 
19307
# This is the shared library path variable.
 
19308
shlibpath_var=$shlibpath_var
 
19309
 
 
19310
# Is shlibpath searched before the hard-coded library search path?
 
19311
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19312
 
 
19313
# How to hardcode a shared library path into an executable.
 
19314
hardcode_action=$hardcode_action_GCJ
 
19315
 
 
19316
# Whether we should hardcode library paths into libraries.
 
19317
hardcode_into_libs=$hardcode_into_libs
 
19318
 
 
19319
# Flag to hardcode \$libdir into a binary during linking.
 
19320
# This must work even if \$libdir does not exist.
 
19321
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19322
 
 
19323
# If ld is used when linking, flag to hardcode \$libdir into
 
19324
# a binary during linking. This must work even if \$libdir does
 
19325
# not exist.
 
19326
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19327
 
 
19328
# Whether we need a single -rpath flag with a separated argument.
 
19329
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19330
 
 
19331
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19332
# resulting binary.
 
19333
hardcode_direct=$hardcode_direct_GCJ
 
19334
 
 
19335
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19336
# resulting binary.
 
19337
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19338
 
 
19339
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19340
# the resulting binary.
 
19341
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19342
 
 
19343
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19344
# and all subsequent libraries and executables linked against it.
 
19345
hardcode_automatic=$hardcode_automatic_GCJ
 
19346
 
 
19347
# Variables whose values should be saved in libtool wrapper scripts and
 
19348
# restored at relink time.
 
19349
variables_saved_for_relink="$variables_saved_for_relink"
 
19350
 
 
19351
# Whether libtool must link a program against all its dependency libraries.
 
19352
link_all_deplibs=$link_all_deplibs_GCJ
 
19353
 
 
19354
# Compile-time system search path for libraries
 
19355
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19356
 
 
19357
# Run-time system search path for libraries
 
19358
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19359
 
 
19360
# Fix the shell variable \$srcfile for the compiler.
 
19361
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19362
 
 
19363
# Set to yes if exported symbols are required.
 
19364
always_export_symbols=$always_export_symbols_GCJ
 
19365
 
 
19366
# The commands to list exported symbols.
 
19367
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19368
 
 
19369
# The commands to extract the exported symbol list from a shared archive.
 
19370
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19371
 
 
19372
# Symbols that should not be listed in the preloaded symbols.
 
19373
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19374
 
 
19375
# Symbols that must always be exported.
 
19376
include_expsyms=$lt_include_expsyms_GCJ
 
19377
 
 
19378
# ### END LIBTOOL TAG CONFIG: $tagname
 
19379
 
 
19380
__EOF__
 
19381
 
 
19382
 
 
19383
else
 
19384
  # If there is no Makefile yet, we rely on a make rule to execute
 
19385
  # `config.status --recheck' to rerun these tests and create the
 
19386
  # libtool script then.
 
19387
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19388
  if test -f "$ltmain_in"; then
 
19389
    test -f Makefile && make "$ltmain"
 
19390
  fi
 
19391
fi
 
19392
 
 
19393
 
 
19394
ac_ext=c
 
19395
ac_cpp='$CPP $CPPFLAGS'
 
19396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19399
 
 
19400
CC="$lt_save_CC"
 
19401
 
 
19402
        else
 
19403
          tagname=""
 
19404
        fi
 
19405
        ;;
 
19406
 
 
19407
      RC)
 
19408
 
 
19409
 
 
19410
 
 
19411
# Source file extension for RC test sources.
 
19412
ac_ext=rc
 
19413
 
 
19414
# Object file extension for compiled RC test sources.
 
19415
objext=o
 
19416
objext_RC=$objext
 
19417
 
 
19418
# Code to be used in simple compile tests
 
19419
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19420
 
 
19421
# Code to be used in simple link tests
 
19422
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19423
 
 
19424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19425
 
 
19426
# If no C compiler was specified, use CC.
 
19427
LTCC=${LTCC-"$CC"}
 
19428
 
 
19429
# Allow CC to be a program name with arguments.
 
19430
compiler=$CC
 
19431
 
 
19432
 
 
19433
# Allow CC to be a program name with arguments.
 
19434
lt_save_CC="$CC"
 
19435
CC=${RC-"windres"}
 
19436
compiler=$CC
 
19437
compiler_RC=$CC
 
19438
lt_cv_prog_compiler_c_o_RC=yes
 
19439
 
 
19440
# The else clause should only fire when bootstrapping the
 
19441
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19442
# with your package, and you will get complaints that there are
 
19443
# no rules to generate ltmain.sh.
 
19444
if test -f "$ltmain"; then
 
19445
  # See if we are running on zsh, and set the options which allow our commands through
 
19446
  # without removal of \ escapes.
 
19447
  if test -n "${ZSH_VERSION+set}" ; then
 
19448
    setopt NO_GLOB_SUBST
 
19449
  fi
 
19450
  # Now quote all the things that may contain metacharacters while being
 
19451
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19452
  # variables and quote the copies for generation of the libtool script.
 
19453
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19454
    SED SHELL STRIP \
 
19455
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19456
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19457
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19458
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19459
    lt_cv_sys_global_symbol_to_c_name_address \
 
19460
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19461
    old_postinstall_cmds old_postuninstall_cmds \
 
19462
    compiler_RC \
 
19463
    CC_RC \
 
19464
    LD_RC \
 
19465
    lt_prog_compiler_wl_RC \
 
19466
    lt_prog_compiler_pic_RC \
 
19467
    lt_prog_compiler_static_RC \
 
19468
    lt_prog_compiler_no_builtin_flag_RC \
 
19469
    export_dynamic_flag_spec_RC \
 
19470
    thread_safe_flag_spec_RC \
 
19471
    whole_archive_flag_spec_RC \
 
19472
    enable_shared_with_static_runtimes_RC \
 
19473
    old_archive_cmds_RC \
 
19474
    old_archive_from_new_cmds_RC \
 
19475
    predep_objects_RC \
 
19476
    postdep_objects_RC \
 
19477
    predeps_RC \
 
19478
    postdeps_RC \
 
19479
    compiler_lib_search_path_RC \
 
19480
    archive_cmds_RC \
 
19481
    archive_expsym_cmds_RC \
 
19482
    postinstall_cmds_RC \
 
19483
    postuninstall_cmds_RC \
 
19484
    old_archive_from_expsyms_cmds_RC \
 
19485
    allow_undefined_flag_RC \
 
19486
    no_undefined_flag_RC \
 
19487
    export_symbols_cmds_RC \
 
19488
    hardcode_libdir_flag_spec_RC \
 
19489
    hardcode_libdir_flag_spec_ld_RC \
 
19490
    hardcode_libdir_separator_RC \
 
19491
    hardcode_automatic_RC \
 
19492
    module_cmds_RC \
 
19493
    module_expsym_cmds_RC \
 
19494
    lt_cv_prog_compiler_c_o_RC \
 
19495
    exclude_expsyms_RC \
 
19496
    include_expsyms_RC; do
 
19497
 
 
19498
    case $var in
 
19499
    old_archive_cmds_RC | \
 
19500
    old_archive_from_new_cmds_RC | \
 
19501
    archive_cmds_RC | \
 
19502
    archive_expsym_cmds_RC | \
 
19503
    module_cmds_RC | \
 
19504
    module_expsym_cmds_RC | \
 
19505
    old_archive_from_expsyms_cmds_RC | \
 
19506
    export_symbols_cmds_RC | \
 
19507
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19508
    postinstall_cmds | postuninstall_cmds | \
 
19509
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19510
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19511
      # Double-quote double-evaled strings.
 
19512
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19513
      ;;
 
19514
    *)
 
19515
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19516
      ;;
 
19517
    esac
 
19518
  done
 
19519
 
 
19520
  case $lt_echo in
 
19521
  *'\$0 --fallback-echo"')
 
19522
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19523
    ;;
 
19524
  esac
 
19525
 
 
19526
cfgfile="$ofile"
 
19527
 
 
19528
  cat <<__EOF__ >> "$cfgfile"
 
19529
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19530
 
 
19531
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19532
 
 
19533
# Shell to use when invoking shell scripts.
 
19534
SHELL=$lt_SHELL
 
19535
 
 
19536
# Whether or not to build shared libraries.
 
19537
build_libtool_libs=$enable_shared
 
19538
 
 
19539
# Whether or not to build static libraries.
 
19540
build_old_libs=$enable_static
 
19541
 
 
19542
# Whether or not to add -lc for building shared libraries.
 
19543
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19544
 
 
19545
# Whether or not to disallow shared libs when runtime libs are static
 
19546
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19547
 
 
19548
# Whether or not to optimize for fast installation.
 
19549
fast_install=$enable_fast_install
 
19550
 
 
19551
# The host system.
 
19552
host_alias=$host_alias
 
19553
host=$host
 
19554
 
 
19555
# An echo program that does not interpret backslashes.
 
19556
echo=$lt_echo
 
19557
 
 
19558
# The archiver.
 
19559
AR=$lt_AR
 
19560
AR_FLAGS=$lt_AR_FLAGS
 
19561
 
 
19562
# A C compiler.
 
19563
LTCC=$lt_LTCC
 
19564
 
 
19565
# A language-specific compiler.
 
19566
CC=$lt_compiler_RC
 
19567
 
 
19568
# Is the compiler the GNU C compiler?
 
19569
with_gcc=$GCC_RC
 
19570
 
 
19571
# An ERE matcher.
 
19572
EGREP=$lt_EGREP
 
19573
 
 
19574
# The linker used to build libraries.
 
19575
LD=$lt_LD_RC
 
19576
 
 
19577
# Whether we need hard or soft links.
 
19578
LN_S=$lt_LN_S
 
19579
 
 
19580
# A BSD-compatible nm program.
 
19581
NM=$lt_NM
 
19582
 
 
19583
# A symbol stripping program
 
19584
STRIP=$lt_STRIP
 
19585
 
 
19586
# Used to examine libraries when file_magic_cmd begins "file"
 
19587
MAGIC_CMD=$MAGIC_CMD
 
19588
 
 
19589
# Used on cygwin: DLL creation program.
 
19590
DLLTOOL="$DLLTOOL"
 
19591
 
 
19592
# Used on cygwin: object dumper.
 
19593
OBJDUMP="$OBJDUMP"
 
19594
 
 
19595
# Used on cygwin: assembler.
 
19596
AS="$AS"
 
19597
 
 
19598
# The name of the directory that contains temporary libtool files.
 
19599
objdir=$objdir
 
19600
 
 
19601
# How to create reloadable object files.
 
19602
reload_flag=$lt_reload_flag
 
19603
reload_cmds=$lt_reload_cmds
 
19604
 
 
19605
# How to pass a linker flag through the compiler.
 
19606
wl=$lt_lt_prog_compiler_wl_RC
 
19607
 
 
19608
# Object file suffix (normally "o").
 
19609
objext="$ac_objext"
 
19610
 
 
19611
# Old archive suffix (normally "a").
 
19612
libext="$libext"
 
19613
 
 
19614
# Shared library suffix (normally ".so").
 
19615
shrext='$shrext'
 
19616
 
 
19617
# Executable file suffix (normally "").
 
19618
exeext="$exeext"
 
19619
 
 
19620
# Additional compiler flags for building library objects.
 
19621
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19622
pic_mode=$pic_mode
 
19623
 
 
19624
# What is the maximum length of a command?
 
19625
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19626
 
 
19627
# Does compiler simultaneously support -c and -o options?
 
19628
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19629
 
 
19630
# Must we lock files when doing compilation ?
 
19631
need_locks=$lt_need_locks
 
19632
 
 
19633
# Do we need the lib prefix for modules?
 
19634
need_lib_prefix=$need_lib_prefix
 
19635
 
 
19636
# Do we need a version for libraries?
 
19637
need_version=$need_version
 
19638
 
 
19639
# Whether dlopen is supported.
 
19640
dlopen_support=$enable_dlopen
 
19641
 
 
19642
# Whether dlopen of programs is supported.
 
19643
dlopen_self=$enable_dlopen_self
 
19644
 
 
19645
# Whether dlopen of statically linked programs is supported.
 
19646
dlopen_self_static=$enable_dlopen_self_static
 
19647
 
 
19648
# Compiler flag to prevent dynamic linking.
 
19649
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19650
 
 
19651
# Compiler flag to turn off builtin functions.
 
19652
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19653
 
 
19654
# Compiler flag to allow reflexive dlopens.
 
19655
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19656
 
 
19657
# Compiler flag to generate shared objects directly from archives.
 
19658
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19659
 
 
19660
# Compiler flag to generate thread-safe objects.
 
19661
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19662
 
 
19663
# Library versioning type.
 
19664
version_type=$version_type
 
19665
 
 
19666
# Format of library name prefix.
 
19667
libname_spec=$lt_libname_spec
 
19668
 
 
19669
# List of archive names.  First name is the real one, the rest are links.
 
19670
# The last name is the one that the linker finds with -lNAME.
 
19671
library_names_spec=$lt_library_names_spec
 
19672
 
 
19673
# The coded name of the library, if different from the real name.
 
19674
soname_spec=$lt_soname_spec
 
19675
 
 
19676
# Commands used to build and install an old-style archive.
 
19677
RANLIB=$lt_RANLIB
 
19678
old_archive_cmds=$lt_old_archive_cmds_RC
 
19679
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19680
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19681
 
 
19682
# Create an old-style archive from a shared archive.
 
19683
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19684
 
 
19685
# Create a temporary old-style archive to link instead of a shared archive.
 
19686
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19687
 
 
19688
# Commands used to build and install a shared archive.
 
19689
archive_cmds=$lt_archive_cmds_RC
 
19690
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19691
postinstall_cmds=$lt_postinstall_cmds
 
19692
postuninstall_cmds=$lt_postuninstall_cmds
 
19693
 
 
19694
# Commands used to build a loadable module (assumed same as above if empty)
 
19695
module_cmds=$lt_module_cmds_RC
 
19696
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19697
 
 
19698
# Commands to strip libraries.
 
19699
old_striplib=$lt_old_striplib
 
19700
striplib=$lt_striplib
 
19701
 
 
19702
# Dependencies to place before the objects being linked to create a
 
19703
# shared library.
 
19704
predep_objects=$lt_predep_objects_RC
 
19705
 
 
19706
# Dependencies to place after the objects being linked to create a
 
19707
# shared library.
 
19708
postdep_objects=$lt_postdep_objects_RC
 
19709
 
 
19710
# Dependencies to place before the objects being linked to create a
 
19711
# shared library.
 
19712
predeps=$lt_predeps_RC
 
19713
 
 
19714
# Dependencies to place after the objects being linked to create a
 
19715
# shared library.
 
19716
postdeps=$lt_postdeps_RC
 
19717
 
 
19718
# The library search path used internally by the compiler when linking
 
19719
# a shared library.
 
19720
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19721
 
 
19722
# Method to check whether dependent libraries are shared objects.
 
19723
deplibs_check_method=$lt_deplibs_check_method
 
19724
 
 
19725
# Command to use when deplibs_check_method == file_magic.
 
19726
file_magic_cmd=$lt_file_magic_cmd
 
19727
 
 
19728
# Flag that allows shared libraries with undefined symbols to be built.
 
19729
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19730
 
 
19731
# Flag that forces no undefined symbols.
 
19732
no_undefined_flag=$lt_no_undefined_flag_RC
 
19733
 
 
19734
# Commands used to finish a libtool library installation in a directory.
 
19735
finish_cmds=$lt_finish_cmds
 
19736
 
 
19737
# Same as above, but a single script fragment to be evaled but not shown.
 
19738
finish_eval=$lt_finish_eval
 
19739
 
 
19740
# Take the output of nm and produce a listing of raw symbols and C names.
 
19741
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19742
 
 
19743
# Transform the output of nm in a proper C declaration
 
19744
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19745
 
 
19746
# Transform the output of nm in a C name address pair
 
19747
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19748
 
 
19749
# This is the shared library runtime path variable.
 
19750
runpath_var=$runpath_var
 
19751
 
 
19752
# This is the shared library path variable.
 
19753
shlibpath_var=$shlibpath_var
 
19754
 
 
19755
# Is shlibpath searched before the hard-coded library search path?
 
19756
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19757
 
 
19758
# How to hardcode a shared library path into an executable.
 
19759
hardcode_action=$hardcode_action_RC
 
19760
 
 
19761
# Whether we should hardcode library paths into libraries.
 
19762
hardcode_into_libs=$hardcode_into_libs
 
19763
 
 
19764
# Flag to hardcode \$libdir into a binary during linking.
 
19765
# This must work even if \$libdir does not exist.
 
19766
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19767
 
 
19768
# If ld is used when linking, flag to hardcode \$libdir into
 
19769
# a binary during linking. This must work even if \$libdir does
 
19770
# not exist.
 
19771
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19772
 
 
19773
# Whether we need a single -rpath flag with a separated argument.
 
19774
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19775
 
 
19776
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19777
# resulting binary.
 
19778
hardcode_direct=$hardcode_direct_RC
 
19779
 
 
19780
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19781
# resulting binary.
 
19782
hardcode_minus_L=$hardcode_minus_L_RC
 
19783
 
 
19784
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19785
# the resulting binary.
 
19786
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19787
 
 
19788
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19789
# and all subsequent libraries and executables linked against it.
 
19790
hardcode_automatic=$hardcode_automatic_RC
 
19791
 
 
19792
# Variables whose values should be saved in libtool wrapper scripts and
 
19793
# restored at relink time.
 
19794
variables_saved_for_relink="$variables_saved_for_relink"
 
19795
 
 
19796
# Whether libtool must link a program against all its dependency libraries.
 
19797
link_all_deplibs=$link_all_deplibs_RC
 
19798
 
 
19799
# Compile-time system search path for libraries
 
19800
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19801
 
 
19802
# Run-time system search path for libraries
 
19803
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19804
 
 
19805
# Fix the shell variable \$srcfile for the compiler.
 
19806
fix_srcfile_path="$fix_srcfile_path_RC"
 
19807
 
 
19808
# Set to yes if exported symbols are required.
 
19809
always_export_symbols=$always_export_symbols_RC
 
19810
 
 
19811
# The commands to list exported symbols.
 
19812
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19813
 
 
19814
# The commands to extract the exported symbol list from a shared archive.
 
19815
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19816
 
 
19817
# Symbols that should not be listed in the preloaded symbols.
 
19818
exclude_expsyms=$lt_exclude_expsyms_RC
 
19819
 
 
19820
# Symbols that must always be exported.
 
19821
include_expsyms=$lt_include_expsyms_RC
 
19822
 
 
19823
# ### END LIBTOOL TAG CONFIG: $tagname
 
19824
 
 
19825
__EOF__
 
19826
 
 
19827
 
 
19828
else
 
19829
  # If there is no Makefile yet, we rely on a make rule to execute
 
19830
  # `config.status --recheck' to rerun these tests and create the
 
19831
  # libtool script then.
 
19832
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19833
  if test -f "$ltmain_in"; then
 
19834
    test -f Makefile && make "$ltmain"
 
19835
  fi
 
19836
fi
 
19837
 
 
19838
 
 
19839
ac_ext=c
 
19840
ac_cpp='$CPP $CPPFLAGS'
 
19841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19844
 
 
19845
CC="$lt_save_CC"
 
19846
 
 
19847
        ;;
 
19848
 
 
19849
      *)
 
19850
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19851
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19852
   { (exit 1); exit 1; }; }
 
19853
        ;;
 
19854
      esac
 
19855
 
 
19856
      # Append the new tag name to the list of available tags.
 
19857
      if test -n "$tagname" ; then
 
19858
      available_tags="$available_tags $tagname"
 
19859
    fi
 
19860
    fi
 
19861
  done
 
19862
  IFS="$lt_save_ifs"
 
19863
 
 
19864
  # Now substitute the updated list of available tags.
 
19865
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19866
    mv "${ofile}T" "$ofile"
 
19867
    chmod +x "$ofile"
 
19868
  else
 
19869
    rm -f "${ofile}T"
 
19870
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19871
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19872
   { (exit 1); exit 1; }; }
 
19873
  fi
 
19874
fi
 
19875
 
 
19876
 
 
19877
 
 
19878
# This can be used to rebuild libtool when needed
 
19879
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19880
 
 
19881
# Always use our own libtool.
 
19882
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19883
 
 
19884
# Prevent multiple expansion
 
19885
 
 
19886
 
 
19887
 
 
19888
 
 
19889
 
 
19890
 
 
19891
 
 
19892
 
 
19893
 
 
19894
 
 
19895
 
 
19896
 
 
19897
 
 
19898
 
 
19899
 
 
19900
 
 
19901
 
 
19902
 
 
19903
 
 
19904
 
 
19905
 
 
19906
 
 
19907
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
19908
if test "${with_gnu_ld+set}" = set; then
 
19909
  withval="$with_gnu_ld"
 
19910
  test "$withval" = no || with_gnu_ld=yes
 
19911
else
 
19912
  with_gnu_ld=no
 
19913
fi;
 
19914
# Prepare PATH_SEPARATOR.
 
19915
# The user is always right.
 
19916
if test "${PATH_SEPARATOR+set}" != set; then
 
19917
  echo "#! /bin/sh" >conf$$.sh
 
19918
  echo  "exit 0"   >>conf$$.sh
 
19919
  chmod +x conf$$.sh
 
19920
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
19921
    PATH_SEPARATOR=';'
 
19922
  else
 
19923
    PATH_SEPARATOR=:
 
19924
  fi
 
19925
  rm -f conf$$.sh
 
19926
fi
 
19927
ac_prog=ld
 
19928
if test "$GCC" = yes; then
 
19929
  # Check if gcc -print-prog-name=ld gives a path.
 
19930
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
19931
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
19932
  case $host in
 
19933
  *-*-mingw*)
 
19934
    # gcc leaves a trailing carriage return which upsets mingw
 
19935
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
19936
  *)
 
19937
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
19938
  esac
 
19939
  case $ac_prog in
 
19940
    # Accept absolute paths.
 
19941
    [\\/]* | [A-Za-z]:[\\/]*)
 
19942
      re_direlt='/[^/][^/]*/\.\./'
 
19943
      # Canonicalize the path of ld
 
19944
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
19945
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
19946
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
19947
      done
 
19948
      test -z "$LD" && LD="$ac_prog"
 
19949
      ;;
 
19950
  "")
 
19951
    # If it fails, then pretend we aren't using GCC.
 
19952
    ac_prog=ld
 
19953
    ;;
 
19954
  *)
 
19955
    # If it is relative, then search for the first ld in PATH.
 
19956
    with_gnu_ld=unknown
 
19957
    ;;
 
19958
  esac
 
19959
elif test "$with_gnu_ld" = yes; then
 
19960
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
19961
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
19962
else
 
19963
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
19964
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
19965
fi
 
19966
if test "${acl_cv_path_LD+set}" = set; then
 
19967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19968
else
 
19969
  if test -z "$LD"; then
 
19970
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
19971
  for ac_dir in $PATH; do
 
19972
    test -z "$ac_dir" && ac_dir=.
 
19973
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
19974
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
19975
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
19976
      # but apparently some GNU ld's only accept -v.
 
19977
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
19978
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
19979
      *GNU* | *'with BFD'*)
 
19980
        test "$with_gnu_ld" != no && break ;;
 
19981
      *)
 
19982
        test "$with_gnu_ld" != yes && break ;;
 
19983
      esac
 
19984
    fi
 
19985
  done
 
19986
  IFS="$ac_save_ifs"
 
19987
else
 
19988
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
19989
fi
 
19990
fi
 
19991
 
 
19992
LD="$acl_cv_path_LD"
 
19993
if test -n "$LD"; then
 
19994
  echo "$as_me:$LINENO: result: $LD" >&5
 
19995
echo "${ECHO_T}$LD" >&6
 
19996
else
 
19997
  echo "$as_me:$LINENO: result: no" >&5
 
19998
echo "${ECHO_T}no" >&6
 
19999
fi
 
20000
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
20001
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
20002
   { (exit 1); exit 1; }; }
 
20003
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
20004
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
20005
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
20006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20007
else
 
20008
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
20009
case `$LD -v 2>&1 </dev/null` in
 
20010
*GNU* | *'with BFD'*)
 
20011
  acl_cv_prog_gnu_ld=yes ;;
 
20012
*)
 
20013
  acl_cv_prog_gnu_ld=no ;;
 
20014
esac
 
20015
fi
 
20016
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
20017
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
20018
with_gnu_ld=$acl_cv_prog_gnu_ld
 
20019
 
 
20020
 
 
20021
 
 
20022
                              echo "$as_me:$LINENO: checking for shared library path variable" >&5
 
20023
echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6
 
20024
if test "${acl_cv_libpath+set}" = set; then
 
20025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20026
else
 
20027
 
 
20028
    LD="$LD" \
 
20029
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
 
20030
    . ./conftest.sh
 
20031
    rm -f ./conftest.sh
 
20032
    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
 
20033
 
 
20034
fi
 
20035
echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
 
20036
echo "${ECHO_T}$acl_cv_libpath" >&6
 
20037
  shlibpath_var="$acl_cv_shlibpath_var"
 
20038
 
 
20039
 
 
20040
  echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
 
20041
echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
 
20042
  # Check whether --enable-relocatable or --disable-relocatable was given.
 
20043
if test "${enable_relocatable+set}" = set; then
 
20044
  enableval="$enable_relocatable"
 
20045
  if test "$enableval" != no; then
 
20046
       RELOCATABLE=yes
 
20047
     else
 
20048
       RELOCATABLE=no
 
20049
     fi
 
20050
 
 
20051
else
 
20052
  RELOCATABLE=no
 
20053
fi;
 
20054
 
 
20055
  echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
 
20056
echo "${ECHO_T}$RELOCATABLE" >&6
 
20057
 
 
20058
 
 
20059
 
 
20060
    if test "X$prefix" = "XNONE"; then
 
20061
    reloc_final_prefix="$ac_default_prefix"
 
20062
  else
 
20063
    reloc_final_prefix="$prefix"
 
20064
  fi
 
20065
 
 
20066
cat >>confdefs.h <<_ACEOF
 
20067
#define INSTALLPREFIX "${reloc_final_prefix}"
 
20068
_ACEOF
 
20069
 
 
20070
 
 
20071
 
 
20072
 
 
20073
 
 
20074
 
 
20075
 
 
20076
  use_elf_origin_trick=no
 
20077
  if test $RELOCATABLE = yes; then
 
20078
    # --enable-relocatable implies --disable-rpath
 
20079
    enable_rpath=no
 
20080
    case $LIBOBJS in
 
20081
    "relocatable.$ac_objext"   | \
 
20082
  *" relocatable.$ac_objext"   | \
 
20083
    "relocatable.$ac_objext "* | \
 
20084
  *" relocatable.$ac_objext "* ) ;;
 
20085
  *) LIBOBJS="$LIBOBJS relocatable.$ac_objext" ;;
 
20086
esac
 
20087
 
 
20088
 
 
20089
cat >>confdefs.h <<\_ACEOF
 
20090
#define ENABLE_RELOCATABLE 1
 
20091
_ACEOF
 
20092
 
 
20093
    case "$host_os" in
 
20094
      linux*) use_elf_origin_trick=yes ;;
 
20095
    esac
 
20096
    if test $use_elf_origin_trick = yes; then
 
20097
            case "$ac_aux_dir" in
 
20098
        /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
 
20099
        *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
 
20100
      esac
 
20101
      SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
 
20102
    else
 
20103
                              SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
 
20104
      case "$ac_aux_dir" in
 
20105
        /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
 
20106
        *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
 
20107
      esac
 
20108
    fi
 
20109
  else
 
20110
    SET_RELOCATABLE=
 
20111
  fi
 
20112
 
 
20113
 
 
20114
 
 
20115
if test $use_elf_origin_trick = yes; then
 
20116
  RELOCATABLE_VIA_LD_TRUE=
 
20117
  RELOCATABLE_VIA_LD_FALSE='#'
 
20118
else
 
20119
  RELOCATABLE_VIA_LD_TRUE='#'
 
20120
  RELOCATABLE_VIA_LD_FALSE=
 
20121
fi
 
20122
 
 
20123
 
 
20124
 
 
20125
 
 
20126
 
 
20127
for ac_header in string.h
 
20128
do
 
20129
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20130
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20131
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20132
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20133
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20135
fi
 
20136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20138
else
 
20139
  # Is the header compilable?
 
20140
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20141
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20142
cat >conftest.$ac_ext <<_ACEOF
 
20143
/* confdefs.h.  */
 
20144
_ACEOF
 
20145
cat confdefs.h >>conftest.$ac_ext
 
20146
cat >>conftest.$ac_ext <<_ACEOF
 
20147
/* end confdefs.h.  */
 
20148
$ac_includes_default
 
20149
#include <$ac_header>
 
20150
_ACEOF
 
20151
rm -f conftest.$ac_objext
 
20152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20153
  (eval $ac_compile) 2>conftest.er1
 
20154
  ac_status=$?
 
20155
  grep -v '^ *+' conftest.er1 >conftest.err
 
20156
  rm -f conftest.er1
 
20157
  cat conftest.err >&5
 
20158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20159
  (exit $ac_status); } &&
 
20160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20162
  (eval $ac_try) 2>&5
 
20163
  ac_status=$?
 
20164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20165
  (exit $ac_status); }; } &&
 
20166
         { ac_try='test -s conftest.$ac_objext'
 
20167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20168
  (eval $ac_try) 2>&5
 
20169
  ac_status=$?
 
20170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20171
  (exit $ac_status); }; }; then
 
20172
  ac_header_compiler=yes
 
20173
else
 
20174
  echo "$as_me: failed program was:" >&5
 
20175
sed 's/^/| /' conftest.$ac_ext >&5
 
20176
 
 
20177
ac_header_compiler=no
 
20178
fi
 
20179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20180
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20181
echo "${ECHO_T}$ac_header_compiler" >&6
 
20182
 
 
20183
# Is the header present?
 
20184
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20185
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20186
cat >conftest.$ac_ext <<_ACEOF
 
20187
/* confdefs.h.  */
 
20188
_ACEOF
 
20189
cat confdefs.h >>conftest.$ac_ext
 
20190
cat >>conftest.$ac_ext <<_ACEOF
 
20191
/* end confdefs.h.  */
 
20192
#include <$ac_header>
 
20193
_ACEOF
 
20194
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20195
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20196
  ac_status=$?
 
20197
  grep -v '^ *+' conftest.er1 >conftest.err
 
20198
  rm -f conftest.er1
 
20199
  cat conftest.err >&5
 
20200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20201
  (exit $ac_status); } >/dev/null; then
 
20202
  if test -s conftest.err; then
 
20203
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20204
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20205
  else
 
20206
    ac_cpp_err=
 
20207
  fi
 
20208
else
 
20209
  ac_cpp_err=yes
 
20210
fi
 
20211
if test -z "$ac_cpp_err"; then
 
20212
  ac_header_preproc=yes
 
20213
else
 
20214
  echo "$as_me: failed program was:" >&5
 
20215
sed 's/^/| /' conftest.$ac_ext >&5
 
20216
 
 
20217
  ac_header_preproc=no
 
20218
fi
 
20219
rm -f conftest.err conftest.$ac_ext
 
20220
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20221
echo "${ECHO_T}$ac_header_preproc" >&6
 
20222
 
 
20223
# So?  What about this header?
 
20224
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20225
  yes:no: )
 
20226
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20227
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20228
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20229
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20230
    ac_header_preproc=yes
 
20231
    ;;
 
20232
  no:yes:* )
 
20233
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20234
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20235
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20236
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20237
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20238
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20239
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20240
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20241
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20242
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20243
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20244
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20245
    (
 
20246
      cat <<\_ASBOX
 
20247
## ------------------------------------------ ##
 
20248
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20249
## ------------------------------------------ ##
 
20250
_ASBOX
 
20251
    ) |
 
20252
      sed "s/^/$as_me: WARNING:     /" >&2
 
20253
    ;;
 
20254
esac
 
20255
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20256
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20257
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20259
else
 
20260
  eval "$as_ac_Header=\$ac_header_preproc"
 
20261
fi
 
20262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20263
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20264
 
 
20265
fi
 
20266
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20267
  cat >>confdefs.h <<_ACEOF
 
20268
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20269
_ACEOF
 
20270
 
 
20271
fi
 
20272
 
 
20273
done
 
20274
 
 
20275
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
20276
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
 
20277
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
20278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20279
else
 
20280
  cat >conftest.$ac_ext <<_ACEOF
 
20281
/* confdefs.h.  */
 
20282
_ACEOF
 
20283
cat confdefs.h >>conftest.$ac_ext
 
20284
cat >>conftest.$ac_ext <<_ACEOF
 
20285
/* end confdefs.h.  */
 
20286
 
 
20287
#include <stdbool.h>
 
20288
#ifndef bool
 
20289
# error bool is not defined
 
20290
#endif
 
20291
#ifndef false
 
20292
# error false is not defined
 
20293
#endif
 
20294
#if false
 
20295
# error false is not 0
 
20296
#endif
 
20297
#ifndef true
 
20298
# error true is not defined
 
20299
#endif
 
20300
#if true != 1
 
20301
# error true is not 1
 
20302
#endif
 
20303
#ifndef __bool_true_false_are_defined
 
20304
# error __bool_true_false_are_defined is not defined
 
20305
#endif
 
20306
 
 
20307
        struct s { _Bool s: 1; _Bool t; } s;
 
20308
 
 
20309
        char a[true == 1 ? 1 : -1];
 
20310
        char b[false == 0 ? 1 : -1];
 
20311
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
20312
        char d[(bool) -0.5 == true ? 1 : -1];
 
20313
        bool e = &s;
 
20314
        char f[(_Bool) -0.0 == false ? 1 : -1];
 
20315
        char g[true];
 
20316
        char h[sizeof (_Bool)];
 
20317
        char i[sizeof s.t];
 
20318
 
 
20319
int
 
20320
main ()
 
20321
{
 
20322
 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
 
20323
  ;
 
20324
  return 0;
 
20325
}
 
20326
_ACEOF
 
20327
rm -f conftest.$ac_objext
 
20328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20329
  (eval $ac_compile) 2>conftest.er1
 
20330
  ac_status=$?
 
20331
  grep -v '^ *+' conftest.er1 >conftest.err
 
20332
  rm -f conftest.er1
 
20333
  cat conftest.err >&5
 
20334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20335
  (exit $ac_status); } &&
 
20336
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20338
  (eval $ac_try) 2>&5
 
20339
  ac_status=$?
 
20340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20341
  (exit $ac_status); }; } &&
 
20342
         { ac_try='test -s conftest.$ac_objext'
 
20343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20344
  (eval $ac_try) 2>&5
 
20345
  ac_status=$?
 
20346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20347
  (exit $ac_status); }; }; then
 
20348
  ac_cv_header_stdbool_h=yes
 
20349
else
 
20350
  echo "$as_me: failed program was:" >&5
 
20351
sed 's/^/| /' conftest.$ac_ext >&5
 
20352
 
 
20353
ac_cv_header_stdbool_h=no
 
20354
fi
 
20355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20356
fi
 
20357
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
20358
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
 
20359
echo "$as_me:$LINENO: checking for _Bool" >&5
 
20360
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
 
20361
if test "${ac_cv_type__Bool+set}" = set; then
 
20362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20363
else
 
20364
  cat >conftest.$ac_ext <<_ACEOF
 
20365
/* confdefs.h.  */
 
20366
_ACEOF
 
20367
cat confdefs.h >>conftest.$ac_ext
 
20368
cat >>conftest.$ac_ext <<_ACEOF
 
20369
/* end confdefs.h.  */
 
20370
$ac_includes_default
 
20371
int
 
20372
main ()
 
20373
{
 
20374
if ((_Bool *) 0)
 
20375
  return 0;
 
20376
if (sizeof (_Bool))
 
20377
  return 0;
 
20378
  ;
 
20379
  return 0;
 
20380
}
 
20381
_ACEOF
 
20382
rm -f conftest.$ac_objext
 
20383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20384
  (eval $ac_compile) 2>conftest.er1
 
20385
  ac_status=$?
 
20386
  grep -v '^ *+' conftest.er1 >conftest.err
 
20387
  rm -f conftest.er1
 
20388
  cat conftest.err >&5
 
20389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20390
  (exit $ac_status); } &&
 
20391
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20393
  (eval $ac_try) 2>&5
 
20394
  ac_status=$?
 
20395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20396
  (exit $ac_status); }; } &&
 
20397
         { ac_try='test -s conftest.$ac_objext'
 
20398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20399
  (eval $ac_try) 2>&5
 
20400
  ac_status=$?
 
20401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20402
  (exit $ac_status); }; }; then
 
20403
  ac_cv_type__Bool=yes
 
20404
else
 
20405
  echo "$as_me: failed program was:" >&5
 
20406
sed 's/^/| /' conftest.$ac_ext >&5
 
20407
 
 
20408
ac_cv_type__Bool=no
 
20409
fi
 
20410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20411
fi
 
20412
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
20413
echo "${ECHO_T}$ac_cv_type__Bool" >&6
 
20414
if test $ac_cv_type__Bool = yes; then
 
20415
 
 
20416
cat >>confdefs.h <<_ACEOF
 
20417
#define HAVE__BOOL 1
 
20418
_ACEOF
 
20419
 
 
20420
 
 
20421
fi
 
20422
 
 
20423
if test $ac_cv_header_stdbool_h = yes; then
 
20424
 
 
20425
cat >>confdefs.h <<\_ACEOF
 
20426
#define HAVE_STDBOOL_H 1
 
20427
_ACEOF
 
20428
 
 
20429
fi
 
20430
 
 
20431
 
 
20432
 
 
20433
 
 
20434
  # Define two additional variables used in the Makefile substitution.
 
20435
 
 
20436
  if test "$ac_cv_header_stdbool_h" = yes; then
 
20437
    STDBOOL_H=''
 
20438
  else
 
20439
    STDBOOL_H='stdbool.h'
 
20440
  fi
 
20441
 
 
20442
 
 
20443
  if test "$ac_cv_type__Bool" = yes; then
 
20444
    HAVE__BOOL=1
 
20445
  else
 
20446
    HAVE__BOOL=0
 
20447
  fi
 
20448
 
 
20449
 
 
20450
 
 
20451
echo "$as_me:$LINENO: checking for size_t" >&5
 
20452
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
20453
if test "${ac_cv_type_size_t+set}" = set; then
 
20454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20455
else
 
20456
  cat >conftest.$ac_ext <<_ACEOF
 
20457
/* confdefs.h.  */
 
20458
_ACEOF
 
20459
cat confdefs.h >>conftest.$ac_ext
 
20460
cat >>conftest.$ac_ext <<_ACEOF
 
20461
/* end confdefs.h.  */
 
20462
$ac_includes_default
 
20463
int
 
20464
main ()
 
20465
{
 
20466
if ((size_t *) 0)
 
20467
  return 0;
 
20468
if (sizeof (size_t))
 
20469
  return 0;
 
20470
  ;
 
20471
  return 0;
 
20472
}
 
20473
_ACEOF
 
20474
rm -f conftest.$ac_objext
 
20475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20476
  (eval $ac_compile) 2>conftest.er1
 
20477
  ac_status=$?
 
20478
  grep -v '^ *+' conftest.er1 >conftest.err
 
20479
  rm -f conftest.er1
 
20480
  cat conftest.err >&5
 
20481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20482
  (exit $ac_status); } &&
 
20483
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20485
  (eval $ac_try) 2>&5
 
20486
  ac_status=$?
 
20487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20488
  (exit $ac_status); }; } &&
 
20489
         { ac_try='test -s conftest.$ac_objext'
 
20490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20491
  (eval $ac_try) 2>&5
 
20492
  ac_status=$?
 
20493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20494
  (exit $ac_status); }; }; then
 
20495
  ac_cv_type_size_t=yes
 
20496
else
 
20497
  echo "$as_me: failed program was:" >&5
 
20498
sed 's/^/| /' conftest.$ac_ext >&5
 
20499
 
 
20500
ac_cv_type_size_t=no
 
20501
fi
 
20502
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20503
fi
 
20504
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
20505
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
20506
if test $ac_cv_type_size_t = yes; then
 
20507
  :
 
20508
else
 
20509
 
 
20510
cat >>confdefs.h <<_ACEOF
 
20511
#define size_t unsigned
 
20512
_ACEOF
 
20513
 
 
20514
fi
 
20515
 
 
20516
 
 
20517
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
20518
# for constant arguments.  Useless!
 
20519
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
20520
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
20521
if test "${ac_cv_working_alloca_h+set}" = set; then
 
20522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20523
else
 
20524
  cat >conftest.$ac_ext <<_ACEOF
 
20525
/* confdefs.h.  */
 
20526
_ACEOF
 
20527
cat confdefs.h >>conftest.$ac_ext
 
20528
cat >>conftest.$ac_ext <<_ACEOF
 
20529
/* end confdefs.h.  */
 
20530
#include <alloca.h>
 
20531
int
 
20532
main ()
 
20533
{
 
20534
char *p = (char *) alloca (2 * sizeof (int));
 
20535
  ;
 
20536
  return 0;
 
20537
}
 
20538
_ACEOF
 
20539
rm -f conftest.$ac_objext conftest$ac_exeext
 
20540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20541
  (eval $ac_link) 2>conftest.er1
 
20542
  ac_status=$?
 
20543
  grep -v '^ *+' conftest.er1 >conftest.err
 
20544
  rm -f conftest.er1
 
20545
  cat conftest.err >&5
 
20546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20547
  (exit $ac_status); } &&
 
20548
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20550
  (eval $ac_try) 2>&5
 
20551
  ac_status=$?
 
20552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20553
  (exit $ac_status); }; } &&
 
20554
         { ac_try='test -s conftest$ac_exeext'
 
20555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20556
  (eval $ac_try) 2>&5
 
20557
  ac_status=$?
 
20558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20559
  (exit $ac_status); }; }; then
 
20560
  ac_cv_working_alloca_h=yes
 
20561
else
 
20562
  echo "$as_me: failed program was:" >&5
 
20563
sed 's/^/| /' conftest.$ac_ext >&5
 
20564
 
 
20565
ac_cv_working_alloca_h=no
 
20566
fi
 
20567
rm -f conftest.err conftest.$ac_objext \
 
20568
      conftest$ac_exeext conftest.$ac_ext
 
20569
fi
 
20570
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
20571
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
20572
if test $ac_cv_working_alloca_h = yes; then
 
20573
 
 
20574
cat >>confdefs.h <<\_ACEOF
 
20575
#define HAVE_ALLOCA_H 1
 
20576
_ACEOF
 
20577
 
 
20578
fi
 
20579
 
 
20580
echo "$as_me:$LINENO: checking for alloca" >&5
 
20581
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
20582
if test "${ac_cv_func_alloca_works+set}" = set; then
 
20583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20584
else
 
20585
  cat >conftest.$ac_ext <<_ACEOF
 
20586
/* confdefs.h.  */
 
20587
_ACEOF
 
20588
cat confdefs.h >>conftest.$ac_ext
 
20589
cat >>conftest.$ac_ext <<_ACEOF
 
20590
/* end confdefs.h.  */
 
20591
#ifdef __GNUC__
 
20592
# define alloca __builtin_alloca
 
20593
#else
 
20594
# ifdef _MSC_VER
 
20595
#  include <malloc.h>
 
20596
#  define alloca _alloca
 
20597
# else
 
20598
#  if HAVE_ALLOCA_H
 
20599
#   include <alloca.h>
 
20600
#  else
 
20601
#   ifdef _AIX
 
20602
 #pragma alloca
 
20603
#   else
 
20604
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
20605
char *alloca ();
 
20606
#    endif
 
20607
#   endif
 
20608
#  endif
 
20609
# endif
 
20610
#endif
 
20611
 
 
20612
int
 
20613
main ()
 
20614
{
 
20615
char *p = (char *) alloca (1);
 
20616
  ;
 
20617
  return 0;
 
20618
}
 
20619
_ACEOF
 
20620
rm -f conftest.$ac_objext conftest$ac_exeext
 
20621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20622
  (eval $ac_link) 2>conftest.er1
 
20623
  ac_status=$?
 
20624
  grep -v '^ *+' conftest.er1 >conftest.err
 
20625
  rm -f conftest.er1
 
20626
  cat conftest.err >&5
 
20627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20628
  (exit $ac_status); } &&
 
20629
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20631
  (eval $ac_try) 2>&5
 
20632
  ac_status=$?
 
20633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20634
  (exit $ac_status); }; } &&
 
20635
         { ac_try='test -s conftest$ac_exeext'
 
20636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20637
  (eval $ac_try) 2>&5
 
20638
  ac_status=$?
 
20639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20640
  (exit $ac_status); }; }; then
 
20641
  ac_cv_func_alloca_works=yes
 
20642
else
 
20643
  echo "$as_me: failed program was:" >&5
 
20644
sed 's/^/| /' conftest.$ac_ext >&5
 
20645
 
 
20646
ac_cv_func_alloca_works=no
 
20647
fi
 
20648
rm -f conftest.err conftest.$ac_objext \
 
20649
      conftest$ac_exeext conftest.$ac_ext
 
20650
fi
 
20651
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
20652
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
20653
 
 
20654
if test $ac_cv_func_alloca_works = yes; then
 
20655
 
 
20656
cat >>confdefs.h <<\_ACEOF
 
20657
#define HAVE_ALLOCA 1
 
20658
_ACEOF
 
20659
 
 
20660
else
 
20661
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
20662
# that cause trouble.  Some versions do not even contain alloca or
 
20663
# contain a buggy version.  If you still want to use their alloca,
 
20664
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
20665
 
 
20666
ALLOCA=alloca.$ac_objext
 
20667
 
 
20668
cat >>confdefs.h <<\_ACEOF
 
20669
#define C_ALLOCA 1
 
20670
_ACEOF
 
20671
 
 
20672
 
 
20673
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
20674
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
20675
if test "${ac_cv_os_cray+set}" = set; then
 
20676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20677
else
 
20678
  cat >conftest.$ac_ext <<_ACEOF
 
20679
/* confdefs.h.  */
 
20680
_ACEOF
 
20681
cat confdefs.h >>conftest.$ac_ext
 
20682
cat >>conftest.$ac_ext <<_ACEOF
 
20683
/* end confdefs.h.  */
 
20684
#if defined(CRAY) && ! defined(CRAY2)
 
20685
webecray
 
20686
#else
 
20687
wenotbecray
 
20688
#endif
 
20689
 
 
20690
_ACEOF
 
20691
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20692
  $EGREP "webecray" >/dev/null 2>&1; then
 
20693
  ac_cv_os_cray=yes
 
20694
else
 
20695
  ac_cv_os_cray=no
 
20696
fi
 
20697
rm -f conftest*
 
20698
 
 
20699
fi
 
20700
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
20701
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
20702
if test $ac_cv_os_cray = yes; then
 
20703
  for ac_func in _getb67 GETB67 getb67; do
 
20704
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20705
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20706
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20707
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20709
else
 
20710
  cat >conftest.$ac_ext <<_ACEOF
 
20711
/* confdefs.h.  */
 
20712
_ACEOF
 
20713
cat confdefs.h >>conftest.$ac_ext
 
20714
cat >>conftest.$ac_ext <<_ACEOF
 
20715
/* end confdefs.h.  */
 
20716
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20717
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20718
#define $ac_func innocuous_$ac_func
 
20719
 
 
20720
/* System header to define __stub macros and hopefully few prototypes,
 
20721
    which can conflict with char $ac_func (); below.
 
20722
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20723
    <limits.h> exists even on freestanding compilers.  */
 
20724
 
 
20725
#ifdef __STDC__
 
20726
# include <limits.h>
 
20727
#else
 
20728
# include <assert.h>
 
20729
#endif
 
20730
 
 
20731
#undef $ac_func
 
20732
 
 
20733
/* Override any gcc2 internal prototype to avoid an error.  */
 
20734
#ifdef __cplusplus
 
20735
extern "C"
 
20736
{
 
20737
#endif
 
20738
/* We use char because int might match the return type of a gcc2
 
20739
   builtin and then its argument prototype would still apply.  */
 
20740
char $ac_func ();
 
20741
/* The GNU C library defines this for functions which it implements
 
20742
    to always fail with ENOSYS.  Some functions are actually named
 
20743
    something starting with __ and the normal name is an alias.  */
 
20744
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20745
choke me
 
20746
#else
 
20747
char (*f) () = $ac_func;
 
20748
#endif
 
20749
#ifdef __cplusplus
 
20750
}
 
20751
#endif
 
20752
 
 
20753
int
 
20754
main ()
 
20755
{
 
20756
return f != $ac_func;
 
20757
  ;
 
20758
  return 0;
 
20759
}
 
20760
_ACEOF
 
20761
rm -f conftest.$ac_objext conftest$ac_exeext
 
20762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20763
  (eval $ac_link) 2>conftest.er1
 
20764
  ac_status=$?
 
20765
  grep -v '^ *+' conftest.er1 >conftest.err
 
20766
  rm -f conftest.er1
 
20767
  cat conftest.err >&5
 
20768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20769
  (exit $ac_status); } &&
 
20770
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20772
  (eval $ac_try) 2>&5
 
20773
  ac_status=$?
 
20774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20775
  (exit $ac_status); }; } &&
 
20776
         { ac_try='test -s conftest$ac_exeext'
 
20777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20778
  (eval $ac_try) 2>&5
 
20779
  ac_status=$?
 
20780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20781
  (exit $ac_status); }; }; then
 
20782
  eval "$as_ac_var=yes"
 
20783
else
 
20784
  echo "$as_me: failed program was:" >&5
 
20785
sed 's/^/| /' conftest.$ac_ext >&5
 
20786
 
 
20787
eval "$as_ac_var=no"
 
20788
fi
 
20789
rm -f conftest.err conftest.$ac_objext \
 
20790
      conftest$ac_exeext conftest.$ac_ext
 
20791
fi
 
20792
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20793
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20794
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20795
 
 
20796
cat >>confdefs.h <<_ACEOF
 
20797
#define CRAY_STACKSEG_END $ac_func
 
20798
_ACEOF
 
20799
 
 
20800
    break
 
20801
fi
 
20802
 
 
20803
  done
 
20804
fi
 
20805
 
 
20806
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
20807
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
20808
if test "${ac_cv_c_stack_direction+set}" = set; then
 
20809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20810
else
 
20811
  if test "$cross_compiling" = yes; then
 
20812
  ac_cv_c_stack_direction=0
 
20813
else
 
20814
  cat >conftest.$ac_ext <<_ACEOF
 
20815
/* confdefs.h.  */
 
20816
_ACEOF
 
20817
cat confdefs.h >>conftest.$ac_ext
 
20818
cat >>conftest.$ac_ext <<_ACEOF
 
20819
/* end confdefs.h.  */
 
20820
int
 
20821
find_stack_direction ()
 
20822
{
 
20823
  static char *addr = 0;
 
20824
  auto char dummy;
 
20825
  if (addr == 0)
 
20826
    {
 
20827
      addr = &dummy;
 
20828
      return find_stack_direction ();
 
20829
    }
 
20830
  else
 
20831
    return (&dummy > addr) ? 1 : -1;
 
20832
}
 
20833
 
 
20834
int
 
20835
main ()
 
20836
{
 
20837
  exit (find_stack_direction () < 0);
 
20838
}
 
20839
_ACEOF
 
20840
rm -f conftest$ac_exeext
 
20841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20842
  (eval $ac_link) 2>&5
 
20843
  ac_status=$?
 
20844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20845
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20847
  (eval $ac_try) 2>&5
 
20848
  ac_status=$?
 
20849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20850
  (exit $ac_status); }; }; then
 
20851
  ac_cv_c_stack_direction=1
 
20852
else
 
20853
  echo "$as_me: program exited with status $ac_status" >&5
 
20854
echo "$as_me: failed program was:" >&5
 
20855
sed 's/^/| /' conftest.$ac_ext >&5
 
20856
 
 
20857
( exit $ac_status )
 
20858
ac_cv_c_stack_direction=-1
 
20859
fi
 
20860
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20861
fi
 
20862
fi
 
20863
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
20864
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
20865
 
 
20866
cat >>confdefs.h <<_ACEOF
 
20867
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
20868
_ACEOF
 
20869
 
 
20870
 
 
20871
fi
 
20872
 
 
20873
 
 
20874
 
 
20875
for ac_header in stdlib.h
 
20876
do
 
20877
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20878
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20879
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20880
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20881
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20883
fi
 
20884
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20885
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20886
else
 
20887
  # Is the header compilable?
 
20888
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20889
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20890
cat >conftest.$ac_ext <<_ACEOF
 
20891
/* confdefs.h.  */
 
20892
_ACEOF
 
20893
cat confdefs.h >>conftest.$ac_ext
 
20894
cat >>conftest.$ac_ext <<_ACEOF
 
20895
/* end confdefs.h.  */
 
20896
$ac_includes_default
 
20897
#include <$ac_header>
 
20898
_ACEOF
 
20899
rm -f conftest.$ac_objext
 
20900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20901
  (eval $ac_compile) 2>conftest.er1
 
20902
  ac_status=$?
 
20903
  grep -v '^ *+' conftest.er1 >conftest.err
 
20904
  rm -f conftest.er1
 
20905
  cat conftest.err >&5
 
20906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20907
  (exit $ac_status); } &&
 
20908
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20910
  (eval $ac_try) 2>&5
 
20911
  ac_status=$?
 
20912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20913
  (exit $ac_status); }; } &&
 
20914
         { ac_try='test -s conftest.$ac_objext'
 
20915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20916
  (eval $ac_try) 2>&5
 
20917
  ac_status=$?
 
20918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20919
  (exit $ac_status); }; }; then
 
20920
  ac_header_compiler=yes
 
20921
else
 
20922
  echo "$as_me: failed program was:" >&5
 
20923
sed 's/^/| /' conftest.$ac_ext >&5
 
20924
 
 
20925
ac_header_compiler=no
 
20926
fi
 
20927
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20928
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20929
echo "${ECHO_T}$ac_header_compiler" >&6
 
20930
 
 
20931
# Is the header present?
 
20932
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20933
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20934
cat >conftest.$ac_ext <<_ACEOF
 
20935
/* confdefs.h.  */
 
20936
_ACEOF
 
20937
cat confdefs.h >>conftest.$ac_ext
 
20938
cat >>conftest.$ac_ext <<_ACEOF
 
20939
/* end confdefs.h.  */
 
20940
#include <$ac_header>
 
20941
_ACEOF
 
20942
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20943
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20944
  ac_status=$?
 
20945
  grep -v '^ *+' conftest.er1 >conftest.err
 
20946
  rm -f conftest.er1
 
20947
  cat conftest.err >&5
 
20948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20949
  (exit $ac_status); } >/dev/null; then
 
20950
  if test -s conftest.err; then
 
20951
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20952
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20953
  else
 
20954
    ac_cpp_err=
 
20955
  fi
 
20956
else
 
20957
  ac_cpp_err=yes
 
20958
fi
 
20959
if test -z "$ac_cpp_err"; then
 
20960
  ac_header_preproc=yes
 
20961
else
 
20962
  echo "$as_me: failed program was:" >&5
 
20963
sed 's/^/| /' conftest.$ac_ext >&5
 
20964
 
 
20965
  ac_header_preproc=no
 
20966
fi
 
20967
rm -f conftest.err conftest.$ac_ext
 
20968
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20969
echo "${ECHO_T}$ac_header_preproc" >&6
 
20970
 
 
20971
# So?  What about this header?
 
20972
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20973
  yes:no: )
 
20974
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20975
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20976
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20977
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20978
    ac_header_preproc=yes
 
20979
    ;;
 
20980
  no:yes:* )
 
20981
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20982
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20983
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20984
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20985
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20986
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20987
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20988
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20989
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20990
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20991
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20992
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20993
    (
 
20994
      cat <<\_ASBOX
 
20995
## ------------------------------------------ ##
 
20996
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20997
## ------------------------------------------ ##
 
20998
_ASBOX
 
20999
    ) |
 
21000
      sed "s/^/$as_me: WARNING:     /" >&2
 
21001
    ;;
 
21002
esac
 
21003
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21004
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21005
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21007
else
 
21008
  eval "$as_ac_Header=\$ac_header_preproc"
 
21009
fi
 
21010
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21011
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21012
 
 
21013
fi
 
21014
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21015
  cat >>confdefs.h <<_ACEOF
 
21016
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21017
_ACEOF
 
21018
 
 
21019
fi
 
21020
 
 
21021
done
 
21022
 
 
21023
 
 
21024
 
 
21025
 
 
21026
for ac_header in string.h
 
21027
do
 
21028
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21029
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21030
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21034
fi
 
21035
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21036
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21037
else
 
21038
  # Is the header compilable?
 
21039
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21040
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21041
cat >conftest.$ac_ext <<_ACEOF
 
21042
/* confdefs.h.  */
 
21043
_ACEOF
 
21044
cat confdefs.h >>conftest.$ac_ext
 
21045
cat >>conftest.$ac_ext <<_ACEOF
 
21046
/* end confdefs.h.  */
 
21047
$ac_includes_default
 
21048
#include <$ac_header>
 
21049
_ACEOF
 
21050
rm -f conftest.$ac_objext
 
21051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21052
  (eval $ac_compile) 2>conftest.er1
 
21053
  ac_status=$?
 
21054
  grep -v '^ *+' conftest.er1 >conftest.err
 
21055
  rm -f conftest.er1
 
21056
  cat conftest.err >&5
 
21057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21058
  (exit $ac_status); } &&
 
21059
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21061
  (eval $ac_try) 2>&5
 
21062
  ac_status=$?
 
21063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21064
  (exit $ac_status); }; } &&
 
21065
         { ac_try='test -s conftest.$ac_objext'
 
21066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21067
  (eval $ac_try) 2>&5
 
21068
  ac_status=$?
 
21069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21070
  (exit $ac_status); }; }; then
 
21071
  ac_header_compiler=yes
 
21072
else
 
21073
  echo "$as_me: failed program was:" >&5
 
21074
sed 's/^/| /' conftest.$ac_ext >&5
 
21075
 
 
21076
ac_header_compiler=no
 
21077
fi
 
21078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21079
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21080
echo "${ECHO_T}$ac_header_compiler" >&6
 
21081
 
 
21082
# Is the header present?
 
21083
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21084
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21085
cat >conftest.$ac_ext <<_ACEOF
 
21086
/* confdefs.h.  */
 
21087
_ACEOF
 
21088
cat confdefs.h >>conftest.$ac_ext
 
21089
cat >>conftest.$ac_ext <<_ACEOF
 
21090
/* end confdefs.h.  */
 
21091
#include <$ac_header>
 
21092
_ACEOF
 
21093
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21094
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21095
  ac_status=$?
 
21096
  grep -v '^ *+' conftest.er1 >conftest.err
 
21097
  rm -f conftest.er1
 
21098
  cat conftest.err >&5
 
21099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21100
  (exit $ac_status); } >/dev/null; then
 
21101
  if test -s conftest.err; then
 
21102
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21103
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21104
  else
 
21105
    ac_cpp_err=
 
21106
  fi
 
21107
else
 
21108
  ac_cpp_err=yes
 
21109
fi
 
21110
if test -z "$ac_cpp_err"; then
 
21111
  ac_header_preproc=yes
 
21112
else
 
21113
  echo "$as_me: failed program was:" >&5
 
21114
sed 's/^/| /' conftest.$ac_ext >&5
 
21115
 
 
21116
  ac_header_preproc=no
 
21117
fi
 
21118
rm -f conftest.err conftest.$ac_ext
 
21119
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21120
echo "${ECHO_T}$ac_header_preproc" >&6
 
21121
 
 
21122
# So?  What about this header?
 
21123
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21124
  yes:no: )
 
21125
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21126
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21127
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21128
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21129
    ac_header_preproc=yes
 
21130
    ;;
 
21131
  no:yes:* )
 
21132
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21133
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21134
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21135
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21136
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21137
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21138
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21139
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21140
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21141
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21142
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21143
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21144
    (
 
21145
      cat <<\_ASBOX
 
21146
## ------------------------------------------ ##
 
21147
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21148
## ------------------------------------------ ##
 
21149
_ASBOX
 
21150
    ) |
 
21151
      sed "s/^/$as_me: WARNING:     /" >&2
 
21152
    ;;
 
21153
esac
 
21154
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21155
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21156
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21158
else
 
21159
  eval "$as_ac_Header=\$ac_header_preproc"
 
21160
fi
 
21161
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21162
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21163
 
 
21164
fi
 
21165
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21166
  cat >>confdefs.h <<_ACEOF
 
21167
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21168
_ACEOF
 
21169
 
 
21170
fi
 
21171
 
 
21172
done
 
21173
 
 
21174
 
 
21175
 
 
21176
 
 
21177
 
 
21178
 
 
21179
 
 
21180
  if test $ac_cv_func_alloca_works = no; then
 
21181
 
 
21182
 
 
21183
  :
 
21184
 
 
21185
 
 
21186
 
 
21187
 
 
21188
 
 
21189
 
 
21190
 
 
21191
 
 
21192
 
 
21193
  fi
 
21194
 
 
21195
  # Define an additional variable used in the Makefile substitution.
 
21196
 
 
21197
  cat >conftest.$ac_ext <<_ACEOF
 
21198
/* confdefs.h.  */
 
21199
_ACEOF
 
21200
cat confdefs.h >>conftest.$ac_ext
 
21201
cat >>conftest.$ac_ext <<_ACEOF
 
21202
/* end confdefs.h.  */
 
21203
 
 
21204
#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
 
21205
  Need own alloca
 
21206
#endif
 
21207
 
 
21208
_ACEOF
 
21209
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21210
  $EGREP "Need own alloca" >/dev/null 2>&1; then
 
21211
  ALLOCA_H=alloca.h
 
21212
else
 
21213
  ALLOCA_H=
 
21214
fi
 
21215
rm -f conftest*
 
21216
 
 
21217
 
 
21218
 
 
21219
 
 
21220
 
 
21221
for ac_header in stdlib.h
 
21222
do
 
21223
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21225
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21227
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21229
fi
 
21230
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21231
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21232
else
 
21233
  # Is the header compilable?
 
21234
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21235
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21236
cat >conftest.$ac_ext <<_ACEOF
 
21237
/* confdefs.h.  */
 
21238
_ACEOF
 
21239
cat confdefs.h >>conftest.$ac_ext
 
21240
cat >>conftest.$ac_ext <<_ACEOF
 
21241
/* end confdefs.h.  */
 
21242
$ac_includes_default
 
21243
#include <$ac_header>
 
21244
_ACEOF
 
21245
rm -f conftest.$ac_objext
 
21246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21247
  (eval $ac_compile) 2>conftest.er1
 
21248
  ac_status=$?
 
21249
  grep -v '^ *+' conftest.er1 >conftest.err
 
21250
  rm -f conftest.er1
 
21251
  cat conftest.err >&5
 
21252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21253
  (exit $ac_status); } &&
 
21254
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21256
  (eval $ac_try) 2>&5
 
21257
  ac_status=$?
 
21258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21259
  (exit $ac_status); }; } &&
 
21260
         { ac_try='test -s conftest.$ac_objext'
 
21261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21262
  (eval $ac_try) 2>&5
 
21263
  ac_status=$?
 
21264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21265
  (exit $ac_status); }; }; then
 
21266
  ac_header_compiler=yes
 
21267
else
 
21268
  echo "$as_me: failed program was:" >&5
 
21269
sed 's/^/| /' conftest.$ac_ext >&5
 
21270
 
 
21271
ac_header_compiler=no
 
21272
fi
 
21273
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21274
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21275
echo "${ECHO_T}$ac_header_compiler" >&6
 
21276
 
 
21277
# Is the header present?
 
21278
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21279
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21280
cat >conftest.$ac_ext <<_ACEOF
 
21281
/* confdefs.h.  */
 
21282
_ACEOF
 
21283
cat confdefs.h >>conftest.$ac_ext
 
21284
cat >>conftest.$ac_ext <<_ACEOF
 
21285
/* end confdefs.h.  */
 
21286
#include <$ac_header>
 
21287
_ACEOF
 
21288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21289
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21290
  ac_status=$?
 
21291
  grep -v '^ *+' conftest.er1 >conftest.err
 
21292
  rm -f conftest.er1
 
21293
  cat conftest.err >&5
 
21294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21295
  (exit $ac_status); } >/dev/null; then
 
21296
  if test -s conftest.err; then
 
21297
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21298
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21299
  else
 
21300
    ac_cpp_err=
 
21301
  fi
 
21302
else
 
21303
  ac_cpp_err=yes
 
21304
fi
 
21305
if test -z "$ac_cpp_err"; then
 
21306
  ac_header_preproc=yes
 
21307
else
 
21308
  echo "$as_me: failed program was:" >&5
 
21309
sed 's/^/| /' conftest.$ac_ext >&5
 
21310
 
 
21311
  ac_header_preproc=no
 
21312
fi
 
21313
rm -f conftest.err conftest.$ac_ext
 
21314
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21315
echo "${ECHO_T}$ac_header_preproc" >&6
 
21316
 
 
21317
# So?  What about this header?
 
21318
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21319
  yes:no: )
 
21320
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21321
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21322
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21323
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21324
    ac_header_preproc=yes
 
21325
    ;;
 
21326
  no:yes:* )
 
21327
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21328
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21329
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21330
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21331
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21332
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21333
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21334
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21335
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21336
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21337
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21338
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21339
    (
 
21340
      cat <<\_ASBOX
 
21341
## ------------------------------------------ ##
 
21342
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21343
## ------------------------------------------ ##
 
21344
_ASBOX
 
21345
    ) |
 
21346
      sed "s/^/$as_me: WARNING:     /" >&2
 
21347
    ;;
 
21348
esac
 
21349
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21350
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21351
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21353
else
 
21354
  eval "$as_ac_Header=\$ac_header_preproc"
 
21355
fi
 
21356
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21357
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21358
 
 
21359
fi
 
21360
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21361
  cat >>confdefs.h <<_ACEOF
 
21362
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21363
_ACEOF
 
21364
 
 
21365
fi
 
21366
 
 
21367
done
 
21368
 
 
21369
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
21370
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
21371
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
21372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21373
else
 
21374
  if test "$cross_compiling" = yes; then
 
21375
  ac_cv_func_malloc_0_nonnull=no
 
21376
else
 
21377
  cat >conftest.$ac_ext <<_ACEOF
 
21378
/* confdefs.h.  */
 
21379
_ACEOF
 
21380
cat confdefs.h >>conftest.$ac_ext
 
21381
cat >>conftest.$ac_ext <<_ACEOF
 
21382
/* end confdefs.h.  */
 
21383
#if STDC_HEADERS || HAVE_STDLIB_H
 
21384
# include <stdlib.h>
 
21385
#else
 
21386
char *malloc ();
 
21387
#endif
 
21388
 
 
21389
int
 
21390
main ()
 
21391
{
 
21392
exit (malloc (0) ? 0 : 1);
 
21393
  ;
 
21394
  return 0;
 
21395
}
 
21396
_ACEOF
 
21397
rm -f conftest$ac_exeext
 
21398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21399
  (eval $ac_link) 2>&5
 
21400
  ac_status=$?
 
21401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21402
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21404
  (eval $ac_try) 2>&5
 
21405
  ac_status=$?
 
21406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21407
  (exit $ac_status); }; }; then
 
21408
  ac_cv_func_malloc_0_nonnull=yes
 
21409
else
 
21410
  echo "$as_me: program exited with status $ac_status" >&5
 
21411
echo "$as_me: failed program was:" >&5
 
21412
sed 's/^/| /' conftest.$ac_ext >&5
 
21413
 
 
21414
( exit $ac_status )
 
21415
ac_cv_func_malloc_0_nonnull=no
 
21416
fi
 
21417
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21418
fi
 
21419
fi
 
21420
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
21421
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
21422
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
21423
  gl_cv_func_malloc_0_nonnull=1
 
21424
else
 
21425
  gl_cv_func_malloc_0_nonnull=0
 
21426
fi
 
21427
 
 
21428
 
 
21429
 
 
21430
cat >>confdefs.h <<_ACEOF
 
21431
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
 
21432
_ACEOF
 
21433
 
 
21434
 
 
21435
 
 
21436
 
 
21437
 
 
21438
 
 
21439
 
 
21440
for ac_func in vprintf
 
21441
do
 
21442
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21443
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21444
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21445
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21447
else
 
21448
  cat >conftest.$ac_ext <<_ACEOF
 
21449
/* confdefs.h.  */
 
21450
_ACEOF
 
21451
cat confdefs.h >>conftest.$ac_ext
 
21452
cat >>conftest.$ac_ext <<_ACEOF
 
21453
/* end confdefs.h.  */
 
21454
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21455
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21456
#define $ac_func innocuous_$ac_func
 
21457
 
 
21458
/* System header to define __stub macros and hopefully few prototypes,
 
21459
    which can conflict with char $ac_func (); below.
 
21460
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21461
    <limits.h> exists even on freestanding compilers.  */
 
21462
 
 
21463
#ifdef __STDC__
 
21464
# include <limits.h>
 
21465
#else
 
21466
# include <assert.h>
 
21467
#endif
 
21468
 
 
21469
#undef $ac_func
 
21470
 
 
21471
/* Override any gcc2 internal prototype to avoid an error.  */
 
21472
#ifdef __cplusplus
 
21473
extern "C"
 
21474
{
 
21475
#endif
 
21476
/* We use char because int might match the return type of a gcc2
 
21477
   builtin and then its argument prototype would still apply.  */
 
21478
char $ac_func ();
 
21479
/* The GNU C library defines this for functions which it implements
 
21480
    to always fail with ENOSYS.  Some functions are actually named
 
21481
    something starting with __ and the normal name is an alias.  */
 
21482
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21483
choke me
 
21484
#else
 
21485
char (*f) () = $ac_func;
 
21486
#endif
 
21487
#ifdef __cplusplus
 
21488
}
 
21489
#endif
 
21490
 
 
21491
int
 
21492
main ()
 
21493
{
 
21494
return f != $ac_func;
 
21495
  ;
 
21496
  return 0;
 
21497
}
 
21498
_ACEOF
 
21499
rm -f conftest.$ac_objext conftest$ac_exeext
 
21500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21501
  (eval $ac_link) 2>conftest.er1
 
21502
  ac_status=$?
 
21503
  grep -v '^ *+' conftest.er1 >conftest.err
 
21504
  rm -f conftest.er1
 
21505
  cat conftest.err >&5
 
21506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21507
  (exit $ac_status); } &&
 
21508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21510
  (eval $ac_try) 2>&5
 
21511
  ac_status=$?
 
21512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21513
  (exit $ac_status); }; } &&
 
21514
         { ac_try='test -s conftest$ac_exeext'
 
21515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21516
  (eval $ac_try) 2>&5
 
21517
  ac_status=$?
 
21518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21519
  (exit $ac_status); }; }; then
 
21520
  eval "$as_ac_var=yes"
 
21521
else
 
21522
  echo "$as_me: failed program was:" >&5
 
21523
sed 's/^/| /' conftest.$ac_ext >&5
 
21524
 
 
21525
eval "$as_ac_var=no"
 
21526
fi
 
21527
rm -f conftest.err conftest.$ac_objext \
 
21528
      conftest$ac_exeext conftest.$ac_ext
 
21529
fi
 
21530
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21531
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21532
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21533
  cat >>confdefs.h <<_ACEOF
 
21534
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21535
_ACEOF
 
21536
 
 
21537
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
21538
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
21539
if test "${ac_cv_func__doprnt+set}" = set; then
 
21540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21541
else
 
21542
  cat >conftest.$ac_ext <<_ACEOF
 
21543
/* confdefs.h.  */
 
21544
_ACEOF
 
21545
cat confdefs.h >>conftest.$ac_ext
 
21546
cat >>conftest.$ac_ext <<_ACEOF
 
21547
/* end confdefs.h.  */
 
21548
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
21549
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21550
#define _doprnt innocuous__doprnt
 
21551
 
 
21552
/* System header to define __stub macros and hopefully few prototypes,
 
21553
    which can conflict with char _doprnt (); below.
 
21554
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21555
    <limits.h> exists even on freestanding compilers.  */
 
21556
 
 
21557
#ifdef __STDC__
 
21558
# include <limits.h>
 
21559
#else
 
21560
# include <assert.h>
 
21561
#endif
 
21562
 
 
21563
#undef _doprnt
 
21564
 
 
21565
/* Override any gcc2 internal prototype to avoid an error.  */
 
21566
#ifdef __cplusplus
 
21567
extern "C"
 
21568
{
 
21569
#endif
 
21570
/* We use char because int might match the return type of a gcc2
 
21571
   builtin and then its argument prototype would still apply.  */
 
21572
char _doprnt ();
 
21573
/* The GNU C library defines this for functions which it implements
 
21574
    to always fail with ENOSYS.  Some functions are actually named
 
21575
    something starting with __ and the normal name is an alias.  */
 
21576
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
21577
choke me
 
21578
#else
 
21579
char (*f) () = _doprnt;
 
21580
#endif
 
21581
#ifdef __cplusplus
 
21582
}
 
21583
#endif
 
21584
 
 
21585
int
 
21586
main ()
 
21587
{
 
21588
return f != _doprnt;
 
21589
  ;
 
21590
  return 0;
 
21591
}
 
21592
_ACEOF
 
21593
rm -f conftest.$ac_objext conftest$ac_exeext
 
21594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21595
  (eval $ac_link) 2>conftest.er1
 
21596
  ac_status=$?
 
21597
  grep -v '^ *+' conftest.er1 >conftest.err
 
21598
  rm -f conftest.er1
 
21599
  cat conftest.err >&5
 
21600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21601
  (exit $ac_status); } &&
 
21602
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21604
  (eval $ac_try) 2>&5
 
21605
  ac_status=$?
 
21606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21607
  (exit $ac_status); }; } &&
 
21608
         { ac_try='test -s conftest$ac_exeext'
 
21609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21610
  (eval $ac_try) 2>&5
 
21611
  ac_status=$?
 
21612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21613
  (exit $ac_status); }; }; then
 
21614
  ac_cv_func__doprnt=yes
 
21615
else
 
21616
  echo "$as_me: failed program was:" >&5
 
21617
sed 's/^/| /' conftest.$ac_ext >&5
 
21618
 
 
21619
ac_cv_func__doprnt=no
 
21620
fi
 
21621
rm -f conftest.err conftest.$ac_objext \
 
21622
      conftest$ac_exeext conftest.$ac_ext
 
21623
fi
 
21624
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
21625
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
21626
if test $ac_cv_func__doprnt = yes; then
 
21627
 
 
21628
cat >>confdefs.h <<\_ACEOF
 
21629
#define HAVE_DOPRNT 1
 
21630
_ACEOF
 
21631
 
 
21632
fi
 
21633
 
 
21634
fi
 
21635
done
 
21636
 
 
21637
 
 
21638
 
 
21639
 
 
21640
 
 
21641
for ac_func in setlocale strerror strtoul
 
21642
do
 
21643
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21644
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21645
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21646
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21648
else
 
21649
  cat >conftest.$ac_ext <<_ACEOF
 
21650
/* confdefs.h.  */
 
21651
_ACEOF
 
21652
cat confdefs.h >>conftest.$ac_ext
 
21653
cat >>conftest.$ac_ext <<_ACEOF
 
21654
/* end confdefs.h.  */
 
21655
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21656
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21657
#define $ac_func innocuous_$ac_func
 
21658
 
 
21659
/* System header to define __stub macros and hopefully few prototypes,
 
21660
    which can conflict with char $ac_func (); below.
 
21661
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21662
    <limits.h> exists even on freestanding compilers.  */
 
21663
 
 
21664
#ifdef __STDC__
 
21665
# include <limits.h>
 
21666
#else
 
21667
# include <assert.h>
 
21668
#endif
 
21669
 
 
21670
#undef $ac_func
 
21671
 
 
21672
/* Override any gcc2 internal prototype to avoid an error.  */
 
21673
#ifdef __cplusplus
 
21674
extern "C"
 
21675
{
 
21676
#endif
 
21677
/* We use char because int might match the return type of a gcc2
 
21678
   builtin and then its argument prototype would still apply.  */
 
21679
char $ac_func ();
 
21680
/* The GNU C library defines this for functions which it implements
 
21681
    to always fail with ENOSYS.  Some functions are actually named
 
21682
    something starting with __ and the normal name is an alias.  */
 
21683
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21684
choke me
 
21685
#else
 
21686
char (*f) () = $ac_func;
 
21687
#endif
 
21688
#ifdef __cplusplus
 
21689
}
 
21690
#endif
 
21691
 
 
21692
int
 
21693
main ()
 
21694
{
 
21695
return f != $ac_func;
 
21696
  ;
 
21697
  return 0;
 
21698
}
 
21699
_ACEOF
 
21700
rm -f conftest.$ac_objext conftest$ac_exeext
 
21701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21702
  (eval $ac_link) 2>conftest.er1
 
21703
  ac_status=$?
 
21704
  grep -v '^ *+' conftest.er1 >conftest.err
 
21705
  rm -f conftest.er1
 
21706
  cat conftest.err >&5
 
21707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21708
  (exit $ac_status); } &&
 
21709
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21711
  (eval $ac_try) 2>&5
 
21712
  ac_status=$?
 
21713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21714
  (exit $ac_status); }; } &&
 
21715
         { ac_try='test -s conftest$ac_exeext'
 
21716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21717
  (eval $ac_try) 2>&5
 
21718
  ac_status=$?
 
21719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21720
  (exit $ac_status); }; }; then
 
21721
  eval "$as_ac_var=yes"
 
21722
else
 
21723
  echo "$as_me: failed program was:" >&5
 
21724
sed 's/^/| /' conftest.$ac_ext >&5
 
21725
 
 
21726
eval "$as_ac_var=no"
 
21727
fi
 
21728
rm -f conftest.err conftest.$ac_objext \
 
21729
      conftest$ac_exeext conftest.$ac_ext
 
21730
fi
 
21731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21732
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21733
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21734
  cat >>confdefs.h <<_ACEOF
 
21735
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21736
_ACEOF
 
21737
 
 
21738
fi
 
21739
done
 
21740
 
 
21741
 
 
21742
 
 
21743
for ac_func in atexit memmove
 
21744
do
 
21745
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21746
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21747
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21748
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21750
else
 
21751
  cat >conftest.$ac_ext <<_ACEOF
 
21752
/* confdefs.h.  */
 
21753
_ACEOF
 
21754
cat confdefs.h >>conftest.$ac_ext
 
21755
cat >>conftest.$ac_ext <<_ACEOF
 
21756
/* end confdefs.h.  */
 
21757
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21758
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21759
#define $ac_func innocuous_$ac_func
 
21760
 
 
21761
/* System header to define __stub macros and hopefully few prototypes,
 
21762
    which can conflict with char $ac_func (); below.
 
21763
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21764
    <limits.h> exists even on freestanding compilers.  */
 
21765
 
 
21766
#ifdef __STDC__
 
21767
# include <limits.h>
 
21768
#else
 
21769
# include <assert.h>
 
21770
#endif
 
21771
 
 
21772
#undef $ac_func
 
21773
 
 
21774
/* Override any gcc2 internal prototype to avoid an error.  */
 
21775
#ifdef __cplusplus
 
21776
extern "C"
 
21777
{
 
21778
#endif
 
21779
/* We use char because int might match the return type of a gcc2
 
21780
   builtin and then its argument prototype would still apply.  */
 
21781
char $ac_func ();
 
21782
/* The GNU C library defines this for functions which it implements
 
21783
    to always fail with ENOSYS.  Some functions are actually named
 
21784
    something starting with __ and the normal name is an alias.  */
 
21785
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21786
choke me
 
21787
#else
 
21788
char (*f) () = $ac_func;
 
21789
#endif
 
21790
#ifdef __cplusplus
 
21791
}
 
21792
#endif
 
21793
 
 
21794
int
 
21795
main ()
 
21796
{
 
21797
return f != $ac_func;
 
21798
  ;
 
21799
  return 0;
 
21800
}
 
21801
_ACEOF
 
21802
rm -f conftest.$ac_objext conftest$ac_exeext
 
21803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21804
  (eval $ac_link) 2>conftest.er1
 
21805
  ac_status=$?
 
21806
  grep -v '^ *+' conftest.er1 >conftest.err
 
21807
  rm -f conftest.er1
 
21808
  cat conftest.err >&5
 
21809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21810
  (exit $ac_status); } &&
 
21811
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21813
  (eval $ac_try) 2>&5
 
21814
  ac_status=$?
 
21815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21816
  (exit $ac_status); }; } &&
 
21817
         { ac_try='test -s conftest$ac_exeext'
 
21818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21819
  (eval $ac_try) 2>&5
 
21820
  ac_status=$?
 
21821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21822
  (exit $ac_status); }; }; then
 
21823
  eval "$as_ac_var=yes"
 
21824
else
 
21825
  echo "$as_me: failed program was:" >&5
 
21826
sed 's/^/| /' conftest.$ac_ext >&5
 
21827
 
 
21828
eval "$as_ac_var=no"
 
21829
fi
 
21830
rm -f conftest.err conftest.$ac_objext \
 
21831
      conftest$ac_exeext conftest.$ac_ext
 
21832
fi
 
21833
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21834
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21835
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21836
  cat >>confdefs.h <<_ACEOF
 
21837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21838
_ACEOF
 
21839
 
 
21840
else
 
21841
  case $LIBOBJS in
 
21842
    "$ac_func.$ac_objext"   | \
 
21843
  *" $ac_func.$ac_objext"   | \
 
21844
    "$ac_func.$ac_objext "* | \
 
21845
  *" $ac_func.$ac_objext "* ) ;;
 
21846
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
21847
esac
 
21848
 
 
21849
fi
 
21850
done
 
21851
 
 
21852
 
 
21853
 
 
21854
 
 
21855
for ac_header in unistd.h
 
21856
do
 
21857
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21858
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21859
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21863
fi
 
21864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21865
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21866
else
 
21867
  # Is the header compilable?
 
21868
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21869
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21870
cat >conftest.$ac_ext <<_ACEOF
 
21871
/* confdefs.h.  */
 
21872
_ACEOF
 
21873
cat confdefs.h >>conftest.$ac_ext
 
21874
cat >>conftest.$ac_ext <<_ACEOF
 
21875
/* end confdefs.h.  */
 
21876
$ac_includes_default
 
21877
#include <$ac_header>
 
21878
_ACEOF
 
21879
rm -f conftest.$ac_objext
 
21880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21881
  (eval $ac_compile) 2>conftest.er1
 
21882
  ac_status=$?
 
21883
  grep -v '^ *+' conftest.er1 >conftest.err
 
21884
  rm -f conftest.er1
 
21885
  cat conftest.err >&5
 
21886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21887
  (exit $ac_status); } &&
 
21888
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21890
  (eval $ac_try) 2>&5
 
21891
  ac_status=$?
 
21892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21893
  (exit $ac_status); }; } &&
 
21894
         { ac_try='test -s conftest.$ac_objext'
 
21895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21896
  (eval $ac_try) 2>&5
 
21897
  ac_status=$?
 
21898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21899
  (exit $ac_status); }; }; then
 
21900
  ac_header_compiler=yes
 
21901
else
 
21902
  echo "$as_me: failed program was:" >&5
 
21903
sed 's/^/| /' conftest.$ac_ext >&5
 
21904
 
 
21905
ac_header_compiler=no
 
21906
fi
 
21907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21908
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21909
echo "${ECHO_T}$ac_header_compiler" >&6
 
21910
 
 
21911
# Is the header present?
 
21912
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21913
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21914
cat >conftest.$ac_ext <<_ACEOF
 
21915
/* confdefs.h.  */
 
21916
_ACEOF
 
21917
cat confdefs.h >>conftest.$ac_ext
 
21918
cat >>conftest.$ac_ext <<_ACEOF
 
21919
/* end confdefs.h.  */
 
21920
#include <$ac_header>
 
21921
_ACEOF
 
21922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21923
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21924
  ac_status=$?
 
21925
  grep -v '^ *+' conftest.er1 >conftest.err
 
21926
  rm -f conftest.er1
 
21927
  cat conftest.err >&5
 
21928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21929
  (exit $ac_status); } >/dev/null; then
 
21930
  if test -s conftest.err; then
 
21931
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21932
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21933
  else
 
21934
    ac_cpp_err=
 
21935
  fi
 
21936
else
 
21937
  ac_cpp_err=yes
 
21938
fi
 
21939
if test -z "$ac_cpp_err"; then
 
21940
  ac_header_preproc=yes
 
21941
else
 
21942
  echo "$as_me: failed program was:" >&5
 
21943
sed 's/^/| /' conftest.$ac_ext >&5
 
21944
 
 
21945
  ac_header_preproc=no
 
21946
fi
 
21947
rm -f conftest.err conftest.$ac_ext
 
21948
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21949
echo "${ECHO_T}$ac_header_preproc" >&6
 
21950
 
 
21951
# So?  What about this header?
 
21952
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21953
  yes:no: )
 
21954
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21955
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21956
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21957
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21958
    ac_header_preproc=yes
 
21959
    ;;
 
21960
  no:yes:* )
 
21961
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21962
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21963
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21964
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21965
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21966
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21967
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21968
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21969
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21970
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21971
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21972
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21973
    (
 
21974
      cat <<\_ASBOX
 
21975
## ------------------------------------------ ##
 
21976
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21977
## ------------------------------------------ ##
 
21978
_ASBOX
 
21979
    ) |
 
21980
      sed "s/^/$as_me: WARNING:     /" >&2
 
21981
    ;;
 
21982
esac
 
21983
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21985
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21987
else
 
21988
  eval "$as_ac_Header=\$ac_header_preproc"
 
21989
fi
 
21990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21992
 
 
21993
fi
 
21994
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21995
  cat >>confdefs.h <<_ACEOF
 
21996
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21997
_ACEOF
 
21998
 
 
21999
fi
 
22000
 
 
22001
done
 
22002
 
 
22003
 
 
22004
 
 
22005
 
 
22006
 
 
22007
for ac_func in setenv unsetenv
 
22008
do
 
22009
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22010
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22011
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22012
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22014
else
 
22015
  cat >conftest.$ac_ext <<_ACEOF
 
22016
/* confdefs.h.  */
 
22017
_ACEOF
 
22018
cat confdefs.h >>conftest.$ac_ext
 
22019
cat >>conftest.$ac_ext <<_ACEOF
 
22020
/* end confdefs.h.  */
 
22021
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22022
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22023
#define $ac_func innocuous_$ac_func
 
22024
 
 
22025
/* System header to define __stub macros and hopefully few prototypes,
 
22026
    which can conflict with char $ac_func (); below.
 
22027
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22028
    <limits.h> exists even on freestanding compilers.  */
 
22029
 
 
22030
#ifdef __STDC__
 
22031
# include <limits.h>
 
22032
#else
 
22033
# include <assert.h>
 
22034
#endif
 
22035
 
 
22036
#undef $ac_func
 
22037
 
 
22038
/* Override any gcc2 internal prototype to avoid an error.  */
 
22039
#ifdef __cplusplus
 
22040
extern "C"
 
22041
{
 
22042
#endif
 
22043
/* We use char because int might match the return type of a gcc2
 
22044
   builtin and then its argument prototype would still apply.  */
 
22045
char $ac_func ();
 
22046
/* The GNU C library defines this for functions which it implements
 
22047
    to always fail with ENOSYS.  Some functions are actually named
 
22048
    something starting with __ and the normal name is an alias.  */
 
22049
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22050
choke me
 
22051
#else
 
22052
char (*f) () = $ac_func;
 
22053
#endif
 
22054
#ifdef __cplusplus
 
22055
}
 
22056
#endif
 
22057
 
 
22058
int
 
22059
main ()
 
22060
{
 
22061
return f != $ac_func;
 
22062
  ;
 
22063
  return 0;
 
22064
}
 
22065
_ACEOF
 
22066
rm -f conftest.$ac_objext conftest$ac_exeext
 
22067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22068
  (eval $ac_link) 2>conftest.er1
 
22069
  ac_status=$?
 
22070
  grep -v '^ *+' conftest.er1 >conftest.err
 
22071
  rm -f conftest.er1
 
22072
  cat conftest.err >&5
 
22073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22074
  (exit $ac_status); } &&
 
22075
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22077
  (eval $ac_try) 2>&5
 
22078
  ac_status=$?
 
22079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22080
  (exit $ac_status); }; } &&
 
22081
         { ac_try='test -s conftest$ac_exeext'
 
22082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22083
  (eval $ac_try) 2>&5
 
22084
  ac_status=$?
 
22085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22086
  (exit $ac_status); }; }; then
 
22087
  eval "$as_ac_var=yes"
 
22088
else
 
22089
  echo "$as_me: failed program was:" >&5
 
22090
sed 's/^/| /' conftest.$ac_ext >&5
 
22091
 
 
22092
eval "$as_ac_var=no"
 
22093
fi
 
22094
rm -f conftest.err conftest.$ac_objext \
 
22095
      conftest$ac_exeext conftest.$ac_ext
 
22096
fi
 
22097
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22098
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22099
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22100
  cat >>confdefs.h <<_ACEOF
 
22101
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22102
_ACEOF
 
22103
 
 
22104
else
 
22105
  case $LIBOBJS in
 
22106
    "$ac_func.$ac_objext"   | \
 
22107
  *" $ac_func.$ac_objext"   | \
 
22108
    "$ac_func.$ac_objext "* | \
 
22109
  *" $ac_func.$ac_objext "* ) ;;
 
22110
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
22111
esac
 
22112
 
 
22113
fi
 
22114
done
 
22115
 
 
22116
 
 
22117
  if test $ac_cv_func_setenv = no; then
 
22118
 
 
22119
 
 
22120
 
 
22121
  :
 
22122
 
 
22123
 
 
22124
 
 
22125
 
 
22126
 
 
22127
 
 
22128
 
 
22129
 
 
22130
 
 
22131
 
 
22132
 
 
22133
 
 
22134
for ac_header in search.h
 
22135
do
 
22136
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22137
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22138
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22139
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22140
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22142
fi
 
22143
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22144
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22145
else
 
22146
  # Is the header compilable?
 
22147
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22148
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22149
cat >conftest.$ac_ext <<_ACEOF
 
22150
/* confdefs.h.  */
 
22151
_ACEOF
 
22152
cat confdefs.h >>conftest.$ac_ext
 
22153
cat >>conftest.$ac_ext <<_ACEOF
 
22154
/* end confdefs.h.  */
 
22155
$ac_includes_default
 
22156
#include <$ac_header>
 
22157
_ACEOF
 
22158
rm -f conftest.$ac_objext
 
22159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22160
  (eval $ac_compile) 2>conftest.er1
 
22161
  ac_status=$?
 
22162
  grep -v '^ *+' conftest.er1 >conftest.err
 
22163
  rm -f conftest.er1
 
22164
  cat conftest.err >&5
 
22165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22166
  (exit $ac_status); } &&
 
22167
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22169
  (eval $ac_try) 2>&5
 
22170
  ac_status=$?
 
22171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22172
  (exit $ac_status); }; } &&
 
22173
         { ac_try='test -s conftest.$ac_objext'
 
22174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22175
  (eval $ac_try) 2>&5
 
22176
  ac_status=$?
 
22177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22178
  (exit $ac_status); }; }; then
 
22179
  ac_header_compiler=yes
 
22180
else
 
22181
  echo "$as_me: failed program was:" >&5
 
22182
sed 's/^/| /' conftest.$ac_ext >&5
 
22183
 
 
22184
ac_header_compiler=no
 
22185
fi
 
22186
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22187
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22188
echo "${ECHO_T}$ac_header_compiler" >&6
 
22189
 
 
22190
# Is the header present?
 
22191
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22192
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22193
cat >conftest.$ac_ext <<_ACEOF
 
22194
/* confdefs.h.  */
 
22195
_ACEOF
 
22196
cat confdefs.h >>conftest.$ac_ext
 
22197
cat >>conftest.$ac_ext <<_ACEOF
 
22198
/* end confdefs.h.  */
 
22199
#include <$ac_header>
 
22200
_ACEOF
 
22201
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22202
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22203
  ac_status=$?
 
22204
  grep -v '^ *+' conftest.er1 >conftest.err
 
22205
  rm -f conftest.er1
 
22206
  cat conftest.err >&5
 
22207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22208
  (exit $ac_status); } >/dev/null; then
 
22209
  if test -s conftest.err; then
 
22210
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22211
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22212
  else
 
22213
    ac_cpp_err=
 
22214
  fi
 
22215
else
 
22216
  ac_cpp_err=yes
 
22217
fi
 
22218
if test -z "$ac_cpp_err"; then
 
22219
  ac_header_preproc=yes
 
22220
else
 
22221
  echo "$as_me: failed program was:" >&5
 
22222
sed 's/^/| /' conftest.$ac_ext >&5
 
22223
 
 
22224
  ac_header_preproc=no
 
22225
fi
 
22226
rm -f conftest.err conftest.$ac_ext
 
22227
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22228
echo "${ECHO_T}$ac_header_preproc" >&6
 
22229
 
 
22230
# So?  What about this header?
 
22231
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22232
  yes:no: )
 
22233
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22234
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22235
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22236
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22237
    ac_header_preproc=yes
 
22238
    ;;
 
22239
  no:yes:* )
 
22240
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22241
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22242
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22243
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22244
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22245
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22246
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22247
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22248
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22249
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22250
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22251
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22252
    (
 
22253
      cat <<\_ASBOX
 
22254
## ------------------------------------------ ##
 
22255
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22256
## ------------------------------------------ ##
 
22257
_ASBOX
 
22258
    ) |
 
22259
      sed "s/^/$as_me: WARNING:     /" >&2
 
22260
    ;;
 
22261
esac
 
22262
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22263
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22264
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22266
else
 
22267
  eval "$as_ac_Header=\$ac_header_preproc"
 
22268
fi
 
22269
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22270
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22271
 
 
22272
fi
 
22273
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22274
  cat >>confdefs.h <<_ACEOF
 
22275
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22276
_ACEOF
 
22277
 
 
22278
fi
 
22279
 
 
22280
done
 
22281
 
 
22282
 
 
22283
for ac_func in tsearch
 
22284
do
 
22285
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22286
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22287
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22288
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22290
else
 
22291
  cat >conftest.$ac_ext <<_ACEOF
 
22292
/* confdefs.h.  */
 
22293
_ACEOF
 
22294
cat confdefs.h >>conftest.$ac_ext
 
22295
cat >>conftest.$ac_ext <<_ACEOF
 
22296
/* end confdefs.h.  */
 
22297
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22298
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22299
#define $ac_func innocuous_$ac_func
 
22300
 
 
22301
/* System header to define __stub macros and hopefully few prototypes,
 
22302
    which can conflict with char $ac_func (); below.
 
22303
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22304
    <limits.h> exists even on freestanding compilers.  */
 
22305
 
 
22306
#ifdef __STDC__
 
22307
# include <limits.h>
 
22308
#else
 
22309
# include <assert.h>
 
22310
#endif
 
22311
 
 
22312
#undef $ac_func
 
22313
 
 
22314
/* Override any gcc2 internal prototype to avoid an error.  */
 
22315
#ifdef __cplusplus
 
22316
extern "C"
 
22317
{
 
22318
#endif
 
22319
/* We use char because int might match the return type of a gcc2
 
22320
   builtin and then its argument prototype would still apply.  */
 
22321
char $ac_func ();
 
22322
/* The GNU C library defines this for functions which it implements
 
22323
    to always fail with ENOSYS.  Some functions are actually named
 
22324
    something starting with __ and the normal name is an alias.  */
 
22325
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22326
choke me
 
22327
#else
 
22328
char (*f) () = $ac_func;
 
22329
#endif
 
22330
#ifdef __cplusplus
 
22331
}
 
22332
#endif
 
22333
 
 
22334
int
 
22335
main ()
 
22336
{
 
22337
return f != $ac_func;
 
22338
  ;
 
22339
  return 0;
 
22340
}
 
22341
_ACEOF
 
22342
rm -f conftest.$ac_objext conftest$ac_exeext
 
22343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22344
  (eval $ac_link) 2>conftest.er1
 
22345
  ac_status=$?
 
22346
  grep -v '^ *+' conftest.er1 >conftest.err
 
22347
  rm -f conftest.er1
 
22348
  cat conftest.err >&5
 
22349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22350
  (exit $ac_status); } &&
 
22351
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22353
  (eval $ac_try) 2>&5
 
22354
  ac_status=$?
 
22355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22356
  (exit $ac_status); }; } &&
 
22357
         { ac_try='test -s conftest$ac_exeext'
 
22358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22359
  (eval $ac_try) 2>&5
 
22360
  ac_status=$?
 
22361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22362
  (exit $ac_status); }; }; then
 
22363
  eval "$as_ac_var=yes"
 
22364
else
 
22365
  echo "$as_me: failed program was:" >&5
 
22366
sed 's/^/| /' conftest.$ac_ext >&5
 
22367
 
 
22368
eval "$as_ac_var=no"
 
22369
fi
 
22370
rm -f conftest.err conftest.$ac_objext \
 
22371
      conftest$ac_exeext conftest.$ac_ext
 
22372
fi
 
22373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22374
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22375
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22376
  cat >>confdefs.h <<_ACEOF
 
22377
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22378
_ACEOF
 
22379
 
 
22380
fi
 
22381
done
 
22382
 
 
22383
 
 
22384
 
 
22385
  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
 
22386
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
 
22387
  if test "${gt_cv_var_errno_declaration+set}" = set; then
 
22388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22389
else
 
22390
 
 
22391
    cat >conftest.$ac_ext <<_ACEOF
 
22392
/* confdefs.h.  */
 
22393
_ACEOF
 
22394
cat confdefs.h >>conftest.$ac_ext
 
22395
cat >>conftest.$ac_ext <<_ACEOF
 
22396
/* end confdefs.h.  */
 
22397
#include <errno.h>
 
22398
      extern struct { int foo; } errno;
 
22399
int
 
22400
main ()
 
22401
{
 
22402
errno.foo = 1;
 
22403
  ;
 
22404
  return 0;
 
22405
}
 
22406
_ACEOF
 
22407
rm -f conftest.$ac_objext
 
22408
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22409
  (eval $ac_compile) 2>conftest.er1
 
22410
  ac_status=$?
 
22411
  grep -v '^ *+' conftest.er1 >conftest.err
 
22412
  rm -f conftest.er1
 
22413
  cat conftest.err >&5
 
22414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22415
  (exit $ac_status); } &&
 
22416
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22418
  (eval $ac_try) 2>&5
 
22419
  ac_status=$?
 
22420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22421
  (exit $ac_status); }; } &&
 
22422
         { ac_try='test -s conftest.$ac_objext'
 
22423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22424
  (eval $ac_try) 2>&5
 
22425
  ac_status=$?
 
22426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22427
  (exit $ac_status); }; }; then
 
22428
  gt_cv_var_errno_declaration=no
 
22429
else
 
22430
  echo "$as_me: failed program was:" >&5
 
22431
sed 's/^/| /' conftest.$ac_ext >&5
 
22432
 
 
22433
gt_cv_var_errno_declaration=yes
 
22434
fi
 
22435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22436
fi
 
22437
 
 
22438
  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
 
22439
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
 
22440
  if test $gt_cv_var_errno_declaration = yes; then
 
22441
 
 
22442
cat >>confdefs.h <<\_ACEOF
 
22443
#define HAVE_ERRNO_DECL 1
 
22444
_ACEOF
 
22445
 
 
22446
  fi
 
22447
 
 
22448
 
 
22449
 
 
22450
  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
22451
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
 
22452
  if test "${gt_cv_var_environ_declaration+set}" = set; then
 
22453
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22454
else
 
22455
 
 
22456
    cat >conftest.$ac_ext <<_ACEOF
 
22457
/* confdefs.h.  */
 
22458
_ACEOF
 
22459
cat confdefs.h >>conftest.$ac_ext
 
22460
cat >>conftest.$ac_ext <<_ACEOF
 
22461
/* end confdefs.h.  */
 
22462
#include <unistd.h>
 
22463
      extern struct { int foo; } environ;
 
22464
int
 
22465
main ()
 
22466
{
 
22467
environ.foo = 1;
 
22468
  ;
 
22469
  return 0;
 
22470
}
 
22471
_ACEOF
 
22472
rm -f conftest.$ac_objext
 
22473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22474
  (eval $ac_compile) 2>conftest.er1
 
22475
  ac_status=$?
 
22476
  grep -v '^ *+' conftest.er1 >conftest.err
 
22477
  rm -f conftest.er1
 
22478
  cat conftest.err >&5
 
22479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22480
  (exit $ac_status); } &&
 
22481
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22483
  (eval $ac_try) 2>&5
 
22484
  ac_status=$?
 
22485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22486
  (exit $ac_status); }; } &&
 
22487
         { ac_try='test -s conftest.$ac_objext'
 
22488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22489
  (eval $ac_try) 2>&5
 
22490
  ac_status=$?
 
22491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22492
  (exit $ac_status); }; }; then
 
22493
  gt_cv_var_environ_declaration=no
 
22494
else
 
22495
  echo "$as_me: failed program was:" >&5
 
22496
sed 's/^/| /' conftest.$ac_ext >&5
 
22497
 
 
22498
gt_cv_var_environ_declaration=yes
 
22499
fi
 
22500
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22501
fi
 
22502
 
 
22503
  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
22504
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
 
22505
  if test $gt_cv_var_environ_declaration = yes; then
 
22506
 
 
22507
cat >>confdefs.h <<\_ACEOF
 
22508
#define HAVE_ENVIRON_DECL 1
 
22509
_ACEOF
 
22510
 
 
22511
  fi
 
22512
 
 
22513
 
 
22514
  fi
 
22515
  if test $ac_cv_func_unsetenv = no; then
 
22516
 
 
22517
 
 
22518
  :
 
22519
 
 
22520
 
 
22521
 
 
22522
 
 
22523
 
 
22524
 
 
22525
 
 
22526
 
 
22527
 
 
22528
 
 
22529
 
 
22530
 
 
22531
 
 
22532
  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
 
22533
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
 
22534
  if test "${gt_cv_var_errno_declaration+set}" = set; then
 
22535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22536
else
 
22537
 
 
22538
    cat >conftest.$ac_ext <<_ACEOF
 
22539
/* confdefs.h.  */
 
22540
_ACEOF
 
22541
cat confdefs.h >>conftest.$ac_ext
 
22542
cat >>conftest.$ac_ext <<_ACEOF
 
22543
/* end confdefs.h.  */
 
22544
#include <errno.h>
 
22545
      extern struct { int foo; } errno;
 
22546
int
 
22547
main ()
 
22548
{
 
22549
errno.foo = 1;
 
22550
  ;
 
22551
  return 0;
 
22552
}
 
22553
_ACEOF
 
22554
rm -f conftest.$ac_objext
 
22555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22556
  (eval $ac_compile) 2>conftest.er1
 
22557
  ac_status=$?
 
22558
  grep -v '^ *+' conftest.er1 >conftest.err
 
22559
  rm -f conftest.er1
 
22560
  cat conftest.err >&5
 
22561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22562
  (exit $ac_status); } &&
 
22563
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22565
  (eval $ac_try) 2>&5
 
22566
  ac_status=$?
 
22567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22568
  (exit $ac_status); }; } &&
 
22569
         { ac_try='test -s conftest.$ac_objext'
 
22570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22571
  (eval $ac_try) 2>&5
 
22572
  ac_status=$?
 
22573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22574
  (exit $ac_status); }; }; then
 
22575
  gt_cv_var_errno_declaration=no
 
22576
else
 
22577
  echo "$as_me: failed program was:" >&5
 
22578
sed 's/^/| /' conftest.$ac_ext >&5
 
22579
 
 
22580
gt_cv_var_errno_declaration=yes
 
22581
fi
 
22582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22583
fi
 
22584
 
 
22585
  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
 
22586
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
 
22587
  if test $gt_cv_var_errno_declaration = yes; then
 
22588
 
 
22589
cat >>confdefs.h <<\_ACEOF
 
22590
#define HAVE_ERRNO_DECL 1
 
22591
_ACEOF
 
22592
 
 
22593
  fi
 
22594
 
 
22595
 
 
22596
 
 
22597
  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
22598
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
 
22599
  if test "${gt_cv_var_environ_declaration+set}" = set; then
 
22600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22601
else
 
22602
 
 
22603
    cat >conftest.$ac_ext <<_ACEOF
 
22604
/* confdefs.h.  */
 
22605
_ACEOF
 
22606
cat confdefs.h >>conftest.$ac_ext
 
22607
cat >>conftest.$ac_ext <<_ACEOF
 
22608
/* end confdefs.h.  */
 
22609
#include <unistd.h>
 
22610
      extern struct { int foo; } environ;
 
22611
int
 
22612
main ()
 
22613
{
 
22614
environ.foo = 1;
 
22615
  ;
 
22616
  return 0;
 
22617
}
 
22618
_ACEOF
 
22619
rm -f conftest.$ac_objext
 
22620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22621
  (eval $ac_compile) 2>conftest.er1
 
22622
  ac_status=$?
 
22623
  grep -v '^ *+' conftest.er1 >conftest.err
 
22624
  rm -f conftest.er1
 
22625
  cat conftest.err >&5
 
22626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22627
  (exit $ac_status); } &&
 
22628
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22630
  (eval $ac_try) 2>&5
 
22631
  ac_status=$?
 
22632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22633
  (exit $ac_status); }; } &&
 
22634
         { ac_try='test -s conftest.$ac_objext'
 
22635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22636
  (eval $ac_try) 2>&5
 
22637
  ac_status=$?
 
22638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22639
  (exit $ac_status); }; }; then
 
22640
  gt_cv_var_environ_declaration=no
 
22641
else
 
22642
  echo "$as_me: failed program was:" >&5
 
22643
sed 's/^/| /' conftest.$ac_ext >&5
 
22644
 
 
22645
gt_cv_var_environ_declaration=yes
 
22646
fi
 
22647
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22648
fi
 
22649
 
 
22650
  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
22651
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
 
22652
  if test $gt_cv_var_environ_declaration = yes; then
 
22653
 
 
22654
cat >>confdefs.h <<\_ACEOF
 
22655
#define HAVE_ENVIRON_DECL 1
 
22656
_ACEOF
 
22657
 
 
22658
  fi
 
22659
 
 
22660
 
 
22661
  fi
 
22662
 
 
22663
 
 
22664
 
 
22665
for ac_func in strerror
 
22666
do
 
22667
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22668
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22669
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22670
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22672
else
 
22673
  cat >conftest.$ac_ext <<_ACEOF
 
22674
/* confdefs.h.  */
 
22675
_ACEOF
 
22676
cat confdefs.h >>conftest.$ac_ext
 
22677
cat >>conftest.$ac_ext <<_ACEOF
 
22678
/* end confdefs.h.  */
 
22679
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22680
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22681
#define $ac_func innocuous_$ac_func
 
22682
 
 
22683
/* System header to define __stub macros and hopefully few prototypes,
 
22684
    which can conflict with char $ac_func (); below.
 
22685
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22686
    <limits.h> exists even on freestanding compilers.  */
 
22687
 
 
22688
#ifdef __STDC__
 
22689
# include <limits.h>
 
22690
#else
 
22691
# include <assert.h>
 
22692
#endif
 
22693
 
 
22694
#undef $ac_func
 
22695
 
 
22696
/* Override any gcc2 internal prototype to avoid an error.  */
 
22697
#ifdef __cplusplus
 
22698
extern "C"
 
22699
{
 
22700
#endif
 
22701
/* We use char because int might match the return type of a gcc2
 
22702
   builtin and then its argument prototype would still apply.  */
 
22703
char $ac_func ();
 
22704
/* The GNU C library defines this for functions which it implements
 
22705
    to always fail with ENOSYS.  Some functions are actually named
 
22706
    something starting with __ and the normal name is an alias.  */
 
22707
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22708
choke me
 
22709
#else
 
22710
char (*f) () = $ac_func;
 
22711
#endif
 
22712
#ifdef __cplusplus
 
22713
}
 
22714
#endif
 
22715
 
 
22716
int
 
22717
main ()
 
22718
{
 
22719
return f != $ac_func;
 
22720
  ;
 
22721
  return 0;
 
22722
}
 
22723
_ACEOF
 
22724
rm -f conftest.$ac_objext conftest$ac_exeext
 
22725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22726
  (eval $ac_link) 2>conftest.er1
 
22727
  ac_status=$?
 
22728
  grep -v '^ *+' conftest.er1 >conftest.err
 
22729
  rm -f conftest.er1
 
22730
  cat conftest.err >&5
 
22731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22732
  (exit $ac_status); } &&
 
22733
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22735
  (eval $ac_try) 2>&5
 
22736
  ac_status=$?
 
22737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22738
  (exit $ac_status); }; } &&
 
22739
         { ac_try='test -s conftest$ac_exeext'
 
22740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22741
  (eval $ac_try) 2>&5
 
22742
  ac_status=$?
 
22743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22744
  (exit $ac_status); }; }; then
 
22745
  eval "$as_ac_var=yes"
 
22746
else
 
22747
  echo "$as_me: failed program was:" >&5
 
22748
sed 's/^/| /' conftest.$ac_ext >&5
 
22749
 
 
22750
eval "$as_ac_var=no"
 
22751
fi
 
22752
rm -f conftest.err conftest.$ac_objext \
 
22753
      conftest$ac_exeext conftest.$ac_ext
 
22754
fi
 
22755
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22756
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22757
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22758
  cat >>confdefs.h <<_ACEOF
 
22759
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22760
_ACEOF
 
22761
 
 
22762
else
 
22763
  case $LIBOBJS in
 
22764
    "$ac_func.$ac_objext"   | \
 
22765
  *" $ac_func.$ac_objext"   | \
 
22766
    "$ac_func.$ac_objext "* | \
 
22767
  *" $ac_func.$ac_objext "* ) ;;
 
22768
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
22769
esac
 
22770
 
 
22771
fi
 
22772
done
 
22773
 
 
22774
 
 
22775
  if test $ac_cv_func_strerror = no; then
 
22776
 
 
22777
  :
 
22778
 
 
22779
  fi
 
22780
 
 
22781
 
 
22782
      echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
 
22783
echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
 
22784
if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
 
22785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22786
else
 
22787
  cat >conftest.$ac_ext <<_ACEOF
 
22788
/* confdefs.h.  */
 
22789
_ACEOF
 
22790
cat confdefs.h >>conftest.$ac_ext
 
22791
cat >>conftest.$ac_ext <<_ACEOF
 
22792
/* end confdefs.h.  */
 
22793
$ac_includes_default
 
22794
int
 
22795
main ()
 
22796
{
 
22797
#ifndef clearerr_unlocked
 
22798
  char *p = (char *) clearerr_unlocked;
 
22799
#endif
 
22800
 
 
22801
  ;
 
22802
  return 0;
 
22803
}
 
22804
_ACEOF
 
22805
rm -f conftest.$ac_objext
 
22806
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22807
  (eval $ac_compile) 2>conftest.er1
 
22808
  ac_status=$?
 
22809
  grep -v '^ *+' conftest.er1 >conftest.err
 
22810
  rm -f conftest.er1
 
22811
  cat conftest.err >&5
 
22812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22813
  (exit $ac_status); } &&
 
22814
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22816
  (eval $ac_try) 2>&5
 
22817
  ac_status=$?
 
22818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22819
  (exit $ac_status); }; } &&
 
22820
         { ac_try='test -s conftest.$ac_objext'
 
22821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22822
  (eval $ac_try) 2>&5
 
22823
  ac_status=$?
 
22824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22825
  (exit $ac_status); }; }; then
 
22826
  ac_cv_have_decl_clearerr_unlocked=yes
 
22827
else
 
22828
  echo "$as_me: failed program was:" >&5
 
22829
sed 's/^/| /' conftest.$ac_ext >&5
 
22830
 
 
22831
ac_cv_have_decl_clearerr_unlocked=no
 
22832
fi
 
22833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22834
fi
 
22835
echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
 
22836
echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
 
22837
if test $ac_cv_have_decl_clearerr_unlocked = yes; then
 
22838
 
 
22839
cat >>confdefs.h <<_ACEOF
 
22840
#define HAVE_DECL_CLEARERR_UNLOCKED 1
 
22841
_ACEOF
 
22842
 
 
22843
 
 
22844
else
 
22845
  cat >>confdefs.h <<_ACEOF
 
22846
#define HAVE_DECL_CLEARERR_UNLOCKED 0
 
22847
_ACEOF
 
22848
 
 
22849
 
 
22850
fi
 
22851
 
 
22852
 
 
22853
 
 
22854
 
 
22855
      echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
22856
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
22857
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
22858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22859
else
 
22860
  cat >conftest.$ac_ext <<_ACEOF
 
22861
/* confdefs.h.  */
 
22862
_ACEOF
 
22863
cat confdefs.h >>conftest.$ac_ext
 
22864
cat >>conftest.$ac_ext <<_ACEOF
 
22865
/* end confdefs.h.  */
 
22866
$ac_includes_default
 
22867
int
 
22868
main ()
 
22869
{
 
22870
#ifndef feof_unlocked
 
22871
  char *p = (char *) feof_unlocked;
 
22872
#endif
 
22873
 
 
22874
  ;
 
22875
  return 0;
 
22876
}
 
22877
_ACEOF
 
22878
rm -f conftest.$ac_objext
 
22879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22880
  (eval $ac_compile) 2>conftest.er1
 
22881
  ac_status=$?
 
22882
  grep -v '^ *+' conftest.er1 >conftest.err
 
22883
  rm -f conftest.er1
 
22884
  cat conftest.err >&5
 
22885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22886
  (exit $ac_status); } &&
 
22887
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22889
  (eval $ac_try) 2>&5
 
22890
  ac_status=$?
 
22891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22892
  (exit $ac_status); }; } &&
 
22893
         { ac_try='test -s conftest.$ac_objext'
 
22894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22895
  (eval $ac_try) 2>&5
 
22896
  ac_status=$?
 
22897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22898
  (exit $ac_status); }; }; then
 
22899
  ac_cv_have_decl_feof_unlocked=yes
 
22900
else
 
22901
  echo "$as_me: failed program was:" >&5
 
22902
sed 's/^/| /' conftest.$ac_ext >&5
 
22903
 
 
22904
ac_cv_have_decl_feof_unlocked=no
 
22905
fi
 
22906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22907
fi
 
22908
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
22909
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
22910
if test $ac_cv_have_decl_feof_unlocked = yes; then
 
22911
 
 
22912
cat >>confdefs.h <<_ACEOF
 
22913
#define HAVE_DECL_FEOF_UNLOCKED 1
 
22914
_ACEOF
 
22915
 
 
22916
 
 
22917
else
 
22918
  cat >>confdefs.h <<_ACEOF
 
22919
#define HAVE_DECL_FEOF_UNLOCKED 0
 
22920
_ACEOF
 
22921
 
 
22922
 
 
22923
fi
 
22924
 
 
22925
 
 
22926
 
 
22927
 
 
22928
      echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
 
22929
echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
 
22930
if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
 
22931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22932
else
 
22933
  cat >conftest.$ac_ext <<_ACEOF
 
22934
/* confdefs.h.  */
 
22935
_ACEOF
 
22936
cat confdefs.h >>conftest.$ac_ext
 
22937
cat >>conftest.$ac_ext <<_ACEOF
 
22938
/* end confdefs.h.  */
 
22939
$ac_includes_default
 
22940
int
 
22941
main ()
 
22942
{
 
22943
#ifndef ferror_unlocked
 
22944
  char *p = (char *) ferror_unlocked;
 
22945
#endif
 
22946
 
 
22947
  ;
 
22948
  return 0;
 
22949
}
 
22950
_ACEOF
 
22951
rm -f conftest.$ac_objext
 
22952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22953
  (eval $ac_compile) 2>conftest.er1
 
22954
  ac_status=$?
 
22955
  grep -v '^ *+' conftest.er1 >conftest.err
 
22956
  rm -f conftest.er1
 
22957
  cat conftest.err >&5
 
22958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22959
  (exit $ac_status); } &&
 
22960
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22962
  (eval $ac_try) 2>&5
 
22963
  ac_status=$?
 
22964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22965
  (exit $ac_status); }; } &&
 
22966
         { ac_try='test -s conftest.$ac_objext'
 
22967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22968
  (eval $ac_try) 2>&5
 
22969
  ac_status=$?
 
22970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22971
  (exit $ac_status); }; }; then
 
22972
  ac_cv_have_decl_ferror_unlocked=yes
 
22973
else
 
22974
  echo "$as_me: failed program was:" >&5
 
22975
sed 's/^/| /' conftest.$ac_ext >&5
 
22976
 
 
22977
ac_cv_have_decl_ferror_unlocked=no
 
22978
fi
 
22979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22980
fi
 
22981
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
 
22982
echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
 
22983
if test $ac_cv_have_decl_ferror_unlocked = yes; then
 
22984
 
 
22985
cat >>confdefs.h <<_ACEOF
 
22986
#define HAVE_DECL_FERROR_UNLOCKED 1
 
22987
_ACEOF
 
22988
 
 
22989
 
 
22990
else
 
22991
  cat >>confdefs.h <<_ACEOF
 
22992
#define HAVE_DECL_FERROR_UNLOCKED 0
 
22993
_ACEOF
 
22994
 
 
22995
 
 
22996
fi
 
22997
 
 
22998
 
 
22999
 
 
23000
 
 
23001
      echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
 
23002
echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
 
23003
if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
 
23004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23005
else
 
23006
  cat >conftest.$ac_ext <<_ACEOF
 
23007
/* confdefs.h.  */
 
23008
_ACEOF
 
23009
cat confdefs.h >>conftest.$ac_ext
 
23010
cat >>conftest.$ac_ext <<_ACEOF
 
23011
/* end confdefs.h.  */
 
23012
$ac_includes_default
 
23013
int
 
23014
main ()
 
23015
{
 
23016
#ifndef fflush_unlocked
 
23017
  char *p = (char *) fflush_unlocked;
 
23018
#endif
 
23019
 
 
23020
  ;
 
23021
  return 0;
 
23022
}
 
23023
_ACEOF
 
23024
rm -f conftest.$ac_objext
 
23025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23026
  (eval $ac_compile) 2>conftest.er1
 
23027
  ac_status=$?
 
23028
  grep -v '^ *+' conftest.er1 >conftest.err
 
23029
  rm -f conftest.er1
 
23030
  cat conftest.err >&5
 
23031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23032
  (exit $ac_status); } &&
 
23033
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23035
  (eval $ac_try) 2>&5
 
23036
  ac_status=$?
 
23037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23038
  (exit $ac_status); }; } &&
 
23039
         { ac_try='test -s conftest.$ac_objext'
 
23040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23041
  (eval $ac_try) 2>&5
 
23042
  ac_status=$?
 
23043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23044
  (exit $ac_status); }; }; then
 
23045
  ac_cv_have_decl_fflush_unlocked=yes
 
23046
else
 
23047
  echo "$as_me: failed program was:" >&5
 
23048
sed 's/^/| /' conftest.$ac_ext >&5
 
23049
 
 
23050
ac_cv_have_decl_fflush_unlocked=no
 
23051
fi
 
23052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23053
fi
 
23054
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
 
23055
echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
 
23056
if test $ac_cv_have_decl_fflush_unlocked = yes; then
 
23057
 
 
23058
cat >>confdefs.h <<_ACEOF
 
23059
#define HAVE_DECL_FFLUSH_UNLOCKED 1
 
23060
_ACEOF
 
23061
 
 
23062
 
 
23063
else
 
23064
  cat >>confdefs.h <<_ACEOF
 
23065
#define HAVE_DECL_FFLUSH_UNLOCKED 0
 
23066
_ACEOF
 
23067
 
 
23068
 
 
23069
fi
 
23070
 
 
23071
 
 
23072
 
 
23073
 
 
23074
      echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
23075
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
23076
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
23077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23078
else
 
23079
  cat >conftest.$ac_ext <<_ACEOF
 
23080
/* confdefs.h.  */
 
23081
_ACEOF
 
23082
cat confdefs.h >>conftest.$ac_ext
 
23083
cat >>conftest.$ac_ext <<_ACEOF
 
23084
/* end confdefs.h.  */
 
23085
$ac_includes_default
 
23086
int
 
23087
main ()
 
23088
{
 
23089
#ifndef fgets_unlocked
 
23090
  char *p = (char *) fgets_unlocked;
 
23091
#endif
 
23092
 
 
23093
  ;
 
23094
  return 0;
 
23095
}
 
23096
_ACEOF
 
23097
rm -f conftest.$ac_objext
 
23098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23099
  (eval $ac_compile) 2>conftest.er1
 
23100
  ac_status=$?
 
23101
  grep -v '^ *+' conftest.er1 >conftest.err
 
23102
  rm -f conftest.er1
 
23103
  cat conftest.err >&5
 
23104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23105
  (exit $ac_status); } &&
 
23106
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23108
  (eval $ac_try) 2>&5
 
23109
  ac_status=$?
 
23110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23111
  (exit $ac_status); }; } &&
 
23112
         { ac_try='test -s conftest.$ac_objext'
 
23113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23114
  (eval $ac_try) 2>&5
 
23115
  ac_status=$?
 
23116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23117
  (exit $ac_status); }; }; then
 
23118
  ac_cv_have_decl_fgets_unlocked=yes
 
23119
else
 
23120
  echo "$as_me: failed program was:" >&5
 
23121
sed 's/^/| /' conftest.$ac_ext >&5
 
23122
 
 
23123
ac_cv_have_decl_fgets_unlocked=no
 
23124
fi
 
23125
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23126
fi
 
23127
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
23128
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
23129
if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
23130
 
 
23131
cat >>confdefs.h <<_ACEOF
 
23132
#define HAVE_DECL_FGETS_UNLOCKED 1
 
23133
_ACEOF
 
23134
 
 
23135
 
 
23136
else
 
23137
  cat >>confdefs.h <<_ACEOF
 
23138
#define HAVE_DECL_FGETS_UNLOCKED 0
 
23139
_ACEOF
 
23140
 
 
23141
 
 
23142
fi
 
23143
 
 
23144
 
 
23145
 
 
23146
 
 
23147
      echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
 
23148
echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
 
23149
if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
 
23150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23151
else
 
23152
  cat >conftest.$ac_ext <<_ACEOF
 
23153
/* confdefs.h.  */
 
23154
_ACEOF
 
23155
cat confdefs.h >>conftest.$ac_ext
 
23156
cat >>conftest.$ac_ext <<_ACEOF
 
23157
/* end confdefs.h.  */
 
23158
$ac_includes_default
 
23159
int
 
23160
main ()
 
23161
{
 
23162
#ifndef fputc_unlocked
 
23163
  char *p = (char *) fputc_unlocked;
 
23164
#endif
 
23165
 
 
23166
  ;
 
23167
  return 0;
 
23168
}
 
23169
_ACEOF
 
23170
rm -f conftest.$ac_objext
 
23171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23172
  (eval $ac_compile) 2>conftest.er1
 
23173
  ac_status=$?
 
23174
  grep -v '^ *+' conftest.er1 >conftest.err
 
23175
  rm -f conftest.er1
 
23176
  cat conftest.err >&5
 
23177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23178
  (exit $ac_status); } &&
 
23179
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23181
  (eval $ac_try) 2>&5
 
23182
  ac_status=$?
 
23183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23184
  (exit $ac_status); }; } &&
 
23185
         { ac_try='test -s conftest.$ac_objext'
 
23186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23187
  (eval $ac_try) 2>&5
 
23188
  ac_status=$?
 
23189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23190
  (exit $ac_status); }; }; then
 
23191
  ac_cv_have_decl_fputc_unlocked=yes
 
23192
else
 
23193
  echo "$as_me: failed program was:" >&5
 
23194
sed 's/^/| /' conftest.$ac_ext >&5
 
23195
 
 
23196
ac_cv_have_decl_fputc_unlocked=no
 
23197
fi
 
23198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23199
fi
 
23200
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
 
23201
echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
 
23202
if test $ac_cv_have_decl_fputc_unlocked = yes; then
 
23203
 
 
23204
cat >>confdefs.h <<_ACEOF
 
23205
#define HAVE_DECL_FPUTC_UNLOCKED 1
 
23206
_ACEOF
 
23207
 
 
23208
 
 
23209
else
 
23210
  cat >>confdefs.h <<_ACEOF
 
23211
#define HAVE_DECL_FPUTC_UNLOCKED 0
 
23212
_ACEOF
 
23213
 
 
23214
 
 
23215
fi
 
23216
 
 
23217
 
 
23218
 
 
23219
 
 
23220
      echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
 
23221
echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
 
23222
if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
 
23223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23224
else
 
23225
  cat >conftest.$ac_ext <<_ACEOF
 
23226
/* confdefs.h.  */
 
23227
_ACEOF
 
23228
cat confdefs.h >>conftest.$ac_ext
 
23229
cat >>conftest.$ac_ext <<_ACEOF
 
23230
/* end confdefs.h.  */
 
23231
$ac_includes_default
 
23232
int
 
23233
main ()
 
23234
{
 
23235
#ifndef fputs_unlocked
 
23236
  char *p = (char *) fputs_unlocked;
 
23237
#endif
 
23238
 
 
23239
  ;
 
23240
  return 0;
 
23241
}
 
23242
_ACEOF
 
23243
rm -f conftest.$ac_objext
 
23244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23245
  (eval $ac_compile) 2>conftest.er1
 
23246
  ac_status=$?
 
23247
  grep -v '^ *+' conftest.er1 >conftest.err
 
23248
  rm -f conftest.er1
 
23249
  cat conftest.err >&5
 
23250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23251
  (exit $ac_status); } &&
 
23252
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23254
  (eval $ac_try) 2>&5
 
23255
  ac_status=$?
 
23256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23257
  (exit $ac_status); }; } &&
 
23258
         { ac_try='test -s conftest.$ac_objext'
 
23259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23260
  (eval $ac_try) 2>&5
 
23261
  ac_status=$?
 
23262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23263
  (exit $ac_status); }; }; then
 
23264
  ac_cv_have_decl_fputs_unlocked=yes
 
23265
else
 
23266
  echo "$as_me: failed program was:" >&5
 
23267
sed 's/^/| /' conftest.$ac_ext >&5
 
23268
 
 
23269
ac_cv_have_decl_fputs_unlocked=no
 
23270
fi
 
23271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23272
fi
 
23273
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
 
23274
echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
 
23275
if test $ac_cv_have_decl_fputs_unlocked = yes; then
 
23276
 
 
23277
cat >>confdefs.h <<_ACEOF
 
23278
#define HAVE_DECL_FPUTS_UNLOCKED 1
 
23279
_ACEOF
 
23280
 
 
23281
 
 
23282
else
 
23283
  cat >>confdefs.h <<_ACEOF
 
23284
#define HAVE_DECL_FPUTS_UNLOCKED 0
 
23285
_ACEOF
 
23286
 
 
23287
 
 
23288
fi
 
23289
 
 
23290
 
 
23291
 
 
23292
 
 
23293
      echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
 
23294
echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
 
23295
if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
 
23296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23297
else
 
23298
  cat >conftest.$ac_ext <<_ACEOF
 
23299
/* confdefs.h.  */
 
23300
_ACEOF
 
23301
cat confdefs.h >>conftest.$ac_ext
 
23302
cat >>conftest.$ac_ext <<_ACEOF
 
23303
/* end confdefs.h.  */
 
23304
$ac_includes_default
 
23305
int
 
23306
main ()
 
23307
{
 
23308
#ifndef fread_unlocked
 
23309
  char *p = (char *) fread_unlocked;
 
23310
#endif
 
23311
 
 
23312
  ;
 
23313
  return 0;
 
23314
}
 
23315
_ACEOF
 
23316
rm -f conftest.$ac_objext
 
23317
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23318
  (eval $ac_compile) 2>conftest.er1
 
23319
  ac_status=$?
 
23320
  grep -v '^ *+' conftest.er1 >conftest.err
 
23321
  rm -f conftest.er1
 
23322
  cat conftest.err >&5
 
23323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23324
  (exit $ac_status); } &&
 
23325
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23327
  (eval $ac_try) 2>&5
 
23328
  ac_status=$?
 
23329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23330
  (exit $ac_status); }; } &&
 
23331
         { ac_try='test -s conftest.$ac_objext'
 
23332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23333
  (eval $ac_try) 2>&5
 
23334
  ac_status=$?
 
23335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23336
  (exit $ac_status); }; }; then
 
23337
  ac_cv_have_decl_fread_unlocked=yes
 
23338
else
 
23339
  echo "$as_me: failed program was:" >&5
 
23340
sed 's/^/| /' conftest.$ac_ext >&5
 
23341
 
 
23342
ac_cv_have_decl_fread_unlocked=no
 
23343
fi
 
23344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23345
fi
 
23346
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
 
23347
echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
 
23348
if test $ac_cv_have_decl_fread_unlocked = yes; then
 
23349
 
 
23350
cat >>confdefs.h <<_ACEOF
 
23351
#define HAVE_DECL_FREAD_UNLOCKED 1
 
23352
_ACEOF
 
23353
 
 
23354
 
 
23355
else
 
23356
  cat >>confdefs.h <<_ACEOF
 
23357
#define HAVE_DECL_FREAD_UNLOCKED 0
 
23358
_ACEOF
 
23359
 
 
23360
 
 
23361
fi
 
23362
 
 
23363
 
 
23364
 
 
23365
 
 
23366
      echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
 
23367
echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
 
23368
if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
 
23369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23370
else
 
23371
  cat >conftest.$ac_ext <<_ACEOF
 
23372
/* confdefs.h.  */
 
23373
_ACEOF
 
23374
cat confdefs.h >>conftest.$ac_ext
 
23375
cat >>conftest.$ac_ext <<_ACEOF
 
23376
/* end confdefs.h.  */
 
23377
$ac_includes_default
 
23378
int
 
23379
main ()
 
23380
{
 
23381
#ifndef fwrite_unlocked
 
23382
  char *p = (char *) fwrite_unlocked;
 
23383
#endif
 
23384
 
 
23385
  ;
 
23386
  return 0;
 
23387
}
 
23388
_ACEOF
 
23389
rm -f conftest.$ac_objext
 
23390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23391
  (eval $ac_compile) 2>conftest.er1
 
23392
  ac_status=$?
 
23393
  grep -v '^ *+' conftest.er1 >conftest.err
 
23394
  rm -f conftest.er1
 
23395
  cat conftest.err >&5
 
23396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23397
  (exit $ac_status); } &&
 
23398
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23400
  (eval $ac_try) 2>&5
 
23401
  ac_status=$?
 
23402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23403
  (exit $ac_status); }; } &&
 
23404
         { ac_try='test -s conftest.$ac_objext'
 
23405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23406
  (eval $ac_try) 2>&5
 
23407
  ac_status=$?
 
23408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23409
  (exit $ac_status); }; }; then
 
23410
  ac_cv_have_decl_fwrite_unlocked=yes
 
23411
else
 
23412
  echo "$as_me: failed program was:" >&5
 
23413
sed 's/^/| /' conftest.$ac_ext >&5
 
23414
 
 
23415
ac_cv_have_decl_fwrite_unlocked=no
 
23416
fi
 
23417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23418
fi
 
23419
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
 
23420
echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
 
23421
if test $ac_cv_have_decl_fwrite_unlocked = yes; then
 
23422
 
 
23423
cat >>confdefs.h <<_ACEOF
 
23424
#define HAVE_DECL_FWRITE_UNLOCKED 1
 
23425
_ACEOF
 
23426
 
 
23427
 
 
23428
else
 
23429
  cat >>confdefs.h <<_ACEOF
 
23430
#define HAVE_DECL_FWRITE_UNLOCKED 0
 
23431
_ACEOF
 
23432
 
 
23433
 
 
23434
fi
 
23435
 
 
23436
 
 
23437
 
 
23438
 
 
23439
      echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
23440
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
 
23441
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
23442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23443
else
 
23444
  cat >conftest.$ac_ext <<_ACEOF
 
23445
/* confdefs.h.  */
 
23446
_ACEOF
 
23447
cat confdefs.h >>conftest.$ac_ext
 
23448
cat >>conftest.$ac_ext <<_ACEOF
 
23449
/* end confdefs.h.  */
 
23450
$ac_includes_default
 
23451
int
 
23452
main ()
 
23453
{
 
23454
#ifndef getc_unlocked
 
23455
  char *p = (char *) getc_unlocked;
 
23456
#endif
 
23457
 
 
23458
  ;
 
23459
  return 0;
 
23460
}
 
23461
_ACEOF
 
23462
rm -f conftest.$ac_objext
 
23463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23464
  (eval $ac_compile) 2>conftest.er1
 
23465
  ac_status=$?
 
23466
  grep -v '^ *+' conftest.er1 >conftest.err
 
23467
  rm -f conftest.er1
 
23468
  cat conftest.err >&5
 
23469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23470
  (exit $ac_status); } &&
 
23471
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23473
  (eval $ac_try) 2>&5
 
23474
  ac_status=$?
 
23475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23476
  (exit $ac_status); }; } &&
 
23477
         { ac_try='test -s conftest.$ac_objext'
 
23478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23479
  (eval $ac_try) 2>&5
 
23480
  ac_status=$?
 
23481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23482
  (exit $ac_status); }; }; then
 
23483
  ac_cv_have_decl_getc_unlocked=yes
 
23484
else
 
23485
  echo "$as_me: failed program was:" >&5
 
23486
sed 's/^/| /' conftest.$ac_ext >&5
 
23487
 
 
23488
ac_cv_have_decl_getc_unlocked=no
 
23489
fi
 
23490
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23491
fi
 
23492
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
23493
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
 
23494
if test $ac_cv_have_decl_getc_unlocked = yes; then
 
23495
 
 
23496
cat >>confdefs.h <<_ACEOF
 
23497
#define HAVE_DECL_GETC_UNLOCKED 1
 
23498
_ACEOF
 
23499
 
 
23500
 
 
23501
else
 
23502
  cat >>confdefs.h <<_ACEOF
 
23503
#define HAVE_DECL_GETC_UNLOCKED 0
 
23504
_ACEOF
 
23505
 
 
23506
 
 
23507
fi
 
23508
 
 
23509
 
 
23510
 
 
23511
 
 
23512
      echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
 
23513
echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
 
23514
if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
 
23515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23516
else
 
23517
  cat >conftest.$ac_ext <<_ACEOF
 
23518
/* confdefs.h.  */
 
23519
_ACEOF
 
23520
cat confdefs.h >>conftest.$ac_ext
 
23521
cat >>conftest.$ac_ext <<_ACEOF
 
23522
/* end confdefs.h.  */
 
23523
$ac_includes_default
 
23524
int
 
23525
main ()
 
23526
{
 
23527
#ifndef getchar_unlocked
 
23528
  char *p = (char *) getchar_unlocked;
 
23529
#endif
 
23530
 
 
23531
  ;
 
23532
  return 0;
 
23533
}
 
23534
_ACEOF
 
23535
rm -f conftest.$ac_objext
 
23536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23537
  (eval $ac_compile) 2>conftest.er1
 
23538
  ac_status=$?
 
23539
  grep -v '^ *+' conftest.er1 >conftest.err
 
23540
  rm -f conftest.er1
 
23541
  cat conftest.err >&5
 
23542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23543
  (exit $ac_status); } &&
 
23544
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23546
  (eval $ac_try) 2>&5
 
23547
  ac_status=$?
 
23548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23549
  (exit $ac_status); }; } &&
 
23550
         { ac_try='test -s conftest.$ac_objext'
 
23551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23552
  (eval $ac_try) 2>&5
 
23553
  ac_status=$?
 
23554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23555
  (exit $ac_status); }; }; then
 
23556
  ac_cv_have_decl_getchar_unlocked=yes
 
23557
else
 
23558
  echo "$as_me: failed program was:" >&5
 
23559
sed 's/^/| /' conftest.$ac_ext >&5
 
23560
 
 
23561
ac_cv_have_decl_getchar_unlocked=no
 
23562
fi
 
23563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23564
fi
 
23565
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
 
23566
echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
 
23567
if test $ac_cv_have_decl_getchar_unlocked = yes; then
 
23568
 
 
23569
cat >>confdefs.h <<_ACEOF
 
23570
#define HAVE_DECL_GETCHAR_UNLOCKED 1
 
23571
_ACEOF
 
23572
 
 
23573
 
 
23574
else
 
23575
  cat >>confdefs.h <<_ACEOF
 
23576
#define HAVE_DECL_GETCHAR_UNLOCKED 0
 
23577
_ACEOF
 
23578
 
 
23579
 
 
23580
fi
 
23581
 
 
23582
 
 
23583
 
 
23584
 
 
23585
      echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
 
23586
echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
 
23587
if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
 
23588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23589
else
 
23590
  cat >conftest.$ac_ext <<_ACEOF
 
23591
/* confdefs.h.  */
 
23592
_ACEOF
 
23593
cat confdefs.h >>conftest.$ac_ext
 
23594
cat >>conftest.$ac_ext <<_ACEOF
 
23595
/* end confdefs.h.  */
 
23596
$ac_includes_default
 
23597
int
 
23598
main ()
 
23599
{
 
23600
#ifndef putc_unlocked
 
23601
  char *p = (char *) putc_unlocked;
 
23602
#endif
 
23603
 
 
23604
  ;
 
23605
  return 0;
 
23606
}
 
23607
_ACEOF
 
23608
rm -f conftest.$ac_objext
 
23609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23610
  (eval $ac_compile) 2>conftest.er1
 
23611
  ac_status=$?
 
23612
  grep -v '^ *+' conftest.er1 >conftest.err
 
23613
  rm -f conftest.er1
 
23614
  cat conftest.err >&5
 
23615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23616
  (exit $ac_status); } &&
 
23617
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23619
  (eval $ac_try) 2>&5
 
23620
  ac_status=$?
 
23621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23622
  (exit $ac_status); }; } &&
 
23623
         { ac_try='test -s conftest.$ac_objext'
 
23624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23625
  (eval $ac_try) 2>&5
 
23626
  ac_status=$?
 
23627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23628
  (exit $ac_status); }; }; then
 
23629
  ac_cv_have_decl_putc_unlocked=yes
 
23630
else
 
23631
  echo "$as_me: failed program was:" >&5
 
23632
sed 's/^/| /' conftest.$ac_ext >&5
 
23633
 
 
23634
ac_cv_have_decl_putc_unlocked=no
 
23635
fi
 
23636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23637
fi
 
23638
echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
 
23639
echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
 
23640
if test $ac_cv_have_decl_putc_unlocked = yes; then
 
23641
 
 
23642
cat >>confdefs.h <<_ACEOF
 
23643
#define HAVE_DECL_PUTC_UNLOCKED 1
 
23644
_ACEOF
 
23645
 
 
23646
 
 
23647
else
 
23648
  cat >>confdefs.h <<_ACEOF
 
23649
#define HAVE_DECL_PUTC_UNLOCKED 0
 
23650
_ACEOF
 
23651
 
 
23652
 
 
23653
fi
 
23654
 
 
23655
 
 
23656
 
 
23657
 
 
23658
      echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
 
23659
echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
 
23660
if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
 
23661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23662
else
 
23663
  cat >conftest.$ac_ext <<_ACEOF
 
23664
/* confdefs.h.  */
 
23665
_ACEOF
 
23666
cat confdefs.h >>conftest.$ac_ext
 
23667
cat >>conftest.$ac_ext <<_ACEOF
 
23668
/* end confdefs.h.  */
 
23669
$ac_includes_default
 
23670
int
 
23671
main ()
 
23672
{
 
23673
#ifndef putchar_unlocked
 
23674
  char *p = (char *) putchar_unlocked;
 
23675
#endif
 
23676
 
 
23677
  ;
 
23678
  return 0;
 
23679
}
 
23680
_ACEOF
 
23681
rm -f conftest.$ac_objext
 
23682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23683
  (eval $ac_compile) 2>conftest.er1
 
23684
  ac_status=$?
 
23685
  grep -v '^ *+' conftest.er1 >conftest.err
 
23686
  rm -f conftest.er1
 
23687
  cat conftest.err >&5
 
23688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23689
  (exit $ac_status); } &&
 
23690
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23692
  (eval $ac_try) 2>&5
 
23693
  ac_status=$?
 
23694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23695
  (exit $ac_status); }; } &&
 
23696
         { ac_try='test -s conftest.$ac_objext'
 
23697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23698
  (eval $ac_try) 2>&5
 
23699
  ac_status=$?
 
23700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23701
  (exit $ac_status); }; }; then
 
23702
  ac_cv_have_decl_putchar_unlocked=yes
 
23703
else
 
23704
  echo "$as_me: failed program was:" >&5
 
23705
sed 's/^/| /' conftest.$ac_ext >&5
 
23706
 
 
23707
ac_cv_have_decl_putchar_unlocked=no
 
23708
fi
 
23709
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23710
fi
 
23711
echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
 
23712
echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
 
23713
if test $ac_cv_have_decl_putchar_unlocked = yes; then
 
23714
 
 
23715
cat >>confdefs.h <<_ACEOF
 
23716
#define HAVE_DECL_PUTCHAR_UNLOCKED 1
 
23717
_ACEOF
 
23718
 
 
23719
 
 
23720
else
 
23721
  cat >>confdefs.h <<_ACEOF
 
23722
#define HAVE_DECL_PUTCHAR_UNLOCKED 0
 
23723
_ACEOF
 
23724
 
 
23725
 
 
23726
fi
 
23727
 
 
23728
 
 
23729
 
 
23730
 
 
23731
 
 
23732
 
 
23733
 
 
23734
  :
 
23735
 
 
23736
 
 
23737
 
 
23738
 
 
23739
 
 
23740
 
 
23741
 
 
23742
 
 
23743
 
 
23744
 
 
23745
 
 
23746
 
 
23747
 
 
23748
 
 
23749
 
 
23750
 
 
23751
 
 
23752
 
 
23753
 
 
23754
 
 
23755
 
 
23756
 
 
23757
 
 
23758
 
 
23759
 
 
23760
 
 
23761
 
 
23762
 
 
23763
 
 
23764
 
 
23765
 
 
23766
 
 
23767
 
 
23768
 
 
23769
 
 
23770
 
 
23771
 
 
23772
 
 
23773
 
 
23774
 
 
23775
 
 
23776
 
 
23777
 
 
23778
  echo "$as_me:$LINENO: checking for error_at_line" >&5
 
23779
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
 
23780
if test "${am_cv_lib_error_at_line+set}" = set; then
 
23781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23782
else
 
23783
  cat >conftest.$ac_ext <<_ACEOF
 
23784
/* confdefs.h.  */
 
23785
_ACEOF
 
23786
cat confdefs.h >>conftest.$ac_ext
 
23787
cat >>conftest.$ac_ext <<_ACEOF
 
23788
/* end confdefs.h.  */
 
23789
 
 
23790
int
 
23791
main ()
 
23792
{
 
23793
error_at_line(0, 0, "", 0, "");
 
23794
  ;
 
23795
  return 0;
 
23796
}
 
23797
_ACEOF
 
23798
rm -f conftest.$ac_objext conftest$ac_exeext
 
23799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23800
  (eval $ac_link) 2>conftest.er1
 
23801
  ac_status=$?
 
23802
  grep -v '^ *+' conftest.er1 >conftest.err
 
23803
  rm -f conftest.er1
 
23804
  cat conftest.err >&5
 
23805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23806
  (exit $ac_status); } &&
 
23807
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23809
  (eval $ac_try) 2>&5
 
23810
  ac_status=$?
 
23811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23812
  (exit $ac_status); }; } &&
 
23813
         { ac_try='test -s conftest$ac_exeext'
 
23814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23815
  (eval $ac_try) 2>&5
 
23816
  ac_status=$?
 
23817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23818
  (exit $ac_status); }; }; then
 
23819
  am_cv_lib_error_at_line=yes
 
23820
else
 
23821
  echo "$as_me: failed program was:" >&5
 
23822
sed 's/^/| /' conftest.$ac_ext >&5
 
23823
 
 
23824
am_cv_lib_error_at_line=no
 
23825
fi
 
23826
rm -f conftest.err conftest.$ac_objext \
 
23827
      conftest$ac_exeext conftest.$ac_ext
 
23828
fi
 
23829
echo "$as_me:$LINENO: result: $am_cv_lib_error_at_line" >&5
 
23830
echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
 
23831
  if test $am_cv_lib_error_at_line = yes; then
 
23832
 
 
23833
cat >>confdefs.h <<\_ACEOF
 
23834
#define HAVE_ERROR_AT_LINE 1
 
23835
_ACEOF
 
23836
 
 
23837
  else
 
23838
 
 
23839
 
 
23840
 
 
23841
 
 
23842
for ac_func in strerror
 
23843
do
 
23844
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23845
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23846
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23847
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23849
else
 
23850
  cat >conftest.$ac_ext <<_ACEOF
 
23851
/* confdefs.h.  */
 
23852
_ACEOF
 
23853
cat confdefs.h >>conftest.$ac_ext
 
23854
cat >>conftest.$ac_ext <<_ACEOF
 
23855
/* end confdefs.h.  */
 
23856
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23857
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23858
#define $ac_func innocuous_$ac_func
 
23859
 
 
23860
/* System header to define __stub macros and hopefully few prototypes,
 
23861
    which can conflict with char $ac_func (); below.
 
23862
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23863
    <limits.h> exists even on freestanding compilers.  */
 
23864
 
 
23865
#ifdef __STDC__
 
23866
# include <limits.h>
 
23867
#else
 
23868
# include <assert.h>
 
23869
#endif
 
23870
 
 
23871
#undef $ac_func
 
23872
 
 
23873
/* Override any gcc2 internal prototype to avoid an error.  */
 
23874
#ifdef __cplusplus
 
23875
extern "C"
 
23876
{
 
23877
#endif
 
23878
/* We use char because int might match the return type of a gcc2
 
23879
   builtin and then its argument prototype would still apply.  */
 
23880
char $ac_func ();
 
23881
/* The GNU C library defines this for functions which it implements
 
23882
    to always fail with ENOSYS.  Some functions are actually named
 
23883
    something starting with __ and the normal name is an alias.  */
 
23884
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23885
choke me
 
23886
#else
 
23887
char (*f) () = $ac_func;
 
23888
#endif
 
23889
#ifdef __cplusplus
 
23890
}
 
23891
#endif
 
23892
 
 
23893
int
 
23894
main ()
 
23895
{
 
23896
return f != $ac_func;
 
23897
  ;
 
23898
  return 0;
 
23899
}
 
23900
_ACEOF
 
23901
rm -f conftest.$ac_objext conftest$ac_exeext
 
23902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23903
  (eval $ac_link) 2>conftest.er1
 
23904
  ac_status=$?
 
23905
  grep -v '^ *+' conftest.er1 >conftest.err
 
23906
  rm -f conftest.er1
 
23907
  cat conftest.err >&5
 
23908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23909
  (exit $ac_status); } &&
 
23910
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23912
  (eval $ac_try) 2>&5
 
23913
  ac_status=$?
 
23914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23915
  (exit $ac_status); }; } &&
 
23916
         { ac_try='test -s conftest$ac_exeext'
 
23917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23918
  (eval $ac_try) 2>&5
 
23919
  ac_status=$?
 
23920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23921
  (exit $ac_status); }; }; then
 
23922
  eval "$as_ac_var=yes"
 
23923
else
 
23924
  echo "$as_me: failed program was:" >&5
 
23925
sed 's/^/| /' conftest.$ac_ext >&5
 
23926
 
 
23927
eval "$as_ac_var=no"
 
23928
fi
 
23929
rm -f conftest.err conftest.$ac_objext \
 
23930
      conftest$ac_exeext conftest.$ac_ext
 
23931
fi
 
23932
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23933
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23934
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23935
  cat >>confdefs.h <<_ACEOF
 
23936
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23937
_ACEOF
 
23938
 
 
23939
fi
 
23940
done
 
23941
 
 
23942
  echo "$as_me:$LINENO: checking whether strerror is declared" >&5
 
23943
echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
 
23944
if test "${ac_cv_have_decl_strerror+set}" = set; then
 
23945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23946
else
 
23947
  cat >conftest.$ac_ext <<_ACEOF
 
23948
/* confdefs.h.  */
 
23949
_ACEOF
 
23950
cat confdefs.h >>conftest.$ac_ext
 
23951
cat >>conftest.$ac_ext <<_ACEOF
 
23952
/* end confdefs.h.  */
 
23953
$ac_includes_default
 
23954
int
 
23955
main ()
 
23956
{
 
23957
#ifndef strerror
 
23958
  char *p = (char *) strerror;
 
23959
#endif
 
23960
 
 
23961
  ;
 
23962
  return 0;
 
23963
}
 
23964
_ACEOF
 
23965
rm -f conftest.$ac_objext
 
23966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23967
  (eval $ac_compile) 2>conftest.er1
 
23968
  ac_status=$?
 
23969
  grep -v '^ *+' conftest.er1 >conftest.err
 
23970
  rm -f conftest.er1
 
23971
  cat conftest.err >&5
 
23972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23973
  (exit $ac_status); } &&
 
23974
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23976
  (eval $ac_try) 2>&5
 
23977
  ac_status=$?
 
23978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23979
  (exit $ac_status); }; } &&
 
23980
         { ac_try='test -s conftest.$ac_objext'
 
23981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23982
  (eval $ac_try) 2>&5
 
23983
  ac_status=$?
 
23984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23985
  (exit $ac_status); }; }; then
 
23986
  ac_cv_have_decl_strerror=yes
 
23987
else
 
23988
  echo "$as_me: failed program was:" >&5
 
23989
sed 's/^/| /' conftest.$ac_ext >&5
 
23990
 
 
23991
ac_cv_have_decl_strerror=no
 
23992
fi
 
23993
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23994
fi
 
23995
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
 
23996
echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
 
23997
if test $ac_cv_have_decl_strerror = yes; then
 
23998
 
 
23999
cat >>confdefs.h <<_ACEOF
 
24000
#define HAVE_DECL_STRERROR 1
 
24001
_ACEOF
 
24002
 
 
24003
 
 
24004
else
 
24005
  cat >>confdefs.h <<_ACEOF
 
24006
#define HAVE_DECL_STRERROR 0
 
24007
_ACEOF
 
24008
 
 
24009
 
 
24010
fi
 
24011
 
 
24012
 
 
24013
  echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
 
24014
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
 
24015
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
 
24016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24017
else
 
24018
  cat >conftest.$ac_ext <<_ACEOF
 
24019
/* confdefs.h.  */
 
24020
_ACEOF
 
24021
cat confdefs.h >>conftest.$ac_ext
 
24022
cat >>conftest.$ac_ext <<_ACEOF
 
24023
/* end confdefs.h.  */
 
24024
$ac_includes_default
 
24025
int
 
24026
main ()
 
24027
{
 
24028
#ifndef strerror_r
 
24029
  char *p = (char *) strerror_r;
 
24030
#endif
 
24031
 
 
24032
  ;
 
24033
  return 0;
 
24034
}
 
24035
_ACEOF
 
24036
rm -f conftest.$ac_objext
 
24037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24038
  (eval $ac_compile) 2>conftest.er1
 
24039
  ac_status=$?
 
24040
  grep -v '^ *+' conftest.er1 >conftest.err
 
24041
  rm -f conftest.er1
 
24042
  cat conftest.err >&5
 
24043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24044
  (exit $ac_status); } &&
 
24045
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24047
  (eval $ac_try) 2>&5
 
24048
  ac_status=$?
 
24049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24050
  (exit $ac_status); }; } &&
 
24051
         { ac_try='test -s conftest.$ac_objext'
 
24052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24053
  (eval $ac_try) 2>&5
 
24054
  ac_status=$?
 
24055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24056
  (exit $ac_status); }; }; then
 
24057
  ac_cv_have_decl_strerror_r=yes
 
24058
else
 
24059
  echo "$as_me: failed program was:" >&5
 
24060
sed 's/^/| /' conftest.$ac_ext >&5
 
24061
 
 
24062
ac_cv_have_decl_strerror_r=no
 
24063
fi
 
24064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24065
fi
 
24066
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
 
24067
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
 
24068
if test $ac_cv_have_decl_strerror_r = yes; then
 
24069
 
 
24070
cat >>confdefs.h <<_ACEOF
 
24071
#define HAVE_DECL_STRERROR_R 1
 
24072
_ACEOF
 
24073
 
 
24074
 
 
24075
else
 
24076
  cat >>confdefs.h <<_ACEOF
 
24077
#define HAVE_DECL_STRERROR_R 0
 
24078
_ACEOF
 
24079
 
 
24080
 
 
24081
fi
 
24082
 
 
24083
 
 
24084
 
 
24085
for ac_func in strerror_r
 
24086
do
 
24087
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24088
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24089
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24090
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24092
else
 
24093
  cat >conftest.$ac_ext <<_ACEOF
 
24094
/* confdefs.h.  */
 
24095
_ACEOF
 
24096
cat confdefs.h >>conftest.$ac_ext
 
24097
cat >>conftest.$ac_ext <<_ACEOF
 
24098
/* end confdefs.h.  */
 
24099
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24100
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24101
#define $ac_func innocuous_$ac_func
 
24102
 
 
24103
/* System header to define __stub macros and hopefully few prototypes,
 
24104
    which can conflict with char $ac_func (); below.
 
24105
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24106
    <limits.h> exists even on freestanding compilers.  */
 
24107
 
 
24108
#ifdef __STDC__
 
24109
# include <limits.h>
 
24110
#else
 
24111
# include <assert.h>
 
24112
#endif
 
24113
 
 
24114
#undef $ac_func
 
24115
 
 
24116
/* Override any gcc2 internal prototype to avoid an error.  */
 
24117
#ifdef __cplusplus
 
24118
extern "C"
 
24119
{
 
24120
#endif
 
24121
/* We use char because int might match the return type of a gcc2
 
24122
   builtin and then its argument prototype would still apply.  */
 
24123
char $ac_func ();
 
24124
/* The GNU C library defines this for functions which it implements
 
24125
    to always fail with ENOSYS.  Some functions are actually named
 
24126
    something starting with __ and the normal name is an alias.  */
 
24127
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24128
choke me
 
24129
#else
 
24130
char (*f) () = $ac_func;
 
24131
#endif
 
24132
#ifdef __cplusplus
 
24133
}
 
24134
#endif
 
24135
 
 
24136
int
 
24137
main ()
 
24138
{
 
24139
return f != $ac_func;
 
24140
  ;
 
24141
  return 0;
 
24142
}
 
24143
_ACEOF
 
24144
rm -f conftest.$ac_objext conftest$ac_exeext
 
24145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24146
  (eval $ac_link) 2>conftest.er1
 
24147
  ac_status=$?
 
24148
  grep -v '^ *+' conftest.er1 >conftest.err
 
24149
  rm -f conftest.er1
 
24150
  cat conftest.err >&5
 
24151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24152
  (exit $ac_status); } &&
 
24153
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24155
  (eval $ac_try) 2>&5
 
24156
  ac_status=$?
 
24157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24158
  (exit $ac_status); }; } &&
 
24159
         { ac_try='test -s conftest$ac_exeext'
 
24160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24161
  (eval $ac_try) 2>&5
 
24162
  ac_status=$?
 
24163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24164
  (exit $ac_status); }; }; then
 
24165
  eval "$as_ac_var=yes"
 
24166
else
 
24167
  echo "$as_me: failed program was:" >&5
 
24168
sed 's/^/| /' conftest.$ac_ext >&5
 
24169
 
 
24170
eval "$as_ac_var=no"
 
24171
fi
 
24172
rm -f conftest.err conftest.$ac_objext \
 
24173
      conftest$ac_exeext conftest.$ac_ext
 
24174
fi
 
24175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24176
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24177
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24178
  cat >>confdefs.h <<_ACEOF
 
24179
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24180
_ACEOF
 
24181
 
 
24182
fi
 
24183
done
 
24184
 
 
24185
echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
 
24186
echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
 
24187
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
 
24188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24189
else
 
24190
 
 
24191
    ac_cv_func_strerror_r_char_p=no
 
24192
    if test $ac_cv_have_decl_strerror_r = yes; then
 
24193
      cat >conftest.$ac_ext <<_ACEOF
 
24194
/* confdefs.h.  */
 
24195
_ACEOF
 
24196
cat confdefs.h >>conftest.$ac_ext
 
24197
cat >>conftest.$ac_ext <<_ACEOF
 
24198
/* end confdefs.h.  */
 
24199
$ac_includes_default
 
24200
int
 
24201
main ()
 
24202
{
 
24203
 
 
24204
          char buf[100];
 
24205
          char x = *strerror_r (0, buf, sizeof buf);
 
24206
          char *p = strerror_r (0, buf, sizeof buf);
 
24207
 
 
24208
  ;
 
24209
  return 0;
 
24210
}
 
24211
_ACEOF
 
24212
rm -f conftest.$ac_objext
 
24213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24214
  (eval $ac_compile) 2>conftest.er1
 
24215
  ac_status=$?
 
24216
  grep -v '^ *+' conftest.er1 >conftest.err
 
24217
  rm -f conftest.er1
 
24218
  cat conftest.err >&5
 
24219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24220
  (exit $ac_status); } &&
 
24221
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24223
  (eval $ac_try) 2>&5
 
24224
  ac_status=$?
 
24225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24226
  (exit $ac_status); }; } &&
 
24227
         { ac_try='test -s conftest.$ac_objext'
 
24228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24229
  (eval $ac_try) 2>&5
 
24230
  ac_status=$?
 
24231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24232
  (exit $ac_status); }; }; then
 
24233
  ac_cv_func_strerror_r_char_p=yes
 
24234
else
 
24235
  echo "$as_me: failed program was:" >&5
 
24236
sed 's/^/| /' conftest.$ac_ext >&5
 
24237
 
 
24238
fi
 
24239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24240
    else
 
24241
      # strerror_r is not declared.  Choose between
 
24242
      # systems that have relatively inaccessible declarations for the
 
24243
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
 
24244
      # former has a strerror_r that returns char*, while the latter
 
24245
      # has a strerror_r that returns `int'.
 
24246
      # This test should segfault on the DEC system.
 
24247
      if test "$cross_compiling" = yes; then
 
24248
  :
 
24249
else
 
24250
  cat >conftest.$ac_ext <<_ACEOF
 
24251
/* confdefs.h.  */
 
24252
_ACEOF
 
24253
cat confdefs.h >>conftest.$ac_ext
 
24254
cat >>conftest.$ac_ext <<_ACEOF
 
24255
/* end confdefs.h.  */
 
24256
$ac_includes_default
 
24257
        extern char *strerror_r ();
 
24258
int
 
24259
main ()
 
24260
{
 
24261
char buf[100];
 
24262
          char x = *strerror_r (0, buf, sizeof buf);
 
24263
          exit (!isalpha (x));
 
24264
  ;
 
24265
  return 0;
 
24266
}
 
24267
_ACEOF
 
24268
rm -f conftest$ac_exeext
 
24269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24270
  (eval $ac_link) 2>&5
 
24271
  ac_status=$?
 
24272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24273
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24275
  (eval $ac_try) 2>&5
 
24276
  ac_status=$?
 
24277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24278
  (exit $ac_status); }; }; then
 
24279
  ac_cv_func_strerror_r_char_p=yes
 
24280
else
 
24281
  echo "$as_me: program exited with status $ac_status" >&5
 
24282
echo "$as_me: failed program was:" >&5
 
24283
sed 's/^/| /' conftest.$ac_ext >&5
 
24284
 
 
24285
fi
 
24286
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24287
fi
 
24288
    fi
 
24289
 
 
24290
fi
 
24291
echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
 
24292
echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
 
24293
if test $ac_cv_func_strerror_r_char_p = yes; then
 
24294
 
 
24295
cat >>confdefs.h <<\_ACEOF
 
24296
#define STRERROR_R_CHAR_P 1
 
24297
_ACEOF
 
24298
 
 
24299
fi
 
24300
 
 
24301
 
 
24302
  fi
 
24303
 
 
24304
 
 
24305
 
 
24306
for ac_header in sys/param.h
 
24307
do
 
24308
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24309
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24310
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24311
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24312
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24314
fi
 
24315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24316
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24317
else
 
24318
  # Is the header compilable?
 
24319
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24320
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
24321
cat >conftest.$ac_ext <<_ACEOF
 
24322
/* confdefs.h.  */
 
24323
_ACEOF
 
24324
cat confdefs.h >>conftest.$ac_ext
 
24325
cat >>conftest.$ac_ext <<_ACEOF
 
24326
/* end confdefs.h.  */
 
24327
$ac_includes_default
 
24328
#include <$ac_header>
 
24329
_ACEOF
 
24330
rm -f conftest.$ac_objext
 
24331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24332
  (eval $ac_compile) 2>conftest.er1
 
24333
  ac_status=$?
 
24334
  grep -v '^ *+' conftest.er1 >conftest.err
 
24335
  rm -f conftest.er1
 
24336
  cat conftest.err >&5
 
24337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24338
  (exit $ac_status); } &&
 
24339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24341
  (eval $ac_try) 2>&5
 
24342
  ac_status=$?
 
24343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24344
  (exit $ac_status); }; } &&
 
24345
         { ac_try='test -s conftest.$ac_objext'
 
24346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24347
  (eval $ac_try) 2>&5
 
24348
  ac_status=$?
 
24349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24350
  (exit $ac_status); }; }; then
 
24351
  ac_header_compiler=yes
 
24352
else
 
24353
  echo "$as_me: failed program was:" >&5
 
24354
sed 's/^/| /' conftest.$ac_ext >&5
 
24355
 
 
24356
ac_header_compiler=no
 
24357
fi
 
24358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24359
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24360
echo "${ECHO_T}$ac_header_compiler" >&6
 
24361
 
 
24362
# Is the header present?
 
24363
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24364
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
24365
cat >conftest.$ac_ext <<_ACEOF
 
24366
/* confdefs.h.  */
 
24367
_ACEOF
 
24368
cat confdefs.h >>conftest.$ac_ext
 
24369
cat >>conftest.$ac_ext <<_ACEOF
 
24370
/* end confdefs.h.  */
 
24371
#include <$ac_header>
 
24372
_ACEOF
 
24373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24374
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24375
  ac_status=$?
 
24376
  grep -v '^ *+' conftest.er1 >conftest.err
 
24377
  rm -f conftest.er1
 
24378
  cat conftest.err >&5
 
24379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24380
  (exit $ac_status); } >/dev/null; then
 
24381
  if test -s conftest.err; then
 
24382
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24383
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24384
  else
 
24385
    ac_cpp_err=
 
24386
  fi
 
24387
else
 
24388
  ac_cpp_err=yes
 
24389
fi
 
24390
if test -z "$ac_cpp_err"; then
 
24391
  ac_header_preproc=yes
 
24392
else
 
24393
  echo "$as_me: failed program was:" >&5
 
24394
sed 's/^/| /' conftest.$ac_ext >&5
 
24395
 
 
24396
  ac_header_preproc=no
 
24397
fi
 
24398
rm -f conftest.err conftest.$ac_ext
 
24399
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24400
echo "${ECHO_T}$ac_header_preproc" >&6
 
24401
 
 
24402
# So?  What about this header?
 
24403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24404
  yes:no: )
 
24405
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24406
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24407
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24408
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24409
    ac_header_preproc=yes
 
24410
    ;;
 
24411
  no:yes:* )
 
24412
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24414
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24415
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24416
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24417
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24418
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24419
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24420
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24421
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24422
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24423
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24424
    (
 
24425
      cat <<\_ASBOX
 
24426
## ------------------------------------------ ##
 
24427
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24428
## ------------------------------------------ ##
 
24429
_ASBOX
 
24430
    ) |
 
24431
      sed "s/^/$as_me: WARNING:     /" >&2
 
24432
    ;;
 
24433
esac
 
24434
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24435
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24436
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24438
else
 
24439
  eval "$as_ac_Header=\$ac_header_preproc"
 
24440
fi
 
24441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24443
 
 
24444
fi
 
24445
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24446
  cat >>confdefs.h <<_ACEOF
 
24447
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24448
_ACEOF
 
24449
 
 
24450
fi
 
24451
 
 
24452
done
 
24453
 
 
24454
 
 
24455
 
 
24456
 
 
24457
  :
 
24458
 
 
24459
 
 
24460
 
 
24461
 
 
24462
 
 
24463
 
 
24464
 
 
24465
 
 
24466
 
 
24467
 
 
24468
 
 
24469
for ac_func in readlink
 
24470
do
 
24471
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24472
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24473
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24474
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24476
else
 
24477
  cat >conftest.$ac_ext <<_ACEOF
 
24478
/* confdefs.h.  */
 
24479
_ACEOF
 
24480
cat confdefs.h >>conftest.$ac_ext
 
24481
cat >>conftest.$ac_ext <<_ACEOF
 
24482
/* end confdefs.h.  */
 
24483
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24484
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24485
#define $ac_func innocuous_$ac_func
 
24486
 
 
24487
/* System header to define __stub macros and hopefully few prototypes,
 
24488
    which can conflict with char $ac_func (); below.
 
24489
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24490
    <limits.h> exists even on freestanding compilers.  */
 
24491
 
 
24492
#ifdef __STDC__
 
24493
# include <limits.h>
 
24494
#else
 
24495
# include <assert.h>
 
24496
#endif
 
24497
 
 
24498
#undef $ac_func
 
24499
 
 
24500
/* Override any gcc2 internal prototype to avoid an error.  */
 
24501
#ifdef __cplusplus
 
24502
extern "C"
 
24503
{
 
24504
#endif
 
24505
/* We use char because int might match the return type of a gcc2
 
24506
   builtin and then its argument prototype would still apply.  */
 
24507
char $ac_func ();
 
24508
/* The GNU C library defines this for functions which it implements
 
24509
    to always fail with ENOSYS.  Some functions are actually named
 
24510
    something starting with __ and the normal name is an alias.  */
 
24511
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24512
choke me
 
24513
#else
 
24514
char (*f) () = $ac_func;
 
24515
#endif
 
24516
#ifdef __cplusplus
 
24517
}
 
24518
#endif
 
24519
 
 
24520
int
 
24521
main ()
 
24522
{
 
24523
return f != $ac_func;
 
24524
  ;
 
24525
  return 0;
 
24526
}
 
24527
_ACEOF
 
24528
rm -f conftest.$ac_objext conftest$ac_exeext
 
24529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24530
  (eval $ac_link) 2>conftest.er1
 
24531
  ac_status=$?
 
24532
  grep -v '^ *+' conftest.er1 >conftest.err
 
24533
  rm -f conftest.er1
 
24534
  cat conftest.err >&5
 
24535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24536
  (exit $ac_status); } &&
 
24537
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24539
  (eval $ac_try) 2>&5
 
24540
  ac_status=$?
 
24541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24542
  (exit $ac_status); }; } &&
 
24543
         { ac_try='test -s conftest$ac_exeext'
 
24544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24545
  (eval $ac_try) 2>&5
 
24546
  ac_status=$?
 
24547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24548
  (exit $ac_status); }; }; then
 
24549
  eval "$as_ac_var=yes"
 
24550
else
 
24551
  echo "$as_me: failed program was:" >&5
 
24552
sed 's/^/| /' conftest.$ac_ext >&5
 
24553
 
 
24554
eval "$as_ac_var=no"
 
24555
fi
 
24556
rm -f conftest.err conftest.$ac_objext \
 
24557
      conftest$ac_exeext conftest.$ac_ext
 
24558
fi
 
24559
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24560
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24561
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24562
  cat >>confdefs.h <<_ACEOF
 
24563
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24564
_ACEOF
 
24565
 
 
24566
fi
 
24567
done
 
24568
 
 
24569
  if test $ac_cv_func_readlink = no; then
 
24570
    case $LIBOBJS in
 
24571
    "readlink.$ac_objext"   | \
 
24572
  *" readlink.$ac_objext"   | \
 
24573
    "readlink.$ac_objext "* | \
 
24574
  *" readlink.$ac_objext "* ) ;;
 
24575
  *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
 
24576
esac
 
24577
 
 
24578
 
 
24579
  :
 
24580
 
 
24581
  fi
 
24582
 
 
24583
 
 
24584
  echo "$as_me:$LINENO: checking for ssize_t" >&5
 
24585
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
 
24586
if test "${gt_cv_ssize_t+set}" = set; then
 
24587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24588
else
 
24589
  cat >conftest.$ac_ext <<_ACEOF
 
24590
/* confdefs.h.  */
 
24591
_ACEOF
 
24592
cat confdefs.h >>conftest.$ac_ext
 
24593
cat >>conftest.$ac_ext <<_ACEOF
 
24594
/* end confdefs.h.  */
 
24595
#include <sys/types.h>
 
24596
int
 
24597
main ()
 
24598
{
 
24599
int x = sizeof (ssize_t *) + sizeof (ssize_t);
 
24600
  ;
 
24601
  return 0;
 
24602
}
 
24603
_ACEOF
 
24604
rm -f conftest.$ac_objext
 
24605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24606
  (eval $ac_compile) 2>conftest.er1
 
24607
  ac_status=$?
 
24608
  grep -v '^ *+' conftest.er1 >conftest.err
 
24609
  rm -f conftest.er1
 
24610
  cat conftest.err >&5
 
24611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24612
  (exit $ac_status); } &&
 
24613
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24615
  (eval $ac_try) 2>&5
 
24616
  ac_status=$?
 
24617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24618
  (exit $ac_status); }; } &&
 
24619
         { ac_try='test -s conftest.$ac_objext'
 
24620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24621
  (eval $ac_try) 2>&5
 
24622
  ac_status=$?
 
24623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24624
  (exit $ac_status); }; }; then
 
24625
  gt_cv_ssize_t=yes
 
24626
else
 
24627
  echo "$as_me: failed program was:" >&5
 
24628
sed 's/^/| /' conftest.$ac_ext >&5
 
24629
 
 
24630
gt_cv_ssize_t=no
 
24631
fi
 
24632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24633
fi
 
24634
echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
 
24635
echo "${ECHO_T}$gt_cv_ssize_t" >&6
 
24636
  if test $gt_cv_ssize_t = no; then
 
24637
 
 
24638
cat >>confdefs.h <<\_ACEOF
 
24639
#define ssize_t int
 
24640
_ACEOF
 
24641
 
 
24642
  fi
 
24643
 
 
24644
 
 
24645
 
 
24646
 
 
24647
  :
 
24648
 
 
24649
 
 
24650
 
 
24651
 
 
24652
 
 
24653
 
 
24654
 
 
24655
 
 
24656
 
 
24657
 
 
24658
 
 
24659
for ac_func in canonicalize_file_name
 
24660
do
 
24661
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24662
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24663
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24664
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24666
else
 
24667
  cat >conftest.$ac_ext <<_ACEOF
 
24668
/* confdefs.h.  */
 
24669
_ACEOF
 
24670
cat confdefs.h >>conftest.$ac_ext
 
24671
cat >>conftest.$ac_ext <<_ACEOF
 
24672
/* end confdefs.h.  */
 
24673
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24674
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24675
#define $ac_func innocuous_$ac_func
 
24676
 
 
24677
/* System header to define __stub macros and hopefully few prototypes,
 
24678
    which can conflict with char $ac_func (); below.
 
24679
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24680
    <limits.h> exists even on freestanding compilers.  */
 
24681
 
 
24682
#ifdef __STDC__
 
24683
# include <limits.h>
 
24684
#else
 
24685
# include <assert.h>
 
24686
#endif
 
24687
 
 
24688
#undef $ac_func
 
24689
 
 
24690
/* Override any gcc2 internal prototype to avoid an error.  */
 
24691
#ifdef __cplusplus
 
24692
extern "C"
 
24693
{
 
24694
#endif
 
24695
/* We use char because int might match the return type of a gcc2
 
24696
   builtin and then its argument prototype would still apply.  */
 
24697
char $ac_func ();
 
24698
/* The GNU C library defines this for functions which it implements
 
24699
    to always fail with ENOSYS.  Some functions are actually named
 
24700
    something starting with __ and the normal name is an alias.  */
 
24701
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24702
choke me
 
24703
#else
 
24704
char (*f) () = $ac_func;
 
24705
#endif
 
24706
#ifdef __cplusplus
 
24707
}
 
24708
#endif
 
24709
 
 
24710
int
 
24711
main ()
 
24712
{
 
24713
return f != $ac_func;
 
24714
  ;
 
24715
  return 0;
 
24716
}
 
24717
_ACEOF
 
24718
rm -f conftest.$ac_objext conftest$ac_exeext
 
24719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24720
  (eval $ac_link) 2>conftest.er1
 
24721
  ac_status=$?
 
24722
  grep -v '^ *+' conftest.er1 >conftest.err
 
24723
  rm -f conftest.er1
 
24724
  cat conftest.err >&5
 
24725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24726
  (exit $ac_status); } &&
 
24727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24729
  (eval $ac_try) 2>&5
 
24730
  ac_status=$?
 
24731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24732
  (exit $ac_status); }; } &&
 
24733
         { ac_try='test -s conftest$ac_exeext'
 
24734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24735
  (eval $ac_try) 2>&5
 
24736
  ac_status=$?
 
24737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24738
  (exit $ac_status); }; }; then
 
24739
  eval "$as_ac_var=yes"
 
24740
else
 
24741
  echo "$as_me: failed program was:" >&5
 
24742
sed 's/^/| /' conftest.$ac_ext >&5
 
24743
 
 
24744
eval "$as_ac_var=no"
 
24745
fi
 
24746
rm -f conftest.err conftest.$ac_objext \
 
24747
      conftest$ac_exeext conftest.$ac_ext
 
24748
fi
 
24749
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24750
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24751
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24752
  cat >>confdefs.h <<_ACEOF
 
24753
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24754
_ACEOF
 
24755
 
 
24756
fi
 
24757
done
 
24758
 
 
24759
  if test $ac_cv_func_canonicalize_file_name = no; then
 
24760
    case $LIBOBJS in
 
24761
    "canonicalize.$ac_objext"   | \
 
24762
  *" canonicalize.$ac_objext"   | \
 
24763
    "canonicalize.$ac_objext "* | \
 
24764
  *" canonicalize.$ac_objext "* ) ;;
 
24765
  *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
 
24766
esac
 
24767
 
 
24768
 
 
24769
cat >>confdefs.h <<\_ACEOF
 
24770
#define realpath rpl_realpath
 
24771
_ACEOF
 
24772
 
 
24773
 
 
24774
 
 
24775
  :
 
24776
 
 
24777
 
 
24778
 
 
24779
 
 
24780
 
 
24781
 
 
24782
 
 
24783
 
 
24784
 
 
24785
 
 
24786
for ac_func in getcwd readlink
 
24787
do
 
24788
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24789
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24790
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24791
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24793
else
 
24794
  cat >conftest.$ac_ext <<_ACEOF
 
24795
/* confdefs.h.  */
 
24796
_ACEOF
 
24797
cat confdefs.h >>conftest.$ac_ext
 
24798
cat >>conftest.$ac_ext <<_ACEOF
 
24799
/* end confdefs.h.  */
 
24800
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24801
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24802
#define $ac_func innocuous_$ac_func
 
24803
 
 
24804
/* System header to define __stub macros and hopefully few prototypes,
 
24805
    which can conflict with char $ac_func (); below.
 
24806
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24807
    <limits.h> exists even on freestanding compilers.  */
 
24808
 
 
24809
#ifdef __STDC__
 
24810
# include <limits.h>
 
24811
#else
 
24812
# include <assert.h>
 
24813
#endif
 
24814
 
 
24815
#undef $ac_func
 
24816
 
 
24817
/* Override any gcc2 internal prototype to avoid an error.  */
 
24818
#ifdef __cplusplus
 
24819
extern "C"
 
24820
{
 
24821
#endif
 
24822
/* We use char because int might match the return type of a gcc2
 
24823
   builtin and then its argument prototype would still apply.  */
 
24824
char $ac_func ();
 
24825
/* The GNU C library defines this for functions which it implements
 
24826
    to always fail with ENOSYS.  Some functions are actually named
 
24827
    something starting with __ and the normal name is an alias.  */
 
24828
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24829
choke me
 
24830
#else
 
24831
char (*f) () = $ac_func;
 
24832
#endif
 
24833
#ifdef __cplusplus
 
24834
}
 
24835
#endif
 
24836
 
 
24837
int
 
24838
main ()
 
24839
{
 
24840
return f != $ac_func;
 
24841
  ;
 
24842
  return 0;
 
24843
}
 
24844
_ACEOF
 
24845
rm -f conftest.$ac_objext conftest$ac_exeext
 
24846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24847
  (eval $ac_link) 2>conftest.er1
 
24848
  ac_status=$?
 
24849
  grep -v '^ *+' conftest.er1 >conftest.err
 
24850
  rm -f conftest.er1
 
24851
  cat conftest.err >&5
 
24852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24853
  (exit $ac_status); } &&
 
24854
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24856
  (eval $ac_try) 2>&5
 
24857
  ac_status=$?
 
24858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24859
  (exit $ac_status); }; } &&
 
24860
         { ac_try='test -s conftest$ac_exeext'
 
24861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24862
  (eval $ac_try) 2>&5
 
24863
  ac_status=$?
 
24864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24865
  (exit $ac_status); }; }; then
 
24866
  eval "$as_ac_var=yes"
 
24867
else
 
24868
  echo "$as_me: failed program was:" >&5
 
24869
sed 's/^/| /' conftest.$ac_ext >&5
 
24870
 
 
24871
eval "$as_ac_var=no"
 
24872
fi
 
24873
rm -f conftest.err conftest.$ac_objext \
 
24874
      conftest$ac_exeext conftest.$ac_ext
 
24875
fi
 
24876
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24877
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24878
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24879
  cat >>confdefs.h <<_ACEOF
 
24880
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24881
_ACEOF
 
24882
 
 
24883
fi
 
24884
done
 
24885
 
 
24886
 
 
24887
  fi
 
24888
 
 
24889
 
 
24890
 
 
24891
        MKINSTALLDIRS=
 
24892
  if test -n "$ac_aux_dir"; then
 
24893
    case "$ac_aux_dir" in
 
24894
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
24895
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
24896
    esac
 
24897
  fi
 
24898
  if test -z "$MKINSTALLDIRS"; then
 
24899
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
24900
  fi
 
24901
 
 
24902
 
 
24903
 
 
24904
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
24905
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
24906
    # Check whether --enable-nls or --disable-nls was given.
 
24907
if test "${enable_nls+set}" = set; then
 
24908
  enableval="$enable_nls"
 
24909
  USE_NLS=$enableval
 
24910
else
 
24911
  USE_NLS=yes
 
24912
fi;
 
24913
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
24914
echo "${ECHO_T}$USE_NLS" >&6
 
24915
 
 
24916
 
 
24917
 
 
24918
 
 
24919
 
 
24920
 
 
24921
# Prepare PATH_SEPARATOR.
 
24922
# The user is always right.
 
24923
if test "${PATH_SEPARATOR+set}" != set; then
 
24924
  echo "#! /bin/sh" >conf$$.sh
 
24925
  echo  "exit 0"   >>conf$$.sh
 
24926
  chmod +x conf$$.sh
 
24927
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24928
    PATH_SEPARATOR=';'
 
24929
  else
 
24930
    PATH_SEPARATOR=:
 
24931
  fi
 
24932
  rm -f conf$$.sh
 
24933
fi
 
24934
 
 
24935
# Find out how to test for executable files. Don't use a zero-byte file,
 
24936
# as systems may use methods other than mode bits to determine executability.
 
24937
cat >conf$$.file <<_ASEOF
 
24938
#! /bin/sh
 
24939
exit 0
 
24940
_ASEOF
 
24941
chmod +x conf$$.file
 
24942
if test -x conf$$.file >/dev/null 2>&1; then
 
24943
  ac_executable_p="test -x"
 
24944
else
 
24945
  ac_executable_p="test -f"
 
24946
fi
 
24947
rm -f conf$$.file
 
24948
 
 
24949
# Extract the first word of "msgfmt", so it can be a program name with args.
 
24950
set dummy msgfmt; ac_word=$2
 
24951
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24953
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
24954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24955
else
 
24956
  case "$MSGFMT" in
 
24957
  [\\/]* | ?:[\\/]*)
 
24958
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
24959
    ;;
 
24960
  *)
 
24961
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
24962
    for ac_dir in $PATH; do
 
24963
      IFS="$ac_save_IFS"
 
24964
      test -z "$ac_dir" && ac_dir=.
 
24965
      for ac_exec_ext in '' $ac_executable_extensions; do
 
24966
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
24967
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
24968
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
24969
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
24970
            break 2
 
24971
          fi
 
24972
        fi
 
24973
      done
 
24974
    done
 
24975
    IFS="$ac_save_IFS"
 
24976
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
24977
    ;;
 
24978
esac
 
24979
fi
 
24980
MSGFMT="$ac_cv_path_MSGFMT"
 
24981
if test "$MSGFMT" != ":"; then
 
24982
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
24983
echo "${ECHO_T}$MSGFMT" >&6
 
24984
else
 
24985
  echo "$as_me:$LINENO: result: no" >&5
 
24986
echo "${ECHO_T}no" >&6
 
24987
fi
 
24988
 
 
24989
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
24990
set dummy gmsgfmt; ac_word=$2
 
24991
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24993
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
24994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24995
else
 
24996
  case $GMSGFMT in
 
24997
  [\\/]* | ?:[\\/]*)
 
24998
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
24999
  ;;
 
25000
  *)
 
25001
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25002
for as_dir in $PATH
 
25003
do
 
25004
  IFS=$as_save_IFS
 
25005
  test -z "$as_dir" && as_dir=.
 
25006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
25008
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
25009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25010
    break 2
 
25011
  fi
 
25012
done
 
25013
done
 
25014
 
 
25015
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
25016
  ;;
 
25017
esac
 
25018
fi
 
25019
GMSGFMT=$ac_cv_path_GMSGFMT
 
25020
 
 
25021
if test -n "$GMSGFMT"; then
 
25022
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
25023
echo "${ECHO_T}$GMSGFMT" >&6
 
25024
else
 
25025
  echo "$as_me:$LINENO: result: no" >&5
 
25026
echo "${ECHO_T}no" >&6
 
25027
fi
 
25028
 
 
25029
 
 
25030
 
 
25031
# Prepare PATH_SEPARATOR.
 
25032
# The user is always right.
 
25033
if test "${PATH_SEPARATOR+set}" != set; then
 
25034
  echo "#! /bin/sh" >conf$$.sh
 
25035
  echo  "exit 0"   >>conf$$.sh
 
25036
  chmod +x conf$$.sh
 
25037
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25038
    PATH_SEPARATOR=';'
 
25039
  else
 
25040
    PATH_SEPARATOR=:
 
25041
  fi
 
25042
  rm -f conf$$.sh
 
25043
fi
 
25044
 
 
25045
# Find out how to test for executable files. Don't use a zero-byte file,
 
25046
# as systems may use methods other than mode bits to determine executability.
 
25047
cat >conf$$.file <<_ASEOF
 
25048
#! /bin/sh
 
25049
exit 0
 
25050
_ASEOF
 
25051
chmod +x conf$$.file
 
25052
if test -x conf$$.file >/dev/null 2>&1; then
 
25053
  ac_executable_p="test -x"
 
25054
else
 
25055
  ac_executable_p="test -f"
 
25056
fi
 
25057
rm -f conf$$.file
 
25058
 
 
25059
# Extract the first word of "xgettext", so it can be a program name with args.
 
25060
set dummy xgettext; ac_word=$2
 
25061
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
25063
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
25064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25065
else
 
25066
  case "$XGETTEXT" in
 
25067
  [\\/]* | ?:[\\/]*)
 
25068
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
25069
    ;;
 
25070
  *)
 
25071
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
25072
    for ac_dir in $PATH; do
 
25073
      IFS="$ac_save_IFS"
 
25074
      test -z "$ac_dir" && ac_dir=.
 
25075
      for ac_exec_ext in '' $ac_executable_extensions; do
 
25076
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
25077
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
25078
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
25079
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
25080
            break 2
 
25081
          fi
 
25082
        fi
 
25083
      done
 
25084
    done
 
25085
    IFS="$ac_save_IFS"
 
25086
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
25087
    ;;
 
25088
esac
 
25089
fi
 
25090
XGETTEXT="$ac_cv_path_XGETTEXT"
 
25091
if test "$XGETTEXT" != ":"; then
 
25092
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
25093
echo "${ECHO_T}$XGETTEXT" >&6
 
25094
else
 
25095
  echo "$as_me:$LINENO: result: no" >&5
 
25096
echo "${ECHO_T}no" >&6
 
25097
fi
 
25098
 
 
25099
    rm -f messages.po
 
25100
 
 
25101
 
 
25102
# Prepare PATH_SEPARATOR.
 
25103
# The user is always right.
 
25104
if test "${PATH_SEPARATOR+set}" != set; then
 
25105
  echo "#! /bin/sh" >conf$$.sh
 
25106
  echo  "exit 0"   >>conf$$.sh
 
25107
  chmod +x conf$$.sh
 
25108
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25109
    PATH_SEPARATOR=';'
 
25110
  else
 
25111
    PATH_SEPARATOR=:
 
25112
  fi
 
25113
  rm -f conf$$.sh
 
25114
fi
 
25115
 
 
25116
# Find out how to test for executable files. Don't use a zero-byte file,
 
25117
# as systems may use methods other than mode bits to determine executability.
 
25118
cat >conf$$.file <<_ASEOF
 
25119
#! /bin/sh
 
25120
exit 0
 
25121
_ASEOF
 
25122
chmod +x conf$$.file
 
25123
if test -x conf$$.file >/dev/null 2>&1; then
 
25124
  ac_executable_p="test -x"
 
25125
else
 
25126
  ac_executable_p="test -f"
 
25127
fi
 
25128
rm -f conf$$.file
 
25129
 
 
25130
# Extract the first word of "msgmerge", so it can be a program name with args.
 
25131
set dummy msgmerge; ac_word=$2
 
25132
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
25134
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
25135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25136
else
 
25137
  case "$MSGMERGE" in
 
25138
  [\\/]* | ?:[\\/]*)
 
25139
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
25140
    ;;
 
25141
  *)
 
25142
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
25143
    for ac_dir in $PATH; do
 
25144
      IFS="$ac_save_IFS"
 
25145
      test -z "$ac_dir" && ac_dir=.
 
25146
      for ac_exec_ext in '' $ac_executable_extensions; do
 
25147
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
25148
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
25149
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
25150
            break 2
 
25151
          fi
 
25152
        fi
 
25153
      done
 
25154
    done
 
25155
    IFS="$ac_save_IFS"
 
25156
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
25157
    ;;
 
25158
esac
 
25159
fi
 
25160
MSGMERGE="$ac_cv_path_MSGMERGE"
 
25161
if test "$MSGMERGE" != ":"; then
 
25162
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
25163
echo "${ECHO_T}$MSGMERGE" >&6
 
25164
else
 
25165
  echo "$as_me:$LINENO: result: no" >&5
 
25166
echo "${ECHO_T}no" >&6
 
25167
fi
 
25168
 
 
25169
 
 
25170
      if test "$GMSGFMT" != ":"; then
 
25171
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
25172
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
25173
      : ;
 
25174
    else
 
25175
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
25176
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
25177
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
25178
      GMSGFMT=":"
 
25179
    fi
 
25180
  fi
 
25181
 
 
25182
      if test "$XGETTEXT" != ":"; then
 
25183
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
25184
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
25185
      : ;
 
25186
    else
 
25187
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
25188
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
25189
      XGETTEXT=":"
 
25190
    fi
 
25191
        rm -f messages.po
 
25192
  fi
 
25193
 
 
25194
            ac_config_commands="$ac_config_commands default-1"
 
25195
 
 
25196
 
 
25197
if test -n "$ac_tool_prefix"; then
 
25198
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
25199
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
25200
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
25202
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
25203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25204
else
 
25205
  if test -n "$RANLIB"; then
 
25206
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
25207
else
 
25208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25209
for as_dir in $PATH
 
25210
do
 
25211
  IFS=$as_save_IFS
 
25212
  test -z "$as_dir" && as_dir=.
 
25213
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25214
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
25215
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
25216
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25217
    break 2
 
25218
  fi
 
25219
done
 
25220
done
 
25221
 
 
25222
fi
 
25223
fi
 
25224
RANLIB=$ac_cv_prog_RANLIB
 
25225
if test -n "$RANLIB"; then
 
25226
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
25227
echo "${ECHO_T}$RANLIB" >&6
 
25228
else
 
25229
  echo "$as_me:$LINENO: result: no" >&5
 
25230
echo "${ECHO_T}no" >&6
 
25231
fi
 
25232
 
 
25233
fi
 
25234
if test -z "$ac_cv_prog_RANLIB"; then
 
25235
  ac_ct_RANLIB=$RANLIB
 
25236
  # Extract the first word of "ranlib", so it can be a program name with args.
 
25237
set dummy ranlib; ac_word=$2
 
25238
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
25240
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
25241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25242
else
 
25243
  if test -n "$ac_ct_RANLIB"; then
 
25244
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
25245
else
 
25246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25247
for as_dir in $PATH
 
25248
do
 
25249
  IFS=$as_save_IFS
 
25250
  test -z "$as_dir" && as_dir=.
 
25251
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25252
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
25253
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
25254
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25255
    break 2
 
25256
  fi
 
25257
done
 
25258
done
 
25259
 
 
25260
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
25261
fi
 
25262
fi
 
25263
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
25264
if test -n "$ac_ct_RANLIB"; then
 
25265
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
25266
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
25267
else
 
25268
  echo "$as_me:$LINENO: result: no" >&5
 
25269
echo "${ECHO_T}no" >&6
 
25270
fi
 
25271
 
 
25272
  RANLIB=$ac_ct_RANLIB
 
25273
else
 
25274
  RANLIB="$ac_cv_prog_RANLIB"
 
25275
fi
 
25276
 
 
25277
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
25278
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
25279
if test "${ac_cv_c_const+set}" = set; then
 
25280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25281
else
 
25282
  cat >conftest.$ac_ext <<_ACEOF
 
25283
/* confdefs.h.  */
 
25284
_ACEOF
 
25285
cat confdefs.h >>conftest.$ac_ext
 
25286
cat >>conftest.$ac_ext <<_ACEOF
 
25287
/* end confdefs.h.  */
 
25288
 
 
25289
int
 
25290
main ()
 
25291
{
 
25292
/* FIXME: Include the comments suggested by Paul. */
 
25293
#ifndef __cplusplus
 
25294
  /* Ultrix mips cc rejects this.  */
 
25295
  typedef int charset[2];
 
25296
  const charset x;
 
25297
  /* SunOS 4.1.1 cc rejects this.  */
 
25298
  char const *const *ccp;
 
25299
  char **p;
 
25300
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
25301
  struct point {int x, y;};
 
25302
  static struct point const zero = {0,0};
 
25303
  /* AIX XL C 1.02.0.0 rejects this.
 
25304
     It does not let you subtract one const X* pointer from another in
 
25305
     an arm of an if-expression whose if-part is not a constant
 
25306
     expression */
 
25307
  const char *g = "string";
 
25308
  ccp = &g + (g ? g-g : 0);
 
25309
  /* HPUX 7.0 cc rejects these. */
 
25310
  ++ccp;
 
25311
  p = (char**) ccp;
 
25312
  ccp = (char const *const *) p;
 
25313
  { /* SCO 3.2v4 cc rejects this.  */
 
25314
    char *t;
 
25315
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
25316
 
 
25317
    *t++ = 0;
 
25318
  }
 
25319
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
25320
    int x[] = {25, 17};
 
25321
    const int *foo = &x[0];
 
25322
    ++foo;
 
25323
  }
 
25324
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
25325
    typedef const int *iptr;
 
25326
    iptr p = 0;
 
25327
    ++p;
 
25328
  }
 
25329
  { /* AIX XL C 1.02.0.0 rejects this saying
 
25330
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
25331
    struct s { int j; const int *ap[3]; };
 
25332
    struct s *b; b->j = 5;
 
25333
  }
 
25334
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
25335
    const int foo = 10;
 
25336
  }
 
25337
#endif
 
25338
 
 
25339
  ;
 
25340
  return 0;
 
25341
}
 
25342
_ACEOF
 
25343
rm -f conftest.$ac_objext
 
25344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25345
  (eval $ac_compile) 2>conftest.er1
 
25346
  ac_status=$?
 
25347
  grep -v '^ *+' conftest.er1 >conftest.err
 
25348
  rm -f conftest.er1
 
25349
  cat conftest.err >&5
 
25350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25351
  (exit $ac_status); } &&
 
25352
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25354
  (eval $ac_try) 2>&5
 
25355
  ac_status=$?
 
25356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25357
  (exit $ac_status); }; } &&
 
25358
         { ac_try='test -s conftest.$ac_objext'
 
25359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25360
  (eval $ac_try) 2>&5
 
25361
  ac_status=$?
 
25362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25363
  (exit $ac_status); }; }; then
 
25364
  ac_cv_c_const=yes
 
25365
else
 
25366
  echo "$as_me: failed program was:" >&5
 
25367
sed 's/^/| /' conftest.$ac_ext >&5
 
25368
 
 
25369
ac_cv_c_const=no
 
25370
fi
 
25371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25372
fi
 
25373
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
25374
echo "${ECHO_T}$ac_cv_c_const" >&6
 
25375
if test $ac_cv_c_const = no; then
 
25376
 
 
25377
cat >>confdefs.h <<\_ACEOF
 
25378
#define const
 
25379
_ACEOF
 
25380
 
 
25381
fi
 
25382
 
 
25383
 
 
25384
  echo "$as_me:$LINENO: checking for signed" >&5
 
25385
echo $ECHO_N "checking for signed... $ECHO_C" >&6
 
25386
if test "${bh_cv_c_signed+set}" = set; then
 
25387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25388
else
 
25389
  cat >conftest.$ac_ext <<_ACEOF
 
25390
/* confdefs.h.  */
 
25391
_ACEOF
 
25392
cat confdefs.h >>conftest.$ac_ext
 
25393
cat >>conftest.$ac_ext <<_ACEOF
 
25394
/* end confdefs.h.  */
 
25395
 
 
25396
int
 
25397
main ()
 
25398
{
 
25399
signed char x;
 
25400
  ;
 
25401
  return 0;
 
25402
}
 
25403
_ACEOF
 
25404
rm -f conftest.$ac_objext
 
25405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25406
  (eval $ac_compile) 2>conftest.er1
 
25407
  ac_status=$?
 
25408
  grep -v '^ *+' conftest.er1 >conftest.err
 
25409
  rm -f conftest.er1
 
25410
  cat conftest.err >&5
 
25411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25412
  (exit $ac_status); } &&
 
25413
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25415
  (eval $ac_try) 2>&5
 
25416
  ac_status=$?
 
25417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25418
  (exit $ac_status); }; } &&
 
25419
         { ac_try='test -s conftest.$ac_objext'
 
25420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25421
  (eval $ac_try) 2>&5
 
25422
  ac_status=$?
 
25423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25424
  (exit $ac_status); }; }; then
 
25425
  bh_cv_c_signed=yes
 
25426
else
 
25427
  echo "$as_me: failed program was:" >&5
 
25428
sed 's/^/| /' conftest.$ac_ext >&5
 
25429
 
 
25430
bh_cv_c_signed=no
 
25431
fi
 
25432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25433
fi
 
25434
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
 
25435
echo "${ECHO_T}$bh_cv_c_signed" >&6
 
25436
  if test $bh_cv_c_signed = no; then
 
25437
 
 
25438
cat >>confdefs.h <<\_ACEOF
 
25439
#define signed
 
25440
_ACEOF
 
25441
 
 
25442
  fi
 
25443
 
 
25444
echo "$as_me:$LINENO: checking for inline" >&5
 
25445
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
25446
if test "${ac_cv_c_inline+set}" = set; then
 
25447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25448
else
 
25449
  ac_cv_c_inline=no
 
25450
for ac_kw in inline __inline__ __inline; do
 
25451
  cat >conftest.$ac_ext <<_ACEOF
 
25452
/* confdefs.h.  */
 
25453
_ACEOF
 
25454
cat confdefs.h >>conftest.$ac_ext
 
25455
cat >>conftest.$ac_ext <<_ACEOF
 
25456
/* end confdefs.h.  */
 
25457
#ifndef __cplusplus
 
25458
typedef int foo_t;
 
25459
static $ac_kw foo_t static_foo () {return 0; }
 
25460
$ac_kw foo_t foo () {return 0; }
 
25461
#endif
 
25462
 
 
25463
_ACEOF
 
25464
rm -f conftest.$ac_objext
 
25465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25466
  (eval $ac_compile) 2>conftest.er1
 
25467
  ac_status=$?
 
25468
  grep -v '^ *+' conftest.er1 >conftest.err
 
25469
  rm -f conftest.er1
 
25470
  cat conftest.err >&5
 
25471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25472
  (exit $ac_status); } &&
 
25473
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25475
  (eval $ac_try) 2>&5
 
25476
  ac_status=$?
 
25477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25478
  (exit $ac_status); }; } &&
 
25479
         { ac_try='test -s conftest.$ac_objext'
 
25480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25481
  (eval $ac_try) 2>&5
 
25482
  ac_status=$?
 
25483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25484
  (exit $ac_status); }; }; then
 
25485
  ac_cv_c_inline=$ac_kw; break
 
25486
else
 
25487
  echo "$as_me: failed program was:" >&5
 
25488
sed 's/^/| /' conftest.$ac_ext >&5
 
25489
 
 
25490
fi
 
25491
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25492
done
 
25493
 
 
25494
fi
 
25495
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
25496
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
25497
 
 
25498
 
 
25499
case $ac_cv_c_inline in
 
25500
  inline | yes) ;;
 
25501
  *)
 
25502
    case $ac_cv_c_inline in
 
25503
      no) ac_val=;;
 
25504
      *) ac_val=$ac_cv_c_inline;;
 
25505
    esac
 
25506
    cat >>confdefs.h <<_ACEOF
 
25507
#ifndef __cplusplus
 
25508
#define inline $ac_val
 
25509
#endif
 
25510
_ACEOF
 
25511
    ;;
 
25512
esac
 
25513
 
 
25514
echo "$as_me:$LINENO: checking for off_t" >&5
 
25515
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
25516
if test "${ac_cv_type_off_t+set}" = set; then
 
25517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25518
else
 
25519
  cat >conftest.$ac_ext <<_ACEOF
 
25520
/* confdefs.h.  */
 
25521
_ACEOF
 
25522
cat confdefs.h >>conftest.$ac_ext
 
25523
cat >>conftest.$ac_ext <<_ACEOF
 
25524
/* end confdefs.h.  */
 
25525
$ac_includes_default
 
25526
int
 
25527
main ()
 
25528
{
 
25529
if ((off_t *) 0)
 
25530
  return 0;
 
25531
if (sizeof (off_t))
 
25532
  return 0;
 
25533
  ;
 
25534
  return 0;
 
25535
}
 
25536
_ACEOF
 
25537
rm -f conftest.$ac_objext
 
25538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25539
  (eval $ac_compile) 2>conftest.er1
 
25540
  ac_status=$?
 
25541
  grep -v '^ *+' conftest.er1 >conftest.err
 
25542
  rm -f conftest.er1
 
25543
  cat conftest.err >&5
 
25544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25545
  (exit $ac_status); } &&
 
25546
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25548
  (eval $ac_try) 2>&5
 
25549
  ac_status=$?
 
25550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25551
  (exit $ac_status); }; } &&
 
25552
         { ac_try='test -s conftest.$ac_objext'
 
25553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25554
  (eval $ac_try) 2>&5
 
25555
  ac_status=$?
 
25556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25557
  (exit $ac_status); }; }; then
 
25558
  ac_cv_type_off_t=yes
 
25559
else
 
25560
  echo "$as_me: failed program was:" >&5
 
25561
sed 's/^/| /' conftest.$ac_ext >&5
 
25562
 
 
25563
ac_cv_type_off_t=no
 
25564
fi
 
25565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25566
fi
 
25567
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
25568
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
25569
if test $ac_cv_type_off_t = yes; then
 
25570
  :
 
25571
else
 
25572
 
 
25573
cat >>confdefs.h <<_ACEOF
 
25574
#define off_t long
 
25575
_ACEOF
 
25576
 
 
25577
fi
 
25578
 
 
25579
 
 
25580
  echo "$as_me:$LINENO: checking for long long" >&5
 
25581
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
25582
if test "${ac_cv_type_long_long+set}" = set; then
 
25583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25584
else
 
25585
  cat >conftest.$ac_ext <<_ACEOF
 
25586
/* confdefs.h.  */
 
25587
_ACEOF
 
25588
cat confdefs.h >>conftest.$ac_ext
 
25589
cat >>conftest.$ac_ext <<_ACEOF
 
25590
/* end confdefs.h.  */
 
25591
long long ll = 1LL; int i = 63;
 
25592
int
 
25593
main ()
 
25594
{
 
25595
long long llmax = (long long) -1;
 
25596
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
25597
  ;
 
25598
  return 0;
 
25599
}
 
25600
_ACEOF
 
25601
rm -f conftest.$ac_objext conftest$ac_exeext
 
25602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25603
  (eval $ac_link) 2>conftest.er1
 
25604
  ac_status=$?
 
25605
  grep -v '^ *+' conftest.er1 >conftest.err
 
25606
  rm -f conftest.er1
 
25607
  cat conftest.err >&5
 
25608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25609
  (exit $ac_status); } &&
 
25610
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25612
  (eval $ac_try) 2>&5
 
25613
  ac_status=$?
 
25614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25615
  (exit $ac_status); }; } &&
 
25616
         { ac_try='test -s conftest$ac_exeext'
 
25617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25618
  (eval $ac_try) 2>&5
 
25619
  ac_status=$?
 
25620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25621
  (exit $ac_status); }; }; then
 
25622
  ac_cv_type_long_long=yes
 
25623
else
 
25624
  echo "$as_me: failed program was:" >&5
 
25625
sed 's/^/| /' conftest.$ac_ext >&5
 
25626
 
 
25627
ac_cv_type_long_long=no
 
25628
fi
 
25629
rm -f conftest.err conftest.$ac_objext \
 
25630
      conftest$ac_exeext conftest.$ac_ext
 
25631
fi
 
25632
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
25633
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
25634
  if test $ac_cv_type_long_long = yes; then
 
25635
 
 
25636
cat >>confdefs.h <<\_ACEOF
 
25637
#define HAVE_LONG_LONG 1
 
25638
_ACEOF
 
25639
 
 
25640
  fi
 
25641
 
 
25642
 
 
25643
  echo "$as_me:$LINENO: checking for long double" >&5
 
25644
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
25645
if test "${gt_cv_c_long_double+set}" = set; then
 
25646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25647
else
 
25648
  if test "$GCC" = yes; then
 
25649
       gt_cv_c_long_double=yes
 
25650
     else
 
25651
       cat >conftest.$ac_ext <<_ACEOF
 
25652
/* confdefs.h.  */
 
25653
_ACEOF
 
25654
cat confdefs.h >>conftest.$ac_ext
 
25655
cat >>conftest.$ac_ext <<_ACEOF
 
25656
/* end confdefs.h.  */
 
25657
 
 
25658
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
25659
         long double foo = 0.0;
 
25660
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
25661
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
25662
 
 
25663
int
 
25664
main ()
 
25665
{
 
25666
 
 
25667
  ;
 
25668
  return 0;
 
25669
}
 
25670
_ACEOF
 
25671
rm -f conftest.$ac_objext
 
25672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25673
  (eval $ac_compile) 2>conftest.er1
 
25674
  ac_status=$?
 
25675
  grep -v '^ *+' conftest.er1 >conftest.err
 
25676
  rm -f conftest.er1
 
25677
  cat conftest.err >&5
 
25678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25679
  (exit $ac_status); } &&
 
25680
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25682
  (eval $ac_try) 2>&5
 
25683
  ac_status=$?
 
25684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25685
  (exit $ac_status); }; } &&
 
25686
         { ac_try='test -s conftest.$ac_objext'
 
25687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25688
  (eval $ac_try) 2>&5
 
25689
  ac_status=$?
 
25690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25691
  (exit $ac_status); }; }; then
 
25692
  gt_cv_c_long_double=yes
 
25693
else
 
25694
  echo "$as_me: failed program was:" >&5
 
25695
sed 's/^/| /' conftest.$ac_ext >&5
 
25696
 
 
25697
gt_cv_c_long_double=no
 
25698
fi
 
25699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25700
     fi
 
25701
fi
 
25702
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
25703
echo "${ECHO_T}$gt_cv_c_long_double" >&6
 
25704
  if test $gt_cv_c_long_double = yes; then
 
25705
 
 
25706
cat >>confdefs.h <<\_ACEOF
 
25707
#define HAVE_LONG_DOUBLE 1
 
25708
_ACEOF
 
25709
 
 
25710
  fi
 
25711
 
 
25712
 
 
25713
  echo "$as_me:$LINENO: checking for wchar_t" >&5
 
25714
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
 
25715
if test "${gt_cv_c_wchar_t+set}" = set; then
 
25716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25717
else
 
25718
  cat >conftest.$ac_ext <<_ACEOF
 
25719
/* confdefs.h.  */
 
25720
_ACEOF
 
25721
cat confdefs.h >>conftest.$ac_ext
 
25722
cat >>conftest.$ac_ext <<_ACEOF
 
25723
/* end confdefs.h.  */
 
25724
#include <stddef.h>
 
25725
       wchar_t foo = (wchar_t)'\0';
 
25726
int
 
25727
main ()
 
25728
{
 
25729
 
 
25730
  ;
 
25731
  return 0;
 
25732
}
 
25733
_ACEOF
 
25734
rm -f conftest.$ac_objext
 
25735
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25736
  (eval $ac_compile) 2>conftest.er1
 
25737
  ac_status=$?
 
25738
  grep -v '^ *+' conftest.er1 >conftest.err
 
25739
  rm -f conftest.er1
 
25740
  cat conftest.err >&5
 
25741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25742
  (exit $ac_status); } &&
 
25743
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25745
  (eval $ac_try) 2>&5
 
25746
  ac_status=$?
 
25747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25748
  (exit $ac_status); }; } &&
 
25749
         { ac_try='test -s conftest.$ac_objext'
 
25750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25751
  (eval $ac_try) 2>&5
 
25752
  ac_status=$?
 
25753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25754
  (exit $ac_status); }; }; then
 
25755
  gt_cv_c_wchar_t=yes
 
25756
else
 
25757
  echo "$as_me: failed program was:" >&5
 
25758
sed 's/^/| /' conftest.$ac_ext >&5
 
25759
 
 
25760
gt_cv_c_wchar_t=no
 
25761
fi
 
25762
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25763
fi
 
25764
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
25765
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
 
25766
  if test $gt_cv_c_wchar_t = yes; then
 
25767
 
 
25768
cat >>confdefs.h <<\_ACEOF
 
25769
#define HAVE_WCHAR_T 1
 
25770
_ACEOF
 
25771
 
 
25772
  fi
 
25773
 
 
25774
 
 
25775
  echo "$as_me:$LINENO: checking for wint_t" >&5
 
25776
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
 
25777
if test "${gt_cv_c_wint_t+set}" = set; then
 
25778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25779
else
 
25780
  cat >conftest.$ac_ext <<_ACEOF
 
25781
/* confdefs.h.  */
 
25782
_ACEOF
 
25783
cat confdefs.h >>conftest.$ac_ext
 
25784
cat >>conftest.$ac_ext <<_ACEOF
 
25785
/* end confdefs.h.  */
 
25786
#include <wchar.h>
 
25787
       wint_t foo = (wchar_t)'\0';
 
25788
int
 
25789
main ()
 
25790
{
 
25791
 
 
25792
  ;
 
25793
  return 0;
 
25794
}
 
25795
_ACEOF
 
25796
rm -f conftest.$ac_objext
 
25797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25798
  (eval $ac_compile) 2>conftest.er1
 
25799
  ac_status=$?
 
25800
  grep -v '^ *+' conftest.er1 >conftest.err
 
25801
  rm -f conftest.er1
 
25802
  cat conftest.err >&5
 
25803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25804
  (exit $ac_status); } &&
 
25805
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25807
  (eval $ac_try) 2>&5
 
25808
  ac_status=$?
 
25809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25810
  (exit $ac_status); }; } &&
 
25811
         { ac_try='test -s conftest.$ac_objext'
 
25812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25813
  (eval $ac_try) 2>&5
 
25814
  ac_status=$?
 
25815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25816
  (exit $ac_status); }; }; then
 
25817
  gt_cv_c_wint_t=yes
 
25818
else
 
25819
  echo "$as_me: failed program was:" >&5
 
25820
sed 's/^/| /' conftest.$ac_ext >&5
 
25821
 
 
25822
gt_cv_c_wint_t=no
 
25823
fi
 
25824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25825
fi
 
25826
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
25827
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
 
25828
  if test $gt_cv_c_wint_t = yes; then
 
25829
 
 
25830
cat >>confdefs.h <<\_ACEOF
 
25831
#define HAVE_WINT_T 1
 
25832
_ACEOF
 
25833
 
 
25834
  fi
 
25835
 
 
25836
 
 
25837
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
25838
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
25839
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
 
25840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25841
else
 
25842
  cat >conftest.$ac_ext <<_ACEOF
 
25843
/* confdefs.h.  */
 
25844
_ACEOF
 
25845
cat confdefs.h >>conftest.$ac_ext
 
25846
cat >>conftest.$ac_ext <<_ACEOF
 
25847
/* end confdefs.h.  */
 
25848
#include <sys/types.h>
 
25849
#include <inttypes.h>
 
25850
int
 
25851
main ()
 
25852
{
 
25853
uintmax_t i = (uintmax_t) -1;
 
25854
  ;
 
25855
  return 0;
 
25856
}
 
25857
_ACEOF
 
25858
rm -f conftest.$ac_objext
 
25859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25860
  (eval $ac_compile) 2>conftest.er1
 
25861
  ac_status=$?
 
25862
  grep -v '^ *+' conftest.er1 >conftest.err
 
25863
  rm -f conftest.er1
 
25864
  cat conftest.err >&5
 
25865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25866
  (exit $ac_status); } &&
 
25867
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25869
  (eval $ac_try) 2>&5
 
25870
  ac_status=$?
 
25871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25872
  (exit $ac_status); }; } &&
 
25873
         { ac_try='test -s conftest.$ac_objext'
 
25874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25875
  (eval $ac_try) 2>&5
 
25876
  ac_status=$?
 
25877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25878
  (exit $ac_status); }; }; then
 
25879
  jm_ac_cv_header_inttypes_h=yes
 
25880
else
 
25881
  echo "$as_me: failed program was:" >&5
 
25882
sed 's/^/| /' conftest.$ac_ext >&5
 
25883
 
 
25884
jm_ac_cv_header_inttypes_h=no
 
25885
fi
 
25886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25887
fi
 
25888
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
 
25889
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
 
25890
  if test $jm_ac_cv_header_inttypes_h = yes; then
 
25891
 
 
25892
cat >>confdefs.h <<_ACEOF
 
25893
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
25894
_ACEOF
 
25895
 
 
25896
  fi
 
25897
 
 
25898
 
 
25899
  echo "$as_me:$LINENO: checking for stdint.h" >&5
 
25900
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
 
25901
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
 
25902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25903
else
 
25904
  cat >conftest.$ac_ext <<_ACEOF
 
25905
/* confdefs.h.  */
 
25906
_ACEOF
 
25907
cat confdefs.h >>conftest.$ac_ext
 
25908
cat >>conftest.$ac_ext <<_ACEOF
 
25909
/* end confdefs.h.  */
 
25910
#include <sys/types.h>
 
25911
#include <stdint.h>
 
25912
int
 
25913
main ()
 
25914
{
 
25915
uintmax_t i = (uintmax_t) -1;
 
25916
  ;
 
25917
  return 0;
 
25918
}
 
25919
_ACEOF
 
25920
rm -f conftest.$ac_objext
 
25921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25922
  (eval $ac_compile) 2>conftest.er1
 
25923
  ac_status=$?
 
25924
  grep -v '^ *+' conftest.er1 >conftest.err
 
25925
  rm -f conftest.er1
 
25926
  cat conftest.err >&5
 
25927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25928
  (exit $ac_status); } &&
 
25929
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25931
  (eval $ac_try) 2>&5
 
25932
  ac_status=$?
 
25933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25934
  (exit $ac_status); }; } &&
 
25935
         { ac_try='test -s conftest.$ac_objext'
 
25936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25937
  (eval $ac_try) 2>&5
 
25938
  ac_status=$?
 
25939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25940
  (exit $ac_status); }; }; then
 
25941
  jm_ac_cv_header_stdint_h=yes
 
25942
else
 
25943
  echo "$as_me: failed program was:" >&5
 
25944
sed 's/^/| /' conftest.$ac_ext >&5
 
25945
 
 
25946
jm_ac_cv_header_stdint_h=no
 
25947
fi
 
25948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25949
fi
 
25950
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
 
25951
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
 
25952
  if test $jm_ac_cv_header_stdint_h = yes; then
 
25953
 
 
25954
cat >>confdefs.h <<_ACEOF
 
25955
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
25956
_ACEOF
 
25957
 
 
25958
  fi
 
25959
 
 
25960
 
 
25961
 
 
25962
 
 
25963
  echo "$as_me:$LINENO: checking for intmax_t" >&5
 
25964
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
 
25965
if test "${gt_cv_c_intmax_t+set}" = set; then
 
25966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25967
else
 
25968
  cat >conftest.$ac_ext <<_ACEOF
 
25969
/* confdefs.h.  */
 
25970
_ACEOF
 
25971
cat confdefs.h >>conftest.$ac_ext
 
25972
cat >>conftest.$ac_ext <<_ACEOF
 
25973
/* end confdefs.h.  */
 
25974
 
 
25975
#include <stddef.h>
 
25976
#include <stdlib.h>
 
25977
#if HAVE_STDINT_H_WITH_UINTMAX
 
25978
#include <stdint.h>
 
25979
#endif
 
25980
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
25981
#include <inttypes.h>
 
25982
#endif
 
25983
 
 
25984
int
 
25985
main ()
 
25986
{
 
25987
intmax_t x = -1;
 
25988
  ;
 
25989
  return 0;
 
25990
}
 
25991
_ACEOF
 
25992
rm -f conftest.$ac_objext
 
25993
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25994
  (eval $ac_compile) 2>conftest.er1
 
25995
  ac_status=$?
 
25996
  grep -v '^ *+' conftest.er1 >conftest.err
 
25997
  rm -f conftest.er1
 
25998
  cat conftest.err >&5
 
25999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26000
  (exit $ac_status); } &&
 
26001
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26003
  (eval $ac_try) 2>&5
 
26004
  ac_status=$?
 
26005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26006
  (exit $ac_status); }; } &&
 
26007
         { ac_try='test -s conftest.$ac_objext'
 
26008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26009
  (eval $ac_try) 2>&5
 
26010
  ac_status=$?
 
26011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26012
  (exit $ac_status); }; }; then
 
26013
  gt_cv_c_intmax_t=yes
 
26014
else
 
26015
  echo "$as_me: failed program was:" >&5
 
26016
sed 's/^/| /' conftest.$ac_ext >&5
 
26017
 
 
26018
gt_cv_c_intmax_t=no
 
26019
fi
 
26020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26021
fi
 
26022
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
26023
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
 
26024
  if test $gt_cv_c_intmax_t = yes; then
 
26025
 
 
26026
cat >>confdefs.h <<\_ACEOF
 
26027
#define HAVE_INTMAX_T 1
 
26028
_ACEOF
 
26029
 
 
26030
  fi
 
26031
 
 
26032
 
 
26033
 
 
26034
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
26035
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
 
26036
if test "${gt_cv_func_printf_posix+set}" = set; then
 
26037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26038
else
 
26039
 
 
26040
      if test "$cross_compiling" = yes; then
 
26041
 
 
26042
        cat >conftest.$ac_ext <<_ACEOF
 
26043
/* confdefs.h.  */
 
26044
_ACEOF
 
26045
cat confdefs.h >>conftest.$ac_ext
 
26046
cat >>conftest.$ac_ext <<_ACEOF
 
26047
/* end confdefs.h.  */
 
26048
 
 
26049
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
26050
  notposix
 
26051
#endif
 
26052
 
 
26053
_ACEOF
 
26054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26055
  $EGREP "notposix" >/dev/null 2>&1; then
 
26056
  gt_cv_func_printf_posix="guessing no"
 
26057
else
 
26058
  gt_cv_func_printf_posix="guessing yes"
 
26059
fi
 
26060
rm -f conftest*
 
26061
 
 
26062
 
 
26063
else
 
26064
  cat >conftest.$ac_ext <<_ACEOF
 
26065
/* confdefs.h.  */
 
26066
_ACEOF
 
26067
cat confdefs.h >>conftest.$ac_ext
 
26068
cat >>conftest.$ac_ext <<_ACEOF
 
26069
/* end confdefs.h.  */
 
26070
 
 
26071
#include <stdio.h>
 
26072
#include <string.h>
 
26073
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
26074
   dollar expansion (possibly an autoconf bug).  */
 
26075
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
26076
static char buf[100];
 
26077
int main ()
 
26078
{
 
26079
  sprintf (buf, format, 33, 55);
 
26080
  return (strcmp (buf, "55 33") != 0);
 
26081
}
 
26082
_ACEOF
 
26083
rm -f conftest$ac_exeext
 
26084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26085
  (eval $ac_link) 2>&5
 
26086
  ac_status=$?
 
26087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26088
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26090
  (eval $ac_try) 2>&5
 
26091
  ac_status=$?
 
26092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26093
  (exit $ac_status); }; }; then
 
26094
  gt_cv_func_printf_posix=yes
 
26095
else
 
26096
  echo "$as_me: program exited with status $ac_status" >&5
 
26097
echo "$as_me: failed program was:" >&5
 
26098
sed 's/^/| /' conftest.$ac_ext >&5
 
26099
 
 
26100
( exit $ac_status )
 
26101
gt_cv_func_printf_posix=no
 
26102
fi
 
26103
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26104
fi
 
26105
 
 
26106
fi
 
26107
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
26108
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
 
26109
  case $gt_cv_func_printf_posix in
 
26110
    *yes)
 
26111
 
 
26112
cat >>confdefs.h <<\_ACEOF
 
26113
#define HAVE_POSIX_PRINTF 1
 
26114
_ACEOF
 
26115
 
 
26116
      ;;
 
26117
  esac
 
26118
 
 
26119
 
 
26120
 
 
26121
for ac_header in stdlib.h unistd.h
 
26122
do
 
26123
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26124
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26125
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26126
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26127
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26129
fi
 
26130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26131
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26132
else
 
26133
  # Is the header compilable?
 
26134
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26135
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26136
cat >conftest.$ac_ext <<_ACEOF
 
26137
/* confdefs.h.  */
 
26138
_ACEOF
 
26139
cat confdefs.h >>conftest.$ac_ext
 
26140
cat >>conftest.$ac_ext <<_ACEOF
 
26141
/* end confdefs.h.  */
 
26142
$ac_includes_default
 
26143
#include <$ac_header>
 
26144
_ACEOF
 
26145
rm -f conftest.$ac_objext
 
26146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26147
  (eval $ac_compile) 2>conftest.er1
 
26148
  ac_status=$?
 
26149
  grep -v '^ *+' conftest.er1 >conftest.err
 
26150
  rm -f conftest.er1
 
26151
  cat conftest.err >&5
 
26152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26153
  (exit $ac_status); } &&
 
26154
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26156
  (eval $ac_try) 2>&5
 
26157
  ac_status=$?
 
26158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26159
  (exit $ac_status); }; } &&
 
26160
         { ac_try='test -s conftest.$ac_objext'
 
26161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26162
  (eval $ac_try) 2>&5
 
26163
  ac_status=$?
 
26164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26165
  (exit $ac_status); }; }; then
 
26166
  ac_header_compiler=yes
 
26167
else
 
26168
  echo "$as_me: failed program was:" >&5
 
26169
sed 's/^/| /' conftest.$ac_ext >&5
 
26170
 
 
26171
ac_header_compiler=no
 
26172
fi
 
26173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26174
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26175
echo "${ECHO_T}$ac_header_compiler" >&6
 
26176
 
 
26177
# Is the header present?
 
26178
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26179
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26180
cat >conftest.$ac_ext <<_ACEOF
 
26181
/* confdefs.h.  */
 
26182
_ACEOF
 
26183
cat confdefs.h >>conftest.$ac_ext
 
26184
cat >>conftest.$ac_ext <<_ACEOF
 
26185
/* end confdefs.h.  */
 
26186
#include <$ac_header>
 
26187
_ACEOF
 
26188
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26189
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26190
  ac_status=$?
 
26191
  grep -v '^ *+' conftest.er1 >conftest.err
 
26192
  rm -f conftest.er1
 
26193
  cat conftest.err >&5
 
26194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26195
  (exit $ac_status); } >/dev/null; then
 
26196
  if test -s conftest.err; then
 
26197
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26198
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26199
  else
 
26200
    ac_cpp_err=
 
26201
  fi
 
26202
else
 
26203
  ac_cpp_err=yes
 
26204
fi
 
26205
if test -z "$ac_cpp_err"; then
 
26206
  ac_header_preproc=yes
 
26207
else
 
26208
  echo "$as_me: failed program was:" >&5
 
26209
sed 's/^/| /' conftest.$ac_ext >&5
 
26210
 
 
26211
  ac_header_preproc=no
 
26212
fi
 
26213
rm -f conftest.err conftest.$ac_ext
 
26214
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26215
echo "${ECHO_T}$ac_header_preproc" >&6
 
26216
 
 
26217
# So?  What about this header?
 
26218
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26219
  yes:no: )
 
26220
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26221
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26222
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26223
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26224
    ac_header_preproc=yes
 
26225
    ;;
 
26226
  no:yes:* )
 
26227
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26228
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26229
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26230
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26231
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26232
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26233
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26234
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26235
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26236
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26237
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26238
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26239
    (
 
26240
      cat <<\_ASBOX
 
26241
## ------------------------------------------ ##
 
26242
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26243
## ------------------------------------------ ##
 
26244
_ASBOX
 
26245
    ) |
 
26246
      sed "s/^/$as_me: WARNING:     /" >&2
 
26247
    ;;
 
26248
esac
 
26249
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26253
else
 
26254
  eval "$as_ac_Header=\$ac_header_preproc"
 
26255
fi
 
26256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26258
 
 
26259
fi
 
26260
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26261
  cat >>confdefs.h <<_ACEOF
 
26262
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26263
_ACEOF
 
26264
 
 
26265
fi
 
26266
 
 
26267
done
 
26268
 
 
26269
 
 
26270
for ac_func in getpagesize
 
26271
do
 
26272
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26273
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26274
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
26275
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
26276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26277
else
 
26278
  cat >conftest.$ac_ext <<_ACEOF
 
26279
/* confdefs.h.  */
 
26280
_ACEOF
 
26281
cat confdefs.h >>conftest.$ac_ext
 
26282
cat >>conftest.$ac_ext <<_ACEOF
 
26283
/* end confdefs.h.  */
 
26284
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26285
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26286
#define $ac_func innocuous_$ac_func
 
26287
 
 
26288
/* System header to define __stub macros and hopefully few prototypes,
 
26289
    which can conflict with char $ac_func (); below.
 
26290
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26291
    <limits.h> exists even on freestanding compilers.  */
 
26292
 
 
26293
#ifdef __STDC__
 
26294
# include <limits.h>
 
26295
#else
 
26296
# include <assert.h>
 
26297
#endif
 
26298
 
 
26299
#undef $ac_func
 
26300
 
 
26301
/* Override any gcc2 internal prototype to avoid an error.  */
 
26302
#ifdef __cplusplus
 
26303
extern "C"
 
26304
{
 
26305
#endif
 
26306
/* We use char because int might match the return type of a gcc2
 
26307
   builtin and then its argument prototype would still apply.  */
 
26308
char $ac_func ();
 
26309
/* The GNU C library defines this for functions which it implements
 
26310
    to always fail with ENOSYS.  Some functions are actually named
 
26311
    something starting with __ and the normal name is an alias.  */
 
26312
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
26313
choke me
 
26314
#else
 
26315
char (*f) () = $ac_func;
 
26316
#endif
 
26317
#ifdef __cplusplus
 
26318
}
 
26319
#endif
 
26320
 
 
26321
int
 
26322
main ()
 
26323
{
 
26324
return f != $ac_func;
 
26325
  ;
 
26326
  return 0;
 
26327
}
 
26328
_ACEOF
 
26329
rm -f conftest.$ac_objext conftest$ac_exeext
 
26330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26331
  (eval $ac_link) 2>conftest.er1
 
26332
  ac_status=$?
 
26333
  grep -v '^ *+' conftest.er1 >conftest.err
 
26334
  rm -f conftest.er1
 
26335
  cat conftest.err >&5
 
26336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26337
  (exit $ac_status); } &&
 
26338
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26340
  (eval $ac_try) 2>&5
 
26341
  ac_status=$?
 
26342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26343
  (exit $ac_status); }; } &&
 
26344
         { ac_try='test -s conftest$ac_exeext'
 
26345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26346
  (eval $ac_try) 2>&5
 
26347
  ac_status=$?
 
26348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26349
  (exit $ac_status); }; }; then
 
26350
  eval "$as_ac_var=yes"
 
26351
else
 
26352
  echo "$as_me: failed program was:" >&5
 
26353
sed 's/^/| /' conftest.$ac_ext >&5
 
26354
 
 
26355
eval "$as_ac_var=no"
 
26356
fi
 
26357
rm -f conftest.err conftest.$ac_objext \
 
26358
      conftest$ac_exeext conftest.$ac_ext
 
26359
fi
 
26360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
26361
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
26362
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26363
  cat >>confdefs.h <<_ACEOF
 
26364
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26365
_ACEOF
 
26366
 
 
26367
fi
 
26368
done
 
26369
 
 
26370
echo "$as_me:$LINENO: checking for working mmap" >&5
 
26371
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
26372
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
26373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26374
else
 
26375
  if test "$cross_compiling" = yes; then
 
26376
  ac_cv_func_mmap_fixed_mapped=no
 
26377
else
 
26378
  cat >conftest.$ac_ext <<_ACEOF
 
26379
/* confdefs.h.  */
 
26380
_ACEOF
 
26381
cat confdefs.h >>conftest.$ac_ext
 
26382
cat >>conftest.$ac_ext <<_ACEOF
 
26383
/* end confdefs.h.  */
 
26384
$ac_includes_default
 
26385
/* malloc might have been renamed as rpl_malloc. */
 
26386
#undef malloc
 
26387
 
 
26388
/* Thanks to Mike Haertel and Jim Avera for this test.
 
26389
   Here is a matrix of mmap possibilities:
 
26390
        mmap private not fixed
 
26391
        mmap private fixed at somewhere currently unmapped
 
26392
        mmap private fixed at somewhere already mapped
 
26393
        mmap shared not fixed
 
26394
        mmap shared fixed at somewhere currently unmapped
 
26395
        mmap shared fixed at somewhere already mapped
 
26396
   For private mappings, we should verify that changes cannot be read()
 
26397
   back from the file, nor mmap's back from the file at a different
 
26398
   address.  (There have been systems where private was not correctly
 
26399
   implemented like the infamous i386 svr4.0, and systems where the
 
26400
   VM page cache was not coherent with the file system buffer cache
 
26401
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
26402
   For shared mappings, we should conversely verify that changes get
 
26403
   propagated back to all the places they're supposed to be.
 
26404
 
 
26405
   Grep wants private fixed already mapped.
 
26406
   The main things grep needs to know about mmap are:
 
26407
   * does it exist and is it safe to write into the mmap'd area
 
26408
   * how to use it (BSD variants)  */
 
26409
 
 
26410
#include <fcntl.h>
 
26411
#include <sys/mman.h>
 
26412
 
 
26413
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
26414
char *malloc ();
 
26415
#endif
 
26416
 
 
26417
/* This mess was copied from the GNU getpagesize.h.  */
 
26418
#if !HAVE_GETPAGESIZE
 
26419
/* Assume that all systems that can run configure have sys/param.h.  */
 
26420
# if !HAVE_SYS_PARAM_H
 
26421
#  define HAVE_SYS_PARAM_H 1
 
26422
# endif
 
26423
 
 
26424
# ifdef _SC_PAGESIZE
 
26425
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
26426
# else /* no _SC_PAGESIZE */
 
26427
#  if HAVE_SYS_PARAM_H
 
26428
#   include <sys/param.h>
 
26429
#   ifdef EXEC_PAGESIZE
 
26430
#    define getpagesize() EXEC_PAGESIZE
 
26431
#   else /* no EXEC_PAGESIZE */
 
26432
#    ifdef NBPG
 
26433
#     define getpagesize() NBPG * CLSIZE
 
26434
#     ifndef CLSIZE
 
26435
#      define CLSIZE 1
 
26436
#     endif /* no CLSIZE */
 
26437
#    else /* no NBPG */
 
26438
#     ifdef NBPC
 
26439
#      define getpagesize() NBPC
 
26440
#     else /* no NBPC */
 
26441
#      ifdef PAGESIZE
 
26442
#       define getpagesize() PAGESIZE
 
26443
#      endif /* PAGESIZE */
 
26444
#     endif /* no NBPC */
 
26445
#    endif /* no NBPG */
 
26446
#   endif /* no EXEC_PAGESIZE */
 
26447
#  else /* no HAVE_SYS_PARAM_H */
 
26448
#   define getpagesize() 8192   /* punt totally */
 
26449
#  endif /* no HAVE_SYS_PARAM_H */
 
26450
# endif /* no _SC_PAGESIZE */
 
26451
 
 
26452
#endif /* no HAVE_GETPAGESIZE */
 
26453
 
 
26454
int
 
26455
main ()
 
26456
{
 
26457
  char *data, *data2, *data3;
 
26458
  int i, pagesize;
 
26459
  int fd;
 
26460
 
 
26461
  pagesize = getpagesize ();
 
26462
 
 
26463
  /* First, make a file with some known garbage in it. */
 
26464
  data = (char *) malloc (pagesize);
 
26465
  if (!data)
 
26466
    exit (1);
 
26467
  for (i = 0; i < pagesize; ++i)
 
26468
    *(data + i) = rand ();
 
26469
  umask (0);
 
26470
  fd = creat ("conftest.mmap", 0600);
 
26471
  if (fd < 0)
 
26472
    exit (1);
 
26473
  if (write (fd, data, pagesize) != pagesize)
 
26474
    exit (1);
 
26475
  close (fd);
 
26476
 
 
26477
  /* Next, try to mmap the file at a fixed address which already has
 
26478
     something else allocated at it.  If we can, also make sure that
 
26479
     we see the same garbage.  */
 
26480
  fd = open ("conftest.mmap", O_RDWR);
 
26481
  if (fd < 0)
 
26482
    exit (1);
 
26483
  data2 = (char *) malloc (2 * pagesize);
 
26484
  if (!data2)
 
26485
    exit (1);
 
26486
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
26487
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
26488
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
26489
    exit (1);
 
26490
  for (i = 0; i < pagesize; ++i)
 
26491
    if (*(data + i) != *(data2 + i))
 
26492
      exit (1);
 
26493
 
 
26494
  /* Finally, make sure that changes to the mapped area do not
 
26495
     percolate back to the file as seen by read().  (This is a bug on
 
26496
     some variants of i386 svr4.0.)  */
 
26497
  for (i = 0; i < pagesize; ++i)
 
26498
    *(data2 + i) = *(data2 + i) + 1;
 
26499
  data3 = (char *) malloc (pagesize);
 
26500
  if (!data3)
 
26501
    exit (1);
 
26502
  if (read (fd, data3, pagesize) != pagesize)
 
26503
    exit (1);
 
26504
  for (i = 0; i < pagesize; ++i)
 
26505
    if (*(data + i) != *(data3 + i))
 
26506
      exit (1);
 
26507
  close (fd);
 
26508
  exit (0);
 
26509
}
 
26510
_ACEOF
 
26511
rm -f conftest$ac_exeext
 
26512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26513
  (eval $ac_link) 2>&5
 
26514
  ac_status=$?
 
26515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26516
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26518
  (eval $ac_try) 2>&5
 
26519
  ac_status=$?
 
26520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26521
  (exit $ac_status); }; }; then
 
26522
  ac_cv_func_mmap_fixed_mapped=yes
 
26523
else
 
26524
  echo "$as_me: program exited with status $ac_status" >&5
 
26525
echo "$as_me: failed program was:" >&5
 
26526
sed 's/^/| /' conftest.$ac_ext >&5
 
26527
 
 
26528
( exit $ac_status )
 
26529
ac_cv_func_mmap_fixed_mapped=no
 
26530
fi
 
26531
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26532
fi
 
26533
fi
 
26534
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
26535
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
26536
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
26537
 
 
26538
cat >>confdefs.h <<\_ACEOF
 
26539
#define HAVE_MMAP 1
 
26540
_ACEOF
 
26541
 
 
26542
fi
 
26543
rm -f conftest.mmap
 
26544
 
 
26545
 
 
26546
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
26547
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
 
26548
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
26549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26550
else
 
26551
  cat >conftest.$ac_ext <<_ACEOF
 
26552
/* confdefs.h.  */
 
26553
_ACEOF
 
26554
cat confdefs.h >>conftest.$ac_ext
 
26555
cat >>conftest.$ac_ext <<_ACEOF
 
26556
/* end confdefs.h.  */
 
26557
 
 
26558
#include <features.h>
 
26559
#ifdef __GNU_LIBRARY__
 
26560
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
26561
  Lucky GNU user
 
26562
 #endif
 
26563
#endif
 
26564
 
 
26565
_ACEOF
 
26566
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26567
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
26568
  ac_cv_gnu_library_2_1=yes
 
26569
else
 
26570
  ac_cv_gnu_library_2_1=no
 
26571
fi
 
26572
rm -f conftest*
 
26573
 
 
26574
 
 
26575
 
 
26576
fi
 
26577
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
26578
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
 
26579
 
 
26580
    GLIBC21="$ac_cv_gnu_library_2_1"
 
26581
 
 
26582
 
 
26583
 
 
26584
 
 
26585
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
26586
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
 
26587
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
26588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26589
else
 
26590
 
 
26591
      if test "$cross_compiling" = yes; then
 
26592
 
 
26593
          # Guess based on the CPU.
 
26594
          case "$host_cpu" in
 
26595
            alpha* | i3456786 | m68k | s390*)
 
26596
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
26597
            *)
 
26598
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
26599
          esac
 
26600
 
 
26601
else
 
26602
  cat >conftest.$ac_ext <<_ACEOF
 
26603
/* confdefs.h.  */
 
26604
_ACEOF
 
26605
cat confdefs.h >>conftest.$ac_ext
 
26606
cat >>conftest.$ac_ext <<_ACEOF
 
26607
/* end confdefs.h.  */
 
26608
 
 
26609
#include <stdlib.h>
 
26610
#include <signal.h>
 
26611
 
 
26612
static void
 
26613
#ifdef __cplusplus
 
26614
sigfpe_handler (int sig)
 
26615
#else
 
26616
sigfpe_handler (sig) int sig;
 
26617
#endif
 
26618
{
 
26619
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
26620
  exit (sig != SIGFPE);
 
26621
}
 
26622
 
 
26623
int x = 1;
 
26624
int y = 0;
 
26625
int z;
 
26626
int nan;
 
26627
 
 
26628
int main ()
 
26629
{
 
26630
  signal (SIGFPE, sigfpe_handler);
 
26631
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
26632
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
26633
  signal (SIGTRAP, sigfpe_handler);
 
26634
#endif
 
26635
/* Linux/SPARC yields signal SIGILL.  */
 
26636
#if defined (__sparc__) && defined (__linux__)
 
26637
  signal (SIGILL, sigfpe_handler);
 
26638
#endif
 
26639
 
 
26640
  z = x / y;
 
26641
  nan = y / y;
 
26642
  exit (1);
 
26643
}
 
26644
 
 
26645
_ACEOF
 
26646
rm -f conftest$ac_exeext
 
26647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26648
  (eval $ac_link) 2>&5
 
26649
  ac_status=$?
 
26650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26651
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26653
  (eval $ac_try) 2>&5
 
26654
  ac_status=$?
 
26655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26656
  (exit $ac_status); }; }; then
 
26657
  gt_cv_int_divbyzero_sigfpe=yes
 
26658
else
 
26659
  echo "$as_me: program exited with status $ac_status" >&5
 
26660
echo "$as_me: failed program was:" >&5
 
26661
sed 's/^/| /' conftest.$ac_ext >&5
 
26662
 
 
26663
( exit $ac_status )
 
26664
gt_cv_int_divbyzero_sigfpe=no
 
26665
fi
 
26666
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26667
fi
 
26668
 
 
26669
fi
 
26670
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
26671
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
 
26672
  case "$gt_cv_int_divbyzero_sigfpe" in
 
26673
    *yes) value=1;;
 
26674
    *) value=0;;
 
26675
  esac
 
26676
 
 
26677
cat >>confdefs.h <<_ACEOF
 
26678
#define INTDIV0_RAISES_SIGFPE $value
 
26679
_ACEOF
 
26680
 
 
26681
 
 
26682
 
 
26683
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
26684
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
26685
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
26686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26687
else
 
26688
  cat >conftest.$ac_ext <<_ACEOF
 
26689
/* confdefs.h.  */
 
26690
_ACEOF
 
26691
cat confdefs.h >>conftest.$ac_ext
 
26692
cat >>conftest.$ac_ext <<_ACEOF
 
26693
/* end confdefs.h.  */
 
26694
unsigned long long ull = 1ULL; int i = 63;
 
26695
int
 
26696
main ()
 
26697
{
 
26698
unsigned long long ullmax = (unsigned long long) -1;
 
26699
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
26700
  ;
 
26701
  return 0;
 
26702
}
 
26703
_ACEOF
 
26704
rm -f conftest.$ac_objext conftest$ac_exeext
 
26705
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26706
  (eval $ac_link) 2>conftest.er1
 
26707
  ac_status=$?
 
26708
  grep -v '^ *+' conftest.er1 >conftest.err
 
26709
  rm -f conftest.er1
 
26710
  cat conftest.err >&5
 
26711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26712
  (exit $ac_status); } &&
 
26713
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26715
  (eval $ac_try) 2>&5
 
26716
  ac_status=$?
 
26717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26718
  (exit $ac_status); }; } &&
 
26719
         { ac_try='test -s conftest$ac_exeext'
 
26720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26721
  (eval $ac_try) 2>&5
 
26722
  ac_status=$?
 
26723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26724
  (exit $ac_status); }; }; then
 
26725
  ac_cv_type_unsigned_long_long=yes
 
26726
else
 
26727
  echo "$as_me: failed program was:" >&5
 
26728
sed 's/^/| /' conftest.$ac_ext >&5
 
26729
 
 
26730
ac_cv_type_unsigned_long_long=no
 
26731
fi
 
26732
rm -f conftest.err conftest.$ac_objext \
 
26733
      conftest$ac_exeext conftest.$ac_ext
 
26734
fi
 
26735
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
26736
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
26737
  if test $ac_cv_type_unsigned_long_long = yes; then
 
26738
 
 
26739
cat >>confdefs.h <<\_ACEOF
 
26740
#define HAVE_UNSIGNED_LONG_LONG 1
 
26741
_ACEOF
 
26742
 
 
26743
  fi
 
26744
 
 
26745
 
 
26746
 
 
26747
 
 
26748
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
 
26749
 
 
26750
    test $ac_cv_type_unsigned_long_long = yes \
 
26751
      && ac_type='unsigned long long' \
 
26752
      || ac_type='unsigned long'
 
26753
 
 
26754
cat >>confdefs.h <<_ACEOF
 
26755
#define uintmax_t $ac_type
 
26756
_ACEOF
 
26757
 
 
26758
  else
 
26759
 
 
26760
cat >>confdefs.h <<\_ACEOF
 
26761
#define HAVE_UINTMAX_T 1
 
26762
_ACEOF
 
26763
 
 
26764
  fi
 
26765
 
 
26766
 
 
26767
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
26768
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
26769
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
26770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26771
else
 
26772
 
 
26773
    cat >conftest.$ac_ext <<_ACEOF
 
26774
/* confdefs.h.  */
 
26775
_ACEOF
 
26776
cat confdefs.h >>conftest.$ac_ext
 
26777
cat >>conftest.$ac_ext <<_ACEOF
 
26778
/* end confdefs.h.  */
 
26779
#include <sys/types.h>
 
26780
#include <inttypes.h>
 
26781
int
 
26782
main ()
 
26783
{
 
26784
 
 
26785
  ;
 
26786
  return 0;
 
26787
}
 
26788
_ACEOF
 
26789
rm -f conftest.$ac_objext
 
26790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26791
  (eval $ac_compile) 2>conftest.er1
 
26792
  ac_status=$?
 
26793
  grep -v '^ *+' conftest.er1 >conftest.err
 
26794
  rm -f conftest.er1
 
26795
  cat conftest.err >&5
 
26796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26797
  (exit $ac_status); } &&
 
26798
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26800
  (eval $ac_try) 2>&5
 
26801
  ac_status=$?
 
26802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26803
  (exit $ac_status); }; } &&
 
26804
         { ac_try='test -s conftest.$ac_objext'
 
26805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26806
  (eval $ac_try) 2>&5
 
26807
  ac_status=$?
 
26808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26809
  (exit $ac_status); }; }; then
 
26810
  gt_cv_header_inttypes_h=yes
 
26811
else
 
26812
  echo "$as_me: failed program was:" >&5
 
26813
sed 's/^/| /' conftest.$ac_ext >&5
 
26814
 
 
26815
gt_cv_header_inttypes_h=no
 
26816
fi
 
26817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26818
 
 
26819
fi
 
26820
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
 
26821
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
 
26822
  if test $gt_cv_header_inttypes_h = yes; then
 
26823
 
 
26824
cat >>confdefs.h <<_ACEOF
 
26825
#define HAVE_INTTYPES_H 1
 
26826
_ACEOF
 
26827
 
 
26828
  fi
 
26829
 
 
26830
 
 
26831
 
 
26832
  if test $gt_cv_header_inttypes_h = yes; then
 
26833
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
26834
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
 
26835
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
26836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26837
else
 
26838
 
 
26839
        cat >conftest.$ac_ext <<_ACEOF
 
26840
/* confdefs.h.  */
 
26841
_ACEOF
 
26842
cat confdefs.h >>conftest.$ac_ext
 
26843
cat >>conftest.$ac_ext <<_ACEOF
 
26844
/* end confdefs.h.  */
 
26845
#include <inttypes.h>
 
26846
#ifdef PRId32
 
26847
char *p = PRId32;
 
26848
#endif
 
26849
 
 
26850
int
 
26851
main ()
 
26852
{
 
26853
 
 
26854
  ;
 
26855
  return 0;
 
26856
}
 
26857
_ACEOF
 
26858
rm -f conftest.$ac_objext
 
26859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26860
  (eval $ac_compile) 2>conftest.er1
 
26861
  ac_status=$?
 
26862
  grep -v '^ *+' conftest.er1 >conftest.err
 
26863
  rm -f conftest.er1
 
26864
  cat conftest.err >&5
 
26865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26866
  (exit $ac_status); } &&
 
26867
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26869
  (eval $ac_try) 2>&5
 
26870
  ac_status=$?
 
26871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26872
  (exit $ac_status); }; } &&
 
26873
         { ac_try='test -s conftest.$ac_objext'
 
26874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26875
  (eval $ac_try) 2>&5
 
26876
  ac_status=$?
 
26877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26878
  (exit $ac_status); }; }; then
 
26879
  gt_cv_inttypes_pri_broken=no
 
26880
else
 
26881
  echo "$as_me: failed program was:" >&5
 
26882
sed 's/^/| /' conftest.$ac_ext >&5
 
26883
 
 
26884
gt_cv_inttypes_pri_broken=yes
 
26885
fi
 
26886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26887
 
 
26888
fi
 
26889
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
26890
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
26891
  fi
 
26892
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
26893
 
 
26894
cat >>confdefs.h <<_ACEOF
 
26895
#define PRI_MACROS_BROKEN 1
 
26896
_ACEOF
 
26897
 
 
26898
  fi
 
26899
 
 
26900
 
 
26901
 
 
26902
for ac_header in stdint.h
 
26903
do
 
26904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26905
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26906
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26910
fi
 
26911
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26912
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26913
else
 
26914
  # Is the header compilable?
 
26915
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26917
cat >conftest.$ac_ext <<_ACEOF
 
26918
/* confdefs.h.  */
 
26919
_ACEOF
 
26920
cat confdefs.h >>conftest.$ac_ext
 
26921
cat >>conftest.$ac_ext <<_ACEOF
 
26922
/* end confdefs.h.  */
 
26923
$ac_includes_default
 
26924
#include <$ac_header>
 
26925
_ACEOF
 
26926
rm -f conftest.$ac_objext
 
26927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26928
  (eval $ac_compile) 2>conftest.er1
 
26929
  ac_status=$?
 
26930
  grep -v '^ *+' conftest.er1 >conftest.err
 
26931
  rm -f conftest.er1
 
26932
  cat conftest.err >&5
 
26933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26934
  (exit $ac_status); } &&
 
26935
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26937
  (eval $ac_try) 2>&5
 
26938
  ac_status=$?
 
26939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26940
  (exit $ac_status); }; } &&
 
26941
         { ac_try='test -s conftest.$ac_objext'
 
26942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26943
  (eval $ac_try) 2>&5
 
26944
  ac_status=$?
 
26945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26946
  (exit $ac_status); }; }; then
 
26947
  ac_header_compiler=yes
 
26948
else
 
26949
  echo "$as_me: failed program was:" >&5
 
26950
sed 's/^/| /' conftest.$ac_ext >&5
 
26951
 
 
26952
ac_header_compiler=no
 
26953
fi
 
26954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26956
echo "${ECHO_T}$ac_header_compiler" >&6
 
26957
 
 
26958
# Is the header present?
 
26959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26961
cat >conftest.$ac_ext <<_ACEOF
 
26962
/* confdefs.h.  */
 
26963
_ACEOF
 
26964
cat confdefs.h >>conftest.$ac_ext
 
26965
cat >>conftest.$ac_ext <<_ACEOF
 
26966
/* end confdefs.h.  */
 
26967
#include <$ac_header>
 
26968
_ACEOF
 
26969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26970
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26971
  ac_status=$?
 
26972
  grep -v '^ *+' conftest.er1 >conftest.err
 
26973
  rm -f conftest.er1
 
26974
  cat conftest.err >&5
 
26975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26976
  (exit $ac_status); } >/dev/null; then
 
26977
  if test -s conftest.err; then
 
26978
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26979
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26980
  else
 
26981
    ac_cpp_err=
 
26982
  fi
 
26983
else
 
26984
  ac_cpp_err=yes
 
26985
fi
 
26986
if test -z "$ac_cpp_err"; then
 
26987
  ac_header_preproc=yes
 
26988
else
 
26989
  echo "$as_me: failed program was:" >&5
 
26990
sed 's/^/| /' conftest.$ac_ext >&5
 
26991
 
 
26992
  ac_header_preproc=no
 
26993
fi
 
26994
rm -f conftest.err conftest.$ac_ext
 
26995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26996
echo "${ECHO_T}$ac_header_preproc" >&6
 
26997
 
 
26998
# So?  What about this header?
 
26999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27000
  yes:no: )
 
27001
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27003
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27005
    ac_header_preproc=yes
 
27006
    ;;
 
27007
  no:yes:* )
 
27008
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27010
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27011
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27012
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27014
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27015
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27016
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27018
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27020
    (
 
27021
      cat <<\_ASBOX
 
27022
## ------------------------------------------ ##
 
27023
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27024
## ------------------------------------------ ##
 
27025
_ASBOX
 
27026
    ) |
 
27027
      sed "s/^/$as_me: WARNING:     /" >&2
 
27028
    ;;
 
27029
esac
 
27030
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27034
else
 
27035
  eval "$as_ac_Header=\$ac_header_preproc"
 
27036
fi
 
27037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27039
 
 
27040
fi
 
27041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27042
  cat >>confdefs.h <<_ACEOF
 
27043
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27044
_ACEOF
 
27045
 
 
27046
fi
 
27047
 
 
27048
done
 
27049
 
 
27050
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
27051
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
 
27052
  result=
 
27053
  cat >conftest.$ac_ext <<_ACEOF
 
27054
/* confdefs.h.  */
 
27055
_ACEOF
 
27056
cat confdefs.h >>conftest.$ac_ext
 
27057
cat >>conftest.$ac_ext <<_ACEOF
 
27058
/* end confdefs.h.  */
 
27059
 
 
27060
#include <limits.h>
 
27061
#if HAVE_STDINT_H
 
27062
#include <stdint.h>
 
27063
#endif
 
27064
#ifdef SIZE_MAX
 
27065
Found it
 
27066
#endif
 
27067
 
 
27068
_ACEOF
 
27069
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
27070
  $EGREP "Found it" >/dev/null 2>&1; then
 
27071
  result=yes
 
27072
fi
 
27073
rm -f conftest*
 
27074
 
 
27075
  if test -z "$result"; then
 
27076
                    if test "$cross_compiling" = yes; then
 
27077
  # Depending upon the size, compute the lo and hi bounds.
 
27078
cat >conftest.$ac_ext <<_ACEOF
 
27079
/* confdefs.h.  */
 
27080
_ACEOF
 
27081
cat confdefs.h >>conftest.$ac_ext
 
27082
cat >>conftest.$ac_ext <<_ACEOF
 
27083
/* end confdefs.h.  */
 
27084
#include <stddef.h>
 
27085
int
 
27086
main ()
 
27087
{
 
27088
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
27089
test_array [0] = 0
 
27090
 
 
27091
  ;
 
27092
  return 0;
 
27093
}
 
27094
_ACEOF
 
27095
rm -f conftest.$ac_objext
 
27096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27097
  (eval $ac_compile) 2>conftest.er1
 
27098
  ac_status=$?
 
27099
  grep -v '^ *+' conftest.er1 >conftest.err
 
27100
  rm -f conftest.er1
 
27101
  cat conftest.err >&5
 
27102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27103
  (exit $ac_status); } &&
 
27104
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27106
  (eval $ac_try) 2>&5
 
27107
  ac_status=$?
 
27108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27109
  (exit $ac_status); }; } &&
 
27110
         { ac_try='test -s conftest.$ac_objext'
 
27111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27112
  (eval $ac_try) 2>&5
 
27113
  ac_status=$?
 
27114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27115
  (exit $ac_status); }; }; then
 
27116
  ac_lo=0 ac_mid=0
 
27117
  while :; do
 
27118
    cat >conftest.$ac_ext <<_ACEOF
 
27119
/* confdefs.h.  */
 
27120
_ACEOF
 
27121
cat confdefs.h >>conftest.$ac_ext
 
27122
cat >>conftest.$ac_ext <<_ACEOF
 
27123
/* end confdefs.h.  */
 
27124
#include <stddef.h>
 
27125
int
 
27126
main ()
 
27127
{
 
27128
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
27129
test_array [0] = 0
 
27130
 
 
27131
  ;
 
27132
  return 0;
 
27133
}
 
27134
_ACEOF
 
27135
rm -f conftest.$ac_objext
 
27136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27137
  (eval $ac_compile) 2>conftest.er1
 
27138
  ac_status=$?
 
27139
  grep -v '^ *+' conftest.er1 >conftest.err
 
27140
  rm -f conftest.er1
 
27141
  cat conftest.err >&5
 
27142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27143
  (exit $ac_status); } &&
 
27144
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27146
  (eval $ac_try) 2>&5
 
27147
  ac_status=$?
 
27148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27149
  (exit $ac_status); }; } &&
 
27150
         { ac_try='test -s conftest.$ac_objext'
 
27151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27152
  (eval $ac_try) 2>&5
 
27153
  ac_status=$?
 
27154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27155
  (exit $ac_status); }; }; then
 
27156
  ac_hi=$ac_mid; break
 
27157
else
 
27158
  echo "$as_me: failed program was:" >&5
 
27159
sed 's/^/| /' conftest.$ac_ext >&5
 
27160
 
 
27161
ac_lo=`expr $ac_mid + 1`
 
27162
                    if test $ac_lo -le $ac_mid; then
 
27163
                      ac_lo= ac_hi=
 
27164
                      break
 
27165
                    fi
 
27166
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
27167
fi
 
27168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27169
  done
 
27170
else
 
27171
  echo "$as_me: failed program was:" >&5
 
27172
sed 's/^/| /' conftest.$ac_ext >&5
 
27173
 
 
27174
cat >conftest.$ac_ext <<_ACEOF
 
27175
/* confdefs.h.  */
 
27176
_ACEOF
 
27177
cat confdefs.h >>conftest.$ac_ext
 
27178
cat >>conftest.$ac_ext <<_ACEOF
 
27179
/* end confdefs.h.  */
 
27180
#include <stddef.h>
 
27181
int
 
27182
main ()
 
27183
{
 
27184
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
27185
test_array [0] = 0
 
27186
 
 
27187
  ;
 
27188
  return 0;
 
27189
}
 
27190
_ACEOF
 
27191
rm -f conftest.$ac_objext
 
27192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27193
  (eval $ac_compile) 2>conftest.er1
 
27194
  ac_status=$?
 
27195
  grep -v '^ *+' conftest.er1 >conftest.err
 
27196
  rm -f conftest.er1
 
27197
  cat conftest.err >&5
 
27198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27199
  (exit $ac_status); } &&
 
27200
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27202
  (eval $ac_try) 2>&5
 
27203
  ac_status=$?
 
27204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27205
  (exit $ac_status); }; } &&
 
27206
         { ac_try='test -s conftest.$ac_objext'
 
27207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27208
  (eval $ac_try) 2>&5
 
27209
  ac_status=$?
 
27210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27211
  (exit $ac_status); }; }; then
 
27212
  ac_hi=-1 ac_mid=-1
 
27213
  while :; do
 
27214
    cat >conftest.$ac_ext <<_ACEOF
 
27215
/* confdefs.h.  */
 
27216
_ACEOF
 
27217
cat confdefs.h >>conftest.$ac_ext
 
27218
cat >>conftest.$ac_ext <<_ACEOF
 
27219
/* end confdefs.h.  */
 
27220
#include <stddef.h>
 
27221
int
 
27222
main ()
 
27223
{
 
27224
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
27225
test_array [0] = 0
 
27226
 
 
27227
  ;
 
27228
  return 0;
 
27229
}
 
27230
_ACEOF
 
27231
rm -f conftest.$ac_objext
 
27232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27233
  (eval $ac_compile) 2>conftest.er1
 
27234
  ac_status=$?
 
27235
  grep -v '^ *+' conftest.er1 >conftest.err
 
27236
  rm -f conftest.er1
 
27237
  cat conftest.err >&5
 
27238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27239
  (exit $ac_status); } &&
 
27240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27242
  (eval $ac_try) 2>&5
 
27243
  ac_status=$?
 
27244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27245
  (exit $ac_status); }; } &&
 
27246
         { ac_try='test -s conftest.$ac_objext'
 
27247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27248
  (eval $ac_try) 2>&5
 
27249
  ac_status=$?
 
27250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27251
  (exit $ac_status); }; }; then
 
27252
  ac_lo=$ac_mid; break
 
27253
else
 
27254
  echo "$as_me: failed program was:" >&5
 
27255
sed 's/^/| /' conftest.$ac_ext >&5
 
27256
 
 
27257
ac_hi=`expr '(' $ac_mid ')' - 1`
 
27258
                       if test $ac_mid -le $ac_hi; then
 
27259
                         ac_lo= ac_hi=
 
27260
                         break
 
27261
                       fi
 
27262
                       ac_mid=`expr 2 '*' $ac_mid`
 
27263
fi
 
27264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27265
  done
 
27266
else
 
27267
  echo "$as_me: failed program was:" >&5
 
27268
sed 's/^/| /' conftest.$ac_ext >&5
 
27269
 
 
27270
ac_lo= ac_hi=
 
27271
fi
 
27272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27273
fi
 
27274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27275
# Binary search between lo and hi bounds.
 
27276
while test "x$ac_lo" != "x$ac_hi"; do
 
27277
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27278
  cat >conftest.$ac_ext <<_ACEOF
 
27279
/* confdefs.h.  */
 
27280
_ACEOF
 
27281
cat confdefs.h >>conftest.$ac_ext
 
27282
cat >>conftest.$ac_ext <<_ACEOF
 
27283
/* end confdefs.h.  */
 
27284
#include <stddef.h>
 
27285
int
 
27286
main ()
 
27287
{
 
27288
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
27289
test_array [0] = 0
 
27290
 
 
27291
  ;
 
27292
  return 0;
 
27293
}
 
27294
_ACEOF
 
27295
rm -f conftest.$ac_objext
 
27296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27297
  (eval $ac_compile) 2>conftest.er1
 
27298
  ac_status=$?
 
27299
  grep -v '^ *+' conftest.er1 >conftest.err
 
27300
  rm -f conftest.er1
 
27301
  cat conftest.err >&5
 
27302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27303
  (exit $ac_status); } &&
 
27304
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27306
  (eval $ac_try) 2>&5
 
27307
  ac_status=$?
 
27308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27309
  (exit $ac_status); }; } &&
 
27310
         { ac_try='test -s conftest.$ac_objext'
 
27311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27312
  (eval $ac_try) 2>&5
 
27313
  ac_status=$?
 
27314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27315
  (exit $ac_status); }; }; then
 
27316
  ac_hi=$ac_mid
 
27317
else
 
27318
  echo "$as_me: failed program was:" >&5
 
27319
sed 's/^/| /' conftest.$ac_ext >&5
 
27320
 
 
27321
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27322
fi
 
27323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27324
done
 
27325
case $ac_lo in
 
27326
?*) res_hi=$ac_lo;;
 
27327
'') result=? ;;
 
27328
esac
 
27329
else
 
27330
  if test "$cross_compiling" = yes; then
 
27331
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
27332
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
27333
   { (exit 1); exit 1; }; }
 
27334
else
 
27335
  cat >conftest.$ac_ext <<_ACEOF
 
27336
/* confdefs.h.  */
 
27337
_ACEOF
 
27338
cat confdefs.h >>conftest.$ac_ext
 
27339
cat >>conftest.$ac_ext <<_ACEOF
 
27340
/* end confdefs.h.  */
 
27341
#include <stddef.h>
 
27342
long longval () { return ~(size_t)0 / 10; }
 
27343
unsigned long ulongval () { return ~(size_t)0 / 10; }
 
27344
#include <stdio.h>
 
27345
#include <stdlib.h>
 
27346
int
 
27347
main ()
 
27348
{
 
27349
 
 
27350
  FILE *f = fopen ("conftest.val", "w");
 
27351
  if (! f)
 
27352
    exit (1);
 
27353
  if ((~(size_t)0 / 10) < 0)
 
27354
    {
 
27355
      long i = longval ();
 
27356
      if (i != (~(size_t)0 / 10))
 
27357
        exit (1);
 
27358
      fprintf (f, "%ld\n", i);
 
27359
    }
 
27360
  else
 
27361
    {
 
27362
      unsigned long i = ulongval ();
 
27363
      if (i != (~(size_t)0 / 10))
 
27364
        exit (1);
 
27365
      fprintf (f, "%lu\n", i);
 
27366
    }
 
27367
  exit (ferror (f) || fclose (f) != 0);
 
27368
 
 
27369
  ;
 
27370
  return 0;
 
27371
}
 
27372
_ACEOF
 
27373
rm -f conftest$ac_exeext
 
27374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27375
  (eval $ac_link) 2>&5
 
27376
  ac_status=$?
 
27377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27378
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27380
  (eval $ac_try) 2>&5
 
27381
  ac_status=$?
 
27382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27383
  (exit $ac_status); }; }; then
 
27384
  res_hi=`cat conftest.val`
 
27385
else
 
27386
  echo "$as_me: program exited with status $ac_status" >&5
 
27387
echo "$as_me: failed program was:" >&5
 
27388
sed 's/^/| /' conftest.$ac_ext >&5
 
27389
 
 
27390
( exit $ac_status )
 
27391
result=?
 
27392
fi
 
27393
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27394
fi
 
27395
fi
 
27396
rm -f conftest.val
 
27397
    if test "$cross_compiling" = yes; then
 
27398
  # Depending upon the size, compute the lo and hi bounds.
 
27399
cat >conftest.$ac_ext <<_ACEOF
 
27400
/* confdefs.h.  */
 
27401
_ACEOF
 
27402
cat confdefs.h >>conftest.$ac_ext
 
27403
cat >>conftest.$ac_ext <<_ACEOF
 
27404
/* end confdefs.h.  */
 
27405
#include <stddef.h>
 
27406
int
 
27407
main ()
 
27408
{
 
27409
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
27410
test_array [0] = 0
 
27411
 
 
27412
  ;
 
27413
  return 0;
 
27414
}
 
27415
_ACEOF
 
27416
rm -f conftest.$ac_objext
 
27417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27418
  (eval $ac_compile) 2>conftest.er1
 
27419
  ac_status=$?
 
27420
  grep -v '^ *+' conftest.er1 >conftest.err
 
27421
  rm -f conftest.er1
 
27422
  cat conftest.err >&5
 
27423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27424
  (exit $ac_status); } &&
 
27425
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27427
  (eval $ac_try) 2>&5
 
27428
  ac_status=$?
 
27429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27430
  (exit $ac_status); }; } &&
 
27431
         { ac_try='test -s conftest.$ac_objext'
 
27432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27433
  (eval $ac_try) 2>&5
 
27434
  ac_status=$?
 
27435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27436
  (exit $ac_status); }; }; then
 
27437
  ac_lo=0 ac_mid=0
 
27438
  while :; do
 
27439
    cat >conftest.$ac_ext <<_ACEOF
 
27440
/* confdefs.h.  */
 
27441
_ACEOF
 
27442
cat confdefs.h >>conftest.$ac_ext
 
27443
cat >>conftest.$ac_ext <<_ACEOF
 
27444
/* end confdefs.h.  */
 
27445
#include <stddef.h>
 
27446
int
 
27447
main ()
 
27448
{
 
27449
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
27450
test_array [0] = 0
 
27451
 
 
27452
  ;
 
27453
  return 0;
 
27454
}
 
27455
_ACEOF
 
27456
rm -f conftest.$ac_objext
 
27457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27458
  (eval $ac_compile) 2>conftest.er1
 
27459
  ac_status=$?
 
27460
  grep -v '^ *+' conftest.er1 >conftest.err
 
27461
  rm -f conftest.er1
 
27462
  cat conftest.err >&5
 
27463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27464
  (exit $ac_status); } &&
 
27465
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27467
  (eval $ac_try) 2>&5
 
27468
  ac_status=$?
 
27469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27470
  (exit $ac_status); }; } &&
 
27471
         { ac_try='test -s conftest.$ac_objext'
 
27472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27473
  (eval $ac_try) 2>&5
 
27474
  ac_status=$?
 
27475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27476
  (exit $ac_status); }; }; then
 
27477
  ac_hi=$ac_mid; break
 
27478
else
 
27479
  echo "$as_me: failed program was:" >&5
 
27480
sed 's/^/| /' conftest.$ac_ext >&5
 
27481
 
 
27482
ac_lo=`expr $ac_mid + 1`
 
27483
                    if test $ac_lo -le $ac_mid; then
 
27484
                      ac_lo= ac_hi=
 
27485
                      break
 
27486
                    fi
 
27487
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
27488
fi
 
27489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27490
  done
 
27491
else
 
27492
  echo "$as_me: failed program was:" >&5
 
27493
sed 's/^/| /' conftest.$ac_ext >&5
 
27494
 
 
27495
cat >conftest.$ac_ext <<_ACEOF
 
27496
/* confdefs.h.  */
 
27497
_ACEOF
 
27498
cat confdefs.h >>conftest.$ac_ext
 
27499
cat >>conftest.$ac_ext <<_ACEOF
 
27500
/* end confdefs.h.  */
 
27501
#include <stddef.h>
 
27502
int
 
27503
main ()
 
27504
{
 
27505
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
27506
test_array [0] = 0
 
27507
 
 
27508
  ;
 
27509
  return 0;
 
27510
}
 
27511
_ACEOF
 
27512
rm -f conftest.$ac_objext
 
27513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27514
  (eval $ac_compile) 2>conftest.er1
 
27515
  ac_status=$?
 
27516
  grep -v '^ *+' conftest.er1 >conftest.err
 
27517
  rm -f conftest.er1
 
27518
  cat conftest.err >&5
 
27519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27520
  (exit $ac_status); } &&
 
27521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27523
  (eval $ac_try) 2>&5
 
27524
  ac_status=$?
 
27525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27526
  (exit $ac_status); }; } &&
 
27527
         { ac_try='test -s conftest.$ac_objext'
 
27528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27529
  (eval $ac_try) 2>&5
 
27530
  ac_status=$?
 
27531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27532
  (exit $ac_status); }; }; then
 
27533
  ac_hi=-1 ac_mid=-1
 
27534
  while :; do
 
27535
    cat >conftest.$ac_ext <<_ACEOF
 
27536
/* confdefs.h.  */
 
27537
_ACEOF
 
27538
cat confdefs.h >>conftest.$ac_ext
 
27539
cat >>conftest.$ac_ext <<_ACEOF
 
27540
/* end confdefs.h.  */
 
27541
#include <stddef.h>
 
27542
int
 
27543
main ()
 
27544
{
 
27545
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
27546
test_array [0] = 0
 
27547
 
 
27548
  ;
 
27549
  return 0;
 
27550
}
 
27551
_ACEOF
 
27552
rm -f conftest.$ac_objext
 
27553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27554
  (eval $ac_compile) 2>conftest.er1
 
27555
  ac_status=$?
 
27556
  grep -v '^ *+' conftest.er1 >conftest.err
 
27557
  rm -f conftest.er1
 
27558
  cat conftest.err >&5
 
27559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27560
  (exit $ac_status); } &&
 
27561
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27563
  (eval $ac_try) 2>&5
 
27564
  ac_status=$?
 
27565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27566
  (exit $ac_status); }; } &&
 
27567
         { ac_try='test -s conftest.$ac_objext'
 
27568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27569
  (eval $ac_try) 2>&5
 
27570
  ac_status=$?
 
27571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27572
  (exit $ac_status); }; }; then
 
27573
  ac_lo=$ac_mid; break
 
27574
else
 
27575
  echo "$as_me: failed program was:" >&5
 
27576
sed 's/^/| /' conftest.$ac_ext >&5
 
27577
 
 
27578
ac_hi=`expr '(' $ac_mid ')' - 1`
 
27579
                       if test $ac_mid -le $ac_hi; then
 
27580
                         ac_lo= ac_hi=
 
27581
                         break
 
27582
                       fi
 
27583
                       ac_mid=`expr 2 '*' $ac_mid`
 
27584
fi
 
27585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27586
  done
 
27587
else
 
27588
  echo "$as_me: failed program was:" >&5
 
27589
sed 's/^/| /' conftest.$ac_ext >&5
 
27590
 
 
27591
ac_lo= ac_hi=
 
27592
fi
 
27593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27594
fi
 
27595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27596
# Binary search between lo and hi bounds.
 
27597
while test "x$ac_lo" != "x$ac_hi"; do
 
27598
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27599
  cat >conftest.$ac_ext <<_ACEOF
 
27600
/* confdefs.h.  */
 
27601
_ACEOF
 
27602
cat confdefs.h >>conftest.$ac_ext
 
27603
cat >>conftest.$ac_ext <<_ACEOF
 
27604
/* end confdefs.h.  */
 
27605
#include <stddef.h>
 
27606
int
 
27607
main ()
 
27608
{
 
27609
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
27610
test_array [0] = 0
 
27611
 
 
27612
  ;
 
27613
  return 0;
 
27614
}
 
27615
_ACEOF
 
27616
rm -f conftest.$ac_objext
 
27617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27618
  (eval $ac_compile) 2>conftest.er1
 
27619
  ac_status=$?
 
27620
  grep -v '^ *+' conftest.er1 >conftest.err
 
27621
  rm -f conftest.er1
 
27622
  cat conftest.err >&5
 
27623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27624
  (exit $ac_status); } &&
 
27625
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27627
  (eval $ac_try) 2>&5
 
27628
  ac_status=$?
 
27629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27630
  (exit $ac_status); }; } &&
 
27631
         { ac_try='test -s conftest.$ac_objext'
 
27632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27633
  (eval $ac_try) 2>&5
 
27634
  ac_status=$?
 
27635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27636
  (exit $ac_status); }; }; then
 
27637
  ac_hi=$ac_mid
 
27638
else
 
27639
  echo "$as_me: failed program was:" >&5
 
27640
sed 's/^/| /' conftest.$ac_ext >&5
 
27641
 
 
27642
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27643
fi
 
27644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27645
done
 
27646
case $ac_lo in
 
27647
?*) res_lo=$ac_lo;;
 
27648
'') result=? ;;
 
27649
esac
 
27650
else
 
27651
  if test "$cross_compiling" = yes; then
 
27652
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
27653
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
27654
   { (exit 1); exit 1; }; }
 
27655
else
 
27656
  cat >conftest.$ac_ext <<_ACEOF
 
27657
/* confdefs.h.  */
 
27658
_ACEOF
 
27659
cat confdefs.h >>conftest.$ac_ext
 
27660
cat >>conftest.$ac_ext <<_ACEOF
 
27661
/* end confdefs.h.  */
 
27662
#include <stddef.h>
 
27663
long longval () { return ~(size_t)0 % 10; }
 
27664
unsigned long ulongval () { return ~(size_t)0 % 10; }
 
27665
#include <stdio.h>
 
27666
#include <stdlib.h>
 
27667
int
 
27668
main ()
 
27669
{
 
27670
 
 
27671
  FILE *f = fopen ("conftest.val", "w");
 
27672
  if (! f)
 
27673
    exit (1);
 
27674
  if ((~(size_t)0 % 10) < 0)
 
27675
    {
 
27676
      long i = longval ();
 
27677
      if (i != (~(size_t)0 % 10))
 
27678
        exit (1);
 
27679
      fprintf (f, "%ld\n", i);
 
27680
    }
 
27681
  else
 
27682
    {
 
27683
      unsigned long i = ulongval ();
 
27684
      if (i != (~(size_t)0 % 10))
 
27685
        exit (1);
 
27686
      fprintf (f, "%lu\n", i);
 
27687
    }
 
27688
  exit (ferror (f) || fclose (f) != 0);
 
27689
 
 
27690
  ;
 
27691
  return 0;
 
27692
}
 
27693
_ACEOF
 
27694
rm -f conftest$ac_exeext
 
27695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27696
  (eval $ac_link) 2>&5
 
27697
  ac_status=$?
 
27698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27699
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27701
  (eval $ac_try) 2>&5
 
27702
  ac_status=$?
 
27703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27704
  (exit $ac_status); }; }; then
 
27705
  res_lo=`cat conftest.val`
 
27706
else
 
27707
  echo "$as_me: program exited with status $ac_status" >&5
 
27708
echo "$as_me: failed program was:" >&5
 
27709
sed 's/^/| /' conftest.$ac_ext >&5
 
27710
 
 
27711
( exit $ac_status )
 
27712
result=?
 
27713
fi
 
27714
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27715
fi
 
27716
fi
 
27717
rm -f conftest.val
 
27718
    if test "$cross_compiling" = yes; then
 
27719
  # Depending upon the size, compute the lo and hi bounds.
 
27720
cat >conftest.$ac_ext <<_ACEOF
 
27721
/* confdefs.h.  */
 
27722
_ACEOF
 
27723
cat confdefs.h >>conftest.$ac_ext
 
27724
cat >>conftest.$ac_ext <<_ACEOF
 
27725
/* end confdefs.h.  */
 
27726
#include <stddef.h>
 
27727
int
 
27728
main ()
 
27729
{
 
27730
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
27731
test_array [0] = 0
 
27732
 
 
27733
  ;
 
27734
  return 0;
 
27735
}
 
27736
_ACEOF
 
27737
rm -f conftest.$ac_objext
 
27738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27739
  (eval $ac_compile) 2>conftest.er1
 
27740
  ac_status=$?
 
27741
  grep -v '^ *+' conftest.er1 >conftest.err
 
27742
  rm -f conftest.er1
 
27743
  cat conftest.err >&5
 
27744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27745
  (exit $ac_status); } &&
 
27746
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27748
  (eval $ac_try) 2>&5
 
27749
  ac_status=$?
 
27750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27751
  (exit $ac_status); }; } &&
 
27752
         { ac_try='test -s conftest.$ac_objext'
 
27753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27754
  (eval $ac_try) 2>&5
 
27755
  ac_status=$?
 
27756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27757
  (exit $ac_status); }; }; then
 
27758
  ac_lo=0 ac_mid=0
 
27759
  while :; do
 
27760
    cat >conftest.$ac_ext <<_ACEOF
 
27761
/* confdefs.h.  */
 
27762
_ACEOF
 
27763
cat confdefs.h >>conftest.$ac_ext
 
27764
cat >>conftest.$ac_ext <<_ACEOF
 
27765
/* end confdefs.h.  */
 
27766
#include <stddef.h>
 
27767
int
 
27768
main ()
 
27769
{
 
27770
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
27771
test_array [0] = 0
 
27772
 
 
27773
  ;
 
27774
  return 0;
 
27775
}
 
27776
_ACEOF
 
27777
rm -f conftest.$ac_objext
 
27778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27779
  (eval $ac_compile) 2>conftest.er1
 
27780
  ac_status=$?
 
27781
  grep -v '^ *+' conftest.er1 >conftest.err
 
27782
  rm -f conftest.er1
 
27783
  cat conftest.err >&5
 
27784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27785
  (exit $ac_status); } &&
 
27786
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27788
  (eval $ac_try) 2>&5
 
27789
  ac_status=$?
 
27790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27791
  (exit $ac_status); }; } &&
 
27792
         { ac_try='test -s conftest.$ac_objext'
 
27793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27794
  (eval $ac_try) 2>&5
 
27795
  ac_status=$?
 
27796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27797
  (exit $ac_status); }; }; then
 
27798
  ac_hi=$ac_mid; break
 
27799
else
 
27800
  echo "$as_me: failed program was:" >&5
 
27801
sed 's/^/| /' conftest.$ac_ext >&5
 
27802
 
 
27803
ac_lo=`expr $ac_mid + 1`
 
27804
                    if test $ac_lo -le $ac_mid; then
 
27805
                      ac_lo= ac_hi=
 
27806
                      break
 
27807
                    fi
 
27808
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
27809
fi
 
27810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27811
  done
 
27812
else
 
27813
  echo "$as_me: failed program was:" >&5
 
27814
sed 's/^/| /' conftest.$ac_ext >&5
 
27815
 
 
27816
cat >conftest.$ac_ext <<_ACEOF
 
27817
/* confdefs.h.  */
 
27818
_ACEOF
 
27819
cat confdefs.h >>conftest.$ac_ext
 
27820
cat >>conftest.$ac_ext <<_ACEOF
 
27821
/* end confdefs.h.  */
 
27822
#include <stddef.h>
 
27823
int
 
27824
main ()
 
27825
{
 
27826
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
27827
test_array [0] = 0
 
27828
 
 
27829
  ;
 
27830
  return 0;
 
27831
}
 
27832
_ACEOF
 
27833
rm -f conftest.$ac_objext
 
27834
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27835
  (eval $ac_compile) 2>conftest.er1
 
27836
  ac_status=$?
 
27837
  grep -v '^ *+' conftest.er1 >conftest.err
 
27838
  rm -f conftest.er1
 
27839
  cat conftest.err >&5
 
27840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27841
  (exit $ac_status); } &&
 
27842
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27844
  (eval $ac_try) 2>&5
 
27845
  ac_status=$?
 
27846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27847
  (exit $ac_status); }; } &&
 
27848
         { ac_try='test -s conftest.$ac_objext'
 
27849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27850
  (eval $ac_try) 2>&5
 
27851
  ac_status=$?
 
27852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27853
  (exit $ac_status); }; }; then
 
27854
  ac_hi=-1 ac_mid=-1
 
27855
  while :; do
 
27856
    cat >conftest.$ac_ext <<_ACEOF
 
27857
/* confdefs.h.  */
 
27858
_ACEOF
 
27859
cat confdefs.h >>conftest.$ac_ext
 
27860
cat >>conftest.$ac_ext <<_ACEOF
 
27861
/* end confdefs.h.  */
 
27862
#include <stddef.h>
 
27863
int
 
27864
main ()
 
27865
{
 
27866
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
27867
test_array [0] = 0
 
27868
 
 
27869
  ;
 
27870
  return 0;
 
27871
}
 
27872
_ACEOF
 
27873
rm -f conftest.$ac_objext
 
27874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27875
  (eval $ac_compile) 2>conftest.er1
 
27876
  ac_status=$?
 
27877
  grep -v '^ *+' conftest.er1 >conftest.err
 
27878
  rm -f conftest.er1
 
27879
  cat conftest.err >&5
 
27880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27881
  (exit $ac_status); } &&
 
27882
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27884
  (eval $ac_try) 2>&5
 
27885
  ac_status=$?
 
27886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27887
  (exit $ac_status); }; } &&
 
27888
         { ac_try='test -s conftest.$ac_objext'
 
27889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27890
  (eval $ac_try) 2>&5
 
27891
  ac_status=$?
 
27892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27893
  (exit $ac_status); }; }; then
 
27894
  ac_lo=$ac_mid; break
 
27895
else
 
27896
  echo "$as_me: failed program was:" >&5
 
27897
sed 's/^/| /' conftest.$ac_ext >&5
 
27898
 
 
27899
ac_hi=`expr '(' $ac_mid ')' - 1`
 
27900
                       if test $ac_mid -le $ac_hi; then
 
27901
                         ac_lo= ac_hi=
 
27902
                         break
 
27903
                       fi
 
27904
                       ac_mid=`expr 2 '*' $ac_mid`
 
27905
fi
 
27906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27907
  done
 
27908
else
 
27909
  echo "$as_me: failed program was:" >&5
 
27910
sed 's/^/| /' conftest.$ac_ext >&5
 
27911
 
 
27912
ac_lo= ac_hi=
 
27913
fi
 
27914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27915
fi
 
27916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27917
# Binary search between lo and hi bounds.
 
27918
while test "x$ac_lo" != "x$ac_hi"; do
 
27919
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27920
  cat >conftest.$ac_ext <<_ACEOF
 
27921
/* confdefs.h.  */
 
27922
_ACEOF
 
27923
cat confdefs.h >>conftest.$ac_ext
 
27924
cat >>conftest.$ac_ext <<_ACEOF
 
27925
/* end confdefs.h.  */
 
27926
#include <stddef.h>
 
27927
int
 
27928
main ()
 
27929
{
 
27930
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
27931
test_array [0] = 0
 
27932
 
 
27933
  ;
 
27934
  return 0;
 
27935
}
 
27936
_ACEOF
 
27937
rm -f conftest.$ac_objext
 
27938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27939
  (eval $ac_compile) 2>conftest.er1
 
27940
  ac_status=$?
 
27941
  grep -v '^ *+' conftest.er1 >conftest.err
 
27942
  rm -f conftest.er1
 
27943
  cat conftest.err >&5
 
27944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27945
  (exit $ac_status); } &&
 
27946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27948
  (eval $ac_try) 2>&5
 
27949
  ac_status=$?
 
27950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27951
  (exit $ac_status); }; } &&
 
27952
         { ac_try='test -s conftest.$ac_objext'
 
27953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27954
  (eval $ac_try) 2>&5
 
27955
  ac_status=$?
 
27956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27957
  (exit $ac_status); }; }; then
 
27958
  ac_hi=$ac_mid
 
27959
else
 
27960
  echo "$as_me: failed program was:" >&5
 
27961
sed 's/^/| /' conftest.$ac_ext >&5
 
27962
 
 
27963
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27964
fi
 
27965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27966
done
 
27967
case $ac_lo in
 
27968
?*) fits_in_uint=$ac_lo;;
 
27969
'') result=? ;;
 
27970
esac
 
27971
else
 
27972
  if test "$cross_compiling" = yes; then
 
27973
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
27974
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
27975
   { (exit 1); exit 1; }; }
 
27976
else
 
27977
  cat >conftest.$ac_ext <<_ACEOF
 
27978
/* confdefs.h.  */
 
27979
_ACEOF
 
27980
cat confdefs.h >>conftest.$ac_ext
 
27981
cat >>conftest.$ac_ext <<_ACEOF
 
27982
/* end confdefs.h.  */
 
27983
#include <stddef.h>
 
27984
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
27985
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
27986
#include <stdio.h>
 
27987
#include <stdlib.h>
 
27988
int
 
27989
main ()
 
27990
{
 
27991
 
 
27992
  FILE *f = fopen ("conftest.val", "w");
 
27993
  if (! f)
 
27994
    exit (1);
 
27995
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
27996
    {
 
27997
      long i = longval ();
 
27998
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
27999
        exit (1);
 
28000
      fprintf (f, "%ld\n", i);
 
28001
    }
 
28002
  else
 
28003
    {
 
28004
      unsigned long i = ulongval ();
 
28005
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
28006
        exit (1);
 
28007
      fprintf (f, "%lu\n", i);
 
28008
    }
 
28009
  exit (ferror (f) || fclose (f) != 0);
 
28010
 
 
28011
  ;
 
28012
  return 0;
 
28013
}
 
28014
_ACEOF
 
28015
rm -f conftest$ac_exeext
 
28016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28017
  (eval $ac_link) 2>&5
 
28018
  ac_status=$?
 
28019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28020
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28022
  (eval $ac_try) 2>&5
 
28023
  ac_status=$?
 
28024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28025
  (exit $ac_status); }; }; then
 
28026
  fits_in_uint=`cat conftest.val`
 
28027
else
 
28028
  echo "$as_me: program exited with status $ac_status" >&5
 
28029
echo "$as_me: failed program was:" >&5
 
28030
sed 's/^/| /' conftest.$ac_ext >&5
 
28031
 
 
28032
( exit $ac_status )
 
28033
result=?
 
28034
fi
 
28035
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28036
fi
 
28037
fi
 
28038
rm -f conftest.val
 
28039
    if test "$fits_in_uint" = 1; then
 
28040
                  cat >conftest.$ac_ext <<_ACEOF
 
28041
/* confdefs.h.  */
 
28042
_ACEOF
 
28043
cat confdefs.h >>conftest.$ac_ext
 
28044
cat >>conftest.$ac_ext <<_ACEOF
 
28045
/* end confdefs.h.  */
 
28046
#include <stddef.h>
 
28047
        extern size_t foo;
 
28048
        extern unsigned long foo;
 
28049
 
 
28050
int
 
28051
main ()
 
28052
{
 
28053
 
 
28054
  ;
 
28055
  return 0;
 
28056
}
 
28057
_ACEOF
 
28058
rm -f conftest.$ac_objext
 
28059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28060
  (eval $ac_compile) 2>conftest.er1
 
28061
  ac_status=$?
 
28062
  grep -v '^ *+' conftest.er1 >conftest.err
 
28063
  rm -f conftest.er1
 
28064
  cat conftest.err >&5
 
28065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28066
  (exit $ac_status); } &&
 
28067
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28069
  (eval $ac_try) 2>&5
 
28070
  ac_status=$?
 
28071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28072
  (exit $ac_status); }; } &&
 
28073
         { ac_try='test -s conftest.$ac_objext'
 
28074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28075
  (eval $ac_try) 2>&5
 
28076
  ac_status=$?
 
28077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28078
  (exit $ac_status); }; }; then
 
28079
  fits_in_uint=0
 
28080
else
 
28081
  echo "$as_me: failed program was:" >&5
 
28082
sed 's/^/| /' conftest.$ac_ext >&5
 
28083
 
 
28084
fi
 
28085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28086
    fi
 
28087
    if test -z "$result"; then
 
28088
      if test "$fits_in_uint" = 1; then
 
28089
        result="$res_hi$res_lo"U
 
28090
      else
 
28091
        result="$res_hi$res_lo"UL
 
28092
      fi
 
28093
    else
 
28094
            result='~(size_t)0'
 
28095
    fi
 
28096
  fi
 
28097
  echo "$as_me:$LINENO: result: $result" >&5
 
28098
echo "${ECHO_T}$result" >&6
 
28099
  if test "$result" != yes; then
 
28100
 
 
28101
cat >>confdefs.h <<_ACEOF
 
28102
#define SIZE_MAX $result
 
28103
_ACEOF
 
28104
 
 
28105
  fi
 
28106
 
 
28107
 
 
28108
 
 
28109
 
 
28110
for ac_header in stdint.h
 
28111
do
 
28112
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28113
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28114
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28115
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28116
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28118
fi
 
28119
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28120
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28121
else
 
28122
  # Is the header compilable?
 
28123
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28124
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
28125
cat >conftest.$ac_ext <<_ACEOF
 
28126
/* confdefs.h.  */
 
28127
_ACEOF
 
28128
cat confdefs.h >>conftest.$ac_ext
 
28129
cat >>conftest.$ac_ext <<_ACEOF
 
28130
/* end confdefs.h.  */
 
28131
$ac_includes_default
 
28132
#include <$ac_header>
 
28133
_ACEOF
 
28134
rm -f conftest.$ac_objext
 
28135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28136
  (eval $ac_compile) 2>conftest.er1
 
28137
  ac_status=$?
 
28138
  grep -v '^ *+' conftest.er1 >conftest.err
 
28139
  rm -f conftest.er1
 
28140
  cat conftest.err >&5
 
28141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28142
  (exit $ac_status); } &&
 
28143
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28145
  (eval $ac_try) 2>&5
 
28146
  ac_status=$?
 
28147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28148
  (exit $ac_status); }; } &&
 
28149
         { ac_try='test -s conftest.$ac_objext'
 
28150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28151
  (eval $ac_try) 2>&5
 
28152
  ac_status=$?
 
28153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28154
  (exit $ac_status); }; }; then
 
28155
  ac_header_compiler=yes
 
28156
else
 
28157
  echo "$as_me: failed program was:" >&5
 
28158
sed 's/^/| /' conftest.$ac_ext >&5
 
28159
 
 
28160
ac_header_compiler=no
 
28161
fi
 
28162
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28163
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28164
echo "${ECHO_T}$ac_header_compiler" >&6
 
28165
 
 
28166
# Is the header present?
 
28167
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28168
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
28169
cat >conftest.$ac_ext <<_ACEOF
 
28170
/* confdefs.h.  */
 
28171
_ACEOF
 
28172
cat confdefs.h >>conftest.$ac_ext
 
28173
cat >>conftest.$ac_ext <<_ACEOF
 
28174
/* end confdefs.h.  */
 
28175
#include <$ac_header>
 
28176
_ACEOF
 
28177
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
28178
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
28179
  ac_status=$?
 
28180
  grep -v '^ *+' conftest.er1 >conftest.err
 
28181
  rm -f conftest.er1
 
28182
  cat conftest.err >&5
 
28183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28184
  (exit $ac_status); } >/dev/null; then
 
28185
  if test -s conftest.err; then
 
28186
    ac_cpp_err=$ac_c_preproc_warn_flag
 
28187
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
28188
  else
 
28189
    ac_cpp_err=
 
28190
  fi
 
28191
else
 
28192
  ac_cpp_err=yes
 
28193
fi
 
28194
if test -z "$ac_cpp_err"; then
 
28195
  ac_header_preproc=yes
 
28196
else
 
28197
  echo "$as_me: failed program was:" >&5
 
28198
sed 's/^/| /' conftest.$ac_ext >&5
 
28199
 
 
28200
  ac_header_preproc=no
 
28201
fi
 
28202
rm -f conftest.err conftest.$ac_ext
 
28203
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28204
echo "${ECHO_T}$ac_header_preproc" >&6
 
28205
 
 
28206
# So?  What about this header?
 
28207
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28208
  yes:no: )
 
28209
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28210
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28211
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28212
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28213
    ac_header_preproc=yes
 
28214
    ;;
 
28215
  no:yes:* )
 
28216
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28217
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28218
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28219
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28220
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28221
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28222
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28223
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28224
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28225
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28226
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28227
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28228
    (
 
28229
      cat <<\_ASBOX
 
28230
## ------------------------------------------ ##
 
28231
## Report this to the AC_PACKAGE_NAME lists.  ##
 
28232
## ------------------------------------------ ##
 
28233
_ASBOX
 
28234
    ) |
 
28235
      sed "s/^/$as_me: WARNING:     /" >&2
 
28236
    ;;
 
28237
esac
 
28238
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28239
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28242
else
 
28243
  eval "$as_ac_Header=\$ac_header_preproc"
 
28244
fi
 
28245
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28246
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28247
 
 
28248
fi
 
28249
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
28250
  cat >>confdefs.h <<_ACEOF
 
28251
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28252
_ACEOF
 
28253
 
 
28254
fi
 
28255
 
 
28256
done
 
28257
 
 
28258
 
 
28259
 
 
28260
      if test "X$prefix" = "XNONE"; then
 
28261
    acl_final_prefix="$ac_default_prefix"
 
28262
  else
 
28263
    acl_final_prefix="$prefix"
 
28264
  fi
 
28265
  if test "X$exec_prefix" = "XNONE"; then
 
28266
    acl_final_exec_prefix='${prefix}'
 
28267
  else
 
28268
    acl_final_exec_prefix="$exec_prefix"
 
28269
  fi
 
28270
  acl_save_prefix="$prefix"
 
28271
  prefix="$acl_final_prefix"
 
28272
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
28273
  prefix="$acl_save_prefix"
 
28274
 
 
28275
 
 
28276
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
28277
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
28278
if test "${acl_cv_rpath+set}" = set; then
 
28279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28280
else
 
28281
 
 
28282
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
28283
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
28284
    . ./conftest.sh
 
28285
    rm -f ./conftest.sh
 
28286
    acl_cv_rpath=done
 
28287
 
 
28288
fi
 
28289
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
28290
echo "${ECHO_T}$acl_cv_rpath" >&6
 
28291
  wl="$acl_cv_wl"
 
28292
  libext="$acl_cv_libext"
 
28293
  shlibext="$acl_cv_shlibext"
 
28294
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
28295
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
28296
  hardcode_direct="$acl_cv_hardcode_direct"
 
28297
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
28298
    # Check whether --enable-rpath or --disable-rpath was given.
 
28299
if test "${enable_rpath+set}" = set; then
 
28300
  enableval="$enable_rpath"
 
28301
  :
 
28302
else
 
28303
  enable_rpath=yes
 
28304
fi;
 
28305
 
 
28306
 
 
28307
 
 
28308
 
 
28309
 
 
28310
 
 
28311
 
 
28312
    use_additional=yes
 
28313
 
 
28314
  acl_save_prefix="$prefix"
 
28315
  prefix="$acl_final_prefix"
 
28316
  acl_save_exec_prefix="$exec_prefix"
 
28317
  exec_prefix="$acl_final_exec_prefix"
 
28318
 
 
28319
    eval additional_includedir=\"$includedir\"
 
28320
    eval additional_libdir=\"$libdir\"
 
28321
 
 
28322
  exec_prefix="$acl_save_exec_prefix"
 
28323
  prefix="$acl_save_prefix"
 
28324
 
 
28325
 
 
28326
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
28327
if test "${with_libiconv_prefix+set}" = set; then
 
28328
  withval="$with_libiconv_prefix"
 
28329
 
 
28330
    if test "X$withval" = "Xno"; then
 
28331
      use_additional=no
 
28332
    else
 
28333
      if test "X$withval" = "X"; then
 
28334
 
 
28335
  acl_save_prefix="$prefix"
 
28336
  prefix="$acl_final_prefix"
 
28337
  acl_save_exec_prefix="$exec_prefix"
 
28338
  exec_prefix="$acl_final_exec_prefix"
 
28339
 
 
28340
          eval additional_includedir=\"$includedir\"
 
28341
          eval additional_libdir=\"$libdir\"
 
28342
 
 
28343
  exec_prefix="$acl_save_exec_prefix"
 
28344
  prefix="$acl_save_prefix"
 
28345
 
 
28346
      else
 
28347
        additional_includedir="$withval/include"
 
28348
        additional_libdir="$withval/lib"
 
28349
      fi
 
28350
    fi
 
28351
 
 
28352
fi;
 
28353
      LIBICONV=
 
28354
  LTLIBICONV=
 
28355
  INCICONV=
 
28356
  rpathdirs=
 
28357
  ltrpathdirs=
 
28358
  names_already_handled=
 
28359
  names_next_round='iconv '
 
28360
  while test -n "$names_next_round"; do
 
28361
    names_this_round="$names_next_round"
 
28362
    names_next_round=
 
28363
    for name in $names_this_round; do
 
28364
      already_handled=
 
28365
      for n in $names_already_handled; do
 
28366
        if test "$n" = "$name"; then
 
28367
          already_handled=yes
 
28368
          break
 
28369
        fi
 
28370
      done
 
28371
      if test -z "$already_handled"; then
 
28372
        names_already_handled="$names_already_handled $name"
 
28373
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
28374
        eval value=\"\$HAVE_LIB$uppername\"
 
28375
        if test -n "$value"; then
 
28376
          if test "$value" = yes; then
 
28377
            eval value=\"\$LIB$uppername\"
 
28378
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
28379
            eval value=\"\$LTLIB$uppername\"
 
28380
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
28381
          else
 
28382
                                    :
 
28383
          fi
 
28384
        else
 
28385
                              found_dir=
 
28386
          found_la=
 
28387
          found_so=
 
28388
          found_a=
 
28389
          if test $use_additional = yes; then
 
28390
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
28391
              found_dir="$additional_libdir"
 
28392
              found_so="$additional_libdir/lib$name.$shlibext"
 
28393
              if test -f "$additional_libdir/lib$name.la"; then
 
28394
                found_la="$additional_libdir/lib$name.la"
 
28395
              fi
 
28396
            else
 
28397
              if test -f "$additional_libdir/lib$name.$libext"; then
 
28398
                found_dir="$additional_libdir"
 
28399
                found_a="$additional_libdir/lib$name.$libext"
 
28400
                if test -f "$additional_libdir/lib$name.la"; then
 
28401
                  found_la="$additional_libdir/lib$name.la"
 
28402
                fi
 
28403
              fi
 
28404
            fi
 
28405
          fi
 
28406
          if test "X$found_dir" = "X"; then
 
28407
            for x in $LDFLAGS $LTLIBICONV; do
 
28408
 
 
28409
  acl_save_prefix="$prefix"
 
28410
  prefix="$acl_final_prefix"
 
28411
  acl_save_exec_prefix="$exec_prefix"
 
28412
  exec_prefix="$acl_final_exec_prefix"
 
28413
  eval x=\"$x\"
 
28414
  exec_prefix="$acl_save_exec_prefix"
 
28415
  prefix="$acl_save_prefix"
 
28416
 
 
28417
              case "$x" in
 
28418
                -L*)
 
28419
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
28420
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
28421
                    found_dir="$dir"
 
28422
                    found_so="$dir/lib$name.$shlibext"
 
28423
                    if test -f "$dir/lib$name.la"; then
 
28424
                      found_la="$dir/lib$name.la"
 
28425
                    fi
 
28426
                  else
 
28427
                    if test -f "$dir/lib$name.$libext"; then
 
28428
                      found_dir="$dir"
 
28429
                      found_a="$dir/lib$name.$libext"
 
28430
                      if test -f "$dir/lib$name.la"; then
 
28431
                        found_la="$dir/lib$name.la"
 
28432
                      fi
 
28433
                    fi
 
28434
                  fi
 
28435
                  ;;
 
28436
              esac
 
28437
              if test "X$found_dir" != "X"; then
 
28438
                break
 
28439
              fi
 
28440
            done
 
28441
          fi
 
28442
          if test "X$found_dir" != "X"; then
 
28443
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
28444
            if test "X$found_so" != "X"; then
 
28445
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
28446
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
28447
              else
 
28448
                                                                                haveit=
 
28449
                for x in $ltrpathdirs; do
 
28450
                  if test "X$x" = "X$found_dir"; then
 
28451
                    haveit=yes
 
28452
                    break
 
28453
                  fi
 
28454
                done
 
28455
                if test -z "$haveit"; then
 
28456
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
28457
                fi
 
28458
                                if test "$hardcode_direct" = yes; then
 
28459
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
28460
                else
 
28461
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
28462
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
28463
                                                            haveit=
 
28464
                    for x in $rpathdirs; do
 
28465
                      if test "X$x" = "X$found_dir"; then
 
28466
                        haveit=yes
 
28467
                        break
 
28468
                      fi
 
28469
                    done
 
28470
                    if test -z "$haveit"; then
 
28471
                      rpathdirs="$rpathdirs $found_dir"
 
28472
                    fi
 
28473
                  else
 
28474
                                                                                haveit=
 
28475
                    for x in $LDFLAGS $LIBICONV; do
 
28476
 
 
28477
  acl_save_prefix="$prefix"
 
28478
  prefix="$acl_final_prefix"
 
28479
  acl_save_exec_prefix="$exec_prefix"
 
28480
  exec_prefix="$acl_final_exec_prefix"
 
28481
  eval x=\"$x\"
 
28482
  exec_prefix="$acl_save_exec_prefix"
 
28483
  prefix="$acl_save_prefix"
 
28484
 
 
28485
                      if test "X$x" = "X-L$found_dir"; then
 
28486
                        haveit=yes
 
28487
                        break
 
28488
                      fi
 
28489
                    done
 
28490
                    if test -z "$haveit"; then
 
28491
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
28492
                    fi
 
28493
                    if test "$hardcode_minus_L" != no; then
 
28494
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
28495
                    else
 
28496
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
28497
                    fi
 
28498
                  fi
 
28499
                fi
 
28500
              fi
 
28501
            else
 
28502
              if test "X$found_a" != "X"; then
 
28503
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
28504
              else
 
28505
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
28506
              fi
 
28507
            fi
 
28508
                        additional_includedir=
 
28509
            case "$found_dir" in
 
28510
              */lib | */lib/)
 
28511
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
28512
                additional_includedir="$basedir/include"
 
28513
                ;;
 
28514
            esac
 
28515
            if test "X$additional_includedir" != "X"; then
 
28516
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
28517
                haveit=
 
28518
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
28519
                  if test -n "$GCC"; then
 
28520
                    case $host_os in
 
28521
                      linux*) haveit=yes;;
 
28522
                    esac
 
28523
                  fi
 
28524
                fi
 
28525
                if test -z "$haveit"; then
 
28526
                  for x in $CPPFLAGS $INCICONV; do
 
28527
 
 
28528
  acl_save_prefix="$prefix"
 
28529
  prefix="$acl_final_prefix"
 
28530
  acl_save_exec_prefix="$exec_prefix"
 
28531
  exec_prefix="$acl_final_exec_prefix"
 
28532
  eval x=\"$x\"
 
28533
  exec_prefix="$acl_save_exec_prefix"
 
28534
  prefix="$acl_save_prefix"
 
28535
 
 
28536
                    if test "X$x" = "X-I$additional_includedir"; then
 
28537
                      haveit=yes
 
28538
                      break
 
28539
                    fi
 
28540
                  done
 
28541
                  if test -z "$haveit"; then
 
28542
                    if test -d "$additional_includedir"; then
 
28543
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
28544
                    fi
 
28545
                  fi
 
28546
                fi
 
28547
              fi
 
28548
            fi
 
28549
                        if test -n "$found_la"; then
 
28550
                                                        save_libdir="$libdir"
 
28551
              case "$found_la" in
 
28552
                */* | *\\*) . "$found_la" ;;
 
28553
                *) . "./$found_la" ;;
 
28554
              esac
 
28555
              libdir="$save_libdir"
 
28556
                            for dep in $dependency_libs; do
 
28557
                case "$dep" in
 
28558
                  -L*)
 
28559
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
28560
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
28561
                      haveit=
 
28562
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
28563
                        if test -n "$GCC"; then
 
28564
                          case $host_os in
 
28565
                            linux*) haveit=yes;;
 
28566
                          esac
 
28567
                        fi
 
28568
                      fi
 
28569
                      if test -z "$haveit"; then
 
28570
                        haveit=
 
28571
                        for x in $LDFLAGS $LIBICONV; do
 
28572
 
 
28573
  acl_save_prefix="$prefix"
 
28574
  prefix="$acl_final_prefix"
 
28575
  acl_save_exec_prefix="$exec_prefix"
 
28576
  exec_prefix="$acl_final_exec_prefix"
 
28577
  eval x=\"$x\"
 
28578
  exec_prefix="$acl_save_exec_prefix"
 
28579
  prefix="$acl_save_prefix"
 
28580
 
 
28581
                          if test "X$x" = "X-L$additional_libdir"; then
 
28582
                            haveit=yes
 
28583
                            break
 
28584
                          fi
 
28585
                        done
 
28586
                        if test -z "$haveit"; then
 
28587
                          if test -d "$additional_libdir"; then
 
28588
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
28589
                          fi
 
28590
                        fi
 
28591
                        haveit=
 
28592
                        for x in $LDFLAGS $LTLIBICONV; do
 
28593
 
 
28594
  acl_save_prefix="$prefix"
 
28595
  prefix="$acl_final_prefix"
 
28596
  acl_save_exec_prefix="$exec_prefix"
 
28597
  exec_prefix="$acl_final_exec_prefix"
 
28598
  eval x=\"$x\"
 
28599
  exec_prefix="$acl_save_exec_prefix"
 
28600
  prefix="$acl_save_prefix"
 
28601
 
 
28602
                          if test "X$x" = "X-L$additional_libdir"; then
 
28603
                            haveit=yes
 
28604
                            break
 
28605
                          fi
 
28606
                        done
 
28607
                        if test -z "$haveit"; then
 
28608
                          if test -d "$additional_libdir"; then
 
28609
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
28610
                          fi
 
28611
                        fi
 
28612
                      fi
 
28613
                    fi
 
28614
                    ;;
 
28615
                  -R*)
 
28616
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
28617
                    if test "$enable_rpath" != no; then
 
28618
                                                                  haveit=
 
28619
                      for x in $rpathdirs; do
 
28620
                        if test "X$x" = "X$dir"; then
 
28621
                          haveit=yes
 
28622
                          break
 
28623
                        fi
 
28624
                      done
 
28625
                      if test -z "$haveit"; then
 
28626
                        rpathdirs="$rpathdirs $dir"
 
28627
                      fi
 
28628
                                                                  haveit=
 
28629
                      for x in $ltrpathdirs; do
 
28630
                        if test "X$x" = "X$dir"; then
 
28631
                          haveit=yes
 
28632
                          break
 
28633
                        fi
 
28634
                      done
 
28635
                      if test -z "$haveit"; then
 
28636
                        ltrpathdirs="$ltrpathdirs $dir"
 
28637
                      fi
 
28638
                    fi
 
28639
                    ;;
 
28640
                  -l*)
 
28641
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
28642
                    ;;
 
28643
                  *.la)
 
28644
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
28645
                    ;;
 
28646
                  *)
 
28647
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
28648
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
28649
                    ;;
 
28650
                esac
 
28651
              done
 
28652
            fi
 
28653
          else
 
28654
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
28655
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
28656
          fi
 
28657
        fi
 
28658
      fi
 
28659
    done
 
28660
  done
 
28661
  if test "X$rpathdirs" != "X"; then
 
28662
    if test -n "$hardcode_libdir_separator"; then
 
28663
                        alldirs=
 
28664
      for found_dir in $rpathdirs; do
 
28665
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
28666
      done
 
28667
            acl_save_libdir="$libdir"
 
28668
      libdir="$alldirs"
 
28669
      eval flag=\"$hardcode_libdir_flag_spec\"
 
28670
      libdir="$acl_save_libdir"
 
28671
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
28672
    else
 
28673
            for found_dir in $rpathdirs; do
 
28674
        acl_save_libdir="$libdir"
 
28675
        libdir="$found_dir"
 
28676
        eval flag=\"$hardcode_libdir_flag_spec\"
 
28677
        libdir="$acl_save_libdir"
 
28678
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
28679
      done
 
28680
    fi
 
28681
  fi
 
28682
  if test "X$ltrpathdirs" != "X"; then
 
28683
            for found_dir in $ltrpathdirs; do
 
28684
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
28685
    done
 
28686
  fi
 
28687
 
 
28688
 
 
28689
 
 
28690
 
 
28691
 
 
28692
 
 
28693
 
 
28694
 
 
28695
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
28696
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
28697
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
28698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28699
else
 
28700
  cat >conftest.$ac_ext <<_ACEOF
 
28701
/* confdefs.h.  */
 
28702
_ACEOF
 
28703
cat confdefs.h >>conftest.$ac_ext
 
28704
cat >>conftest.$ac_ext <<_ACEOF
 
28705
/* end confdefs.h.  */
 
28706
$ac_includes_default
 
28707
int
 
28708
main ()
 
28709
{
 
28710
if ((ptrdiff_t *) 0)
 
28711
  return 0;
 
28712
if (sizeof (ptrdiff_t))
 
28713
  return 0;
 
28714
  ;
 
28715
  return 0;
 
28716
}
 
28717
_ACEOF
 
28718
rm -f conftest.$ac_objext
 
28719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28720
  (eval $ac_compile) 2>conftest.er1
 
28721
  ac_status=$?
 
28722
  grep -v '^ *+' conftest.er1 >conftest.err
 
28723
  rm -f conftest.er1
 
28724
  cat conftest.err >&5
 
28725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28726
  (exit $ac_status); } &&
 
28727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28729
  (eval $ac_try) 2>&5
 
28730
  ac_status=$?
 
28731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28732
  (exit $ac_status); }; } &&
 
28733
         { ac_try='test -s conftest.$ac_objext'
 
28734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28735
  (eval $ac_try) 2>&5
 
28736
  ac_status=$?
 
28737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28738
  (exit $ac_status); }; }; then
 
28739
  ac_cv_type_ptrdiff_t=yes
 
28740
else
 
28741
  echo "$as_me: failed program was:" >&5
 
28742
sed 's/^/| /' conftest.$ac_ext >&5
 
28743
 
 
28744
ac_cv_type_ptrdiff_t=no
 
28745
fi
 
28746
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28747
fi
 
28748
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
28749
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
28750
if test $ac_cv_type_ptrdiff_t = yes; then
 
28751
  :
 
28752
else
 
28753
 
 
28754
cat >>confdefs.h <<\_ACEOF
 
28755
#define ptrdiff_t long
 
28756
_ACEOF
 
28757
 
 
28758
 
 
28759
fi
 
28760
 
 
28761
 
 
28762
 
 
28763
 
 
28764
 
 
28765
 
 
28766
 
 
28767
 
 
28768
 
 
28769
 
 
28770
 
 
28771
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
28772
stdlib.h string.h unistd.h sys/param.h
 
28773
do
 
28774
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28775
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28776
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28780
fi
 
28781
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28782
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28783
else
 
28784
  # Is the header compilable?
 
28785
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28786
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
28787
cat >conftest.$ac_ext <<_ACEOF
 
28788
/* confdefs.h.  */
 
28789
_ACEOF
 
28790
cat confdefs.h >>conftest.$ac_ext
 
28791
cat >>conftest.$ac_ext <<_ACEOF
 
28792
/* end confdefs.h.  */
 
28793
$ac_includes_default
 
28794
#include <$ac_header>
 
28795
_ACEOF
 
28796
rm -f conftest.$ac_objext
 
28797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28798
  (eval $ac_compile) 2>conftest.er1
 
28799
  ac_status=$?
 
28800
  grep -v '^ *+' conftest.er1 >conftest.err
 
28801
  rm -f conftest.er1
 
28802
  cat conftest.err >&5
 
28803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28804
  (exit $ac_status); } &&
 
28805
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28807
  (eval $ac_try) 2>&5
 
28808
  ac_status=$?
 
28809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28810
  (exit $ac_status); }; } &&
 
28811
         { ac_try='test -s conftest.$ac_objext'
 
28812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28813
  (eval $ac_try) 2>&5
 
28814
  ac_status=$?
 
28815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28816
  (exit $ac_status); }; }; then
 
28817
  ac_header_compiler=yes
 
28818
else
 
28819
  echo "$as_me: failed program was:" >&5
 
28820
sed 's/^/| /' conftest.$ac_ext >&5
 
28821
 
 
28822
ac_header_compiler=no
 
28823
fi
 
28824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28825
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28826
echo "${ECHO_T}$ac_header_compiler" >&6
 
28827
 
 
28828
# Is the header present?
 
28829
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28830
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
28831
cat >conftest.$ac_ext <<_ACEOF
 
28832
/* confdefs.h.  */
 
28833
_ACEOF
 
28834
cat confdefs.h >>conftest.$ac_ext
 
28835
cat >>conftest.$ac_ext <<_ACEOF
 
28836
/* end confdefs.h.  */
 
28837
#include <$ac_header>
 
28838
_ACEOF
 
28839
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
28840
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
28841
  ac_status=$?
 
28842
  grep -v '^ *+' conftest.er1 >conftest.err
 
28843
  rm -f conftest.er1
 
28844
  cat conftest.err >&5
 
28845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28846
  (exit $ac_status); } >/dev/null; then
 
28847
  if test -s conftest.err; then
 
28848
    ac_cpp_err=$ac_c_preproc_warn_flag
 
28849
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
28850
  else
 
28851
    ac_cpp_err=
 
28852
  fi
 
28853
else
 
28854
  ac_cpp_err=yes
 
28855
fi
 
28856
if test -z "$ac_cpp_err"; then
 
28857
  ac_header_preproc=yes
 
28858
else
 
28859
  echo "$as_me: failed program was:" >&5
 
28860
sed 's/^/| /' conftest.$ac_ext >&5
 
28861
 
 
28862
  ac_header_preproc=no
 
28863
fi
 
28864
rm -f conftest.err conftest.$ac_ext
 
28865
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28866
echo "${ECHO_T}$ac_header_preproc" >&6
 
28867
 
 
28868
# So?  What about this header?
 
28869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28870
  yes:no: )
 
28871
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28872
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28873
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28874
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28875
    ac_header_preproc=yes
 
28876
    ;;
 
28877
  no:yes:* )
 
28878
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28879
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28880
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28881
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28882
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28883
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28884
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28885
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28886
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28887
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28888
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28889
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28890
    (
 
28891
      cat <<\_ASBOX
 
28892
## ------------------------------------------ ##
 
28893
## Report this to the AC_PACKAGE_NAME lists.  ##
 
28894
## ------------------------------------------ ##
 
28895
_ASBOX
 
28896
    ) |
 
28897
      sed "s/^/$as_me: WARNING:     /" >&2
 
28898
    ;;
 
28899
esac
 
28900
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28901
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28902
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28904
else
 
28905
  eval "$as_ac_Header=\$ac_header_preproc"
 
28906
fi
 
28907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28908
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28909
 
 
28910
fi
 
28911
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
28912
  cat >>confdefs.h <<_ACEOF
 
28913
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28914
_ACEOF
 
28915
 
 
28916
fi
 
28917
 
 
28918
done
 
28919
 
 
28920
 
 
28921
 
 
28922
 
 
28923
 
 
28924
 
 
28925
 
 
28926
 
 
28927
 
 
28928
 
 
28929
 
 
28930
 
 
28931
 
 
28932
 
 
28933
 
 
28934
 
 
28935
 
 
28936
 
 
28937
 
 
28938
 
 
28939
 
 
28940
 
 
28941
 
 
28942
 
 
28943
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
28944
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
28945
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
 
28946
__fsetlocking
 
28947
do
 
28948
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28949
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28950
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28951
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28953
else
 
28954
  cat >conftest.$ac_ext <<_ACEOF
 
28955
/* confdefs.h.  */
 
28956
_ACEOF
 
28957
cat confdefs.h >>conftest.$ac_ext
 
28958
cat >>conftest.$ac_ext <<_ACEOF
 
28959
/* end confdefs.h.  */
 
28960
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28961
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28962
#define $ac_func innocuous_$ac_func
 
28963
 
 
28964
/* System header to define __stub macros and hopefully few prototypes,
 
28965
    which can conflict with char $ac_func (); below.
 
28966
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28967
    <limits.h> exists even on freestanding compilers.  */
 
28968
 
 
28969
#ifdef __STDC__
 
28970
# include <limits.h>
 
28971
#else
 
28972
# include <assert.h>
 
28973
#endif
 
28974
 
 
28975
#undef $ac_func
 
28976
 
 
28977
/* Override any gcc2 internal prototype to avoid an error.  */
 
28978
#ifdef __cplusplus
 
28979
extern "C"
 
28980
{
 
28981
#endif
 
28982
/* We use char because int might match the return type of a gcc2
 
28983
   builtin and then its argument prototype would still apply.  */
 
28984
char $ac_func ();
 
28985
/* The GNU C library defines this for functions which it implements
 
28986
    to always fail with ENOSYS.  Some functions are actually named
 
28987
    something starting with __ and the normal name is an alias.  */
 
28988
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28989
choke me
 
28990
#else
 
28991
char (*f) () = $ac_func;
 
28992
#endif
 
28993
#ifdef __cplusplus
 
28994
}
 
28995
#endif
 
28996
 
 
28997
int
 
28998
main ()
 
28999
{
 
29000
return f != $ac_func;
 
29001
  ;
 
29002
  return 0;
 
29003
}
 
29004
_ACEOF
 
29005
rm -f conftest.$ac_objext conftest$ac_exeext
 
29006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29007
  (eval $ac_link) 2>conftest.er1
 
29008
  ac_status=$?
 
29009
  grep -v '^ *+' conftest.er1 >conftest.err
 
29010
  rm -f conftest.er1
 
29011
  cat conftest.err >&5
 
29012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29013
  (exit $ac_status); } &&
 
29014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29016
  (eval $ac_try) 2>&5
 
29017
  ac_status=$?
 
29018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29019
  (exit $ac_status); }; } &&
 
29020
         { ac_try='test -s conftest$ac_exeext'
 
29021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29022
  (eval $ac_try) 2>&5
 
29023
  ac_status=$?
 
29024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29025
  (exit $ac_status); }; }; then
 
29026
  eval "$as_ac_var=yes"
 
29027
else
 
29028
  echo "$as_me: failed program was:" >&5
 
29029
sed 's/^/| /' conftest.$ac_ext >&5
 
29030
 
 
29031
eval "$as_ac_var=no"
 
29032
fi
 
29033
rm -f conftest.err conftest.$ac_objext \
 
29034
      conftest$ac_exeext conftest.$ac_ext
 
29035
fi
 
29036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
29037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
29038
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
29039
  cat >>confdefs.h <<_ACEOF
 
29040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
29041
_ACEOF
 
29042
 
 
29043
fi
 
29044
done
 
29045
 
 
29046
 
 
29047
 
 
29048
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
29049
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
 
29050
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
29051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29052
else
 
29053
  cat >conftest.$ac_ext <<_ACEOF
 
29054
/* confdefs.h.  */
 
29055
_ACEOF
 
29056
cat confdefs.h >>conftest.$ac_ext
 
29057
cat >>conftest.$ac_ext <<_ACEOF
 
29058
/* end confdefs.h.  */
 
29059
#include <stdio.h>
 
29060
int
 
29061
main ()
 
29062
{
 
29063
 
 
29064
#ifndef _snprintf
 
29065
  char *p = (char *) _snprintf;
 
29066
#endif
 
29067
 
 
29068
  ;
 
29069
  return 0;
 
29070
}
 
29071
_ACEOF
 
29072
rm -f conftest.$ac_objext
 
29073
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29074
  (eval $ac_compile) 2>conftest.er1
 
29075
  ac_status=$?
 
29076
  grep -v '^ *+' conftest.er1 >conftest.err
 
29077
  rm -f conftest.er1
 
29078
  cat conftest.err >&5
 
29079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29080
  (exit $ac_status); } &&
 
29081
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29083
  (eval $ac_try) 2>&5
 
29084
  ac_status=$?
 
29085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29086
  (exit $ac_status); }; } &&
 
29087
         { ac_try='test -s conftest.$ac_objext'
 
29088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29089
  (eval $ac_try) 2>&5
 
29090
  ac_status=$?
 
29091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29092
  (exit $ac_status); }; }; then
 
29093
  ac_cv_have_decl__snprintf=yes
 
29094
else
 
29095
  echo "$as_me: failed program was:" >&5
 
29096
sed 's/^/| /' conftest.$ac_ext >&5
 
29097
 
 
29098
ac_cv_have_decl__snprintf=no
 
29099
fi
 
29100
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29101
fi
 
29102
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
29103
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
 
29104
  if test $ac_cv_have_decl__snprintf = yes; then
 
29105
    gt_value=1
 
29106
  else
 
29107
    gt_value=0
 
29108
  fi
 
29109
 
 
29110
cat >>confdefs.h <<_ACEOF
 
29111
#define HAVE_DECL__SNPRINTF $gt_value
 
29112
_ACEOF
 
29113
 
 
29114
 
 
29115
 
 
29116
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
29117
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
 
29118
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
29119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29120
else
 
29121
  cat >conftest.$ac_ext <<_ACEOF
 
29122
/* confdefs.h.  */
 
29123
_ACEOF
 
29124
cat confdefs.h >>conftest.$ac_ext
 
29125
cat >>conftest.$ac_ext <<_ACEOF
 
29126
/* end confdefs.h.  */
 
29127
#include <stdio.h>
 
29128
int
 
29129
main ()
 
29130
{
 
29131
 
 
29132
#ifndef _snwprintf
 
29133
  char *p = (char *) _snwprintf;
 
29134
#endif
 
29135
 
 
29136
  ;
 
29137
  return 0;
 
29138
}
 
29139
_ACEOF
 
29140
rm -f conftest.$ac_objext
 
29141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29142
  (eval $ac_compile) 2>conftest.er1
 
29143
  ac_status=$?
 
29144
  grep -v '^ *+' conftest.er1 >conftest.err
 
29145
  rm -f conftest.er1
 
29146
  cat conftest.err >&5
 
29147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29148
  (exit $ac_status); } &&
 
29149
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29151
  (eval $ac_try) 2>&5
 
29152
  ac_status=$?
 
29153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29154
  (exit $ac_status); }; } &&
 
29155
         { ac_try='test -s conftest.$ac_objext'
 
29156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29157
  (eval $ac_try) 2>&5
 
29158
  ac_status=$?
 
29159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29160
  (exit $ac_status); }; }; then
 
29161
  ac_cv_have_decl__snwprintf=yes
 
29162
else
 
29163
  echo "$as_me: failed program was:" >&5
 
29164
sed 's/^/| /' conftest.$ac_ext >&5
 
29165
 
 
29166
ac_cv_have_decl__snwprintf=no
 
29167
fi
 
29168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29169
fi
 
29170
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
29171
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
 
29172
  if test $ac_cv_have_decl__snwprintf = yes; then
 
29173
    gt_value=1
 
29174
  else
 
29175
    gt_value=0
 
29176
  fi
 
29177
 
 
29178
cat >>confdefs.h <<_ACEOF
 
29179
#define HAVE_DECL__SNWPRINTF $gt_value
 
29180
_ACEOF
 
29181
 
 
29182
 
 
29183
 
 
29184
 
 
29185
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
29186
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
29187
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
29188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29189
else
 
29190
  cat >conftest.$ac_ext <<_ACEOF
 
29191
/* confdefs.h.  */
 
29192
_ACEOF
 
29193
cat confdefs.h >>conftest.$ac_ext
 
29194
cat >>conftest.$ac_ext <<_ACEOF
 
29195
/* end confdefs.h.  */
 
29196
#include <stdio.h>
 
29197
int
 
29198
main ()
 
29199
{
 
29200
 
 
29201
#ifndef feof_unlocked
 
29202
  char *p = (char *) feof_unlocked;
 
29203
#endif
 
29204
 
 
29205
  ;
 
29206
  return 0;
 
29207
}
 
29208
_ACEOF
 
29209
rm -f conftest.$ac_objext
 
29210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29211
  (eval $ac_compile) 2>conftest.er1
 
29212
  ac_status=$?
 
29213
  grep -v '^ *+' conftest.er1 >conftest.err
 
29214
  rm -f conftest.er1
 
29215
  cat conftest.err >&5
 
29216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29217
  (exit $ac_status); } &&
 
29218
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29220
  (eval $ac_try) 2>&5
 
29221
  ac_status=$?
 
29222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29223
  (exit $ac_status); }; } &&
 
29224
         { ac_try='test -s conftest.$ac_objext'
 
29225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29226
  (eval $ac_try) 2>&5
 
29227
  ac_status=$?
 
29228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29229
  (exit $ac_status); }; }; then
 
29230
  ac_cv_have_decl_feof_unlocked=yes
 
29231
else
 
29232
  echo "$as_me: failed program was:" >&5
 
29233
sed 's/^/| /' conftest.$ac_ext >&5
 
29234
 
 
29235
ac_cv_have_decl_feof_unlocked=no
 
29236
fi
 
29237
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29238
fi
 
29239
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
29240
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
29241
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
29242
    gt_value=1
 
29243
  else
 
29244
    gt_value=0
 
29245
  fi
 
29246
 
 
29247
cat >>confdefs.h <<_ACEOF
 
29248
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
29249
_ACEOF
 
29250
 
 
29251
 
 
29252
 
 
29253
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
29254
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
29255
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
29256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29257
else
 
29258
  cat >conftest.$ac_ext <<_ACEOF
 
29259
/* confdefs.h.  */
 
29260
_ACEOF
 
29261
cat confdefs.h >>conftest.$ac_ext
 
29262
cat >>conftest.$ac_ext <<_ACEOF
 
29263
/* end confdefs.h.  */
 
29264
#include <stdio.h>
 
29265
int
 
29266
main ()
 
29267
{
 
29268
 
 
29269
#ifndef fgets_unlocked
 
29270
  char *p = (char *) fgets_unlocked;
 
29271
#endif
 
29272
 
 
29273
  ;
 
29274
  return 0;
 
29275
}
 
29276
_ACEOF
 
29277
rm -f conftest.$ac_objext
 
29278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29279
  (eval $ac_compile) 2>conftest.er1
 
29280
  ac_status=$?
 
29281
  grep -v '^ *+' conftest.er1 >conftest.err
 
29282
  rm -f conftest.er1
 
29283
  cat conftest.err >&5
 
29284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29285
  (exit $ac_status); } &&
 
29286
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29288
  (eval $ac_try) 2>&5
 
29289
  ac_status=$?
 
29290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29291
  (exit $ac_status); }; } &&
 
29292
         { ac_try='test -s conftest.$ac_objext'
 
29293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29294
  (eval $ac_try) 2>&5
 
29295
  ac_status=$?
 
29296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29297
  (exit $ac_status); }; }; then
 
29298
  ac_cv_have_decl_fgets_unlocked=yes
 
29299
else
 
29300
  echo "$as_me: failed program was:" >&5
 
29301
sed 's/^/| /' conftest.$ac_ext >&5
 
29302
 
 
29303
ac_cv_have_decl_fgets_unlocked=no
 
29304
fi
 
29305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29306
fi
 
29307
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
29308
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
29309
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
29310
    gt_value=1
 
29311
  else
 
29312
    gt_value=0
 
29313
  fi
 
29314
 
 
29315
cat >>confdefs.h <<_ACEOF
 
29316
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
29317
_ACEOF
 
29318
 
 
29319
 
 
29320
 
 
29321
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
29322
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
 
29323
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
29324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29325
else
 
29326
  cat >conftest.$ac_ext <<_ACEOF
 
29327
/* confdefs.h.  */
 
29328
_ACEOF
 
29329
cat confdefs.h >>conftest.$ac_ext
 
29330
cat >>conftest.$ac_ext <<_ACEOF
 
29331
/* end confdefs.h.  */
 
29332
#include <stdio.h>
 
29333
int
 
29334
main ()
 
29335
{
 
29336
 
 
29337
#ifndef getc_unlocked
 
29338
  char *p = (char *) getc_unlocked;
 
29339
#endif
 
29340
 
 
29341
  ;
 
29342
  return 0;
 
29343
}
 
29344
_ACEOF
 
29345
rm -f conftest.$ac_objext
 
29346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29347
  (eval $ac_compile) 2>conftest.er1
 
29348
  ac_status=$?
 
29349
  grep -v '^ *+' conftest.er1 >conftest.err
 
29350
  rm -f conftest.er1
 
29351
  cat conftest.err >&5
 
29352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29353
  (exit $ac_status); } &&
 
29354
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29356
  (eval $ac_try) 2>&5
 
29357
  ac_status=$?
 
29358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29359
  (exit $ac_status); }; } &&
 
29360
         { ac_try='test -s conftest.$ac_objext'
 
29361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29362
  (eval $ac_try) 2>&5
 
29363
  ac_status=$?
 
29364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29365
  (exit $ac_status); }; }; then
 
29366
  ac_cv_have_decl_getc_unlocked=yes
 
29367
else
 
29368
  echo "$as_me: failed program was:" >&5
 
29369
sed 's/^/| /' conftest.$ac_ext >&5
 
29370
 
 
29371
ac_cv_have_decl_getc_unlocked=no
 
29372
fi
 
29373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29374
fi
 
29375
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
29376
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
 
29377
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
29378
    gt_value=1
 
29379
  else
 
29380
    gt_value=0
 
29381
  fi
 
29382
 
 
29383
cat >>confdefs.h <<_ACEOF
 
29384
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
29385
_ACEOF
 
29386
 
 
29387
 
 
29388
 
 
29389
  case $gt_cv_func_printf_posix in
 
29390
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
29391
    *) HAVE_POSIX_PRINTF=0 ;;
 
29392
  esac
 
29393
 
 
29394
  if test "$ac_cv_func_asprintf" = yes; then
 
29395
    HAVE_ASPRINTF=1
 
29396
  else
 
29397
    HAVE_ASPRINTF=0
 
29398
  fi
 
29399
 
 
29400
  if test "$ac_cv_func_snprintf" = yes; then
 
29401
    HAVE_SNPRINTF=1
 
29402
  else
 
29403
    HAVE_SNPRINTF=0
 
29404
  fi
 
29405
 
 
29406
  if test "$ac_cv_func_wprintf" = yes; then
 
29407
    HAVE_WPRINTF=1
 
29408
  else
 
29409
    HAVE_WPRINTF=0
 
29410
  fi
 
29411
 
 
29412
 
 
29413
 
 
29414
 
 
29415
 
 
29416
 
 
29417
 
 
29418
          am_save_CPPFLAGS="$CPPFLAGS"
 
29419
 
 
29420
  for element in $INCICONV; do
 
29421
    haveit=
 
29422
    for x in $CPPFLAGS; do
 
29423
 
 
29424
  acl_save_prefix="$prefix"
 
29425
  prefix="$acl_final_prefix"
 
29426
  acl_save_exec_prefix="$exec_prefix"
 
29427
  exec_prefix="$acl_final_exec_prefix"
 
29428
  eval x=\"$x\"
 
29429
  exec_prefix="$acl_save_exec_prefix"
 
29430
  prefix="$acl_save_prefix"
 
29431
 
 
29432
      if test "X$x" = "X$element"; then
 
29433
        haveit=yes
 
29434
        break
 
29435
      fi
 
29436
    done
 
29437
    if test -z "$haveit"; then
 
29438
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
29439
    fi
 
29440
  done
 
29441
 
 
29442
 
 
29443
  echo "$as_me:$LINENO: checking for iconv" >&5
 
29444
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
29445
if test "${am_cv_func_iconv+set}" = set; then
 
29446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29447
else
 
29448
 
 
29449
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
29450
    am_cv_lib_iconv=no
 
29451
    cat >conftest.$ac_ext <<_ACEOF
 
29452
/* confdefs.h.  */
 
29453
_ACEOF
 
29454
cat confdefs.h >>conftest.$ac_ext
 
29455
cat >>conftest.$ac_ext <<_ACEOF
 
29456
/* end confdefs.h.  */
 
29457
#include <stdlib.h>
 
29458
#include <iconv.h>
 
29459
int
 
29460
main ()
 
29461
{
 
29462
iconv_t cd = iconv_open("","");
 
29463
       iconv(cd,NULL,NULL,NULL,NULL);
 
29464
       iconv_close(cd);
 
29465
  ;
 
29466
  return 0;
 
29467
}
 
29468
_ACEOF
 
29469
rm -f conftest.$ac_objext conftest$ac_exeext
 
29470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29471
  (eval $ac_link) 2>conftest.er1
 
29472
  ac_status=$?
 
29473
  grep -v '^ *+' conftest.er1 >conftest.err
 
29474
  rm -f conftest.er1
 
29475
  cat conftest.err >&5
 
29476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29477
  (exit $ac_status); } &&
 
29478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29480
  (eval $ac_try) 2>&5
 
29481
  ac_status=$?
 
29482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29483
  (exit $ac_status); }; } &&
 
29484
         { ac_try='test -s conftest$ac_exeext'
 
29485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29486
  (eval $ac_try) 2>&5
 
29487
  ac_status=$?
 
29488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29489
  (exit $ac_status); }; }; then
 
29490
  am_cv_func_iconv=yes
 
29491
else
 
29492
  echo "$as_me: failed program was:" >&5
 
29493
sed 's/^/| /' conftest.$ac_ext >&5
 
29494
 
 
29495
fi
 
29496
rm -f conftest.err conftest.$ac_objext \
 
29497
      conftest$ac_exeext conftest.$ac_ext
 
29498
    if test "$am_cv_func_iconv" != yes; then
 
29499
      am_save_LIBS="$LIBS"
 
29500
      LIBS="$LIBS $LIBICONV"
 
29501
      cat >conftest.$ac_ext <<_ACEOF
 
29502
/* confdefs.h.  */
 
29503
_ACEOF
 
29504
cat confdefs.h >>conftest.$ac_ext
 
29505
cat >>conftest.$ac_ext <<_ACEOF
 
29506
/* end confdefs.h.  */
 
29507
#include <stdlib.h>
 
29508
#include <iconv.h>
 
29509
int
 
29510
main ()
 
29511
{
 
29512
iconv_t cd = iconv_open("","");
 
29513
         iconv(cd,NULL,NULL,NULL,NULL);
 
29514
         iconv_close(cd);
 
29515
  ;
 
29516
  return 0;
 
29517
}
 
29518
_ACEOF
 
29519
rm -f conftest.$ac_objext conftest$ac_exeext
 
29520
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29521
  (eval $ac_link) 2>conftest.er1
 
29522
  ac_status=$?
 
29523
  grep -v '^ *+' conftest.er1 >conftest.err
 
29524
  rm -f conftest.er1
 
29525
  cat conftest.err >&5
 
29526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29527
  (exit $ac_status); } &&
 
29528
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29530
  (eval $ac_try) 2>&5
 
29531
  ac_status=$?
 
29532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29533
  (exit $ac_status); }; } &&
 
29534
         { ac_try='test -s conftest$ac_exeext'
 
29535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29536
  (eval $ac_try) 2>&5
 
29537
  ac_status=$?
 
29538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29539
  (exit $ac_status); }; }; then
 
29540
  am_cv_lib_iconv=yes
 
29541
        am_cv_func_iconv=yes
 
29542
else
 
29543
  echo "$as_me: failed program was:" >&5
 
29544
sed 's/^/| /' conftest.$ac_ext >&5
 
29545
 
 
29546
fi
 
29547
rm -f conftest.err conftest.$ac_objext \
 
29548
      conftest$ac_exeext conftest.$ac_ext
 
29549
      LIBS="$am_save_LIBS"
 
29550
    fi
 
29551
 
 
29552
fi
 
29553
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
29554
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
29555
  if test "$am_cv_func_iconv" = yes; then
 
29556
 
 
29557
cat >>confdefs.h <<\_ACEOF
 
29558
#define HAVE_ICONV 1
 
29559
_ACEOF
 
29560
 
 
29561
  fi
 
29562
  if test "$am_cv_lib_iconv" = yes; then
 
29563
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
29564
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
29565
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
29566
echo "${ECHO_T}$LIBICONV" >&6
 
29567
  else
 
29568
            CPPFLAGS="$am_save_CPPFLAGS"
 
29569
    LIBICONV=
 
29570
    LTLIBICONV=
 
29571
  fi
 
29572
 
 
29573
 
 
29574
 
 
29575
  if test "$am_cv_func_iconv" = yes; then
 
29576
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
29577
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
29578
    if test "${am_cv_proto_iconv+set}" = set; then
 
29579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29580
else
 
29581
 
 
29582
      cat >conftest.$ac_ext <<_ACEOF
 
29583
/* confdefs.h.  */
 
29584
_ACEOF
 
29585
cat confdefs.h >>conftest.$ac_ext
 
29586
cat >>conftest.$ac_ext <<_ACEOF
 
29587
/* end confdefs.h.  */
 
29588
 
 
29589
#include <stdlib.h>
 
29590
#include <iconv.h>
 
29591
extern
 
29592
#ifdef __cplusplus
 
29593
"C"
 
29594
#endif
 
29595
#if defined(__STDC__) || defined(__cplusplus)
 
29596
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
29597
#else
 
29598
size_t iconv();
 
29599
#endif
 
29600
 
 
29601
int
 
29602
main ()
 
29603
{
 
29604
 
 
29605
  ;
 
29606
  return 0;
 
29607
}
 
29608
_ACEOF
 
29609
rm -f conftest.$ac_objext
 
29610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29611
  (eval $ac_compile) 2>conftest.er1
 
29612
  ac_status=$?
 
29613
  grep -v '^ *+' conftest.er1 >conftest.err
 
29614
  rm -f conftest.er1
 
29615
  cat conftest.err >&5
 
29616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29617
  (exit $ac_status); } &&
 
29618
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29620
  (eval $ac_try) 2>&5
 
29621
  ac_status=$?
 
29622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29623
  (exit $ac_status); }; } &&
 
29624
         { ac_try='test -s conftest.$ac_objext'
 
29625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29626
  (eval $ac_try) 2>&5
 
29627
  ac_status=$?
 
29628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29629
  (exit $ac_status); }; }; then
 
29630
  am_cv_proto_iconv_arg1=""
 
29631
else
 
29632
  echo "$as_me: failed program was:" >&5
 
29633
sed 's/^/| /' conftest.$ac_ext >&5
 
29634
 
 
29635
am_cv_proto_iconv_arg1="const"
 
29636
fi
 
29637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29638
      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);"
 
29639
fi
 
29640
 
 
29641
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
29642
    echo "$as_me:$LINENO: result: ${ac_t:-
 
29643
         }$am_cv_proto_iconv" >&5
 
29644
echo "${ECHO_T}${ac_t:-
 
29645
         }$am_cv_proto_iconv" >&6
 
29646
 
 
29647
cat >>confdefs.h <<_ACEOF
 
29648
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
29649
_ACEOF
 
29650
 
 
29651
  fi
 
29652
 
 
29653
 
 
29654
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
29655
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
29656
if test "${am_cv_langinfo_codeset+set}" = set; then
 
29657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29658
else
 
29659
  cat >conftest.$ac_ext <<_ACEOF
 
29660
/* confdefs.h.  */
 
29661
_ACEOF
 
29662
cat confdefs.h >>conftest.$ac_ext
 
29663
cat >>conftest.$ac_ext <<_ACEOF
 
29664
/* end confdefs.h.  */
 
29665
#include <langinfo.h>
 
29666
int
 
29667
main ()
 
29668
{
 
29669
char* cs = nl_langinfo(CODESET);
 
29670
  ;
 
29671
  return 0;
 
29672
}
 
29673
_ACEOF
 
29674
rm -f conftest.$ac_objext conftest$ac_exeext
 
29675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29676
  (eval $ac_link) 2>conftest.er1
 
29677
  ac_status=$?
 
29678
  grep -v '^ *+' conftest.er1 >conftest.err
 
29679
  rm -f conftest.er1
 
29680
  cat conftest.err >&5
 
29681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29682
  (exit $ac_status); } &&
 
29683
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29685
  (eval $ac_try) 2>&5
 
29686
  ac_status=$?
 
29687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29688
  (exit $ac_status); }; } &&
 
29689
         { ac_try='test -s conftest$ac_exeext'
 
29690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29691
  (eval $ac_try) 2>&5
 
29692
  ac_status=$?
 
29693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29694
  (exit $ac_status); }; }; then
 
29695
  am_cv_langinfo_codeset=yes
 
29696
else
 
29697
  echo "$as_me: failed program was:" >&5
 
29698
sed 's/^/| /' conftest.$ac_ext >&5
 
29699
 
 
29700
am_cv_langinfo_codeset=no
 
29701
fi
 
29702
rm -f conftest.err conftest.$ac_objext \
 
29703
      conftest$ac_exeext conftest.$ac_ext
 
29704
 
 
29705
fi
 
29706
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
29707
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
 
29708
  if test $am_cv_langinfo_codeset = yes; then
 
29709
 
 
29710
cat >>confdefs.h <<\_ACEOF
 
29711
#define HAVE_LANGINFO_CODESET 1
 
29712
_ACEOF
 
29713
 
 
29714
  fi
 
29715
 
 
29716
  if test $ac_cv_header_locale_h = yes; then
 
29717
 
 
29718
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
29719
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
29720
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
29721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29722
else
 
29723
  cat >conftest.$ac_ext <<_ACEOF
 
29724
/* confdefs.h.  */
 
29725
_ACEOF
 
29726
cat confdefs.h >>conftest.$ac_ext
 
29727
cat >>conftest.$ac_ext <<_ACEOF
 
29728
/* end confdefs.h.  */
 
29729
#include <locale.h>
 
29730
int
 
29731
main ()
 
29732
{
 
29733
return LC_MESSAGES
 
29734
  ;
 
29735
  return 0;
 
29736
}
 
29737
_ACEOF
 
29738
rm -f conftest.$ac_objext conftest$ac_exeext
 
29739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29740
  (eval $ac_link) 2>conftest.er1
 
29741
  ac_status=$?
 
29742
  grep -v '^ *+' conftest.er1 >conftest.err
 
29743
  rm -f conftest.er1
 
29744
  cat conftest.err >&5
 
29745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29746
  (exit $ac_status); } &&
 
29747
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29749
  (eval $ac_try) 2>&5
 
29750
  ac_status=$?
 
29751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29752
  (exit $ac_status); }; } &&
 
29753
         { ac_try='test -s conftest$ac_exeext'
 
29754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29755
  (eval $ac_try) 2>&5
 
29756
  ac_status=$?
 
29757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29758
  (exit $ac_status); }; }; then
 
29759
  am_cv_val_LC_MESSAGES=yes
 
29760
else
 
29761
  echo "$as_me: failed program was:" >&5
 
29762
sed 's/^/| /' conftest.$ac_ext >&5
 
29763
 
 
29764
am_cv_val_LC_MESSAGES=no
 
29765
fi
 
29766
rm -f conftest.err conftest.$ac_objext \
 
29767
      conftest$ac_exeext conftest.$ac_ext
 
29768
fi
 
29769
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
29770
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
29771
  if test $am_cv_val_LC_MESSAGES = yes; then
 
29772
 
 
29773
cat >>confdefs.h <<\_ACEOF
 
29774
#define HAVE_LC_MESSAGES 1
 
29775
_ACEOF
 
29776
 
 
29777
  fi
 
29778
 
 
29779
  fi
 
29780
 
 
29781
                      for ac_prog in bison
 
29782
do
 
29783
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
29784
set dummy $ac_prog; ac_word=$2
 
29785
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
29786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
29787
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
29788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29789
else
 
29790
  if test -n "$INTLBISON"; then
 
29791
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
29792
else
 
29793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
29794
for as_dir in $PATH
 
29795
do
 
29796
  IFS=$as_save_IFS
 
29797
  test -z "$as_dir" && as_dir=.
 
29798
  for ac_exec_ext in '' $ac_executable_extensions; do
 
29799
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
29800
    ac_cv_prog_INTLBISON="$ac_prog"
 
29801
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
29802
    break 2
 
29803
  fi
 
29804
done
 
29805
done
 
29806
 
 
29807
fi
 
29808
fi
 
29809
INTLBISON=$ac_cv_prog_INTLBISON
 
29810
if test -n "$INTLBISON"; then
 
29811
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
29812
echo "${ECHO_T}$INTLBISON" >&6
 
29813
else
 
29814
  echo "$as_me:$LINENO: result: no" >&5
 
29815
echo "${ECHO_T}no" >&6
 
29816
fi
 
29817
 
 
29818
  test -n "$INTLBISON" && break
 
29819
done
 
29820
 
 
29821
  if test -z "$INTLBISON"; then
 
29822
    ac_verc_fail=yes
 
29823
  else
 
29824
        echo "$as_me:$LINENO: checking version of bison" >&5
 
29825
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
 
29826
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
29827
    case $ac_prog_version in
 
29828
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
29829
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
29830
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
29831
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
29832
    esac
 
29833
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
29834
echo "${ECHO_T}$ac_prog_version" >&6
 
29835
  fi
 
29836
  if test $ac_verc_fail = yes; then
 
29837
    INTLBISON=:
 
29838
  fi
 
29839
 
 
29840
 
 
29841
 
 
29842
 
 
29843
 
 
29844
 
 
29845
 
 
29846
 
 
29847
 
 
29848
 
 
29849
 
 
29850
 
 
29851
 
 
29852
 
 
29853
 
 
29854
 
 
29855
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
29856
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
29857
    # Check whether --enable-nls or --disable-nls was given.
 
29858
if test "${enable_nls+set}" = set; then
 
29859
  enableval="$enable_nls"
 
29860
  USE_NLS=$enableval
 
29861
else
 
29862
  USE_NLS=yes
 
29863
fi;
 
29864
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
29865
echo "${ECHO_T}$USE_NLS" >&6
 
29866
 
 
29867
 
 
29868
 
 
29869
 
 
29870
    BUILD_INCLUDED_LIBINTL=no
 
29871
    USE_INCLUDED_LIBINTL=no
 
29872
 
 
29873
  LIBINTL=
 
29874
  LTLIBINTL=
 
29875
  POSUB=
 
29876
 
 
29877
    if test "$USE_NLS" = "yes"; then
 
29878
    gt_use_preinstalled_gnugettext=no
 
29879
 
 
29880
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
29881
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
 
29882
 
 
29883
# Check whether --with-included-gettext or --without-included-gettext was given.
 
29884
if test "${with_included_gettext+set}" = set; then
 
29885
  withval="$with_included_gettext"
 
29886
  nls_cv_force_use_gnu_gettext=$withval
 
29887
else
 
29888
  nls_cv_force_use_gnu_gettext=no
 
29889
fi;
 
29890
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
29891
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
 
29892
 
 
29893
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
29894
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
29895
 
 
29896
 
 
29897
 
 
29898
 
 
29899
 
 
29900
 
 
29901
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
29902
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
29903
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
 
29904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29905
else
 
29906
  cat >conftest.$ac_ext <<_ACEOF
 
29907
/* confdefs.h.  */
 
29908
_ACEOF
 
29909
cat confdefs.h >>conftest.$ac_ext
 
29910
cat >>conftest.$ac_ext <<_ACEOF
 
29911
/* end confdefs.h.  */
 
29912
#include <libintl.h>
 
29913
extern int _nl_msg_cat_cntr;
 
29914
extern int *_nl_domain_bindings;
 
29915
int
 
29916
main ()
 
29917
{
 
29918
bindtextdomain ("", "");
 
29919
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
 
29920
  ;
 
29921
  return 0;
 
29922
}
 
29923
_ACEOF
 
29924
rm -f conftest.$ac_objext conftest$ac_exeext
 
29925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29926
  (eval $ac_link) 2>conftest.er1
 
29927
  ac_status=$?
 
29928
  grep -v '^ *+' conftest.er1 >conftest.err
 
29929
  rm -f conftest.er1
 
29930
  cat conftest.err >&5
 
29931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29932
  (exit $ac_status); } &&
 
29933
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
29934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29935
  (eval $ac_try) 2>&5
 
29936
  ac_status=$?
 
29937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29938
  (exit $ac_status); }; } &&
 
29939
         { ac_try='test -s conftest$ac_exeext'
 
29940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29941
  (eval $ac_try) 2>&5
 
29942
  ac_status=$?
 
29943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29944
  (exit $ac_status); }; }; then
 
29945
  gt_cv_func_gnugettext2_libc=yes
 
29946
else
 
29947
  echo "$as_me: failed program was:" >&5
 
29948
sed 's/^/| /' conftest.$ac_ext >&5
 
29949
 
 
29950
gt_cv_func_gnugettext2_libc=no
 
29951
fi
 
29952
rm -f conftest.err conftest.$ac_objext \
 
29953
      conftest$ac_exeext conftest.$ac_ext
 
29954
fi
 
29955
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
 
29956
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
 
29957
 
 
29958
        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
 
29959
 
 
29960
 
 
29961
 
 
29962
    use_additional=yes
 
29963
 
 
29964
  acl_save_prefix="$prefix"
 
29965
  prefix="$acl_final_prefix"
 
29966
  acl_save_exec_prefix="$exec_prefix"
 
29967
  exec_prefix="$acl_final_exec_prefix"
 
29968
 
 
29969
    eval additional_includedir=\"$includedir\"
 
29970
    eval additional_libdir=\"$libdir\"
 
29971
 
 
29972
  exec_prefix="$acl_save_exec_prefix"
 
29973
  prefix="$acl_save_prefix"
 
29974
 
 
29975
 
 
29976
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
29977
if test "${with_libintl_prefix+set}" = set; then
 
29978
  withval="$with_libintl_prefix"
 
29979
 
 
29980
    if test "X$withval" = "Xno"; then
 
29981
      use_additional=no
 
29982
    else
 
29983
      if test "X$withval" = "X"; then
 
29984
 
 
29985
  acl_save_prefix="$prefix"
 
29986
  prefix="$acl_final_prefix"
 
29987
  acl_save_exec_prefix="$exec_prefix"
 
29988
  exec_prefix="$acl_final_exec_prefix"
 
29989
 
 
29990
          eval additional_includedir=\"$includedir\"
 
29991
          eval additional_libdir=\"$libdir\"
 
29992
 
 
29993
  exec_prefix="$acl_save_exec_prefix"
 
29994
  prefix="$acl_save_prefix"
 
29995
 
 
29996
      else
 
29997
        additional_includedir="$withval/include"
 
29998
        additional_libdir="$withval/lib"
 
29999
      fi
 
30000
    fi
 
30001
 
 
30002
fi;
 
30003
      LIBINTL=
 
30004
  LTLIBINTL=
 
30005
  INCINTL=
 
30006
  rpathdirs=
 
30007
  ltrpathdirs=
 
30008
  names_already_handled=
 
30009
  names_next_round='intl '
 
30010
  while test -n "$names_next_round"; do
 
30011
    names_this_round="$names_next_round"
 
30012
    names_next_round=
 
30013
    for name in $names_this_round; do
 
30014
      already_handled=
 
30015
      for n in $names_already_handled; do
 
30016
        if test "$n" = "$name"; then
 
30017
          already_handled=yes
 
30018
          break
 
30019
        fi
 
30020
      done
 
30021
      if test -z "$already_handled"; then
 
30022
        names_already_handled="$names_already_handled $name"
 
30023
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
30024
        eval value=\"\$HAVE_LIB$uppername\"
 
30025
        if test -n "$value"; then
 
30026
          if test "$value" = yes; then
 
30027
            eval value=\"\$LIB$uppername\"
 
30028
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
30029
            eval value=\"\$LTLIB$uppername\"
 
30030
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
30031
          else
 
30032
                                    :
 
30033
          fi
 
30034
        else
 
30035
                              found_dir=
 
30036
          found_la=
 
30037
          found_so=
 
30038
          found_a=
 
30039
          if test $use_additional = yes; then
 
30040
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
30041
              found_dir="$additional_libdir"
 
30042
              found_so="$additional_libdir/lib$name.$shlibext"
 
30043
              if test -f "$additional_libdir/lib$name.la"; then
 
30044
                found_la="$additional_libdir/lib$name.la"
 
30045
              fi
 
30046
            else
 
30047
              if test -f "$additional_libdir/lib$name.$libext"; then
 
30048
                found_dir="$additional_libdir"
 
30049
                found_a="$additional_libdir/lib$name.$libext"
 
30050
                if test -f "$additional_libdir/lib$name.la"; then
 
30051
                  found_la="$additional_libdir/lib$name.la"
 
30052
                fi
 
30053
              fi
 
30054
            fi
 
30055
          fi
 
30056
          if test "X$found_dir" = "X"; then
 
30057
            for x in $LDFLAGS $LTLIBINTL; do
 
30058
 
 
30059
  acl_save_prefix="$prefix"
 
30060
  prefix="$acl_final_prefix"
 
30061
  acl_save_exec_prefix="$exec_prefix"
 
30062
  exec_prefix="$acl_final_exec_prefix"
 
30063
  eval x=\"$x\"
 
30064
  exec_prefix="$acl_save_exec_prefix"
 
30065
  prefix="$acl_save_prefix"
 
30066
 
 
30067
              case "$x" in
 
30068
                -L*)
 
30069
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
30070
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
30071
                    found_dir="$dir"
 
30072
                    found_so="$dir/lib$name.$shlibext"
 
30073
                    if test -f "$dir/lib$name.la"; then
 
30074
                      found_la="$dir/lib$name.la"
 
30075
                    fi
 
30076
                  else
 
30077
                    if test -f "$dir/lib$name.$libext"; then
 
30078
                      found_dir="$dir"
 
30079
                      found_a="$dir/lib$name.$libext"
 
30080
                      if test -f "$dir/lib$name.la"; then
 
30081
                        found_la="$dir/lib$name.la"
 
30082
                      fi
 
30083
                    fi
 
30084
                  fi
 
30085
                  ;;
 
30086
              esac
 
30087
              if test "X$found_dir" != "X"; then
 
30088
                break
 
30089
              fi
 
30090
            done
 
30091
          fi
 
30092
          if test "X$found_dir" != "X"; then
 
30093
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
30094
            if test "X$found_so" != "X"; then
 
30095
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
30096
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
30097
              else
 
30098
                                                                                haveit=
 
30099
                for x in $ltrpathdirs; do
 
30100
                  if test "X$x" = "X$found_dir"; then
 
30101
                    haveit=yes
 
30102
                    break
 
30103
                  fi
 
30104
                done
 
30105
                if test -z "$haveit"; then
 
30106
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
30107
                fi
 
30108
                                if test "$hardcode_direct" = yes; then
 
30109
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
30110
                else
 
30111
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
30112
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
30113
                                                            haveit=
 
30114
                    for x in $rpathdirs; do
 
30115
                      if test "X$x" = "X$found_dir"; then
 
30116
                        haveit=yes
 
30117
                        break
 
30118
                      fi
 
30119
                    done
 
30120
                    if test -z "$haveit"; then
 
30121
                      rpathdirs="$rpathdirs $found_dir"
 
30122
                    fi
 
30123
                  else
 
30124
                                                                                haveit=
 
30125
                    for x in $LDFLAGS $LIBINTL; do
 
30126
 
 
30127
  acl_save_prefix="$prefix"
 
30128
  prefix="$acl_final_prefix"
 
30129
  acl_save_exec_prefix="$exec_prefix"
 
30130
  exec_prefix="$acl_final_exec_prefix"
 
30131
  eval x=\"$x\"
 
30132
  exec_prefix="$acl_save_exec_prefix"
 
30133
  prefix="$acl_save_prefix"
 
30134
 
 
30135
                      if test "X$x" = "X-L$found_dir"; then
 
30136
                        haveit=yes
 
30137
                        break
 
30138
                      fi
 
30139
                    done
 
30140
                    if test -z "$haveit"; then
 
30141
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
30142
                    fi
 
30143
                    if test "$hardcode_minus_L" != no; then
 
30144
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
30145
                    else
 
30146
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
30147
                    fi
 
30148
                  fi
 
30149
                fi
 
30150
              fi
 
30151
            else
 
30152
              if test "X$found_a" != "X"; then
 
30153
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
30154
              else
 
30155
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
30156
              fi
 
30157
            fi
 
30158
                        additional_includedir=
 
30159
            case "$found_dir" in
 
30160
              */lib | */lib/)
 
30161
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
30162
                additional_includedir="$basedir/include"
 
30163
                ;;
 
30164
            esac
 
30165
            if test "X$additional_includedir" != "X"; then
 
30166
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
30167
                haveit=
 
30168
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
30169
                  if test -n "$GCC"; then
 
30170
                    case $host_os in
 
30171
                      linux*) haveit=yes;;
 
30172
                    esac
 
30173
                  fi
 
30174
                fi
 
30175
                if test -z "$haveit"; then
 
30176
                  for x in $CPPFLAGS $INCINTL; do
 
30177
 
 
30178
  acl_save_prefix="$prefix"
 
30179
  prefix="$acl_final_prefix"
 
30180
  acl_save_exec_prefix="$exec_prefix"
 
30181
  exec_prefix="$acl_final_exec_prefix"
 
30182
  eval x=\"$x\"
 
30183
  exec_prefix="$acl_save_exec_prefix"
 
30184
  prefix="$acl_save_prefix"
 
30185
 
 
30186
                    if test "X$x" = "X-I$additional_includedir"; then
 
30187
                      haveit=yes
 
30188
                      break
 
30189
                    fi
 
30190
                  done
 
30191
                  if test -z "$haveit"; then
 
30192
                    if test -d "$additional_includedir"; then
 
30193
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
30194
                    fi
 
30195
                  fi
 
30196
                fi
 
30197
              fi
 
30198
            fi
 
30199
                        if test -n "$found_la"; then
 
30200
                                                        save_libdir="$libdir"
 
30201
              case "$found_la" in
 
30202
                */* | *\\*) . "$found_la" ;;
 
30203
                *) . "./$found_la" ;;
 
30204
              esac
 
30205
              libdir="$save_libdir"
 
30206
                            for dep in $dependency_libs; do
 
30207
                case "$dep" in
 
30208
                  -L*)
 
30209
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
30210
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
30211
                      haveit=
 
30212
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
30213
                        if test -n "$GCC"; then
 
30214
                          case $host_os in
 
30215
                            linux*) haveit=yes;;
 
30216
                          esac
 
30217
                        fi
 
30218
                      fi
 
30219
                      if test -z "$haveit"; then
 
30220
                        haveit=
 
30221
                        for x in $LDFLAGS $LIBINTL; do
 
30222
 
 
30223
  acl_save_prefix="$prefix"
 
30224
  prefix="$acl_final_prefix"
 
30225
  acl_save_exec_prefix="$exec_prefix"
 
30226
  exec_prefix="$acl_final_exec_prefix"
 
30227
  eval x=\"$x\"
 
30228
  exec_prefix="$acl_save_exec_prefix"
 
30229
  prefix="$acl_save_prefix"
 
30230
 
 
30231
                          if test "X$x" = "X-L$additional_libdir"; then
 
30232
                            haveit=yes
 
30233
                            break
 
30234
                          fi
 
30235
                        done
 
30236
                        if test -z "$haveit"; then
 
30237
                          if test -d "$additional_libdir"; then
 
30238
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
30239
                          fi
 
30240
                        fi
 
30241
                        haveit=
 
30242
                        for x in $LDFLAGS $LTLIBINTL; do
 
30243
 
 
30244
  acl_save_prefix="$prefix"
 
30245
  prefix="$acl_final_prefix"
 
30246
  acl_save_exec_prefix="$exec_prefix"
 
30247
  exec_prefix="$acl_final_exec_prefix"
 
30248
  eval x=\"$x\"
 
30249
  exec_prefix="$acl_save_exec_prefix"
 
30250
  prefix="$acl_save_prefix"
 
30251
 
 
30252
                          if test "X$x" = "X-L$additional_libdir"; then
 
30253
                            haveit=yes
 
30254
                            break
 
30255
                          fi
 
30256
                        done
 
30257
                        if test -z "$haveit"; then
 
30258
                          if test -d "$additional_libdir"; then
 
30259
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
30260
                          fi
 
30261
                        fi
 
30262
                      fi
 
30263
                    fi
 
30264
                    ;;
 
30265
                  -R*)
 
30266
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
30267
                    if test "$enable_rpath" != no; then
 
30268
                                                                  haveit=
 
30269
                      for x in $rpathdirs; do
 
30270
                        if test "X$x" = "X$dir"; then
 
30271
                          haveit=yes
 
30272
                          break
 
30273
                        fi
 
30274
                      done
 
30275
                      if test -z "$haveit"; then
 
30276
                        rpathdirs="$rpathdirs $dir"
 
30277
                      fi
 
30278
                                                                  haveit=
 
30279
                      for x in $ltrpathdirs; do
 
30280
                        if test "X$x" = "X$dir"; then
 
30281
                          haveit=yes
 
30282
                          break
 
30283
                        fi
 
30284
                      done
 
30285
                      if test -z "$haveit"; then
 
30286
                        ltrpathdirs="$ltrpathdirs $dir"
 
30287
                      fi
 
30288
                    fi
 
30289
                    ;;
 
30290
                  -l*)
 
30291
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
30292
                    ;;
 
30293
                  *.la)
 
30294
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
30295
                    ;;
 
30296
                  *)
 
30297
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
30298
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
30299
                    ;;
 
30300
                esac
 
30301
              done
 
30302
            fi
 
30303
          else
 
30304
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
30305
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
30306
          fi
 
30307
        fi
 
30308
      fi
 
30309
    done
 
30310
  done
 
30311
  if test "X$rpathdirs" != "X"; then
 
30312
    if test -n "$hardcode_libdir_separator"; then
 
30313
                        alldirs=
 
30314
      for found_dir in $rpathdirs; do
 
30315
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
30316
      done
 
30317
            acl_save_libdir="$libdir"
 
30318
      libdir="$alldirs"
 
30319
      eval flag=\"$hardcode_libdir_flag_spec\"
 
30320
      libdir="$acl_save_libdir"
 
30321
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
30322
    else
 
30323
            for found_dir in $rpathdirs; do
 
30324
        acl_save_libdir="$libdir"
 
30325
        libdir="$found_dir"
 
30326
        eval flag=\"$hardcode_libdir_flag_spec\"
 
30327
        libdir="$acl_save_libdir"
 
30328
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
30329
      done
 
30330
    fi
 
30331
  fi
 
30332
  if test "X$ltrpathdirs" != "X"; then
 
30333
            for found_dir in $ltrpathdirs; do
 
30334
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
30335
    done
 
30336
  fi
 
30337
 
 
30338
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
30339
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
30340
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
 
30341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30342
else
 
30343
  gt_save_CPPFLAGS="$CPPFLAGS"
 
30344
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
30345
            gt_save_LIBS="$LIBS"
 
30346
            LIBS="$LIBS $LIBINTL"
 
30347
                        cat >conftest.$ac_ext <<_ACEOF
 
30348
/* confdefs.h.  */
 
30349
_ACEOF
 
30350
cat confdefs.h >>conftest.$ac_ext
 
30351
cat >>conftest.$ac_ext <<_ACEOF
 
30352
/* end confdefs.h.  */
 
30353
#include <libintl.h>
 
30354
extern int _nl_msg_cat_cntr;
 
30355
extern
 
30356
#ifdef __cplusplus
 
30357
"C"
 
30358
#endif
 
30359
const char *_nl_expand_alias ();
 
30360
int
 
30361
main ()
 
30362
{
 
30363
bindtextdomain ("", "");
 
30364
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
30365
  ;
 
30366
  return 0;
 
30367
}
 
30368
_ACEOF
 
30369
rm -f conftest.$ac_objext conftest$ac_exeext
 
30370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30371
  (eval $ac_link) 2>conftest.er1
 
30372
  ac_status=$?
 
30373
  grep -v '^ *+' conftest.er1 >conftest.err
 
30374
  rm -f conftest.er1
 
30375
  cat conftest.err >&5
 
30376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30377
  (exit $ac_status); } &&
 
30378
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
30379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30380
  (eval $ac_try) 2>&5
 
30381
  ac_status=$?
 
30382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30383
  (exit $ac_status); }; } &&
 
30384
         { ac_try='test -s conftest$ac_exeext'
 
30385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30386
  (eval $ac_try) 2>&5
 
30387
  ac_status=$?
 
30388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30389
  (exit $ac_status); }; }; then
 
30390
  gt_cv_func_gnugettext2_libintl=yes
 
30391
else
 
30392
  echo "$as_me: failed program was:" >&5
 
30393
sed 's/^/| /' conftest.$ac_ext >&5
 
30394
 
 
30395
gt_cv_func_gnugettext2_libintl=no
 
30396
fi
 
30397
rm -f conftest.err conftest.$ac_objext \
 
30398
      conftest$ac_exeext conftest.$ac_ext
 
30399
                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
 
30400
              LIBS="$LIBS $LIBICONV"
 
30401
              cat >conftest.$ac_ext <<_ACEOF
 
30402
/* confdefs.h.  */
 
30403
_ACEOF
 
30404
cat confdefs.h >>conftest.$ac_ext
 
30405
cat >>conftest.$ac_ext <<_ACEOF
 
30406
/* end confdefs.h.  */
 
30407
#include <libintl.h>
 
30408
extern int _nl_msg_cat_cntr;
 
30409
extern
 
30410
#ifdef __cplusplus
 
30411
"C"
 
30412
#endif
 
30413
const char *_nl_expand_alias ();
 
30414
int
 
30415
main ()
 
30416
{
 
30417
bindtextdomain ("", "");
 
30418
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
30419
  ;
 
30420
  return 0;
 
30421
}
 
30422
_ACEOF
 
30423
rm -f conftest.$ac_objext conftest$ac_exeext
 
30424
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30425
  (eval $ac_link) 2>conftest.er1
 
30426
  ac_status=$?
 
30427
  grep -v '^ *+' conftest.er1 >conftest.err
 
30428
  rm -f conftest.er1
 
30429
  cat conftest.err >&5
 
30430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30431
  (exit $ac_status); } &&
 
30432
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
30433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30434
  (eval $ac_try) 2>&5
 
30435
  ac_status=$?
 
30436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30437
  (exit $ac_status); }; } &&
 
30438
         { ac_try='test -s conftest$ac_exeext'
 
30439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30440
  (eval $ac_try) 2>&5
 
30441
  ac_status=$?
 
30442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30443
  (exit $ac_status); }; }; then
 
30444
  LIBINTL="$LIBINTL $LIBICONV"
 
30445
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
30446
                gt_cv_func_gnugettext2_libintl=yes
 
30447
 
 
30448
else
 
30449
  echo "$as_me: failed program was:" >&5
 
30450
sed 's/^/| /' conftest.$ac_ext >&5
 
30451
 
 
30452
fi
 
30453
rm -f conftest.err conftest.$ac_objext \
 
30454
      conftest$ac_exeext conftest.$ac_ext
 
30455
            fi
 
30456
            CPPFLAGS="$gt_save_CPPFLAGS"
 
30457
            LIBS="$gt_save_LIBS"
 
30458
fi
 
30459
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
 
30460
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
 
30461
        fi
 
30462
 
 
30463
                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
 
30464
           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
 
30465
                && test "$PACKAGE" != gettext-runtime \
 
30466
                && test "$PACKAGE" != gettext-tools; }; then
 
30467
          gt_use_preinstalled_gnugettext=yes
 
30468
        else
 
30469
                    LIBINTL=
 
30470
          LTLIBINTL=
 
30471
          INCINTL=
 
30472
        fi
 
30473
 
 
30474
 
 
30475
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
30476
                              nls_cv_use_gnu_gettext=yes
 
30477
        fi
 
30478
      fi
 
30479
 
 
30480
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
30481
                BUILD_INCLUDED_LIBINTL=yes
 
30482
        USE_INCLUDED_LIBINTL=yes
 
30483
        LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV"
 
30484
        LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV"
 
30485
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
30486
      fi
 
30487
 
 
30488
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
30489
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
30490
                CATOBJEXT=.gmo
 
30491
      fi
 
30492
 
 
30493
 
 
30494
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
30495
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
30496
 
 
30497
cat >>confdefs.h <<\_ACEOF
 
30498
#define ENABLE_NLS 1
 
30499
_ACEOF
 
30500
 
 
30501
    else
 
30502
      USE_NLS=no
 
30503
    fi
 
30504
  fi
 
30505
 
 
30506
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
30507
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
30508
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
30509
echo "${ECHO_T}$USE_NLS" >&6
 
30510
  if test "$USE_NLS" = "yes"; then
 
30511
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
30512
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
30513
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
30514
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
30515
        gt_source="external libintl"
 
30516
      else
 
30517
        gt_source="libc"
 
30518
      fi
 
30519
    else
 
30520
      gt_source="included intl directory"
 
30521
    fi
 
30522
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
30523
echo "${ECHO_T}$gt_source" >&6
 
30524
  fi
 
30525
 
 
30526
  if test "$USE_NLS" = "yes"; then
 
30527
 
 
30528
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
30529
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
30530
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
30531
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
30532
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
30533
echo "${ECHO_T}$LIBINTL" >&6
 
30534
 
 
30535
  for element in $INCINTL; do
 
30536
    haveit=
 
30537
    for x in $CPPFLAGS; do
 
30538
 
 
30539
  acl_save_prefix="$prefix"
 
30540
  prefix="$acl_final_prefix"
 
30541
  acl_save_exec_prefix="$exec_prefix"
 
30542
  exec_prefix="$acl_final_exec_prefix"
 
30543
  eval x=\"$x\"
 
30544
  exec_prefix="$acl_save_exec_prefix"
 
30545
  prefix="$acl_save_prefix"
 
30546
 
 
30547
      if test "X$x" = "X$element"; then
 
30548
        haveit=yes
 
30549
        break
 
30550
      fi
 
30551
    done
 
30552
    if test -z "$haveit"; then
 
30553
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
30554
    fi
 
30555
  done
 
30556
 
 
30557
      fi
 
30558
 
 
30559
 
 
30560
cat >>confdefs.h <<\_ACEOF
 
30561
#define HAVE_GETTEXT 1
 
30562
_ACEOF
 
30563
 
 
30564
 
 
30565
cat >>confdefs.h <<\_ACEOF
 
30566
#define HAVE_DCGETTEXT 1
 
30567
_ACEOF
 
30568
 
 
30569
    fi
 
30570
 
 
30571
        POSUB=po
 
30572
  fi
 
30573
 
 
30574
 
 
30575
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
30576
      BUILD_INCLUDED_LIBINTL=yes
 
30577
    fi
 
30578
 
 
30579
 
 
30580
 
 
30581
 
 
30582
 
 
30583
        nls_cv_header_intl=
 
30584
    nls_cv_header_libgt=
 
30585
 
 
30586
        DATADIRNAME=share
 
30587
 
 
30588
 
 
30589
        INSTOBJEXT=.mo
 
30590
 
 
30591
 
 
30592
        GENCAT=gencat
 
30593
 
 
30594
 
 
30595
        if test "$USE_INCLUDED_LIBINTL" = yes; then
 
30596
      INTLOBJS="\$(GETTOBJS)"
 
30597
    fi
 
30598
 
 
30599
 
 
30600
        INTL_LIBTOOL_SUFFIX_PREFIX=l
 
30601
 
 
30602
 
 
30603
 
 
30604
    INTLLIBS="$LIBINTL"
 
30605
 
 
30606
 
 
30607
 
 
30608
 
 
30609
 
 
30610
 
 
30611
 
 
30612
 
 
30613
 
 
30614
 
 
30615
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
 
30616
# Extract the first word of "perl", so it can be a program name with args.
 
30617
set dummy perl; ac_word=$2
 
30618
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
30619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
30620
if test "${ac_cv_path_PERL+set}" = set; then
 
30621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30622
else
 
30623
  case $PERL in
 
30624
  [\\/]* | ?:[\\/]*)
 
30625
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
30626
  ;;
 
30627
  *)
 
30628
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30629
for as_dir in $PATH
 
30630
do
 
30631
  IFS=$as_save_IFS
 
30632
  test -z "$as_dir" && as_dir=.
 
30633
  for ac_exec_ext in '' $ac_executable_extensions; do
 
30634
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
30635
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
30636
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
30637
    break 2
 
30638
  fi
 
30639
done
 
30640
done
 
30641
 
 
30642
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
 
30643
  ;;
 
30644
esac
 
30645
fi
 
30646
PERL=$ac_cv_path_PERL
 
30647
 
 
30648
if test -n "$PERL"; then
 
30649
  echo "$as_me:$LINENO: result: $PERL" >&5
 
30650
echo "${ECHO_T}$PERL" >&6
 
30651
else
 
30652
  echo "$as_me:$LINENO: result: no" >&5
 
30653
echo "${ECHO_T}no" >&6
 
30654
fi
 
30655
 
 
30656
 
 
30657
CROSS_COMPILING=$cross_compiling
 
30658
 
 
30659
 
 
30660
 
 
30661
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
30662
do
 
30663
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
30664
set dummy $ac_prog; ac_word=$2
 
30665
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
30666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
30667
if test "${ac_cv_prog_CXX+set}" = set; then
 
30668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30669
else
 
30670
  if test -n "$CXX"; then
 
30671
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
30672
else
 
30673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30674
for as_dir in $PATH
 
30675
do
 
30676
  IFS=$as_save_IFS
 
30677
  test -z "$as_dir" && as_dir=.
 
30678
  for ac_exec_ext in '' $ac_executable_extensions; do
 
30679
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
30680
    ac_cv_prog_CXX="$ac_prog"
 
30681
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
30682
    break 2
 
30683
  fi
 
30684
done
 
30685
done
 
30686
 
 
30687
fi
 
30688
fi
 
30689
CXX=$ac_cv_prog_CXX
 
30690
if test -n "$CXX"; then
 
30691
  echo "$as_me:$LINENO: result: $CXX" >&5
 
30692
echo "${ECHO_T}$CXX" >&6
 
30693
else
 
30694
  echo "$as_me:$LINENO: result: no" >&5
 
30695
echo "${ECHO_T}no" >&6
 
30696
fi
 
30697
 
 
30698
  test -n "$CXX" && break
 
30699
done
 
30700
test -n "$CXX" || CXX=":"
 
30701
 
 
30702
if test "$CXX" != ":"; then
 
30703
      echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
30704
echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6
 
30705
  ac_ext=cc
 
30706
ac_cpp='$CXXCPP $CPPFLAGS'
 
30707
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30708
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30709
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30710
 
 
30711
 
 
30712
 
 
30713
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
30714
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30715
  (eval $ac_link) 2>&5
 
30716
  ac_status=$?
 
30717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30718
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
30719
    ac_cv_prog_cxx_works=yes
 
30720
    if (./conftest; exit) 2>/dev/null; then
 
30721
      ac_cv_prog_cxx_cross=no
 
30722
    else
 
30723
      ac_cv_prog_cxx_cross=yes
 
30724
    fi
 
30725
  else
 
30726
    ac_cv_prog_cxx_works=no
 
30727
  fi
 
30728
  rm -fr conftest*
 
30729
  ac_ext=c
 
30730
ac_cpp='$CPP $CPPFLAGS'
 
30731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30734
 
 
30735
  echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
 
30736
echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6
 
30737
  if test $ac_cv_prog_cxx_works = no; then
 
30738
    CXX=:
 
30739
  else
 
30740
            echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
 
30741
echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6
 
30742
    ac_ext=cc
 
30743
ac_cpp='$CXXCPP $CPPFLAGS'
 
30744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30747
 
 
30748
    cat <<EOF > conftest.$ac_ext
 
30749
#include <iostream>
 
30750
namespace test { using namespace std; }
 
30751
std::ostream* ptr;
 
30752
int main () { return 0; }
 
30753
EOF
 
30754
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30755
  (eval $ac_link) 2>&5
 
30756
  ac_status=$?
 
30757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30758
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
30759
      gt_cv_prog_cxx_namespaces=yes
 
30760
    else
 
30761
      gt_cv_prog_cxx_namespaces=no
 
30762
    fi
 
30763
    rm -fr conftest*
 
30764
    ac_ext=c
 
30765
ac_cpp='$CPP $CPPFLAGS'
 
30766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30769
 
 
30770
    echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
 
30771
echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6
 
30772
    if test $gt_cv_prog_cxx_namespaces = no; then
 
30773
      CXX=:
 
30774
    fi
 
30775
  fi
 
30776
fi
 
30777
 
 
30778
 
 
30779
# Check whether --enable-libasprintf or --disable-libasprintf was given.
 
30780
if test "${enable_libasprintf+set}" = set; then
 
30781
  enableval="$enable_libasprintf"
 
30782
  if test "$enableval" != no; then
 
30783
     SUBDIR_libasprintf=libasprintf
 
30784
   else
 
30785
     SUBDIR_libasprintf=
 
30786
   fi
 
30787
 
 
30788
else
 
30789
  SUBDIR_libasprintf=libasprintf
 
30790
fi;
 
30791
if test "$CXX" = ":"; then
 
30792
  SUBDIR_libasprintf=
 
30793
fi
 
30794
 
 
30795
 
 
30796
 
 
30797
 
 
30798
subdirs="$subdirs libasprintf"
 
30799
 
 
30800
 
 
30801
          ac_config_files="$ac_config_files Makefile"
 
30802
 
 
30803
 
 
30804
          ac_config_files="$ac_config_files doc/Makefile"
 
30805
 
 
30806
 
 
30807
          ac_config_files="$ac_config_files intl/Makefile"
 
30808
 
 
30809
 
 
30810
          ac_config_files="$ac_config_files intl-java/Makefile"
 
30811
 
 
30812
 
 
30813
          ac_config_files="$ac_config_files intl-csharp/Makefile"
 
30814
 
 
30815
 
 
30816
          ac_config_files="$ac_config_files lib/Makefile"
 
30817
 
 
30818
          ac_config_files="$ac_config_files lib/javacomp.sh:../gettext-tools/lib/javacomp.sh.in"
 
30819
 
 
30820
          ac_config_files="$ac_config_files lib/csharpcomp.sh:../gettext-tools/lib/csharpcomp.sh.in"
 
30821
 
 
30822
 
 
30823
          ac_config_files="$ac_config_files src/Makefile"
 
30824
 
 
30825
 
 
30826
          ac_config_files="$ac_config_files po/Makefile.in"
 
30827
 
 
30828
 
 
30829
          ac_config_files="$ac_config_files man/Makefile"
 
30830
 
 
30831
          ac_config_files="$ac_config_files man/x-to-1"
 
30832
 
 
30833
 
 
30834
          ac_config_files="$ac_config_files m4/Makefile"
 
30835
 
 
30836
 
 
30837
cat >confcache <<\_ACEOF
 
30838
# This file is a shell script that caches the results of configure
 
30839
# tests run on this system so they can be shared between configure
 
30840
# scripts and configure runs, see configure's option --config-cache.
 
30841
# It is not useful on other systems.  If it contains results you don't
 
30842
# want to keep, you may remove or edit it.
 
30843
#
 
30844
# config.status only pays attention to the cache file if you give it
 
30845
# the --recheck option to rerun configure.
 
30846
#
 
30847
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
30848
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
30849
# following values.
 
30850
 
 
30851
_ACEOF
 
30852
 
 
30853
# The following way of writing the cache mishandles newlines in values,
 
30854
# but we know of no workaround that is simple, portable, and efficient.
 
30855
# So, don't put newlines in cache variables' values.
 
30856
# Ultrix sh set writes to stderr and can't be redirected directly,
 
30857
# and sets the high bit in the cache file unless we assign to the vars.
 
30858
{
 
30859
  (set) 2>&1 |
 
30860
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
30861
    *ac_space=\ *)
 
30862
      # `set' does not quote correctly, so add quotes (double-quote
 
30863
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
30864
      sed -n \
 
30865
        "s/'/'\\\\''/g;
 
30866
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
30867
      ;;
 
30868
    *)
 
30869
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
30870
      sed -n \
 
30871
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
30872
      ;;
 
30873
    esac;
 
30874
} |
 
30875
  sed '
 
30876
     t clear
 
30877
     : clear
 
30878
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
30879
     t end
 
30880
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
30881
     : end' >>confcache
 
30882
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
30883
  if test -w $cache_file; then
 
30884
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
30885
    cat confcache >$cache_file
 
30886
  else
 
30887
    echo "not updating unwritable cache $cache_file"
 
30888
  fi
 
30889
fi
 
30890
rm -f confcache
 
30891
 
 
30892
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
30893
# Let make expand exec_prefix.
 
30894
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
30895
 
 
30896
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
30897
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
30898
# trailing colons and then remove the whole line if VPATH becomes empty
 
30899
# (actually we leave an empty line to preserve line numbers).
 
30900
if test "x$srcdir" = x.; then
 
30901
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
30902
s/:*\$(srcdir):*/:/;
 
30903
s/:*\${srcdir}:*/:/;
 
30904
s/:*@srcdir@:*/:/;
 
30905
s/^\([^=]*=[     ]*\):*/\1/;
 
30906
s/:*$//;
 
30907
s/^[^=]*=[       ]*$//;
 
30908
}'
 
30909
fi
 
30910
 
 
30911
DEFS=-DHAVE_CONFIG_H
 
30912
 
 
30913
ac_libobjs=
 
30914
ac_ltlibobjs=
 
30915
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
30916
  # 1. Remove the extension, and $U if already installed.
 
30917
  ac_i=`echo "$ac_i" |
 
30918
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
30919
  # 2. Add them.
 
30920
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
30921
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
30922
done
 
30923
LIBOBJS=$ac_libobjs
 
30924
 
 
30925
LTLIBOBJS=$ac_ltlibobjs
 
30926
 
 
30927
 
 
30928
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
30929
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
30930
Usually this means the macro was only invoked conditionally." >&5
 
30931
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
30932
Usually this means the macro was only invoked conditionally." >&2;}
 
30933
   { (exit 1); exit 1; }; }
 
30934
fi
 
30935
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
30936
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
30937
Usually this means the macro was only invoked conditionally." >&5
 
30938
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
30939
Usually this means the macro was only invoked conditionally." >&2;}
 
30940
   { (exit 1); exit 1; }; }
 
30941
fi
 
30942
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
30943
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
30944
Usually this means the macro was only invoked conditionally." >&5
 
30945
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
30946
Usually this means the macro was only invoked conditionally." >&2;}
 
30947
   { (exit 1); exit 1; }; }
 
30948
fi
 
30949
if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
 
30950
  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
 
30951
Usually this means the macro was only invoked conditionally." >&5
 
30952
echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
 
30953
Usually this means the macro was only invoked conditionally." >&2;}
 
30954
   { (exit 1); exit 1; }; }
 
30955
fi
 
30956
 
 
30957
: ${CONFIG_STATUS=./config.status}
 
30958
ac_clean_files_save=$ac_clean_files
 
30959
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
30960
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
30961
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
30962
cat >$CONFIG_STATUS <<_ACEOF
 
30963
#! $SHELL
 
30964
# Generated by $as_me.
 
30965
# Run this file to recreate the current configuration.
 
30966
# Compiler output produced by configure, useful for debugging
 
30967
# configure, is in config.log if it exists.
 
30968
 
 
30969
debug=false
 
30970
ac_cs_recheck=false
 
30971
ac_cs_silent=false
 
30972
SHELL=\${CONFIG_SHELL-$SHELL}
 
30973
_ACEOF
 
30974
 
 
30975
cat >>$CONFIG_STATUS <<\_ACEOF
 
30976
## --------------------- ##
 
30977
## M4sh Initialization.  ##
 
30978
## --------------------- ##
 
30979
 
 
30980
# Be Bourne compatible
 
30981
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
30982
  emulate sh
 
30983
  NULLCMD=:
 
30984
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
30985
  # is contrary to our usage.  Disable this feature.
 
30986
  alias -g '${1+"$@"}'='"$@"'
 
30987
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
30988
  set -o posix
 
30989
fi
 
30990
DUALCASE=1; export DUALCASE # for MKS sh
 
30991
 
 
30992
# Support unset when possible.
 
30993
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
30994
  as_unset=unset
 
30995
else
 
30996
  as_unset=false
 
30997
fi
 
30998
 
 
30999
 
 
31000
# Work around bugs in pre-3.0 UWIN ksh.
 
31001
$as_unset ENV MAIL MAILPATH
 
31002
PS1='$ '
 
31003
PS2='> '
 
31004
PS4='+ '
 
31005
 
 
31006
# NLS nuisances.
 
31007
for as_var in \
 
31008
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
31009
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
31010
  LC_TELEPHONE LC_TIME
 
31011
do
 
31012
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
31013
    eval $as_var=C; export $as_var
 
31014
  else
 
31015
    $as_unset $as_var
 
31016
  fi
 
31017
done
 
31018
 
 
31019
# Required to use basename.
 
31020
if expr a : '\(a\)' >/dev/null 2>&1; then
 
31021
  as_expr=expr
 
31022
else
 
31023
  as_expr=false
 
31024
fi
 
31025
 
 
31026
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
31027
  as_basename=basename
 
31028
else
 
31029
  as_basename=false
 
31030
fi
 
31031
 
 
31032
 
 
31033
# Name of the executable.
 
31034
as_me=`$as_basename "$0" ||
 
31035
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
31036
         X"$0" : 'X\(//\)$' \| \
 
31037
         X"$0" : 'X\(/\)$' \| \
 
31038
         .     : '\(.\)' 2>/dev/null ||
 
31039
echo X/"$0" |
 
31040
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
31041
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
31042
          /^X\/\(\/\).*/{ s//\1/; q; }
 
31043
          s/.*/./; q'`
 
31044
 
 
31045
 
 
31046
# PATH needs CR, and LINENO needs CR and PATH.
 
31047
# Avoid depending upon Character Ranges.
 
31048
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
31049
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
31050
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
31051
as_cr_digits='0123456789'
 
31052
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
31053
 
 
31054
# The user is always right.
 
31055
if test "${PATH_SEPARATOR+set}" != set; then
 
31056
  echo "#! /bin/sh" >conf$$.sh
 
31057
  echo  "exit 0"   >>conf$$.sh
 
31058
  chmod +x conf$$.sh
 
31059
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
31060
    PATH_SEPARATOR=';'
 
31061
  else
 
31062
    PATH_SEPARATOR=:
 
31063
  fi
 
31064
  rm -f conf$$.sh
 
31065
fi
 
31066
 
 
31067
 
 
31068
  as_lineno_1=$LINENO
 
31069
  as_lineno_2=$LINENO
 
31070
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
31071
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
31072
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
31073
  # Find who we are.  Look in the path if we contain no path at all
 
31074
  # relative or not.
 
31075
  case $0 in
 
31076
    *[\\/]* ) as_myself=$0 ;;
 
31077
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31078
for as_dir in $PATH
 
31079
do
 
31080
  IFS=$as_save_IFS
 
31081
  test -z "$as_dir" && as_dir=.
 
31082
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
31083
done
 
31084
 
 
31085
       ;;
 
31086
  esac
 
31087
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
31088
  # in which case we are not to be found in the path.
 
31089
  if test "x$as_myself" = x; then
 
31090
    as_myself=$0
 
31091
  fi
 
31092
  if test ! -f "$as_myself"; then
 
31093
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
31094
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
31095
   { (exit 1); exit 1; }; }
 
31096
  fi
 
31097
  case $CONFIG_SHELL in
 
31098
  '')
 
31099
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31100
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
31101
do
 
31102
  IFS=$as_save_IFS
 
31103
  test -z "$as_dir" && as_dir=.
 
31104
  for as_base in sh bash ksh sh5; do
 
31105
         case $as_dir in
 
31106
         /*)
 
31107
           if ("$as_dir/$as_base" -c '
 
31108
  as_lineno_1=$LINENO
 
31109
  as_lineno_2=$LINENO
 
31110
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
31111
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
31112
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
31113
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
31114
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
31115
             CONFIG_SHELL=$as_dir/$as_base
 
31116
             export CONFIG_SHELL
 
31117
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
31118
           fi;;
 
31119
         esac
 
31120
       done
 
31121
done
 
31122
;;
 
31123
  esac
 
31124
 
 
31125
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
31126
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
31127
  # line-number line before each line; the second 'sed' does the real
 
31128
  # work.  The second script uses 'N' to pair each line-number line
 
31129
  # with the numbered line, and appends trailing '-' during
 
31130
  # substitution so that $LINENO is not a special case at line end.
 
31131
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
31132
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
31133
  sed '=' <$as_myself |
 
31134
    sed '
 
31135
      N
 
31136
      s,$,-,
 
31137
      : loop
 
31138
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
31139
      t loop
 
31140
      s,-$,,
 
31141
      s,^['$as_cr_digits']*\n,,
 
31142
    ' >$as_me.lineno &&
 
31143
  chmod +x $as_me.lineno ||
 
31144
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
31145
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
31146
   { (exit 1); exit 1; }; }
 
31147
 
 
31148
  # Don't try to exec as it changes $[0], causing all sort of problems
 
31149
  # (the dirname of $[0] is not the place where we might find the
 
31150
  # original and so on.  Autoconf is especially sensible to this).
 
31151
  . ./$as_me.lineno
 
31152
  # Exit status is that of the last command.
 
31153
  exit
 
31154
}
 
31155
 
 
31156
 
 
31157
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
31158
  *c*,-n*) ECHO_N= ECHO_C='
 
31159
' ECHO_T='      ' ;;
 
31160
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
31161
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
31162
esac
 
31163
 
 
31164
if expr a : '\(a\)' >/dev/null 2>&1; then
 
31165
  as_expr=expr
 
31166
else
 
31167
  as_expr=false
 
31168
fi
 
31169
 
 
31170
rm -f conf$$ conf$$.exe conf$$.file
 
31171
echo >conf$$.file
 
31172
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
31173
  # We could just check for DJGPP; but this test a) works b) is more generic
 
31174
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
31175
  if test -f conf$$.exe; then
 
31176
    # Don't use ln at all; we don't have any links
 
31177
    as_ln_s='cp -p'
 
31178
  else
 
31179
    as_ln_s='ln -s'
 
31180
  fi
 
31181
elif ln conf$$.file conf$$ 2>/dev/null; then
 
31182
  as_ln_s=ln
 
31183
else
 
31184
  as_ln_s='cp -p'
 
31185
fi
 
31186
rm -f conf$$ conf$$.exe conf$$.file
 
31187
 
 
31188
if mkdir -p . 2>/dev/null; then
 
31189
  as_mkdir_p=:
 
31190
else
 
31191
  test -d ./-p && rmdir ./-p
 
31192
  as_mkdir_p=false
 
31193
fi
 
31194
 
 
31195
as_executable_p="test -f"
 
31196
 
 
31197
# Sed expression to map a string onto a valid CPP name.
 
31198
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
31199
 
 
31200
# Sed expression to map a string onto a valid variable name.
 
31201
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
31202
 
 
31203
 
 
31204
# IFS
 
31205
# We need space, tab and new line, in precisely that order.
 
31206
as_nl='
 
31207
'
 
31208
IFS="   $as_nl"
 
31209
 
 
31210
# CDPATH.
 
31211
$as_unset CDPATH
 
31212
 
 
31213
exec 6>&1
 
31214
 
 
31215
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
31216
# report actual input values of CONFIG_FILES etc. instead of their
 
31217
# values after options handling.  Logging --version etc. is OK.
 
31218
exec 5>>config.log
 
31219
{
 
31220
  echo
 
31221
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
31222
## Running $as_me. ##
 
31223
_ASBOX
 
31224
} >&5
 
31225
cat >&5 <<_CSEOF
 
31226
 
 
31227
This file was extended by $as_me, which was
 
31228
generated by GNU Autoconf 2.59.  Invocation command line was
 
31229
 
 
31230
  CONFIG_FILES    = $CONFIG_FILES
 
31231
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
31232
  CONFIG_LINKS    = $CONFIG_LINKS
 
31233
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
31234
  $ $0 $@
 
31235
 
 
31236
_CSEOF
 
31237
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
31238
echo >&5
 
31239
_ACEOF
 
31240
 
 
31241
# Files that config.status was made for.
 
31242
if test -n "$ac_config_files"; then
 
31243
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
31244
fi
 
31245
 
 
31246
if test -n "$ac_config_headers"; then
 
31247
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
31248
fi
 
31249
 
 
31250
if test -n "$ac_config_links"; then
 
31251
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
31252
fi
 
31253
 
 
31254
if test -n "$ac_config_commands"; then
 
31255
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
31256
fi
 
31257
 
 
31258
cat >>$CONFIG_STATUS <<\_ACEOF
 
31259
 
 
31260
ac_cs_usage="\
 
31261
\`$as_me' instantiates files from templates according to the
 
31262
current configuration.
 
31263
 
 
31264
Usage: $0 [OPTIONS] [FILE]...
 
31265
 
 
31266
  -h, --help       print this help, then exit
 
31267
  -V, --version    print version number, then exit
 
31268
  -q, --quiet      do not print progress messages
 
31269
  -d, --debug      don't remove temporary files
 
31270
      --recheck    update $as_me by reconfiguring in the same conditions
 
31271
  --file=FILE[:TEMPLATE]
 
31272
                   instantiate the configuration file FILE
 
31273
  --header=FILE[:TEMPLATE]
 
31274
                   instantiate the configuration header FILE
 
31275
 
 
31276
Configuration files:
 
31277
$config_files
 
31278
 
 
31279
Configuration headers:
 
31280
$config_headers
 
31281
 
 
31282
Configuration commands:
 
31283
$config_commands
 
31284
 
 
31285
Report bugs to <bug-autoconf@gnu.org>."
 
31286
_ACEOF
 
31287
 
 
31288
cat >>$CONFIG_STATUS <<_ACEOF
 
31289
ac_cs_version="\\
 
31290
config.status
 
31291
configured by $0, generated by GNU Autoconf 2.59,
 
31292
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
31293
 
 
31294
Copyright (C) 2003 Free Software Foundation, Inc.
 
31295
This config.status script is free software; the Free Software Foundation
 
31296
gives unlimited permission to copy, distribute and modify it."
 
31297
srcdir=$srcdir
 
31298
INSTALL="$INSTALL"
 
31299
_ACEOF
 
31300
 
 
31301
cat >>$CONFIG_STATUS <<\_ACEOF
 
31302
# If no file are specified by the user, then we need to provide default
 
31303
# value.  By we need to know if files were specified by the user.
 
31304
ac_need_defaults=:
 
31305
while test $# != 0
 
31306
do
 
31307
  case $1 in
 
31308
  --*=*)
 
31309
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
31310
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
31311
    ac_shift=:
 
31312
    ;;
 
31313
  -*)
 
31314
    ac_option=$1
 
31315
    ac_optarg=$2
 
31316
    ac_shift=shift
 
31317
    ;;
 
31318
  *) # This is not an option, so the user has probably given explicit
 
31319
     # arguments.
 
31320
     ac_option=$1
 
31321
     ac_need_defaults=false;;
 
31322
  esac
 
31323
 
 
31324
  case $ac_option in
 
31325
  # Handling of the options.
 
31326
_ACEOF
 
31327
cat >>$CONFIG_STATUS <<\_ACEOF
 
31328
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
31329
    ac_cs_recheck=: ;;
 
31330
  --version | --vers* | -V )
 
31331
    echo "$ac_cs_version"; exit 0 ;;
 
31332
  --he | --h)
 
31333
    # Conflict between --help and --header
 
31334
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
31335
Try \`$0 --help' for more information." >&5
 
31336
echo "$as_me: error: ambiguous option: $1
 
31337
Try \`$0 --help' for more information." >&2;}
 
31338
   { (exit 1); exit 1; }; };;
 
31339
  --help | --hel | -h )
 
31340
    echo "$ac_cs_usage"; exit 0 ;;
 
31341
  --debug | --d* | -d )
 
31342
    debug=: ;;
 
31343
  --file | --fil | --fi | --f )
 
31344
    $ac_shift
 
31345
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
31346
    ac_need_defaults=false;;
 
31347
  --header | --heade | --head | --hea )
 
31348
    $ac_shift
 
31349
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
31350
    ac_need_defaults=false;;
 
31351
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
31352
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
31353
    ac_cs_silent=: ;;
 
31354
 
 
31355
  # This is an error.
 
31356
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
31357
Try \`$0 --help' for more information." >&5
 
31358
echo "$as_me: error: unrecognized option: $1
 
31359
Try \`$0 --help' for more information." >&2;}
 
31360
   { (exit 1); exit 1; }; } ;;
 
31361
 
 
31362
  *) ac_config_targets="$ac_config_targets $1" ;;
 
31363
 
 
31364
  esac
 
31365
  shift
 
31366
done
 
31367
 
 
31368
ac_configure_extra_args=
 
31369
 
 
31370
if $ac_cs_silent; then
 
31371
  exec 6>/dev/null
 
31372
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
31373
fi
 
31374
 
 
31375
_ACEOF
 
31376
cat >>$CONFIG_STATUS <<_ACEOF
 
31377
if \$ac_cs_recheck; then
 
31378
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
31379
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
31380
fi
 
31381
 
 
31382
_ACEOF
 
31383
 
 
31384
cat >>$CONFIG_STATUS <<_ACEOF
 
31385
#
 
31386
# INIT-COMMANDS section.
 
31387
#
 
31388
 
 
31389
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
31390
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
31391
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
31392
    # from automake.
 
31393
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
31394
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
31395
    LINGUAS="${LINGUAS-%UNSET%}"
 
31396
 
 
31397
 
 
31398
_ACEOF
 
31399
 
 
31400
 
 
31401
 
 
31402
cat >>$CONFIG_STATUS <<\_ACEOF
 
31403
for ac_config_target in $ac_config_targets
 
31404
do
 
31405
  case "$ac_config_target" in
 
31406
  # Handling of arguments.
 
31407
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
31408
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
31409
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
31410
  "intl-java/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
 
31411
  "intl-csharp/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
 
31412
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
31413
  "lib/javacomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javacomp.sh:../gettext-tools/lib/javacomp.sh.in" ;;
 
31414
  "lib/csharpcomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpcomp.sh:../gettext-tools/lib/csharpcomp.sh.in" ;;
 
31415
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
31416
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
31417
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
31418
  "man/x-to-1" ) CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
 
31419
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
31420
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
31421
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
31422
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
31423
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
31424
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
31425
   { (exit 1); exit 1; }; };;
 
31426
  esac
 
31427
done
 
31428
 
 
31429
# If the user did not use the arguments to specify the items to instantiate,
 
31430
# then the envvar interface is used.  Set only those that are not.
 
31431
# We use the long form for the default assignment because of an extremely
 
31432
# bizarre bug on SunOS 4.1.3.
 
31433
if $ac_need_defaults; then
 
31434
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
31435
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
31436
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
31437
fi
 
31438
 
 
31439
# Have a temporary directory for convenience.  Make it in the build tree
 
31440
# simply because there is no reason to put it here, and in addition,
 
31441
# creating and moving files from /tmp can sometimes cause problems.
 
31442
# Create a temporary directory, and hook for its removal unless debugging.
 
31443
$debug ||
 
31444
{
 
31445
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
31446
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
31447
}
 
31448
 
 
31449
# Create a (secure) tmp directory for tmp files.
 
31450
 
 
31451
{
 
31452
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
31453
  test -n "$tmp" && test -d "$tmp"
 
31454
}  ||
 
31455
{
 
31456
  tmp=./confstat$$-$RANDOM
 
31457
  (umask 077 && mkdir $tmp)
 
31458
} ||
 
31459
{
 
31460
   echo "$me: cannot create a temporary directory in ." >&2
 
31461
   { (exit 1); exit 1; }
 
31462
}
 
31463
 
 
31464
_ACEOF
 
31465
 
 
31466
cat >>$CONFIG_STATUS <<_ACEOF
 
31467
 
 
31468
#
 
31469
# CONFIG_FILES section.
 
31470
#
 
31471
 
 
31472
# No need to generate the scripts if there are no CONFIG_FILES.
 
31473
# This happens for instance when ./config.status config.h
 
31474
if test -n "\$CONFIG_FILES"; then
 
31475
  # Protect against being on the right side of a sed subst in config.status.
 
31476
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
31477
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
31478
s,@SHELL@,$SHELL,;t t
 
31479
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
31480
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
31481
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
31482
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
31483
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
31484
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
31485
s,@exec_prefix@,$exec_prefix,;t t
 
31486
s,@prefix@,$prefix,;t t
 
31487
s,@program_transform_name@,$program_transform_name,;t t
 
31488
s,@bindir@,$bindir,;t t
 
31489
s,@sbindir@,$sbindir,;t t
 
31490
s,@libexecdir@,$libexecdir,;t t
 
31491
s,@datadir@,$datadir,;t t
 
31492
s,@sysconfdir@,$sysconfdir,;t t
 
31493
s,@sharedstatedir@,$sharedstatedir,;t t
 
31494
s,@localstatedir@,$localstatedir,;t t
 
31495
s,@libdir@,$libdir,;t t
 
31496
s,@includedir@,$includedir,;t t
 
31497
s,@oldincludedir@,$oldincludedir,;t t
 
31498
s,@infodir@,$infodir,;t t
 
31499
s,@mandir@,$mandir,;t t
 
31500
s,@build_alias@,$build_alias,;t t
 
31501
s,@host_alias@,$host_alias,;t t
 
31502
s,@target_alias@,$target_alias,;t t
 
31503
s,@DEFS@,$DEFS,;t t
 
31504
s,@ECHO_C@,$ECHO_C,;t t
 
31505
s,@ECHO_N@,$ECHO_N,;t t
 
31506
s,@ECHO_T@,$ECHO_T,;t t
 
31507
s,@LIBS@,$LIBS,;t t
 
31508
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
31509
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
31510
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
31511
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
31512
s,@PACKAGE@,$PACKAGE,;t t
 
31513
s,@VERSION@,$VERSION,;t t
 
31514
s,@ACLOCAL@,$ACLOCAL,;t t
 
31515
s,@AUTOCONF@,$AUTOCONF,;t t
 
31516
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
31517
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
31518
s,@MAKEINFO@,$MAKEINFO,;t t
 
31519
s,@AMTAR@,$AMTAR,;t t
 
31520
s,@install_sh@,$install_sh,;t t
 
31521
s,@STRIP@,$STRIP,;t t
 
31522
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
31523
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
31524
s,@mkdir_p@,$mkdir_p,;t t
 
31525
s,@AWK@,$AWK,;t t
 
31526
s,@SET_MAKE@,$SET_MAKE,;t t
 
31527
s,@am__leading_dot@,$am__leading_dot,;t t
 
31528
s,@docdir@,$docdir,;t t
 
31529
s,@CC@,$CC,;t t
 
31530
s,@CFLAGS@,$CFLAGS,;t t
 
31531
s,@LDFLAGS@,$LDFLAGS,;t t
 
31532
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
31533
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
31534
s,@EXEEXT@,$EXEEXT,;t t
 
31535
s,@OBJEXT@,$OBJEXT,;t t
 
31536
s,@DEPDIR@,$DEPDIR,;t t
 
31537
s,@am__include@,$am__include,;t t
 
31538
s,@am__quote@,$am__quote,;t t
 
31539
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
31540
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
31541
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
31542
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
31543
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
31544
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
31545
s,@YACC@,$YACC,;t t
 
31546
s,@CPP@,$CPP,;t t
 
31547
s,@EGREP@,$EGREP,;t t
 
31548
s,@HAVE_GCJ_IN_PATH@,$HAVE_GCJ_IN_PATH,;t t
 
31549
s,@HAVE_JAVAC_IN_PATH@,$HAVE_JAVAC_IN_PATH,;t t
 
31550
s,@HAVE_JIKES_IN_PATH@,$HAVE_JIKES_IN_PATH,;t t
 
31551
s,@JAVAC@,$JAVAC,;t t
 
31552
s,@CLASSPATH@,$CLASSPATH,;t t
 
31553
s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
 
31554
s,@HAVE_GCJ_C@,$HAVE_GCJ_C,;t t
 
31555
s,@HAVE_JAVAC@,$HAVE_JAVAC,;t t
 
31556
s,@HAVE_JIKES@,$HAVE_JIKES,;t t
 
31557
s,@JAR@,$JAR,;t t
 
31558
s,@BUILDJAVA@,$BUILDJAVA,;t t
 
31559
s,@CSHARP_CHOICE@,$CSHARP_CHOICE,;t t
 
31560
s,@HAVE_CSCC_IN_PATH@,$HAVE_CSCC_IN_PATH,;t t
 
31561
s,@HAVE_MCS_IN_PATH@,$HAVE_MCS_IN_PATH,;t t
 
31562
s,@HAVE_CSC_IN_PATH@,$HAVE_CSC_IN_PATH,;t t
 
31563
s,@HAVE_CSCC@,$HAVE_CSCC,;t t
 
31564
s,@HAVE_MCS@,$HAVE_MCS,;t t
 
31565
s,@HAVE_CSC@,$HAVE_CSC,;t t
 
31566
s,@BUILDCSHARP@,$BUILDCSHARP,;t t
 
31567
s,@build@,$build,;t t
 
31568
s,@build_cpu@,$build_cpu,;t t
 
31569
s,@build_vendor@,$build_vendor,;t t
 
31570
s,@build_os@,$build_os,;t t
 
31571
s,@host@,$host,;t t
 
31572
s,@host_cpu@,$host_cpu,;t t
 
31573
s,@host_vendor@,$host_vendor,;t t
 
31574
s,@host_os@,$host_os,;t t
 
31575
s,@LN_S@,$LN_S,;t t
 
31576
s,@ECHO@,$ECHO,;t t
 
31577
s,@AR@,$AR,;t t
 
31578
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
31579
s,@RANLIB@,$RANLIB,;t t
 
31580
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
31581
s,@DLLTOOL@,$DLLTOOL,;t t
 
31582
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
31583
s,@AS@,$AS,;t t
 
31584
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
31585
s,@OBJDUMP@,$OBJDUMP,;t t
 
31586
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
31587
s,@CXX@,$CXX,;t t
 
31588
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
31589
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
31590
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
31591
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
31592
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
31593
s,@CXXCPP@,$CXXCPP,;t t
 
31594
s,@F77@,$F77,;t t
 
31595
s,@FFLAGS@,$FFLAGS,;t t
 
31596
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
31597
s,@LIBTOOL@,$LIBTOOL,;t t
 
31598
s,@RELOCATABLE@,$RELOCATABLE,;t t
 
31599
s,@LIBOBJS@,$LIBOBJS,;t t
 
31600
s,@SET_RELOCATABLE@,$SET_RELOCATABLE,;t t
 
31601
s,@RELOCATABLE_VIA_LD_TRUE@,$RELOCATABLE_VIA_LD_TRUE,;t t
 
31602
s,@RELOCATABLE_VIA_LD_FALSE@,$RELOCATABLE_VIA_LD_FALSE,;t t
 
31603
s,@STDBOOL_H@,$STDBOOL_H,;t t
 
31604
s,@HAVE__BOOL@,$HAVE__BOOL,;t t
 
31605
s,@ALLOCA@,$ALLOCA,;t t
 
31606
s,@ALLOCA_H@,$ALLOCA_H,;t t
 
31607
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
31608
s,@USE_NLS@,$USE_NLS,;t t
 
31609
s,@MSGFMT@,$MSGFMT,;t t
 
31610
s,@GMSGFMT@,$GMSGFMT,;t t
 
31611
s,@XGETTEXT@,$XGETTEXT,;t t
 
31612
s,@MSGMERGE@,$MSGMERGE,;t t
 
31613
s,@GLIBC21@,$GLIBC21,;t t
 
31614
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
 
31615
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
 
31616
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
 
31617
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
 
31618
s,@LIBICONV@,$LIBICONV,;t t
 
31619
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
31620
s,@INTLBISON@,$INTLBISON,;t t
 
31621
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
 
31622
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
 
31623
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
31624
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
31625
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
31626
s,@GENCAT@,$GENCAT,;t t
 
31627
s,@INTLOBJS@,$INTLOBJS,;t t
 
31628
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
 
31629
s,@INTLLIBS@,$INTLLIBS,;t t
 
31630
s,@LIBINTL@,$LIBINTL,;t t
 
31631
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
31632
s,@POSUB@,$POSUB,;t t
 
31633
s,@PERL@,$PERL,;t t
 
31634
s,@CROSS_COMPILING@,$CROSS_COMPILING,;t t
 
31635
s,@SUBDIR_libasprintf@,$SUBDIR_libasprintf,;t t
 
31636
s,@subdirs@,$subdirs,;t t
 
31637
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
31638
CEOF
 
31639
 
 
31640
_ACEOF
 
31641
 
 
31642
  cat >>$CONFIG_STATUS <<\_ACEOF
 
31643
  # Split the substitutions into bite-sized pieces for seds with
 
31644
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
31645
  ac_max_sed_lines=48
 
31646
  ac_sed_frag=1 # Number of current file.
 
31647
  ac_beg=1 # First line for current file.
 
31648
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
31649
  ac_more_lines=:
 
31650
  ac_sed_cmds=
 
31651
  while $ac_more_lines; do
 
31652
    if test $ac_beg -gt 1; then
 
31653
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
31654
    else
 
31655
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
31656
    fi
 
31657
    if test ! -s $tmp/subs.frag; then
 
31658
      ac_more_lines=false
 
31659
    else
 
31660
      # The purpose of the label and of the branching condition is to
 
31661
      # speed up the sed processing (if there are no `@' at all, there
 
31662
      # is no need to browse any of the substitutions).
 
31663
      # These are the two extra sed commands mentioned above.
 
31664
      (echo ':t
 
31665
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
31666
      if test -z "$ac_sed_cmds"; then
 
31667
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
31668
      else
 
31669
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
31670
      fi
 
31671
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
31672
      ac_beg=$ac_end
 
31673
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
31674
    fi
 
31675
  done
 
31676
  if test -z "$ac_sed_cmds"; then
 
31677
    ac_sed_cmds=cat
 
31678
  fi
 
31679
fi # test -n "$CONFIG_FILES"
 
31680
 
 
31681
_ACEOF
 
31682
cat >>$CONFIG_STATUS <<\_ACEOF
 
31683
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
31684
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
31685
  case $ac_file in
 
31686
  - | *:- | *:-:* ) # input from stdin
 
31687
        cat >$tmp/stdin
 
31688
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
31689
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
31690
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
31691
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
31692
  * )   ac_file_in=$ac_file.in ;;
 
31693
  esac
 
31694
 
 
31695
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
31696
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
31697
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31698
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
31699
         X"$ac_file" : 'X\(//\)$' \| \
 
31700
         X"$ac_file" : 'X\(/\)' \| \
 
31701
         .     : '\(.\)' 2>/dev/null ||
 
31702
echo X"$ac_file" |
 
31703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
31704
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
31705
          /^X\(\/\/\)$/{ s//\1/; q; }
 
31706
          /^X\(\/\).*/{ s//\1/; q; }
 
31707
          s/.*/./; q'`
 
31708
  { if $as_mkdir_p; then
 
31709
    mkdir -p "$ac_dir"
 
31710
  else
 
31711
    as_dir="$ac_dir"
 
31712
    as_dirs=
 
31713
    while test ! -d "$as_dir"; do
 
31714
      as_dirs="$as_dir $as_dirs"
 
31715
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
31716
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31717
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
31718
         X"$as_dir" : 'X\(//\)$' \| \
 
31719
         X"$as_dir" : 'X\(/\)' \| \
 
31720
         .     : '\(.\)' 2>/dev/null ||
 
31721
echo X"$as_dir" |
 
31722
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
31723
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
31724
          /^X\(\/\/\)$/{ s//\1/; q; }
 
31725
          /^X\(\/\).*/{ s//\1/; q; }
 
31726
          s/.*/./; q'`
 
31727
    done
 
31728
    test ! -n "$as_dirs" || mkdir $as_dirs
 
31729
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
31730
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
31731
   { (exit 1); exit 1; }; }; }
 
31732
 
 
31733
  ac_builddir=.
 
31734
 
 
31735
if test "$ac_dir" != .; then
 
31736
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
31737
  # A "../" for each directory in $ac_dir_suffix.
 
31738
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
31739
else
 
31740
  ac_dir_suffix= ac_top_builddir=
 
31741
fi
 
31742
 
 
31743
case $srcdir in
 
31744
  .)  # No --srcdir option.  We are building in place.
 
31745
    ac_srcdir=.
 
31746
    if test -z "$ac_top_builddir"; then
 
31747
       ac_top_srcdir=.
 
31748
    else
 
31749
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
31750
    fi ;;
 
31751
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
31752
    ac_srcdir=$srcdir$ac_dir_suffix;
 
31753
    ac_top_srcdir=$srcdir ;;
 
31754
  *) # Relative path.
 
31755
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
31756
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
31757
esac
 
31758
 
 
31759
# Do not use `cd foo && pwd` to compute absolute paths, because
 
31760
# the directories may not exist.
 
31761
case `pwd` in
 
31762
.) ac_abs_builddir="$ac_dir";;
 
31763
*)
 
31764
  case "$ac_dir" in
 
31765
  .) ac_abs_builddir=`pwd`;;
 
31766
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
31767
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
31768
  esac;;
 
31769
esac
 
31770
case $ac_abs_builddir in
 
31771
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
31772
*)
 
31773
  case ${ac_top_builddir}. in
 
31774
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
31775
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
31776
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
31777
  esac;;
 
31778
esac
 
31779
case $ac_abs_builddir in
 
31780
.) ac_abs_srcdir=$ac_srcdir;;
 
31781
*)
 
31782
  case $ac_srcdir in
 
31783
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
31784
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
31785
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
31786
  esac;;
 
31787
esac
 
31788
case $ac_abs_builddir in
 
31789
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
31790
*)
 
31791
  case $ac_top_srcdir in
 
31792
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
31793
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
31794
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
31795
  esac;;
 
31796
esac
 
31797
 
 
31798
 
 
31799
  case $INSTALL in
 
31800
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
31801
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
31802
  esac
 
31803
 
 
31804
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
31805
  # use $as_me), people would be surprised to read:
 
31806
  #    /* config.h.  Generated by config.status.  */
 
31807
  if test x"$ac_file" = x-; then
 
31808
    configure_input=
 
31809
  else
 
31810
    configure_input="$ac_file.  "
 
31811
  fi
 
31812
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
31813
                                     sed 's,.*/,,'` by configure."
 
31814
 
 
31815
  # First look for the input files in the build tree, otherwise in the
 
31816
  # src tree.
 
31817
  ac_file_inputs=`IFS=:
 
31818
    for f in $ac_file_in; do
 
31819
      case $f in
 
31820
      -) echo $tmp/stdin ;;
 
31821
      [\\/$]*)
 
31822
         # Absolute (can't be DOS-style, as IFS=:)
 
31823
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
31824
echo "$as_me: error: cannot find input file: $f" >&2;}
 
31825
   { (exit 1); exit 1; }; }
 
31826
         echo "$f";;
 
31827
      *) # Relative
 
31828
         if test -f "$f"; then
 
31829
           # Build tree
 
31830
           echo "$f"
 
31831
         elif test -f "$srcdir/$f"; then
 
31832
           # Source tree
 
31833
           echo "$srcdir/$f"
 
31834
         else
 
31835
           # /dev/null tree
 
31836
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
31837
echo "$as_me: error: cannot find input file: $f" >&2;}
 
31838
   { (exit 1); exit 1; }; }
 
31839
         fi;;
 
31840
      esac
 
31841
    done` || { (exit 1); exit 1; }
 
31842
 
 
31843
  if test x"$ac_file" != x-; then
 
31844
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
31845
echo "$as_me: creating $ac_file" >&6;}
 
31846
    rm -f "$ac_file"
 
31847
  fi
 
31848
_ACEOF
 
31849
cat >>$CONFIG_STATUS <<_ACEOF
 
31850
  sed "$ac_vpsub
 
31851
$extrasub
 
31852
_ACEOF
 
31853
cat >>$CONFIG_STATUS <<\_ACEOF
 
31854
:t
 
31855
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
31856
s,@configure_input@,$configure_input,;t t
 
31857
s,@srcdir@,$ac_srcdir,;t t
 
31858
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
31859
s,@top_srcdir@,$ac_top_srcdir,;t t
 
31860
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
31861
s,@builddir@,$ac_builddir,;t t
 
31862
s,@abs_builddir@,$ac_abs_builddir,;t t
 
31863
s,@top_builddir@,$ac_top_builddir,;t t
 
31864
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
31865
s,@INSTALL@,$ac_INSTALL,;t t
 
31866
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
31867
  rm -f $tmp/stdin
 
31868
  if test x"$ac_file" != x-; then
 
31869
    mv $tmp/out $ac_file
 
31870
  else
 
31871
    cat $tmp/out
 
31872
    rm -f $tmp/out
 
31873
  fi
 
31874
 
 
31875
  # Run the commands associated with the file.
 
31876
  case $ac_file in
 
31877
    lib/Makefile )
 
31878
  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
 
31879
  mv $ac_file.tmp $ac_file
 
31880
 ;;
 
31881
    src/Makefile )
 
31882
  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
 
31883
  mv $ac_file.tmp $ac_file
 
31884
 ;;
 
31885
    man/Makefile )
 
31886
  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
 
31887
  mv $ac_file.tmp $ac_file
 
31888
 ;;
 
31889
  esac
 
31890
done
 
31891
_ACEOF
 
31892
cat >>$CONFIG_STATUS <<\_ACEOF
 
31893
 
 
31894
#
 
31895
# CONFIG_HEADER section.
 
31896
#
 
31897
 
 
31898
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
31899
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
31900
#
 
31901
# ac_d sets the value in "#define NAME VALUE" lines.
 
31902
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
31903
ac_dB='[         ].*$,\1#\2'
 
31904
ac_dC=' '
 
31905
ac_dD=',;t'
 
31906
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
31907
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
31908
ac_uB='$,\1#\2define\3'
 
31909
ac_uC=' '
 
31910
ac_uD=',;t'
 
31911
 
 
31912
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
31913
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
31914
  case $ac_file in
 
31915
  - | *:- | *:-:* ) # input from stdin
 
31916
        cat >$tmp/stdin
 
31917
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
31918
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
31919
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
31920
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
31921
  * )   ac_file_in=$ac_file.in ;;
 
31922
  esac
 
31923
 
 
31924
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
31925
echo "$as_me: creating $ac_file" >&6;}
 
31926
 
 
31927
  # First look for the input files in the build tree, otherwise in the
 
31928
  # src tree.
 
31929
  ac_file_inputs=`IFS=:
 
31930
    for f in $ac_file_in; do
 
31931
      case $f in
 
31932
      -) echo $tmp/stdin ;;
 
31933
      [\\/$]*)
 
31934
         # Absolute (can't be DOS-style, as IFS=:)
 
31935
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
31936
echo "$as_me: error: cannot find input file: $f" >&2;}
 
31937
   { (exit 1); exit 1; }; }
 
31938
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
31939
         echo "$f";;
 
31940
      *) # Relative
 
31941
         if test -f "$f"; then
 
31942
           # Build tree
 
31943
           echo "$f"
 
31944
         elif test -f "$srcdir/$f"; then
 
31945
           # Source tree
 
31946
           echo "$srcdir/$f"
 
31947
         else
 
31948
           # /dev/null tree
 
31949
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
31950
echo "$as_me: error: cannot find input file: $f" >&2;}
 
31951
   { (exit 1); exit 1; }; }
 
31952
         fi;;
 
31953
      esac
 
31954
    done` || { (exit 1); exit 1; }
 
31955
  # Remove the trailing spaces.
 
31956
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
31957
 
 
31958
_ACEOF
 
31959
 
 
31960
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
31961
# `conftest.undefs', that substitutes the proper values into
 
31962
# config.h.in to produce config.h.  The first handles `#define'
 
31963
# templates, and the second `#undef' templates.
 
31964
# And first: Protect against being on the right side of a sed subst in
 
31965
# config.status.  Protect against being in an unquoted here document
 
31966
# in config.status.
 
31967
rm -f conftest.defines conftest.undefs
 
31968
# Using a here document instead of a string reduces the quoting nightmare.
 
31969
# Putting comments in sed scripts is not portable.
 
31970
#
 
31971
# `end' is used to avoid that the second main sed command (meant for
 
31972
# 0-ary CPP macros) applies to n-ary macro definitions.
 
31973
# See the Autoconf documentation for `clear'.
 
31974
cat >confdef2sed.sed <<\_ACEOF
 
31975
s/[\\&,]/\\&/g
 
31976
s,[\\$`],\\&,g
 
31977
t clear
 
31978
: clear
 
31979
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
31980
t end
 
31981
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
31982
: end
 
31983
_ACEOF
 
31984
# If some macros were called several times there might be several times
 
31985
# the same #defines, which is useless.  Nevertheless, we may not want to
 
31986
# sort them, since we want the *last* AC-DEFINE to be honored.
 
31987
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
31988
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
31989
rm -f confdef2sed.sed
 
31990
 
 
31991
# This sed command replaces #undef with comments.  This is necessary, for
 
31992
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
31993
# on some systems where configure will not decide to define it.
 
31994
cat >>conftest.undefs <<\_ACEOF
 
31995
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
31996
_ACEOF
 
31997
 
 
31998
# Break up conftest.defines because some shells have a limit on the size
 
31999
# of here documents, and old seds have small limits too (100 cmds).
 
32000
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
32001
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
32002
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
32003
echo '  :' >>$CONFIG_STATUS
 
32004
rm -f conftest.tail
 
32005
while grep . conftest.defines >/dev/null
 
32006
do
 
32007
  # Write a limited-size here document to $tmp/defines.sed.
 
32008
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
32009
  # Speed up: don't consider the non `#define' lines.
 
32010
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
32011
  # Work around the forget-to-reset-the-flag bug.
 
32012
  echo 't clr' >>$CONFIG_STATUS
 
32013
  echo ': clr' >>$CONFIG_STATUS
 
32014
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
32015
  echo 'CEOF
 
32016
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
32017
  rm -f $tmp/in
 
32018
  mv $tmp/out $tmp/in
 
32019
' >>$CONFIG_STATUS
 
32020
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
32021
  rm -f conftest.defines
 
32022
  mv conftest.tail conftest.defines
 
32023
done
 
32024
rm -f conftest.defines
 
32025
echo '  fi # grep' >>$CONFIG_STATUS
 
32026
echo >>$CONFIG_STATUS
 
32027
 
 
32028
# Break up conftest.undefs because some shells have a limit on the size
 
32029
# of here documents, and old seds have small limits too (100 cmds).
 
32030
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
32031
rm -f conftest.tail
 
32032
while grep . conftest.undefs >/dev/null
 
32033
do
 
32034
  # Write a limited-size here document to $tmp/undefs.sed.
 
32035
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
32036
  # Speed up: don't consider the non `#undef'
 
32037
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
32038
  # Work around the forget-to-reset-the-flag bug.
 
32039
  echo 't clr' >>$CONFIG_STATUS
 
32040
  echo ': clr' >>$CONFIG_STATUS
 
32041
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
32042
  echo 'CEOF
 
32043
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
32044
  rm -f $tmp/in
 
32045
  mv $tmp/out $tmp/in
 
32046
' >>$CONFIG_STATUS
 
32047
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
32048
  rm -f conftest.undefs
 
32049
  mv conftest.tail conftest.undefs
 
32050
done
 
32051
rm -f conftest.undefs
 
32052
 
 
32053
cat >>$CONFIG_STATUS <<\_ACEOF
 
32054
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
32055
  # use $as_me), people would be surprised to read:
 
32056
  #    /* config.h.  Generated by config.status.  */
 
32057
  if test x"$ac_file" = x-; then
 
32058
    echo "/* Generated by configure.  */" >$tmp/config.h
 
32059
  else
 
32060
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
32061
  fi
 
32062
  cat $tmp/in >>$tmp/config.h
 
32063
  rm -f $tmp/in
 
32064
  if test x"$ac_file" != x-; then
 
32065
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
32066
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
32067
echo "$as_me: $ac_file is unchanged" >&6;}
 
32068
    else
 
32069
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
32070
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32071
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
32072
         X"$ac_file" : 'X\(//\)$' \| \
 
32073
         X"$ac_file" : 'X\(/\)' \| \
 
32074
         .     : '\(.\)' 2>/dev/null ||
 
32075
echo X"$ac_file" |
 
32076
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32077
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32078
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32079
          /^X\(\/\).*/{ s//\1/; q; }
 
32080
          s/.*/./; q'`
 
32081
      { if $as_mkdir_p; then
 
32082
    mkdir -p "$ac_dir"
 
32083
  else
 
32084
    as_dir="$ac_dir"
 
32085
    as_dirs=
 
32086
    while test ! -d "$as_dir"; do
 
32087
      as_dirs="$as_dir $as_dirs"
 
32088
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
32089
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32090
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32091
         X"$as_dir" : 'X\(//\)$' \| \
 
32092
         X"$as_dir" : 'X\(/\)' \| \
 
32093
         .     : '\(.\)' 2>/dev/null ||
 
32094
echo X"$as_dir" |
 
32095
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32096
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32097
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32098
          /^X\(\/\).*/{ s//\1/; q; }
 
32099
          s/.*/./; q'`
 
32100
    done
 
32101
    test ! -n "$as_dirs" || mkdir $as_dirs
 
32102
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
32103
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
32104
   { (exit 1); exit 1; }; }; }
 
32105
 
 
32106
      rm -f $ac_file
 
32107
      mv $tmp/config.h $ac_file
 
32108
    fi
 
32109
  else
 
32110
    cat $tmp/config.h
 
32111
    rm -f $tmp/config.h
 
32112
  fi
 
32113
# Compute $ac_file's index in $config_headers.
 
32114
_am_stamp_count=1
 
32115
for _am_header in $config_headers :; do
 
32116
  case $_am_header in
 
32117
    $ac_file | $ac_file:* )
 
32118
      break ;;
 
32119
    * )
 
32120
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
32121
  esac
 
32122
done
 
32123
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
32124
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32125
         X$ac_file : 'X\(//\)[^/]' \| \
 
32126
         X$ac_file : 'X\(//\)$' \| \
 
32127
         X$ac_file : 'X\(/\)' \| \
 
32128
         .     : '\(.\)' 2>/dev/null ||
 
32129
echo X$ac_file |
 
32130
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32131
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32132
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32133
          /^X\(\/\).*/{ s//\1/; q; }
 
32134
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
32135
done
 
32136
_ACEOF
 
32137
cat >>$CONFIG_STATUS <<\_ACEOF
 
32138
 
 
32139
#
 
32140
# CONFIG_COMMANDS section.
 
32141
#
 
32142
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
32143
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
32144
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
32145
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
32146
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32147
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
32148
         X"$ac_dest" : 'X\(//\)$' \| \
 
32149
         X"$ac_dest" : 'X\(/\)' \| \
 
32150
         .     : '\(.\)' 2>/dev/null ||
 
32151
echo X"$ac_dest" |
 
32152
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32153
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32154
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32155
          /^X\(\/\).*/{ s//\1/; q; }
 
32156
          s/.*/./; q'`
 
32157
  { if $as_mkdir_p; then
 
32158
    mkdir -p "$ac_dir"
 
32159
  else
 
32160
    as_dir="$ac_dir"
 
32161
    as_dirs=
 
32162
    while test ! -d "$as_dir"; do
 
32163
      as_dirs="$as_dir $as_dirs"
 
32164
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
32165
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32166
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32167
         X"$as_dir" : 'X\(//\)$' \| \
 
32168
         X"$as_dir" : 'X\(/\)' \| \
 
32169
         .     : '\(.\)' 2>/dev/null ||
 
32170
echo X"$as_dir" |
 
32171
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32172
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32173
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32174
          /^X\(\/\).*/{ s//\1/; q; }
 
32175
          s/.*/./; q'`
 
32176
    done
 
32177
    test ! -n "$as_dirs" || mkdir $as_dirs
 
32178
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
32179
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
32180
   { (exit 1); exit 1; }; }; }
 
32181
 
 
32182
  ac_builddir=.
 
32183
 
 
32184
if test "$ac_dir" != .; then
 
32185
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
32186
  # A "../" for each directory in $ac_dir_suffix.
 
32187
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
32188
else
 
32189
  ac_dir_suffix= ac_top_builddir=
 
32190
fi
 
32191
 
 
32192
case $srcdir in
 
32193
  .)  # No --srcdir option.  We are building in place.
 
32194
    ac_srcdir=.
 
32195
    if test -z "$ac_top_builddir"; then
 
32196
       ac_top_srcdir=.
 
32197
    else
 
32198
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
32199
    fi ;;
 
32200
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
32201
    ac_srcdir=$srcdir$ac_dir_suffix;
 
32202
    ac_top_srcdir=$srcdir ;;
 
32203
  *) # Relative path.
 
32204
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
32205
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
32206
esac
 
32207
 
 
32208
# Do not use `cd foo && pwd` to compute absolute paths, because
 
32209
# the directories may not exist.
 
32210
case `pwd` in
 
32211
.) ac_abs_builddir="$ac_dir";;
 
32212
*)
 
32213
  case "$ac_dir" in
 
32214
  .) ac_abs_builddir=`pwd`;;
 
32215
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
32216
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
32217
  esac;;
 
32218
esac
 
32219
case $ac_abs_builddir in
 
32220
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32221
*)
 
32222
  case ${ac_top_builddir}. in
 
32223
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
32224
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32225
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
32226
  esac;;
 
32227
esac
 
32228
case $ac_abs_builddir in
 
32229
.) ac_abs_srcdir=$ac_srcdir;;
 
32230
*)
 
32231
  case $ac_srcdir in
 
32232
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
32233
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
32234
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
32235
  esac;;
 
32236
esac
 
32237
case $ac_abs_builddir in
 
32238
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32239
*)
 
32240
  case $ac_top_srcdir in
 
32241
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
32242
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32243
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
32244
  esac;;
 
32245
esac
 
32246
 
 
32247
 
 
32248
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
32249
echo "$as_me: executing $ac_dest commands" >&6;}
 
32250
  case $ac_dest in
 
32251
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
32252
  # Strip MF so we end up with the name of the file.
 
32253
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
32254
  # Check whether this is an Automake generated Makefile or not.
 
32255
  # We used to match only the files named `Makefile.in', but
 
32256
  # some people rename them; so instead we look at the file content.
 
32257
  # Grep'ing the first line is not enough: some people post-process
 
32258
  # each Makefile.in and add a new line on top of each file to say so.
 
32259
  # So let's grep whole file.
 
32260
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
32261
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
32262
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32263
         X"$mf" : 'X\(//\)[^/]' \| \
 
32264
         X"$mf" : 'X\(//\)$' \| \
 
32265
         X"$mf" : 'X\(/\)' \| \
 
32266
         .     : '\(.\)' 2>/dev/null ||
 
32267
echo X"$mf" |
 
32268
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32269
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32270
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32271
          /^X\(\/\).*/{ s//\1/; q; }
 
32272
          s/.*/./; q'`
 
32273
  else
 
32274
    continue
 
32275
  fi
 
32276
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
32277
  # Extract the definition of DEP_FILES from the Makefile without
 
32278
  # running `make'.
 
32279
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
32280
  test -z "$DEPDIR" && continue
 
32281
  # When using ansi2knr, U may be empty or an underscore; expand it
 
32282
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
32283
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
32284
  # We invoke sed twice because it is the simplest approach to
 
32285
  # changing $(DEPDIR) to its actual value in the expansion.
 
32286
  for file in `sed -n -e '
 
32287
    /^DEP_FILES = .*\\\\$/ {
 
32288
      s/^DEP_FILES = //
 
32289
      :loop
 
32290
        s/\\\\$//
 
32291
        p
 
32292
        n
 
32293
        /\\\\$/ b loop
 
32294
      p
 
32295
    }
 
32296
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
32297
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
32298
    # Make sure the directory exists.
 
32299
    test -f "$dirpart/$file" && continue
 
32300
    fdir=`(dirname "$file") 2>/dev/null ||
 
32301
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32302
         X"$file" : 'X\(//\)[^/]' \| \
 
32303
         X"$file" : 'X\(//\)$' \| \
 
32304
         X"$file" : 'X\(/\)' \| \
 
32305
         .     : '\(.\)' 2>/dev/null ||
 
32306
echo X"$file" |
 
32307
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32308
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32309
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32310
          /^X\(\/\).*/{ s//\1/; q; }
 
32311
          s/.*/./; q'`
 
32312
    { if $as_mkdir_p; then
 
32313
    mkdir -p $dirpart/$fdir
 
32314
  else
 
32315
    as_dir=$dirpart/$fdir
 
32316
    as_dirs=
 
32317
    while test ! -d "$as_dir"; do
 
32318
      as_dirs="$as_dir $as_dirs"
 
32319
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
32320
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32321
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32322
         X"$as_dir" : 'X\(//\)$' \| \
 
32323
         X"$as_dir" : 'X\(/\)' \| \
 
32324
         .     : '\(.\)' 2>/dev/null ||
 
32325
echo X"$as_dir" |
 
32326
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32327
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32328
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32329
          /^X\(\/\).*/{ s//\1/; q; }
 
32330
          s/.*/./; q'`
 
32331
    done
 
32332
    test ! -n "$as_dirs" || mkdir $as_dirs
 
32333
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
32334
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
32335
   { (exit 1); exit 1; }; }; }
 
32336
 
 
32337
    # echo "creating $dirpart/$file"
 
32338
    echo '# dummy' > "$dirpart/$file"
 
32339
  done
 
32340
done
 
32341
 ;;
 
32342
    default-1 )
 
32343
    for ac_file in $CONFIG_FILES; do
 
32344
      # Support "outfile[:infile[:infile...]]"
 
32345
      case "$ac_file" in
 
32346
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
32347
      esac
 
32348
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
32349
      case "$ac_file" in */Makefile.in)
 
32350
        # Adjust a relative srcdir.
 
32351
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
32352
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
32353
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
32354
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
32355
        # In autoconf-2.50 it is called $srcdir.
 
32356
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
32357
        case "$ac_given_srcdir" in
 
32358
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
32359
          /*) top_srcdir="$ac_given_srcdir" ;;
 
32360
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
32361
        esac
 
32362
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
32363
          rm -f "$ac_dir/POTFILES"
 
32364
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
32365
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
32366
          POMAKEFILEDEPS="POTFILES.in"
 
32367
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
32368
          # on $ac_dir but don't depend on user-specified configuration
 
32369
          # parameters.
 
32370
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
32371
            # The LINGUAS file contains the set of available languages.
 
32372
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
32373
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
32374
            fi
 
32375
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
32376
            # Hide the ALL_LINGUAS assigment from automake.
 
32377
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
32378
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
32379
          else
 
32380
            # The set of available languages was given in configure.in.
 
32381
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
32382
          fi
 
32383
          # Compute POFILES
 
32384
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
32385
          # Compute UPDATEPOFILES
 
32386
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
32387
          # Compute DUMMYPOFILES
 
32388
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
32389
          # Compute GMOFILES
 
32390
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
32391
          case "$ac_given_srcdir" in
 
32392
            .) srcdirpre= ;;
 
32393
            *) srcdirpre='$(srcdir)/' ;;
 
32394
          esac
 
32395
          POFILES=
 
32396
          UPDATEPOFILES=
 
32397
          DUMMYPOFILES=
 
32398
          GMOFILES=
 
32399
          for lang in $ALL_LINGUAS; do
 
32400
            POFILES="$POFILES $srcdirpre$lang.po"
 
32401
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
32402
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
32403
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
32404
          done
 
32405
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
32406
          # environment variable.
 
32407
          INST_LINGUAS=
 
32408
          if test -n "$ALL_LINGUAS"; then
 
32409
            for presentlang in $ALL_LINGUAS; do
 
32410
              useit=no
 
32411
              if test "%UNSET%" != "$LINGUAS"; then
 
32412
                desiredlanguages="$LINGUAS"
 
32413
              else
 
32414
                desiredlanguages="$ALL_LINGUAS"
 
32415
              fi
 
32416
              for desiredlang in $desiredlanguages; do
 
32417
                # Use the presentlang catalog if desiredlang is
 
32418
                #   a. equal to presentlang, or
 
32419
                #   b. a variant of presentlang (because in this case,
 
32420
                #      presentlang can be used as a fallback for messages
 
32421
                #      which are not translated in the desiredlang catalog).
 
32422
                case "$desiredlang" in
 
32423
                  "$presentlang"*) useit=yes;;
 
32424
                esac
 
32425
              done
 
32426
              if test $useit = yes; then
 
32427
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
32428
              fi
 
32429
            done
 
32430
          fi
 
32431
          CATALOGS=
 
32432
          if test -n "$INST_LINGUAS"; then
 
32433
            for lang in $INST_LINGUAS; do
 
32434
              CATALOGS="$CATALOGS $lang.gmo"
 
32435
            done
 
32436
          fi
 
32437
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
32438
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
32439
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
32440
            if test -f "$f"; then
 
32441
              case "$f" in
 
32442
                *.orig | *.bak | *~) ;;
 
32443
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
32444
              esac
 
32445
            fi
 
32446
          done
 
32447
        fi
 
32448
        ;;
 
32449
      esac
 
32450
    done ;;
 
32451
  esac
 
32452
done
 
32453
_ACEOF
 
32454
 
 
32455
cat >>$CONFIG_STATUS <<\_ACEOF
 
32456
 
 
32457
{ (exit 0); exit 0; }
 
32458
_ACEOF
 
32459
chmod +x $CONFIG_STATUS
 
32460
ac_clean_files=$ac_clean_files_save
 
32461
 
 
32462
 
 
32463
# configure is writing to config.log, and then calls config.status.
 
32464
# config.status does its own redirection, appending to config.log.
 
32465
# Unfortunately, on DOS this fails, as config.log is still kept open
 
32466
# by configure, so config.status won't be able to write to it; its
 
32467
# output is simply discarded.  So we exec the FD to /dev/null,
 
32468
# effectively closing config.log, so it can be properly (re)opened and
 
32469
# appended to by config.status.  When coming back to configure, we
 
32470
# need to make the FD available again.
 
32471
if test "$no_create" != yes; then
 
32472
  ac_cs_success=:
 
32473
  ac_config_status_args=
 
32474
  test "$silent" = yes &&
 
32475
    ac_config_status_args="$ac_config_status_args --quiet"
 
32476
  exec 5>/dev/null
 
32477
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
32478
  exec 5>>config.log
 
32479
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
32480
  # would make configure fail if this is the last instruction.
 
32481
  $ac_cs_success || { (exit 1); exit 1; }
 
32482
fi
 
32483
 
 
32484
#
 
32485
# CONFIG_SUBDIRS section.
 
32486
#
 
32487
if test "$no_recursion" != yes; then
 
32488
 
 
32489
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
32490
  ac_sub_configure_args=
 
32491
  ac_prev=
 
32492
  for ac_arg in $ac_configure_args; do
 
32493
    if test -n "$ac_prev"; then
 
32494
      ac_prev=
 
32495
      continue
 
32496
    fi
 
32497
    case $ac_arg in
 
32498
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
32499
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
32500
      ac_prev=cache_file ;;
 
32501
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
32502
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
32503
    | --c=*)
 
32504
      ;;
 
32505
    --config-cache | -C)
 
32506
      ;;
 
32507
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
32508
      ac_prev=srcdir ;;
 
32509
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
32510
      ;;
 
32511
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
32512
      ac_prev=prefix ;;
 
32513
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
32514
      ;;
 
32515
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
 
32516
    esac
 
32517
  done
 
32518
 
 
32519
  # Always prepend --prefix to ensure using the same prefix
 
32520
  # in subdir configurations.
 
32521
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
32522
 
 
32523
  ac_popdir=`pwd`
 
32524
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
32525
 
 
32526
    # Do not complain, so a configure script can configure whichever
 
32527
    # parts of a large source tree are present.
 
32528
    test -d $srcdir/$ac_dir || continue
 
32529
 
 
32530
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
32531
echo "$as_me: configuring in $ac_dir" >&6;}
 
32532
    { if $as_mkdir_p; then
 
32533
    mkdir -p "$ac_dir"
 
32534
  else
 
32535
    as_dir="$ac_dir"
 
32536
    as_dirs=
 
32537
    while test ! -d "$as_dir"; do
 
32538
      as_dirs="$as_dir $as_dirs"
 
32539
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
32540
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32541
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32542
         X"$as_dir" : 'X\(//\)$' \| \
 
32543
         X"$as_dir" : 'X\(/\)' \| \
 
32544
         .     : '\(.\)' 2>/dev/null ||
 
32545
echo X"$as_dir" |
 
32546
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32547
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32548
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32549
          /^X\(\/\).*/{ s//\1/; q; }
 
32550
          s/.*/./; q'`
 
32551
    done
 
32552
    test ! -n "$as_dirs" || mkdir $as_dirs
 
32553
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
32554
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
32555
   { (exit 1); exit 1; }; }; }
 
32556
 
 
32557
    ac_builddir=.
 
32558
 
 
32559
if test "$ac_dir" != .; then
 
32560
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
32561
  # A "../" for each directory in $ac_dir_suffix.
 
32562
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
32563
else
 
32564
  ac_dir_suffix= ac_top_builddir=
 
32565
fi
 
32566
 
 
32567
case $srcdir in
 
32568
  .)  # No --srcdir option.  We are building in place.
 
32569
    ac_srcdir=.
 
32570
    if test -z "$ac_top_builddir"; then
 
32571
       ac_top_srcdir=.
 
32572
    else
 
32573
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
32574
    fi ;;
 
32575
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
32576
    ac_srcdir=$srcdir$ac_dir_suffix;
 
32577
    ac_top_srcdir=$srcdir ;;
 
32578
  *) # Relative path.
 
32579
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
32580
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
32581
esac
 
32582
 
 
32583
# Do not use `cd foo && pwd` to compute absolute paths, because
 
32584
# the directories may not exist.
 
32585
case `pwd` in
 
32586
.) ac_abs_builddir="$ac_dir";;
 
32587
*)
 
32588
  case "$ac_dir" in
 
32589
  .) ac_abs_builddir=`pwd`;;
 
32590
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
32591
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
32592
  esac;;
 
32593
esac
 
32594
case $ac_abs_builddir in
 
32595
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32596
*)
 
32597
  case ${ac_top_builddir}. in
 
32598
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
32599
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32600
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
32601
  esac;;
 
32602
esac
 
32603
case $ac_abs_builddir in
 
32604
.) ac_abs_srcdir=$ac_srcdir;;
 
32605
*)
 
32606
  case $ac_srcdir in
 
32607
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
32608
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
32609
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
32610
  esac;;
 
32611
esac
 
32612
case $ac_abs_builddir in
 
32613
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32614
*)
 
32615
  case $ac_top_srcdir in
 
32616
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
32617
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32618
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
32619
  esac;;
 
32620
esac
 
32621
 
 
32622
 
 
32623
    cd $ac_dir
 
32624
 
 
32625
    # Check for guested configure; otherwise get Cygnus style configure.
 
32626
    if test -f $ac_srcdir/configure.gnu; then
 
32627
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
32628
    elif test -f $ac_srcdir/configure; then
 
32629
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
32630
    elif test -f $ac_srcdir/configure.in; then
 
32631
      ac_sub_configure=$ac_configure
 
32632
    else
 
32633
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
32634
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
32635
      ac_sub_configure=
 
32636
    fi
 
32637
 
 
32638
    # The recursion is here.
 
32639
    if test -n "$ac_sub_configure"; then
 
32640
      # Make the cache file name correct relative to the subdirectory.
 
32641
      case $cache_file in
 
32642
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
32643
      *) # Relative path.
 
32644
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
32645
      esac
 
32646
 
 
32647
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
32648
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
32649
      # The eval makes quoting arguments work.
 
32650
      eval $ac_sub_configure $ac_sub_configure_args \
 
32651
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
32652
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
32653
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
32654
   { (exit 1); exit 1; }; }
 
32655
    fi
 
32656
 
 
32657
    cd "$ac_popdir"
 
32658
  done
 
32659
fi
 
32660