/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (hide annotations) (download)
Sat Feb 24 21:40:45 2007 UTC (6 years, 2 months ago) by nigel
File size: 681304 byte(s)
Load pcre-6.0 into code/trunk.

1 nigel 41 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 nigel 75 # Generated by GNU Autoconf 2.59.
4 nigel 41 #
5 nigel 75 # Copyright (C) 2003 Free Software Foundation, Inc.
6 nigel 41 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 nigel 63 ## --------------------- ##
9     ## M4sh Initialization. ##
10     ## --------------------- ##
11 nigel 41
12 nigel 63 # Be Bourne compatible
13     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14     emulate sh
15     NULLCMD=:
16     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17     # is contrary to our usage. Disable this feature.
18     alias -g '${1+"$@"}'='"$@"'
19     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21     fi
22 nigel 75 DUALCASE=1; export DUALCASE # for MKS sh
23 nigel 63
24     # Support unset when possible.
25 nigel 75 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 nigel 63 as_unset=unset
27     else
28     as_unset=false
29     fi
30    
31    
32     # Work around bugs in pre-3.0 UWIN ksh.
33     $as_unset ENV MAIL MAILPATH
34     PS1='$ '
35     PS2='> '
36     PS4='+ '
37    
38     # NLS nuisances.
39     for as_var in \
40     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42     LC_TELEPHONE LC_TIME
43     do
44 nigel 75 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 nigel 63 eval $as_var=C; export $as_var
46     else
47     $as_unset $as_var
48     fi
49     done
50    
51     # Required to use basename.
52     if expr a : '\(a\)' >/dev/null 2>&1; then
53     as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59     as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
65     # Name of the executable.
66     as_me=`$as_basename "$0" ||
67     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68     X"$0" : 'X\(//\)$' \| \
69     X"$0" : 'X\(/\)$' \| \
70     . : '\(.\)' 2>/dev/null ||
71     echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76    
77    
78     # PATH needs CR, and LINENO needs CR and PATH.
79     # Avoid depending upon Character Ranges.
80     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83     as_cr_digits='0123456789'
84     as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86     # The user is always right.
87     if test "${PATH_SEPARATOR+set}" != set; then
88     echo "#! /bin/sh" >conf$$.sh
89     echo "exit 0" >>conf$$.sh
90     chmod +x conf$$.sh
91     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93     else
94     PATH_SEPARATOR=:
95     fi
96     rm -f conf$$.sh
97     fi
98    
99    
100     as_lineno_1=$LINENO
101     as_lineno_2=$LINENO
102     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103     test "x$as_lineno_1" != "x$as_lineno_2" &&
104     test "x$as_lineno_3" = "x$as_lineno_2" || {
105     # Find who we are. Look in the path if we contain no path at all
106     # relative or not.
107     case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110     for as_dir in $PATH
111     do
112     IFS=$as_save_IFS
113     test -z "$as_dir" && as_dir=.
114     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115     done
116    
117     ;;
118     esac
119     # We did not find ourselves, most probably we were run as `sh COMMAND'
120     # in which case we are not to be found in the path.
121     if test "x$as_myself" = x; then
122     as_myself=$0
123     fi
124     if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126     { (exit 1); exit 1; }; }
127     fi
128     case $CONFIG_SHELL in
129     '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132     do
133     IFS=$as_save_IFS
134     test -z "$as_dir" && as_dir=.
135     for as_base in sh bash ksh sh5; do
136     case $as_dir in
137     /*)
138     if ("$as_dir/$as_base" -c '
139     as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
141     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142     test "x$as_lineno_1" != "x$as_lineno_2" &&
143     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146     CONFIG_SHELL=$as_dir/$as_base
147     export CONFIG_SHELL
148     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149     fi;;
150     esac
151     done
152     done
153     ;;
154     esac
155    
156     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157     # uniformly replaced by the line number. The first 'sed' inserts a
158     # line-number line before each line; the second 'sed' does the real
159     # work. The second script uses 'N' to pair each line-number line
160     # with the numbered line, and appends trailing '-' during
161     # substitution so that $LINENO is not a special case at line end.
162     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164     sed '=' <$as_myself |
165     sed '
166     N
167     s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170     t loop
171     s,-$,,
172     s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174     chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176     { (exit 1); exit 1; }; }
177    
178     # Don't try to exec as it changes $[0], causing all sort of problems
179     # (the dirname of $[0] is not the place where we might find the
180     # original and so on. Autoconf is especially sensible to this).
181     . ./$as_me.lineno
182     # Exit status is that of the last command.
183     exit
184     }
185    
186    
187     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188     *c*,-n*) ECHO_N= ECHO_C='
189     ' ECHO_T=' ' ;;
190     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192     esac
193    
194     if expr a : '\(a\)' >/dev/null 2>&1; then
195     as_expr=expr
196     else
197     as_expr=false
198     fi
199    
200     rm -f conf$$ conf$$.exe conf$$.file
201     echo >conf$$.file
202     if ln -s conf$$.file conf$$ 2>/dev/null; then
203     # We could just check for DJGPP; but this test a) works b) is more generic
204     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205     if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208     else
209     as_ln_s='ln -s'
210     fi
211     elif ln conf$$.file conf$$ 2>/dev/null; then
212     as_ln_s=ln
213     else
214     as_ln_s='cp -p'
215     fi
216     rm -f conf$$ conf$$.exe conf$$.file
217    
218     if mkdir -p . 2>/dev/null; then
219     as_mkdir_p=:
220     else
221 nigel 75 test -d ./-p && rmdir ./-p
222 nigel 63 as_mkdir_p=false
223     fi
224    
225     as_executable_p="test -f"
226    
227     # Sed expression to map a string onto a valid CPP name.
228 nigel 75 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 nigel 63
230     # Sed expression to map a string onto a valid variable name.
231 nigel 75 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 nigel 63
233    
234     # IFS
235     # We need space, tab and new line, in precisely that order.
236     as_nl='
237     '
238     IFS=" $as_nl"
239    
240     # CDPATH.
241     $as_unset CDPATH
242    
243    
244 nigel 53
245     # Check that we are running under the correct shell.
246     SHELL=${CONFIG_SHELL-/bin/sh}
247    
248     case X$ECHO in
249     X*--fallback-echo)
250     # Remove one level of quotation (which was required for Make).
251     ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252     ;;
253     esac
254    
255     echo=${ECHO-echo}
256     if test "X$1" = X--no-reexec; then
257     # Discard the --no-reexec flag, and continue.
258     shift
259     elif test "X$1" = X--fallback-echo; then
260     # Avoid inline document here, it may be left over
261     :
262 nigel 75 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 nigel 53 # Yippee, $echo works!
264     :
265     else
266     # Restart under the correct shell.
267     exec $SHELL "$0" --no-reexec ${1+"$@"}
268     fi
269    
270     if test "X$1" = X--fallback-echo; then
271     # used as fallback echo
272     shift
273     cat <<EOF
274 nigel 75 $*
275 nigel 53 EOF
276     exit 0
277     fi
278    
279     # The HP-UX ksh and POSIX shell print the target directory to stdout
280     # if CDPATH is set.
281 nigel 75 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282 nigel 53
283     if test -z "$ECHO"; then
284     if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289     echo_test_string="`eval $cmd`" &&
290     (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292     break
293     fi
294     done
295     fi
296    
297     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299     test "X$echo_testing_string" = "X$echo_test_string"; then
300     :
301     else
302     # The Solaris, AIX, and Digital Unix default echo programs unquote
303     # backslashes. This makes it impossible to quote backslashes using
304     # echo "$something" | sed 's/\\/\\\\/g'
305     #
306     # So, first we look for a working echo in the user's PATH.
307    
308 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 nigel 53 for dir in $PATH /usr/ucb; do
310 nigel 75 IFS="$lt_save_ifs"
311 nigel 53 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314     test "X$echo_testing_string" = "X$echo_test_string"; then
315     echo="$dir/echo"
316     break
317     fi
318     done
319 nigel 75 IFS="$lt_save_ifs"
320 nigel 53
321     if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324     echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325     test "X$echo_testing_string" = "X$echo_test_string"; then
326     # This shell has a builtin print -r that does the trick.
327     echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329     test "X$CONFIG_SHELL" != X/bin/ksh; then
330     # If we have ksh, try running configure again with it.
331     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332     export ORIGINAL_CONFIG_SHELL
333     CONFIG_SHELL=/bin/ksh
334     export CONFIG_SHELL
335     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337     # Try using printf.
338     echo='printf %s\n'
339     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341     test "X$echo_testing_string" = "X$echo_test_string"; then
342     # Cool, printf works
343     :
344     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345     test "X$echo_testing_string" = 'X\t' &&
346     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347     test "X$echo_testing_string" = "X$echo_test_string"; then
348     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349     export CONFIG_SHELL
350     SHELL="$CONFIG_SHELL"
351     export SHELL
352     echo="$CONFIG_SHELL $0 --fallback-echo"
353     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354     test "X$echo_testing_string" = 'X\t' &&
355     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356     test "X$echo_testing_string" = "X$echo_test_string"; then
357     echo="$CONFIG_SHELL $0 --fallback-echo"
358     else
359     # maybe with a smaller string...
360     prev=:
361    
362     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363     if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364     then
365     break
366     fi
367     prev="$cmd"
368     done
369    
370     if test "$prev" != 'sed 50q "$0"'; then
371     echo_test_string=`eval $prev`
372     export echo_test_string
373     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374     else
375     # Oops. We lost completely, so just stick with echo.
376     echo=echo
377     fi
378     fi
379     fi
380     fi
381     fi
382     fi
383    
384     # Copy echo and quote the copy suitably for passing to libtool from
385     # the Makefile, instead of quoting the original, which is used later.
386     ECHO=$echo
387     if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388     ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389     fi
390    
391    
392    
393 nigel 75
394     tagnames=${tagnames+${tagnames},}CXX
395    
396     tagnames=${tagnames+${tagnames},}F77
397    
398 nigel 53 # Name of the host.
399     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400     # so uname gets run too.
401     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402    
403     exec 6>&1
404    
405     #
406     # Initializations.
407     #
408 nigel 41 ac_default_prefix=/usr/local
409 nigel 63 ac_config_libobj_dir=.
410 nigel 53 cross_compiling=no
411     subdirs=
412 nigel 63 MFLAGS=
413     MAKEFLAGS=
414 nigel 53 SHELL=${CONFIG_SHELL-/bin/sh}
415 nigel 41
416 nigel 53 # Maximum number of lines to put in a shell here document.
417     # This variable seems obsolete. It should probably be removed, and
418     # only ac_max_sed_lines should be used.
419     : ${ac_max_here_lines=38}
420    
421 nigel 63 # Identity of this package.
422     PACKAGE_NAME=
423     PACKAGE_TARNAME=
424     PACKAGE_VERSION=
425     PACKAGE_STRING=
426     PACKAGE_BUGREPORT=
427 nigel 53
428     ac_unique_file="dftables.c"
429     # Factoring default headers for most tests.
430     ac_includes_default="\
431     #include <stdio.h>
432 nigel 63 #if HAVE_SYS_TYPES_H
433     # include <sys/types.h>
434     #endif
435     #if HAVE_SYS_STAT_H
436     # include <sys/stat.h>
437     #endif
438 nigel 53 #if STDC_HEADERS
439     # include <stdlib.h>
440     # include <stddef.h>
441     #else
442     # if HAVE_STDLIB_H
443     # include <stdlib.h>
444     # endif
445     #endif
446     #if HAVE_STRING_H
447     # if !STDC_HEADERS && HAVE_MEMORY_H
448     # include <memory.h>
449     # endif
450     # include <string.h>
451     #endif
452 nigel 63 #if HAVE_STRINGS_H
453     # include <strings.h>
454     #endif
455 nigel 53 #if HAVE_INTTYPES_H
456     # include <inttypes.h>
457 nigel 63 #else
458     # if HAVE_STDINT_H
459     # include <stdint.h>
460     # endif
461 nigel 53 #endif
462     #if HAVE_UNISTD_H
463     # include <unistd.h>
464     #endif"
465    
466 nigel 77 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX MAYBE_CPP_TARGETS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_has_bits_type_traits pcre_has_type_traits pcre_has_long_long pcre_has_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
467 nigel 63 ac_subst_files=''
468    
469 nigel 41 # Initialize some variables set by options.
470 nigel 53 ac_init_help=
471     ac_init_version=false
472 nigel 41 # The variables have the same names as the options, with
473     # dashes changed to underlines.
474 nigel 53 cache_file=/dev/null
475 nigel 41 exec_prefix=NONE
476     no_create=
477     no_recursion=
478     prefix=NONE
479     program_prefix=NONE
480     program_suffix=NONE
481     program_transform_name=s,x,x,
482     silent=
483     site=
484     srcdir=
485     verbose=
486     x_includes=NONE
487     x_libraries=NONE
488 nigel 53
489     # Installation directory options.
490     # These are left unexpanded so users can "make install exec_prefix=/foo"
491     # and all the variables that are supposed to be based on exec_prefix
492     # by default will actually change.
493     # Use braces instead of parens because sh, perl, etc. also accept them.
494 nigel 41 bindir='${exec_prefix}/bin'
495     sbindir='${exec_prefix}/sbin'
496     libexecdir='${exec_prefix}/libexec'
497     datadir='${prefix}/share'
498     sysconfdir='${prefix}/etc'
499     sharedstatedir='${prefix}/com'
500     localstatedir='${prefix}/var'
501     libdir='${exec_prefix}/lib'
502     includedir='${prefix}/include'
503     oldincludedir='/usr/include'
504     infodir='${prefix}/info'
505     mandir='${prefix}/man'
506    
507     ac_prev=
508     for ac_option
509     do
510     # If the previous option needs an argument, assign it.
511     if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515     fi
516    
517 nigel 53 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 nigel 41
519     # Accept the important Cygnus configure options, so we can diagnose typos.
520    
521 nigel 53 case $ac_option in
522 nigel 41
523     -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 nigel 53 bindir=$ac_optarg ;;
527 nigel 41
528     -build | --build | --buil | --bui | --bu)
529 nigel 53 ac_prev=build_alias ;;
530 nigel 41 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 nigel 53 build_alias=$ac_optarg ;;
532 nigel 41
533     -cache-file | --cache-file | --cache-fil | --cache-fi \
534     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 nigel 53 cache_file=$ac_optarg ;;
539 nigel 41
540 nigel 53 --config-cache | -C)
541     cache_file=config.cache ;;
542    
543 nigel 41 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546     | --da=*)
547 nigel 53 datadir=$ac_optarg ;;
548 nigel 41
549     -disable-* | --disable-*)
550 nigel 53 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 nigel 41 # Reject names that are not valid shell variable names.
552 nigel 63 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 nigel 53 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554     { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557 nigel 41
558     -enable-* | --enable-*)
559 nigel 53 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 nigel 41 # Reject names that are not valid shell variable names.
561 nigel 63 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 nigel 53 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563     { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 nigel 41 *) ac_optarg=yes ;;
568     esac
569 nigel 53 eval "enable_$ac_feature='$ac_optarg'" ;;
570 nigel 41
571     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573     | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577     | --exec=* | --exe=* | --ex=*)
578 nigel 53 exec_prefix=$ac_optarg ;;
579 nigel 41
580     -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583    
584 nigel 53 -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590 nigel 41
591     -host | --host | --hos | --ho)
592 nigel 53 ac_prev=host_alias ;;
593 nigel 41 -host=* | --host=* | --hos=* | --ho=*)
594 nigel 53 host_alias=$ac_optarg ;;
595 nigel 41
596     -includedir | --includedir | --includedi | --included | --include \
597     | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600     | --includ=* | --inclu=* | --incl=* | --inc=*)
601 nigel 53 includedir=$ac_optarg ;;
602 nigel 41
603     -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 nigel 53 infodir=$ac_optarg ;;
607 nigel 41
608     -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610     -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 nigel 53 libdir=$ac_optarg ;;
612 nigel 41
613     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614     | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617     | --libexe=* | --libex=* | --libe=*)
618 nigel 53 libexecdir=$ac_optarg ;;
619 nigel 41
620     -localstatedir | --localstatedir | --localstatedi | --localstated \
621     | --localstate | --localstat | --localsta | --localst \
622     | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 nigel 53 localstatedir=$ac_optarg ;;
628 nigel 41
629     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 nigel 53 mandir=$ac_optarg ;;
633 nigel 41
634     -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637    
638     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 nigel 63 | --no-cr | --no-c | -n)
640 nigel 41 no_create=yes ;;
641    
642     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645    
646     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648     | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 nigel 53 oldincludedir=$ac_optarg ;;
654 nigel 41
655     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 nigel 53 prefix=$ac_optarg ;;
659 nigel 41
660     -program-prefix | --program-prefix | --program-prefi | --program-pref \
661     | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663     -program-prefix=* | --program-prefix=* | --program-prefi=* \
664     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 nigel 53 program_prefix=$ac_optarg ;;
666 nigel 41
667     -program-suffix | --program-suffix | --program-suffi | --program-suff \
668     | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670     -program-suffix=* | --program-suffix=* | --program-suffi=* \
671     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 nigel 53 program_suffix=$ac_optarg ;;
673 nigel 41
674     -program-transform-name | --program-transform-name \
675     | --program-transform-nam | --program-transform-na \
676     | --program-transform-n | --program-transform- \
677     | --program-transform | --program-transfor \
678     | --program-transfo | --program-transf \
679     | --program-trans | --program-tran \
680     | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682     -program-transform-name=* | --program-transform-name=* \
683     | --program-transform-nam=* | --program-transform-na=* \
684     | --program-transform-n=* | --program-transform-=* \
685     | --program-transform=* | --program-transfor=* \
686     | --program-transfo=* | --program-transf=* \
687     | --program-trans=* | --program-tran=* \
688     | --progr-tra=* | --program-tr=* | --program-t=*)
689 nigel 53 program_transform_name=$ac_optarg ;;
690 nigel 41
691     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692     | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694    
695     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698     | --sbi=* | --sb=*)
699 nigel 53 sbindir=$ac_optarg ;;
700 nigel 41
701     -sharedstatedir | --sharedstatedir | --sharedstatedi \
702     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703     | --sharedst | --shareds | --shared | --share | --shar \
704     | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709     | --sha=* | --sh=*)
710 nigel 53 sharedstatedir=$ac_optarg ;;
711 nigel 41
712     -site | --site | --sit)
713     ac_prev=site ;;
714     -site=* | --site=* | --sit=*)
715 nigel 53 site=$ac_optarg ;;
716 nigel 41
717     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 nigel 53 srcdir=$ac_optarg ;;
721 nigel 41
722     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723     | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 nigel 53 sysconfdir=$ac_optarg ;;
728 nigel 41
729     -target | --target | --targe | --targ | --tar | --ta | --t)
730 nigel 53 ac_prev=target_alias ;;
731 nigel 41 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 nigel 53 target_alias=$ac_optarg ;;
733 nigel 41
734     -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736    
737 nigel 53 -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739 nigel 41
740     -with-* | --with-*)
741 nigel 53 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 nigel 41 # Reject names that are not valid shell variable names.
743 nigel 63 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 nigel 53 { echo "$as_me: error: invalid package name: $ac_package" >&2
745     { (exit 1); exit 1; }; }
746 nigel 41 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 nigel 53 case $ac_option in
748     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 nigel 41 *) ac_optarg=yes ;;
750     esac
751 nigel 53 eval "with_$ac_package='$ac_optarg'" ;;
752 nigel 41
753     -without-* | --without-*)
754 nigel 53 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 nigel 41 # Reject names that are not valid shell variable names.
756 nigel 63 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 nigel 53 { echo "$as_me: error: invalid package name: $ac_package" >&2
758     { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761 nigel 41
762     --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765    
766     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767     | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 nigel 53 x_includes=$ac_optarg ;;
772 nigel 41
773     -x-libraries | --x-libraries | --x-librarie | --x-librari \
774     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 nigel 53 x_libraries=$ac_optarg ;;
779 nigel 41
780 nigel 53 -*) { echo "$as_me: error: unrecognized option: $ac_option
781     Try \`$0 --help' for more information." >&2
782     { (exit 1); exit 1; }; }
783 nigel 41 ;;
784    
785 nigel 53 *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788 nigel 63 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 nigel 53 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790     { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794    
795 nigel 41 *)
796 nigel 53 # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 nigel 63 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 nigel 53 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 nigel 41 ;;
802    
803     esac
804     done
805    
806     if test -n "$ac_prev"; then
807 nigel 53 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808     { echo "$as_me: error: missing argument to $ac_option" >&2
809     { (exit 1); exit 1; }; }
810 nigel 41 fi
811    
812 nigel 53 # Be sure to have absolute paths.
813 nigel 63 for ac_var in exec_prefix prefix
814     do
815     eval ac_val=$`echo $ac_var`
816     case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819     { (exit 1); exit 1; }; };;
820     esac
821     done
822    
823     # Be sure to have absolute paths.
824 nigel 53 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 nigel 75 localstatedir libdir includedir oldincludedir infodir mandir
826 nigel 41 do
827 nigel 53 eval ac_val=$`echo $ac_var`
828     case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830 nigel 63 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 nigel 53 { (exit 1); exit 1; }; };;
832 nigel 41 esac
833     done
834    
835 nigel 53 # There might be people who depend on the old broken behavior: `$host'
836     # used to hold the argument of --host etc.
837 nigel 63 # FIXME: To remove some day.
838 nigel 53 build=$build_alias
839     host=$host_alias
840     target=$target_alias
841 nigel 41
842 nigel 63 # FIXME: To remove some day.
843 nigel 53 if test "x$host_alias" != x; then
844     if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848     elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850     fi
851     fi
852 nigel 41
853 nigel 53 ac_tool_prefix=
854     test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 nigel 41
856 nigel 53 test "$silent" = yes && exec 6>/dev/null
857    
858 nigel 63
859 nigel 41 # Find the source files, if location was not specified.
860     if test -z "$srcdir"; then
861     ac_srcdir_defaulted=yes
862     # Try the directory containing this script, then its parent.
863 nigel 63 ac_confdir=`(dirname "$0") 2>/dev/null ||
864     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 nigel 75 X"$0" : 'X\(//\)[^/]' \| \
866     X"$0" : 'X\(//\)$' \| \
867     X"$0" : 'X\(/\)' \| \
868     . : '\(.\)' 2>/dev/null ||
869 nigel 63 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872     /^X\(\/\/\)$/{ s//\1/; q; }
873     /^X\(\/\).*/{ s//\1/; q; }
874     s/.*/./; q'`
875 nigel 41 srcdir=$ac_confdir
876     if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878     fi
879     else
880     ac_srcdir_defaulted=no
881     fi
882     if test ! -r $srcdir/$ac_unique_file; then
883     if test "$ac_srcdir_defaulted" = yes; then
884 nigel 63 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 nigel 53 { (exit 1); exit 1; }; }
886 nigel 41 else
887 nigel 63 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 nigel 53 { (exit 1); exit 1; }; }
889 nigel 41 fi
890     fi
891 nigel 63 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893     { (exit 1); exit 1; }; }
894 nigel 53 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895     ac_env_build_alias_set=${build_alias+set}
896     ac_env_build_alias_value=$build_alias
897     ac_cv_env_build_alias_set=${build_alias+set}
898     ac_cv_env_build_alias_value=$build_alias
899     ac_env_host_alias_set=${host_alias+set}
900     ac_env_host_alias_value=$host_alias
901     ac_cv_env_host_alias_set=${host_alias+set}
902     ac_cv_env_host_alias_value=$host_alias
903     ac_env_target_alias_set=${target_alias+set}
904     ac_env_target_alias_value=$target_alias
905     ac_cv_env_target_alias_set=${target_alias+set}
906     ac_cv_env_target_alias_value=$target_alias
907     ac_env_CC_set=${CC+set}
908     ac_env_CC_value=$CC
909     ac_cv_env_CC_set=${CC+set}
910     ac_cv_env_CC_value=$CC
911     ac_env_CFLAGS_set=${CFLAGS+set}
912     ac_env_CFLAGS_value=$CFLAGS
913     ac_cv_env_CFLAGS_set=${CFLAGS+set}
914     ac_cv_env_CFLAGS_value=$CFLAGS
915     ac_env_LDFLAGS_set=${LDFLAGS+set}
916     ac_env_LDFLAGS_value=$LDFLAGS
917     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918     ac_cv_env_LDFLAGS_value=$LDFLAGS
919     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920     ac_env_CPPFLAGS_value=$CPPFLAGS
921     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 nigel 75 ac_env_CXX_set=${CXX+set}
924     ac_env_CXX_value=$CXX
925     ac_cv_env_CXX_set=${CXX+set}
926     ac_cv_env_CXX_value=$CXX
927     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928     ac_env_CXXFLAGS_value=$CXXFLAGS
929     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 nigel 77 ac_env_CPP_set=${CPP+set}
932     ac_env_CPP_value=$CPP
933     ac_cv_env_CPP_set=${CPP+set}
934     ac_cv_env_CPP_value=$CPP
935 nigel 75 ac_env_CXXCPP_set=${CXXCPP+set}
936     ac_env_CXXCPP_value=$CXXCPP
937     ac_cv_env_CXXCPP_set=${CXXCPP+set}
938     ac_cv_env_CXXCPP_value=$CXXCPP
939     ac_env_F77_set=${F77+set}
940     ac_env_F77_value=$F77
941     ac_cv_env_F77_set=${F77+set}
942     ac_cv_env_F77_value=$F77
943     ac_env_FFLAGS_set=${FFLAGS+set}
944     ac_env_FFLAGS_value=$FFLAGS
945     ac_cv_env_FFLAGS_set=${FFLAGS+set}
946     ac_cv_env_FFLAGS_value=$FFLAGS
947 nigel 41
948 nigel 53 #
949     # Report the --help message.
950     #
951     if test "$ac_init_help" = "long"; then
952     # Omit some internal or obsolete options to make the list less imposing.
953     # This message is too long to be a string in the A/UX 3.1 sh.
954 nigel 63 cat <<_ACEOF
955 nigel 53 \`configure' configures this package to adapt to many kinds of systems.
956    
957     Usage: $0 [OPTION]... [VAR=VALUE]...
958    
959     To assign environment variables (e.g., CC, CFLAGS...), specify them as
960     VAR=VALUE. See below for descriptions of some of the useful variables.
961    
962     Defaults for the options are specified in brackets.
963    
964     Configuration:
965     -h, --help display this help and exit
966     --help=short display options specific to this package
967     --help=recursive display the short help of all the included packages
968     -V, --version display version information and exit
969     -q, --quiet, --silent do not print \`checking...' messages
970     --cache-file=FILE cache test results in FILE [disabled]
971     -C, --config-cache alias for \`--cache-file=config.cache'
972     -n, --no-create do not create output files
973     --srcdir=DIR find the sources in DIR [configure dir or \`..']
974    
975 nigel 63 _ACEOF
976 nigel 53
977 nigel 63 cat <<_ACEOF
978 nigel 53 Installation directories:
979     --prefix=PREFIX install architecture-independent files in PREFIX
980 nigel 75 [$ac_default_prefix]
981 nigel 53 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 nigel 75 [PREFIX]
983 nigel 53
984     By default, \`make install' will install all the files in
985     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987     for instance \`--prefix=\$HOME'.
988    
989     For better control, use the options below.
990    
991     Fine tuning of the installation directories:
992     --bindir=DIR user executables [EPREFIX/bin]
993 nigel 77 --sbindir=DIR system admin executables [EPREFIX/sbin]
994     --libexecdir=DIR program executables [EPREFIX/libexec]
995     --datadir=DIR read-only architecture-independent data [PREFIX/share]
996     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 nigel 53 --libdir=DIR object code libraries [EPREFIX/lib]
1000     --includedir=DIR C header files [PREFIX/include]
1001 nigel 77 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002     --infodir=DIR info documentation [PREFIX/info]
1003 nigel 53 --mandir=DIR man documentation [PREFIX/man]
1004 nigel 63 _ACEOF
1005 nigel 53
1006 nigel 63 cat <<\_ACEOF
1007 nigel 53
1008 nigel 77 System types:
1009     --build=BUILD configure for building on BUILD [guessed]
1010     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 nigel 63 _ACEOF
1012 nigel 53 fi
1013    
1014     if test -n "$ac_init_help"; then
1015    
1016 nigel 63 cat <<\_ACEOF
1017 nigel 53
1018     Optional Features:
1019     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021 nigel 77 --enable-shared[=PKGS]
1022 nigel 75 build shared libraries [default=yes]
1023 nigel 77 --enable-static[=PKGS]
1024 nigel 75 build static libraries [default=yes]
1025 nigel 77 --enable-fast-install[=PKGS]
1026 nigel 75 optimize for fast installation [default=yes]
1027 nigel 53 --disable-libtool-lock avoid locking (might break parallel builds)
1028 nigel 63 --enable-utf8 enable UTF8 support
1029 nigel 75 --enable-unicode-properties enable Unicode properties support
1030 nigel 63 --enable-newline-is-cr use CR as the newline character
1031     --enable-newline-is-lf use LF as the newline character
1032 nigel 73 --enable-ebcdic assume EBCDIC coding rather than ASCII
1033     --disable-stack-for-recursion disable use of stack recursion when matching
1034 nigel 53
1035     Optional Packages:
1036 nigel 77 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 nigel 75 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039     --with-pic try to use only PIC/non-PIC objects [default=use
1040     both]
1041     --with-tags[=TAGS]
1042     include additional configurations [automatic]
1043 nigel 63 --with-posix-malloc-threshold=5 threshold for POSIX malloc usage
1044     --with-link-size=2 internal link size (2, 3, or 4 allowed)
1045     --with-match-limit=10000000 default limit on internal looping)
1046 nigel 53
1047     Some influential environment variables:
1048     CC C compiler command
1049     CFLAGS C compiler flags
1050     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051     nonstandard directory <lib dir>
1052     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053     headers in a nonstandard directory <include dir>
1054 nigel 75 CXX C++ compiler command
1055     CXXFLAGS C++ compiler flags
1056 nigel 77 CPP C preprocessor
1057 nigel 75 CXXCPP C++ preprocessor
1058     F77 Fortran 77 compiler command
1059     FFLAGS Fortran 77 compiler flags
1060 nigel 53
1061     Use these variables to override the choices made by `configure' or to help
1062     it to find libraries and programs with nonstandard names/locations.
1063    
1064 nigel 63 _ACEOF
1065 nigel 53 fi
1066    
1067     if test "$ac_init_help" = "recursive"; then
1068     # If there are subdirs, report their specific --help.
1069     ac_popdir=`pwd`
1070 nigel 63 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071     test -d $ac_dir || continue
1072     ac_builddir=.
1073 nigel 53
1074 nigel 63 if test "$ac_dir" != .; then
1075     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076     # A "../" for each directory in $ac_dir_suffix.
1077     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078     else
1079     ac_dir_suffix= ac_top_builddir=
1080     fi
1081 nigel 53
1082 nigel 63 case $srcdir in
1083     .) # No --srcdir option. We are building in place.
1084     ac_srcdir=.
1085     if test -z "$ac_top_builddir"; then
1086     ac_top_srcdir=.
1087     else
1088     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089     fi ;;
1090     [\\/]* | ?:[\\/]* ) # Absolute path.
1091     ac_srcdir=$srcdir$ac_dir_suffix;
1092     ac_top_srcdir=$srcdir ;;
1093     *) # Relative path.
1094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096     esac
1097    
1098 nigel 75 # Do not use `cd foo && pwd` to compute absolute paths, because
1099     # the directories may not exist.
1100     case `pwd` in
1101     .) ac_abs_builddir="$ac_dir";;
1102     *)
1103     case "$ac_dir" in
1104     .) ac_abs_builddir=`pwd`;;
1105     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106     *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107     esac;;
1108     esac
1109     case $ac_abs_builddir in
1110     .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111     *)
1112     case ${ac_top_builddir}. in
1113     .) ac_abs_top_builddir=$ac_abs_builddir;;
1114     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116     esac;;
1117     esac
1118     case $ac_abs_builddir in
1119     .) ac_abs_srcdir=$ac_srcdir;;
1120     *)
1121     case $ac_srcdir in
1122     .) ac_abs_srcdir=$ac_abs_builddir;;
1123     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125     esac;;
1126     esac
1127     case $ac_abs_builddir in
1128     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129     *)
1130     case $ac_top_srcdir in
1131     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134     esac;;
1135     esac
1136    
1137 nigel 63 cd $ac_dir
1138 nigel 53 # Check for guested configure; otherwise get Cygnus style configure.
1139 nigel 63 if test -f $ac_srcdir/configure.gnu; then
1140 nigel 53 echo
1141 nigel 63 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142     elif test -f $ac_srcdir/configure; then
1143 nigel 53 echo
1144 nigel 63 $SHELL $ac_srcdir/configure --help=recursive
1145     elif test -f $ac_srcdir/configure.ac ||
1146 nigel 75 test -f $ac_srcdir/configure.in; then
1147 nigel 53 echo
1148     $ac_configure --help
1149     else
1150 nigel 63 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151 nigel 53 fi
1152     cd $ac_popdir
1153     done
1154     fi
1155    
1156     test -n "$ac_init_help" && exit 0
1157     if $ac_init_version; then
1158 nigel 63 cat <<\_ACEOF
1159 nigel 53
1160 nigel 75 Copyright (C) 2003 Free Software Foundation, Inc.
1161 nigel 53 This configure script is free software; the Free Software Foundation
1162     gives unlimited permission to copy, distribute and modify it.
1163 nigel 63 _ACEOF
1164 nigel 53 exit 0
1165     fi
1166     exec 5>config.log
1167 nigel 63 cat >&5 <<_ACEOF
1168 nigel 53 This file contains any messages produced by compilers while
1169     running configure, to aid debugging if configure makes a mistake.
1170    
1171     It was created by $as_me, which was
1172 nigel 75 generated by GNU Autoconf 2.59. Invocation command line was
1173 nigel 53
1174     $ $0 $@
1175    
1176 nigel 63 _ACEOF
1177 nigel 53 {
1178     cat <<_ASUNAME
1179 nigel 63 ## --------- ##
1180     ## Platform. ##
1181     ## --------- ##
1182 nigel 53
1183     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188    
1189     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191    
1192     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1199    
1200 nigel 63 _ASUNAME
1201 nigel 53
1202 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203     for as_dir in $PATH
1204     do
1205     IFS=$as_save_IFS
1206     test -z "$as_dir" && as_dir=.
1207     echo "PATH: $as_dir"
1208     done
1209    
1210 nigel 53 } >&5
1211    
1212 nigel 63 cat >&5 <<_ACEOF
1213 nigel 53
1214    
1215 nigel 63 ## ----------- ##
1216     ## Core tests. ##
1217     ## ----------- ##
1218    
1219     _ACEOF
1220    
1221    
1222 nigel 53 # Keep a trace of the command line.
1223     # Strip out --no-create and --no-recursion so they do not pile up.
1224 nigel 63 # Strip out --silent because we don't want to record it for future runs.
1225 nigel 53 # Also quote any args containing shell meta-characters.
1226 nigel 63 # Make two passes to allow for proper duplicate-argument suppression.
1227 nigel 53 ac_configure_args=
1228 nigel 63 ac_configure_args0=
1229     ac_configure_args1=
1230 nigel 53 ac_sep=
1231 nigel 63 ac_must_keep_next=false
1232     for ac_pass in 1 2
1233 nigel 53 do
1234 nigel 63 for ac_arg
1235     do
1236     case $ac_arg in
1237     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239     | -silent | --silent | --silen | --sile | --sil)
1240     continue ;;
1241     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243     esac
1244     case $ac_pass in
1245     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246     2)
1247     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248     if test $ac_must_keep_next = true; then
1249 nigel 75 ac_must_keep_next=false # Got value, back to normal.
1250 nigel 63 else
1251 nigel 75 case $ac_arg in
1252     *=* | --config-cache | -C | -disable-* | --disable-* \
1253     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255     | -with-* | --with-* | -without-* | --without-* | --x)
1256     case "$ac_configure_args0 " in
1257     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258     esac
1259     ;;
1260     -* ) ac_must_keep_next=true ;;
1261     esac
1262 nigel 63 fi
1263     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264     # Get rid of the leading space.
1265     ac_sep=" "
1266     ;;
1267     esac
1268     done
1269 nigel 53 done
1270 nigel 63 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 nigel 53
1273     # When interrupted or exit'd, cleanup temporary files, and complete
1274     # config.log. We remove comments because anyway the quotes in there
1275     # would cause problems or look ugly.
1276 nigel 63 # WARNING: Be sure not to use single quotes in there, as some shells,
1277     # such as our DU 5.0 friend, will then `close' the trap.
1278 nigel 53 trap 'exit_status=$?
1279     # Save into config.log some information that might help in debugging.
1280 nigel 63 {
1281     echo
1282    
1283     cat <<\_ASBOX
1284     ## ---------------- ##
1285     ## Cache variables. ##
1286     ## ---------------- ##
1287     _ASBOX
1288     echo
1289     # The following way of writing the cache mishandles newlines in values,
1290 nigel 53 {
1291     (set) 2>&1 |
1292     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293     *ac_space=\ *)
1294     sed -n \
1295 nigel 75 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 nigel 53 ;;
1298     *)
1299     sed -n \
1300 nigel 75 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 nigel 53 ;;
1302     esac;
1303 nigel 63 }
1304     echo
1305    
1306     cat <<\_ASBOX
1307     ## ----------------- ##
1308     ## Output variables. ##
1309     ## ----------------- ##
1310     _ASBOX
1311     echo
1312     for ac_var in $ac_subst_vars
1313     do
1314     eval ac_val=$`echo $ac_var`
1315     echo "$ac_var='"'"'$ac_val'"'"'"
1316     done | sort
1317     echo
1318    
1319     if test -n "$ac_subst_files"; then
1320     cat <<\_ASBOX
1321     ## ------------- ##
1322     ## Output files. ##
1323     ## ------------- ##
1324     _ASBOX
1325     echo
1326     for ac_var in $ac_subst_files
1327     do
1328     eval ac_val=$`echo $ac_var`
1329 nigel 75 echo "$ac_var='"'"'$ac_val'"'"'"
1330 nigel 63 done | sort
1331     echo
1332     fi
1333    
1334     if test -s confdefs.h; then
1335     cat <<\_ASBOX
1336     ## ----------- ##
1337     ## confdefs.h. ##
1338     ## ----------- ##
1339     _ASBOX
1340     echo
1341     sed "/^$/d" confdefs.h | sort
1342     echo
1343     fi
1344     test "$ac_signal" != 0 &&
1345     echo "$as_me: caught signal $ac_signal"
1346     echo "$as_me: exit $exit_status"
1347     } >&5
1348 nigel 75 rm -f core *.core &&
1349 nigel 63 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350 nigel 53 exit $exit_status
1351     ' 0
1352     for ac_signal in 1 2 13 15; do
1353 nigel 63 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354 nigel 53 done
1355     ac_signal=0
1356    
1357     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1358     rm -rf conftest* confdefs.h
1359     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360     echo >confdefs.h
1361    
1362 nigel 63 # Predefined preprocessor variables.
1363    
1364     cat >>confdefs.h <<_ACEOF
1365     #define PACKAGE_NAME "$PACKAGE_NAME"
1366     _ACEOF
1367    
1368    
1369     cat >>confdefs.h <<_ACEOF
1370     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371     _ACEOF
1372    
1373    
1374     cat >>confdefs.h <<_ACEOF
1375     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1376     _ACEOF
1377    
1378    
1379     cat >>confdefs.h <<_ACEOF
1380     #define PACKAGE_STRING "$PACKAGE_STRING"
1381     _ACEOF
1382    
1383    
1384     cat >>confdefs.h <<_ACEOF
1385     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386     _ACEOF
1387    
1388    
1389 nigel 53 # Let the site file select an alternate cache file if it wants to.
1390 nigel 41 # Prefer explicitly selected file to automatically selected ones.
1391     if test -z "$CONFIG_SITE"; then
1392     if test "x$prefix" != xNONE; then
1393     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394     else
1395     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396     fi
1397     fi
1398     for ac_site_file in $CONFIG_SITE; do
1399     if test -r "$ac_site_file"; then
1400 nigel 63 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401 nigel 53 echo "$as_me: loading site script $ac_site_file" >&6;}
1402 nigel 63 sed 's/^/| /' "$ac_site_file" >&5
1403 nigel 41 . "$ac_site_file"
1404     fi
1405     done
1406    
1407     if test -r "$cache_file"; then
1408 nigel 53 # Some versions of bash will fail to source /dev/null (special
1409     # files actually), so we avoid doing that.
1410     if test -f "$cache_file"; then
1411 nigel 63 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412 nigel 53 echo "$as_me: loading cache $cache_file" >&6;}
1413     case $cache_file in
1414     [\\/]* | ?:[\\/]* ) . $cache_file;;
1415     *) . ./$cache_file;;
1416     esac
1417     fi
1418 nigel 41 else
1419 nigel 63 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420 nigel 53 echo "$as_me: creating cache $cache_file" >&6;}
1421     >$cache_file
1422 nigel 41 fi
1423    
1424 nigel 53 # Check that the precious variables saved in the cache have kept the same
1425     # value.
1426 nigel 63 ac_cache_corrupted=false
1427 nigel 53 for ac_var in `(set) 2>&1 |
1428 nigel 75 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429 nigel 53 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430     eval ac_new_set=\$ac_env_${ac_var}_set
1431     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432     eval ac_new_val="\$ac_env_${ac_var}_value"
1433     case $ac_old_set,$ac_new_set in
1434     set,)
1435 nigel 63 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437     ac_cache_corrupted=: ;;
1438 nigel 53 ,set)
1439 nigel 63 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441     ac_cache_corrupted=: ;;
1442 nigel 53 ,);;
1443     *)
1444     if test "x$ac_old_val" != "x$ac_new_val"; then
1445 nigel 75 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446 nigel 63 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447 nigel 75 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1448 nigel 63 echo "$as_me: former value: $ac_old_val" >&2;}
1449 nigel 75 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1450 nigel 63 echo "$as_me: current value: $ac_new_val" >&2;}
1451 nigel 75 ac_cache_corrupted=:
1452 nigel 53 fi;;
1453     esac
1454 nigel 63 # Pass precious variables to config.status.
1455     if test "$ac_new_set" = set; then
1456     case $ac_new_val in
1457     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459     *) ac_arg=$ac_var=$ac_new_val ;;
1460     esac
1461     case " $ac_configure_args " in
1462     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464     esac
1465     fi
1466 nigel 53 done
1467 nigel 63 if $ac_cache_corrupted; then
1468     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472     { (exit 1); exit 1; }; }
1473 nigel 53 fi
1474    
1475 nigel 41 ac_ext=c
1476     ac_cpp='$CPP $CPPFLAGS'
1477 nigel 53 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480 nigel 41
1481    
1482    
1483 nigel 63
1484    
1485    
1486    
1487    
1488    
1489    
1490    
1491    
1492    
1493    
1494    
1495    
1496    
1497    
1498    
1499    
1500 nigel 67
1501    
1502    
1503 nigel 63 ac_config_headers="$ac_config_headers config.h:config.in"
1504    
1505    
1506    
1507 nigel 77 PCRE_MAJOR=6
1508 nigel 75 PCRE_MINOR=0
1509 nigel 77 PCRE_DATE=07-Jun-2005
1510 nigel 43 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1511    
1512 nigel 63
1513     POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1514    
1515    
1516 nigel 47 PCRE_LIB_VERSION=0:1:0
1517 nigel 43 PCRE_POSIXLIB_VERSION=0:0:0
1518 nigel 77 PCRE_CPPLIB_VERSION=0:0:0
1519 nigel 43
1520 nigel 63
1521 nigel 53 ac_ext=c
1522     ac_cpp='$CPP $CPPFLAGS'
1523     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526     if test -n "$ac_tool_prefix"; then
1527     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531     if test "${ac_cv_prog_CC+set}" = set; then
1532     echo $ECHO_N "(cached) $ECHO_C" >&6
1533     else
1534     if test -n "$CC"; then
1535     ac_cv_prog_CC="$CC" # Let the user override the test.
1536     else
1537 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538     for as_dir in $PATH
1539     do
1540     IFS=$as_save_IFS
1541     test -z "$as_dir" && as_dir=.
1542     for ac_exec_ext in '' $ac_executable_extensions; do
1543     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547     fi
1548 nigel 53 done
1549 nigel 63 done
1550 nigel 43
1551 nigel 53 fi
1552     fi
1553     CC=$ac_cv_prog_CC
1554     if test -n "$CC"; then
1555 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1556 nigel 53 echo "${ECHO_T}$CC" >&6
1557     else
1558 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1559 nigel 53 echo "${ECHO_T}no" >&6
1560     fi
1561    
1562     fi
1563     if test -z "$ac_cv_prog_CC"; then
1564     ac_ct_CC=$CC
1565     # Extract the first word of "gcc", so it can be a program name with args.
1566 nigel 41 set dummy gcc; ac_word=$2
1567 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570     echo $ECHO_N "(cached) $ECHO_C" >&6
1571 nigel 41 else
1572 nigel 53 if test -n "$ac_ct_CC"; then
1573     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574     else
1575 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576     for as_dir in $PATH
1577     do
1578     IFS=$as_save_IFS
1579     test -z "$as_dir" && as_dir=.
1580     for ac_exec_ext in '' $ac_executable_extensions; do
1581     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_ac_ct_CC="gcc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585     fi
1586 nigel 53 done
1587 nigel 63 done
1588 nigel 53
1589     fi
1590     fi
1591     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592     if test -n "$ac_ct_CC"; then
1593 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1595     else
1596 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1597 nigel 53 echo "${ECHO_T}no" >&6
1598     fi
1599    
1600     CC=$ac_ct_CC
1601     else
1602     CC="$ac_cv_prog_CC"
1603     fi
1604    
1605     if test -z "$CC"; then
1606     if test -n "$ac_tool_prefix"; then
1607     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608     set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611     if test "${ac_cv_prog_CC+set}" = set; then
1612     echo $ECHO_N "(cached) $ECHO_C" >&6
1613     else
1614 nigel 41 if test -n "$CC"; then
1615     ac_cv_prog_CC="$CC" # Let the user override the test.
1616     else
1617 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618     for as_dir in $PATH
1619     do
1620     IFS=$as_save_IFS
1621     test -z "$as_dir" && as_dir=.
1622     for ac_exec_ext in '' $ac_executable_extensions; do
1623     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="${ac_tool_prefix}cc"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627     fi
1628 nigel 53 done
1629 nigel 63 done
1630 nigel 53
1631 nigel 41 fi
1632     fi
1633 nigel 53 CC=$ac_cv_prog_CC
1634 nigel 41 if test -n "$CC"; then
1635 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1636 nigel 53 echo "${ECHO_T}$CC" >&6
1637 nigel 41 else
1638 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1639 nigel 53 echo "${ECHO_T}no" >&6
1640 nigel 41 fi
1641    
1642 nigel 53 fi
1643     if test -z "$ac_cv_prog_CC"; then
1644     ac_ct_CC=$CC
1645     # Extract the first word of "cc", so it can be a program name with args.
1646     set dummy cc; ac_word=$2
1647 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650     echo $ECHO_N "(cached) $ECHO_C" >&6
1651     else
1652     if test -n "$ac_ct_CC"; then
1653     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654     else
1655 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656     for as_dir in $PATH
1657     do
1658     IFS=$as_save_IFS
1659     test -z "$as_dir" && as_dir=.
1660     for ac_exec_ext in '' $ac_executable_extensions; do
1661     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="cc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665     fi
1666 nigel 53 done
1667 nigel 63 done
1668 nigel 53
1669     fi
1670     fi
1671     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672     if test -n "$ac_ct_CC"; then
1673 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1675     else
1676 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1677 nigel 53 echo "${ECHO_T}no" >&6
1678     fi
1679    
1680     CC=$ac_ct_CC
1681     else
1682     CC="$ac_cv_prog_CC"
1683     fi
1684    
1685     fi
1686 nigel 41 if test -z "$CC"; then
1687     # Extract the first word of "cc", so it can be a program name with args.
1688     set dummy cc; ac_word=$2
1689 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691     if test "${ac_cv_prog_CC+set}" = set; then
1692     echo $ECHO_N "(cached) $ECHO_C" >&6
1693 nigel 41 else
1694     if test -n "$CC"; then
1695     ac_cv_prog_CC="$CC" # Let the user override the test.
1696     else
1697     ac_prog_rejected=no
1698 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699     for as_dir in $PATH
1700     do
1701     IFS=$as_save_IFS
1702     test -z "$as_dir" && as_dir=.
1703     for ac_exec_ext in '' $ac_executable_extensions; do
1704     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706     ac_prog_rejected=yes
1707     continue
1708     fi
1709     ac_cv_prog_CC="cc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712     fi
1713 nigel 53 done
1714 nigel 63 done
1715 nigel 53
1716 nigel 41 if test $ac_prog_rejected = yes; then
1717     # We found a bogon in the path, so make sure we never use it.
1718     set dummy $ac_cv_prog_CC
1719     shift
1720 nigel 53 if test $# != 0; then
1721 nigel 41 # We chose a different compiler from the bogus one.
1722     # However, it has the same basename, so the bogon will be chosen
1723     # first if we set CC to just the basename; use the full file name.
1724     shift
1725 nigel 63 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726 nigel 41 fi
1727     fi
1728     fi
1729     fi
1730 nigel 53 CC=$ac_cv_prog_CC
1731 nigel 41 if test -n "$CC"; then
1732 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1733 nigel 53 echo "${ECHO_T}$CC" >&6
1734 nigel 41 else
1735 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1736 nigel 53 echo "${ECHO_T}no" >&6
1737 nigel 41 fi
1738    
1739 nigel 53 fi
1740     if test -z "$CC"; then
1741     if test -n "$ac_tool_prefix"; then
1742     for ac_prog in cl
1743     do
1744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748     if test "${ac_cv_prog_CC+set}" = set; then
1749     echo $ECHO_N "(cached) $ECHO_C" >&6
1750 nigel 41 else
1751     if test -n "$CC"; then
1752     ac_cv_prog_CC="$CC" # Let the user override the test.
1753     else
1754 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755     for as_dir in $PATH
1756     do
1757     IFS=$as_save_IFS
1758     test -z "$as_dir" && as_dir=.
1759     for ac_exec_ext in '' $ac_executable_extensions; do
1760     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764     fi
1765 nigel 53 done
1766 nigel 63 done
1767 nigel 53
1768 nigel 41 fi
1769     fi
1770 nigel 53 CC=$ac_cv_prog_CC
1771 nigel 41 if test -n "$CC"; then
1772 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1773 nigel 53 echo "${ECHO_T}$CC" >&6
1774 nigel 41 else
1775 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1776 nigel 53 echo "${ECHO_T}no" >&6
1777 nigel 41 fi
1778 nigel 53
1779     test -n "$CC" && break
1780     done
1781 nigel 41 fi
1782 nigel 53 if test -z "$CC"; then
1783     ac_ct_CC=$CC
1784     for ac_prog in cl
1785     do
1786     # Extract the first word of "$ac_prog", so it can be a program name with args.
1787     set dummy $ac_prog; ac_word=$2
1788 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791     echo $ECHO_N "(cached) $ECHO_C" >&6
1792     else
1793     if test -n "$ac_ct_CC"; then
1794     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795     else
1796 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797     for as_dir in $PATH
1798     do
1799     IFS=$as_save_IFS
1800     test -z "$as_dir" && as_dir=.
1801     for ac_exec_ext in '' $ac_executable_extensions; do
1802     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="$ac_prog"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806     fi
1807 nigel 53 done
1808 nigel 63 done
1809 nigel 41
1810 nigel 53 fi
1811     fi
1812     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813     if test -n "$ac_ct_CC"; then
1814 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1816     else
1817 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1818 nigel 53 echo "${ECHO_T}no" >&6
1819     fi
1820 nigel 41
1821 nigel 53 test -n "$ac_ct_CC" && break
1822     done
1823 nigel 41
1824 nigel 53 CC=$ac_ct_CC
1825     fi
1826 nigel 41
1827 nigel 53 fi
1828    
1829 nigel 63
1830     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831     See \`config.log' for more details." >&5
1832     echo "$as_me: error: no acceptable C compiler found in \$PATH
1833     See \`config.log' for more details." >&2;}
1834 nigel 53 { (exit 1); exit 1; }; }
1835    
1836 nigel 63 # Provide some information about the compiler.
1837     echo "$as_me:$LINENO:" \
1838     "checking for C compiler version" >&5
1839     ac_compiler=`set X $ac_compile; echo $2`
1840     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841     (eval $ac_compiler --version </dev/null >&5) 2>&5
1842     ac_status=$?
1843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844     (exit $ac_status); }
1845     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846     (eval $ac_compiler -v </dev/null >&5) 2>&5
1847     ac_status=$?
1848     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849     (exit $ac_status); }
1850     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851     (eval $ac_compiler -V </dev/null >&5) 2>&5
1852     ac_status=$?
1853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854     (exit $ac_status); }
1855    
1856 nigel 53 cat >conftest.$ac_ext <<_ACEOF
1857 nigel 63 /* confdefs.h. */
1858     _ACEOF
1859     cat confdefs.h >>conftest.$ac_ext
1860     cat >>conftest.$ac_ext <<_ACEOF
1861     /* end confdefs.h. */
1862 nigel 41
1863 nigel 53 int
1864     main ()
1865     {
1866    
1867     ;
1868     return 0;
1869     }
1870     _ACEOF
1871     ac_clean_files_save=$ac_clean_files
1872 nigel 63 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 nigel 53 # Try to create an executable without -o first, disregard a.out.
1874 nigel 63 # It will help us diagnose broken compilers, and finding out an intuition
1875 nigel 53 # of exeext.
1876 nigel 75 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 nigel 53 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 nigel 53 (eval $ac_link_default) 2>&5
1881     ac_status=$?
1882 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 nigel 53 (exit $ac_status); }; then
1884 nigel 63 # Find the output, starting from the most likely. This scheme is
1885     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886     # resort.
1887    
1888     # Be careful to initialize this variable, since it used to be cached.
1889     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890     ac_cv_exeext=
1891     # b.out is created by i960 compilers.
1892     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893     do
1894     test -f "$ac_file" || continue
1895 nigel 53 case $ac_file in
1896 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 nigel 75 ;;
1898 nigel 63 conftest.$ac_ext )
1899 nigel 75 # This is the source file.
1900     ;;
1901 nigel 63 [ab].out )
1902 nigel 75 # We found the default executable, but exeext='' is most
1903     # certainly right.
1904     break;;
1905 nigel 63 *.* )
1906 nigel 75 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907     # FIXME: I believe we export ac_cv_exeext for Libtool,
1908     # but it would be cool to find out if it's true. Does anybody
1909     # maintain Libtool? --akim.
1910     export ac_cv_exeext
1911     break;;
1912 nigel 63 * )
1913 nigel 75 break;;
1914 nigel 53 esac
1915     done
1916     else
1917     echo "$as_me: failed program was:" >&5
1918 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
1919    
1920     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921     See \`config.log' for more details." >&5
1922     echo "$as_me: error: C compiler cannot create executables
1923     See \`config.log' for more details." >&2;}
1924 nigel 53 { (exit 77); exit 77; }; }
1925     fi
1926    
1927     ac_exeext=$ac_cv_exeext
1928 nigel 63 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 nigel 53 echo "${ECHO_T}$ac_file" >&6
1930    
1931     # Check the compiler produces executables we can run. If not, either
1932     # the compiler is broken, or we cross compile.
1933 nigel 63 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 nigel 53 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936     # If not cross compiling, check that we can run a simple program.
1937     if test "$cross_compiling" != yes; then
1938     if { ac_try='./$ac_file'
1939 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 nigel 53 (eval $ac_try) 2>&5
1941     ac_status=$?
1942 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 nigel 53 (exit $ac_status); }; }; then
1944     cross_compiling=no
1945 nigel 41 else
1946 nigel 53 if test "$cross_compiling" = maybe; then
1947     cross_compiling=yes
1948     else
1949 nigel 63 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950     If you meant to cross compile, use \`--host'.
1951     See \`config.log' for more details." >&5
1952 nigel 53 echo "$as_me: error: cannot run C compiled programs.
1953 nigel 63 If you meant to cross compile, use \`--host'.
1954     See \`config.log' for more details." >&2;}
1955 nigel 53 { (exit 1); exit 1; }; }
1956     fi
1957 nigel 41 fi
1958     fi
1959 nigel 63 echo "$as_me:$LINENO: result: yes" >&5
1960 nigel 53 echo "${ECHO_T}yes" >&6
1961 nigel 41
1962 nigel 63 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 nigel 53 ac_clean_files=$ac_clean_files_save
1964     # Check the compiler produces executables we can run. If not, either
1965     # the compiler is broken, or we cross compile.
1966 nigel 63 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 nigel 53 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 nigel 63 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 nigel 53 echo "${ECHO_T}$cross_compiling" >&6
1970    
1971 nigel 63 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 nigel 53 (eval $ac_link) 2>&5
1975     ac_status=$?
1976 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 nigel 53 (exit $ac_status); }; then
1978     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980     # work properly (i.e., refer to `conftest.exe'), while it won't with
1981     # `rm'.
1982 nigel 63 for ac_file in conftest.exe conftest conftest.*; do
1983     test -f "$ac_file" || continue
1984 nigel 53 case $ac_file in
1985 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 nigel 53 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 nigel 75 export ac_cv_exeext
1988     break;;
1989 nigel 53 * ) break;;
1990     esac
1991     done
1992     else
1993 nigel 63 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994     See \`config.log' for more details." >&5
1995     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996     See \`config.log' for more details." >&2;}
1997 nigel 53 { (exit 1); exit 1; }; }
1998 nigel 41 fi
1999    
2000 nigel 53 rm -f conftest$ac_cv_exeext
2001 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 nigel 53 echo "${ECHO_T}$ac_cv_exeext" >&6
2003    
2004     rm -f conftest.$ac_ext
2005     EXEEXT=$ac_cv_exeext
2006     ac_exeext=$EXEEXT
2007 nigel 63 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 nigel 53 if test "${ac_cv_objext+set}" = set; then
2010     echo $ECHO_N "(cached) $ECHO_C" >&6
2011 nigel 41 else
2012 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2013 nigel 63 /* confdefs.h. */
2014     _ACEOF
2015     cat confdefs.h >>conftest.$ac_ext
2016     cat >>conftest.$ac_ext <<_ACEOF
2017     /* end confdefs.h. */
2018 nigel 53
2019     int
2020     main ()
2021     {
2022    
2023     ;
2024     return 0;
2025     }
2026     _ACEOF
2027     rm -f conftest.o conftest.obj
2028 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 nigel 53 (eval $ac_compile) 2>&5
2030     ac_status=$?
2031 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 nigel 53 (exit $ac_status); }; then
2033     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034     case $ac_file in
2035 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 nigel 53 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037     break;;
2038     esac
2039     done
2040 nigel 41 else
2041 nigel 53 echo "$as_me: failed program was:" >&5
2042 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2043    
2044     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045     See \`config.log' for more details." >&5
2046     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047     See \`config.log' for more details." >&2;}
2048 nigel 53 { (exit 1); exit 1; }; }
2049 nigel 41 fi
2050 nigel 53
2051     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 nigel 41 fi
2053 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 nigel 53 echo "${ECHO_T}$ac_cv_objext" >&6
2055     OBJEXT=$ac_cv_objext
2056     ac_objext=$OBJEXT
2057 nigel 63 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 nigel 53 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060     echo $ECHO_N "(cached) $ECHO_C" >&6
2061     else
2062     cat >conftest.$ac_ext <<_ACEOF
2063 nigel 63 /* confdefs.h. */
2064     _ACEOF
2065     cat confdefs.h >>conftest.$ac_ext
2066     cat >>conftest.$ac_ext <<_ACEOF
2067     /* end confdefs.h. */
2068 nigel 41
2069 nigel 53 int
2070     main ()
2071     {
2072     #ifndef __GNUC__
2073     choke me
2074     #endif
2075 nigel 41
2076 nigel 53 ;
2077     return 0;
2078     }
2079     _ACEOF
2080     rm -f conftest.$ac_objext
2081 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 nigel 75 (eval $ac_compile) 2>conftest.er1
2083 nigel 53 ac_status=$?
2084 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2085     rm -f conftest.er1
2086     cat conftest.err >&5
2087 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 nigel 53 (exit $ac_status); } &&
2089 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2090     || test ! -s conftest.err'
2091 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 nigel 53 (eval $ac_try) 2>&5
2093     ac_status=$?
2094 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 nigel 75 (exit $ac_status); }; } &&
2096     { ac_try='test -s conftest.$ac_objext'
2097     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098     (eval $ac_try) 2>&5
2099     ac_status=$?
2100     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 nigel 53 (exit $ac_status); }; }; then
2102     ac_compiler_gnu=yes
2103 nigel 41 else
2104 nigel 53 echo "$as_me: failed program was:" >&5
2105 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2106    
2107 nigel 53 ac_compiler_gnu=no
2108 nigel 41 fi
2109 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 nigel 53 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 nigel 41
2112 nigel 53 fi
2113 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 nigel 53 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115     GCC=`test $ac_compiler_gnu = yes && echo yes`
2116     ac_test_CFLAGS=${CFLAGS+set}
2117     ac_save_CFLAGS=$CFLAGS
2118     CFLAGS="-g"
2119 nigel 63 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 nigel 53 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121     if test "${ac_cv_prog_cc_g+set}" = set; then
2122     echo $ECHO_N "(cached) $ECHO_C" >&6
2123 nigel 41 else
2124 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2125 nigel 63 /* confdefs.h. */
2126     _ACEOF
2127     cat confdefs.h >>conftest.$ac_ext
2128     cat >>conftest.$ac_ext <<_ACEOF
2129     /* end confdefs.h. */
2130 nigel 53
2131     int
2132     main ()
2133     {
2134    
2135     ;
2136     return 0;
2137     }
2138     _ACEOF
2139     rm -f conftest.$ac_objext
2140 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 nigel 75 (eval $ac_compile) 2>conftest.er1
2142 nigel 53 ac_status=$?
2143 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2144     rm -f conftest.er1
2145     cat conftest.err >&5
2146 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 nigel 53 (exit $ac_status); } &&
2148 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2149     || test ! -s conftest.err'
2150 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 nigel 53 (eval $ac_try) 2>&5
2152     ac_status=$?
2153 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 nigel 75 (exit $ac_status); }; } &&
2155     { ac_try='test -s conftest.$ac_objext'
2156     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157     (eval $ac_try) 2>&5
2158     ac_status=$?
2159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 nigel 53 (exit $ac_status); }; }; then
2161 nigel 41 ac_cv_prog_cc_g=yes
2162     else
2163 nigel 53 echo "$as_me: failed program was:" >&5
2164 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2165    
2166 nigel 53 ac_cv_prog_cc_g=no
2167 nigel 41 fi
2168 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 nigel 41 fi
2170 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 nigel 53 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 nigel 41 if test "$ac_test_CFLAGS" = set; then
2173 nigel 53 CFLAGS=$ac_save_CFLAGS
2174 nigel 41 elif test $ac_cv_prog_cc_g = yes; then
2175     if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177     else
2178     CFLAGS="-g"
2179     fi
2180     else
2181     if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183     else
2184     CFLAGS=
2185     fi
2186     fi
2187 nigel 63 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190     echo $ECHO_N "(cached) $ECHO_C" >&6
2191     else
2192     ac_cv_prog_cc_stdc=no
2193     ac_save_CC=$CC
2194     cat >conftest.$ac_ext <<_ACEOF
2195     /* confdefs.h. */
2196     _ACEOF
2197     cat confdefs.h >>conftest.$ac_ext
2198     cat >>conftest.$ac_ext <<_ACEOF
2199     /* end confdefs.h. */
2200     #include <stdarg.h>
2201     #include <stdio.h>
2202     #include <sys/types.h>
2203     #include <sys/stat.h>
2204     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205     struct buf { int x; };
2206     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207     static char *e (p, i)
2208     char **p;
2209     int i;
2210     {
2211     return p[i];
2212     }
2213     static char *f (char * (*g) (char **, int), char **p, ...)
2214     {
2215     char *s;
2216     va_list v;
2217     va_start (v,p);
2218     s = g (p, va_arg (v,int));
2219     va_end (v);
2220     return s;
2221     }
2222 nigel 75
2223     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224     function prototypes and stuff, but not '\xHH' hex character constants.
2225     These don't provoke an error unfortunately, instead are silently treated
2226     as 'x'. The following induces an error, until -std1 is added to get
2227     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228     array size at least. It's necessary to write '\x00'==0 to get something
2229     that's true only with -std1. */
2230     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231    
2232 nigel 63 int test (int i, double x);
2233     struct s1 {int (*f) (int a);};
2234     struct s2 {int (*f) (double a);};
2235     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236     int argc;
2237     char **argv;
2238     int
2239     main ()
2240     {
2241     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2242     ;
2243     return 0;
2244     }
2245     _ACEOF
2246     # Don't try gcc -ansi; that turns off useful extensions and
2247     # breaks some systems' header files.
2248     # AIX -qlanglvl=ansi
2249     # Ultrix and OSF/1 -std1
2250     # HP-UX 10.20 and later -Ae
2251     # HP-UX older versions -Aa -D_HPUX_SOURCE
2252     # SVR4 -Xc -D__EXTENSIONS__
2253     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254     do
2255     CC="$ac_save_CC $ac_arg"
2256     rm -f conftest.$ac_objext
2257     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 nigel 75 (eval $ac_compile) 2>conftest.er1
2259 nigel 63 ac_status=$?
2260 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2261     rm -f conftest.er1
2262     cat conftest.err >&5
2263 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264     (exit $ac_status); } &&
2265 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2266     || test ! -s conftest.err'
2267 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268     (eval $ac_try) 2>&5
2269     ac_status=$?
2270     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 nigel 75 (exit $ac_status); }; } &&
2272     { ac_try='test -s conftest.$ac_objext'
2273     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274     (eval $ac_try) 2>&5
2275     ac_status=$?
2276     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 nigel 63 (exit $ac_status); }; }; then
2278     ac_cv_prog_cc_stdc=$ac_arg
2279     break
2280     else
2281     echo "$as_me: failed program was:" >&5
2282     sed 's/^/| /' conftest.$ac_ext >&5
2283    
2284     fi
2285 nigel 75 rm -f conftest.err conftest.$ac_objext
2286 nigel 63 done
2287     rm -f conftest.$ac_ext conftest.$ac_objext
2288     CC=$ac_save_CC
2289    
2290     fi
2291    
2292     case "x$ac_cv_prog_cc_stdc" in
2293     x|xno)
2294     echo "$as_me:$LINENO: result: none needed" >&5
2295     echo "${ECHO_T}none needed" >&6 ;;
2296     *)
2297     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299     CC="$CC $ac_cv_prog_cc_stdc" ;;
2300     esac
2301    
2302 nigel 53 # Some people use a C++ compiler to compile C. Since we use `exit',
2303     # in C++ we need to declare it. In case someone uses the same compiler
2304     # for both compiling C and C++ we need to have the C++ compiler decide
2305     # the declaration of exit, since it's the most demanding environment.
2306     cat >conftest.$ac_ext <<_ACEOF
2307     #ifndef __cplusplus
2308     choke me
2309     #endif
2310     _ACEOF
2311     rm -f conftest.$ac_objext
2312 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 nigel 75 (eval $ac_compile) 2>conftest.er1
2314 nigel 53 ac_status=$?
2315 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2316     rm -f conftest.er1
2317     cat conftest.err >&5
2318 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 nigel 53 (exit $ac_status); } &&
2320 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2321     || test ! -s conftest.err'
2322 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 nigel 53 (eval $ac_try) 2>&5
2324     ac_status=$?
2325 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 nigel 75 (exit $ac_status); }; } &&
2327     { ac_try='test -s conftest.$ac_objext'
2328     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329     (eval $ac_try) 2>&5
2330     ac_status=$?
2331     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 nigel 53 (exit $ac_status); }; }; then
2333     for ac_declaration in \
2334 nigel 75 '' \
2335 nigel 53 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336     'extern "C" void std::exit (int); using std::exit;' \
2337     'extern "C" void exit (int) throw ();' \
2338     'extern "C" void exit (int);' \
2339     'void exit (int);'
2340     do
2341     cat >conftest.$ac_ext <<_ACEOF
2342 nigel 63 /* confdefs.h. */
2343     _ACEOF
2344     cat confdefs.h >>conftest.$ac_ext
2345     cat >>conftest.$ac_ext <<_ACEOF
2346     /* end confdefs.h. */
2347 nigel 75 $ac_declaration
2348 nigel 53 #include <stdlib.h>
2349     int
2350     main ()
2351     {
2352     exit (42);
2353     ;
2354     return 0;
2355     }
2356     _ACEOF
2357     rm -f conftest.$ac_objext
2358 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 nigel 75 (eval $ac_compile) 2>conftest.er1
2360 nigel 53 ac_status=$?
2361 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2362     rm -f conftest.er1
2363     cat conftest.err >&5
2364 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 nigel 53 (exit $ac_status); } &&
2366 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2367     || test ! -s conftest.err'
2368 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 nigel 53 (eval $ac_try) 2>&5
2370     ac_status=$?
2371 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 nigel 75 (exit $ac_status); }; } &&
2373     { ac_try='test -s conftest.$ac_objext'
2374     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375     (eval $ac_try) 2>&5
2376     ac_status=$?
2377     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 nigel 53 (exit $ac_status); }; }; then
2379     :
2380     else
2381     echo "$as_me: failed program was:" >&5
2382 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2383    
2384 nigel 53 continue
2385     fi
2386 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2388 nigel 63 /* confdefs.h. */
2389     _ACEOF
2390     cat confdefs.h >>conftest.$ac_ext
2391     cat >>conftest.$ac_ext <<_ACEOF
2392     /* end confdefs.h. */
2393 nigel 53 $ac_declaration
2394     int
2395     main ()
2396     {
2397     exit (42);
2398     ;
2399     return 0;
2400     }
2401     _ACEOF
2402     rm -f conftest.$ac_objext
2403 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 nigel 75 (eval $ac_compile) 2>conftest.er1
2405 nigel 53 ac_status=$?
2406 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2407     rm -f conftest.er1
2408     cat conftest.err >&5
2409 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 nigel 53 (exit $ac_status); } &&
2411 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2412     || test ! -s conftest.err'
2413 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 nigel 53 (eval $ac_try) 2>&5
2415     ac_status=$?
2416 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 nigel 75 (exit $ac_status); }; } &&
2418     { ac_try='test -s conftest.$ac_objext'
2419     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420     (eval $ac_try) 2>&5
2421     ac_status=$?
2422     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 nigel 53 (exit $ac_status); }; }; then
2424     break
2425     else
2426     echo "$as_me: failed program was:" >&5
2427 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2428    
2429 nigel 53 fi
2430 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 nigel 53 done
2432 nigel 63 rm -f conftest*
2433     if test -n "$ac_declaration"; then
2434     echo '#ifdef __cplusplus' >>confdefs.h
2435     echo $ac_declaration >>confdefs.h
2436     echo '#endif' >>confdefs.h
2437     fi
2438 nigel 41
2439     else
2440 nigel 53 echo "$as_me: failed program was:" >&5
2441 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2442    
2443 nigel 53 fi
2444 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 nigel 53 ac_ext=c
2446     ac_cpp='$CPP $CPPFLAGS'
2447     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450    
2451 nigel 75
2452    
2453 nigel 77 ac_ext=cc
2454     ac_cpp='$CXXCPP $CPPFLAGS'
2455     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458     if test -n "$ac_tool_prefix"; then
2459     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460     do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463     echo "$as_me:$LINENO: checking for $ac_word" >&5
2464     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465     if test "${ac_cv_prog_CXX+set}" = set; then
2466     echo $ECHO_N "(cached) $ECHO_C" >&6
2467     else
2468     if test -n "$CXX"; then
2469     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470     else
2471     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472     for as_dir in $PATH
2473     do
2474     IFS=$as_save_IFS
2475     test -z "$as_dir" && as_dir=.
2476     for ac_exec_ext in '' $ac_executable_extensions; do
2477     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481     fi
2482     done
2483     done
2484    
2485     fi
2486     fi
2487     CXX=$ac_cv_prog_CXX
2488     if test -n "$CXX"; then
2489     echo "$as_me:$LINENO: result: $CXX" >&5
2490     echo "${ECHO_T}$CXX" >&6
2491     else
2492     echo "$as_me:$LINENO: result: no" >&5
2493     echo "${ECHO_T}no" >&6
2494     fi
2495    
2496     test -n "$CXX" && break
2497     done
2498     fi
2499     if test -z "$CXX"; then
2500     ac_ct_CXX=$CXX
2501     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502     do
2503     # Extract the first word of "$ac_prog", so it can be a program name with args.
2504     set dummy $ac_prog; ac_word=$2
2505     echo "$as_me:$LINENO: checking for $ac_word" >&5
2506     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508     echo $ECHO_N "(cached) $ECHO_C" >&6
2509     else
2510     if test -n "$ac_ct_CXX"; then
2511     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512     else
2513     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514     for as_dir in $PATH
2515     do
2516     IFS=$as_save_IFS
2517     test -z "$as_dir" && as_dir=.
2518     for ac_exec_ext in '' $ac_executable_extensions; do
2519     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CXX="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523     fi
2524     done
2525     done
2526    
2527     fi
2528     fi
2529     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530     if test -n "$ac_ct_CXX"; then
2531     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532     echo "${ECHO_T}$ac_ct_CXX" >&6
2533     else
2534     echo "$as_me:$LINENO: result: no" >&5
2535     echo "${ECHO_T}no" >&6
2536     fi
2537    
2538     test -n "$ac_ct_CXX" && break
2539     done
2540     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541    
2542     CXX=$ac_ct_CXX
2543     fi
2544    
2545    
2546     # Provide some information about the compiler.
2547     echo "$as_me:$LINENO:" \
2548     "checking for C++ compiler version" >&5
2549     ac_compiler=`set X $ac_compile; echo $2`
2550     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551     (eval $ac_compiler --version </dev/null >&5) 2>&5
2552     ac_status=$?
2553     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554     (exit $ac_status); }
2555     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556     (eval $ac_compiler -v </dev/null >&5) 2>&5
2557     ac_status=$?
2558     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559     (exit $ac_status); }
2560     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561     (eval $ac_compiler -V </dev/null >&5) 2>&5
2562     ac_status=$?
2563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564     (exit $ac_status); }
2565    
2566     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569     echo $ECHO_N "(cached) $ECHO_C" >&6
2570     else
2571     cat >conftest.$ac_ext <<_ACEOF
2572     /* confdefs.h. */
2573     _ACEOF
2574     cat confdefs.h >>conftest.$ac_ext
2575     cat >>conftest.$ac_ext <<_ACEOF
2576     /* end confdefs.h. */
2577    
2578     int
2579     main ()
2580     {
2581     #ifndef __GNUC__
2582     choke me
2583     #endif
2584    
2585     ;
2586     return 0;
2587     }
2588     _ACEOF
2589     rm -f conftest.$ac_objext
2590     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591     (eval $ac_compile) 2>conftest.er1
2592     ac_status=$?
2593     grep -v '^ *+' conftest.er1 >conftest.err
2594     rm -f conftest.er1
2595     cat conftest.err >&5
2596     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597     (exit $ac_status); } &&
2598     { ac_try='test -z "$ac_cxx_werror_flag"
2599     || test ! -s conftest.err'
2600     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601     (eval $ac_try) 2>&5
2602     ac_status=$?
2603     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604     (exit $ac_status); }; } &&
2605     { ac_try='test -s conftest.$ac_objext'
2606     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607     (eval $ac_try) 2>&5
2608     ac_status=$?
2609     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610     (exit $ac_status); }; }; then
2611     ac_compiler_gnu=yes
2612     else
2613     echo "$as_me: failed program was:" >&5
2614     sed 's/^/| /' conftest.$ac_ext >&5
2615    
2616     ac_compiler_gnu=no
2617     fi
2618     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620    
2621     fi
2622     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624     GXX=`test $ac_compiler_gnu = yes && echo yes`
2625     ac_test_CXXFLAGS=${CXXFLAGS+set}
2626     ac_save_CXXFLAGS=$CXXFLAGS
2627     CXXFLAGS="-g"
2628     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630     if test "${ac_cv_prog_cxx_g+set}" = set; then
2631     echo $ECHO_N "(cached) $ECHO_C" >&6
2632     else
2633     cat >conftest.$ac_ext <<_ACEOF
2634     /* confdefs.h. */
2635     _ACEOF
2636     cat confdefs.h >>conftest.$ac_ext
2637     cat >>conftest.$ac_ext <<_ACEOF
2638     /* end confdefs.h. */
2639    
2640     int
2641     main ()
2642     {
2643    
2644     ;
2645     return 0;
2646     }
2647     _ACEOF
2648     rm -f conftest.$ac_objext
2649     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650     (eval $ac_compile) 2>conftest.er1
2651     ac_status=$?
2652     grep -v '^ *+' conftest.er1 >conftest.err
2653     rm -f conftest.er1
2654     cat conftest.err >&5
2655     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656     (exit $ac_status); } &&
2657     { ac_try='test -z "$ac_cxx_werror_flag"
2658     || test ! -s conftest.err'
2659     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660     (eval $ac_try) 2>&5
2661     ac_status=$?
2662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663     (exit $ac_status); }; } &&
2664     { ac_try='test -s conftest.$ac_objext'
2665     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666     (eval $ac_try) 2>&5
2667     ac_status=$?
2668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669     (exit $ac_status); }; }; then
2670     ac_cv_prog_cxx_g=yes
2671     else
2672     echo "$as_me: failed program was:" >&5
2673     sed 's/^/| /' conftest.$ac_ext >&5
2674    
2675     ac_cv_prog_cxx_g=no
2676     fi
2677     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678     fi
2679     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681     if test "$ac_test_CXXFLAGS" = set; then
2682     CXXFLAGS=$ac_save_CXXFLAGS
2683     elif test $ac_cv_prog_cxx_g = yes; then
2684     if test "$GXX" = yes; then
2685     CXXFLAGS="-g -O2"
2686     else
2687     CXXFLAGS="-g"
2688     fi
2689     else
2690     if test "$GXX" = yes; then
2691     CXXFLAGS="-O2"
2692     else
2693     CXXFLAGS=
2694     fi
2695     fi
2696     for ac_declaration in \
2697     '' \
2698     'extern "C" void std::exit (int) throw (); using std::exit;' \
2699     'extern "C" void std::exit (int); using std::exit;' \
2700     'extern "C" void exit (int) throw ();' \
2701     'extern "C" void exit (int);' \
2702     'void exit (int);'
2703     do
2704     cat >conftest.$ac_ext <<_ACEOF
2705     /* confdefs.h. */
2706     _ACEOF
2707     cat confdefs.h >>conftest.$ac_ext
2708     cat >>conftest.$ac_ext <<_ACEOF
2709     /* end confdefs.h. */
2710     $ac_declaration
2711     #include <stdlib.h>
2712     int
2713     main ()
2714     {
2715     exit (42);
2716     ;
2717     return 0;
2718     }
2719     _ACEOF
2720     rm -f conftest.$ac_objext
2721     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722     (eval $ac_compile) 2>conftest.er1
2723     ac_status=$?
2724     grep -v '^ *+' conftest.er1 >conftest.err
2725     rm -f conftest.er1
2726     cat conftest.err >&5
2727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728     (exit $ac_status); } &&
2729     { ac_try='test -z "$ac_cxx_werror_flag"
2730     || test ! -s conftest.err'
2731     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732     (eval $ac_try) 2>&5
2733     ac_status=$?
2734     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735     (exit $ac_status); }; } &&
2736     { ac_try='test -s conftest.$ac_objext'
2737     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738     (eval $ac_try) 2>&5
2739     ac_status=$?
2740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741     (exit $ac_status); }; }; then
2742     :
2743     else
2744     echo "$as_me: failed program was:" >&5
2745     sed 's/^/| /' conftest.$ac_ext >&5
2746    
2747     continue
2748     fi
2749     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750     cat >conftest.$ac_ext <<_ACEOF
2751     /* confdefs.h. */
2752     _ACEOF
2753     cat confdefs.h >>conftest.$ac_ext
2754     cat >>conftest.$ac_ext <<_ACEOF
2755     /* end confdefs.h. */
2756     $ac_declaration
2757     int
2758     main ()
2759     {
2760     exit (42);
2761     ;
2762     return 0;
2763     }
2764     _ACEOF
2765     rm -f conftest.$ac_objext
2766     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767     (eval $ac_compile) 2>conftest.er1
2768     ac_status=$?
2769     grep -v '^ *+' conftest.er1 >conftest.err
2770     rm -f conftest.er1
2771     cat conftest.err >&5
2772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773     (exit $ac_status); } &&
2774     { ac_try='test -z "$ac_cxx_werror_flag"
2775     || test ! -s conftest.err'
2776     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777     (eval $ac_try) 2>&5
2778     ac_status=$?
2779     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780     (exit $ac_status); }; } &&
2781     { ac_try='test -s conftest.$ac_objext'
2782     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783     (eval $ac_try) 2>&5
2784     ac_status=$?
2785     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786     (exit $ac_status); }; }; then
2787     break
2788     else
2789     echo "$as_me: failed program was:" >&5
2790     sed 's/^/| /' conftest.$ac_ext >&5
2791    
2792     fi
2793     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794     done
2795     rm -f conftest*
2796     if test -n "$ac_declaration"; then
2797     echo '#ifdef __cplusplus' >>confdefs.h
2798     echo $ac_declaration >>confdefs.h
2799     echo '#endif' >>confdefs.h
2800     fi
2801    
2802     ac_ext=c
2803     ac_cpp='$CPP $CPPFLAGS'
2804     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807    
2808    
2809     if test -n "$ac_cv_prog_ac_ct_CXX"; then
2810     MAYBE_CPP_TARGETS='$(CPP_TARGETS)'
2811     fi
2812     echo "Maybe-cpp-targets: '$ac_cv_prog_CXX' '$MAYBE_CPP_TARGETS'" #!!
2813    
2814    
2815    
2816 nigel 53 ac_aux_dir=
2817     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2818     if test -f $ac_dir/install-sh; then
2819     ac_aux_dir=$ac_dir
2820     ac_install_sh="$ac_aux_dir/install-sh -c"
2821     break
2822     elif test -f $ac_dir/install.sh; then
2823     ac_aux_dir=$ac_dir
2824     ac_install_sh="$ac_aux_dir/install.sh -c"
2825     break
2826     elif test -f $ac_dir/shtool; then
2827     ac_aux_dir=$ac_dir
2828     ac_install_sh="$ac_aux_dir/shtool install -c"
2829     break
2830     fi
2831     done
2832     if test -z "$ac_aux_dir"; then
2833 nigel 63 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2834 nigel 53 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2835     { (exit 1); exit 1; }; }
2836     fi
2837     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2838     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2839     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2840    
2841     # Find a good install program. We prefer a C program (faster),
2842     # so one script is as good as another. But avoid the broken or
2843     # incompatible versions:
2844     # SysV /etc/install, /usr/sbin/install
2845     # SunOS /usr/etc/install
2846     # IRIX /sbin/install
2847     # AIX /bin/install
2848     # AmigaOS /C/install, which installs bootblocks on floppy discs
2849     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2850     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2851     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2852 nigel 75 # OS/2's system install, which has a completely different semantic
2853 nigel 53 # ./install, which can be erroneously created by make from ./install.sh.
2854 nigel 63 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2855     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2856 nigel 53 if test -z "$INSTALL"; then
2857     if test "${ac_cv_path_install+set}" = set; then
2858     echo $ECHO_N "(cached) $ECHO_C" >&6
2859     else
2860 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861     for as_dir in $PATH
2862     do
2863     IFS=$as_save_IFS
2864     test -z "$as_dir" && as_dir=.
2865     # Account for people who put trailing slashes in PATH elements.
2866     case $as_dir/ in
2867     ./ | .// | /cC/* | \
2868     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2869 nigel 75 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2870 nigel 63 /usr/ucb/* ) ;;
2871     *)
2872     # OSF1 and SCO ODT 3.0 have their own names for install.
2873     # Don't use installbsd from OSF since it installs stuff as root
2874     # by default.
2875     for ac_prog in ginstall scoinst install; do
2876     for ac_exec_ext in '' $ac_executable_extensions; do
2877 nigel 75 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2878     if test $ac_prog = install &&
2879     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880     # AIX install. It has an incompatible calling convention.
2881     :
2882     elif test $ac_prog = install &&
2883     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884     # program-specific install script used by HP pwplus--don't use.
2885     :
2886     else
2887     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2888     break 3
2889     fi
2890     fi
2891 nigel 53 done
2892 nigel 63 done
2893     ;;
2894     esac
2895     done
2896 nigel 53
2897 nigel 63
2898 nigel 53 fi
2899     if test "${ac_cv_path_install+set}" = set; then
2900     INSTALL=$ac_cv_path_install
2901     else
2902     # As a last resort, use the slow shell script. We don't cache a
2903     # path for INSTALL within a source directory, because that will
2904     # break other packages using the cache if that directory is
2905     # removed, or if the path is relative.
2906     INSTALL=$ac_install_sh
2907     fi
2908     fi
2909 nigel 63 echo "$as_me:$LINENO: result: $INSTALL" >&5
2910 nigel 53 echo "${ECHO_T}$INSTALL" >&6
2911    
2912     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913     # It thinks the first close brace ends the variable substitution.
2914     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915    
2916     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917    
2918     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919    
2920    
2921 nigel 75
2922 nigel 53 # Check whether --enable-shared or --disable-shared was given.
2923     if test "${enable_shared+set}" = set; then
2924     enableval="$enable_shared"
2925     p=${PACKAGE-default}
2926 nigel 75 case $enableval in
2927     yes) enable_shared=yes ;;
2928     no) enable_shared=no ;;
2929     *)
2930     enable_shared=no
2931     # Look at the argument we got. We use all the common list separators.
2932     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2933     for pkg in $enableval; do
2934     IFS="$lt_save_ifs"
2935     if test "X$pkg" = "X$p"; then
2936     enable_shared=yes
2937     fi
2938     done
2939     IFS="$lt_save_ifs"
2940     ;;
2941     esac
2942 nigel 53 else
2943     enable_shared=yes
2944     fi;
2945 nigel 75
2946 nigel 53 # Check whether --enable-static or --disable-static was given.
2947     if test "${enable_static+set}" = set; then
2948     enableval="$enable_static"
2949     p=${PACKAGE-default}
2950 nigel 75 case $enableval in
2951     yes) enable_static=yes ;;
2952     no) enable_static=no ;;
2953     *)
2954     enable_static=no
2955     # Look at the argument we got. We use all the common list separators.
2956     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2957     for pkg in $enableval; do
2958     IFS="$lt_save_ifs"
2959     if test "X$pkg" = "X$p"; then
2960     enable_static=yes
2961     fi
2962     done
2963     IFS="$lt_save_ifs"
2964     ;;
2965     esac
2966 nigel 53 else
2967     enable_static=yes
2968     fi;
2969 nigel 75
2970 nigel 53 # Check whether --enable-fast-install or --disable-fast-install was given.
2971     if test "${enable_fast_install+set}" = set; then
2972     enableval="$enable_fast_install"
2973     p=${PACKAGE-default}
2974 nigel 75 case $enableval in
2975     yes) enable_fast_install=yes ;;
2976     no) enable_fast_install=no ;;
2977     *)
2978     enable_fast_install=no
2979     # Look at the argument we got. We use all the common list separators.
2980     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2981     for pkg in $enableval; do
2982     IFS="$lt_save_ifs"
2983     if test "X$pkg" = "X$p"; then
2984     enable_fast_install=yes
2985     fi
2986     done
2987     IFS="$lt_save_ifs"
2988     ;;
2989     esac
2990 nigel 53 else
2991     enable_fast_install=yes
2992     fi;
2993 nigel 75
2994 nigel 53 # Make sure we can run config.sub.
2995     $ac_config_sub sun4 >/dev/null 2>&1 ||
2996 nigel 63 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2997 nigel 53 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2998     { (exit 1); exit 1; }; }
2999    
3000 nigel 63 echo "$as_me:$LINENO: checking build system type" >&5
3001 nigel 53 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3002     if test "${ac_cv_build+set}" = set; then
3003     echo $ECHO_N "(cached) $ECHO_C" >&6
3004     else
3005     ac_cv_build_alias=$build_alias
3006     test -z "$ac_cv_build_alias" &&
3007     ac_cv_build_alias=`$ac_config_guess`
3008     test -z "$ac_cv_build_alias" &&
3009 nigel 63 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3010 nigel 53 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3011     { (exit 1); exit 1; }; }
3012     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3013 nigel 63 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3014     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3015 nigel 53 { (exit 1); exit 1; }; }
3016    
3017     fi
3018 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3019 nigel 53 echo "${ECHO_T}$ac_cv_build" >&6
3020     build=$ac_cv_build
3021     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3022     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3023     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3024    
3025 nigel 63
3026     echo "$as_me:$LINENO: checking host system type" >&5
3027 nigel 53 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3028     if test "${ac_cv_host+set}" = set; then
3029     echo $ECHO_N "(cached) $ECHO_C" >&6
3030     else
3031     ac_cv_host_alias=$host_alias
3032     test -z "$ac_cv_host_alias" &&
3033     ac_cv_host_alias=$ac_cv_build_alias
3034     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3035 nigel 63 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3036 nigel 53 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3037     { (exit 1); exit 1; }; }
3038    
3039     fi
3040 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3041 nigel 53 echo "${ECHO_T}$ac_cv_host" >&6
3042     host=$ac_cv_host
3043     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3044     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3045     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3046    
3047 nigel 63
3048 nigel 75 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3049     echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3050     if test "${lt_cv_path_SED+set}" = set; then
3051     echo $ECHO_N "(cached) $ECHO_C" >&6
3052     else
3053     # Loop through the user's path and test for sed and gsed.
3054     # Then use that list of sed's as ones to test for truncation.
3055     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056     for as_dir in $PATH
3057     do
3058     IFS=$as_save_IFS
3059     test -z "$as_dir" && as_dir=.
3060     for lt_ac_prog in sed gsed; do
3061     for ac_exec_ext in '' $ac_executable_extensions; do
3062     if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3063     lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3064     fi
3065     done
3066     done
3067     done
3068     lt_ac_max=0
3069     lt_ac_count=0
3070     # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3071     # along with /bin/sed that truncates output.
3072     for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3073     test ! -f $lt_ac_sed && break
3074     cat /dev/null > conftest.in
3075     lt_ac_count=0
3076     echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3077     # Check for GNU sed and select it if it is found.
3078     if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3079     lt_cv_path_SED=$lt_ac_sed
3080     break
3081     fi
3082     while true; do
3083     cat conftest.in conftest.in >conftest.tmp
3084     mv conftest.tmp conftest.in
3085     cp conftest.in conftest.nl
3086     echo >>conftest.nl
3087     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3088     cmp -s conftest.out conftest.nl || break
3089     # 10000 chars as input seems more than enough
3090     test $lt_ac_count -gt 10 && break
3091     lt_ac_count=`expr $lt_ac_count + 1`
3092     if test $lt_ac_count -gt $lt_ac_max; then
3093     lt_ac_max=$lt_ac_count
3094     lt_cv_path_SED=$lt_ac_sed
3095     fi
3096     done
3097     done
3098 nigel 63
3099 nigel 75 fi
3100    
3101     SED=$lt_cv_path_SED
3102     echo "$as_me:$LINENO: result: $SED" >&5
3103     echo "${ECHO_T}$SED" >&6
3104    
3105     echo "$as_me:$LINENO: checking for egrep" >&5
3106     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3107     if test "${ac_cv_prog_egrep+set}" = set; then
3108     echo $ECHO_N "(cached) $ECHO_C" >&6
3109     else
3110     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3111     then ac_cv_prog_egrep='grep -E'
3112     else ac_cv_prog_egrep='egrep'
3113     fi
3114     fi
3115     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3116     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3117     EGREP=$ac_cv_prog_egrep
3118    
3119    
3120    
3121 nigel 53 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3122     if test "${with_gnu_ld+set}" = set; then
3123     withval="$with_gnu_ld"
3124     test "$withval" = no || with_gnu_ld=yes
3125     else
3126     with_gnu_ld=no
3127     fi;
3128     ac_prog=ld
3129     if test "$GCC" = yes; then
3130     # Check if gcc -print-prog-name=ld gives a path.
3131 nigel 75 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3132     echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3133 nigel 53 case $host in
3134     *-*-mingw*)
3135     # gcc leaves a trailing carriage return which upsets mingw
3136     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3137     *)
3138     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3139     esac
3140     case $ac_prog in
3141     # Accept absolute paths.
3142 nigel 75 [\\/]* | ?:[\\/]*)
3143 nigel 53 re_direlt='/[^/][^/]*/\.\./'
3144 nigel 75 # Canonicalize the pathname of ld
3145     ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3146 nigel 53 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3147 nigel 75 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3148 nigel 53 done
3149     test -z "$LD" && LD="$ac_prog"
3150     ;;
3151     "")
3152     # If it fails, then pretend we aren't using GCC.
3153     ac_prog=ld
3154     ;;
3155     *)
3156     # If it is relative, then search for the first ld in PATH.
3157     with_gnu_ld=unknown
3158     ;;
3159     esac
3160     elif test "$with_gnu_ld" = yes; then
3161 nigel 63 echo "$as_me:$LINENO: checking for GNU ld" >&5
3162 nigel 53 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3163     else
3164 nigel 63 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3165 nigel 53 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3166     fi
3167     if test "${lt_cv_path_LD+set}" = set; then
3168     echo $ECHO_N "(cached) $ECHO_C" >&6
3169     else
3170     if test -z "$LD"; then
3171 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3172 nigel 53 for ac_dir in $PATH; do
3173 nigel 75 IFS="$lt_save_ifs"
3174 nigel 53 test -z "$ac_dir" && ac_dir=.
3175     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3176     lt_cv_path_LD="$ac_dir/$ac_prog"
3177     # Check to see if the program is GNU ld. I'd rather use --version,
3178     # but apparently some GNU ld's only accept -v.
3179     # Break only if it was the GNU/non-GNU ld that we prefer.
3180 nigel 75 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3181     *GNU* | *'with BFD'*)
3182 nigel 53 test "$with_gnu_ld" != no && break
3183 nigel 75 ;;
3184     *)
3185 nigel 53 test "$with_gnu_ld" != yes && break
3186 nigel 75 ;;
3187     esac
3188 nigel 53 fi
3189     done
3190 nigel 75 IFS="$lt_save_ifs"
3191 nigel 53 else
3192     lt_cv_path_LD="$LD" # Let the user override the test with a path.
3193     fi
3194     fi
3195    
3196     LD="$lt_cv_path_LD"
3197     if test -n "$LD"; then
3198 nigel 63 echo "$as_me:$LINENO: result: $LD" >&5
3199 nigel 53 echo "${ECHO_T}$LD" >&6
3200     else
3201 nigel 63 echo "$as_me:$LINENO: result: no" >&5
3202 nigel 53 echo "${ECHO_T}no" >&6
3203     fi
3204 nigel 63 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3205 nigel 53 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3206     { (exit 1); exit 1; }; }
3207 nigel 63 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3208 nigel 53 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3209     if test "${lt_cv_prog_gnu_ld+set}" = set; then
3210     echo $ECHO_N "(cached) $ECHO_C" >&6
3211     else
3212     # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3213 nigel 75 case `$LD -v 2>&1 </dev/null` in
3214     *GNU* | *'with BFD'*)
3215 nigel 53 lt_cv_prog_gnu_ld=yes
3216 nigel 75 ;;
3217     *)
3218 nigel 53 lt_cv_prog_gnu_ld=no
3219 nigel 75 ;;
3220     esac
3221 nigel 53 fi
3222 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3223 nigel 53 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3224     with_gnu_ld=$lt_cv_prog_gnu_ld
3225    
3226 nigel 63
3227     echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3228 nigel 53 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3229     if test "${lt_cv_ld_reload_flag+set}" = set; then
3230     echo $ECHO_N "(cached) $ECHO_C" >&6
3231     else
3232     lt_cv_ld_reload_flag='-r'
3233     fi
3234 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3235 nigel 53 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3236     reload_flag=$lt_cv_ld_reload_flag
3237 nigel 75 case $reload_flag in
3238     "" | " "*) ;;
3239     *) reload_flag=" $reload_flag" ;;
3240     esac
3241     reload_cmds='$LD$reload_flag -o $output$reload_objs'
3242     case $host_os in
3243     darwin*)
3244     if test "$GCC" = yes; then
3245     reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3246     else
3247     reload_cmds='$LD$reload_flag -o $output$reload_objs'
3248     fi
3249     ;;
3250     esac
3251 nigel 53
3252 nigel 63 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253 nigel 53 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254     if test "${lt_cv_path_NM+set}" = set; then
3255     echo $ECHO_N "(cached) $ECHO_C" >&6
3256     else
3257     if test -n "$NM"; then
3258     # Let the user override the test.
3259     lt_cv_path_NM="$NM"
3260     else
3261 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3262 nigel 53 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3263 nigel 75 IFS="$lt_save_ifs"
3264 nigel 53 test -z "$ac_dir" && ac_dir=.
3265 nigel 75 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3266     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3267 nigel 53 # Check to see if the nm accepts a BSD-compat flag.
3268     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269     # nm: unknown option "B" ignored
3270     # Tru64's nm complains that /dev/null is an invalid object file
3271 nigel 75 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3272     */dev/null* | *'Invalid file or object type'*)
3273 nigel 53 lt_cv_path_NM="$tmp_nm -B"
3274     break
3275 nigel 75 ;;
3276     *)
3277     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3278     */dev/null*)
3279     lt_cv_path_NM="$tmp_nm -p"
3280     break
3281     ;;
3282     *)
3283     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3284     continue # so that we can try to find one that supports BSD flags
3285     ;;
3286     esac
3287     esac
3288 nigel 53 fi
3289     done
3290 nigel 75 IFS="$lt_save_ifs"
3291 nigel 53 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3292     fi
3293     fi
3294 nigel 75 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3295     echo "${ECHO_T}$lt_cv_path_NM" >&6
3296 nigel 53 NM="$lt_cv_path_NM"
3297    
3298 nigel 63 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3299 nigel 53 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3300     LN_S=$as_ln_s
3301     if test "$LN_S" = "ln -s"; then
3302 nigel 63 echo "$as_me:$LINENO: result: yes" >&5
3303 nigel 53 echo "${ECHO_T}yes" >&6
3304     else
3305 nigel 63 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3306 nigel 53 echo "${ECHO_T}no, using $LN_S" >&6
3307     fi
3308    
3309 nigel 75 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3310     echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3311 nigel 53 if test "${lt_cv_deplibs_check_method+set}" = set; then
3312     echo $ECHO_N "(cached) $ECHO_C" >&6
3313     else
3314     lt_cv_file_magic_cmd='$MAGIC_CMD'
3315     lt_cv_file_magic_test_file=
3316     lt_cv_deplibs_check_method='unknown'
3317     # Need to set the preceding variable on all platforms that support
3318     # interlibrary dependencies.
3319     # 'none' -- dependencies not supported.
3320     # `unknown' -- same as none, but documents that we really don't know.
3321     # 'pass_all' -- all dependencies passed with no checks.
3322     # 'test_compile' -- check by making test program.
3323 nigel 75 # 'file_magic [[regex]]' -- check by looking for files in library path
3324     # which responds to the $file_magic_cmd with a given extended regex.
3325 nigel 53 # If you have `file' or equivalent on your system and you're not sure
3326     # whether `pass_all' will *always* work, you probably want this one.
3327    
3328     case $host_os in
3329     aix4* | aix5*)
3330     lt_cv_deplibs_check_method=pass_all
3331     ;;
3332    
3333     beos*)
3334     lt_cv_deplibs_check_method=pass_all
3335     ;;
3336    
3337 nigel 75 bsdi[45]*)
3338 nigel 53 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3339     lt_cv_file_magic_cmd='/usr/bin/file -L'
3340     lt_cv_file_magic_test_file=/shlib/libc.so
3341     ;;
3342    
3343 nigel 75 cygwin*)
3344     # func_win32_libid is a shell function defined in ltmain.sh
3345     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3346     lt_cv_file_magic_cmd='func_win32_libid'
3347     ;;
3348    
3349     mingw* | pw32*)
3350     # Base MSYS/MinGW do not provide the 'file' command needed by
3351     # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3352 nigel 53 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3353     lt_cv_file_magic_cmd='$OBJDUMP -f'
3354     ;;
3355    
3356     darwin* | rhapsody*)
3357 nigel 75 lt_cv_deplibs_check_method=pass_all
3358 nigel 53 ;;
3359    
3360 nigel 75 freebsd* | kfreebsd*-gnu)
3361 nigel 53 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3362     case $host_cpu in
3363     i*86 )
3364     # Not sure whether the presence of OpenBSD here was a mistake.
3365     # Let's accept both of them until this is cleared up.
3366     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3367     lt_cv_file_magic_cmd=/usr/bin/file
3368     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3369     ;;
3370     esac
3371     else
3372     lt_cv_deplibs_check_method=pass_all
3373     fi
3374     ;;
3375    
3376     gnu*)
3377     lt_cv_deplibs_check_method=pass_all
3378     ;;
3379    
3380 nigel 75 hpux10.20* | hpux11*)
3381 nigel 53 lt_cv_file_magic_cmd=/usr/bin/file
3382 nigel 75 case "$host_cpu" in
3383     ia64*)
3384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3386 nigel 53 ;;
3387 nigel 75 hppa*64*)
3388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3389     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3390     ;;
3391 nigel 53 *)
3392 nigel 75 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3393     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3394 nigel 53 ;;
3395     esac
3396 nigel 75 ;;
3397    
3398     irix5* | irix6* | nonstopux*)
3399     case $LD in
3400     *-32|*"-32 ") libmagic=32-bit;;
3401     *-n32|*"-n32 ") libmagic=N32;;
3402     *-64|*"-64 ") libmagic=64-bit;;
3403     *) libmagic=never-match;;
3404     esac
3405 nigel 53 lt_cv_deplibs_check_method=pass_all
3406     ;;
3407    
3408     # This must be Linux ELF.
3409 nigel 75 linux*)
3410 nigel 53 case $host_cpu in
3411 nigel 75 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3412 nigel 53 lt_cv_deplibs_check_method=pass_all ;;
3413     *)
3414     # glibc up to 2.1.1 does not perform some relocations on ARM
3415 nigel 75 # this will be overridden with pass_all, but let us keep it just in case
3416 nigel 53 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3417     esac
3418     lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3419 nigel 75 lt_cv_deplibs_check_method=pass_all
3420 nigel 53 ;;
3421    
3422     netbsd*)
3423     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3424 nigel 75 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3425 nigel 53 else
3426 nigel 75 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3427 nigel 53 fi
3428     ;;
3429    
3430     newos6*)
3431     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3432     lt_cv_file_magic_cmd=/usr/bin/file
3433     lt_cv_file_magic_test_file=/usr/lib/libnls.so
3434     ;;
3435    
3436 nigel 75 nto-qnx*)
3437     lt_cv_deplibs_check_method=unknown
3438     ;;
3439    
3440     openbsd*)
3441     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3443     else
3444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3445     fi
3446     ;;
3447    
3448 nigel 53 osf3* | osf4* | osf5*)
3449     lt_cv_deplibs_check_method=pass_all
3450     ;;
3451    
3452     sco3.2v5*)
3453     lt_cv_deplibs_check_method=pass_all
3454     ;;
3455    
3456     solaris*)
3457     lt_cv_deplibs_check_method=pass_all
3458     ;;
3459    
3460     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3461     case $host_vendor in
3462     motorola)
3463     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]'
3464     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3465     ;;
3466     ncr)
3467     lt_cv_deplibs_check_method=pass_all
3468     ;;
3469     sequent)
3470     lt_cv_file_magic_cmd='/bin/file'
3471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3472     ;;
3473     sni)
3474     lt_cv_file_magic_cmd='/bin/file'
3475     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3476     lt_cv_file_magic_test_file=/lib/libc.so
3477     ;;
3478 nigel 75 siemens)
3479     lt_cv_deplibs_check_method=pass_all
3480     ;;
3481 nigel 53 esac
3482     ;;
3483 nigel 75
3484     sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3485     lt_cv_deplibs_check_method=pass_all
3486     ;;
3487 nigel 53 esac
3488    
3489     fi
3490 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3491 nigel 53 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3492     file_magic_cmd=$lt_cv_file_magic_cmd
3493     deplibs_check_method=$lt_cv_deplibs_check_method
3494 nigel 75 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3495 nigel 53
3496 nigel 63
3497    
3498    
3499 nigel 75 # If no C compiler was specified, use CC.
3500     LTCC=${LTCC-"$CC"}
3501 nigel 63
3502 nigel 75 # Allow CC to be a program name with arguments.
3503     compiler=$CC
3504 nigel 63
3505    
3506 nigel 75 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3507     if test "${enable_libtool_lock+set}" = set; then
3508     enableval="$enable_libtool_lock"
3509 nigel 63
3510 nigel 75 fi;
3511     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3512 nigel 53
3513 nigel 75 # Some flags need to be propagated to the compiler or linker for good
3514     # libtool support.
3515     case $host in
3516     ia64-*-hpux*)
3517     # Find out which ABI we are using.
3518     echo 'int i;' > conftest.$ac_ext
3519     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520     (eval $ac_compile) 2>&5
3521     ac_status=$?
3522     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523     (exit $ac_status); }; then
3524     case `/usr/bin/file conftest.$ac_objext` in
3525     *ELF-32*)
3526     HPUX_IA64_MODE="32"
3527     ;;
3528     *ELF-64*)
3529     HPUX_IA64_MODE="64"
3530     ;;
3531     esac
3532     fi
3533     rm -rf conftest*
3534 nigel 53 ;;
3535 nigel 75 *-*-irix6*)
3536     # Find out which ABI we are using.
3537 nigel 77 echo '#line 3537 "configure"' > conftest.$ac_ext
3538 nigel 75 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539     (eval $ac_compile) 2>&5
3540     ac_status=$?
3541     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542     (exit $ac_status); }; then
3543     if test "$lt_cv_prog_gnu_ld" = yes; then
3544     case `/usr/bin/file conftest.$ac_objext` in
3545     *32-bit*)
3546     LD="${LD-ld} -melf32bsmip"
3547     ;;
3548     *N32*)
3549     LD="${LD-ld} -melf32bmipn32"
3550     ;;
3551     *64-bit*)
3552     LD="${LD-ld} -melf64bmip"
3553     ;;
3554     esac
3555     else
3556     case `/usr/bin/file conftest.$ac_objext` in
3557     *32-bit*)
3558     LD="${LD-ld} -32"
3559     ;;
3560     *N32*)
3561     LD="${LD-ld} -n32"
3562     ;;
3563     *64-bit*)
3564     LD="${LD-ld} -64"
3565     ;;
3566     esac
3567     fi
3568     fi
3569     rm -rf conftest*
3570 nigel 53 ;;
3571    
3572 nigel 75 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3573     # Find out which ABI we are using.
3574     echo 'int i;' > conftest.$ac_ext
3575     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576     (eval $ac_compile) 2>&5
3577     ac_status=$?
3578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579     (exit $ac_status); }; then
3580     case "`/usr/bin/file conftest.o`" in
3581     *32-bit*)
3582     case $host in
3583     x86_64-*linux*)
3584     LD="${LD-ld} -m elf_i386"
3585     ;;
3586     ppc64-*linux*|powerpc64-*linux*)
3587     LD="${LD-ld} -m elf32ppclinux"
3588     ;;
3589     s390x-*linux*)
3590     LD="${LD-ld} -m elf_s390"
3591     ;;
3592     sparc64-*linux*)
3593     LD="${LD-ld} -m elf32_sparc"
3594     ;;
3595     esac
3596     ;;
3597     *64-bit*)
3598     case $host in
3599     x86_64-*linux*)
3600     LD="${LD-ld} -m elf_x86_64"
3601     ;;
3602     ppc*-*linux*|powerpc*-*linux*)
3603     LD="${LD-ld} -m elf64ppc"
3604     ;;
3605     s390*-*linux*)
3606     LD="${LD-ld} -m elf64_s390"
3607     ;;
3608     sparc*-*linux*)
3609     LD="${LD-ld} -m elf64_sparc"
3610     ;;
3611     esac
3612     ;;
3613     esac
3614     fi
3615     rm -rf conftest*
3616 nigel 53 ;;
3617    
3618 nigel 75 *-*-sco3.2v5*)
3619     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3620     SAVE_CFLAGS="$CFLAGS"
3621     CFLAGS="$CFLAGS -belf"
3622     echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3623     echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3624     if test "${lt_cv_cc_needs_belf+set}" = set; then
3625     echo $ECHO_N "(cached) $ECHO_C" >&6
3626     else
3627     ac_ext=c
3628     ac_cpp='$CPP $CPPFLAGS'
3629     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 nigel 53
3633 nigel 75 cat >conftest.$ac_ext <<_ACEOF
3634     /* confdefs.h. */
3635     _ACEOF
3636     cat confdefs.h >>conftest.$ac_ext
3637     cat >>conftest.$ac_ext <<_ACEOF
3638     /* end confdefs.h. */
3639 nigel 53
3640 nigel 75 int
3641     main ()
3642     {
3643 nigel 53
3644 nigel 75 ;
3645     return 0;
3646 nigel 41 }
3647 nigel 75 _ACEOF
3648     rm -f conftest.$ac_objext conftest$ac_exeext
3649     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650     (eval $ac_link) 2>conftest.er1
3651 nigel 53 ac_status=$?
3652 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
3653     rm -f conftest.er1
3654     cat conftest.err >&5
3655 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 nigel 75 (exit $ac_status); } &&
3657     { ac_try='test -z "$ac_c_werror_flag"
3658     || test ! -s conftest.err'
3659     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660     (eval $ac_try) 2>&5
3661 nigel 53 ac_status=$?
3662 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 nigel 75 (exit $ac_status); }; } &&
3664     { ac_try='test -s conftest$ac_exeext'
3665     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666     (eval $ac_try) 2>&5
3667     ac_status=$?
3668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669     (exit $ac_status); }; }; then
3670     lt_cv_cc_needs_belf=yes
3671     else
3672     echo "$as_me: failed program was:" >&5
3673     sed 's/^/| /' conftest.$ac_ext >&5
3674 nigel 53
3675 nigel 75 lt_cv_cc_needs_belf=no
3676     fi
3677     rm -f conftest.err conftest.$ac_objext \
3678     conftest$ac_exeext conftest.$ac_ext
3679     ac_ext=c
3680     ac_cpp='$CPP $CPPFLAGS'
3681     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 nigel 53
3685 nigel 75 fi
3686     echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3687     echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3688     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3689     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3690     CFLAGS="$SAVE_CFLAGS"
3691     fi
3692     ;;
3693     *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3694     if test -n "$ac_tool_prefix"; then
3695     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3696     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3697     echo "$as_me:$LINENO: checking for $ac_word" >&5
3698     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699     if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3700     echo $ECHO_N "(cached) $ECHO_C" >&6
3701     else
3702     if test -n "$DLLTOOL"; then
3703     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3704     else
3705     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706     for as_dir in $PATH
3707     do
3708     IFS=$as_save_IFS
3709     test -z "$as_dir" && as_dir=.
3710     for ac_exec_ext in '' $ac_executable_extensions; do
3711     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715     fi
3716     done
3717     done
3718 nigel 53
3719 nigel 75 fi
3720     fi
3721     DLLTOOL=$ac_cv_prog_DLLTOOL
3722     if test -n "$DLLTOOL"; then
3723     echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3724     echo "${ECHO_T}$DLLTOOL" >&6
3725     else
3726     echo "$as_me:$LINENO: result: no" >&5
3727     echo "${ECHO_T}no" >&6
3728     fi
3729 nigel 53
3730 nigel 75 fi
3731     if test -z "$ac_cv_prog_DLLTOOL"; then
3732     ac_ct_DLLTOOL=$DLLTOOL
3733     # Extract the first word of "dlltool", so it can be a program name with args.
3734     set dummy dlltool; ac_word=$2
3735     echo "$as_me:$LINENO: checking for $ac_word" >&5
3736     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737     if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3738     echo $ECHO_N "(cached) $ECHO_C" >&6
3739     else
3740     if test -n "$ac_ct_DLLTOOL"; then
3741     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3742     else
3743     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744     for as_dir in $PATH
3745     do
3746     IFS=$as_save_IFS
3747     test -z "$as_dir" && as_dir=.
3748     for ac_exec_ext in '' $ac_executable_extensions; do
3749     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753     fi
3754     done
3755     done
3756 nigel 41
3757 nigel 75 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3758     fi
3759     fi
3760     ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3761     if test -n "$ac_ct_DLLTOOL"; then
3762     echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3763     echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3764     else
3765     echo "$as_me:$LINENO: result: no" >&5
3766     echo "${ECHO_T}no" >&6
3767     fi
3768    
3769     DLLTOOL=$ac_ct_DLLTOOL
3770     else
3771     DLLTOOL="$ac_cv_prog_DLLTOOL"
3772     fi
3773    
3774     if test -n "$ac_tool_prefix"; then
3775     # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3776     set dummy ${ac_tool_prefix}as; ac_word=$2
3777     echo "$as_me:$LINENO: checking for $ac_word" >&5
3778     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779     if test "${ac_cv_prog_AS+set}" = set; then
3780     echo $ECHO_N "(cached) $ECHO_C" >&6
3781     else
3782     if test -n "$AS"; then
3783     ac_cv_prog_AS="$AS" # Let the user override the test.
3784     else
3785     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786     for as_dir in $PATH
3787     do
3788     IFS=$as_save_IFS
3789     test -z "$as_dir" && as_dir=.
3790     for ac_exec_ext in '' $ac_executable_extensions; do
3791     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792     ac_cv_prog_AS="${ac_tool_prefix}as"
3793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794     break 2
3795 nigel 53 fi
3796 nigel 75 done
3797     done
3798 nigel 53
3799 nigel 75 fi
3800     fi
3801     AS=$ac_cv_prog_AS
3802     if test -n "$AS"; then
3803     echo "$as_me:$LINENO: result: $AS" >&5
3804     echo "${ECHO_T}$AS" >&6
3805     else
3806     echo "$as_me:$LINENO: result: no" >&5
3807     echo "${ECHO_T}no" >&6
3808     fi
3809    
3810     fi
3811     if test -z "$ac_cv_prog_AS"; then
3812     ac_ct_AS=$AS
3813     # Extract the first word of "as", so it can be a program name with args.
3814     set dummy as; ac_word=$2
3815     echo "$as_me:$LINENO: checking for $ac_word" >&5
3816     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3817     if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3818     echo $ECHO_N "(cached) $ECHO_C" >&6
3819     else
3820     if test -n "$ac_ct_AS"; then
3821     ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3822     else
3823     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824     for as_dir in $PATH
3825     do
3826     IFS=$as_save_IFS
3827     test -z "$as_dir" && as_dir=.
3828     for ac_exec_ext in '' $ac_executable_extensions; do
3829     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830     ac_cv_prog_ac_ct_AS="as"
3831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832     break 2
3833 nigel 53 fi
3834     done
3835 nigel 75 done
3836 nigel 53
3837 nigel 75 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3838 nigel 53 fi
3839 nigel 75 fi
3840     ac_ct_AS=$ac_cv_prog_ac_ct_AS
3841     if test -n "$ac_ct_AS"; then
3842     echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3843     echo "${ECHO_T}$ac_ct_AS" >&6
3844     else
3845     echo "$as_me:$LINENO: result: no" >&5
3846     echo "${ECHO_T}no" >&6
3847     fi
3848 nigel 53
3849 nigel 75 AS=$ac_ct_AS
3850 nigel 41 else
3851 nigel 75 AS="$ac_cv_prog_AS"
3852 nigel 53 fi
3853 nigel 75
3854     if test -n "$ac_tool_prefix"; then
3855     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3856     set dummy ${ac_tool_prefix}objdump; ac_word=$2
3857     echo "$as_me:$LINENO: checking for $ac_word" >&5
3858     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859     if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3860     echo $ECHO_N "(cached) $ECHO_C" >&6
3861 nigel 53 else
3862 nigel 75 if test -n "$OBJDUMP"; then
3863     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3864     else
3865     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866     for as_dir in $PATH
3867     do
3868     IFS=$as_save_IFS
3869     test -z "$as_dir" && as_dir=.
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875     fi
3876     done
3877     done
3878    
3879 nigel 53 fi
3880 nigel 75 fi
3881     OBJDUMP=$ac_cv_prog_OBJDUMP
3882     if test -n "$OBJDUMP"; then
3883     echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3884     echo "${ECHO_T}$OBJDUMP" >&6
3885     else
3886     echo "$as_me:$LINENO: result: no" >&5
3887     echo "${ECHO_T}no" >&6
3888     fi
3889 nigel 53
3890 nigel 75 fi
3891     if test -z "$ac_cv_prog_OBJDUMP"; then
3892     ac_ct_OBJDUMP=$OBJDUMP
3893     # Extract the first word of "objdump", so it can be a program name with args.
3894     set dummy objdump; ac_word=$2
3895     echo "$as_me:$LINENO: checking for $ac_word" >&5
3896     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897     if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3898     echo $ECHO_N "(cached) $ECHO_C" >&6
3899     else
3900     if test -n "$ac_ct_OBJDUMP"; then
3901     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3902     else
3903     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904     for as_dir in $PATH
3905     do
3906     IFS=$as_save_IFS
3907     test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913     fi
3914     done
3915     done
3916    
3917     test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3918     fi
3919     fi
3920     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3921     if test -n "$ac_ct_OBJDUMP"; then
3922     echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3923     echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3924     else
3925     echo "$as_me:$LINENO: result: no" >&5
3926     echo "${ECHO_T}no" >&6
3927     fi
3928    
3929     OBJDUMP=$ac_ct_OBJDUMP
3930     else
3931     OBJDUMP="$ac_cv_prog_OBJDUMP"
3932     fi
3933    
3934     ;;
3935    
3936     esac
3937    
3938     need_locks="$enable_libtool_lock"
3939    
3940    
3941 nigel 63 ac_ext=c
3942     ac_cpp='$CPP $CPPFLAGS'
3943