source: trunk/third/pcre/configure @ 19309

Revision 19309, 226.6 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19308, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.50.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Find the correct PATH separator.  Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13  UNAME=${UNAME-`uname 2>/dev/null`}
14  case X$UNAME in
15    *-DOS) lt_cv_sys_path_separator=';' ;;
16    *)     lt_cv_sys_path_separator=':' ;;
17  esac
18fi
19
20# Check that we are running under the correct shell.
21SHELL=${CONFIG_SHELL-/bin/sh}
22
23case X$ECHO in
24X*--fallback-echo)
25  # Remove one level of quotation (which was required for Make).
26  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27  ;;
28esac
29
30echo=${ECHO-echo}
31if test "X$1" = X--no-reexec; then
32  # Discard the --no-reexec flag, and continue.
33  shift
34elif test "X$1" = X--fallback-echo; then
35  # Avoid inline document here, it may be left over
36  :
37elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38  # Yippee, $echo works!
39  :
40else
41  # Restart under the correct shell.
42  exec $SHELL "$0" --no-reexec ${1+"$@"}
43fi
44
45if test "X$1" = X--fallback-echo; then
46  # used as fallback echo
47  shift
48  cat <<EOF
49
50EOF
51  exit 0
52fi
53
54# The HP-UX ksh and POSIX shell print the target directory to stdout
55# if CDPATH is set.
56if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58if test -z "$ECHO"; then
59if test "X${echo_test_string+set}" != Xset; then
60# find a string as large as possible, as long as the shell can cope with it
61  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64       echo_test_string="`eval $cmd`" &&
65       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66    then
67      break
68    fi
69  done
70fi
71
72if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74   test "X$echo_testing_string" = "X$echo_test_string"; then
75  :
76else
77  # The Solaris, AIX, and Digital Unix default echo programs unquote
78  # backslashes.  This makes it impossible to quote backslashes using
79  #   echo "$something" | sed 's/\\/\\\\/g'
80  #
81  # So, first we look for a working echo in the user's PATH.
82
83  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84  for dir in $PATH /usr/ucb; do
85    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88       test "X$echo_testing_string" = "X$echo_test_string"; then
89      echo="$dir/echo"
90      break
91    fi
92  done
93  IFS="$save_ifs"
94
95  if test "X$echo" = Xecho; then
96    # We didn't find a better echo, so look for alternatives.
97    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99       test "X$echo_testing_string" = "X$echo_test_string"; then
100      # This shell has a builtin print -r that does the trick.
101      echo='print -r'
102    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103         test "X$CONFIG_SHELL" != X/bin/ksh; then
104      # If we have ksh, try running configure again with it.
105      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106      export ORIGINAL_CONFIG_SHELL
107      CONFIG_SHELL=/bin/ksh
108      export CONFIG_SHELL
109      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110    else
111      # Try using printf.
112      echo='printf %s\n'
113      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115         test "X$echo_testing_string" = "X$echo_test_string"; then
116        # Cool, printf works
117        :
118      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119           test "X$echo_testing_string" = 'X\t' &&
120           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121           test "X$echo_testing_string" = "X$echo_test_string"; then
122        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123        export CONFIG_SHELL
124        SHELL="$CONFIG_SHELL"
125        export SHELL
126        echo="$CONFIG_SHELL $0 --fallback-echo"
127      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128           test "X$echo_testing_string" = 'X\t' &&
129           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130           test "X$echo_testing_string" = "X$echo_test_string"; then
131        echo="$CONFIG_SHELL $0 --fallback-echo"
132      else
133        # maybe with a smaller string...
134        prev=:
135
136        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138          then
139            break
140          fi
141          prev="$cmd"
142        done
143
144        if test "$prev" != 'sed 50q "$0"'; then
145          echo_test_string=`eval $prev`
146          export echo_test_string
147          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148        else
149          # Oops.  We lost completely, so just stick with echo.
150          echo=echo
151        fi
152      fi
153    fi
154  fi
155fi
156fi
157
158# Copy echo and quote the copy suitably for passing to libtool from
159# the Makefile, instead of quoting the original, which is used later.
160ECHO=$echo
161if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163fi
164
165# Be Bourne compatible
166if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
167  emulate sh
168  NULLCMD=:
169elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
170  set -o posix
171fi
172
173# Name of the executable.
174as_me=`echo "$0" |sed 's,.*[\\/],,'`
175
176if expr a : '\(a\)' >/dev/null 2>&1; then
177  as_expr=expr
178else
179  as_expr=false
180fi
181
182rm -f conf$$ conf$$.exe conf$$.file
183echo >conf$$.file
184if ln -s conf$$.file conf$$ 2>/dev/null; then
185  # We could just check for DJGPP; but this test a) works b) is more generic
186  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187  if test -f conf$$.exe; then
188    # Don't use ln at all; we don't have any links
189    as_ln_s='cp -p'
190  else
191    as_ln_s='ln -s'
192  fi
193elif ln conf$$.file conf$$ 2>/dev/null; then
194  as_ln_s=ln
195else
196  as_ln_s='cp -p'
197fi
198rm -f conf$$ conf$$.exe conf$$.file
199
200as_executable_p="test -f"
201
202# Support unset when possible.
203if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
204  as_unset=unset
205else
206  as_unset=false
207fi
208
209# NLS nuisances.
210$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
218
219# IFS
220# We need space, tab and new line, in precisely that order.
221as_nl='
222'
223IFS="   $as_nl"
224
225# CDPATH.
226$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
227
228# Name of the host.
229# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230# so uname gets run too.
231ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
232
233exec 6>&1
234
235#
236# Initializations.
237#
238ac_default_prefix=/usr/local
239cross_compiling=no
240subdirs=
241MFLAGS= MAKEFLAGS=
242SHELL=${CONFIG_SHELL-/bin/sh}
243
244# Maximum number of lines to put in a shell here document.
245# This variable seems obsolete.  It should probably be removed, and
246# only ac_max_sed_lines should be used.
247: ${ac_max_here_lines=38}
248
249# Avoid depending upon Character Ranges.
250ac_cr_az='abcdefghijklmnopqrstuvwxyz'
251ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
252ac_cr_09='0123456789'
253ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
254
255# Sed expression to map a string onto a valid sh and CPP variable names.
256ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
257ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
258
259ac_unique_file="dftables.c"
260# Factoring default headers for most tests.
261ac_includes_default="\
262#include <stdio.h>
263#include <sys/types.h>
264#include <sys/stat.h>
265#if STDC_HEADERS
266# include <stdlib.h>
267# include <stddef.h>
268#else
269# if HAVE_STDLIB_H
270#  include <stdlib.h>
271# endif
272#endif
273#if HAVE_STRING_H
274# if !STDC_HEADERS && HAVE_MEMORY_H
275#  include <memory.h>
276# endif
277# include <string.h>
278#else
279# if HAVE_STRINGS_H
280#  include <strings.h>
281# endif
282#endif
283#if HAVE_INTTYPES_H
284# include <inttypes.h>
285#endif
286#if HAVE_UNISTD_H
287# include <unistd.h>
288#endif"
289
290# Initialize some variables set by options.
291ac_init_help=
292ac_init_version=false
293# The variables have the same names as the options, with
294# dashes changed to underlines.
295cache_file=/dev/null
296exec_prefix=NONE
297no_create=
298no_recursion=
299prefix=NONE
300program_prefix=NONE
301program_suffix=NONE
302program_transform_name=s,x,x,
303silent=
304site=
305srcdir=
306verbose=
307x_includes=NONE
308x_libraries=NONE
309
310# Installation directory options.
311# These are left unexpanded so users can "make install exec_prefix=/foo"
312# and all the variables that are supposed to be based on exec_prefix
313# by default will actually change.
314# Use braces instead of parens because sh, perl, etc. also accept them.
315bindir='${exec_prefix}/bin'
316sbindir='${exec_prefix}/sbin'
317libexecdir='${exec_prefix}/libexec'
318datadir='${prefix}/share'
319sysconfdir='${prefix}/etc'
320sharedstatedir='${prefix}/com'
321localstatedir='${prefix}/var'
322libdir='${exec_prefix}/lib'
323includedir='${prefix}/include'
324oldincludedir='/usr/include'
325infodir='${prefix}/info'
326mandir='${prefix}/man'
327
328# Identity of this package.
329PACKAGE_NAME=
330PACKAGE_TARNAME=
331PACKAGE_VERSION=
332PACKAGE_STRING=
333PACKAGE_BUGREPORT=
334
335ac_prev=
336for ac_option
337do
338  # If the previous option needs an argument, assign it.
339  if test -n "$ac_prev"; then
340    eval "$ac_prev=\$ac_option"
341    ac_prev=
342    continue
343  fi
344
345  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
346
347  # Accept the important Cygnus configure options, so we can diagnose typos.
348
349  case $ac_option in
350
351  -bindir | --bindir | --bindi | --bind | --bin | --bi)
352    ac_prev=bindir ;;
353  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
354    bindir=$ac_optarg ;;
355
356  -build | --build | --buil | --bui | --bu)
357    ac_prev=build_alias ;;
358  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
359    build_alias=$ac_optarg ;;
360
361  -cache-file | --cache-file | --cache-fil | --cache-fi \
362  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
363    ac_prev=cache_file ;;
364  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
365  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
366    cache_file=$ac_optarg ;;
367
368  --config-cache | -C)
369    cache_file=config.cache ;;
370
371  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
372    ac_prev=datadir ;;
373  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
374  | --da=*)
375    datadir=$ac_optarg ;;
376
377  -disable-* | --disable-*)
378    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379    # Reject names that are not valid shell variable names.
380    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
381      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
382   { (exit 1); exit 1; }; }
383    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
384    eval "enable_$ac_feature=no" ;;
385
386  -enable-* | --enable-*)
387    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
388    # Reject names that are not valid shell variable names.
389    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
390      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391   { (exit 1); exit 1; }; }
392    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393    case $ac_option in
394      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395      *) ac_optarg=yes ;;
396    esac
397    eval "enable_$ac_feature='$ac_optarg'" ;;
398
399  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
400  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
401  | --exec | --exe | --ex)
402    ac_prev=exec_prefix ;;
403  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
404  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
405  | --exec=* | --exe=* | --ex=*)
406    exec_prefix=$ac_optarg ;;
407
408  -gas | --gas | --ga | --g)
409    # Obsolete; use --with-gas.
410    with_gas=yes ;;
411
412  -help | --help | --hel | --he | -h)
413    ac_init_help=long ;;
414  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
415    ac_init_help=recursive ;;
416  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
417    ac_init_help=short ;;
418
419  -host | --host | --hos | --ho)
420    ac_prev=host_alias ;;
421  -host=* | --host=* | --hos=* | --ho=*)
422    host_alias=$ac_optarg ;;
423
424  -includedir | --includedir | --includedi | --included | --include \
425  | --includ | --inclu | --incl | --inc)
426    ac_prev=includedir ;;
427  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
428  | --includ=* | --inclu=* | --incl=* | --inc=*)
429    includedir=$ac_optarg ;;
430
431  -infodir | --infodir | --infodi | --infod | --info | --inf)
432    ac_prev=infodir ;;
433  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
434    infodir=$ac_optarg ;;
435
436  -libdir | --libdir | --libdi | --libd)
437    ac_prev=libdir ;;
438  -libdir=* | --libdir=* | --libdi=* | --libd=*)
439    libdir=$ac_optarg ;;
440
441  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
442  | --libexe | --libex | --libe)
443    ac_prev=libexecdir ;;
444  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
445  | --libexe=* | --libex=* | --libe=*)
446    libexecdir=$ac_optarg ;;
447
448  -localstatedir | --localstatedir | --localstatedi | --localstated \
449  | --localstate | --localstat | --localsta | --localst \
450  | --locals | --local | --loca | --loc | --lo)
451    ac_prev=localstatedir ;;
452  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
453  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
454  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
455    localstatedir=$ac_optarg ;;
456
457  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
458    ac_prev=mandir ;;
459  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460    mandir=$ac_optarg ;;
461
462  -nfp | --nfp | --nf)
463    # Obsolete; use --without-fp.
464    with_fp=no ;;
465
466  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467  | --no-cr | --no-c)
468    no_create=yes ;;
469
470  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
472    no_recursion=yes ;;
473
474  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
475  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
476  | --oldin | --oldi | --old | --ol | --o)
477    ac_prev=oldincludedir ;;
478  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
479  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
480  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
481    oldincludedir=$ac_optarg ;;
482
483  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
484    ac_prev=prefix ;;
485  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
486    prefix=$ac_optarg ;;
487
488  -program-prefix | --program-prefix | --program-prefi | --program-pref \
489  | --program-pre | --program-pr | --program-p)
490    ac_prev=program_prefix ;;
491  -program-prefix=* | --program-prefix=* | --program-prefi=* \
492  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
493    program_prefix=$ac_optarg ;;
494
495  -program-suffix | --program-suffix | --program-suffi | --program-suff \
496  | --program-suf | --program-su | --program-s)
497    ac_prev=program_suffix ;;
498  -program-suffix=* | --program-suffix=* | --program-suffi=* \
499  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
500    program_suffix=$ac_optarg ;;
501
502  -program-transform-name | --program-transform-name \
503  | --program-transform-nam | --program-transform-na \
504  | --program-transform-n | --program-transform- \
505  | --program-transform | --program-transfor \
506  | --program-transfo | --program-transf \
507  | --program-trans | --program-tran \
508  | --progr-tra | --program-tr | --program-t)
509    ac_prev=program_transform_name ;;
510  -program-transform-name=* | --program-transform-name=* \
511  | --program-transform-nam=* | --program-transform-na=* \
512  | --program-transform-n=* | --program-transform-=* \
513  | --program-transform=* | --program-transfor=* \
514  | --program-transfo=* | --program-transf=* \
515  | --program-trans=* | --program-tran=* \
516  | --progr-tra=* | --program-tr=* | --program-t=*)
517    program_transform_name=$ac_optarg ;;
518
519  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
520  | -silent | --silent | --silen | --sile | --sil)
521    silent=yes ;;
522
523  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
524    ac_prev=sbindir ;;
525  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
526  | --sbi=* | --sb=*)
527    sbindir=$ac_optarg ;;
528
529  -sharedstatedir | --sharedstatedir | --sharedstatedi \
530  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
531  | --sharedst | --shareds | --shared | --share | --shar \
532  | --sha | --sh)
533    ac_prev=sharedstatedir ;;
534  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
535  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
536  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
537  | --sha=* | --sh=*)
538    sharedstatedir=$ac_optarg ;;
539
540  -site | --site | --sit)
541    ac_prev=site ;;
542  -site=* | --site=* | --sit=*)
543    site=$ac_optarg ;;
544
545  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
546    ac_prev=srcdir ;;
547  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
548    srcdir=$ac_optarg ;;
549
550  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
551  | --syscon | --sysco | --sysc | --sys | --sy)
552    ac_prev=sysconfdir ;;
553  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
554  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
555    sysconfdir=$ac_optarg ;;
556
557  -target | --target | --targe | --targ | --tar | --ta | --t)
558    ac_prev=target_alias ;;
559  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
560    target_alias=$ac_optarg ;;
561
562  -v | -verbose | --verbose | --verbos | --verbo | --verb)
563    verbose=yes ;;
564
565  -version | --version | --versio | --versi | --vers | -V)
566    ac_init_version=: ;;
567
568  -with-* | --with-*)
569    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
570    # Reject names that are not valid shell variable names.
571    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
572      { echo "$as_me: error: invalid package name: $ac_package" >&2
573   { (exit 1); exit 1; }; }
574    ac_package=`echo $ac_package| sed 's/-/_/g'`
575    case $ac_option in
576      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577      *) ac_optarg=yes ;;
578    esac
579    eval "with_$ac_package='$ac_optarg'" ;;
580
581  -without-* | --without-*)
582    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
583    # Reject names that are not valid shell variable names.
584    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
585      { echo "$as_me: error: invalid package name: $ac_package" >&2
586   { (exit 1); exit 1; }; }
587    ac_package=`echo $ac_package | sed 's/-/_/g'`
588    eval "with_$ac_package=no" ;;
589
590  --x)
591    # Obsolete; use --with-x.
592    with_x=yes ;;
593
594  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
595  | --x-incl | --x-inc | --x-in | --x-i)
596    ac_prev=x_includes ;;
597  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
598  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
599    x_includes=$ac_optarg ;;
600
601  -x-libraries | --x-libraries | --x-librarie | --x-librari \
602  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
603    ac_prev=x_libraries ;;
604  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
605  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
606    x_libraries=$ac_optarg ;;
607
608  -*) { echo "$as_me: error: unrecognized option: $ac_option
609Try \`$0 --help' for more information." >&2
610   { (exit 1); exit 1; }; }
611    ;;
612
613  *=*)
614    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615    # Reject names that are not valid shell variable names.
616    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
617      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618   { (exit 1); exit 1; }; }
619    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620    eval "$ac_envvar='$ac_optarg'"
621    export $ac_envvar ;;
622
623  *)
624    # FIXME: should be removed in autoconf 3.0.
625    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
626    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
627      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
628    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
629    ;;
630
631  esac
632done
633
634if test -n "$ac_prev"; then
635  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636  { echo "$as_me: error: missing argument to $ac_option" >&2
637   { (exit 1); exit 1; }; }
638fi
639
640# Be sure to have absolute paths.
641for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
642              localstatedir libdir includedir oldincludedir infodir mandir \
643              exec_prefix prefix
644do
645  eval ac_val=$`echo $ac_var`
646  case $ac_val in
647    [\\/$]* | ?:[\\/]* ) ;;
648    NONE ) ;;
649    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# There might be people who depend on the old broken behavior: `$host'
655# used to hold the argument of --host etc.
656build=$build_alias
657host=$host_alias
658target=$target_alias
659
660# FIXME: should be removed in autoconf 3.0.
661if test "x$host_alias" != x; then
662  if test "x$build_alias" = x; then
663    cross_compiling=maybe
664    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665    If a cross compiler is detected then cross compile mode will be used." >&2
666  elif test "x$build_alias" != "x$host_alias"; then
667    cross_compiling=yes
668  fi
669fi
670
671ac_tool_prefix=
672test -n "$host_alias" && ac_tool_prefix=$host_alias-
673
674test "$silent" = yes && exec 6>/dev/null
675
676# Find the source files, if location was not specified.
677if test -z "$srcdir"; then
678  ac_srcdir_defaulted=yes
679  # Try the directory containing this script, then its parent.
680  ac_prog=$0
681  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
682  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
683  srcdir=$ac_confdir
684  if test ! -r $srcdir/$ac_unique_file; then
685    srcdir=..
686  fi
687else
688  ac_srcdir_defaulted=no
689fi
690if test ! -r $srcdir/$ac_unique_file; then
691  if test "$ac_srcdir_defaulted" = yes; then
692    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
693   { (exit 1); exit 1; }; }
694  else
695    { echo "$as_me: error: cannot find sources in $srcdir" >&2
696   { (exit 1); exit 1; }; }
697  fi
698fi
699srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
700ac_env_build_alias_set=${build_alias+set}
701ac_env_build_alias_value=$build_alias
702ac_cv_env_build_alias_set=${build_alias+set}
703ac_cv_env_build_alias_value=$build_alias
704ac_env_host_alias_set=${host_alias+set}
705ac_env_host_alias_value=$host_alias
706ac_cv_env_host_alias_set=${host_alias+set}
707ac_cv_env_host_alias_value=$host_alias
708ac_env_target_alias_set=${target_alias+set}
709ac_env_target_alias_value=$target_alias
710ac_cv_env_target_alias_set=${target_alias+set}
711ac_cv_env_target_alias_value=$target_alias
712ac_env_CC_set=${CC+set}
713ac_env_CC_value=$CC
714ac_cv_env_CC_set=${CC+set}
715ac_cv_env_CC_value=$CC
716ac_env_CFLAGS_set=${CFLAGS+set}
717ac_env_CFLAGS_value=$CFLAGS
718ac_cv_env_CFLAGS_set=${CFLAGS+set}
719ac_cv_env_CFLAGS_value=$CFLAGS
720ac_env_LDFLAGS_set=${LDFLAGS+set}
721ac_env_LDFLAGS_value=$LDFLAGS
722ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
723ac_cv_env_LDFLAGS_value=$LDFLAGS
724ac_env_CPPFLAGS_set=${CPPFLAGS+set}
725ac_env_CPPFLAGS_value=$CPPFLAGS
726ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
727ac_cv_env_CPPFLAGS_value=$CPPFLAGS
728ac_env_CPP_set=${CPP+set}
729ac_env_CPP_value=$CPP
730ac_cv_env_CPP_set=${CPP+set}
731ac_cv_env_CPP_value=$CPP
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737  # Omit some internal or obsolete options to make the list less imposing.
738    # The list generated by autoconf has been trimmed to remove many
739    # options that are totally irrelevant to PCRE (e.g. relating to X),
740    # or are not supported by its Makefile.
741  # This message is too long to be a string in the A/UX 3.1 sh.
742  cat <<EOF
743\`configure' configures this package to adapt to many kinds of systems.
744
745Usage: $0 [OPTION]... [VAR=VALUE]...
746
747To assign environment variables (e.g., CC, CFLAGS...), specify them as
748VAR=VALUE.  See below for descriptions of some of the useful variables.
749
750Defaults for the options are specified in brackets.
751
752Configuration:
753  -h, --help              display this help and exit
754      --help=short        display options specific to this package
755      --help=recursive    display the short help of all the included packages
756  -V, --version           display version information and exit
757  -q, --quiet, --silent   do not print \`checking...' messages
758      --cache-file=FILE   cache test results in FILE [disabled]
759  -C, --config-cache      alias for \`--cache-file=config.cache'
760  -n, --no-create         do not create output files
761      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
762
763EOF
764
765  cat <<EOF
766Installation directories:
767  --prefix=PREFIX         install architecture-independent files in PREFIX
768                          [$ac_default_prefix]
769  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
770                          [PREFIX]
771
772By default, \`make install' will install all the files in
773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
774an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775for instance \`--prefix=\$HOME'.
776
777For better control, use the options below.
778
779Fine tuning of the installation directories:
780  --bindir=DIR           user executables [EPREFIX/bin]
781  --libdir=DIR           object code libraries [EPREFIX/lib]
782  --includedir=DIR       C header files [PREFIX/include]
783  --mandir=DIR           man documentation [PREFIX/man]
784EOF
785
786  cat <<\EOF
787
788EOF
789fi
790
791if test -n "$ac_init_help"; then
792
793  cat <<\EOF
794
795Optional Features:
796  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
797  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
798  --enable-utf8           enable UTF8 support (incomplete)
799  --enable-newline-is-cr  use CR as the newline character
800  --enable-newline-is-lf  use LF as the newline character
801  --enable-shared       build shared libraries default=yes
802  --enable-static       build static libraries default=yes
803  --enable-fast-install       optimize for fast installation default=yes
804  --disable-libtool-lock  avoid locking (might break parallel builds)
805
806Optional Packages:
807  --with-gnu-ld           assume the C compiler uses GNU ld default=no
808  --with-pic              try to use only PIC/non-PIC objects default=use both
809
810Some influential environment variables:
811  CC          C compiler command
812  CFLAGS      C compiler flags
813  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
814              nonstandard directory <lib dir>
815  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
816              headers in a nonstandard directory <include dir>
817  CPP         C preprocessor
818
819Use these variables to override the choices made by `configure' or to help
820it to find libraries and programs with nonstandard names/locations.
821
822EOF
823fi
824
825if test "$ac_init_help" = "recursive"; then
826  # If there are subdirs, report their specific --help.
827  ac_popdir=`pwd`
828  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
829    cd $ac_subdir
830    # A "../" for each directory in /$ac_subdir.
831    ac_dots=`echo $ac_subdir |
832             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
833
834    case $srcdir in
835    .) # No --srcdir option.  We are building in place.
836      ac_sub_srcdir=$srcdir ;;
837    [\\/]* | ?:[\\/]* ) # Absolute path.
838      ac_sub_srcdir=$srcdir/$ac_subdir ;;
839    *) # Relative path.
840      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
841    esac
842
843    # Check for guested configure; otherwise get Cygnus style configure.
844    if test -f $ac_sub_srcdir/configure.gnu; then
845      echo
846      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
847    elif test -f $ac_sub_srcdir/configure; then
848      echo
849      $SHELL $ac_sub_srcdir/configure  --help=recursive
850    elif test -f $ac_sub_srcdir/configure.ac ||
851           test -f $ac_sub_srcdir/configure.in; then
852      echo
853      $ac_configure --help
854    else
855      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
856    fi
857    cd $ac_popdir
858  done
859fi
860
861test -n "$ac_init_help" && exit 0
862if $ac_init_version; then
863  cat <<\EOF
864
865Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
866Free Software Foundation, Inc.
867This configure script is free software; the Free Software Foundation
868gives unlimited permission to copy, distribute and modify it.
869EOF
870  exit 0
871fi
872exec 5>config.log
873cat >&5 <<EOF
874This file contains any messages produced by compilers while
875running configure, to aid debugging if configure makes a mistake.
876
877It was created by $as_me, which was
878generated by GNU Autoconf 2.50.  Invocation command line was
879
880  $ $0 $@
881
882EOF
883{
884cat <<_ASUNAME
885## ---------- ##
886## Platform.  ##
887## ---------- ##
888
889hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
890uname -m = `(uname -m) 2>/dev/null || echo unknown`
891uname -r = `(uname -r) 2>/dev/null || echo unknown`
892uname -s = `(uname -s) 2>/dev/null || echo unknown`
893uname -v = `(uname -v) 2>/dev/null || echo unknown`
894
895/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
896/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
897
898/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
899/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
900/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
901hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
902/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
903/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
904/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
905
906PATH = $PATH
907
908_ASUNAME
909} >&5
910
911cat >&5 <<EOF
912## ------------ ##
913## Core tests.  ##
914## ------------ ##
915
916EOF
917
918# Keep a trace of the command line.
919# Strip out --no-create and --no-recursion so they do not pile up.
920# Also quote any args containing shell meta-characters.
921ac_configure_args=
922ac_sep=
923for ac_arg
924do
925  case $ac_arg in
926  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927  | --no-cr | --no-c) ;;
928  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
930  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
931    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
932    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
933    ac_sep=" " ;;
934  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
935     ac_sep=" " ;;
936  esac
937  # Get rid of the leading space.
938done
939
940# When interrupted or exit'd, cleanup temporary files, and complete
941# config.log.  We remove comments because anyway the quotes in there
942# would cause problems or look ugly.
943trap 'exit_status=$?
944  # Save into config.log some information that might help in debugging.
945  echo >&5
946  echo "## ----------------- ##" >&5
947  echo "## Cache variables.  ##" >&5
948  echo "## ----------------- ##" >&5
949  echo >&5
950  # The following way of writing the cache mishandles newlines in values,
951{
952  (set) 2>&1 |
953    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
954    *ac_space=\ *)
955      sed -n \
956        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
957          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
958      ;;
959    *)
960      sed -n \
961        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
962      ;;
963    esac;
964} >&5
965  sed "/^$/d" confdefs.h >conftest.log
966  if test -s conftest.log; then
967    echo >&5
968    echo "## ------------ ##" >&5
969    echo "## confdefs.h.  ##" >&5
970    echo "## ------------ ##" >&5
971    echo >&5
972    cat conftest.log >&5
973  fi
974  (echo; echo) >&5
975  test "$ac_signal" != 0 &&
976    echo "$as_me: caught signal $ac_signal" >&5
977  echo "$as_me: exit $exit_status" >&5
978  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
979    exit $exit_status
980     ' 0
981for ac_signal in 1 2 13 15; do
982  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
983done
984ac_signal=0
985
986# confdefs.h avoids OS command line length limits that DEFS can exceed.
987rm -rf conftest* confdefs.h
988# AIX cpp loses on an empty file, so make sure it contains at least a newline.
989echo >confdefs.h
990
991# Let the site file select an alternate cache file if it wants to.
992# Prefer explicitly selected file to automatically selected ones.
993if test -z "$CONFIG_SITE"; then
994  if test "x$prefix" != xNONE; then
995    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
996  else
997    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
998  fi
999fi
1000for ac_site_file in $CONFIG_SITE; do
1001  if test -r "$ac_site_file"; then
1002    { echo "$as_me:1012: loading site script $ac_site_file" >&5
1003echo "$as_me: loading site script $ac_site_file" >&6;}
1004    cat "$ac_site_file" >&5
1005    . "$ac_site_file"
1006  fi
1007done
1008
1009if test -r "$cache_file"; then
1010  # Some versions of bash will fail to source /dev/null (special
1011  # files actually), so we avoid doing that.
1012  if test -f "$cache_file"; then
1013    { echo "$as_me:1023: loading cache $cache_file" >&5
1014echo "$as_me: loading cache $cache_file" >&6;}
1015    case $cache_file in
1016      [\\/]* | ?:[\\/]* ) . $cache_file;;
1017      *)                      . ./$cache_file;;
1018    esac
1019  fi
1020else
1021  { echo "$as_me:1031: creating cache $cache_file" >&5
1022echo "$as_me: creating cache $cache_file" >&6;}
1023  >$cache_file
1024fi
1025
1026# Check that the precious variables saved in the cache have kept the same
1027# value.
1028ac_suggest_removing_cache=false
1029for ac_var in `(set) 2>&1 |
1030               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1031  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1032  eval ac_new_set=\$ac_env_${ac_var}_set
1033  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1034  eval ac_new_val="\$ac_env_${ac_var}_value"
1035  case $ac_old_set,$ac_new_set in
1036    set,)
1037      { echo "$as_me:1047: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1038echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1039      ac_suggest_removing_cache=: ;;
1040    ,set)
1041      { echo "$as_me:1051: WARNING: \`$ac_var' was not set in the previous run" >&5
1042echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1043      ac_suggest_removing_cache=: ;;
1044    ,);;
1045    *)
1046      if test "x$ac_old_val" != "x$ac_new_val"; then
1047        { echo "$as_me:1057: WARNING: \`$ac_var' has changed since the previous run:" >&5
1048echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1049        { echo "$as_me:1059: WARNING:   former value:  $ac_old_val" >&5
1050echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1051        { echo "$as_me:1061: WARNING:   current value: $ac_new_val" >&5
1052echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1053        ac_suggest_removing_cache=:
1054      fi;;
1055  esac
1056done
1057if $ac_suggest_removing_cache; then
1058  { echo "$as_me:1068: WARNING: changes in the environment can compromise the build" >&5
1059echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1060  { echo "$as_me:1070: WARNING: consider removing $cache_file and starting over" >&5
1061echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1062fi
1063
1064ac_ext=c
1065ac_cpp='$CPP $CPPFLAGS'
1066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1068ac_compiler_gnu=$ac_cv_c_compiler_gnu
1069
1070case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1071  *c*,-n*) ECHO_N= ECHO_C='
1072' ECHO_T='      ' ;;
1073  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1074  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1075esac
1076echo "#! $SHELL" >conftest.sh
1077echo  "exit 0"   >>conftest.sh
1078chmod +x conftest.sh
1079if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1080  (PATH=".;."; conftest.sh) 2>&5
1081  ac_status=$?
1082  echo "$as_me:1092: \$? = $ac_status" >&5
1083  (exit $ac_status); }; then
1084  ac_path_separator=';'
1085else
1086  ac_path_separator=:
1087fi
1088PATH_SEPARATOR="$ac_path_separator"
1089rm -f conftest.sh
1090
1091ac_config_headers="$ac_config_headers config.h:config.in"
1092
1093PCRE_MAJOR=3
1094PCRE_MINOR=9
1095PCRE_DATE=02-Jan-2002
1096PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1097
1098PCRE_LIB_VERSION=0:1:0
1099PCRE_POSIXLIB_VERSION=0:0:0
1100
1101ac_ext=c
1102ac_cpp='$CPP $CPPFLAGS'
1103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1105ac_compiler_gnu=$ac_cv_c_compiler_gnu
1106if test -n "$ac_tool_prefix"; then
1107  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1108set dummy ${ac_tool_prefix}gcc; ac_word=$2
1109echo "$as_me:1119: checking for $ac_word" >&5
1110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111if test "${ac_cv_prog_CC+set}" = set; then
1112  echo $ECHO_N "(cached) $ECHO_C" >&6
1113else
1114  if test -n "$CC"; then
1115  ac_cv_prog_CC="$CC" # Let the user override the test.
1116else
1117  ac_save_IFS=$IFS; IFS=$ac_path_separator
1118ac_dummy="$PATH"
1119for ac_dir in $ac_dummy; do
1120  IFS=$ac_save_IFS
1121  test -z "$ac_dir" && ac_dir=.
1122  $as_executable_p "$ac_dir/$ac_word" || continue
1123ac_cv_prog_CC="${ac_tool_prefix}gcc"
1124echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1125break
1126done
1127
1128fi
1129fi
1130CC=$ac_cv_prog_CC
1131if test -n "$CC"; then
1132  echo "$as_me:1142: result: $CC" >&5
1133echo "${ECHO_T}$CC" >&6
1134else
1135  echo "$as_me:1145: result: no" >&5
1136echo "${ECHO_T}no" >&6
1137fi
1138
1139fi
1140if test -z "$ac_cv_prog_CC"; then
1141  ac_ct_CC=$CC
1142  # Extract the first word of "gcc", so it can be a program name with args.
1143set dummy gcc; ac_word=$2
1144echo "$as_me:1154: checking for $ac_word" >&5
1145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1147  echo $ECHO_N "(cached) $ECHO_C" >&6
1148else
1149  if test -n "$ac_ct_CC"; then
1150  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1151else
1152  ac_save_IFS=$IFS; IFS=$ac_path_separator
1153ac_dummy="$PATH"
1154for ac_dir in $ac_dummy; do
1155  IFS=$ac_save_IFS
1156  test -z "$ac_dir" && ac_dir=.
1157  $as_executable_p "$ac_dir/$ac_word" || continue
1158ac_cv_prog_ac_ct_CC="gcc"
1159echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1160break
1161done
1162
1163fi
1164fi
1165ac_ct_CC=$ac_cv_prog_ac_ct_CC
1166if test -n "$ac_ct_CC"; then
1167  echo "$as_me:1177: result: $ac_ct_CC" >&5
1168echo "${ECHO_T}$ac_ct_CC" >&6
1169else
1170  echo "$as_me:1180: result: no" >&5
1171echo "${ECHO_T}no" >&6
1172fi
1173
1174  CC=$ac_ct_CC
1175else
1176  CC="$ac_cv_prog_CC"
1177fi
1178
1179if test -z "$CC"; then
1180  if test -n "$ac_tool_prefix"; then
1181  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1182set dummy ${ac_tool_prefix}cc; ac_word=$2
1183echo "$as_me:1193: checking for $ac_word" >&5
1184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185if test "${ac_cv_prog_CC+set}" = set; then
1186  echo $ECHO_N "(cached) $ECHO_C" >&6
1187else
1188  if test -n "$CC"; then
1189  ac_cv_prog_CC="$CC" # Let the user override the test.
1190else
1191  ac_save_IFS=$IFS; IFS=$ac_path_separator
1192ac_dummy="$PATH"
1193for ac_dir in $ac_dummy; do
1194  IFS=$ac_save_IFS
1195  test -z "$ac_dir" && ac_dir=.
1196  $as_executable_p "$ac_dir/$ac_word" || continue
1197ac_cv_prog_CC="${ac_tool_prefix}cc"
1198echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1199break
1200done
1201
1202fi
1203fi
1204CC=$ac_cv_prog_CC
1205if test -n "$CC"; then
1206  echo "$as_me:1216: result: $CC" >&5
1207echo "${ECHO_T}$CC" >&6
1208else
1209  echo "$as_me:1219: result: no" >&5
1210echo "${ECHO_T}no" >&6
1211fi
1212
1213fi
1214if test -z "$ac_cv_prog_CC"; then
1215  ac_ct_CC=$CC
1216  # Extract the first word of "cc", so it can be a program name with args.
1217set dummy cc; ac_word=$2
1218echo "$as_me:1228: checking for $ac_word" >&5
1219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1221  echo $ECHO_N "(cached) $ECHO_C" >&6
1222else
1223  if test -n "$ac_ct_CC"; then
1224  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225else
1226  ac_save_IFS=$IFS; IFS=$ac_path_separator
1227ac_dummy="$PATH"
1228for ac_dir in $ac_dummy; do
1229  IFS=$ac_save_IFS
1230  test -z "$ac_dir" && ac_dir=.
1231  $as_executable_p "$ac_dir/$ac_word" || continue
1232ac_cv_prog_ac_ct_CC="cc"
1233echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1234break
1235done
1236
1237fi
1238fi
1239ac_ct_CC=$ac_cv_prog_ac_ct_CC
1240if test -n "$ac_ct_CC"; then
1241  echo "$as_me:1251: result: $ac_ct_CC" >&5
1242echo "${ECHO_T}$ac_ct_CC" >&6
1243else
1244  echo "$as_me:1254: result: no" >&5
1245echo "${ECHO_T}no" >&6
1246fi
1247
1248  CC=$ac_ct_CC
1249else
1250  CC="$ac_cv_prog_CC"
1251fi
1252
1253fi
1254if test -z "$CC"; then
1255  # Extract the first word of "cc", so it can be a program name with args.
1256set dummy cc; ac_word=$2
1257echo "$as_me:1267: checking for $ac_word" >&5
1258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259if test "${ac_cv_prog_CC+set}" = set; then
1260  echo $ECHO_N "(cached) $ECHO_C" >&6
1261else
1262  if test -n "$CC"; then
1263  ac_cv_prog_CC="$CC" # Let the user override the test.
1264else
1265  ac_prog_rejected=no
1266  ac_save_IFS=$IFS; IFS=$ac_path_separator
1267ac_dummy="$PATH"
1268for ac_dir in $ac_dummy; do
1269  IFS=$ac_save_IFS
1270  test -z "$ac_dir" && ac_dir=.
1271  $as_executable_p "$ac_dir/$ac_word" || continue
1272if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1273  ac_prog_rejected=yes
1274  continue
1275fi
1276ac_cv_prog_CC="cc"
1277echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1278break
1279done
1280
1281if test $ac_prog_rejected = yes; then
1282  # We found a bogon in the path, so make sure we never use it.
1283  set dummy $ac_cv_prog_CC
1284  shift
1285  if test $# != 0; then
1286    # We chose a different compiler from the bogus one.
1287    # However, it has the same basename, so the bogon will be chosen
1288    # first if we set CC to just the basename; use the full file name.
1289    shift
1290    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1291    shift
1292    ac_cv_prog_CC="$@"
1293  fi
1294fi
1295fi
1296fi
1297CC=$ac_cv_prog_CC
1298if test -n "$CC"; then
1299  echo "$as_me:1309: result: $CC" >&5
1300echo "${ECHO_T}$CC" >&6
1301else
1302  echo "$as_me:1312: result: no" >&5
1303echo "${ECHO_T}no" >&6
1304fi
1305
1306fi
1307if test -z "$CC"; then
1308  if test -n "$ac_tool_prefix"; then
1309  for ac_prog in cl
1310  do
1311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1313echo "$as_me:1323: checking for $ac_word" >&5
1314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315if test "${ac_cv_prog_CC+set}" = set; then
1316  echo $ECHO_N "(cached) $ECHO_C" >&6
1317else
1318  if test -n "$CC"; then
1319  ac_cv_prog_CC="$CC" # Let the user override the test.
1320else
1321  ac_save_IFS=$IFS; IFS=$ac_path_separator
1322ac_dummy="$PATH"
1323for ac_dir in $ac_dummy; do
1324  IFS=$ac_save_IFS
1325  test -z "$ac_dir" && ac_dir=.
1326  $as_executable_p "$ac_dir/$ac_word" || continue
1327ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1328echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1329break
1330done
1331
1332fi
1333fi
1334CC=$ac_cv_prog_CC
1335if test -n "$CC"; then
1336  echo "$as_me:1346: result: $CC" >&5
1337echo "${ECHO_T}$CC" >&6
1338else
1339  echo "$as_me:1349: result: no" >&5
1340echo "${ECHO_T}no" >&6
1341fi
1342
1343    test -n "$CC" && break
1344  done
1345fi
1346if test -z "$CC"; then
1347  ac_ct_CC=$CC
1348  for ac_prog in cl
1349do
1350  # Extract the first word of "$ac_prog", so it can be a program name with args.
1351set dummy $ac_prog; ac_word=$2
1352echo "$as_me:1362: checking for $ac_word" >&5
1353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1355  echo $ECHO_N "(cached) $ECHO_C" >&6
1356else
1357  if test -n "$ac_ct_CC"; then
1358  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359else
1360  ac_save_IFS=$IFS; IFS=$ac_path_separator
1361ac_dummy="$PATH"
1362for ac_dir in $ac_dummy; do
1363  IFS=$ac_save_IFS
1364  test -z "$ac_dir" && ac_dir=.
1365  $as_executable_p "$ac_dir/$ac_word" || continue
1366ac_cv_prog_ac_ct_CC="$ac_prog"
1367echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1368break
1369done
1370
1371fi
1372fi
1373ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374if test -n "$ac_ct_CC"; then
1375  echo "$as_me:1385: result: $ac_ct_CC" >&5
1376echo "${ECHO_T}$ac_ct_CC" >&6
1377else
1378  echo "$as_me:1388: result: no" >&5
1379echo "${ECHO_T}no" >&6
1380fi
1381
1382  test -n "$ac_ct_CC" && break
1383done
1384
1385  CC=$ac_ct_CC
1386fi
1387
1388fi
1389
1390test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1391echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1392   { (exit 1); exit 1; }; }
1393
1394cat >conftest.$ac_ext <<_ACEOF
1395#line 1405 "configure"
1396#include "confdefs.h"
1397
1398int
1399main ()
1400{
1401
1402  ;
1403  return 0;
1404}
1405_ACEOF
1406ac_clean_files_save=$ac_clean_files
1407ac_clean_files="$ac_clean_files a.out a.exe"
1408# Try to create an executable without -o first, disregard a.out.
1409# It will help us diagnose broken compiler, and finding out an intuition
1410# of exeext.
1411echo "$as_me:1421: checking for C compiler default output" >&5
1412echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1413ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1414if { (eval echo "$as_me:1424: \"$ac_link_default\"") >&5
1415  (eval $ac_link_default) 2>&5
1416  ac_status=$?
1417  echo "$as_me:1427: \$? = $ac_status" >&5
1418  (exit $ac_status); }; then
1419  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1420  case $ac_file in
1421    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1422    a.out ) # We found the default executable, but exeext='' is most
1423            # certainly right.
1424            break;;
1425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1426          export ac_cv_exeext
1427          break;;
1428    * ) break;;
1429  esac
1430done
1431else
1432  echo "$as_me: failed program was:" >&5
1433cat conftest.$ac_ext >&5
1434{ { echo "$as_me:1444: error: C compiler cannot create executables" >&5
1435echo "$as_me: error: C compiler cannot create executables" >&2;}
1436   { (exit 77); exit 77; }; }
1437fi
1438
1439ac_exeext=$ac_cv_exeext
1440echo "$as_me:1450: result: $ac_file" >&5
1441echo "${ECHO_T}$ac_file" >&6
1442
1443# Check the compiler produces executables we can run.  If not, either
1444# the compiler is broken, or we cross compile.
1445echo "$as_me:1455: checking whether the C compiler works" >&5
1446echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1447# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1448# If not cross compiling, check that we can run a simple program.
1449if test "$cross_compiling" != yes; then
1450  if { ac_try='./$ac_file'
1451  { (eval echo "$as_me:1461: \"$ac_try\"") >&5
1452  (eval $ac_try) 2>&5
1453  ac_status=$?
1454  echo "$as_me:1464: \$? = $ac_status" >&5
1455  (exit $ac_status); }; }; then
1456    cross_compiling=no
1457  else
1458    if test "$cross_compiling" = maybe; then
1459        cross_compiling=yes
1460    else
1461        { { echo "$as_me:1471: error: cannot run C compiled programs.
1462If you meant to cross compile, use \`--host'." >&5
1463echo "$as_me: error: cannot run C compiled programs.
1464If you meant to cross compile, use \`--host'." >&2;}
1465   { (exit 1); exit 1; }; }
1466    fi
1467  fi
1468fi
1469echo "$as_me:1479: result: yes" >&5
1470echo "${ECHO_T}yes" >&6
1471
1472rm -f a.out a.exe conftest$ac_cv_exeext
1473ac_clean_files=$ac_clean_files_save
1474# Check the compiler produces executables we can run.  If not, either
1475# the compiler is broken, or we cross compile.
1476echo "$as_me:1486: checking whether we are cross compiling" >&5
1477echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1478echo "$as_me:1488: result: $cross_compiling" >&5
1479echo "${ECHO_T}$cross_compiling" >&6
1480
1481echo "$as_me:1491: checking for executable suffix" >&5
1482echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1483if { (eval echo "$as_me:1493: \"$ac_link\"") >&5
1484  (eval $ac_link) 2>&5
1485  ac_status=$?
1486  echo "$as_me:1496: \$? = $ac_status" >&5
1487  (exit $ac_status); }; then
1488  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1489# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1490# work properly (i.e., refer to `conftest.exe'), while it won't with
1491# `rm'.
1492for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1493  case $ac_file in
1494    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1495    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1496          export ac_cv_exeext
1497          break;;
1498    * ) break;;
1499  esac
1500done
1501else
1502  { { echo "$as_me:1512: error: cannot compute EXEEXT: cannot compile and link" >&5
1503echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1504   { (exit 1); exit 1; }; }
1505fi
1506
1507rm -f conftest$ac_cv_exeext
1508echo "$as_me:1518: result: $ac_cv_exeext" >&5
1509echo "${ECHO_T}$ac_cv_exeext" >&6
1510
1511rm -f conftest.$ac_ext
1512EXEEXT=$ac_cv_exeext
1513ac_exeext=$EXEEXT
1514echo "$as_me:1524: checking for object suffix" >&5
1515echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1516if test "${ac_cv_objext+set}" = set; then
1517  echo $ECHO_N "(cached) $ECHO_C" >&6
1518else
1519  cat >conftest.$ac_ext <<_ACEOF
1520#line 1530 "configure"
1521#include "confdefs.h"
1522
1523int
1524main ()
1525{
1526
1527  ;
1528  return 0;
1529}
1530_ACEOF
1531rm -f conftest.o conftest.obj
1532if { (eval echo "$as_me:1542: \"$ac_compile\"") >&5
1533  (eval $ac_compile) 2>&5
1534  ac_status=$?
1535  echo "$as_me:1545: \$? = $ac_status" >&5
1536  (exit $ac_status); }; then
1537  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1538  case $ac_file in
1539    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1540    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1541       break;;
1542  esac
1543done
1544else
1545  echo "$as_me: failed program was:" >&5
1546cat conftest.$ac_ext >&5
1547{ { echo "$as_me:1557: error: cannot compute OBJEXT: cannot compile" >&5
1548echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1549   { (exit 1); exit 1; }; }
1550fi
1551
1552rm -f conftest.$ac_cv_objext conftest.$ac_ext
1553fi
1554echo "$as_me:1564: result: $ac_cv_objext" >&5
1555echo "${ECHO_T}$ac_cv_objext" >&6
1556OBJEXT=$ac_cv_objext
1557ac_objext=$OBJEXT
1558echo "$as_me:1568: checking whether we are using the GNU C compiler" >&5
1559echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1560if test "${ac_cv_c_compiler_gnu+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  cat >conftest.$ac_ext <<_ACEOF
1564#line 1574 "configure"
1565#include "confdefs.h"
1566
1567int
1568main ()
1569{
1570#ifndef __GNUC__
1571       choke me
1572#endif
1573
1574  ;
1575  return 0;
1576}
1577_ACEOF
1578rm -f conftest.$ac_objext
1579if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1580  (eval $ac_compile) 2>&5
1581  ac_status=$?
1582  echo "$as_me:1592: \$? = $ac_status" >&5
1583  (exit $ac_status); } &&
1584         { ac_try='test -s conftest.$ac_objext'
1585  { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1586  (eval $ac_try) 2>&5
1587  ac_status=$?
1588  echo "$as_me:1598: \$? = $ac_status" >&5
1589  (exit $ac_status); }; }; then
1590  ac_compiler_gnu=yes
1591else
1592  echo "$as_me: failed program was:" >&5
1593cat conftest.$ac_ext >&5
1594ac_compiler_gnu=no
1595fi
1596rm -f conftest.$ac_objext conftest.$ac_ext
1597ac_cv_c_compiler_gnu=$ac_compiler_gnu
1598
1599fi
1600echo "$as_me:1610: result: $ac_cv_c_compiler_gnu" >&5
1601echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1602GCC=`test $ac_compiler_gnu = yes && echo yes`
1603ac_test_CFLAGS=${CFLAGS+set}
1604ac_save_CFLAGS=$CFLAGS
1605CFLAGS="-g"
1606echo "$as_me:1616: checking whether $CC accepts -g" >&5
1607echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1608if test "${ac_cv_prog_cc_g+set}" = set; then
1609  echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611  cat >conftest.$ac_ext <<_ACEOF
1612#line 1622 "configure"
1613#include "confdefs.h"
1614
1615int
1616main ()
1617{
1618
1619  ;
1620  return 0;
1621}
1622_ACEOF
1623rm -f conftest.$ac_objext
1624if { (eval echo "$as_me:1634: \"$ac_compile\"") >&5
1625  (eval $ac_compile) 2>&5
1626  ac_status=$?
1627  echo "$as_me:1637: \$? = $ac_status" >&5
1628  (exit $ac_status); } &&
1629         { ac_try='test -s conftest.$ac_objext'
1630  { (eval echo "$as_me:1640: \"$ac_try\"") >&5
1631  (eval $ac_try) 2>&5
1632  ac_status=$?
1633  echo "$as_me:1643: \$? = $ac_status" >&5
1634  (exit $ac_status); }; }; then
1635  ac_cv_prog_cc_g=yes
1636else
1637  echo "$as_me: failed program was:" >&5
1638cat conftest.$ac_ext >&5
1639ac_cv_prog_cc_g=no
1640fi
1641rm -f conftest.$ac_objext conftest.$ac_ext
1642fi
1643echo "$as_me:1653: result: $ac_cv_prog_cc_g" >&5
1644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1645if test "$ac_test_CFLAGS" = set; then
1646  CFLAGS=$ac_save_CFLAGS
1647elif test $ac_cv_prog_cc_g = yes; then
1648  if test "$GCC" = yes; then
1649    CFLAGS="-g -O2"
1650  else
1651    CFLAGS="-g"
1652  fi
1653else
1654  if test "$GCC" = yes; then
1655    CFLAGS="-O2"
1656  else
1657    CFLAGS=
1658  fi
1659fi
1660# Some people use a C++ compiler to compile C.  Since we use `exit',
1661# in C++ we need to declare it.  In case someone uses the same compiler
1662# for both compiling C and C++ we need to have the C++ compiler decide
1663# the declaration of exit, since it's the most demanding environment.
1664cat >conftest.$ac_ext <<_ACEOF
1665#ifndef __cplusplus
1666  choke me
1667#endif
1668_ACEOF
1669rm -f conftest.$ac_objext
1670if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1671  (eval $ac_compile) 2>&5
1672  ac_status=$?
1673  echo "$as_me:1683: \$? = $ac_status" >&5
1674  (exit $ac_status); } &&
1675         { ac_try='test -s conftest.$ac_objext'
1676  { (eval echo "$as_me:1686: \"$ac_try\"") >&5
1677  (eval $ac_try) 2>&5
1678  ac_status=$?
1679  echo "$as_me:1689: \$? = $ac_status" >&5
1680  (exit $ac_status); }; }; then
1681  for ac_declaration in \
1682   ''\
1683   '#include <stdlib.h>' \
1684   'extern "C" void std::exit (int) throw (); using std::exit;' \
1685   'extern "C" void std::exit (int); using std::exit;' \
1686   'extern "C" void exit (int) throw ();' \
1687   'extern "C" void exit (int);' \
1688   'void exit (int);'
1689do
1690  cat >conftest.$ac_ext <<_ACEOF
1691#line 1701 "configure"
1692#include "confdefs.h"
1693#include <stdlib.h>
1694$ac_declaration
1695int
1696main ()
1697{
1698exit (42);
1699  ;
1700  return 0;
1701}
1702_ACEOF
1703rm -f conftest.$ac_objext
1704if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1705  (eval $ac_compile) 2>&5
1706  ac_status=$?
1707  echo "$as_me:1717: \$? = $ac_status" >&5
1708  (exit $ac_status); } &&
1709         { ac_try='test -s conftest.$ac_objext'
1710  { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1711  (eval $ac_try) 2>&5
1712  ac_status=$?
1713  echo "$as_me:1723: \$? = $ac_status" >&5
1714  (exit $ac_status); }; }; then
1715  :
1716else
1717  echo "$as_me: failed program was:" >&5
1718cat conftest.$ac_ext >&5
1719continue
1720fi
1721rm -f conftest.$ac_objext conftest.$ac_ext
1722  cat >conftest.$ac_ext <<_ACEOF
1723#line 1733 "configure"
1724#include "confdefs.h"
1725$ac_declaration
1726int
1727main ()
1728{
1729exit (42);
1730  ;
1731  return 0;
1732}
1733_ACEOF
1734rm -f conftest.$ac_objext
1735if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1736  (eval $ac_compile) 2>&5
1737  ac_status=$?
1738  echo "$as_me:1748: \$? = $ac_status" >&5
1739  (exit $ac_status); } &&
1740         { ac_try='test -s conftest.$ac_objext'
1741  { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1742  (eval $ac_try) 2>&5
1743  ac_status=$?
1744  echo "$as_me:1754: \$? = $ac_status" >&5
1745  (exit $ac_status); }; }; then
1746  break
1747else
1748  echo "$as_me: failed program was:" >&5
1749cat conftest.$ac_ext >&5
1750fi
1751rm -f conftest.$ac_objext conftest.$ac_ext
1752done
1753echo '#ifdef __cplusplus' >>confdefs.h
1754echo $ac_declaration      >>confdefs.h
1755echo '#endif'             >>confdefs.h
1756
1757else
1758  echo "$as_me: failed program was:" >&5
1759cat conftest.$ac_ext >&5
1760fi
1761rm -f conftest.$ac_objext conftest.$ac_ext
1762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767
1768ac_aux_dir=
1769for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1770  if test -f $ac_dir/install-sh; then
1771    ac_aux_dir=$ac_dir
1772    ac_install_sh="$ac_aux_dir/install-sh -c"
1773    break
1774  elif test -f $ac_dir/install.sh; then
1775    ac_aux_dir=$ac_dir
1776    ac_install_sh="$ac_aux_dir/install.sh -c"
1777    break
1778  elif test -f $ac_dir/shtool; then
1779    ac_aux_dir=$ac_dir
1780    ac_install_sh="$ac_aux_dir/shtool install -c"
1781    break
1782  fi
1783done
1784if test -z "$ac_aux_dir"; then
1785  { { echo "$as_me:1795: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1786echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1787   { (exit 1); exit 1; }; }
1788fi
1789ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1790ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1791ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1792
1793# Find a good install program.  We prefer a C program (faster),
1794# so one script is as good as another.  But avoid the broken or
1795# incompatible versions:
1796# SysV /etc/install, /usr/sbin/install
1797# SunOS /usr/etc/install
1798# IRIX /sbin/install
1799# AIX /bin/install
1800# AmigaOS /C/install, which installs bootblocks on floppy discs
1801# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1802# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1803# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1804# ./install, which can be erroneously created by make from ./install.sh.
1805echo "$as_me:1815: checking for a BSD compatible install" >&5
1806echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1807if test -z "$INSTALL"; then
1808if test "${ac_cv_path_install+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811    ac_save_IFS=$IFS; IFS=$ac_path_separator
1812  for ac_dir in $PATH; do
1813    IFS=$ac_save_IFS
1814    # Account for people who put trailing slashes in PATH elements.
1815    case $ac_dir/ in
1816    / | ./ | .// | /cC/* \
1817    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1818    | /usr/ucb/* ) ;;
1819    *)
1820      # OSF1 and SCO ODT 3.0 have their own names for install.
1821      # Don't use installbsd from OSF since it installs stuff as root
1822      # by default.
1823      for ac_prog in ginstall scoinst install; do
1824        if $as_executable_p "$ac_dir/$ac_prog"; then
1825          if test $ac_prog = install &&
1826            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1827            # AIX install.  It has an incompatible calling convention.
1828            :
1829          elif test $ac_prog = install &&
1830            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1831            # program-specific install script used by HP pwplus--don't use.
1832            :
1833          else
1834            ac_cv_path_install="$ac_dir/$ac_prog -c"
1835            break 2
1836          fi
1837        fi
1838      done
1839      ;;
1840    esac
1841  done
1842
1843fi
1844  if test "${ac_cv_path_install+set}" = set; then
1845    INSTALL=$ac_cv_path_install
1846  else
1847    # As a last resort, use the slow shell script.  We don't cache a
1848    # path for INSTALL within a source directory, because that will
1849    # break other packages using the cache if that directory is
1850    # removed, or if the path is relative.
1851    INSTALL=$ac_install_sh
1852  fi
1853fi
1854echo "$as_me:1864: result: $INSTALL" >&5
1855echo "${ECHO_T}$INSTALL" >&6
1856
1857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1858# It thinks the first close brace ends the variable substitution.
1859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1860
1861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1862
1863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1864
1865if test -n "$ac_tool_prefix"; then
1866  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1868echo "$as_me:1878: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_RANLIB+set}" = set; then
1871  echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873  if test -n "$RANLIB"; then
1874  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1875else
1876  ac_save_IFS=$IFS; IFS=$ac_path_separator
1877ac_dummy="$PATH"
1878for ac_dir in $ac_dummy; do
1879  IFS=$ac_save_IFS
1880  test -z "$ac_dir" && ac_dir=.
1881  $as_executable_p "$ac_dir/$ac_word" || continue
1882ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1883echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1884break
1885done
1886
1887fi
1888fi
1889RANLIB=$ac_cv_prog_RANLIB
1890if test -n "$RANLIB"; then
1891  echo "$as_me:1901: result: $RANLIB" >&5
1892echo "${ECHO_T}$RANLIB" >&6
1893else
1894  echo "$as_me:1904: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898fi
1899if test -z "$ac_cv_prog_RANLIB"; then
1900  ac_ct_RANLIB=$RANLIB
1901  # Extract the first word of "ranlib", so it can be a program name with args.
1902set dummy ranlib; ac_word=$2
1903echo "$as_me:1913: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  if test -n "$ac_ct_RANLIB"; then
1909  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1910else
1911  ac_save_IFS=$IFS; IFS=$ac_path_separator
1912ac_dummy="$PATH"
1913for ac_dir in $ac_dummy; do
1914  IFS=$ac_save_IFS
1915  test -z "$ac_dir" && ac_dir=.
1916  $as_executable_p "$ac_dir/$ac_word" || continue
1917ac_cv_prog_ac_ct_RANLIB="ranlib"
1918echo "$as_me:1928: found $ac_dir/$ac_word" >&5
1919break
1920done
1921
1922  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1923fi
1924fi
1925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1926if test -n "$ac_ct_RANLIB"; then
1927  echo "$as_me:1937: result: $ac_ct_RANLIB" >&5
1928echo "${ECHO_T}$ac_ct_RANLIB" >&6
1929else
1930  echo "$as_me:1940: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934  RANLIB=$ac_ct_RANLIB
1935else
1936  RANLIB="$ac_cv_prog_RANLIB"
1937fi
1938
1939ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944echo "$as_me:1954: checking how to run the C preprocessor" >&5
1945echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1946# On Suns, sometimes $CPP names a directory.
1947if test -n "$CPP" && test -d "$CPP"; then
1948  CPP=
1949fi
1950if test -z "$CPP"; then
1951  if test "${ac_cv_prog_CPP+set}" = set; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954      # Double quotes because CPP needs to be expanded
1955    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1956    do
1957      # break 2 since there is a loop in there.
1958      ac_preproc_ok=false
1959for ac_c_preproc_warn_flag in '' yes
1960do
1961  # Use a header file that comes with gcc, so configuring glibc
1962  # with a fresh cross-compiler works.
1963  # On the NeXT, cc -E runs the code through the compiler's parser,
1964  # not just through cpp. "Syntax error" is here to catch this case.
1965  cat >conftest.$ac_ext <<_ACEOF
1966#line 1976 "configure"
1967#include "confdefs.h"
1968#include <assert.h>
1969                     Syntax error
1970_ACEOF
1971if { (eval echo "$as_me:1981: \"$ac_cpp conftest.$ac_ext\"") >&5
1972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1973  ac_status=$?
1974  egrep -v '^ *\+' conftest.er1 >conftest.err
1975  rm -f conftest.er1
1976  cat conftest.err >&5
1977  echo "$as_me:1987: \$? = $ac_status" >&5
1978  (exit $ac_status); } >/dev/null; then
1979  if test -s conftest.err; then
1980    ac_cpp_err=$ac_c_preproc_warn_flag
1981  else
1982    ac_cpp_err=
1983  fi
1984else
1985  ac_cpp_err=yes
1986fi
1987if test -z "$ac_cpp_err"; then
1988  :
1989else
1990  echo "$as_me: failed program was:" >&5
1991  cat conftest.$ac_ext >&5
1992  # Broken: fails on valid input.
1993continue
1994fi
1995rm -f conftest.err conftest.$ac_ext
1996
1997  # OK, works on sane cases.  Now check whether non-existent headers
1998  # can be detected and how.
1999  cat >conftest.$ac_ext <<_ACEOF
2000#line 2010 "configure"
2001#include "confdefs.h"
2002#include <ac_nonexistent.h>
2003_ACEOF
2004if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2005  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2006  ac_status=$?
2007  egrep -v '^ *\+' conftest.er1 >conftest.err
2008  rm -f conftest.er1
2009  cat conftest.err >&5
2010  echo "$as_me:2020: \$? = $ac_status" >&5
2011  (exit $ac_status); } >/dev/null; then
2012  if test -s conftest.err; then
2013    ac_cpp_err=$ac_c_preproc_warn_flag
2014  else
2015    ac_cpp_err=
2016  fi
2017else
2018  ac_cpp_err=yes
2019fi
2020if test -z "$ac_cpp_err"; then
2021  # Broken: success on invalid input.
2022continue
2023else
2024  echo "$as_me: failed program was:" >&5
2025  cat conftest.$ac_ext >&5
2026  # Passes both tests.
2027ac_preproc_ok=:
2028break
2029fi
2030rm -f conftest.err conftest.$ac_ext
2031
2032done
2033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2034rm -f conftest.err conftest.$ac_ext
2035if $ac_preproc_ok; then
2036  break 2
2037fi
2038
2039    done
2040    ac_cv_prog_CPP=$CPP
2041
2042fi
2043  CPP=$ac_cv_prog_CPP
2044else
2045  ac_cv_prog_CPP=$CPP
2046fi
2047echo "$as_me:2057: result: $CPP" >&5
2048echo "${ECHO_T}$CPP" >&6
2049ac_preproc_ok=false
2050for ac_c_preproc_warn_flag in '' yes
2051do
2052  # Use a header file that comes with gcc, so configuring glibc
2053  # with a fresh cross-compiler works.
2054  # On the NeXT, cc -E runs the code through the compiler's parser,
2055  # not just through cpp. "Syntax error" is here to catch this case.
2056  cat >conftest.$ac_ext <<_ACEOF
2057#line 2067 "configure"
2058#include "confdefs.h"
2059#include <assert.h>
2060                     Syntax error
2061_ACEOF
2062if { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext\"") >&5
2063  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2064  ac_status=$?
2065  egrep -v '^ *\+' conftest.er1 >conftest.err
2066  rm -f conftest.er1
2067  cat conftest.err >&5
2068  echo "$as_me:2078: \$? = $ac_status" >&5
2069  (exit $ac_status); } >/dev/null; then
2070  if test -s conftest.err; then
2071    ac_cpp_err=$ac_c_preproc_warn_flag
2072  else
2073    ac_cpp_err=
2074  fi
2075else
2076  ac_cpp_err=yes
2077fi
2078if test -z "$ac_cpp_err"; then
2079  :
2080else
2081  echo "$as_me: failed program was:" >&5
2082  cat conftest.$ac_ext >&5
2083  # Broken: fails on valid input.
2084continue
2085fi
2086rm -f conftest.err conftest.$ac_ext
2087
2088  # OK, works on sane cases.  Now check whether non-existent headers
2089  # can be detected and how.
2090  cat >conftest.$ac_ext <<_ACEOF
2091#line 2101 "configure"
2092#include "confdefs.h"
2093#include <ac_nonexistent.h>
2094_ACEOF
2095if { (eval echo "$as_me:2105: \"$ac_cpp conftest.$ac_ext\"") >&5
2096  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2097  ac_status=$?
2098  egrep -v '^ *\+' conftest.er1 >conftest.err
2099  rm -f conftest.er1
2100  cat conftest.err >&5
2101  echo "$as_me:2111: \$? = $ac_status" >&5
2102  (exit $ac_status); } >/dev/null; then
2103  if test -s conftest.err; then
2104    ac_cpp_err=$ac_c_preproc_warn_flag
2105  else
2106    ac_cpp_err=
2107  fi
2108else
2109  ac_cpp_err=yes
2110fi
2111if test -z "$ac_cpp_err"; then
2112  # Broken: success on invalid input.
2113continue
2114else
2115  echo "$as_me: failed program was:" >&5
2116  cat conftest.$ac_ext >&5
2117  # Passes both tests.
2118ac_preproc_ok=:
2119break
2120fi
2121rm -f conftest.err conftest.$ac_ext
2122
2123done
2124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2125rm -f conftest.err conftest.$ac_ext
2126if $ac_preproc_ok; then
2127  :
2128else
2129  { { echo "$as_me:2139: error: C preprocessor \"$CPP\" fails sanity check" >&5
2130echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2131   { (exit 1); exit 1; }; }
2132fi
2133
2134ac_ext=c
2135ac_cpp='$CPP $CPPFLAGS'
2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139
2140echo "$as_me:2150: checking for ANSI C header files" >&5
2141echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2142if test "${ac_cv_header_stdc+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146#line 2156 "configure"
2147#include "confdefs.h"
2148#include <stdlib.h>
2149#include <stdarg.h>
2150#include <string.h>
2151#include <float.h>
2152
2153_ACEOF
2154if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2155  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2156  ac_status=$?
2157  egrep -v '^ *\+' conftest.er1 >conftest.err
2158  rm -f conftest.er1
2159  cat conftest.err >&5
2160  echo "$as_me:2170: \$? = $ac_status" >&5
2161  (exit $ac_status); } >/dev/null; then
2162  if test -s conftest.err; then
2163    ac_cpp_err=$ac_c_preproc_warn_flag
2164  else
2165    ac_cpp_err=
2166  fi
2167else
2168  ac_cpp_err=yes
2169fi
2170if test -z "$ac_cpp_err"; then
2171  ac_cv_header_stdc=yes
2172else
2173  echo "$as_me: failed program was:" >&5
2174  cat conftest.$ac_ext >&5
2175  ac_cv_header_stdc=no
2176fi
2177rm -f conftest.err conftest.$ac_ext
2178
2179if test $ac_cv_header_stdc = yes; then
2180  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2181  cat >conftest.$ac_ext <<_ACEOF
2182#line 2192 "configure"
2183#include "confdefs.h"
2184#include <string.h>
2185
2186_ACEOF
2187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2188  egrep "memchr" >/dev/null 2>&1; then
2189  :
2190else
2191  ac_cv_header_stdc=no
2192fi
2193rm -f conftest*
2194
2195fi
2196
2197if test $ac_cv_header_stdc = yes; then
2198  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2199  cat >conftest.$ac_ext <<_ACEOF
2200#line 2210 "configure"
2201#include "confdefs.h"
2202#include <stdlib.h>
2203
2204_ACEOF
2205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2206  egrep "free" >/dev/null 2>&1; then
2207  :
2208else
2209  ac_cv_header_stdc=no
2210fi
2211rm -f conftest*
2212
2213fi
2214
2215if test $ac_cv_header_stdc = yes; then
2216  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2217  if test "$cross_compiling" = yes; then
2218  :
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221#line 2231 "configure"
2222#include "confdefs.h"
2223#include <ctype.h>
2224#if ((' ' & 0x0FF) == 0x020)
2225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2227#else
2228# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2229                     || ('j' <= (c) && (c) <= 'r') \
2230                     || ('s' <= (c) && (c) <= 'z'))
2231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2232#endif
2233
2234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2235int
2236main ()
2237{
2238  int i;
2239  for (i = 0; i < 256; i++)
2240    if (XOR (islower (i), ISLOWER (i))
2241        || toupper (i) != TOUPPER (i))
2242      exit(2);
2243  exit (0);
2244}
2245_ACEOF
2246rm -f conftest$ac_exeext
2247if { (eval echo "$as_me:2257: \"$ac_link\"") >&5
2248  (eval $ac_link) 2>&5
2249  ac_status=$?
2250  echo "$as_me:2260: \$? = $ac_status" >&5
2251  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2252  { (eval echo "$as_me:2262: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:2265: \$? = $ac_status" >&5
2256  (exit $ac_status); }; }; then
2257  :
2258else
2259  echo "$as_me: program exited with status $ac_status" >&5
2260echo "$as_me: failed program was:" >&5
2261cat conftest.$ac_ext >&5
2262ac_cv_header_stdc=no
2263fi
2264rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2265fi
2266fi
2267fi
2268echo "$as_me:2278: result: $ac_cv_header_stdc" >&5
2269echo "${ECHO_T}$ac_cv_header_stdc" >&6
2270if test $ac_cv_header_stdc = yes; then
2271
2272cat >>confdefs.h <<\EOF
2273#define STDC_HEADERS 1
2274EOF
2275
2276fi
2277
2278for ac_header in limits.h
2279do
2280ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2281echo "$as_me:2291: checking for $ac_header" >&5
2282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2283if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  cat >conftest.$ac_ext <<_ACEOF
2287#line 2297 "configure"
2288#include "confdefs.h"
2289#include <$ac_header>
2290_ACEOF
2291if { (eval echo "$as_me:2301: \"$ac_cpp conftest.$ac_ext\"") >&5
2292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293  ac_status=$?
2294  egrep -v '^ *\+' conftest.er1 >conftest.err
2295  rm -f conftest.er1
2296  cat conftest.err >&5
2297  echo "$as_me:2307: \$? = $ac_status" >&5
2298  (exit $ac_status); } >/dev/null; then
2299  if test -s conftest.err; then
2300    ac_cpp_err=$ac_c_preproc_warn_flag
2301  else
2302    ac_cpp_err=
2303  fi
2304else
2305  ac_cpp_err=yes
2306fi
2307if test -z "$ac_cpp_err"; then
2308  eval "$ac_ac_Header=yes"
2309else
2310  echo "$as_me: failed program was:" >&5
2311  cat conftest.$ac_ext >&5
2312  eval "$ac_ac_Header=no"
2313fi
2314rm -f conftest.err conftest.$ac_ext
2315fi
2316echo "$as_me:2326: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2317echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2318if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2319  cat >>confdefs.h <<EOF
2320#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2321EOF
2322
2323fi
2324done
2325
2326echo "$as_me:2336: checking for $CC option to accept ANSI C" >&5
2327echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2328if test "${ac_cv_prog_cc_stdc+set}" = set; then
2329  echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331  ac_cv_prog_cc_stdc=no
2332ac_save_CC=$CC
2333cat >conftest.$ac_ext <<_ACEOF
2334#line 2344 "configure"
2335#include "confdefs.h"
2336#include <stdarg.h>
2337#include <stdio.h>
2338#include <sys/types.h>
2339#include <sys/stat.h>
2340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2341struct buf { int x; };
2342FILE * (*rcsopen) (struct buf *, struct stat *, int);
2343static char *e (p, i)
2344     char **p;
2345     int i;
2346{
2347  return p[i];
2348}
2349static char *f (char * (*g) (char **, int), char **p, ...)
2350{
2351  char *s;
2352  va_list v;
2353  va_start (v,p);
2354  s = g (p, va_arg (v,int));
2355  va_end (v);
2356  return s;
2357}
2358int test (int i, double x);
2359struct s1 {int (*f) (int a);};
2360struct s2 {int (*f) (double a);};
2361int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2362int argc;
2363char **argv;
2364int
2365main ()
2366{
2367return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372# Don't try gcc -ansi; that turns off useful extensions and
2373# breaks some systems' header files.
2374# AIX                   -qlanglvl=ansi
2375# Ultrix and OSF/1      -std1
2376# HP-UX 10.20 and later -Ae
2377# HP-UX older versions  -Aa -D_HPUX_SOURCE
2378# SVR4                  -Xc -D__EXTENSIONS__
2379for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2380do
2381  CC="$ac_save_CC $ac_arg"
2382  rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:2393: \"$ac_compile\"") >&5
2384  (eval $ac_compile) 2>&5
2385  ac_status=$?
2386  echo "$as_me:2396: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388         { ac_try='test -s conftest.$ac_objext'
2389  { (eval echo "$as_me:2399: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:2402: \$? = $ac_status" >&5
2393  (exit $ac_status); }; }; then
2394  ac_cv_prog_cc_stdc=$ac_arg
2395break
2396else
2397  echo "$as_me: failed program was:" >&5
2398cat conftest.$ac_ext >&5
2399fi
2400rm -f conftest.$ac_objext
2401done
2402rm -f conftest.$ac_ext conftest.$ac_objext
2403CC=$ac_save_CC
2404
2405fi
2406
2407case "x$ac_cv_prog_cc_stdc" in
2408  x|xno)
2409    echo "$as_me:2419: result: none needed" >&5
2410echo "${ECHO_T}none needed" >&6 ;;
2411  *)
2412    echo "$as_me:2422: result: $ac_cv_prog_cc_stdc" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2414    CC="$CC $ac_cv_prog_cc_stdc" ;;
2415esac
2416
2417echo "$as_me:2427: checking for an ANSI C-conforming const" >&5
2418echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2419if test "${ac_cv_c_const+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  cat >conftest.$ac_ext <<_ACEOF
2423#line 2433 "configure"
2424#include "confdefs.h"
2425
2426int
2427main ()
2428{
2429/* FIXME: Include the comments suggested by Paul. */
2430#ifndef __cplusplus
2431  /* Ultrix mips cc rejects this.  */
2432  typedef int charset[2];
2433  const charset x;
2434  /* SunOS 4.1.1 cc rejects this.  */
2435  char const *const *ccp;
2436  char **p;
2437  /* NEC SVR4.0.2 mips cc rejects this.  */
2438  struct point {int x, y;};
2439  static struct point const zero = {0,0};
2440  /* AIX XL C 1.02.0.0 rejects this.
2441     It does not let you subtract one const X* pointer from another in
2442     an arm of an if-expression whose if-part is not a constant
2443     expression */
2444  const char *g = "string";
2445  ccp = &g + (g ? g-g : 0);
2446  /* HPUX 7.0 cc rejects these. */
2447  ++ccp;
2448  p = (char**) ccp;
2449  ccp = (char const *const *) p;
2450  { /* SCO 3.2v4 cc rejects this.  */
2451    char *t;
2452    char const *s = 0 ? (char *) 0 : (char const *) 0;
2453
2454    *t++ = 0;
2455  }
2456  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2457    int x[] = {25, 17};
2458    const int *foo = &x[0];
2459    ++foo;
2460  }
2461  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2462    typedef const int *iptr;
2463    iptr p = 0;
2464    ++p;
2465  }
2466  { /* AIX XL C 1.02.0.0 rejects this saying
2467       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2468    struct s { int j; const int *ap[3]; };
2469    struct s *b; b->j = 5;
2470  }
2471  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2472    const int foo = 10;
2473  }
2474#endif
2475
2476  ;
2477  return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2482  (eval $ac_compile) 2>&5
2483  ac_status=$?
2484  echo "$as_me:2494: \$? = $ac_status" >&5
2485  (exit $ac_status); } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:2500: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  ac_cv_c_const=yes
2493else
2494  echo "$as_me: failed program was:" >&5
2495cat conftest.$ac_ext >&5
2496ac_cv_c_const=no
2497fi
2498rm -f conftest.$ac_objext conftest.$ac_ext
2499fi
2500echo "$as_me:2510: result: $ac_cv_c_const" >&5
2501echo "${ECHO_T}$ac_cv_c_const" >&6
2502if test $ac_cv_c_const = no; then
2503
2504cat >>confdefs.h <<\EOF
2505#define const
2506EOF
2507
2508fi
2509
2510for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
2511do
2512ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2513echo "$as_me:2523: checking for $ac_header" >&5
2514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2515if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  cat >conftest.$ac_ext <<_ACEOF
2519#line 2529 "configure"
2520#include "confdefs.h"
2521#include <$ac_header>
2522_ACEOF
2523if { (eval echo "$as_me:2533: \"$ac_cpp conftest.$ac_ext\"") >&5
2524  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525  ac_status=$?
2526  egrep -v '^ *\+' conftest.er1 >conftest.err
2527  rm -f conftest.er1
2528  cat conftest.err >&5
2529  echo "$as_me:2539: \$? = $ac_status" >&5
2530  (exit $ac_status); } >/dev/null; then
2531  if test -s conftest.err; then
2532    ac_cpp_err=$ac_c_preproc_warn_flag
2533  else
2534    ac_cpp_err=
2535  fi
2536else
2537  ac_cpp_err=yes
2538fi
2539if test -z "$ac_cpp_err"; then
2540  eval "$ac_ac_Header=yes"
2541else
2542  echo "$as_me: failed program was:" >&5
2543  cat conftest.$ac_ext >&5
2544  eval "$ac_ac_Header=no"
2545fi
2546rm -f conftest.err conftest.$ac_ext
2547fi
2548echo "$as_me:2558: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2549echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2550if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2551  cat >>confdefs.h <<EOF
2552#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2553EOF
2554
2555fi
2556done
2557
2558echo "$as_me:2568: checking for size_t" >&5
2559echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2560if test "${ac_cv_type_size_t+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  cat >conftest.$ac_ext <<_ACEOF
2564#line 2574 "configure"
2565#include "confdefs.h"
2566$ac_includes_default
2567int
2568main ()
2569{
2570if ((size_t *) 0)
2571  return 0;
2572if (sizeof (size_t))
2573  return 0;
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:2589: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>&5
2581  ac_status=$?
2582  echo "$as_me:2592: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -s conftest.$ac_objext'
2585  { (eval echo "$as_me:2595: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:2598: \$? = $ac_status" >&5
2589  (exit $ac_status); }; }; then
2590  ac_cv_type_size_t=yes
2591else
2592  echo "$as_me: failed program was:" >&5
2593cat conftest.$ac_ext >&5
2594ac_cv_type_size_t=no
2595fi
2596rm -f conftest.$ac_objext conftest.$ac_ext
2597fi
2598echo "$as_me:2608: result: $ac_cv_type_size_t" >&5
2599echo "${ECHO_T}$ac_cv_type_size_t" >&6
2600if test $ac_cv_type_size_t = yes; then
2601  :
2602else
2603
2604cat >>confdefs.h <<EOF
2605#define size_t unsigned
2606EOF
2607
2608fi
2609
2610for ac_func in bcopy memmove strerror
2611do
2612ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2613echo "$as_me:2623: checking for $ac_func" >&5
2614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2615if eval "test \"\${$ac_ac_var+set}\" = set"; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  cat >conftest.$ac_ext <<_ACEOF
2619#line 2629 "configure"
2620#include "confdefs.h"
2621/* System header to define __stub macros and hopefully few prototypes,
2622    which can conflict with char $ac_func (); below.  */
2623#include <assert.h>
2624/* Override any gcc2 internal prototype to avoid an error.  */
2625#ifdef __cplusplus
2626extern "C"
2627#endif
2628/* We use char because int might match the return type of a gcc2
2629   builtin and then its argument prototype would still apply.  */
2630char $ac_func ();
2631char (*f) ();
2632
2633int
2634main ()
2635{
2636/* The GNU C library defines this for functions which it implements
2637    to always fail with ENOSYS.  Some functions are actually named
2638    something starting with __ and the normal name is an alias.  */
2639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2640choke me
2641#else
2642f = $ac_func;
2643#endif
2644
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649rm -f conftest.$ac_objext conftest$ac_exeext
2650if { (eval echo "$as_me:2660: \"$ac_link\"") >&5
2651  (eval $ac_link) 2>&5
2652  ac_status=$?
2653  echo "$as_me:2663: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655         { ac_try='test -s conftest$ac_exeext'
2656  { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:2669: \$? = $ac_status" >&5
2660  (exit $ac_status); }; }; then
2661  eval "$ac_ac_var=yes"
2662else
2663  echo "$as_me: failed program was:" >&5
2664cat conftest.$ac_ext >&5
2665eval "$ac_ac_var=no"
2666fi
2667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2668fi
2669echo "$as_me:2679: result: `eval echo '${'$ac_ac_var'}'`" >&5
2670echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2671if test `eval echo '${'$ac_ac_var'}'` = yes; then
2672  cat >>confdefs.h <<EOF
2673#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2674EOF
2675
2676fi
2677done
2678
2679# Check whether --enable-utf8 or --disable-utf8 was given.
2680if test "${enable_utf8+set}" = set; then
2681  enableval="$enable_utf8"
2682  if test "$enableval" = "yes"; then
2683  UTF8=-DSUPPORT_UTF8
2684fi
2685
2686fi;
2687
2688# Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
2689if test "${enable_newline_is_cr+set}" = set; then
2690  enableval="$enable_newline_is_cr"
2691  if test "$enableval" = "yes"; then
2692  NEWLINE=-DNEWLINE=13
2693fi
2694
2695fi;
2696
2697# Check whether --enable-newline-is-lf or --disable-newline-is-lf was given.
2698if test "${enable_newline_is_lf+set}" = set; then
2699  enableval="$enable_newline_is_lf"
2700  if test "$enableval" = "yes"; then
2701  NEWLINE=-DNEWLINE=10
2702fi
2703
2704fi;
2705
2706# Check whether --enable-shared or --disable-shared was given.
2707if test "${enable_shared+set}" = set; then
2708  enableval="$enable_shared"
2709  p=${PACKAGE-default}
2710case $enableval in
2711yes) enable_shared=yes ;;
2712no) enable_shared=no ;;
2713*)
2714  enable_shared=no
2715  # Look at the argument we got.  We use all the common list separators.
2716  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2717  for pkg in $enableval; do
2718    if test "X$pkg" = "X$p"; then
2719      enable_shared=yes
2720    fi
2721  done
2722  IFS="$ac_save_ifs"
2723  ;;
2724esac
2725else
2726  enable_shared=yes
2727fi;
2728# Check whether --enable-static or --disable-static was given.
2729if test "${enable_static+set}" = set; then
2730  enableval="$enable_static"
2731  p=${PACKAGE-default}
2732case $enableval in
2733yes) enable_static=yes ;;
2734no) enable_static=no ;;
2735*)
2736  enable_static=no
2737  # Look at the argument we got.  We use all the common list separators.
2738  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2739  for pkg in $enableval; do
2740    if test "X$pkg" = "X$p"; then
2741      enable_static=yes
2742    fi
2743  done
2744  IFS="$ac_save_ifs"
2745  ;;
2746esac
2747else
2748  enable_static=yes
2749fi;
2750# Check whether --enable-fast-install or --disable-fast-install was given.
2751if test "${enable_fast_install+set}" = set; then
2752  enableval="$enable_fast_install"
2753  p=${PACKAGE-default}
2754case $enableval in
2755yes) enable_fast_install=yes ;;
2756no) enable_fast_install=no ;;
2757*)
2758  enable_fast_install=no
2759  # Look at the argument we got.  We use all the common list separators.
2760  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2761  for pkg in $enableval; do
2762    if test "X$pkg" = "X$p"; then
2763      enable_fast_install=yes
2764    fi
2765  done
2766  IFS="$ac_save_ifs"
2767  ;;
2768esac
2769else
2770  enable_fast_install=yes
2771fi;
2772# Make sure we can run config.sub.
2773$ac_config_sub sun4 >/dev/null 2>&1 ||
2774  { { echo "$as_me:2784: error: cannot run $ac_config_sub" >&5
2775echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2776   { (exit 1); exit 1; }; }
2777
2778echo "$as_me:2788: checking build system type" >&5
2779echo $ECHO_N "checking build system type... $ECHO_C" >&6
2780if test "${ac_cv_build+set}" = set; then
2781  echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783  ac_cv_build_alias=$build_alias
2784test -z "$ac_cv_build_alias" &&
2785  ac_cv_build_alias=`$ac_config_guess`
2786test -z "$ac_cv_build_alias" &&
2787  { { echo "$as_me:2797: error: cannot guess build type; you must specify one" >&5
2788echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2789   { (exit 1); exit 1; }; }
2790ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2791  { { echo "$as_me:2801: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2792echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2793   { (exit 1); exit 1; }; }
2794
2795fi
2796echo "$as_me:2806: result: $ac_cv_build" >&5
2797echo "${ECHO_T}$ac_cv_build" >&6
2798build=$ac_cv_build
2799build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2800build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2801build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2802
2803echo "$as_me:2813: checking host system type" >&5
2804echo $ECHO_N "checking host system type... $ECHO_C" >&6
2805if test "${ac_cv_host+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  ac_cv_host_alias=$host_alias
2809test -z "$ac_cv_host_alias" &&
2810  ac_cv_host_alias=$ac_cv_build_alias
2811ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2812  { { echo "$as_me:2822: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2813echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2814   { (exit 1); exit 1; }; }
2815
2816fi
2817echo "$as_me:2827: result: $ac_cv_host" >&5
2818echo "${ECHO_T}$ac_cv_host" >&6
2819host=$ac_cv_host
2820host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2821host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2822host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2823
2824# Check whether --with-gnu-ld or --without-gnu-ld was given.
2825if test "${with_gnu_ld+set}" = set; then
2826  withval="$with_gnu_ld"
2827  test "$withval" = no || with_gnu_ld=yes
2828else
2829  with_gnu_ld=no
2830fi;
2831ac_prog=ld
2832if test "$GCC" = yes; then
2833  # Check if gcc -print-prog-name=ld gives a path.
2834  echo "$as_me:2844: checking for ld used by GCC" >&5
2835echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2836  case $host in
2837  *-*-mingw*)
2838    # gcc leaves a trailing carriage return which upsets mingw
2839    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2840  *)
2841    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2842  esac
2843  case $ac_prog in
2844    # Accept absolute paths.
2845    [\\/]* | [A-Za-z]:[\\/]*)
2846      re_direlt='/[^/][^/]*/\.\./'
2847      # Canonicalize the path of ld
2848      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2849      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2850        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2851      done
2852      test -z "$LD" && LD="$ac_prog"
2853      ;;
2854  "")
2855    # If it fails, then pretend we aren't using GCC.
2856    ac_prog=ld
2857    ;;
2858  *)
2859    # If it is relative, then search for the first ld in PATH.
2860    with_gnu_ld=unknown
2861    ;;
2862  esac
2863elif test "$with_gnu_ld" = yes; then
2864  echo "$as_me:2874: checking for GNU ld" >&5
2865echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2866else
2867  echo "$as_me:2877: checking for non-GNU ld" >&5
2868echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2869fi
2870if test "${lt_cv_path_LD+set}" = set; then
2871  echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873  if test -z "$LD"; then
2874  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2875  for ac_dir in $PATH; do
2876    test -z "$ac_dir" && ac_dir=.
2877    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2878      lt_cv_path_LD="$ac_dir/$ac_prog"
2879      # Check to see if the program is GNU ld.  I'd rather use --version,
2880      # but apparently some GNU ld's only accept -v.
2881      # Break only if it was the GNU/non-GNU ld that we prefer.
2882      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2883        test "$with_gnu_ld" != no && break
2884      else
2885        test "$with_gnu_ld" != yes && break
2886      fi
2887    fi
2888  done
2889  IFS="$ac_save_ifs"
2890else
2891  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2892fi
2893fi
2894
2895LD="$lt_cv_path_LD"
2896if test -n "$LD"; then
2897  echo "$as_me:2907: result: $LD" >&5
2898echo "${ECHO_T}$LD" >&6
2899else
2900  echo "$as_me:2910: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
2903test -z "$LD" && { { echo "$as_me:2913: error: no acceptable ld found in \$PATH" >&5
2904echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2905   { (exit 1); exit 1; }; }
2906echo "$as_me:2916: checking if the linker ($LD) is GNU ld" >&5
2907echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2908if test "${lt_cv_prog_gnu_ld+set}" = set; then
2909  echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2912if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2913  lt_cv_prog_gnu_ld=yes
2914else
2915  lt_cv_prog_gnu_ld=no
2916fi
2917fi
2918echo "$as_me:2928: result: $lt_cv_prog_gnu_ld" >&5
2919echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2920with_gnu_ld=$lt_cv_prog_gnu_ld
2921
2922echo "$as_me:2932: checking for $LD option to reload object files" >&5
2923echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2924if test "${lt_cv_ld_reload_flag+set}" = set; then
2925  echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927  lt_cv_ld_reload_flag='-r'
2928fi
2929echo "$as_me:2939: result: $lt_cv_ld_reload_flag" >&5
2930echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2931reload_flag=$lt_cv_ld_reload_flag
2932test -n "$reload_flag" && reload_flag=" $reload_flag"
2933
2934echo "$as_me:2944: checking for BSD-compatible nm" >&5
2935echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2936if test "${lt_cv_path_NM+set}" = set; then
2937  echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939  if test -n "$NM"; then
2940  # Let the user override the test.
2941  lt_cv_path_NM="$NM"
2942else
2943  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2944  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2945    test -z "$ac_dir" && ac_dir=.
2946    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2947    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2948      # Check to see if the nm accepts a BSD-compat flag.
2949      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2950      #   nm: unknown option "B" ignored
2951      # Tru64's nm complains that /dev/null is an invalid object file
2952      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2953        lt_cv_path_NM="$tmp_nm -B"
2954        break
2955      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2956        lt_cv_path_NM="$tmp_nm -p"
2957        break
2958      else
2959        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2960        continue # so that we can try to find one that supports BSD flags
2961      fi
2962    fi
2963  done
2964  IFS="$ac_save_ifs"
2965  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2966fi
2967fi
2968
2969NM="$lt_cv_path_NM"
2970echo "$as_me:2980: result: $NM" >&5
2971echo "${ECHO_T}$NM" >&6
2972
2973echo "$as_me:2983: checking whether ln -s works" >&5
2974echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2975LN_S=$as_ln_s
2976if test "$LN_S" = "ln -s"; then
2977  echo "$as_me:2987: result: yes" >&5
2978echo "${ECHO_T}yes" >&6
2979else
2980  echo "$as_me:2990: result: no, using $LN_S" >&5
2981echo "${ECHO_T}no, using $LN_S" >&6
2982fi
2983
2984echo "$as_me:2994: checking how to recognise dependant libraries" >&5
2985echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2986if test "${lt_cv_deplibs_check_method+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  lt_cv_file_magic_cmd='$MAGIC_CMD'
2990lt_cv_file_magic_test_file=
2991lt_cv_deplibs_check_method='unknown'
2992# Need to set the preceding variable on all platforms that support
2993# interlibrary dependencies.
2994# 'none' -- dependencies not supported.
2995# `unknown' -- same as none, but documents that we really don't know.
2996# 'pass_all' -- all dependencies passed with no checks.
2997# 'test_compile' -- check by making test program.
2998# ['file_magic [regex]'] -- check by looking for files in library path
2999# which responds to the $file_magic_cmd with a given egrep regex.
3000# If you have `file' or equivalent on your system and you're not sure
3001# whether `pass_all' will *always* work, you probably want this one.
3002
3003case $host_os in
3004aix4* | aix5*)
3005  lt_cv_deplibs_check_method=pass_all
3006  ;;
3007
3008beos*)
3009  lt_cv_deplibs_check_method=pass_all
3010  ;;
3011
3012bsdi4*)
3013  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3014  lt_cv_file_magic_cmd='/usr/bin/file -L'
3015  lt_cv_file_magic_test_file=/shlib/libc.so
3016  ;;
3017
3018cygwin* | mingw* | pw32*)
3019  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3020  lt_cv_file_magic_cmd='$OBJDUMP -f'
3021  ;;
3022
3023darwin* | rhapsody*)
3024  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3025  lt_cv_file_magic_cmd='/usr/bin/file -L'
3026  case "$host_os" in
3027  rhapsody* | darwin1.012)
3028    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3029    ;;
3030  *) # Darwin 1.3 on
3031    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3032    ;;
3033  esac
3034  ;;
3035
3036freebsd*)
3037  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3038    case $host_cpu in
3039    i*86 )
3040      # Not sure whether the presence of OpenBSD here was a mistake.
3041      # Let's accept both of them until this is cleared up.
3042      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3043      lt_cv_file_magic_cmd=/usr/bin/file
3044      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3045      ;;
3046    esac
3047  else
3048    lt_cv_deplibs_check_method=pass_all
3049  fi
3050  ;;
3051
3052gnu*)
3053  lt_cv_deplibs_check_method=pass_all
3054  ;;
3055
3056hpux10.20*|hpux11*)
3057  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3058  lt_cv_file_magic_cmd=/usr/bin/file
3059  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3060  ;;
3061
3062irix5* | irix6*)
3063  case $host_os in
3064  irix5*)
3065    # this will be overridden with pass_all, but let us keep it just in case
3066    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3067    ;;
3068  *)
3069    case $LD in
3070    *-32|*"-32 ") libmagic=32-bit;;
3071    *-n32|*"-n32 ") libmagic=N32;;
3072    *-64|*"-64 ") libmagic=64-bit;;
3073    *) libmagic=never-match;;
3074    esac
3075    # this will be overridden with pass_all, but let us keep it just in case
3076    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3077    ;;
3078  esac
3079  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3080  lt_cv_deplibs_check_method=pass_all
3081  ;;
3082
3083# This must be Linux ELF.
3084linux-gnu*)
3085  case $host_cpu in
3086  alpha* | i*86 | powerpc* | sparc* | ia64* )
3087    lt_cv_deplibs_check_method=pass_all ;;
3088  *)
3089    # glibc up to 2.1.1 does not perform some relocations on ARM
3090    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3091  esac
3092  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3093  ;;
3094
3095netbsd*)
3096  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3097    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3098  else
3099    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3100  fi
3101  ;;
3102
3103newos6*)
3104  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3105  lt_cv_file_magic_cmd=/usr/bin/file
3106  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3107  ;;
3108
3109osf3* | osf4* | osf5*)
3110  # this will be overridden with pass_all, but let us keep it just in case
3111  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3112  lt_cv_file_magic_test_file=/shlib/libc.so
3113  lt_cv_deplibs_check_method=pass_all
3114  ;;
3115
3116sco3.2v5*)
3117  lt_cv_deplibs_check_method=pass_all
3118  ;;
3119
3120solaris*)
3121  lt_cv_deplibs_check_method=pass_all
3122  lt_cv_file_magic_test_file=/lib/libc.so
3123  ;;
3124
3125sysv5uw[78]* | sysv4*uw2*)
3126  lt_cv_deplibs_check_method=pass_all
3127  ;;
3128
3129sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3130  case $host_vendor in
3131  motorola)
3132    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]'
3133    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3134    ;;
3135  ncr)
3136    lt_cv_deplibs_check_method=pass_all
3137    ;;
3138  sequent)
3139    lt_cv_file_magic_cmd='/bin/file'
3140    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3141    ;;
3142  sni)
3143    lt_cv_file_magic_cmd='/bin/file'
3144    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3145    lt_cv_file_magic_test_file=/lib/libc.so
3146    ;;
3147  esac
3148  ;;
3149esac
3150
3151fi
3152echo "$as_me:3162: result: $lt_cv_deplibs_check_method" >&5
3153echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3154file_magic_cmd=$lt_cv_file_magic_cmd
3155deplibs_check_method=$lt_cv_deplibs_check_method
3156
3157# Check for command to grab the raw symbol name followed by C symbol from nm.
3158echo "$as_me:3168: checking command to parse $NM output" >&5
3159echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3160if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163
3164# These are sane defaults that work on at least a few old systems.
3165# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3166
3167# Character class describing NM global symbol codes.
3168symcode='[BCDEGRST]'
3169
3170# Regexp to match symbols that can be accessed directly from C.
3171sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3172
3173# Transform the above into a raw symbol and a C symbol.
3174symxfrm='\1 \2\3 \3'
3175
3176# Transform an extracted symbol line into a proper C declaration
3177lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3178
3179# Define system-specific variables.
3180case $host_os in
3181aix*)
3182  symcode='[BCDT]'
3183  ;;
3184cygwin* | mingw* | pw32*)
3185  symcode='[ABCDGISTW]'
3186  ;;
3187hpux*) # Its linker distinguishes data from code symbols
3188  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3189  ;;
3190irix*)
3191  symcode='[BCDEGRST]'
3192  ;;
3193solaris* | sysv5*)
3194  symcode='[BDT]'
3195  ;;
3196sysv4)
3197  symcode='[DFNSTU]'
3198  ;;
3199esac
3200
3201# Handle CRLF in mingw tool chain
3202opt_cr=
3203case $host_os in
3204mingw*)
3205  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3206  ;;
3207esac
3208
3209# If we're using GNU nm, then use its standard symbol codes.
3210if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3211  symcode='[ABCDGISTW]'
3212fi
3213
3214# Try without a prefix undercore, then with it.
3215for ac_symprfx in "" "_"; do
3216
3217  # Write the raw and C identifiers.
3218lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3219
3220  # Check to see that the pipe works correctly.
3221  pipe_works=no
3222  rm -f conftest*
3223  cat > conftest.$ac_ext <<EOF
3224#ifdef __cplusplus
3225extern "C" {
3226#endif
3227char nm_test_var;
3228void nm_test_func(){}
3229#ifdef __cplusplus
3230}
3231#endif
3232int main(){nm_test_var='a';nm_test_func();return(0);}
3233EOF
3234
3235  if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3236  (eval $ac_compile) 2>&5
3237  ac_status=$?
3238  echo "$as_me:3248: \$? = $ac_status" >&5
3239  (exit $ac_status); }; then
3240    # Now try to grab the symbols.
3241    nlist=conftest.nm
3242    if { (eval echo "$as_me:3252: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3243  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3244  ac_status=$?
3245  echo "$as_me:3255: \$? = $ac_status" >&5
3246  (exit $ac_status); } && test -s "$nlist"; then
3247      # Try sorting and uniquifying the output.
3248      if sort "$nlist" | uniq > "$nlist"T; then
3249        mv -f "$nlist"T "$nlist"
3250      else
3251        rm -f "$nlist"T
3252      fi
3253
3254      # Make sure that we snagged all the symbols we need.
3255      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3256        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3257          cat <<EOF > conftest.$ac_ext
3258#ifdef __cplusplus
3259extern "C" {
3260#endif
3261
3262EOF
3263          # Now generate the symbol file.
3264          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3265
3266          cat <<EOF >> conftest.$ac_ext
3267#if defined (__STDC__) && __STDC__
3268# define lt_ptr_t void *
3269#else
3270# define lt_ptr_t char *
3271# define const
3272#endif
3273
3274/* The mapping between symbol names and symbols. */
3275const struct {
3276  const char *name;
3277  lt_ptr_t address;
3278}
3279lt_preloaded_symbols[] =
3280{
3281EOF
3282          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3283          cat <<\EOF >> conftest.$ac_ext
3284  {0, (lt_ptr_t) 0}
3285};
3286
3287#ifdef __cplusplus
3288}
3289#endif
3290EOF
3291          # Now try linking the two files.
3292          mv conftest.$ac_objext conftstm.$ac_objext
3293          save_LIBS="$LIBS"
3294          save_CFLAGS="$CFLAGS"
3295          LIBS="conftstm.$ac_objext"
3296          CFLAGS="$CFLAGS$no_builtin_flag"
3297          if { (eval echo "$as_me:3307: \"$ac_link\"") >&5
3298  (eval $ac_link) 2>&5
3299  ac_status=$?
3300  echo "$as_me:3310: \$? = $ac_status" >&5
3301  (exit $ac_status); } && test -s conftest; then
3302            pipe_works=yes
3303          fi
3304          LIBS="$save_LIBS"
3305          CFLAGS="$save_CFLAGS"
3306        else
3307          echo "cannot find nm_test_func in $nlist" >&5
3308        fi
3309      else
3310        echo "cannot find nm_test_var in $nlist" >&5
3311      fi
3312    else
3313      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3314    fi
3315  else
3316    echo "$progname: failed program was:" >&5
3317    cat conftest.$ac_ext >&5
3318  fi
3319  rm -f conftest* conftst*
3320
3321  # Do not use the global_symbol_pipe unless it works.
3322  if test "$pipe_works" = yes; then
3323    break
3324  else
3325    lt_cv_sys_global_symbol_pipe=
3326  fi
3327done
3328
3329fi
3330
3331global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3332if test -z "$lt_cv_sys_global_symbol_pipe"; then
3333  global_symbol_to_cdecl=
3334else
3335  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3336fi
3337if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3338  echo "$as_me:3348: result: failed" >&5
3339echo "${ECHO_T}failed" >&6
3340else
3341  echo "$as_me:3351: result: ok" >&5
3342echo "${ECHO_T}ok" >&6
3343fi
3344
3345for ac_header in dlfcn.h
3346do
3347ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3348echo "$as_me:3358: checking for $ac_header" >&5
3349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  cat >conftest.$ac_ext <<_ACEOF
3354#line 3364 "configure"
3355#include "confdefs.h"
3356#include <$ac_header>
3357_ACEOF
3358if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5
3359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360  ac_status=$?
3361  egrep -v '^ *\+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  echo "$as_me:3374: \$? = $ac_status" >&5
3365  (exit $ac_status); } >/dev/null; then
3366  if test -s conftest.err; then
3367    ac_cpp_err=$ac_c_preproc_warn_flag
3368  else
3369    ac_cpp_err=
3370  fi
3371else
3372  ac_cpp_err=yes
3373fi
3374if test -z "$ac_cpp_err"; then
3375  eval "$ac_ac_Header=yes"
3376else
3377  echo "$as_me: failed program was:" >&5
3378  cat conftest.$ac_ext >&5
3379  eval "$ac_ac_Header=no"
3380fi
3381rm -f conftest.err conftest.$ac_ext
3382fi
3383echo "$as_me:3393: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3384echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3385if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3386  cat >>confdefs.h <<EOF
3387#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3388EOF
3389
3390fi
3391done
3392
3393# Only perform the check for file, if the check method requires it
3394case $deplibs_check_method in
3395file_magic*)
3396  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3397    echo "$as_me:3407: checking for ${ac_tool_prefix}file" >&5
3398echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3399if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3400  echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402  case $MAGIC_CMD in
3403  /*)
3404  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3405  ;;
3406  ?:/*)
3407  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3408  ;;
3409  *)
3410  ac_save_MAGIC_CMD="$MAGIC_CMD"
3411  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3412  ac_dummy="/usr/bin:$PATH"
3413  for ac_dir in $ac_dummy; do
3414    test -z "$ac_dir" && ac_dir=.
3415    if test -f $ac_dir/${ac_tool_prefix}file; then
3416      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3417      if test -n "$file_magic_test_file"; then
3418        case $deplibs_check_method in
3419        "file_magic "*)
3420          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3421          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3422          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3423            egrep "$file_magic_regex" > /dev/null; then
3424            :
3425          else
3426            cat <<EOF 1>&2
3427
3428*** Warning: the command libtool uses to detect shared libraries,
3429*** $file_magic_cmd, produces output that libtool cannot recognize.
3430*** The result is that libtool may fail to recognize shared libraries
3431*** as such.  This will affect the creation of libtool libraries that
3432*** depend on shared libraries, but programs linked with such libtool
3433*** libraries will work regardless of this problem.  Nevertheless, you
3434*** may want to report the problem to your system manager and/or to
3435*** bug-libtool@gnu.org
3436
3437EOF
3438          fi ;;
3439        esac
3440      fi
3441      break
3442    fi
3443  done
3444  IFS="$ac_save_ifs"
3445  MAGIC_CMD="$ac_save_MAGIC_CMD"
3446  ;;
3447esac
3448fi
3449
3450MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3451if test -n "$MAGIC_CMD"; then
3452  echo "$as_me:3462: result: $MAGIC_CMD" >&5
3453echo "${ECHO_T}$MAGIC_CMD" >&6
3454else
3455  echo "$as_me:3465: result: no" >&5
3456echo "${ECHO_T}no" >&6
3457fi
3458
3459if test -z "$lt_cv_path_MAGIC_CMD"; then
3460  if test -n "$ac_tool_prefix"; then
3461    echo "$as_me:3471: checking for file" >&5
3462echo $ECHO_N "checking for file... $ECHO_C" >&6
3463if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3464  echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466  case $MAGIC_CMD in
3467  /*)
3468  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3469  ;;
3470  ?:/*)
3471  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3472  ;;
3473  *)
3474  ac_save_MAGIC_CMD="$MAGIC_CMD"
3475  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3476  ac_dummy="/usr/bin:$PATH"
3477  for ac_dir in $ac_dummy; do
3478    test -z "$ac_dir" && ac_dir=.
3479    if test -f $ac_dir/file; then
3480      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3481      if test -n "$file_magic_test_file"; then
3482        case $deplibs_check_method in
3483        "file_magic "*)
3484          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3485          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3486          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3487            egrep "$file_magic_regex" > /dev/null; then
3488            :
3489          else
3490            cat <<EOF 1>&2
3491
3492*** Warning: the command libtool uses to detect shared libraries,
3493*** $file_magic_cmd, produces output that libtool cannot recognize.
3494*** The result is that libtool may fail to recognize shared libraries
3495*** as such.  This will affect the creation of libtool libraries that
3496*** depend on shared libraries, but programs linked with such libtool
3497*** libraries will work regardless of this problem.  Nevertheless, you
3498*** may want to report the problem to your system manager and/or to
3499*** bug-libtool@gnu.org
3500
3501EOF
3502          fi ;;
3503        esac
3504      fi
3505      break
3506    fi
3507  done
3508  IFS="$ac_save_ifs"
3509  MAGIC_CMD="$ac_save_MAGIC_CMD"
3510  ;;
3511esac
3512fi
3513
3514MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3515if test -n "$MAGIC_CMD"; then
3516  echo "$as_me:3526: result: $MAGIC_CMD" >&5
3517echo "${ECHO_T}$MAGIC_CMD" >&6
3518else
3519  echo "$as_me:3529: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521fi
3522
3523  else
3524    MAGIC_CMD=:
3525  fi
3526fi
3527
3528  fi
3529  ;;
3530esac
3531
3532if test -n "$ac_tool_prefix"; then
3533  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3535echo "$as_me:3545: checking for $ac_word" >&5
3536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537if test "${ac_cv_prog_RANLIB+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540  if test -n "$RANLIB"; then
3541  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3542else
3543  ac_save_IFS=$IFS; IFS=$ac_path_separator
3544ac_dummy="$PATH"
3545for ac_dir in $ac_dummy; do
3546  IFS=$ac_save_IFS
3547  test -z "$ac_dir" && ac_dir=.
3548  $as_executable_p "$ac_dir/$ac_word" || continue
3549ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3551break
3552done
3553
3554fi
3555fi
3556RANLIB=$ac_cv_prog_RANLIB
3557if test -n "$RANLIB"; then
3558  echo "$as_me:3568: result: $RANLIB" >&5
3559echo "${ECHO_T}$RANLIB" >&6
3560else
3561  echo "$as_me:3571: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563fi
3564
3565fi
3566if test -z "$ac_cv_prog_RANLIB"; then
3567  ac_ct_RANLIB=$RANLIB
3568  # Extract the first word of "ranlib", so it can be a program name with args.
3569set dummy ranlib; ac_word=$2
3570echo "$as_me:3580: checking for $ac_word" >&5
3571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  if test -n "$ac_ct_RANLIB"; then
3576  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3577else
3578  ac_save_IFS=$IFS; IFS=$ac_path_separator
3579ac_dummy="$PATH"
3580for ac_dir in $ac_dummy; do
3581  IFS=$ac_save_IFS
3582  test -z "$ac_dir" && ac_dir=.
3583  $as_executable_p "$ac_dir/$ac_word" || continue
3584ac_cv_prog_ac_ct_RANLIB="ranlib"
3585echo "$as_me:3595: found $ac_dir/$ac_word" >&5
3586break
3587done
3588
3589  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3590fi
3591fi
3592ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3593if test -n "$ac_ct_RANLIB"; then
3594  echo "$as_me:3604: result: $ac_ct_RANLIB" >&5
3595echo "${ECHO_T}$ac_ct_RANLIB" >&6
3596else
3597  echo "$as_me:3607: result: no" >&5
3598echo "${ECHO_T}no" >&6
3599fi
3600
3601  RANLIB=$ac_ct_RANLIB
3602else
3603  RANLIB="$ac_cv_prog_RANLIB"
3604fi
3605
3606if test -n "$ac_tool_prefix"; then
3607  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3608set dummy ${ac_tool_prefix}strip; ac_word=$2
3609echo "$as_me:3619: checking for $ac_word" >&5
3610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3611if test "${ac_cv_prog_STRIP+set}" = set; then
3612  echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614  if test -n "$STRIP"; then
3615  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3616else
3617  ac_save_IFS=$IFS; IFS=$ac_path_separator
3618ac_dummy="$PATH"
3619for ac_dir in $ac_dummy; do
3620  IFS=$ac_save_IFS
3621  test -z "$ac_dir" && ac_dir=.
3622  $as_executable_p "$ac_dir/$ac_word" || continue
3623ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3624echo "$as_me:3634: found $ac_dir/$ac_word" >&5
3625break
3626done
3627
3628fi
3629fi
3630STRIP=$ac_cv_prog_STRIP
3631if test -n "$STRIP"; then
3632  echo "$as_me:3642: result: $STRIP" >&5
3633echo "${ECHO_T}$STRIP" >&6
3634else
3635  echo "$as_me:3645: result: no" >&5
3636echo "${ECHO_T}no" >&6
3637fi
3638
3639fi
3640if test -z "$ac_cv_prog_STRIP"; then
3641  ac_ct_STRIP=$STRIP
3642  # Extract the first word of "strip", so it can be a program name with args.
3643set dummy strip; ac_word=$2
3644echo "$as_me:3654: checking for $ac_word" >&5
3645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3647  echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
3649  if test -n "$ac_ct_STRIP"; then
3650  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3651else
3652  ac_save_IFS=$IFS; IFS=$ac_path_separator
3653ac_dummy="$PATH"
3654for ac_dir in $ac_dummy; do
3655  IFS=$ac_save_IFS
3656  test -z "$ac_dir" && ac_dir=.
3657  $as_executable_p "$ac_dir/$ac_word" || continue
3658ac_cv_prog_ac_ct_STRIP="strip"
3659echo "$as_me:3669: found $ac_dir/$ac_word" >&5
3660break
3661done
3662
3663  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3664fi
3665fi
3666ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3667if test -n "$ac_ct_STRIP"; then
3668  echo "$as_me:3678: result: $ac_ct_STRIP" >&5
3669echo "${ECHO_T}$ac_ct_STRIP" >&6
3670else
3671  echo "$as_me:3681: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi
3674
3675  STRIP=$ac_ct_STRIP
3676else
3677  STRIP="$ac_cv_prog_STRIP"
3678fi
3679
3680enable_dlopen=no
3681enable_win32_dll=no
3682
3683# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3684if test "${enable_libtool_lock+set}" = set; then
3685  enableval="$enable_libtool_lock"
3686
3687fi;
3688test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3689
3690# Some flags need to be propagated to the compiler or linker for good
3691# libtool support.
3692case $host in
3693*-*-irix6*)
3694  # Find out which ABI we are using.
3695  echo '#line 3705 "configure"' > conftest.$ac_ext
3696  if { (eval echo "$as_me:3706: \"$ac_compile\"") >&5
3697  (eval $ac_compile) 2>&5
3698  ac_status=$?
3699  echo "$as_me:3709: \$? = $ac_status" >&5
3700  (exit $ac_status); }; then
3701    case `/usr/bin/file conftest.$ac_objext` in
3702    *32-bit*)
3703      LD="${LD-ld} -32"
3704      ;;
3705    *N32*)
3706      LD="${LD-ld} -n32"
3707      ;;
3708    *64-bit*)
3709      LD="${LD-ld} -64"
3710      ;;
3711    esac
3712  fi
3713  rm -rf conftest*
3714  ;;
3715
3716*-*-sco3.2v5*)
3717  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3718  SAVE_CFLAGS="$CFLAGS"
3719  CFLAGS="$CFLAGS -belf"
3720  echo "$as_me:3730: checking whether the C compiler needs -belf" >&5
3721echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3722if test "${lt_cv_cc_needs_belf+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725
3726     ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732     cat >conftest.$ac_ext <<_ACEOF
3733#line 3743 "configure"
3734#include "confdefs.h"
3735
3736int
3737main ()
3738{
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext conftest$ac_exeext
3745if { (eval echo "$as_me:3755: \"$ac_link\"") >&5
3746  (eval $ac_link) 2>&5
3747  ac_status=$?
3748  echo "$as_me:3758: \$? = $ac_status" >&5
3749  (exit $ac_status); } &&
3750         { ac_try='test -s conftest$ac_exeext'
3751  { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:3764: \$? = $ac_status" >&5
3755  (exit $ac_status); }; }; then
3756  lt_cv_cc_needs_belf=yes
3757else
3758  echo "$as_me: failed program was:" >&5
3759cat conftest.$ac_ext >&5
3760lt_cv_cc_needs_belf=no
3761fi
3762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3763     ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769fi
3770echo "$as_me:3780: result: $lt_cv_cc_needs_belf" >&5
3771echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3772  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3773    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3774    CFLAGS="$SAVE_CFLAGS"
3775  fi
3776  ;;
3777
3778esac
3779
3780# Sed substitution that helps us do robust quoting.  It backslashifies
3781# metacharacters that are still active within double-quoted strings.
3782Xsed='sed -e s/^X//'
3783sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3784
3785# Same as above, but do not quote variable references.
3786double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3787
3788# Sed substitution to delay expansion of an escaped shell variable in a
3789# double_quote_subst'ed string.
3790delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3791
3792# Constants:
3793rm="rm -f"
3794
3795# Global variables:
3796default_ofile=libtool
3797can_build_shared=yes
3798
3799# All known linkers require a `.a' archive for static linking (except M$VC,
3800# which needs '.lib').
3801libext=a
3802ltmain="$ac_aux_dir/ltmain.sh"
3803ofile="$default_ofile"
3804with_gnu_ld="$lt_cv_prog_gnu_ld"
3805need_locks="$enable_libtool_lock"
3806
3807old_CC="$CC"
3808old_CFLAGS="$CFLAGS"
3809
3810# Set sane defaults for various variables
3811test -z "$AR" && AR=ar
3812test -z "$AR_FLAGS" && AR_FLAGS=cru
3813test -z "$AS" && AS=as
3814test -z "$CC" && CC=cc
3815test -z "$DLLTOOL" && DLLTOOL=dlltool
3816test -z "$LD" && LD=ld
3817test -z "$LN_S" && LN_S="ln -s"
3818test -z "$MAGIC_CMD" && MAGIC_CMD=file
3819test -z "$NM" && NM=nm
3820test -z "$OBJDUMP" && OBJDUMP=objdump
3821test -z "$RANLIB" && RANLIB=:
3822test -z "$STRIP" && STRIP=:
3823test -z "$ac_objext" && ac_objext=o
3824
3825if test x"$host" != x"$build"; then
3826  ac_tool_prefix=${host_alias}-
3827else
3828  ac_tool_prefix=
3829fi
3830
3831# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3832case $host_os in
3833linux-gnu*) ;;
3834linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3835esac
3836
3837case $host_os in
3838aix3*)
3839  # AIX sometimes has problems with the GCC collect2 program.  For some
3840  # reason, if we set the COLLECT_NAMES environment variable, the problems
3841  # vanish in a puff of smoke.
3842  if test "X${COLLECT_NAMES+set}" != Xset; then
3843    COLLECT_NAMES=
3844    export COLLECT_NAMES
3845  fi
3846  ;;
3847esac
3848
3849# Determine commands to create old-style static archives.
3850old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3851old_postinstall_cmds='chmod 644 $oldlib'
3852old_postuninstall_cmds=
3853
3854if test -n "$RANLIB"; then
3855  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3856  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3857fi
3858
3859# Allow CC to be a program name with arguments.
3860set dummy $CC
3861compiler="$2"
3862
3863## FIXME: this should be a separate macro
3864##
3865echo "$as_me:3875: checking for objdir" >&5
3866echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3867rm -f .libs 2>/dev/null
3868mkdir .libs 2>/dev/null
3869if test -d .libs; then
3870  objdir=.libs
3871else
3872  # MS-DOS does not allow filenames that begin with a dot.
3873  objdir=_libs
3874fi
3875rmdir .libs 2>/dev/null
3876echo "$as_me:3886: result: $objdir" >&5
3877echo "${ECHO_T}$objdir" >&6
3878##
3879## END FIXME
3880
3881## FIXME: this should be a separate macro
3882##
3883
3884# Check whether --with-pic or --without-pic was given.
3885if test "${with_pic+set}" = set; then
3886  withval="$with_pic"
3887  pic_mode="$withval"
3888else
3889  pic_mode=default
3890fi;
3891test -z "$pic_mode" && pic_mode=default
3892
3893# We assume here that the value for lt_cv_prog_cc_pic will not be cached
3894# in isolation, and that seeing it set (from the cache) indicates that
3895# the associated values are set (in the cache) correctly too.
3896echo "$as_me:3906: checking for $compiler option to produce PIC" >&5
3897echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3898if test "${lt_cv_prog_cc_pic+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901   lt_cv_prog_cc_pic=
3902  lt_cv_prog_cc_shlib=
3903  lt_cv_prog_cc_wl=
3904  lt_cv_prog_cc_static=
3905  lt_cv_prog_cc_no_builtin=
3906  lt_cv_prog_cc_can_build_shared=$can_build_shared
3907
3908  if test "$GCC" = yes; then
3909    lt_cv_prog_cc_wl='-Wl,'
3910    lt_cv_prog_cc_static='-static'
3911
3912    case $host_os in
3913    aix*)
3914      # Below there is a dirty hack to force normal static linking with -ldl
3915      # The problem is because libdl dynamically linked with both libc and
3916      # libC (AIX C++ library), which obviously doesn't included in libraries
3917      # list by gcc. This cause undefined symbols with -static flags.
3918      # This hack allows C programs to be linked with "-static -ldl", but
3919      # we not sure about C++ programs.
3920      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3921      ;;
3922    amigaos*)
3923      # FIXME: we need at least 68020 code to build shared libraries, but
3924      # adding the `-m68020' flag to GCC prevents building anything better,
3925      # like `-m68040'.
3926      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3927      ;;
3928    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3929      # PIC is the default for these OSes.
3930      ;;
3931    darwin* | rhapsody*)
3932      # PIC is the default on this platform
3933      # Common symbols not allowed in MH_DYLIB files
3934      lt_cv_prog_cc_pic='-fno-common'
3935      ;;
3936    cygwin* | mingw* | pw32* | os2*)
3937      # This hack is so that the source file can tell whether it is being
3938      # built for inclusion in a dll (and should export symbols for example).
3939      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3940      ;;
3941    sysv4*MP*)
3942      if test -d /usr/nec; then
3943         lt_cv_prog_cc_pic=-Kconform_pic
3944      fi
3945      ;;
3946    *)
3947      lt_cv_prog_cc_pic='-fPIC'
3948      ;;
3949    esac
3950  else
3951    # PORTME Check for PIC flags for the system compiler.
3952    case $host_os in
3953    aix3* | aix4* | aix5*)
3954      # All AIX code is PIC.
3955      if test "$host_cpu" = ia64; then
3956        # AIX 5 now supports IA64 processor
3957        lt_cv_prog_cc_static='-Bstatic'
3958        lt_cv_prog_cc_wl='-Wl,'
3959      else
3960        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3961      fi
3962      ;;
3963
3964    hpux9* | hpux10* | hpux11*)
3965      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3966      lt_cv_prog_cc_wl='-Wl,'
3967      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3968      lt_cv_prog_cc_pic='+Z'
3969      ;;
3970
3971    irix5* | irix6*)
3972      lt_cv_prog_cc_wl='-Wl,'
3973      lt_cv_prog_cc_static='-non_shared'
3974      # PIC (with -KPIC) is the default.
3975      ;;
3976
3977    cygwin* | mingw* | pw32* | os2*)
3978      # This hack is so that the source file can tell whether it is being
3979      # built for inclusion in a dll (and should export symbols for example).
3980      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3981      ;;
3982
3983    newsos6)
3984      lt_cv_prog_cc_pic='-KPIC'
3985      lt_cv_prog_cc_static='-Bstatic'
3986      ;;
3987
3988    osf3* | osf4* | osf5*)
3989      # All OSF/1 code is PIC.
3990      lt_cv_prog_cc_wl='-Wl,'
3991      lt_cv_prog_cc_static='-non_shared'
3992      ;;
3993
3994    sco3.2v5*)
3995      lt_cv_prog_cc_pic='-Kpic'
3996      lt_cv_prog_cc_static='-dn'
3997      lt_cv_prog_cc_shlib='-belf'
3998      ;;
3999
4000    solaris*)
4001      lt_cv_prog_cc_pic='-KPIC'
4002      lt_cv_prog_cc_static='-Bstatic'
4003      lt_cv_prog_cc_wl='-Wl,'
4004      ;;
4005
4006    sunos4*)
4007      lt_cv_prog_cc_pic='-PIC'
4008      lt_cv_prog_cc_static='-Bstatic'
4009      lt_cv_prog_cc_wl='-Qoption ld '
4010      ;;
4011
4012    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4013      lt_cv_prog_cc_pic='-KPIC'
4014      lt_cv_prog_cc_static='-Bstatic'
4015      if test "x$host_vendor" = xsni; then
4016        lt_cv_prog_cc_wl='-LD'
4017      else
4018        lt_cv_prog_cc_wl='-Wl,'
4019      fi
4020      ;;
4021
4022    uts4*)
4023      lt_cv_prog_cc_pic='-pic'
4024      lt_cv_prog_cc_static='-Bstatic'
4025      ;;
4026
4027    sysv4*MP*)
4028      if test -d /usr/nec ;then
4029        lt_cv_prog_cc_pic='-Kconform_pic'
4030        lt_cv_prog_cc_static='-Bstatic'
4031      fi
4032      ;;
4033
4034    *)
4035      lt_cv_prog_cc_can_build_shared=no
4036      ;;
4037    esac
4038  fi
4039
4040fi
4041
4042if test -z "$lt_cv_prog_cc_pic"; then
4043  echo "$as_me:4053: result: none" >&5
4044echo "${ECHO_T}none" >&6
4045else
4046  echo "$as_me:4056: result: $lt_cv_prog_cc_pic" >&5
4047echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4048
4049  # Check to make sure the pic_flag actually works.
4050  echo "$as_me:4060: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4051echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4052  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4053  echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055      save_CFLAGS="$CFLAGS"
4056    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4057    cat >conftest.$ac_ext <<_ACEOF
4058#line 4068 "configure"
4059#include "confdefs.h"
4060
4061int
4062main ()
4063{
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext
4070if { (eval echo "$as_me:4080: \"$ac_compile\"") >&5
4071  (eval $ac_compile) 2>&5
4072  ac_status=$?
4073  echo "$as_me:4083: \$? = $ac_status" >&5
4074  (exit $ac_status); } &&
4075         { ac_try='test -s conftest.$ac_objext'
4076  { (eval echo "$as_me:4086: \"$ac_try\"") >&5
4077  (eval $ac_try) 2>&5
4078  ac_status=$?
4079  echo "$as_me:4089: \$? = $ac_status" >&5
4080  (exit $ac_status); }; }; then
4081        case $host_os in
4082      hpux9* | hpux10* | hpux11*)
4083        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4084        # they create non-PIC objects.  So, if there were any warnings, we
4085        # assume that PIC is not supported.
4086        if test -s conftest.err; then
4087          lt_cv_prog_cc_pic_works=no
4088        else
4089          lt_cv_prog_cc_pic_works=yes
4090        fi
4091        ;;
4092      *)
4093        lt_cv_prog_cc_pic_works=yes
4094        ;;
4095      esac
4096
4097else
4098  echo "$as_me: failed program was:" >&5
4099cat conftest.$ac_ext >&5
4100      lt_cv_prog_cc_pic_works=no
4101
4102fi
4103rm -f conftest.$ac_objext conftest.$ac_ext
4104    CFLAGS="$save_CFLAGS"
4105
4106fi
4107
4108  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4109    lt_cv_prog_cc_pic=
4110    lt_cv_prog_cc_can_build_shared=no
4111  else
4112    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4113  fi
4114
4115  echo "$as_me:4125: result: $lt_cv_prog_cc_pic_works" >&5
4116echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4117fi
4118##
4119## END FIXME
4120
4121# Check for any special shared library compilation flags.
4122if test -n "$lt_cv_prog_cc_shlib"; then
4123  { echo "$as_me:4133: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4124echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4125  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4126  else
4127   { echo "$as_me:4137: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4128echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4129    lt_cv_prog_cc_can_build_shared=no
4130  fi
4131fi
4132
4133## FIXME: this should be a separate macro
4134##
4135echo "$as_me:4145: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4136echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4137if test "${lt_cv_prog_cc_static_works+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140    lt_cv_prog_cc_static_works=no
4141  save_LDFLAGS="$LDFLAGS"
4142  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4143  cat >conftest.$ac_ext <<_ACEOF
4144#line 4154 "configure"
4145#include "confdefs.h"
4146
4147int
4148main ()
4149{
4150
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155rm -f conftest.$ac_objext conftest$ac_exeext
4156if { (eval echo "$as_me:4166: \"$ac_link\"") >&5
4157  (eval $ac_link) 2>&5
4158  ac_status=$?
4159  echo "$as_me:4169: \$? = $ac_status" >&5
4160  (exit $ac_status); } &&
4161         { ac_try='test -s conftest$ac_exeext'
4162  { (eval echo "$as_me:4172: \"$ac_try\"") >&5
4163  (eval $ac_try) 2>&5
4164  ac_status=$?
4165  echo "$as_me:4175: \$? = $ac_status" >&5
4166  (exit $ac_status); }; }; then
4167  lt_cv_prog_cc_static_works=yes
4168else
4169  echo "$as_me: failed program was:" >&5
4170cat conftest.$ac_ext >&5
4171fi
4172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4173  LDFLAGS="$save_LDFLAGS"
4174
4175fi
4176
4177# Belt *and* braces to stop my trousers falling down:
4178test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4179echo "$as_me:4189: result: $lt_cv_prog_cc_static_works" >&5
4180echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4181
4182pic_flag="$lt_cv_prog_cc_pic"
4183special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4184wl="$lt_cv_prog_cc_wl"
4185link_static_flag="$lt_cv_prog_cc_static"
4186no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4187can_build_shared="$lt_cv_prog_cc_can_build_shared"
4188##
4189## END FIXME
4190
4191## FIXME: this should be a separate macro
4192##
4193# Check to see if options -o and -c are simultaneously supported by compiler
4194echo "$as_me:4204: checking if $compiler supports -c -o file.$ac_objext" >&5
4195echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4196if test "${lt_cv_compiler_c_o+set}" = set; then
4197  echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199
4200$rm -r conftest 2>/dev/null
4201mkdir conftest
4202cd conftest
4203echo "int some_variable = 0;" > conftest.$ac_ext
4204mkdir out
4205# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4206# that will create temporary files in the current directory regardless of
4207# the output directory.  Thus, making CWD read-only will cause this test
4208# to fail, enabling locking or at least warning the user not to do parallel
4209# builds.
4210chmod -w .
4211save_CFLAGS="$CFLAGS"
4212CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4213compiler_c_o=no
4214if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4215  # The compiler can only warn and ignore the option if not recognized
4216  # So say no if there are warnings
4217  if test -s out/conftest.err; then
4218    lt_cv_compiler_c_o=no
4219  else
4220    lt_cv_compiler_c_o=yes
4221  fi
4222else
4223  # Append any errors to the config.log.
4224  cat out/conftest.err 1>&5
4225  lt_cv_compiler_c_o=no
4226fi
4227CFLAGS="$save_CFLAGS"
4228chmod u+w .
4229$rm conftest* out/*
4230rmdir out
4231cd ..
4232rmdir conftest
4233$rm -r conftest 2>/dev/null
4234
4235fi
4236
4237compiler_c_o=$lt_cv_compiler_c_o
4238echo "$as_me:4248: result: $compiler_c_o" >&5
4239echo "${ECHO_T}$compiler_c_o" >&6
4240
4241if test x"$compiler_c_o" = x"yes"; then
4242  # Check to see if we can write to a .lo
4243  echo "$as_me:4253: checking if $compiler supports -c -o file.lo" >&5
4244echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4245  if test "${lt_cv_compiler_o_lo+set}" = set; then
4246  echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248
4249  lt_cv_compiler_o_lo=no
4250  save_CFLAGS="$CFLAGS"
4251  CFLAGS="$CFLAGS -c -o conftest.lo"
4252  cat >conftest.$ac_ext <<_ACEOF
4253#line 4263 "configure"
4254#include "confdefs.h"
4255
4256int
4257main ()
4258{
4259int some_variable = 0;
4260  ;
4261  return 0;
4262}
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5
4266  (eval $ac_compile) 2>&5
4267  ac_status=$?
4268  echo "$as_me:4278: \$? = $ac_status" >&5
4269  (exit $ac_status); } &&
4270         { ac_try='test -s conftest.$ac_objext'
4271  { (eval echo "$as_me:4281: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:4284: \$? = $ac_status" >&5
4275  (exit $ac_status); }; }; then
4276      # The compiler can only warn and ignore the option if not recognized
4277    # So say no if there are warnings
4278    if test -s conftest.err; then
4279      lt_cv_compiler_o_lo=no
4280    else
4281      lt_cv_compiler_o_lo=yes
4282    fi
4283
4284else
4285  echo "$as_me: failed program was:" >&5
4286cat conftest.$ac_ext >&5
4287fi
4288rm -f conftest.$ac_objext conftest.$ac_ext
4289  CFLAGS="$save_CFLAGS"
4290
4291fi
4292
4293  compiler_o_lo=$lt_cv_compiler_o_lo
4294  echo "$as_me:4304: result: $compiler_c_lo" >&5
4295echo "${ECHO_T}$compiler_c_lo" >&6
4296else
4297  compiler_o_lo=no
4298fi
4299##
4300## END FIXME
4301
4302## FIXME: this should be a separate macro
4303##
4304# Check to see if we can do hard links to lock some files if needed
4305hard_links="nottested"
4306if test "$compiler_c_o" = no && test "$need_locks" != no; then
4307  # do not overwrite the value of need_locks provided by the user
4308  echo "$as_me:4318: checking if we can lock with hard links" >&5
4309echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4310  hard_links=yes
4311  $rm conftest*
4312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4313  touch conftest.a
4314  ln conftest.a conftest.b 2>&5 || hard_links=no
4315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4316  echo "$as_me:4326: result: $hard_links" >&5
4317echo "${ECHO_T}$hard_links" >&6
4318  if test "$hard_links" = no; then
4319    { echo "$as_me:4329: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4320echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4321    need_locks=warn
4322  fi
4323else
4324  need_locks=no
4325fi
4326##
4327## END FIXME
4328
4329## FIXME: this should be a separate macro
4330##
4331if test "$GCC" = yes; then
4332  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4333  echo "$as_me:4343: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4334echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4335  echo "int some_variable = 0;" > conftest.$ac_ext
4336  save_CFLAGS="$CFLAGS"
4337  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4338  compiler_rtti_exceptions=no
4339  cat >conftest.$ac_ext <<_ACEOF
4340#line 4350 "configure"
4341#include "confdefs.h"
4342
4343int
4344main ()
4345{
4346int some_variable = 0;
4347  ;
4348  return 0;
4349}
4350_ACEOF
4351rm -f conftest.$ac_objext
4352if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4353  (eval $ac_compile) 2>&5
4354  ac_status=$?
4355  echo "$as_me:4365: \$? = $ac_status" >&5
4356  (exit $ac_status); } &&
4357         { ac_try='test -s conftest.$ac_objext'
4358  { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4359  (eval $ac_try) 2>&5
4360  ac_status=$?
4361  echo "$as_me:4371: \$? = $ac_status" >&5
4362  (exit $ac_status); }; }; then
4363      # The compiler can only warn and ignore the option if not recognized
4364    # So say no if there are warnings
4365    if test -s conftest.err; then
4366      compiler_rtti_exceptions=no
4367    else
4368      compiler_rtti_exceptions=yes
4369    fi
4370
4371else
4372  echo "$as_me: failed program was:" >&5
4373cat conftest.$ac_ext >&5
4374fi
4375rm -f conftest.$ac_objext conftest.$ac_ext
4376  CFLAGS="$save_CFLAGS"
4377  echo "$as_me:4387: result: $compiler_rtti_exceptions" >&5
4378echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4379
4380  if test "$compiler_rtti_exceptions" = "yes"; then
4381    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4382  else
4383    no_builtin_flag=' -fno-builtin'
4384  fi
4385fi
4386##
4387## END FIXME
4388
4389## FIXME: this should be a separate macro
4390##
4391# See if the linker supports building shared libraries.
4392echo "$as_me:4402: checking whether the linker ($LD) supports shared libraries" >&5
4393echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4394
4395allow_undefined_flag=
4396no_undefined_flag=
4397need_lib_prefix=unknown
4398need_version=unknown
4399# when you set need_version to no, make sure it does not cause -set_version
4400# flags to be left without arguments
4401archive_cmds=
4402archive_expsym_cmds=
4403old_archive_from_new_cmds=
4404old_archive_from_expsyms_cmds=
4405export_dynamic_flag_spec=
4406whole_archive_flag_spec=
4407thread_safe_flag_spec=
4408hardcode_into_libs=no
4409hardcode_libdir_flag_spec=
4410hardcode_libdir_separator=
4411hardcode_direct=no
4412hardcode_minus_L=no
4413hardcode_shlibpath_var=unsupported
4414runpath_var=
4415link_all_deplibs=unknown
4416always_export_symbols=no
4417export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4418# include_expsyms should be a list of space-separated symbols to be *always*
4419# included in the symbol list
4420include_expsyms=
4421# exclude_expsyms can be an egrep regular expression of symbols to exclude
4422# it will be wrapped by ` (' and `)$', so one must not match beginning or
4423# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4424# as well as any symbol that contains `d'.
4425exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4426# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4427# platforms (ab)use it in PIC code, but their linkers get confused if
4428# the symbol is explicitly referenced.  Since portable code cannot
4429# rely on this symbol name, it's probably fine to never include it in
4430# preloaded symbol tables.
4431extract_expsyms_cmds=
4432
4433case $host_os in
4434cygwin* | mingw* | pw32* )
4435  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4436  # When not using gcc, we currently assume that we are using
4437  # Microsoft Visual C++.
4438  if test "$GCC" != yes; then
4439    with_gnu_ld=no
4440  fi
4441  ;;
4442
4443esac
4444
4445ld_shlibs=yes
4446if test "$with_gnu_ld" = yes; then
4447  # If archive_cmds runs LD, not CC, wlarc should be empty
4448  wlarc='${wl}'
4449
4450  # See if GNU ld supports shared libraries.
4451  case $host_os in
4452  aix3* | aix4* | aix5*)
4453    # On AIX, the GNU linker is very broken
4454    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4455    ld_shlibs=no
4456    cat <<EOF 1>&2
4457
4458*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4459*** to be unable to reliably create shared libraries on AIX.
4460*** Therefore, libtool is disabling shared libraries support.  If you
4461*** really care for shared libraries, you may want to modify your PATH
4462*** so that a non-GNU linker is found, and then restart.
4463
4464EOF
4465    ;;
4466
4467  amigaos*)
4468    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)'
4469    hardcode_libdir_flag_spec='-L$libdir'
4470    hardcode_minus_L=yes
4471
4472    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4473    # that the semantics of dynamic libraries on AmigaOS, at least up
4474    # to version 4, is to share data among multiple programs linked
4475    # with the same dynamic library.  Since this doesn't match the
4476    # behavior of shared libraries on other platforms, we can use
4477    # them.
4478    ld_shlibs=no
4479    ;;
4480
4481  beos*)
4482    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4483      allow_undefined_flag=unsupported
4484      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4485      # support --undefined.  This deserves some investigation.  FIXME
4486      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4487    else
4488      ld_shlibs=no
4489    fi
4490    ;;
4491
4492  cygwin* | mingw* | pw32*)
4493    # hardcode_libdir_flag_spec is actually meaningless, as there is
4494    # no search path for DLLs.
4495    hardcode_libdir_flag_spec='-L$libdir'
4496    allow_undefined_flag=unsupported
4497    always_export_symbols=yes
4498
4499    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4500      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4501      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4502      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4503      else $CC -o impgen impgen.c ; fi)~
4504      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4505
4506    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4507
4508    # cygwin and mingw dlls have different entry points and sets of symbols
4509    # to exclude.
4510    # FIXME: what about values for MSVC?
4511    dll_entry=__cygwin_dll_entry@12
4512    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4513    case $host_os in
4514    mingw*)
4515      # mingw values
4516      dll_entry=_DllMainCRTStartup@12
4517      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4518      ;;
4519    esac
4520
4521    # mingw and cygwin differ, and it's simplest to just exclude the union
4522    # of the two symbol sets.
4523    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4524
4525    # recent cygwin and mingw systems supply a stub DllMain which the user
4526    # can override, but on older systems we have to supply one (in ltdll.c)
4527    if test "x$lt_cv_need_dllmain" = "xyes"; then
4528      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4529      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4530        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4531    else
4532      ltdll_obj=
4533      ltdll_cmds=
4534    fi
4535
4536    # Extract the symbol export list from an `--export-all' def file,
4537    # then regenerate the def file from the symbol export list, so that
4538    # the compiled dll only exports the symbol export list.
4539    # Be careful not to strip the DATA tag left be newer dlltools.
4540    export_symbols_cmds="$ltdll_cmds"'
4541      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4542      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4543
4544    # If the export-symbols file already is a .def file (1st line
4545    # is EXPORTS), use it as is.
4546    # If DATA tags from a recent dlltool are present, honour them!
4547    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4548        cp $export_symbols $output_objdir/$soname-def;
4549      else
4550        echo EXPORTS > $output_objdir/$soname-def;
4551        _lt_hint=1;
4552        cat $export_symbols | while read symbol; do
4553         set dummy \$symbol;
4554         case \$# in
4555           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4556           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4557         esac;
4558         _lt_hint=`expr 1 + \$_lt_hint`;
4559        done;
4560      fi~
4561      '"$ltdll_cmds"'
4562      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4563      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4564      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4565      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4566      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4567    ;;
4568
4569  netbsd*)
4570    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4571      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4572      wlarc=
4573    else
4574      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4575      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4576    fi
4577    ;;
4578
4579  solaris* | sysv5*)
4580    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4581      ld_shlibs=no
4582      cat <<EOF 1>&2
4583
4584*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4585*** create shared libraries on Solaris systems.  Therefore, libtool
4586*** is disabling shared libraries support.  We urge you to upgrade GNU
4587*** binutils to release 2.9.1 or newer.  Another option is to modify
4588*** your PATH or compiler configuration so that the native linker is
4589*** used, and then restart.
4590
4591EOF
4592    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4593      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4594      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4595    else
4596      ld_shlibs=no
4597    fi
4598    ;;
4599
4600  sunos4*)
4601    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4602    wlarc=
4603    hardcode_direct=yes
4604    hardcode_shlibpath_var=no
4605    ;;
4606
4607  *)
4608    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4609      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4610      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4611    else
4612      ld_shlibs=no
4613    fi
4614    ;;
4615  esac
4616
4617  if test "$ld_shlibs" = yes; then
4618    runpath_var=LD_RUN_PATH
4619    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4620    export_dynamic_flag_spec='${wl}--export-dynamic'
4621    case $host_os in
4622    cygwin* | mingw* | pw32*)
4623      # dlltool doesn't understand --whole-archive et. al.
4624      whole_archive_flag_spec=
4625      ;;
4626    *)
4627      # ancient GNU ld didn't support --whole-archive et. al.
4628      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4629        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4630      else
4631        whole_archive_flag_spec=
4632      fi
4633      ;;
4634    esac
4635  fi
4636else
4637  # PORTME fill in a description of your system's linker (not GNU ld)
4638  case $host_os in
4639  aix3*)
4640    allow_undefined_flag=unsupported
4641    always_export_symbols=yes
4642    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'
4643    # Note: this linker hardcodes the directories in LIBPATH if there
4644    # are no directories specified by -L.
4645    hardcode_minus_L=yes
4646    if test "$GCC" = yes && test -z "$link_static_flag"; then
4647      # Neither direct hardcoding nor static linking is supported with a
4648      # broken collect2.
4649      hardcode_direct=unsupported
4650    fi
4651    ;;
4652
4653  aix4* | aix5*)
4654    # When large executables or shared objects are built, AIX ld can
4655    # have problems creating the table of contents.  If linking a library
4656    # or program results in "error TOC overflow" add -mminimal-toc to
4657    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4658    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4659
4660    archive_cmds=''
4661    hardcode_libdir_separator=':'
4662    if test "$GCC" = yes; then
4663      collect2name=`${CC} -print-prog-name=collect2`
4664      if test -f "$collect2name" && \
4665         strings "$collect2name" | grep resolve_lib_name >/dev/null
4666      then
4667        # We have reworked collect2
4668        hardcode_direct=yes
4669      else
4670        # We have old collect2
4671        hardcode_direct=unsupported
4672        # It fails to find uninstalled libraries when the uninstalled
4673        # path is not listed in the libpath.  Setting hardcode_minus_L
4674        # to unsupported forces relinking
4675        hardcode_minus_L=yes
4676        hardcode_libdir_flag_spec='-L$libdir'
4677        hardcode_libdir_separator=
4678      fi
4679      shared_flag='-shared'
4680    else
4681      if test "$host_cpu" = ia64; then
4682        shared_flag='-G'
4683      else
4684        shared_flag='${wl}-bM:SRE'
4685      fi
4686      hardcode_direct=yes
4687    fi
4688
4689    if test "$host_cpu" = ia64; then
4690      # On IA64, the linker does run time linking by default, so we don't
4691      # have to do anything special.
4692      aix_use_runtimelinking=no
4693      exp_sym_flag='-Bexport'
4694      no_entry_flag=""
4695    else
4696      # Test if we are trying to use run time linking, or normal AIX style linking.
4697      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4698      aix_use_runtimelinking=no
4699      for ld_flag in $LDFLAGS; do
4700        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4701          aix_use_runtimelinking=yes
4702          break
4703        fi
4704      done
4705      exp_sym_flag='-bexport'
4706      no_entry_flag='-bnoentry'
4707    fi
4708    # It seems that -bexpall can do strange things, so it is better to
4709    # generate a list of symbols to export.
4710    always_export_symbols=yes
4711    if test "$aix_use_runtimelinking" = yes; then
4712      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4713      allow_undefined_flag=' -Wl,-G'
4714      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4715    else
4716      if test "$host_cpu" = ia64; then
4717        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4718       allow_undefined_flag="-znodefs"
4719        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4720      else
4721        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4722        # Warning - without using the other run time loading flags, -berok will
4723        #           link without error, but may produce a broken library.
4724        allow_undefined_flag='${wl}-berok"
4725        # This is a bit strange, but is similar to how AIX traditionally builds
4726        # it's shared libraries.
4727        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4728      fi
4729    fi
4730    ;;
4731
4732  amigaos*)
4733    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)'
4734    hardcode_libdir_flag_spec='-L$libdir'
4735    hardcode_minus_L=yes
4736    # see comment about different semantics on the GNU ld section
4737    ld_shlibs=no
4738    ;;
4739
4740  cygwin* | mingw* | pw32*)
4741    # When not using gcc, we currently assume that we are using
4742    # Microsoft Visual C++.
4743    # hardcode_libdir_flag_spec is actually meaningless, as there is
4744    # no search path for DLLs.
4745    hardcode_libdir_flag_spec=' '
4746    allow_undefined_flag=unsupported
4747    # Tell ltmain to make .lib files, not .a files.
4748    libext=lib
4749    # FIXME: Setting linknames here is a bad hack.
4750    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4751    # The linker will automatically build a .lib file if we build a DLL.
4752    old_archive_from_new_cmds='true'
4753    # FIXME: Should let the user specify the lib program.
4754    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4755    fix_srcfile_path='`cygpath -w "$srcfile"`'
4756    ;;
4757
4758  darwin* | rhapsody*)
4759    allow_undefined_flag='-undefined suppress'
4760    # FIXME: Relying on posixy $() will cause problems for
4761    #        cross-compilation, but unfortunately the echo tests do not
4762    #        yet detect zsh echo's removal of \ escapes.
4763    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4764    # We need to add '_' to the symbols in $export_symbols first
4765    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4766    hardcode_direct=yes
4767    hardcode_shlibpath_var=no
4768    whole_archive_flag_spec='-all_load $convenience'
4769    ;;
4770
4771  freebsd1*)
4772    ld_shlibs=no
4773    ;;
4774
4775  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4776  # support.  Future versions do this automatically, but an explicit c++rt0.o
4777  # does not break anything, and helps significantly (at the cost of a little
4778  # extra space).
4779  freebsd2.2*)
4780    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4781    hardcode_libdir_flag_spec='-R$libdir'
4782    hardcode_direct=yes
4783    hardcode_shlibpath_var=no
4784    ;;
4785
4786  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4787  freebsd2*)
4788    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4789    hardcode_direct=yes
4790    hardcode_minus_L=yes
4791    hardcode_shlibpath_var=no
4792    ;;
4793
4794  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4795  freebsd*)
4796    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4797    hardcode_libdir_flag_spec='-R$libdir'
4798    hardcode_direct=yes
4799    hardcode_shlibpath_var=no
4800    ;;
4801
4802  hpux9* | hpux10* | hpux11*)
4803    case $host_os in
4804    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4805    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4806    esac
4807    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4808    hardcode_libdir_separator=:
4809    hardcode_direct=yes
4810    hardcode_minus_L=yes # Not in the search PATH, but as the default
4811                         # location of the library.
4812    export_dynamic_flag_spec='${wl}-E'
4813    ;;
4814
4815  irix5* | irix6*)
4816    if test "$GCC" = yes; then
4817      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'
4818    else
4819      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'
4820    fi
4821    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4822    hardcode_libdir_separator=:
4823    link_all_deplibs=yes
4824    ;;
4825
4826  netbsd*)
4827    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4828      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4829    else
4830      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4831    fi
4832    hardcode_libdir_flag_spec='-R$libdir'
4833    hardcode_direct=yes
4834    hardcode_shlibpath_var=no
4835    ;;
4836
4837  newsos6)
4838    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4839    hardcode_direct=yes
4840    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4841    hardcode_libdir_separator=:
4842    hardcode_shlibpath_var=no
4843    ;;
4844
4845  openbsd*)
4846    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4847    hardcode_libdir_flag_spec='-R$libdir'
4848    hardcode_direct=yes
4849    hardcode_shlibpath_var=no
4850    ;;
4851
4852  os2*)
4853    hardcode_libdir_flag_spec='-L$libdir'
4854    hardcode_minus_L=yes
4855    allow_undefined_flag=unsupported
4856    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'
4857    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4858    ;;
4859
4860  osf3*)
4861    if test "$GCC" = yes; then
4862      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4863      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'
4864    else
4865      allow_undefined_flag=' -expect_unresolved \*'
4866      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'
4867    fi
4868    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4869    hardcode_libdir_separator=:
4870    ;;
4871
4872  osf4* | osf5*)        # as osf3* with the addition of -msym flag
4873    if test "$GCC" = yes; then
4874      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4875      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'
4876      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4877    else
4878      allow_undefined_flag=' -expect_unresolved \*'
4879      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'
4880      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4881      $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'
4882
4883      #Both c and cxx compiler support -rpath directly
4884      hardcode_libdir_flag_spec='-rpath $libdir'
4885    fi
4886    hardcode_libdir_separator=:
4887    ;;
4888
4889  sco3.2v5*)
4890    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4891    hardcode_shlibpath_var=no
4892    runpath_var=LD_RUN_PATH
4893    hardcode_runpath_var=yes
4894    ;;
4895
4896  solaris*)
4897    no_undefined_flag=' -z defs'
4898    # $CC -shared without GNU ld will not create a library from C++
4899    # object files and a static libstdc++, better avoid it by now
4900    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4901    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4902                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4903    hardcode_libdir_flag_spec='-R$libdir'
4904    hardcode_shlibpath_var=no
4905    case $host_os in
4906    solaris2.[0-5] | solaris2.[0-5].*) ;;
4907    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4908      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4909    esac
4910    link_all_deplibs=yes
4911    ;;
4912
4913  sunos4*)
4914    if test "x$host_vendor" = xsequent; then
4915      # Use $CC to link under sequent, because it throws in some extra .o
4916      # files that make .init and .fini sections work.
4917      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4918    else
4919      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4920    fi
4921    hardcode_libdir_flag_spec='-L$libdir'
4922    hardcode_direct=yes
4923    hardcode_minus_L=yes
4924    hardcode_shlibpath_var=no
4925    ;;
4926
4927  sysv4)
4928    if test "x$host_vendor" = xsno; then
4929      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4930      hardcode_direct=yes # is this really true???
4931    else
4932      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4933      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4934    fi
4935    runpath_var='LD_RUN_PATH'
4936    hardcode_shlibpath_var=no
4937    ;;
4938
4939  sysv4.3*)
4940    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4941    hardcode_shlibpath_var=no
4942    export_dynamic_flag_spec='-Bexport'
4943    ;;
4944
4945  sysv5*)
4946    no_undefined_flag=' -z text'
4947    # $CC -shared without GNU ld will not create a library from C++
4948    # object files and a static libstdc++, better avoid it by now
4949    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4950    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4951                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4952    hardcode_libdir_flag_spec=
4953    hardcode_shlibpath_var=no
4954    runpath_var='LD_RUN_PATH'
4955    ;;
4956
4957  uts4*)
4958    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4959    hardcode_libdir_flag_spec='-L$libdir'
4960    hardcode_shlibpath_var=no
4961    ;;
4962
4963  dgux*)
4964    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4965    hardcode_libdir_flag_spec='-L$libdir'
4966    hardcode_shlibpath_var=no
4967    ;;
4968
4969  sysv4*MP*)
4970    if test -d /usr/nec; then
4971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4972      hardcode_shlibpath_var=no
4973      runpath_var=LD_RUN_PATH
4974      hardcode_runpath_var=yes
4975      ld_shlibs=yes
4976    fi
4977    ;;
4978
4979  sysv4.2uw2*)
4980    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4981    hardcode_direct=yes
4982    hardcode_minus_L=no
4983    hardcode_shlibpath_var=no
4984    hardcode_runpath_var=yes
4985    runpath_var=LD_RUN_PATH
4986    ;;
4987
4988  sysv5uw7* | unixware7*)
4989    no_undefined_flag='${wl}-z ${wl}text'
4990    if test "$GCC" = yes; then
4991      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4992    else
4993      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4994    fi
4995    runpath_var='LD_RUN_PATH'
4996    hardcode_shlibpath_var=no
4997    ;;
4998
4999  *)
5000    ld_shlibs=no
5001    ;;
5002  esac
5003fi
5004echo "$as_me:5014: result: $ld_shlibs" >&5
5005echo "${ECHO_T}$ld_shlibs" >&6
5006test "$ld_shlibs" = no && can_build_shared=no
5007##
5008## END FIXME
5009
5010## FIXME: this should be a separate macro
5011##
5012# Check hardcoding attributes.
5013echo "$as_me:5023: checking how to hardcode library paths into programs" >&5
5014echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5015hardcode_action=
5016if test -n "$hardcode_libdir_flag_spec" || \
5017   test -n "$runpath_var"; then
5018
5019  # We can hardcode non-existant directories.
5020  if test "$hardcode_direct" != no &&
5021     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5022     # have to relink, otherwise we might link with an installed library
5023     # when we should be linking with a yet-to-be-installed one
5024     ## test "$hardcode_shlibpath_var" != no &&
5025     test "$hardcode_minus_L" != no; then
5026    # Linking always hardcodes the temporary library directory.
5027    hardcode_action=relink
5028  else
5029    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5030    hardcode_action=immediate
5031  fi
5032else
5033  # We cannot hardcode anything, or else we can only hardcode existing
5034  # directories.
5035  hardcode_action=unsupported
5036fi
5037echo "$as_me:5047: result: $hardcode_action" >&5
5038echo "${ECHO_T}$hardcode_action" >&6
5039##
5040## END FIXME
5041
5042## FIXME: this should be a separate macro
5043##
5044striplib=
5045old_striplib=
5046echo "$as_me:5056: checking whether stripping libraries is possible" >&5
5047echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5048if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5049  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5050  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5051  echo "$as_me:5061: result: yes" >&5
5052echo "${ECHO_T}yes" >&6
5053else
5054  echo "$as_me:5064: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057##
5058## END FIXME
5059
5060reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061test -z "$deplibs_check_method" && deplibs_check_method=unknown
5062
5063## FIXME: this should be a separate macro
5064##
5065# PORTME Fill in your ld.so characteristics
5066echo "$as_me:5076: checking dynamic linker characteristics" >&5
5067echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5068library_names_spec=
5069libname_spec='lib$name'
5070soname_spec=
5071postinstall_cmds=
5072postuninstall_cmds=
5073finish_cmds=
5074finish_eval=
5075shlibpath_var=
5076shlibpath_overrides_runpath=unknown
5077version_type=none
5078dynamic_linker="$host_os ld.so"
5079sys_lib_dlsearch_path_spec="/lib /usr/lib"
5080sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5081
5082case $host_os in
5083aix3*)
5084  version_type=linux
5085  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5086  shlibpath_var=LIBPATH
5087
5088  # AIX has no versioning support, so we append a major version to the name.
5089  soname_spec='${libname}${release}.so$major'
5090  ;;
5091
5092aix4* | aix5*)
5093  version_type=linux
5094  if test "$host_cpu" = ia64; then
5095    # AIX 5 supports IA64
5096    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5097    shlibpath_var=LD_LIBRARY_PATH
5098  else
5099    # With GCC up to 2.95.x, collect2 would create an import file
5100    # for dependence libraries.  The import file would start with
5101    # the line `#! .'.  This would cause the generated library to
5102    # depend on `.', always an invalid library.  This was fixed in
5103    # development snapshots of GCC prior to 3.0.
5104    case $host_os in
5105       aix4 | aix4.[01] | aix4.[01].*)
5106      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5107           echo ' yes '
5108           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5109        :
5110      else
5111        can_build_shared=no
5112      fi
5113      ;;
5114    esac
5115    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5116    # soname into executable. Probably we can add versioning support to
5117    # collect2, so additional links can be useful in future.
5118    if test "$aix_use_runtimelinking" = yes; then
5119      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
5120      # lib<name>.a to let people know that these are not typical AIX shared libraries.
5121      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5122    else
5123      # We preserve .a as extension for shared libraries through AIX4.2
5124      # and later when we are not doing run time linking.
5125      library_names_spec='${libname}${release}.a $libname.a'
5126      soname_spec='${libname}${release}.so$major'
5127    fi
5128    shlibpath_var=LIBPATH
5129    deplibs_check_method=pass_all
5130  fi
5131  ;;
5132
5133amigaos*)
5134  library_names_spec='$libname.ixlibrary $libname.a'
5135  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5136  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'
5137  ;;
5138
5139beos*)
5140  library_names_spec='${libname}.so'
5141  dynamic_linker="$host_os ld.so"
5142  shlibpath_var=LIBRARY_PATH
5143  ;;
5144
5145bsdi4*)
5146  version_type=linux
5147  need_version=no
5148  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5149  soname_spec='${libname}${release}.so$major'
5150  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5151  shlibpath_var=LD_LIBRARY_PATH
5152  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5153  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5154  export_dynamic_flag_spec=-rdynamic
5155  # the default ld.so.conf also contains /usr/contrib/lib and
5156  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5157  # libtool to hard-code these into programs
5158  ;;
5159
5160cygwin* | mingw* | pw32*)
5161  version_type=windows
5162  need_version=no
5163  need_lib_prefix=no
5164  case $GCC,$host_os in
5165  yes,cygwin*)
5166    library_names_spec='$libname.dll.a'
5167    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5168    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5169      dldir=$destdir/`dirname \$dlpath`~
5170      test -d \$dldir || mkdir -p \$dldir~
5171      $install_prog .libs/$dlname \$dldir/$dlname'
5172    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5173      dlpath=$dir/\$dldll~
5174       $rm \$dlpath'
5175    ;;
5176  yes,mingw*)
5177    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5178    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5179    ;;
5180  yes,pw32*)
5181    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5182    ;;
5183  *)
5184    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5185    ;;
5186  esac
5187  dynamic_linker='Win32 ld.exe'
5188  # FIXME: first we should search . and the directory the executable is in
5189  shlibpath_var=PATH
5190  ;;
5191
5192darwin* | rhapsody*)
5193  dynamic_linker="$host_os dyld"
5194  version_type=darwin
5195  need_lib_prefix=no
5196  need_version=no
5197  # FIXME: Relying on posixy $() will cause problems for
5198  #        cross-compilation, but unfortunately the echo tests do not
5199  #        yet detect zsh echo's removal of \ escapes.
5200  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5201  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5202  shlibpath_overrides_runpath=yes
5203  shlibpath_var=DYLD_LIBRARY_PATH
5204  ;;
5205
5206freebsd1*)
5207  dynamic_linker=no
5208  ;;
5209
5210freebsd*)
5211  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5212  version_type=freebsd-$objformat
5213  case $version_type in
5214    freebsd-elf*)
5215      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5216      need_version=no
5217      need_lib_prefix=no
5218      ;;
5219    freebsd-*)
5220      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5221      need_version=yes
5222      ;;
5223  esac
5224  shlibpath_var=LD_LIBRARY_PATH
5225  case $host_os in
5226  freebsd2*)
5227    shlibpath_overrides_runpath=yes
5228    ;;
5229  *)
5230    shlibpath_overrides_runpath=no
5231    hardcode_into_libs=yes
5232    ;;
5233  esac
5234  ;;
5235
5236gnu*)
5237  version_type=linux
5238  need_lib_prefix=no
5239  need_version=no
5240  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5241  soname_spec='${libname}${release}.so$major'
5242  shlibpath_var=LD_LIBRARY_PATH
5243  hardcode_into_libs=yes
5244  ;;
5245
5246hpux9* | hpux10* | hpux11*)
5247  # Give a soname corresponding to the major version so that dld.sl refuses to
5248  # link against other versions.
5249  dynamic_linker="$host_os dld.sl"
5250  version_type=sunos
5251  need_lib_prefix=no
5252  need_version=no
5253  shlibpath_var=SHLIB_PATH
5254  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5255  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5256  soname_spec='${libname}${release}.sl$major'
5257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5258  postinstall_cmds='chmod 555 $lib'
5259  ;;
5260
5261irix5* | irix6*)
5262  version_type=irix
5263  need_lib_prefix=no
5264  need_version=no
5265  soname_spec='${libname}${release}.so$major'
5266  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5267  case $host_os in
5268  irix5*)
5269    libsuff= shlibsuff=
5270    ;;
5271  *)
5272    case $LD in # libtool.m4 will add one of these switches to LD
5273    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5274    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5275    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5276    *) libsuff= shlibsuff= libmagic=never-match;;
5277    esac
5278    ;;
5279  esac
5280  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5281  shlibpath_overrides_runpath=no
5282  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5283  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5284  ;;
5285
5286# No shared lib support for Linux oldld, aout, or coff.
5287linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5288  dynamic_linker=no
5289  ;;
5290
5291# This must be Linux ELF.
5292linux-gnu*)
5293  version_type=linux
5294  need_lib_prefix=no
5295  need_version=no
5296  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5297  soname_spec='${libname}${release}.so$major'
5298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5299  shlibpath_var=LD_LIBRARY_PATH
5300  shlibpath_overrides_runpath=no
5301  # This implies no fast_install, which is unacceptable.
5302  # Some rework will be needed to allow for fast_install
5303  # before this can be enabled.
5304  hardcode_into_libs=yes
5305
5306  # We used to test for /lib/ld.so.1 and disable shared libraries on
5307  # powerpc, because MkLinux only supported shared libraries with the
5308  # GNU dynamic linker.  Since this was broken with cross compilers,
5309  # most powerpc-linux boxes support dynamic linking these days and
5310  # people can always --disable-shared, the test was removed, and we
5311  # assume the GNU/Linux dynamic linker is in use.
5312  dynamic_linker='GNU/Linux ld.so'
5313  ;;
5314
5315netbsd*)
5316  version_type=sunos
5317  need_lib_prefix=no
5318  need_version=no
5319  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5320    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5321    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5322    dynamic_linker='NetBSD (a.out) ld.so'
5323  else
5324    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5325    soname_spec='${libname}${release}.so$major'
5326    dynamic_linker='NetBSD ld.elf_so'
5327  fi
5328  shlibpath_var=LD_LIBRARY_PATH
5329  shlibpath_overrides_runpath=yes
5330  hardcode_into_libs=yes
5331  ;;
5332
5333newsos6)
5334  version_type=linux
5335  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5336  shlibpath_var=LD_LIBRARY_PATH
5337  shlibpath_overrides_runpath=yes
5338  ;;
5339
5340openbsd*)
5341  version_type=sunos
5342  if test "$with_gnu_ld" = yes; then
5343    need_lib_prefix=no
5344    need_version=no
5345  fi
5346  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5347  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5348  shlibpath_var=LD_LIBRARY_PATH
5349  ;;
5350
5351os2*)
5352  libname_spec='$name'
5353  need_lib_prefix=no
5354  library_names_spec='$libname.dll $libname.a'
5355  dynamic_linker='OS/2 ld.exe'
5356  shlibpath_var=LIBPATH
5357  ;;
5358
5359osf3* | osf4* | osf5*)
5360  version_type=osf
5361  need_version=no
5362  soname_spec='${libname}${release}.so'
5363  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5364  shlibpath_var=LD_LIBRARY_PATH
5365  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5366  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5367  ;;
5368
5369sco3.2v5*)
5370  version_type=osf
5371  soname_spec='${libname}${release}.so$major'
5372  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5373  shlibpath_var=LD_LIBRARY_PATH
5374  ;;
5375
5376solaris*)
5377  version_type=linux
5378  need_lib_prefix=no
5379  need_version=no
5380  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5381  soname_spec='${libname}${release}.so$major'
5382  shlibpath_var=LD_LIBRARY_PATH
5383  shlibpath_overrides_runpath=yes
5384  hardcode_into_libs=yes
5385  # ldd complains unless libraries are executable
5386  postinstall_cmds='chmod +x $lib'
5387  ;;
5388
5389sunos4*)
5390  version_type=sunos
5391  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5392  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5393  shlibpath_var=LD_LIBRARY_PATH
5394  shlibpath_overrides_runpath=yes
5395  if test "$with_gnu_ld" = yes; then
5396    need_lib_prefix=no
5397  fi
5398  need_version=yes
5399  ;;
5400
5401sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5402  version_type=linux
5403  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5404  soname_spec='${libname}${release}.so$major'
5405  shlibpath_var=LD_LIBRARY_PATH
5406  case $host_vendor in
5407    sni)
5408      shlibpath_overrides_runpath=no
5409      ;;
5410    motorola)
5411      need_lib_prefix=no
5412      need_version=no
5413      shlibpath_overrides_runpath=no
5414      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5415      ;;
5416  esac
5417  ;;
5418
5419uts4*)
5420  version_type=linux
5421  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5422  soname_spec='${libname}${release}.so$major'
5423  shlibpath_var=LD_LIBRARY_PATH
5424  ;;
5425
5426dgux*)
5427  version_type=linux
5428  need_lib_prefix=no
5429  need_version=no
5430  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5431  soname_spec='${libname}${release}.so$major'
5432  shlibpath_var=LD_LIBRARY_PATH
5433  ;;
5434
5435sysv4*MP*)
5436  if test -d /usr/nec ;then
5437    version_type=linux
5438    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5439    soname_spec='$libname.so.$major'
5440    shlibpath_var=LD_LIBRARY_PATH
5441  fi
5442  ;;
5443
5444*)
5445  dynamic_linker=no
5446  ;;
5447esac
5448echo "$as_me:5458: result: $dynamic_linker" >&5
5449echo "${ECHO_T}$dynamic_linker" >&6
5450test "$dynamic_linker" = no && can_build_shared=no
5451##
5452## END FIXME
5453
5454## FIXME: this should be a separate macro
5455##
5456# Report the final consequences.
5457echo "$as_me:5467: checking if libtool supports shared libraries" >&5
5458echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5459echo "$as_me:5469: result: $can_build_shared" >&5
5460echo "${ECHO_T}$can_build_shared" >&6
5461##
5462## END FIXME
5463
5464if test "$hardcode_action" = relink; then
5465  # Fast installation is not supported
5466  enable_fast_install=no
5467elif test "$shlibpath_overrides_runpath" = yes ||
5468     test "$enable_shared" = no; then
5469  # Fast installation is not necessary
5470  enable_fast_install=needless
5471fi
5472
5473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5474if test "$GCC" = yes; then
5475  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5476fi
5477
5478if test "x$enable_dlopen" != xyes; then
5479  enable_dlopen=unknown
5480  enable_dlopen_self=unknown
5481  enable_dlopen_self_static=unknown
5482else
5483  lt_cv_dlopen=no
5484  lt_cv_dlopen_libs=
5485
5486  case $host_os in
5487  beos*)
5488    lt_cv_dlopen="load_add_on"
5489    lt_cv_dlopen_libs=
5490    lt_cv_dlopen_self=yes
5491    ;;
5492
5493  cygwin* | mingw* | pw32*)
5494    lt_cv_dlopen="LoadLibrary"
5495    lt_cv_dlopen_libs=
5496   ;;
5497
5498  *)
5499    echo "$as_me:5509: checking for dlopen in -ldl" >&5
5500echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5501if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  ac_check_lib_save_LIBS=$LIBS
5505LIBS="-ldl  $LIBS"
5506cat >conftest.$ac_ext <<_ACEOF
5507#line 5517 "configure"
5508#include "confdefs.h"
5509
5510/* Override any gcc2 internal prototype to avoid an error.  */
5511#ifdef __cplusplus
5512extern "C"
5513#endif
5514/* We use char because int might match the return type of a gcc2
5515   builtin and then its argument prototype would still apply.  */
5516char dlopen ();
5517int
5518main ()
5519{
5520dlopen ();
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext conftest$ac_exeext
5526if { (eval echo "$as_me:5536: \"$ac_link\"") >&5
5527  (eval $ac_link) 2>&5
5528  ac_status=$?
5529  echo "$as_me:5539: \$? = $ac_status" >&5
5530  (exit $ac_status); } &&
5531         { ac_try='test -s conftest$ac_exeext'
5532  { (eval echo "$as_me:5542: \"$ac_try\"") >&5
5533  (eval $ac_try) 2>&5
5534  ac_status=$?
5535  echo "$as_me:5545: \$? = $ac_status" >&5
5536  (exit $ac_status); }; }; then
5537  ac_cv_lib_dl_dlopen=yes
5538else
5539  echo "$as_me: failed program was:" >&5
5540cat conftest.$ac_ext >&5
5541ac_cv_lib_dl_dlopen=no
5542fi
5543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5544LIBS=$ac_check_lib_save_LIBS
5545fi
5546echo "$as_me:5556: result: $ac_cv_lib_dl_dlopen" >&5
5547echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5548if test $ac_cv_lib_dl_dlopen = yes; then
5549  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5550else
5551  echo "$as_me:5561: checking for dlopen" >&5
5552echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5553if test "${ac_cv_func_dlopen+set}" = set; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556  cat >conftest.$ac_ext <<_ACEOF
5557#line 5567 "configure"
5558#include "confdefs.h"
5559/* System header to define __stub macros and hopefully few prototypes,
5560    which can conflict with char dlopen (); below.  */
5561#include <assert.h>
5562/* Override any gcc2 internal prototype to avoid an error.  */
5563#ifdef __cplusplus
5564extern "C"
5565#endif
5566/* We use char because int might match the return type of a gcc2
5567   builtin and then its argument prototype would still apply.  */
5568char dlopen ();
5569char (*f) ();
5570
5571int
5572main ()
5573{
5574/* The GNU C library defines this for functions which it implements
5575    to always fail with ENOSYS.  Some functions are actually named
5576    something starting with __ and the normal name is an alias.  */
5577#if defined (__stub_dlopen) || defined (__stub___dlopen)
5578choke me
5579#else
5580f = dlopen;
5581#endif
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587rm -f conftest.$ac_objext conftest$ac_exeext
5588if { (eval echo "$as_me:5598: \"$ac_link\"") >&5
5589  (eval $ac_link) 2>&5
5590  ac_status=$?
5591  echo "$as_me:5601: \$? = $ac_status" >&5
5592  (exit $ac_status); } &&
5593         { ac_try='test -s conftest$ac_exeext'
5594  { (eval echo "$as_me:5604: \"$ac_try\"") >&5
5595  (eval $ac_try) 2>&5
5596  ac_status=$?
5597  echo "$as_me:5607: \$? = $ac_status" >&5
5598  (exit $ac_status); }; }; then
5599  ac_cv_func_dlopen=yes
5600else
5601  echo "$as_me: failed program was:" >&5
5602cat conftest.$ac_ext >&5
5603ac_cv_func_dlopen=no
5604fi
5605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5606fi
5607echo "$as_me:5617: result: $ac_cv_func_dlopen" >&5
5608echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5609if test $ac_cv_func_dlopen = yes; then
5610  lt_cv_dlopen="dlopen"
5611else
5612  echo "$as_me:5622: checking for shl_load" >&5
5613echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5614if test "${ac_cv_func_shl_load+set}" = set; then
5615  echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617  cat >conftest.$ac_ext <<_ACEOF
5618#line 5628 "configure"
5619#include "confdefs.h"
5620/* System header to define __stub macros and hopefully few prototypes,
5621    which can conflict with char shl_load (); below.  */
5622#include <assert.h>
5623/* Override any gcc2 internal prototype to avoid an error.  */
5624#ifdef __cplusplus
5625extern "C"
5626#endif
5627/* We use char because int might match the return type of a gcc2
5628   builtin and then its argument prototype would still apply.  */
5629char shl_load ();
5630char (*f) ();
5631
5632int
5633main ()
5634{
5635/* The GNU C library defines this for functions which it implements
5636    to always fail with ENOSYS.  Some functions are actually named
5637    something starting with __ and the normal name is an alias.  */
5638#if defined (__stub_shl_load) || defined (__stub___shl_load)
5639choke me
5640#else
5641f = shl_load;
5642#endif
5643
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext conftest$ac_exeext
5649if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5650  (eval $ac_link) 2>&5
5651  ac_status=$?
5652  echo "$as_me:5662: \$? = $ac_status" >&5
5653  (exit $ac_status); } &&
5654         { ac_try='test -s conftest$ac_exeext'
5655  { (eval echo "$as_me:5665: \"$ac_try\"") >&5
5656  (eval $ac_try) 2>&5
5657  ac_status=$?
5658  echo "$as_me:5668: \$? = $ac_status" >&5
5659  (exit $ac_status); }; }; then
5660  ac_cv_func_shl_load=yes
5661else
5662  echo "$as_me: failed program was:" >&5
5663cat conftest.$ac_ext >&5
5664ac_cv_func_shl_load=no
5665fi
5666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667fi
5668echo "$as_me:5678: result: $ac_cv_func_shl_load" >&5
5669echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5670if test $ac_cv_func_shl_load = yes; then
5671  lt_cv_dlopen="shl_load"
5672else
5673  echo "$as_me:5683: checking for dlopen in -lsvld" >&5
5674echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5675if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  ac_check_lib_save_LIBS=$LIBS
5679LIBS="-lsvld  $LIBS"
5680cat >conftest.$ac_ext <<_ACEOF
5681#line 5691 "configure"
5682#include "confdefs.h"
5683
5684/* Override any gcc2 internal prototype to avoid an error.  */
5685#ifdef __cplusplus
5686extern "C"
5687#endif
5688/* We use char because int might match the return type of a gcc2
5689   builtin and then its argument prototype would still apply.  */
5690char dlopen ();
5691int
5692main ()
5693{
5694dlopen ();
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext conftest$ac_exeext
5700if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5701  (eval $ac_link) 2>&5
5702  ac_status=$?
5703  echo "$as_me:5713: \$? = $ac_status" >&5
5704  (exit $ac_status); } &&
5705         { ac_try='test -s conftest$ac_exeext'
5706  { (eval echo "$as_me:5716: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:5719: \$? = $ac_status" >&5
5710  (exit $ac_status); }; }; then
5711  ac_cv_lib_svld_dlopen=yes
5712else
5713  echo "$as_me: failed program was:" >&5
5714cat conftest.$ac_ext >&5
5715ac_cv_lib_svld_dlopen=no
5716fi
5717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718LIBS=$ac_check_lib_save_LIBS
5719fi
5720echo "$as_me:5730: result: $ac_cv_lib_svld_dlopen" >&5
5721echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5722if test $ac_cv_lib_svld_dlopen = yes; then
5723  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5724else
5725  echo "$as_me:5735: checking for shl_load in -ldld" >&5
5726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  ac_check_lib_save_LIBS=$LIBS
5731LIBS="-ldld  $LIBS"
5732cat >conftest.$ac_ext <<_ACEOF
5733#line 5743 "configure"
5734#include "confdefs.h"
5735
5736/* Override any gcc2 internal prototype to avoid an error.  */
5737#ifdef __cplusplus
5738extern "C"
5739#endif
5740/* We use char because int might match the return type of a gcc2
5741   builtin and then its argument prototype would still apply.  */
5742char shl_load ();
5743int
5744main ()
5745{
5746shl_load ();
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext conftest$ac_exeext
5752if { (eval echo "$as_me:5762: \"$ac_link\"") >&5
5753  (eval $ac_link) 2>&5
5754  ac_status=$?
5755  echo "$as_me:5765: \$? = $ac_status" >&5
5756  (exit $ac_status); } &&
5757         { ac_try='test -s conftest$ac_exeext'
5758  { (eval echo "$as_me:5768: \"$ac_try\"") >&5
5759  (eval $ac_try) 2>&5
5760  ac_status=$?
5761  echo "$as_me:5771: \$? = $ac_status" >&5
5762  (exit $ac_status); }; }; then
5763  ac_cv_lib_dld_shl_load=yes
5764else
5765  echo "$as_me: failed program was:" >&5
5766cat conftest.$ac_ext >&5
5767ac_cv_lib_dld_shl_load=no
5768fi
5769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5770LIBS=$ac_check_lib_save_LIBS
5771fi
5772echo "$as_me:5782: result: $ac_cv_lib_dld_shl_load" >&5
5773echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5774if test $ac_cv_lib_dld_shl_load = yes; then
5775  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5776fi
5777
5778fi
5779
5780fi
5781
5782fi
5783
5784fi
5785
5786    ;;
5787  esac
5788
5789  if test "x$lt_cv_dlopen" != xno; then
5790    enable_dlopen=yes
5791  else
5792    enable_dlopen=no
5793  fi
5794
5795  case $lt_cv_dlopen in
5796  dlopen)
5797    save_CPPFLAGS="$CPPFLAGS"
5798        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5799
5800    save_LDFLAGS="$LDFLAGS"
5801    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5802
5803    save_LIBS="$LIBS"
5804    LIBS="$lt_cv_dlopen_libs $LIBS"
5805
5806    echo "$as_me:5816: checking whether a program can dlopen itself" >&5
5807echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5808if test "${lt_cv_dlopen_self+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811          if test "$cross_compiling" = yes; then :
5812  lt_cv_dlopen_self=cross
5813else
5814    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5815  lt_status=$lt_dlunknown
5816  cat > conftest.$ac_ext <<EOF
5817#line 5827 "configure"
5818#include "confdefs.h"
5819
5820#if HAVE_DLFCN_H
5821#include <dlfcn.h>
5822#endif
5823
5824#include <stdio.h>
5825
5826#ifdef RTLD_GLOBAL
5827#  define LT_DLGLOBAL           RTLD_GLOBAL
5828#else
5829#  ifdef DL_GLOBAL
5830#    define LT_DLGLOBAL         DL_GLOBAL
5831#  else
5832#    define LT_DLGLOBAL         0
5833#  endif
5834#endif
5835
5836/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5837   find out it does not work in some platform. */
5838#ifndef LT_DLLAZY_OR_NOW
5839#  ifdef RTLD_LAZY
5840#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5841#  else
5842#    ifdef DL_LAZY
5843#      define LT_DLLAZY_OR_NOW          DL_LAZY
5844#    else
5845#      ifdef RTLD_NOW
5846#        define LT_DLLAZY_OR_NOW        RTLD_NOW
5847#      else
5848#        ifdef DL_NOW
5849#          define LT_DLLAZY_OR_NOW      DL_NOW
5850#        else
5851#          define LT_DLLAZY_OR_NOW      0
5852#        endif
5853#      endif
5854#    endif
5855#  endif
5856#endif
5857
5858#ifdef __cplusplus
5859extern "C" void exit (int);
5860#endif
5861
5862void fnord() { int i=42;}
5863int main ()
5864{
5865  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5866  int status = $lt_dlunknown;
5867
5868  if (self)
5869    {
5870      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5871      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5872      /* dlclose (self); */
5873    }
5874
5875    exit (status);
5876}
5877EOF
5878  if { (eval echo "$as_me:5888: \"$ac_link\"") >&5
5879  (eval $ac_link) 2>&5
5880  ac_status=$?
5881  echo "$as_me:5891: \$? = $ac_status" >&5
5882  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5883    (./conftest; exit; ) 2>/dev/null
5884    lt_status=$?
5885    case x$lt_status in
5886      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5887      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5888      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5889    esac
5890  else :
5891    # compilation failed
5892    lt_cv_dlopen_self=no
5893  fi
5894fi
5895rm -fr conftest*
5896
5897fi
5898echo "$as_me:5908: result: $lt_cv_dlopen_self" >&5
5899echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5900
5901    if test "x$lt_cv_dlopen_self" = xyes; then
5902      LDFLAGS="$LDFLAGS $link_static_flag"
5903      echo "$as_me:5913: checking whether a statically linked program can dlopen itself" >&5
5904echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5905if test "${lt_cv_dlopen_self_static+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908          if test "$cross_compiling" = yes; then :
5909  lt_cv_dlopen_self_static=cross
5910else
5911    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5912  lt_status=$lt_dlunknown
5913  cat > conftest.$ac_ext <<EOF
5914#line 5924 "configure"
5915#include "confdefs.h"
5916
5917#if HAVE_DLFCN_H
5918#include <dlfcn.h>
5919#endif
5920
5921#include <stdio.h>
5922
5923#ifdef RTLD_GLOBAL
5924#  define LT_DLGLOBAL           RTLD_GLOBAL
5925#else
5926#  ifdef DL_GLOBAL
5927#    define LT_DLGLOBAL         DL_GLOBAL
5928#  else
5929#    define LT_DLGLOBAL         0
5930#  endif
5931#endif
5932
5933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5934   find out it does not work in some platform. */
5935#ifndef LT_DLLAZY_OR_NOW
5936#  ifdef RTLD_LAZY
5937#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5938#  else
5939#    ifdef DL_LAZY
5940#      define LT_DLLAZY_OR_NOW          DL_LAZY
5941#    else
5942#      ifdef RTLD_NOW
5943#        define LT_DLLAZY_OR_NOW        RTLD_NOW
5944#      else
5945#        ifdef DL_NOW
5946#          define LT_DLLAZY_OR_NOW      DL_NOW
5947#        else
5948#          define LT_DLLAZY_OR_NOW      0
5949#        endif
5950#      endif
5951#    endif
5952#  endif
5953#endif
5954
5955#ifdef __cplusplus
5956extern "C" void exit (int);
5957#endif
5958
5959void fnord() { int i=42;}
5960int main ()
5961{
5962  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5963  int status = $lt_dlunknown;
5964
5965  if (self)
5966    {
5967      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5968      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5969      /* dlclose (self); */
5970    }
5971
5972    exit (status);
5973}
5974EOF
5975  if { (eval echo "$as_me:5985: \"$ac_link\"") >&5
5976  (eval $ac_link) 2>&5
5977  ac_status=$?
5978  echo "$as_me:5988: \$? = $ac_status" >&5
5979  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5980    (./conftest; exit; ) 2>/dev/null
5981    lt_status=$?
5982    case x$lt_status in
5983      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5984      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5985      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5986    esac
5987  else :
5988    # compilation failed
5989    lt_cv_dlopen_self_static=no
5990  fi
5991fi
5992rm -fr conftest*
5993
5994fi
5995echo "$as_me:6005: result: $lt_cv_dlopen_self_static" >&5
5996echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5997    fi
5998
5999    CPPFLAGS="$save_CPPFLAGS"
6000    LDFLAGS="$save_LDFLAGS"
6001    LIBS="$save_LIBS"
6002    ;;
6003  esac
6004
6005  case $lt_cv_dlopen_self in
6006  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6007  *) enable_dlopen_self=unknown ;;
6008  esac
6009
6010  case $lt_cv_dlopen_self_static in
6011  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6012  *) enable_dlopen_self_static=unknown ;;
6013  esac
6014fi
6015
6016## FIXME: this should be a separate macro
6017##
6018if test "$enable_shared" = yes && test "$GCC" = yes; then
6019  case $archive_cmds in
6020  *'~'*)
6021    # FIXME: we may have to deal with multi-command sequences.
6022    ;;
6023  '$CC '*)
6024    # Test whether the compiler implicitly links with -lc since on some
6025    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6026    # to ld, don't add -lc before -lgcc.
6027    echo "$as_me:6037: checking whether -lc should be explicitly linked in" >&5
6028echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6029    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  $rm conftest*
6033    echo 'static int dummy;' > conftest.$ac_ext
6034
6035    if { (eval echo "$as_me:6045: \"$ac_compile\"") >&5
6036  (eval $ac_compile) 2>&5
6037  ac_status=$?
6038  echo "$as_me:6048: \$? = $ac_status" >&5
6039  (exit $ac_status); }; then
6040      soname=conftest
6041      lib=conftest
6042      libobjs=conftest.$ac_objext
6043      deplibs=
6044      wl=$lt_cv_prog_cc_wl
6045      compiler_flags=-v
6046      linker_flags=-v
6047      verstring=
6048      output_objdir=.
6049      libname=conftest
6050      save_allow_undefined_flag=$allow_undefined_flag
6051      allow_undefined_flag=
6052      if { (eval echo "$as_me:6062: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6053  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6054  ac_status=$?
6055  echo "$as_me:6065: \$? = $ac_status" >&5
6056  (exit $ac_status); }
6057      then
6058        lt_cv_archive_cmds_need_lc=no
6059      else
6060        lt_cv_archive_cmds_need_lc=yes
6061      fi
6062      allow_undefined_flag=$save_allow_undefined_flag
6063    else
6064      cat conftest.err 1>&5
6065    fi
6066fi
6067
6068    echo "$as_me:6078: result: $lt_cv_archive_cmds_need_lc" >&5
6069echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6070    ;;
6071  esac
6072fi
6073need_lc=${lt_cv_archive_cmds_need_lc-yes}
6074##
6075## END FIXME
6076
6077## FIXME: this should be a separate macro
6078##
6079# The second clause should only fire when bootstrapping the
6080# libtool distribution, otherwise you forgot to ship ltmain.sh
6081# with your package, and you will get complaints that there are
6082# no rules to generate ltmain.sh.
6083if test -f "$ltmain"; then
6084  :
6085else
6086  # If there is no Makefile yet, we rely on a make rule to execute
6087  # `config.status --recheck' to rerun these tests and create the
6088  # libtool script then.
6089  test -f Makefile && make "$ltmain"
6090fi
6091
6092if test -f "$ltmain"; then
6093  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6094  $rm -f "${ofile}T"
6095
6096  echo creating $ofile
6097
6098  # Now quote all the things that may contain metacharacters while being
6099  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6100  # variables and quote the copies for generation of the libtool script.
6101  for var in echo old_CC old_CFLAGS \
6102    AR AR_FLAGS CC LD LN_S NM SHELL \
6103    reload_flag reload_cmds wl \
6104    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6105    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6106    library_names_spec soname_spec \
6107    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6108    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6109    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6110    old_striplib striplib file_magic_cmd export_symbols_cmds \
6111    deplibs_check_method allow_undefined_flag no_undefined_flag \
6112    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6113    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6114    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6115    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6116
6117    case $var in
6118    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6119    old_postinstall_cmds | old_postuninstall_cmds | \
6120    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6121    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6122    postinstall_cmds | postuninstall_cmds | \
6123    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6124      # Double-quote double-evaled strings.
6125      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6126      ;;
6127    *)
6128      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6129      ;;
6130    esac
6131  done
6132
6133  cat <<__EOF__ > "${ofile}T"
6134#! $SHELL
6135
6136# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6137# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6138# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6139#
6140# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6141# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6142#
6143# This program is free software; you can redistribute it and/or modify
6144# it under the terms of the GNU General Public License as published by
6145# the Free Software Foundation; either version 2 of the License, or
6146# (at your option) any later version.
6147#
6148# This program is distributed in the hope that it will be useful, but
6149# WITHOUT ANY WARRANTY; without even the implied warranty of
6150# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6151# General Public License for more details.
6152#
6153# You should have received a copy of the GNU General Public License
6154# along with this program; if not, write to the Free Software
6155# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6156#
6157# As a special exception to the GNU General Public License, if you
6158# distribute this file as part of a program that contains a
6159# configuration script generated by Autoconf, you may include it under
6160# the same distribution terms that you use for the rest of that program.
6161
6162# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6163Xsed="sed -e s/^X//"
6164
6165# The HP-UX ksh and POSIX shell print the target directory to stdout
6166# if CDPATH is set.
6167if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6168
6169# ### BEGIN LIBTOOL CONFIG
6170
6171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6172
6173# Shell to use when invoking shell scripts.
6174SHELL=$lt_SHELL
6175
6176# Whether or not to build shared libraries.
6177build_libtool_libs=$enable_shared
6178
6179# Whether or not to add -lc for building shared libraries.
6180build_libtool_need_lc=$need_lc
6181
6182# Whether or not to build static libraries.
6183build_old_libs=$enable_static
6184
6185# Whether or not to optimize for fast installation.
6186fast_install=$enable_fast_install
6187
6188# The host system.
6189host_alias=$host_alias
6190host=$host
6191
6192# An echo program that does not interpret backslashes.
6193echo=$lt_echo
6194
6195# The archiver.
6196AR=$lt_AR
6197AR_FLAGS=$lt_AR_FLAGS
6198
6199# The default C compiler.
6200CC=$lt_CC
6201
6202# Is the compiler the GNU C compiler?
6203with_gcc=$GCC
6204
6205# The linker used to build libraries.
6206LD=$lt_LD
6207
6208# Whether we need hard or soft links.
6209LN_S=$lt_LN_S
6210
6211# A BSD-compatible nm program.
6212NM=$lt_NM
6213
6214# A symbol stripping program
6215STRIP=$STRIP
6216
6217# Used to examine libraries when file_magic_cmd begins "file"
6218MAGIC_CMD=$MAGIC_CMD
6219
6220# Used on cygwin: DLL creation program.
6221DLLTOOL="$DLLTOOL"
6222
6223# Used on cygwin: object dumper.
6224OBJDUMP="$OBJDUMP"
6225
6226# Used on cygwin: assembler.
6227AS="$AS"
6228
6229# The name of the directory that contains temporary libtool files.
6230objdir=$objdir
6231
6232# How to create reloadable object files.
6233reload_flag=$lt_reload_flag
6234reload_cmds=$lt_reload_cmds
6235
6236# How to pass a linker flag through the compiler.
6237wl=$lt_wl
6238
6239# Object file suffix (normally "o").
6240objext="$ac_objext"
6241
6242# Old archive suffix (normally "a").
6243libext="$libext"
6244
6245# Executable file suffix (normally "").
6246exeext="$exeext"
6247
6248# Additional compiler flags for building library objects.
6249pic_flag=$lt_pic_flag
6250pic_mode=$pic_mode
6251
6252# Does compiler simultaneously support -c and -o options?
6253compiler_c_o=$lt_compiler_c_o
6254
6255# Can we write directly to a .lo ?
6256compiler_o_lo=$lt_compiler_o_lo
6257
6258# Must we lock files when doing compilation ?
6259need_locks=$lt_need_locks
6260
6261# Do we need the lib prefix for modules?
6262need_lib_prefix=$need_lib_prefix
6263
6264# Do we need a version for libraries?
6265need_version=$need_version
6266
6267# Whether dlopen is supported.
6268dlopen_support=$enable_dlopen
6269
6270# Whether dlopen of programs is supported.
6271dlopen_self=$enable_dlopen_self
6272
6273# Whether dlopen of statically linked programs is supported.
6274dlopen_self_static=$enable_dlopen_self_static
6275
6276# Compiler flag to prevent dynamic linking.
6277link_static_flag=$lt_link_static_flag
6278
6279# Compiler flag to turn off builtin functions.
6280no_builtin_flag=$lt_no_builtin_flag
6281
6282# Compiler flag to allow reflexive dlopens.
6283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6284
6285# Compiler flag to generate shared objects directly from archives.
6286whole_archive_flag_spec=$lt_whole_archive_flag_spec
6287
6288# Compiler flag to generate thread-safe objects.
6289thread_safe_flag_spec=$lt_thread_safe_flag_spec
6290
6291# Library versioning type.
6292version_type=$version_type
6293
6294# Format of library name prefix.
6295libname_spec=$lt_libname_spec
6296
6297# List of archive names.  First name is the real one, the rest are links.
6298# The last name is the one that the linker finds with -lNAME.
6299library_names_spec=$lt_library_names_spec
6300
6301# The coded name of the library, if different from the real name.
6302soname_spec=$lt_soname_spec
6303
6304# Commands used to build and install an old-style archive.
6305RANLIB=$lt_RANLIB
6306old_archive_cmds=$lt_old_archive_cmds
6307old_postinstall_cmds=$lt_old_postinstall_cmds
6308old_postuninstall_cmds=$lt_old_postuninstall_cmds
6309
6310# Create an old-style archive from a shared archive.
6311old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6312
6313# Create a temporary old-style archive to link instead of a shared archive.
6314old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6315
6316# Commands used to build and install a shared archive.
6317archive_cmds=$lt_archive_cmds
6318archive_expsym_cmds=$lt_archive_expsym_cmds
6319postinstall_cmds=$lt_postinstall_cmds
6320postuninstall_cmds=$lt_postuninstall_cmds
6321
6322# Commands to strip libraries.
6323old_striplib=$lt_old_striplib
6324striplib=$lt_striplib
6325
6326# Method to check whether dependent libraries are shared objects.
6327deplibs_check_method=$lt_deplibs_check_method
6328
6329# Command to use when deplibs_check_method == file_magic.
6330file_magic_cmd=$lt_file_magic_cmd
6331
6332# Flag that allows shared libraries with undefined symbols to be built.
6333allow_undefined_flag=$lt_allow_undefined_flag
6334
6335# Flag that forces no undefined symbols.
6336no_undefined_flag=$lt_no_undefined_flag
6337
6338# Commands used to finish a libtool library installation in a directory.
6339finish_cmds=$lt_finish_cmds
6340
6341# Same as above, but a single script fragment to be evaled but not shown.
6342finish_eval=$lt_finish_eval
6343
6344# Take the output of nm and produce a listing of raw symbols and C names.
6345global_symbol_pipe=$lt_global_symbol_pipe
6346
6347# Transform the output of nm in a proper C declaration
6348global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6349
6350# This is the shared library runtime path variable.
6351runpath_var=$runpath_var
6352
6353# This is the shared library path variable.
6354shlibpath_var=$shlibpath_var
6355
6356# Is shlibpath searched before the hard-coded library search path?
6357shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6358
6359# How to hardcode a shared library path into an executable.
6360hardcode_action=$hardcode_action
6361
6362# Whether we should hardcode library paths into libraries.
6363hardcode_into_libs=$hardcode_into_libs
6364
6365# Flag to hardcode \$libdir into a binary during linking.
6366# This must work even if \$libdir does not exist.
6367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6368
6369# Whether we need a single -rpath flag with a separated argument.
6370hardcode_libdir_separator=$lt_hardcode_libdir_separator
6371
6372# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6373# resulting binary.
6374hardcode_direct=$hardcode_direct
6375
6376# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6377# resulting binary.
6378hardcode_minus_L=$hardcode_minus_L
6379
6380# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6381# the resulting binary.
6382hardcode_shlibpath_var=$hardcode_shlibpath_var
6383
6384# Variables whose values should be saved in libtool wrapper scripts and
6385# restored at relink time.
6386variables_saved_for_relink="$variables_saved_for_relink"
6387
6388# Whether libtool must link a program against all its dependency libraries.
6389link_all_deplibs=$link_all_deplibs
6390
6391# Compile-time system search path for libraries
6392sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6393
6394# Run-time system search path for libraries
6395sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6396
6397# Fix the shell variable \$srcfile for the compiler.
6398fix_srcfile_path="$fix_srcfile_path"
6399
6400# Set to yes if exported symbols are required.
6401always_export_symbols=$always_export_symbols
6402
6403# The commands to list exported symbols.
6404export_symbols_cmds=$lt_export_symbols_cmds
6405
6406# The commands to extract the exported symbol list from a shared archive.
6407extract_expsyms_cmds=$lt_extract_expsyms_cmds
6408
6409# Symbols that should not be listed in the preloaded symbols.
6410exclude_expsyms=$lt_exclude_expsyms
6411
6412# Symbols that must always be exported.
6413include_expsyms=$lt_include_expsyms
6414
6415# ### END LIBTOOL CONFIG
6416
6417__EOF__
6418
6419  case $host_os in
6420  aix3*)
6421    cat <<\EOF >> "${ofile}T"
6422
6423# AIX sometimes has problems with the GCC collect2 program.  For some
6424# reason, if we set the COLLECT_NAMES environment variable, the problems
6425# vanish in a puff of smoke.
6426if test "X${COLLECT_NAMES+set}" != Xset; then
6427  COLLECT_NAMES=
6428  export COLLECT_NAMES
6429fi
6430EOF
6431    ;;
6432  esac
6433
6434  case $host_os in
6435  cygwin* | mingw* | pw32* | os2*)
6436    cat <<'EOF' >> "${ofile}T"
6437      # This is a source program that is used to create dlls on Windows
6438      # Don't remove nor modify the starting and closing comments
6439# /* ltdll.c starts here */
6440# #define WIN32_LEAN_AND_MEAN
6441# #include <windows.h>
6442# #undef WIN32_LEAN_AND_MEAN
6443# #include <stdio.h>
6444#
6445# #ifndef __CYGWIN__
6446# #  ifdef __CYGWIN32__
6447# #    define __CYGWIN__ __CYGWIN32__
6448# #  endif
6449# #endif
6450#
6451# #ifdef __cplusplus
6452# extern "C" {
6453# #endif
6454# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6455# #ifdef __cplusplus
6456# }
6457# #endif
6458#
6459# #ifdef __CYGWIN__
6460# #include <cygwin/cygwin_dll.h>
6461# DECLARE_CYGWIN_DLL( DllMain );
6462# #endif
6463# HINSTANCE __hDllInstance_base;
6464#
6465# BOOL APIENTRY
6466# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6467# {
6468#   __hDllInstance_base = hInst;
6469#   return TRUE;
6470# }
6471# /* ltdll.c ends here */
6472        # This is a source program that is used to create import libraries
6473        # on Windows for dlls which lack them. Don't remove nor modify the
6474        # starting and closing comments
6475# /* impgen.c starts here */
6476# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6477#
6478#  This file is part of GNU libtool.
6479#
6480#  This program is free software; you can redistribute it and/or modify
6481#  it under the terms of the GNU General Public License as published by
6482#  the Free Software Foundation; either version 2 of the License, or
6483#  (at your option) any later version.
6484#
6485#  This program is distributed in the hope that it will be useful,
6486#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6487#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6488#  GNU General Public License for more details.
6489#
6490#  You should have received a copy of the GNU General Public License
6491#  along with this program; if not, write to the Free Software
6492#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6493#  */
6494#
6495# #include <stdio.h>            /* for printf() */
6496# #include <unistd.h>           /* for open(), lseek(), read() */
6497# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6498# #include <string.h>           /* for strdup() */
6499#
6500# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6501# #ifndef O_BINARY
6502# #define O_BINARY 0
6503# #endif
6504#
6505# static unsigned int
6506# pe_get16 (fd, offset)
6507#      int fd;
6508#      int offset;
6509# {
6510#   unsigned char b[2];
6511#   lseek (fd, offset, SEEK_SET);
6512#   read (fd, b, 2);
6513#   return b[0] + (b[1]<<8);
6514# }
6515#
6516# static unsigned int
6517# pe_get32 (fd, offset)
6518#     int fd;
6519#     int offset;
6520# {
6521#   unsigned char b[4];
6522#   lseek (fd, offset, SEEK_SET);
6523#   read (fd, b, 4);
6524#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6525# }
6526#
6527# static unsigned int
6528# pe_as32 (ptr)
6529#      void *ptr;
6530# {
6531#   unsigned char *b = ptr;
6532#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6533# }
6534#
6535# int
6536# main (argc, argv)
6537#     int argc;
6538#     char *argv[];
6539# {
6540#     int dll;
6541#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6542#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6543#     unsigned long name_rvas, nexp;
6544#     unsigned char *expdata, *erva;
6545#     char *filename, *dll_name;
6546#
6547#     filename = argv[1];
6548#
6549#     dll = open(filename, O_RDONLY|O_BINARY);
6550#     if (dll < 1)
6551#       return 1;
6552#
6553#     dll_name = filename;
6554#
6555#     for (i=0; filename[i]; i++)
6556#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6557#           dll_name = filename + i +1;
6558#
6559#     pe_header_offset = pe_get32 (dll, 0x3c);
6560#     opthdr_ofs = pe_header_offset + 4 + 20;
6561#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6562#
6563#     if (num_entries < 1) /* no exports */
6564#       return 1;
6565#
6566#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6567#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6568#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6569#     secptr = (pe_header_offset + 4 + 20 +
6570#             pe_get16 (dll, pe_header_offset + 4 + 16));
6571#
6572#     expptr = 0;
6573#     for (i = 0; i < nsections; i++)
6574#     {
6575#       char sname[8];
6576#       unsigned long secptr1 = secptr + 40 * i;
6577#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6578#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6579#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6580#       lseek(dll, secptr1, SEEK_SET);
6581#       read(dll, sname, 8);
6582#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6583#       {
6584#           expptr = fptr + (export_rva - vaddr);
6585#           if (export_rva + export_size > vaddr + vsize)
6586#               export_size = vsize - (export_rva - vaddr);
6587#           break;
6588#       }
6589#     }
6590#
6591#     expdata = (unsigned char*)malloc(export_size);
6592#     lseek (dll, expptr, SEEK_SET);
6593#     read (dll, expdata, export_size);
6594#     erva = expdata - export_rva;
6595#
6596#     nexp = pe_as32 (expdata+24);
6597#     name_rvas = pe_as32 (expdata+32);
6598#
6599#     printf ("EXPORTS\n");
6600#     for (i = 0; i<nexp; i++)
6601#     {
6602#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6603#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6604#     }
6605#
6606#     return 0;
6607# }
6608# /* impgen.c ends here */
6609
6610EOF
6611    ;;
6612  esac
6613
6614  # We use sed instead of cat because bash on DJGPP gets confused if
6615  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6616  # text mode, it properly converts lines to CR/LF.  This bash problem
6617  # is reportedly fixed, but why not run on old versions too?
6618  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6619
6620  mv -f "${ofile}T" "$ofile" || \
6621    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6622  chmod +x "$ofile"
6623fi
6624##
6625## END FIXME
6626
6627# This can be used to rebuild libtool when needed
6628LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6629
6630# Always use our own libtool.
6631LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6632
6633# Prevent multiple expansion
6634
6635ac_config_files="$ac_config_files Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in"
6636ac_config_commands="$ac_config_commands default"
6637cat >confcache <<\_ACEOF
6638# This file is a shell script that caches the results of configure
6639# tests run on this system so they can be shared between configure
6640# scripts and configure runs, see configure's option --config-cache.
6641# It is not useful on other systems.  If it contains results you don't
6642# want to keep, you may remove or edit it.
6643#
6644# config.status only pays attention to the cache file if you give it
6645# the --recheck option to rerun configure.
6646#
6647# `ac_cv_env_foo' variables (set or unset) will be overriden when
6648# loading this file, other *unset* `ac_cv_foo' will be assigned the
6649# following values.
6650
6651_ACEOF
6652
6653# The following way of writing the cache mishandles newlines in values,
6654# but we know of no workaround that is simple, portable, and efficient.
6655# So, don't put newlines in cache variables' values.
6656# Ultrix sh set writes to stderr and can't be redirected directly,
6657# and sets the high bit in the cache file unless we assign to the vars.
6658{
6659  (set) 2>&1 |
6660    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6661    *ac_space=\ *)
6662      # `set' does not quote correctly, so add quotes (double-quote
6663      # substitution turns \\\\ into \\, and sed turns \\ into \).
6664      sed -n \
6665        "s/'/'\\\\''/g;
6666          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6667      ;;
6668    *)
6669      # `set' quotes correctly as required by POSIX, so do not add quotes.
6670      sed -n \
6671        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6672      ;;
6673    esac;
6674} |
6675  sed '
6676     t clear
6677     : clear
6678     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6679     t end
6680     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6681     : end' >>confcache
6682if cmp -s $cache_file confcache; then :; else
6683  if test -w $cache_file; then
6684    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6685    cat confcache >$cache_file
6686  else
6687    echo "not updating unwritable cache $cache_file"
6688  fi
6689fi
6690rm -f confcache
6691
6692test "x$prefix" = xNONE && prefix=$ac_default_prefix
6693# Let make expand exec_prefix.
6694test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6695
6696# VPATH may cause trouble with some makes, so we remove $(srcdir),
6697# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6698# trailing colons and then remove the whole line if VPATH becomes empty
6699# (actually we leave an empty line to preserve line numbers).
6700if test "x$srcdir" = x.; then
6701  ac_vpsub='/^[         ]*VPATH[        ]*=/{
6702s/:*\$(srcdir):*/:/;
6703s/:*\${srcdir}:*/:/;
6704s/:*@srcdir@:*/:/;
6705s/^\([^=]*=[    ]*\):*/\1/;
6706s/:*$//;
6707s/^[^=]*=[      ]*$//;
6708}'
6709fi
6710
6711DEFS=-DHAVE_CONFIG_H
6712
6713: ${CONFIG_STATUS=./config.status}
6714ac_clean_files_save=$ac_clean_files
6715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6716{ echo "$as_me:6726: creating $CONFIG_STATUS" >&5
6717echo "$as_me: creating $CONFIG_STATUS" >&6;}
6718cat >$CONFIG_STATUS <<_ACEOF
6719#! $SHELL
6720# Generated automatically by configure.
6721# Run this file to recreate the current configuration.
6722# Compiler output produced by configure, useful for debugging
6723# configure, is in config.log if it exists.
6724
6725debug=false
6726SHELL=\${CONFIG_SHELL-$SHELL}
6727ac_cs_invocation="\$0 \$@"
6728
6729_ACEOF
6730
6731cat >>$CONFIG_STATUS <<\_ACEOF
6732# Be Bourne compatible
6733if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6734  emulate sh
6735  NULLCMD=:
6736elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6737  set -o posix
6738fi
6739
6740# Name of the executable.
6741as_me=`echo "$0" |sed 's,.*[\\/],,'`
6742
6743if expr a : '\(a\)' >/dev/null 2>&1; then
6744  as_expr=expr
6745else
6746  as_expr=false
6747fi
6748
6749rm -f conf$$ conf$$.exe conf$$.file
6750echo >conf$$.file
6751if ln -s conf$$.file conf$$ 2>/dev/null; then
6752  # We could just check for DJGPP; but this test a) works b) is more generic
6753  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6754  if test -f conf$$.exe; then
6755    # Don't use ln at all; we don't have any links
6756    as_ln_s='cp -p'
6757  else
6758    as_ln_s='ln -s'
6759  fi
6760elif ln conf$$.file conf$$ 2>/dev/null; then
6761  as_ln_s=ln
6762else
6763  as_ln_s='cp -p'
6764fi
6765rm -f conf$$ conf$$.exe conf$$.file
6766
6767as_executable_p="test -f"
6768
6769# Support unset when possible.
6770if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6771  as_unset=unset
6772else
6773  as_unset=false
6774fi
6775
6776# NLS nuisances.
6777$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6778$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6779$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6780$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6781$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6782$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6783$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6784$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6785
6786# IFS
6787# We need space, tab and new line, in precisely that order.
6788as_nl='
6789'
6790IFS="   $as_nl"
6791
6792# CDPATH.
6793$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6794
6795exec 6>&1
6796
6797_ACEOF
6798
6799# Files that config.status was made for.
6800if test -n "$ac_config_files"; then
6801  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6802fi
6803
6804if test -n "$ac_config_headers"; then
6805  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6806fi
6807
6808if test -n "$ac_config_links"; then
6809  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6810fi
6811
6812if test -n "$ac_config_commands"; then
6813  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6814fi
6815
6816cat >>$CONFIG_STATUS <<\EOF
6817
6818ac_cs_usage="\
6819\`$as_me' instantiates files from templates according to the
6820current configuration.
6821
6822Usage: $0 [OPTIONS] [FILE]...
6823
6824  -h, --help       print this help, then exit
6825  -V, --version    print version number, then exit
6826  -d, --debug      don't remove temporary files
6827      --recheck    update $as_me by reconfiguring in the same conditions
6828  --file=FILE[:TEMPLATE]
6829                   instantiate the configuration file FILE
6830  --header=FILE[:TEMPLATE]
6831                   instantiate the configuration header FILE
6832
6833Configuration files:
6834$config_files
6835
6836Configuration headers:
6837$config_headers
6838
6839Configuration commands:
6840$config_commands
6841
6842Report bugs to <bug-autoconf@gnu.org>."
6843EOF
6844
6845cat >>$CONFIG_STATUS <<EOF
6846ac_cs_version="\\
6847config.status
6848configured by $0, generated by GNU Autoconf 2.50,
6849  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6850
6851Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6852Free Software Foundation, Inc.
6853This config.status script is free software; the Free Software Foundation
6854gives unlimited permission to copy, distribute and modify it."
6855srcdir=$srcdir
6856INSTALL="$INSTALL"
6857EOF
6858
6859cat >>$CONFIG_STATUS <<\EOF
6860# If no file are specified by the user, then we need to provide default
6861# value.  By we need to know if files were specified by the user.
6862ac_need_defaults=:
6863while test $# != 0
6864do
6865  case $1 in
6866  --*=*)
6867    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6868    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6869    shift
6870    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6871    shift
6872    ;;
6873  -*);;
6874  *) # This is not an option, so the user has probably given explicit
6875     # arguments.
6876     ac_need_defaults=false;;
6877  esac
6878
6879  case $1 in
6880  # Handling of the options.
6881EOF
6882cat >>$CONFIG_STATUS <<EOF
6883  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6884    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6885    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6886EOF
6887cat >>$CONFIG_STATUS <<\EOF
6888  --version | --vers* | -V )
6889    echo "$ac_cs_version"; exit 0 ;;
6890  --he | --h)
6891    # Conflict between --help and --header
6892    { { echo "$as_me:6902: error: ambiguous option: $1
6893Try \`$0 --help' for more information." >&5
6894echo "$as_me: error: ambiguous option: $1
6895Try \`$0 --help' for more information." >&2;}
6896   { (exit 1); exit 1; }; };;
6897  --help | --hel | -h )
6898    echo "$ac_cs_usage"; exit 0 ;;
6899  --debug | --d* | -d )
6900    debug=: ;;
6901  --file | --fil | --fi | --f )
6902    shift
6903    CONFIG_FILES="$CONFIG_FILES $1"
6904    ac_need_defaults=false;;
6905  --header | --heade | --head | --hea )
6906    shift
6907    CONFIG_HEADERS="$CONFIG_HEADERS $1"
6908    ac_need_defaults=false;;
6909
6910  # Handling of arguments.
6911  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6912  'pcre.h' ) CONFIG_FILES="$CONFIG_FILES pcre.h:pcre.in" ;;
6913  'pcre-config' ) CONFIG_FILES="$CONFIG_FILES pcre-config:pcre-config.in" ;;
6914  'RunTest' ) CONFIG_FILES="$CONFIG_FILES RunTest:RunTest.in" ;;
6915  'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6916  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6917
6918  # This is an error.
6919  -*) { { echo "$as_me:6929: error: unrecognized option: $1
6920Try \`$0 --help' for more information." >&5
6921echo "$as_me: error: unrecognized option: $1
6922Try \`$0 --help' for more information." >&2;}
6923   { (exit 1); exit 1; }; } ;;
6924  *) { { echo "$as_me:6934: error: invalid argument: $1" >&5
6925echo "$as_me: error: invalid argument: $1" >&2;}
6926   { (exit 1); exit 1; }; };;
6927  esac
6928  shift
6929done
6930
6931exec 5>>config.log
6932cat >&5 << _ACEOF
6933
6934## ----------------------- ##
6935## Running config.status.  ##
6936## ----------------------- ##
6937
6938This file was extended by $as_me 2.50, executed with
6939  > $ac_cs_invocation
6940on `(hostname || uname -n) 2>/dev/null | sed 1q`
6941
6942_ACEOF
6943EOF
6944
6945cat >>$CONFIG_STATUS <<\EOF
6946# If the user did not use the arguments to specify the items to instantiate,
6947# then the envvar interface is used.  Set only those that are not.
6948# We use the long form for the default assignment because of an extremely
6949# bizarre bug on SunOS 4.1.3.
6950if $ac_need_defaults; then
6951  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6952  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6953  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6954fi
6955
6956# Create a temporary directory, and hook for its removal unless debugging.
6957$debug ||
6958{
6959  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6960  trap '{ (exit $?); exit $?; }' 1 2 13 15
6961}
6962
6963# Create a (secure) tmp directory for tmp files.
6964: ${TMPDIR=/tmp}
6965{
6966  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6967  test -n "$tmp" && test -d "$tmp"
6968}  ||
6969{
6970  tmp=$TMPDIR/cs$$-$RANDOM
6971  (umask 077 && mkdir $tmp)
6972} ||
6973{
6974   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6975   { (exit 1); exit 1; }
6976}
6977
6978EOF
6979
6980cat >>$CONFIG_STATUS <<EOF
6981
6982#
6983# CONFIG_FILES section.
6984#
6985
6986# No need to generate the scripts if there are no CONFIG_FILES.
6987# This happens for instance when ./config.status config.h
6988if test -n "\$CONFIG_FILES"; then
6989  # Protect against being on the right side of a sed subst in config.status.
6990  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6991   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6992s,@SHELL@,$SHELL,;t t
6993s,@exec_prefix@,$exec_prefix,;t t
6994s,@prefix@,$prefix,;t t
6995s,@program_transform_name@,$program_transform_name,;t t
6996s,@bindir@,$bindir,;t t
6997s,@sbindir@,$sbindir,;t t
6998s,@libexecdir@,$libexecdir,;t t
6999s,@datadir@,$datadir,;t t
7000s,@sysconfdir@,$sysconfdir,;t t
7001s,@sharedstatedir@,$sharedstatedir,;t t
7002s,@localstatedir@,$localstatedir,;t t
7003s,@libdir@,$libdir,;t t
7004s,@includedir@,$includedir,;t t
7005s,@oldincludedir@,$oldincludedir,;t t
7006s,@infodir@,$infodir,;t t
7007s,@mandir@,$mandir,;t t
7008s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7009s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7010s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7011s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7012s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7013s,@ECHO_C@,$ECHO_C,;t t
7014s,@ECHO_N@,$ECHO_N,;t t
7015s,@ECHO_T@,$ECHO_T,;t t
7016s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7017s,@DEFS@,$DEFS,;t t
7018s,@LIBS@,$LIBS,;t t
7019s,@CC@,$CC,;t t
7020s,@CFLAGS@,$CFLAGS,;t t
7021s,@LDFLAGS@,$LDFLAGS,;t t
7022s,@CPPFLAGS@,$CPPFLAGS,;t t
7023s,@ac_ct_CC@,$ac_ct_CC,;t t
7024s,@EXEEXT@,$EXEEXT,;t t
7025s,@OBJEXT@,$OBJEXT,;t t
7026s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7027s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7028s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7029s,@RANLIB@,$RANLIB,;t t
7030s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7031s,@CPP@,$CPP,;t t
7032s,@build@,$build,;t t
7033s,@build_cpu@,$build_cpu,;t t
7034s,@build_vendor@,$build_vendor,;t t
7035s,@build_os@,$build_os,;t t
7036s,@host@,$host,;t t
7037s,@host_cpu@,$host_cpu,;t t
7038s,@host_vendor@,$host_vendor,;t t
7039s,@host_os@,$host_os,;t t
7040s,@LN_S@,$LN_S,;t t
7041s,@ECHO@,$ECHO,;t t
7042s,@STRIP@,$STRIP,;t t
7043s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7044s,@LIBTOOL@,$LIBTOOL,;t t
7045s,@HAVE_MEMMOVE@,$HAVE_MEMMOVE,;t t
7046s,@HAVE_STRERROR@,$HAVE_STRERROR,;t t
7047s,@NEWLINE@,$NEWLINE,;t t
7048s,@UTF8@,$UTF8,;t t
7049s,@PCRE_MAJOR@,$PCRE_MAJOR,;t t
7050s,@PCRE_MINOR@,$PCRE_MINOR,;t t
7051s,@PCRE_DATE@,$PCRE_DATE,;t t
7052s,@PCRE_VERSION@,$PCRE_VERSION,;t t
7053s,@PCRE_LIB_VERSION@,$PCRE_LIB_VERSION,;t t
7054s,@PCRE_POSIXLIB_VERSION@,$PCRE_POSIXLIB_VERSION,;t t
7055CEOF
7056
7057EOF
7058
7059  cat >>$CONFIG_STATUS <<\EOF
7060  # Split the substitutions into bite-sized pieces for seds with
7061  # small command number limits, like on Digital OSF/1 and HP-UX.
7062  ac_max_sed_lines=48
7063  ac_sed_frag=1 # Number of current file.
7064  ac_beg=1 # First line for current file.
7065  ac_end=$ac_max_sed_lines # Line after last line for current file.
7066  ac_more_lines=:
7067  ac_sed_cmds=
7068  while $ac_more_lines; do
7069    if test $ac_beg -gt 1; then
7070      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7071    else
7072      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7073    fi
7074    if test ! -s $tmp/subs.frag; then
7075      ac_more_lines=false
7076    else
7077      # The purpose of the label and of the branching condition is to
7078      # speed up the sed processing (if there are no `@' at all, there
7079      # is no need to browse any of the substitutions).
7080      # These are the two extra sed commands mentioned above.
7081      (echo ':t
7082  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7083      if test -z "$ac_sed_cmds"; then
7084        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7085      else
7086        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7087      fi
7088      ac_sed_frag=`expr $ac_sed_frag + 1`
7089      ac_beg=$ac_end
7090      ac_end=`expr $ac_end + $ac_max_sed_lines`
7091    fi
7092  done
7093  if test -z "$ac_sed_cmds"; then
7094    ac_sed_cmds=cat
7095  fi
7096fi # test -n "$CONFIG_FILES"
7097
7098EOF
7099cat >>$CONFIG_STATUS <<\EOF
7100for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7101  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7102  case $ac_file in
7103  - | *:- | *:-:* ) # input from stdin
7104        cat >$tmp/stdin
7105        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7108        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7109  * )   ac_file_in=$ac_file.in ;;
7110  esac
7111
7112  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7113  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7114         X"$ac_file" : 'X\(//\)[^/]' \| \
7115         X"$ac_file" : 'X\(//\)$' \| \
7116         X"$ac_file" : 'X\(/\)' \| \
7117         .     : '\(.\)' 2>/dev/null ||
7118echo X"$ac_file" |
7119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7120          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7121          /^X\(\/\/\)$/{ s//\1/; q; }
7122          /^X\(\/\).*/{ s//\1/; q; }
7123          s/.*/./; q'`
7124  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7125    { case "$ac_dir" in
7126  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7127  *)                      as_incr_dir=.;;
7128esac
7129as_dummy="$ac_dir"
7130for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7131  case $as_mkdir_dir in
7132    # Skip DOS drivespec
7133    ?:) as_incr_dir=$as_mkdir_dir ;;
7134    *)
7135      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7136      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7137    ;;
7138  esac
7139done; }
7140
7141    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7142    # A "../" for each directory in $ac_dir_suffix.
7143    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7144  else
7145    ac_dir_suffix= ac_dots=
7146  fi
7147
7148  case $srcdir in
7149  .)  ac_srcdir=.
7150      if test -z "$ac_dots"; then
7151         ac_top_srcdir=.
7152      else
7153         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7154      fi ;;
7155  [\\/]* | ?:[\\/]* )
7156      ac_srcdir=$srcdir$ac_dir_suffix;
7157      ac_top_srcdir=$srcdir ;;
7158  *) # Relative path.
7159    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7160    ac_top_srcdir=$ac_dots$srcdir ;;
7161  esac
7162
7163  case $INSTALL in
7164  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7165  *) ac_INSTALL=$ac_dots$INSTALL ;;
7166  esac
7167
7168  if test x"$ac_file" != x-; then
7169    { echo "$as_me:7179: creating $ac_file" >&5
7170echo "$as_me: creating $ac_file" >&6;}
7171    rm -f "$ac_file"
7172  fi
7173  # Let's still pretend it is `configure' which instantiates (i.e., don't
7174  # use $as_me), people would be surprised to read:
7175  #    /* config.h.  Generated automatically by config.status.  */
7176  configure_input="Generated automatically from `echo $ac_file_in |
7177                                                 sed 's,.*/,,'` by configure."
7178
7179  # First look for the input files in the build tree, otherwise in the
7180  # src tree.
7181  ac_file_inputs=`IFS=:
7182    for f in $ac_file_in; do
7183      case $f in
7184      -) echo $tmp/stdin ;;
7185      [\\/$]*)
7186         # Absolute (can't be DOS-style, as IFS=:)
7187         test -f "$f" || { { echo "$as_me:7197: error: cannot find input file: $f" >&5
7188echo "$as_me: error: cannot find input file: $f" >&2;}
7189   { (exit 1); exit 1; }; }
7190         echo $f;;
7191      *) # Relative
7192         if test -f "$f"; then
7193           # Build tree
7194           echo $f
7195         elif test -f "$srcdir/$f"; then
7196           # Source tree
7197           echo $srcdir/$f
7198         else
7199           # /dev/null tree
7200           { { echo "$as_me:7210: error: cannot find input file: $f" >&5
7201echo "$as_me: error: cannot find input file: $f" >&2;}
7202   { (exit 1); exit 1; }; }
7203         fi;;
7204      esac
7205    done` || { (exit 1); exit 1; }
7206EOF
7207cat >>$CONFIG_STATUS <<EOF
7208  sed "$ac_vpsub
7209$extrasub
7210EOF
7211cat >>$CONFIG_STATUS <<\EOF
7212:t
7213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7214s,@configure_input@,$configure_input,;t t
7215s,@srcdir@,$ac_srcdir,;t t
7216s,@top_srcdir@,$ac_top_srcdir,;t t
7217s,@INSTALL@,$ac_INSTALL,;t t
7218" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7219  rm -f $tmp/stdin
7220  if test x"$ac_file" != x-; then
7221    mv $tmp/out $ac_file
7222  else
7223    cat $tmp/out
7224    rm -f $tmp/out
7225  fi
7226
7227done
7228EOF
7229cat >>$CONFIG_STATUS <<\EOF
7230
7231#
7232# CONFIG_HEADER section.
7233#
7234
7235# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7236# NAME is the cpp macro being defined and VALUE is the value it is being given.
7237#
7238# ac_d sets the value in "#define NAME VALUE" lines.
7239ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7240ac_dB='[        ].*$,\1#\2'
7241ac_dC=' '
7242ac_dD=',;t'
7243# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7244ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7245ac_uB='$,\1#\2define\3'
7246ac_uC=' '
7247ac_uD=',;t'
7248
7249for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7250  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7251  case $ac_file in
7252  - | *:- | *:-:* ) # input from stdin
7253        cat >$tmp/stdin
7254        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7255        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7256  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7257        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7258  * )   ac_file_in=$ac_file.in ;;
7259  esac
7260
7261  test x"$ac_file" != x- && { echo "$as_me:7271: creating $ac_file" >&5
7262echo "$as_me: creating $ac_file" >&6;}
7263
7264  # First look for the input files in the build tree, otherwise in the
7265  # src tree.
7266  ac_file_inputs=`IFS=:
7267    for f in $ac_file_in; do
7268      case $f in
7269      -) echo $tmp/stdin ;;
7270      [\\/$]*)
7271         # Absolute (can't be DOS-style, as IFS=:)
7272         test -f "$f" || { { echo "$as_me:7282: error: cannot find input file: $f" >&5
7273echo "$as_me: error: cannot find input file: $f" >&2;}
7274   { (exit 1); exit 1; }; }
7275         echo $f;;
7276      *) # Relative
7277         if test -f "$f"; then
7278           # Build tree
7279           echo $f
7280         elif test -f "$srcdir/$f"; then
7281           # Source tree
7282           echo $srcdir/$f
7283         else
7284           # /dev/null tree
7285           { { echo "$as_me:7295: error: cannot find input file: $f" >&5
7286echo "$as_me: error: cannot find input file: $f" >&2;}
7287   { (exit 1); exit 1; }; }
7288         fi;;
7289      esac
7290    done` || { (exit 1); exit 1; }
7291  # Remove the trailing spaces.
7292  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7293
7294EOF
7295
7296# Transform confdefs.h into two sed scripts, `conftest.defines' and
7297# `conftest.undefs', that substitutes the proper values into
7298# config.h.in to produce config.h.  The first handles `#define'
7299# templates, and the second `#undef' templates.
7300# And first: Protect against being on the right side of a sed subst in
7301# config.status.  Protect against being in an unquoted here document
7302# in config.status.
7303rm -f conftest.defines conftest.undefs
7304# Using a here document instead of a string reduces the quoting nightmare.
7305# Putting comments in sed scripts is not portable.
7306#
7307# `end' is used to avoid that the second main sed command (meant for
7308# 0-ary CPP macros) applies to n-ary macro definitions.
7309# See the Autoconf documentation for `clear'.
7310cat >confdef2sed.sed <<\EOF
7311s/[\\&,]/\\&/g
7312s,[\\$`],\\&,g
7313t clear
7314: clear
7315s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7316t end
7317s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7318: end
7319EOF
7320# If some macros were called several times there might be several times
7321# the same #defines, which is useless.  Nevertheless, we may not want to
7322# sort them, since we want the *last* AC-DEFINE to be honored.
7323uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7324sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7325rm -f confdef2sed.sed
7326
7327# This sed command replaces #undef with comments.  This is necessary, for
7328# example, in the case of _POSIX_SOURCE, which is predefined and required
7329# on some systems where configure will not decide to define it.
7330cat >>conftest.undefs <<\EOF
7331s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7332EOF
7333
7334# Break up conftest.defines because some shells have a limit on the size
7335# of here documents, and old seds have small limits too (100 cmds).
7336echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7337echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7338echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7339echo '  :' >>$CONFIG_STATUS
7340rm -f conftest.tail
7341while grep . conftest.defines >/dev/null
7342do
7343  # Write a limited-size here document to $tmp/defines.sed.
7344  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7345  # Speed up: don't consider the non `#define' lines.
7346  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7347  # Work around the forget-to-reset-the-flag bug.
7348  echo 't clr' >>$CONFIG_STATUS
7349  echo ': clr' >>$CONFIG_STATUS
7350  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7351  echo 'CEOF
7352  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7353  rm -f $tmp/in
7354  mv $tmp/out $tmp/in
7355' >>$CONFIG_STATUS
7356  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7357  rm -f conftest.defines
7358  mv conftest.tail conftest.defines
7359done
7360rm -f conftest.defines
7361echo '  fi # egrep' >>$CONFIG_STATUS
7362echo >>$CONFIG_STATUS
7363
7364# Break up conftest.undefs because some shells have a limit on the size
7365# of here documents, and old seds have small limits too (100 cmds).
7366echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7367rm -f conftest.tail
7368while grep . conftest.undefs >/dev/null
7369do
7370  # Write a limited-size here document to $tmp/undefs.sed.
7371  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7372  # Speed up: don't consider the non `#undef'
7373  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7374  # Work around the forget-to-reset-the-flag bug.
7375  echo 't clr' >>$CONFIG_STATUS
7376  echo ': clr' >>$CONFIG_STATUS
7377  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7378  echo 'CEOF
7379  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7380  rm -f $tmp/in
7381  mv $tmp/out $tmp/in
7382' >>$CONFIG_STATUS
7383  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7384  rm -f conftest.undefs
7385  mv conftest.tail conftest.undefs
7386done
7387rm -f conftest.undefs
7388
7389cat >>$CONFIG_STATUS <<\EOF
7390  # Let's still pretend it is `configure' which instantiates (i.e., don't
7391  # use $as_me), people would be surprised to read:
7392  #    /* config.h.  Generated automatically by config.status.  */
7393  if test x"$ac_file" = x-; then
7394    echo "/* Generated automatically by configure.  */" >$tmp/config.h
7395  else
7396    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
7397  fi
7398  cat $tmp/in >>$tmp/config.h
7399  rm -f $tmp/in
7400  if test x"$ac_file" != x-; then
7401    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7402      { echo "$as_me:7412: $ac_file is unchanged" >&5
7403echo "$as_me: $ac_file is unchanged" >&6;}
7404    else
7405      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7406         X"$ac_file" : 'X\(//\)[^/]' \| \
7407         X"$ac_file" : 'X\(//\)$' \| \
7408         X"$ac_file" : 'X\(/\)' \| \
7409         .     : '\(.\)' 2>/dev/null ||
7410echo X"$ac_file" |
7411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7412          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7413          /^X\(\/\/\)$/{ s//\1/; q; }
7414          /^X\(\/\).*/{ s//\1/; q; }
7415          s/.*/./; q'`
7416      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7417        { case "$ac_dir" in
7418  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7419  *)                      as_incr_dir=.;;
7420esac
7421as_dummy="$ac_dir"
7422for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7423  case $as_mkdir_dir in
7424    # Skip DOS drivespec
7425    ?:) as_incr_dir=$as_mkdir_dir ;;
7426    *)
7427      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7428      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7429    ;;
7430  esac
7431done; }
7432
7433      fi
7434      rm -f $ac_file
7435      mv $tmp/config.h $ac_file
7436    fi
7437  else
7438    cat $tmp/config.h
7439    rm -f $tmp/config.h
7440  fi
7441done
7442EOF
7443cat >>$CONFIG_STATUS <<\EOF
7444
7445#
7446# CONFIG_COMMANDS section.
7447#
7448for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7449  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7450  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7451
7452  case $ac_dest in
7453    default ) chmod a+x RunTest pcre-config ;;
7454  esac
7455done
7456EOF
7457
7458cat >>$CONFIG_STATUS <<\EOF
7459
7460{ (exit 0); exit 0; }
7461EOF
7462chmod +x $CONFIG_STATUS
7463ac_clean_files=$ac_clean_files_save
7464
7465# configure is writing to config.log, and then calls config.status.
7466# config.status does its own redirection, appending to config.log.
7467# Unfortunately, on DOS this fails, as config.log is still kept open
7468# by configure, so config.status won't be able to write to it; its
7469# output is simply discarded.  So we exec the FD to /dev/null,
7470# effectively closing config.log, so it can be properly (re)opened and
7471# appended to by config.status.  When coming back to configure, we
7472# need to make the FD available again.
7473if test "$no_create" != yes; then
7474  ac_cs_success=:
7475  exec 5>/dev/null
7476  $SHELL $CONFIG_STATUS || ac_cs_success=false
7477  exec 5>>config.log
7478  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7479  # would make configure fail if this is the last instruction.
7480  $ac_cs_success || { (exit 1); exit 1; }
7481fi
7482
Note: See TracBrowser for help on using the repository browser.