source: main/trunk/search4j/configure@ 35545

Last change on this file since 35545 was 35457, checked in by davidb, 3 years ago

Addition of java-based solution to more cleanly determine Java version and bitness, rather than relying of it's 'version' minus argument and inspecting with 'file' the 'java' program. This commit for Unix OS. A later phase of work will be the updated win32.mak file for Windows. Then a final phase of work will be for the 'search4j' source code to be tied in with the generated jar files

  • Property svn:executable set to *
File size: 151.9 KB
RevLine 
[17496]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[35457]3# Generated by GNU Autoconf 2.69 for FULL-PACKAGE-NAME VERSION.
[17496]4#
5# Report bugs to <BUG-REPORT-ADDRESS>.
6#
[35457]7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
[17496]11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
[35457]13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
[17496]16
[35457]17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
[17496]20 emulate sh
21 NULLCMD=:
[35457]22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
[17496]23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
[35457]25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
[17496]33fi
34
[35457]35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
[17496]52else
[35457]53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
[17496]72fi
73
[35457]74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
[17496]82
[35457]83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
[17496]124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
[35457]129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
[17496]213do
[35457]214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
[17496]268 else
[35457]269 $as_echo "$0: Please tell [email protected] and BUG-REPORT-ADDRESS
270$0: about your system, including any error possibly output
271$0: before this message. Then install a modern shell, or
272$0: manually run the script under such a shell if you do
273$0: have one."
[17496]274 fi
[35457]275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
[17496]284
[35457]285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
[17496]424 as_expr=expr
425else
426 as_expr=false
427fi
428
[35457]429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
[17496]430 as_basename=basename
431else
432 as_basename=false
433fi
434
[35457]435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
[17496]440
[35457]441as_me=`$as_basename -- "$0" ||
[17496]442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
[35457]444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
[17496]459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
[35457]468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
[17496]477 sed '
[35457]478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
[17496]482 N
[35457]483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
[17496]485 t loop
[35457]486 s/-\n.*//
[17496]487 ' >$as_me.lineno &&
[35457]488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
[17496]490
[35457]491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
[17496]495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
[35457]497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
[17496]499 # Exit status is that of the last command.
500 exit
501}
502
[35457]503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
[17496]514esac
515
[35457]516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
[17496]519else
[35457]520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
[17496]522fi
[35457]523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
[17496]534 else
[35457]535 as_ln_s='cp -pR'
[17496]536 fi
537else
[35457]538 as_ln_s='cp -pR'
[17496]539fi
[35457]540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
[17496]542
543if mkdir -p . 2>/dev/null; then
[35457]544 as_mkdir_p='mkdir -p "$as_dir"'
[17496]545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
[35457]550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
[17496]552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
[35457]560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
[17496]562
563# Name of the host.
[35457]564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
[17496]565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
[35457]572ac_clean_files=
[17496]573ac_config_libobj_dir=.
[35457]574LIBOBJS=
[17496]575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='FULL-PACKAGE-NAME'
582PACKAGE_TARNAME='full-package-name'
583PACKAGE_VERSION='VERSION'
584PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
585PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
[35457]586PACKAGE_URL=''
[17496]587
588ac_unique_file="search4j.cpp"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
[35457]592#ifdef HAVE_SYS_TYPES_H
[17496]593# include <sys/types.h>
594#endif
[35457]595#ifdef HAVE_SYS_STAT_H
[17496]596# include <sys/stat.h>
597#endif
[35457]598#ifdef STDC_HEADERS
[17496]599# include <stdlib.h>
600# include <stddef.h>
601#else
[35457]602# ifdef HAVE_STDLIB_H
[17496]603# include <stdlib.h>
604# endif
605#endif
[35457]606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
[17496]608# include <memory.h>
609# endif
610# include <string.h>
611#endif
[35457]612#ifdef HAVE_STRINGS_H
[17496]613# include <strings.h>
614#endif
[35457]615#ifdef HAVE_INTTYPES_H
[17496]616# include <inttypes.h>
617#endif
[35457]618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
[17496]622# include <unistd.h>
623#endif"
624
[35457]625ac_subst_vars='LTLIBOBJS
626LIBOBJS
627EGREP
628GREP
629JAVACFLAGS
630JAVAC
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634CPP
635ac_ct_CC
636CFLAGS
637CC
638OBJEXT
639EXEEXT
640ac_ct_CXX
641CPPFLAGS
642LDFLAGS
643CXXFLAGS
644CXX
645target_alias
646host_alias
647build_alias
648LIBS
649ECHO_T
650ECHO_N
651ECHO_C
652DEFS
653mandir
654localedir
655libdir
656psdir
657pdfdir
658dvidir
659htmldir
660infodir
661docdir
662oldincludedir
663includedir
664runstatedir
665localstatedir
666sharedstatedir
667sysconfdir
668datadir
669datarootdir
670libexecdir
671sbindir
672bindir
673program_transform_name
674prefix
675exec_prefix
676PACKAGE_URL
677PACKAGE_BUGREPORT
678PACKAGE_STRING
679PACKAGE_VERSION
680PACKAGE_TARNAME
681PACKAGE_NAME
682PATH_SEPARATOR
683SHELL'
[17496]684ac_subst_files=''
[35457]685ac_user_opts='
686enable_option_checking
687'
688 ac_precious_vars='build_alias
689host_alias
690target_alias
691CXX
692CXXFLAGS
693LDFLAGS
694LIBS
695CPPFLAGS
696CCC
697CC
698CFLAGS
699CPP'
[17496]700
[35457]701
[17496]702# Initialize some variables set by options.
703ac_init_help=
704ac_init_version=false
[35457]705ac_unrecognized_opts=
706ac_unrecognized_sep=
[17496]707# The variables have the same names as the options, with
708# dashes changed to underlines.
709cache_file=/dev/null
710exec_prefix=NONE
711no_create=
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
720verbose=
721x_includes=NONE
722x_libraries=NONE
723
724# Installation directory options.
725# These are left unexpanded so users can "make install exec_prefix=/foo"
726# and all the variables that are supposed to be based on exec_prefix
727# by default will actually change.
728# Use braces instead of parens because sh, perl, etc. also accept them.
[35457]729# (The list follows the same order as the GNU Coding Standards.)
[17496]730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
[35457]733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
[17496]735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
[35457]738runstatedir='${localstatedir}/run'
[17496]739includedir='${prefix}/include'
740oldincludedir='/usr/include'
[35457]741docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
742infodir='${datarootdir}/info'
743htmldir='${docdir}'
744dvidir='${docdir}'
745pdfdir='${docdir}'
746psdir='${docdir}'
747libdir='${exec_prefix}/lib'
748localedir='${datarootdir}/locale'
749mandir='${datarootdir}/man'
[17496]750
751ac_prev=
[35457]752ac_dashdash=
[17496]753for ac_option
754do
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
[35457]757 eval $ac_prev=\$ac_option
[17496]758 ac_prev=
759 continue
760 fi
761
[35457]762 case $ac_option in
763 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764 *=) ac_optarg= ;;
765 *) ac_optarg=yes ;;
766 esac
[17496]767
768 # Accept the important Cygnus configure options, so we can diagnose typos.
769
[35457]770 case $ac_dashdash$ac_option in
771 --)
772 ac_dashdash=yes ;;
[17496]773
774 -bindir | --bindir | --bindi | --bind | --bin | --bi)
775 ac_prev=bindir ;;
776 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
777 bindir=$ac_optarg ;;
778
779 -build | --build | --buil | --bui | --bu)
780 ac_prev=build_alias ;;
781 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
782 build_alias=$ac_optarg ;;
783
784 -cache-file | --cache-file | --cache-fil | --cache-fi \
785 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
786 ac_prev=cache_file ;;
787 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
788 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
789 cache_file=$ac_optarg ;;
790
791 --config-cache | -C)
792 cache_file=config.cache ;;
793
[35457]794 -datadir | --datadir | --datadi | --datad)
[17496]795 ac_prev=datadir ;;
[35457]796 -datadir=* | --datadir=* | --datadi=* | --datad=*)
[17496]797 datadir=$ac_optarg ;;
798
[35457]799 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
800 | --dataroo | --dataro | --datar)
801 ac_prev=datarootdir ;;
802 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
803 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
804 datarootdir=$ac_optarg ;;
805
[17496]806 -disable-* | --disable-*)
[35457]807 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
[17496]808 # Reject names that are not valid shell variable names.
[35457]809 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810 as_fn_error $? "invalid feature name: $ac_useropt"
811 ac_useropt_orig=$ac_useropt
812 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813 case $ac_user_opts in
814 *"
815"enable_$ac_useropt"
816"*) ;;
817 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
818 ac_unrecognized_sep=', ';;
819 esac
820 eval enable_$ac_useropt=no ;;
[17496]821
[35457]822 -docdir | --docdir | --docdi | --doc | --do)
823 ac_prev=docdir ;;
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825 docdir=$ac_optarg ;;
826
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 ac_prev=dvidir ;;
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830 dvidir=$ac_optarg ;;
831
[17496]832 -enable-* | --enable-*)
[35457]833 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
[17496]834 # Reject names that are not valid shell variable names.
[35457]835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841"enable_$ac_useropt"
842"*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
[17496]845 esac
[35457]846 eval enable_$ac_useropt=\$ac_optarg ;;
[17496]847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
867
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
872
[35457]873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
[17496]879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
902
[35457]903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
[17496]908 -localstatedir | --localstatedir | --localstatedi | --localstated \
[35457]909 | --localstate | --localstat | --localsta | --localst | --locals)
[17496]910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
[35457]912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
[17496]913 localstatedir=$ac_optarg ;;
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
976
[35457]977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
[17496]987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
[35457]991 -runstatedir | --runstatedir | --runstatedi | --runstated \
992 | --runstate | --runstat | --runsta | --runst | --runs \
993 | --run | --ru | --r)
994 ac_prev=runstatedir ;;
995 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
996 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
997 | --run=* | --ru=* | --r=*)
998 runstatedir=$ac_optarg ;;
999
[17496]1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 ac_prev=sbindir ;;
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 | --sbi=* | --sb=*)
1004 sbindir=$ac_optarg ;;
1005
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1009 | --sha | --sh)
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 | --sha=* | --sh=*)
1015 sharedstatedir=$ac_optarg ;;
1016
1017 -site | --site | --sit)
1018 ac_prev=site ;;
1019 -site=* | --site=* | --sit=*)
1020 site=$ac_optarg ;;
1021
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 ac_prev=srcdir ;;
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1026
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1033
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1038
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 verbose=yes ;;
1041
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1044
1045 -with-* | --with-*)
[35457]1046 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
[17496]1047 # Reject names that are not valid shell variable names.
[35457]1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"with_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
[17496]1058 esac
[35457]1059 eval with_$ac_useropt=\$ac_optarg ;;
[17496]1060
1061 -without-* | --without-*)
[35457]1062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
[17496]1063 # Reject names that are not valid shell variable names.
[35457]1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"with_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=no ;;
[17496]1076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1094
[35457]1095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1096Try \`$0 --help' for more information"
[17496]1097 ;;
1098
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
[35457]1102 case $ac_envvar in #(
1103 '' | [0-9]* | *[!_$as_cr_alnum]* )
1104 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105 esac
1106 eval $ac_envvar=\$ac_optarg
[17496]1107 export $ac_envvar ;;
1108
1109 *)
1110 # FIXME: should be removed in autoconf 3.0.
[35457]1111 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
[17496]1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
[35457]1113 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
[17496]1115 ;;
1116
1117 esac
1118done
1119
1120if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
[35457]1122 as_fn_error $? "missing argument to $ac_option"
[17496]1123fi
1124
[35457]1125if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in
1127 no) ;;
1128 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
[17496]1130 esac
[35457]1131fi
[17496]1132
[35457]1133# Check all directory arguments for consistency.
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir runstatedir
[17496]1138do
[35457]1139 eval ac_val=\$$ac_var
1140 # Remove trailing slashes.
[17496]1141 case $ac_val in
[35457]1142 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;;
[17496]1145 esac
[35457]1146 # Be sure to have absolute directory names.
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
1151 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
[17496]1152done
1153
1154# There might be people who depend on the old broken behavior: `$host'
1155# used to hold the argument of --host etc.
1156# FIXME: To remove some day.
1157build=$build_alias
1158host=$host_alias
1159target=$target_alias
1160
1161# FIXME: To remove some day.
1162if test "x$host_alias" != x; then
1163 if test "x$build_alias" = x; then
1164 cross_compiling=maybe
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
1169
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
1174
1175
[35457]1176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error $? "working directory cannot be determined"
1180test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error $? "pwd does not report name of working directory"
1182
1183
[17496]1184# Find the source files, if location was not specified.
1185if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
[35457]1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193$as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
[17496]1211 srcdir=$ac_confdir
[35457]1212 if test ! -r "$srcdir/$ac_unique_file"; then
[17496]1213 srcdir=..
1214 fi
1215else
1216 ac_srcdir_defaulted=no
1217fi
[35457]1218if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
[17496]1221fi
[35457]1222ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1225 pwd)`
1226# When building in place, set srcdir=.
1227if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229fi
1230# Remove unnecessary trailing slashes from srcdir.
1231# Double slashes in file names in object file debugging info
1232# mess up M-x gdb in Emacs.
1233case $srcdir in
1234*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235esac
1236for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241done
[17496]1242
1243#
1244# Report the --help message.
1245#
1246if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
1251
1252Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257Defaults for the options are specified in brackets.
1258
1259Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
[35457]1264 -q, --quiet, --silent do not print \`checking ...' messages
[17496]1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
1270Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
[35457]1272 [$ac_default_prefix]
[17496]1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[35457]1274 [PREFIX]
[17496]1275
1276By default, \`make install' will install all the files in
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'.
1280
1281For better control, use the options below.
1282
1283Fine tuning of the installation directories:
[35457]1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root
1300 [DATAROOTDIR/doc/full-package-name]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
[17496]1305_ACEOF
1306
1307 cat <<\_ACEOF
1308_ACEOF
1309fi
1310
1311if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
1314 esac
1315 cat <<\_ACEOF
1316
1317Some influential environment variables:
1318 CXX C++ compiler command
1319 CXXFLAGS C++ compiler flags
1320 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1321 nonstandard directory <lib dir>
[35457]1322 LIBS libraries to pass to the linker, e.g. -l<library>
1323 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1324 you have headers in a nonstandard directory <include dir>
[17496]1325 CC C compiler command
1326 CFLAGS C compiler flags
1327 CPP C preprocessor
1328
1329Use these variables to override the choices made by `configure' or to help
1330it to find libraries and programs with nonstandard names/locations.
1331
1332Report bugs to <BUG-REPORT-ADDRESS>.
1333_ACEOF
[35457]1334ac_status=$?
[17496]1335fi
1336
1337if test "$ac_init_help" = "recursive"; then
1338 # If there are subdirs, report their specific --help.
1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
[35457]1340 test -d "$ac_dir" ||
1341 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1342 continue
[17496]1343 ac_builddir=.
1344
[35457]1345case "$ac_dir" in
1346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347*)
1348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 esac ;;
1355esac
1356ac_abs_top_builddir=$ac_pwd
1357ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358# for backward compatibility:
1359ac_top_builddir=$ac_top_build_prefix
[17496]1360
1361case $srcdir in
[35457]1362 .) # We are building in place.
[17496]1363 ac_srcdir=.
[35457]1364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
[17496]1367 ac_srcdir=$srcdir$ac_dir_suffix;
[35457]1368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1370 *) # Relative name.
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
[17496]1374esac
[35457]1375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
[17496]1376
[35457]1377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive
[17496]1385 else
[35457]1386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; }
[17496]1389 done
1390fi
1391
[35457]1392test -n "$ac_init_help" && exit $ac_status
[17496]1393if $ac_init_version; then
1394 cat <<\_ACEOF
1395FULL-PACKAGE-NAME configure VERSION
[35457]1396generated by GNU Autoconf 2.69
[17496]1397
[35457]1398Copyright (C) 2012 Free Software Foundation, Inc.
[17496]1399This configure script is free software; the Free Software Foundation
1400gives unlimited permission to copy, distribute and modify it.
1401_ACEOF
[35457]1402 exit
[17496]1403fi
[35457]1404
1405## ------------------------ ##
1406## Autoconf initialization. ##
1407## ------------------------ ##
1408
1409# ac_fn_cxx_try_compile LINENO
1410# ----------------------------
1411# Try to compile conftest.$ac_ext, and return whether this succeeded.
1412ac_fn_cxx_try_compile ()
1413{
1414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1415 rm -f conftest.$ac_objext
1416 if { { ac_try="$ac_compile"
1417case "(($ac_try" in
1418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1419 *) ac_try_echo=$ac_try;;
1420esac
1421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1422$as_echo "$ac_try_echo"; } >&5
1423 (eval "$ac_compile") 2>conftest.err
1424 ac_status=$?
1425 if test -s conftest.err; then
1426 grep -v '^ *+' conftest.err >conftest.er1
1427 cat conftest.er1 >&5
1428 mv -f conftest.er1 conftest.err
1429 fi
1430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1431 test $ac_status = 0; } && {
1432 test -z "$ac_cxx_werror_flag" ||
1433 test ! -s conftest.err
1434 } && test -s conftest.$ac_objext; then :
1435 ac_retval=0
1436else
1437 $as_echo "$as_me: failed program was:" >&5
1438sed 's/^/| /' conftest.$ac_ext >&5
1439
1440 ac_retval=1
1441fi
1442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1443 as_fn_set_status $ac_retval
1444
1445} # ac_fn_cxx_try_compile
1446
1447# ac_fn_c_try_compile LINENO
1448# --------------------------
1449# Try to compile conftest.$ac_ext, and return whether this succeeded.
1450ac_fn_c_try_compile ()
1451{
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 rm -f conftest.$ac_objext
1454 if { { ac_try="$ac_compile"
1455case "(($ac_try" in
1456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1458esac
1459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460$as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_compile") 2>conftest.err
1462 ac_status=$?
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1467 fi
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } && {
1470 test -z "$ac_c_werror_flag" ||
1471 test ! -s conftest.err
1472 } && test -s conftest.$ac_objext; then :
1473 ac_retval=0
1474else
1475 $as_echo "$as_me: failed program was:" >&5
1476sed 's/^/| /' conftest.$ac_ext >&5
1477
1478 ac_retval=1
1479fi
1480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481 as_fn_set_status $ac_retval
1482
1483} # ac_fn_c_try_compile
1484
1485# ac_fn_c_try_cpp LINENO
1486# ----------------------
1487# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1488ac_fn_c_try_cpp ()
1489{
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { { ac_try="$ac_cpp conftest.$ac_ext"
1492case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495esac
1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497$as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1504 fi
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } > conftest.i && {
1507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 }; then :
1510 ac_retval=0
1511else
1512 $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1
1516fi
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1519
1520} # ac_fn_c_try_cpp
1521
1522# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1523# -------------------------------------------
1524# Tests whether TYPE exists after having included INCLUDES, setting cache
1525# variable VAR accordingly.
1526ac_fn_c_check_type ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1530$as_echo_n "checking for $2... " >&6; }
1531if eval \${$3+:} false; then :
1532 $as_echo_n "(cached) " >&6
1533else
1534 eval "$3=no"
1535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536/* end confdefs.h. */
1537$4
1538int
1539main ()
1540{
1541if (sizeof ($2))
1542 return 0;
1543 ;
1544 return 0;
1545}
1546_ACEOF
1547if ac_fn_c_try_compile "$LINENO"; then :
1548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1549/* end confdefs.h. */
1550$4
1551int
1552main ()
1553{
1554if (sizeof (($2)))
1555 return 0;
1556 ;
1557 return 0;
1558}
1559_ACEOF
1560if ac_fn_c_try_compile "$LINENO"; then :
1561
1562else
1563 eval "$3=yes"
1564fi
1565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_type
1575
1576# ac_fn_c_try_run LINENO
1577# ----------------------
1578# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579# that executables *can* be run.
1580ac_fn_c_try_run ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1591 ac_status=$?
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1601 ac_status=$?
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=$ac_status
1611fi
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_run
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637else
1638 eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_link LINENO
1650# -----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_link ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_link
1694
1695# ac_fn_c_check_func LINENO FUNC VAR
1696# ----------------------------------
1697# Tests whether FUNC exists, setting the cache variable VAR accordingly
1698ac_fn_c_check_func ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1710#define $2 innocuous_$2
1711
1712/* System header to define __stub macros and hopefully few prototypes,
1713 which can conflict with char $2 (); below.
1714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1715 <limits.h> exists even on freestanding compilers. */
1716
1717#ifdef __STDC__
1718# include <limits.h>
1719#else
1720# include <assert.h>
1721#endif
1722
1723#undef $2
1724
1725/* Override any GCC internal prototype to avoid an error.
1726 Use char because int might match the return type of a GCC
1727 builtin and then its argument prototype would still apply. */
1728#ifdef __cplusplus
1729extern "C"
1730#endif
1731char $2 ();
1732/* The GNU C library defines this for functions which it implements
1733 to always fail with ENOSYS. Some functions are actually named
1734 something starting with __ and the normal name is an alias. */
1735#if defined __stub_$2 || defined __stub___$2
1736choke me
1737#endif
1738
1739int
1740main ()
1741{
1742return $2 ();
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747if ac_fn_c_try_link "$LINENO"; then :
1748 eval "$3=yes"
1749else
1750 eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext \
1753 conftest$ac_exeext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_func
1761cat >config.log <<_ACEOF
[17496]1762This file contains any messages produced by compilers while
1763running configure, to aid debugging if configure makes a mistake.
1764
1765It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
[35457]1766generated by GNU Autoconf 2.69. Invocation command line was
[17496]1767
1768 $ $0 $@
1769
1770_ACEOF
[35457]1771exec 5>>config.log
[17496]1772{
1773cat <<_ASUNAME
1774## --------- ##
1775## Platform. ##
1776## --------- ##
1777
1778hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1779uname -m = `(uname -m) 2>/dev/null || echo unknown`
1780uname -r = `(uname -r) 2>/dev/null || echo unknown`
1781uname -s = `(uname -s) 2>/dev/null || echo unknown`
1782uname -v = `(uname -v) 2>/dev/null || echo unknown`
1783
1784/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1785/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1786
1787/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1788/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1789/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
[35457]1790/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
[17496]1791/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1792/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1793/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1794
1795_ASUNAME
1796
1797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798for as_dir in $PATH
1799do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
[35457]1802 $as_echo "PATH: $as_dir"
1803 done
1804IFS=$as_save_IFS
[17496]1805
1806} >&5
1807
1808cat >&5 <<_ACEOF
1809
1810
1811## ----------- ##
1812## Core tests. ##
1813## ----------- ##
1814
1815_ACEOF
1816
1817
1818# Keep a trace of the command line.
1819# Strip out --no-create and --no-recursion so they do not pile up.
1820# Strip out --silent because we don't want to record it for future runs.
1821# Also quote any args containing shell meta-characters.
1822# Make two passes to allow for proper duplicate-argument suppression.
1823ac_configure_args=
1824ac_configure_args0=
1825ac_configure_args1=
1826ac_must_keep_next=false
1827for ac_pass in 1 2
1828do
1829 for ac_arg
1830 do
1831 case $ac_arg in
1832 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1834 | -silent | --silent | --silen | --sile | --sil)
1835 continue ;;
[35457]1836 *\'*)
1837 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
[17496]1838 esac
1839 case $ac_pass in
[35457]1840 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
[17496]1841 2)
[35457]1842 as_fn_append ac_configure_args1 " '$ac_arg'"
[17496]1843 if test $ac_must_keep_next = true; then
1844 ac_must_keep_next=false # Got value, back to normal.
1845 else
1846 case $ac_arg in
1847 *=* | --config-cache | -C | -disable-* | --disable-* \
1848 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1849 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1850 | -with-* | --with-* | -without-* | --without-* | --x)
1851 case "$ac_configure_args0 " in
1852 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1853 esac
1854 ;;
1855 -* ) ac_must_keep_next=true ;;
1856 esac
1857 fi
[35457]1858 as_fn_append ac_configure_args " '$ac_arg'"
[17496]1859 ;;
1860 esac
1861 done
1862done
[35457]1863{ ac_configure_args0=; unset ac_configure_args0;}
1864{ ac_configure_args1=; unset ac_configure_args1;}
[17496]1865
1866# When interrupted or exit'd, cleanup temporary files, and complete
1867# config.log. We remove comments because anyway the quotes in there
1868# would cause problems or look ugly.
[35457]1869# WARNING: Use '\'' to represent an apostrophe within the trap.
1870# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
[17496]1871trap 'exit_status=$?
1872 # Save into config.log some information that might help in debugging.
1873 {
1874 echo
1875
[35457]1876 $as_echo "## ---------------- ##
[17496]1877## Cache variables. ##
[35457]1878## ---------------- ##"
[17496]1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
[35457]1881(
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
[17496]1897 (set) 2>&1 |
[35457]1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
[17496]1900 sed -n \
[35457]1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
[17496]1904 *)
[35457]1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
[17496]1906 ;;
[35457]1907 esac |
1908 sort
1909)
[17496]1910 echo
1911
[35457]1912 $as_echo "## ----------------- ##
[17496]1913## Output variables. ##
[35457]1914## ----------------- ##"
[17496]1915 echo
1916 for ac_var in $ac_subst_vars
1917 do
[35457]1918 eval ac_val=\$$ac_var
1919 case $ac_val in
1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 esac
1922 $as_echo "$ac_var='\''$ac_val'\''"
[17496]1923 done | sort
1924 echo
1925
1926 if test -n "$ac_subst_files"; then
[35457]1927 $as_echo "## ------------------- ##
1928## File substitutions. ##
1929## ------------------- ##"
[17496]1930 echo
1931 for ac_var in $ac_subst_files
1932 do
[35457]1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 $as_echo "$ac_var='\''$ac_val'\''"
[17496]1938 done | sort
1939 echo
1940 fi
1941
1942 if test -s confdefs.h; then
[35457]1943 $as_echo "## ----------- ##
[17496]1944## confdefs.h. ##
[35457]1945## ----------- ##"
[17496]1946 echo
[35457]1947 cat confdefs.h
[17496]1948 echo
1949 fi
1950 test "$ac_signal" != 0 &&
[35457]1951 $as_echo "$as_me: caught signal $ac_signal"
1952 $as_echo "$as_me: exit $exit_status"
[17496]1953 } >&5
[35457]1954 rm -f core *.core core.conftest.* &&
1955 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
[17496]1956 exit $exit_status
[35457]1957' 0
[17496]1958for ac_signal in 1 2 13 15; do
[35457]1959 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
[17496]1960done
1961ac_signal=0
1962
1963# confdefs.h avoids OS command line length limits that DEFS can exceed.
[35457]1964rm -f -r conftest* confdefs.h
[17496]1965
[35457]1966$as_echo "/* confdefs.h */" > confdefs.h
1967
[17496]1968# Predefined preprocessor variables.
1969
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_NAME "$PACKAGE_NAME"
1972_ACEOF
1973
1974cat >>confdefs.h <<_ACEOF
1975#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1976_ACEOF
1977
1978cat >>confdefs.h <<_ACEOF
1979#define PACKAGE_VERSION "$PACKAGE_VERSION"
1980_ACEOF
1981
1982cat >>confdefs.h <<_ACEOF
1983#define PACKAGE_STRING "$PACKAGE_STRING"
1984_ACEOF
1985
1986cat >>confdefs.h <<_ACEOF
1987#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988_ACEOF
1989
[35457]1990cat >>confdefs.h <<_ACEOF
1991#define PACKAGE_URL "$PACKAGE_URL"
1992_ACEOF
[17496]1993
[35457]1994
[17496]1995# Let the site file select an alternate cache file if it wants to.
[35457]1996# Prefer an explicitly selected file to automatically selected ones.
1997ac_site_file1=NONE
1998ac_site_file2=NONE
1999if test -n "$CONFIG_SITE"; then
2000 # We do not want a PATH search for config.site.
2001 case $CONFIG_SITE in #((
2002 -*) ac_site_file1=./$CONFIG_SITE;;
2003 */*) ac_site_file1=$CONFIG_SITE;;
2004 *) ac_site_file1=./$CONFIG_SITE;;
2005 esac
2006elif test "x$prefix" != xNONE; then
2007 ac_site_file1=$prefix/share/config.site
2008 ac_site_file2=$prefix/etc/config.site
2009else
2010 ac_site_file1=$ac_default_prefix/share/config.site
2011 ac_site_file2=$ac_default_prefix/etc/config.site
[17496]2012fi
[35457]2013for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2014do
2015 test "x$ac_site_file" = xNONE && continue
2016 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2018$as_echo "$as_me: loading site script $ac_site_file" >&6;}
[17496]2019 sed 's/^/| /' "$ac_site_file" >&5
[35457]2020 . "$ac_site_file" \
2021 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2023as_fn_error $? "failed to load site script $ac_site_file
2024See \`config.log' for more details" "$LINENO" 5; }
[17496]2025 fi
2026done
2027
2028if test -r "$cache_file"; then
[35457]2029 # Some versions of bash will fail to source /dev/null (special files
2030 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2031 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2033$as_echo "$as_me: loading cache $cache_file" >&6;}
[17496]2034 case $cache_file in
[35457]2035 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2036 *) . "./$cache_file";;
[17496]2037 esac
2038 fi
2039else
[35457]2040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2041$as_echo "$as_me: creating cache $cache_file" >&6;}
[17496]2042 >$cache_file
2043fi
2044
2045# Check that the precious variables saved in the cache have kept the same
2046# value.
2047ac_cache_corrupted=false
[35457]2048for ac_var in $ac_precious_vars; do
[17496]2049 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2050 eval ac_new_set=\$ac_env_${ac_var}_set
[35457]2051 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2052 eval ac_new_val=\$ac_env_${ac_var}_value
[17496]2053 case $ac_old_set,$ac_new_set in
2054 set,)
[35457]2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2056$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
[17496]2057 ac_cache_corrupted=: ;;
2058 ,set)
[35457]2059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2060$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
[17496]2061 ac_cache_corrupted=: ;;
2062 ,);;
2063 *)
2064 if test "x$ac_old_val" != "x$ac_new_val"; then
[35457]2065 # differences in whitespace do not lead to failure.
2066 ac_old_val_w=`echo x $ac_old_val`
2067 ac_new_val_w=`echo x $ac_new_val`
2068 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2070$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2071 ac_cache_corrupted=:
2072 else
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2074$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2075 eval $ac_var=\$ac_old_val
2076 fi
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2078$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2080$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
[17496]2081 fi;;
2082 esac
2083 # Pass precious variables to config.status.
2084 if test "$ac_new_set" = set; then
2085 case $ac_new_val in
[35457]2086 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
[17496]2087 *) ac_arg=$ac_var=$ac_new_val ;;
2088 esac
2089 case " $ac_configure_args " in
2090 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
[35457]2091 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
[17496]2092 esac
2093 fi
2094done
2095if $ac_cache_corrupted; then
[35457]2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2099$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2100 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
[17496]2101fi
[35457]2102## -------------------- ##
2103## Main body of script. ##
2104## -------------------- ##
[17496]2105
2106ac_ext=c
2107ac_cpp='$CPP $CPPFLAGS'
2108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113
[35457]2114ac_config_headers="$ac_config_headers config.h"
[17496]2115
2116
2117# Checks for programs.
[35457]2118ac_ext=cpp
[17496]2119ac_cpp='$CXXCPP $CPPFLAGS'
2120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
[35457]2123if test -z "$CXX"; then
2124 if test -n "$CCC"; then
2125 CXX=$CCC
2126 else
2127 if test -n "$ac_tool_prefix"; then
2128 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
[17496]2129 do
2130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
[35457]2132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2133$as_echo_n "checking for $ac_word... " >&6; }
2134if ${ac_cv_prog_CXX+:} false; then :
2135 $as_echo_n "(cached) " >&6
[17496]2136else
2137 if test -n "$CXX"; then
2138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
[35457]2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
[35457]2148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2149 break 2
2150 fi
2151done
[35457]2152 done
2153IFS=$as_save_IFS
[17496]2154
2155fi
2156fi
2157CXX=$ac_cv_prog_CXX
2158if test -n "$CXX"; then
[35457]2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2160$as_echo "$CXX" >&6; }
[17496]2161else
[35457]2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2163$as_echo "no" >&6; }
[17496]2164fi
2165
[35457]2166
[17496]2167 test -n "$CXX" && break
2168 done
2169fi
2170if test -z "$CXX"; then
2171 ac_ct_CXX=$CXX
[35457]2172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
[17496]2173do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
[35457]2176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2177$as_echo_n "checking for $ac_word... " >&6; }
2178if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2179 $as_echo_n "(cached) " >&6
[17496]2180else
2181 if test -n "$ac_ct_CXX"; then
2182 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
[35457]2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2191 ac_cv_prog_ac_ct_CXX="$ac_prog"
[35457]2192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2193 break 2
2194 fi
2195done
[35457]2196 done
2197IFS=$as_save_IFS
[17496]2198
2199fi
2200fi
2201ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2202if test -n "$ac_ct_CXX"; then
[35457]2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2204$as_echo "$ac_ct_CXX" >&6; }
[17496]2205else
[35457]2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2207$as_echo "no" >&6; }
[17496]2208fi
2209
[35457]2210
[17496]2211 test -n "$ac_ct_CXX" && break
2212done
2213
[35457]2214 if test "x$ac_ct_CXX" = x; then
2215 CXX="g++"
2216 else
2217 case $cross_compiling:$ac_tool_warned in
2218yes:)
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2221ac_tool_warned=yes ;;
2222esac
2223 CXX=$ac_ct_CXX
2224 fi
[17496]2225fi
2226
[35457]2227 fi
2228fi
[17496]2229# Provide some information about the compiler.
[35457]2230$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2231set X $ac_compile
2232ac_compiler=$2
2233for ac_option in --version -v -V -qversion; do
2234 { { ac_try="$ac_compiler $ac_option >&5"
2235case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
[17496]2242 ac_status=$?
[35457]2243 if test -s conftest.err; then
2244 sed '10a\
2245... rest of stderr output deleted ...
2246 10q' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 fi
2249 rm -f conftest.er1 conftest.err
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; }
2252done
[17496]2253
[35457]2254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]2255/* end confdefs.h. */
2256
2257int
2258main ()
2259{
2260
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265ac_clean_files_save=$ac_clean_files
[35457]2266ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
[17496]2267# Try to create an executable without -o first, disregard a.out.
2268# It will help us diagnose broken compilers, and finding out an intuition
2269# of exeext.
[35457]2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2271$as_echo_n "checking whether the C++ compiler works... " >&6; }
2272ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
[17496]2273
[35457]2274# The possible output files:
2275ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2276
2277ac_rmfiles=
2278for ac_file in $ac_files
[17496]2279do
[35457]2280 case $ac_file in
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2283 esac
2284done
2285rm -f $ac_rmfiles
2286
2287if { { ac_try="$ac_link_default"
2288case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291esac
2292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2293$as_echo "$ac_try_echo"; } >&5
2294 (eval "$ac_link_default") 2>&5
2295 ac_status=$?
2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; }; then :
2298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2299# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2300# in a Makefile. We should not override ac_cv_exeext if it was cached,
2301# so that the user can short-circuit this test for compilers unknown to
2302# Autoconf.
2303for ac_file in $ac_files ''
2304do
[17496]2305 test -f "$ac_file" || continue
2306 case $ac_file in
[35457]2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
[17496]2308 ;;
2309 [ab].out )
2310 # We found the default executable, but exeext='' is most
2311 # certainly right.
2312 break;;
2313 *.* )
[35457]2314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2315 then :; else
2316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 fi
2318 # We set ac_cv_exeext here because the later test for it is not
2319 # safe: cross compilers may not add the suffix if given an `-o'
2320 # argument, so we may need to know it at that point already.
2321 # Even if this section looks crufty: it has the advantage of
2322 # actually working.
[17496]2323 break;;
2324 * )
2325 break;;
2326 esac
2327done
[35457]2328test "$ac_cv_exeext" = no && ac_cv_exeext=
2329
[17496]2330else
[35457]2331 ac_file=''
2332fi
2333if test -z "$ac_file"; then :
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335$as_echo "no" >&6; }
2336$as_echo "$as_me: failed program was:" >&5
[17496]2337sed 's/^/| /' conftest.$ac_ext >&5
2338
[35457]2339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341as_fn_error 77 "C++ compiler cannot create executables
2342See \`config.log' for more details" "$LINENO" 5; }
2343else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2345$as_echo "yes" >&6; }
[17496]2346fi
[35457]2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2348$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2350$as_echo "$ac_file" >&6; }
[17496]2351ac_exeext=$ac_cv_exeext
2352
[35457]2353rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
[17496]2354ac_clean_files=$ac_clean_files_save
[35457]2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2356$as_echo_n "checking for suffix of executables... " >&6; }
2357if { { ac_try="$ac_link"
2358case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361esac
2362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363$as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>&5
[17496]2365 ac_status=$?
[35457]2366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; }; then :
[17496]2368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2370# work properly (i.e., refer to `conftest.exe'), while it won't with
2371# `rm'.
2372for ac_file in conftest.exe conftest conftest.*; do
2373 test -f "$ac_file" || continue
2374 case $ac_file in
[35457]2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
[17496]2376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377 break;;
2378 * ) break;;
2379 esac
2380done
2381else
[35457]2382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2385See \`config.log' for more details" "$LINENO" 5; }
[17496]2386fi
[35457]2387rm -f conftest conftest$ac_cv_exeext
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2389$as_echo "$ac_cv_exeext" >&6; }
[17496]2390
2391rm -f conftest.$ac_ext
2392EXEEXT=$ac_cv_exeext
2393ac_exeext=$EXEEXT
[35457]2394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h. */
2396#include <stdio.h>
2397int
2398main ()
2399{
2400FILE *f = fopen ("conftest.out", "w");
2401 return ferror (f) || fclose (f) != 0;
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407ac_clean_files="$ac_clean_files conftest.out"
2408# Check that the compiler produces executables we can run. If not, either
2409# the compiler is broken, or we cross compile.
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2411$as_echo_n "checking whether we are cross compiling... " >&6; }
2412if test "$cross_compiling" != yes; then
2413 { { ac_try="$ac_link"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419$as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_link") 2>&5
2421 ac_status=$?
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; }
2424 if { ac_try='./conftest$ac_cv_exeext'
2425 { { case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428esac
2429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430$as_echo "$ac_try_echo"; } >&5
2431 (eval "$ac_try") 2>&5
2432 ac_status=$?
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; }; }; then
2435 cross_compiling=no
2436 else
2437 if test "$cross_compiling" = maybe; then
2438 cross_compiling=yes
2439 else
2440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442as_fn_error $? "cannot run C++ compiled programs.
2443If you meant to cross compile, use \`--host'.
2444See \`config.log' for more details" "$LINENO" 5; }
2445 fi
2446 fi
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2449$as_echo "$cross_compiling" >&6; }
2450
2451rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2452ac_clean_files=$ac_clean_files_save
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2454$as_echo_n "checking for suffix of object files... " >&6; }
2455if ${ac_cv_objext+:} false; then :
2456 $as_echo_n "(cached) " >&6
[17496]2457else
[35457]2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]2459/* end confdefs.h. */
2460
2461int
2462main ()
2463{
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469rm -f conftest.o conftest.obj
[35457]2470if { { ac_try="$ac_compile"
2471case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476$as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_compile") 2>&5
[17496]2478 ac_status=$?
[35457]2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; }; then :
2481 for ac_file in conftest.o conftest.obj conftest.*; do
2482 test -f "$ac_file" || continue;
[17496]2483 case $ac_file in
[35457]2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
[17496]2485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2486 break;;
2487 esac
2488done
2489else
[35457]2490 $as_echo "$as_me: failed program was:" >&5
[17496]2491sed 's/^/| /' conftest.$ac_ext >&5
2492
[35457]2493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495as_fn_error $? "cannot compute suffix of object files: cannot compile
2496See \`config.log' for more details" "$LINENO" 5; }
[17496]2497fi
2498rm -f conftest.$ac_cv_objext conftest.$ac_ext
2499fi
[35457]2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2501$as_echo "$ac_cv_objext" >&6; }
[17496]2502OBJEXT=$ac_cv_objext
2503ac_objext=$OBJEXT
[35457]2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2505$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2506if ${ac_cv_cxx_compiler_gnu+:} false; then :
2507 $as_echo_n "(cached) " >&6
[17496]2508else
[35457]2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]2510/* end confdefs.h. */
2511
2512int
2513main ()
2514{
2515#ifndef __GNUC__
2516 choke me
2517#endif
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
[35457]2523if ac_fn_cxx_try_compile "$LINENO"; then :
[17496]2524 ac_compiler_gnu=yes
2525else
[35457]2526 ac_compiler_gnu=no
[17496]2527fi
[35457]2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]2529ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2530
2531fi
[35457]2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2533$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2534if test $ac_compiler_gnu = yes; then
2535 GXX=yes
2536else
2537 GXX=
2538fi
[17496]2539ac_test_CXXFLAGS=${CXXFLAGS+set}
2540ac_save_CXXFLAGS=$CXXFLAGS
[35457]2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2542$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2543if ${ac_cv_prog_cxx_g+:} false; then :
2544 $as_echo_n "(cached) " >&6
[17496]2545else
[35457]2546 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2547 ac_cxx_werror_flag=yes
2548 ac_cv_prog_cxx_g=no
2549 CXXFLAGS="-g"
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
[35457]2561if ac_fn_cxx_try_compile "$LINENO"; then :
[17496]2562 ac_cv_prog_cxx_g=yes
2563else
[35457]2564 CXXFLAGS=""
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
[17496]2567
2568int
2569main ()
2570{
[35457]2571
[17496]2572 ;
2573 return 0;
2574}
2575_ACEOF
[35457]2576if ac_fn_cxx_try_compile "$LINENO"; then :
2577
[17496]2578else
[35457]2579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2580 CXXFLAGS="-g"
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h. */
[17496]2583
2584int
2585main ()
2586{
[35457]2587
[17496]2588 ;
2589 return 0;
2590}
2591_ACEOF
[35457]2592if ac_fn_cxx_try_compile "$LINENO"; then :
2593 ac_cv_prog_cxx_g=yes
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2601fi
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2603$as_echo "$ac_cv_prog_cxx_g" >&6; }
2604if test "$ac_test_CXXFLAGS" = set; then
2605 CXXFLAGS=$ac_save_CXXFLAGS
2606elif test $ac_cv_prog_cxx_g = yes; then
2607 if test "$GXX" = yes; then
2608 CXXFLAGS="-g -O2"
2609 else
2610 CXXFLAGS="-g"
2611 fi
[17496]2612else
[35457]2613 if test "$GXX" = yes; then
2614 CXXFLAGS="-O2"
2615 else
2616 CXXFLAGS=
2617 fi
[17496]2618fi
2619ac_ext=c
2620ac_cpp='$CPP $CPPFLAGS'
2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}gcc; ac_word=$2
[35457]2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
[17496]2637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
[35457]2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
[35457]2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2650 break 2
2651 fi
2652done
[35457]2653 done
2654IFS=$as_save_IFS
[17496]2655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
[35457]2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661$as_echo "$CC" >&6; }
[17496]2662else
[35457]2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
[17496]2665fi
2666
[35457]2667
[17496]2668fi
2669if test -z "$ac_cv_prog_CC"; then
2670 ac_ct_CC=$CC
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672set dummy gcc; ac_word=$2
[35457]2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_ac_ct_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
[17496]2677else
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
[35457]2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2688 ac_cv_prog_ac_ct_CC="gcc"
[35457]2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2690 break 2
2691 fi
2692done
[35457]2693 done
2694IFS=$as_save_IFS
[17496]2695
2696fi
2697fi
2698ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699if test -n "$ac_ct_CC"; then
[35457]2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2701$as_echo "$ac_ct_CC" >&6; }
[17496]2702else
[35457]2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
[17496]2705fi
2706
[35457]2707 if test "x$ac_ct_CC" = x; then
2708 CC=""
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
[17496]2718else
2719 CC="$ac_cv_prog_CC"
2720fi
2721
2722if test -z "$CC"; then
[35457]2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
[17496]2725set dummy ${ac_tool_prefix}cc; ac_word=$2
[35457]2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if ${ac_cv_prog_CC+:} false; then :
2729 $as_echo_n "(cached) " >&6
[17496]2730else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
[35457]2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2741 ac_cv_prog_CC="${ac_tool_prefix}cc"
[35457]2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2743 break 2
2744 fi
2745done
[35457]2746 done
2747IFS=$as_save_IFS
[17496]2748
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
[35457]2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
[17496]2755else
[35457]2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
[17496]2758fi
2759
[35457]2760
[17496]2761 fi
2762fi
2763if test -z "$CC"; then
2764 # Extract the first word of "cc", so it can be a program name with args.
2765set dummy cc; ac_word=$2
[35457]2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
[17496]2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774 ac_prog_rejected=no
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
[35457]2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2783 ac_prog_rejected=yes
2784 continue
2785 fi
2786 ac_cv_prog_CC="cc"
[35457]2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2788 break 2
2789 fi
2790done
[35457]2791 done
2792IFS=$as_save_IFS
[17496]2793
2794if test $ac_prog_rejected = yes; then
2795 # We found a bogon in the path, so make sure we never use it.
2796 set dummy $ac_cv_prog_CC
2797 shift
2798 if test $# != 0; then
2799 # We chose a different compiler from the bogus one.
2800 # However, it has the same basename, so the bogon will be chosen
2801 # first if we set CC to just the basename; use the full file name.
2802 shift
2803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2804 fi
2805fi
2806fi
2807fi
2808CC=$ac_cv_prog_CC
2809if test -n "$CC"; then
[35457]2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811$as_echo "$CC" >&6; }
[17496]2812else
[35457]2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
[17496]2815fi
2816
[35457]2817
[17496]2818fi
2819if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
[35457]2821 for ac_prog in cl.exe
[17496]2822 do
2823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
[35457]2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
[17496]2829else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
[35457]2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
[35457]2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2842 break 2
2843 fi
2844done
[35457]2845 done
2846IFS=$as_save_IFS
[17496]2847
2848fi
2849fi
2850CC=$ac_cv_prog_CC
2851if test -n "$CC"; then
[35457]2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853$as_echo "$CC" >&6; }
[17496]2854else
[35457]2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
[17496]2857fi
2858
[35457]2859
[17496]2860 test -n "$CC" && break
2861 done
2862fi
2863if test -z "$CC"; then
2864 ac_ct_CC=$CC
[35457]2865 for ac_prog in cl.exe
[17496]2866do
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
[35457]2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_ac_ct_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
[17496]2873else
2874 if test -n "$ac_ct_CC"; then
2875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
[35457]2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[17496]2884 ac_cv_prog_ac_ct_CC="$ac_prog"
[35457]2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
[17496]2886 break 2
2887 fi
2888done
[35457]2889 done
2890IFS=$as_save_IFS
[17496]2891
2892fi
2893fi
2894ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895if test -n "$ac_ct_CC"; then
[35457]2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897$as_echo "$ac_ct_CC" >&6; }
[17496]2898else
[35457]2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
[17496]2901fi
2902
[35457]2903
[17496]2904 test -n "$ac_ct_CC" && break
2905done
2906
[35457]2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911yes:)
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914ac_tool_warned=yes ;;
2915esac
2916 CC=$ac_ct_CC
2917 fi
[17496]2918fi
2919
2920fi
2921
2922
[35457]2923test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925as_fn_error $? "no acceptable C compiler found in \$PATH
2926See \`config.log' for more details" "$LINENO" 5; }
[17496]2927
2928# Provide some information about the compiler.
[35457]2929$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2930set X $ac_compile
2931ac_compiler=$2
2932for ac_option in --version -v -V -qversion; do
2933 { { ac_try="$ac_compiler $ac_option >&5"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
[17496]2941 ac_status=$?
[35457]2942 if test -s conftest.err; then
2943 sed '10a\
2944... rest of stderr output deleted ...
2945 10q' conftest.err >conftest.er1
2946 cat conftest.er1 >&5
2947 fi
2948 rm -f conftest.er1 conftest.err
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951done
[17496]2952
[35457]2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955if ${ac_cv_c_compiler_gnu+:} false; then :
2956 $as_echo_n "(cached) " >&6
[17496]2957else
[35457]2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]2959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965 choke me
2966#endif
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
[35457]2972if ac_fn_c_try_compile "$LINENO"; then :
[17496]2973 ac_compiler_gnu=yes
2974else
[35457]2975 ac_compiler_gnu=no
[17496]2976fi
[35457]2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]2978ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980fi
[35457]2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983if test $ac_compiler_gnu = yes; then
2984 GCC=yes
2985else
2986 GCC=
2987fi
[17496]2988ac_test_CFLAGS=${CFLAGS+set}
2989ac_save_CFLAGS=$CFLAGS
[35457]2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991$as_echo_n "checking whether $CC accepts -g... " >&6; }
2992if ${ac_cv_prog_cc_g+:} false; then :
2993 $as_echo_n "(cached) " >&6
[17496]2994else
[35457]2995 ac_save_c_werror_flag=$ac_c_werror_flag
2996 ac_c_werror_flag=yes
2997 ac_cv_prog_cc_g=no
2998 CFLAGS="-g"
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
[35457]3010if ac_fn_c_try_compile "$LINENO"; then :
[17496]3011 ac_cv_prog_cc_g=yes
3012else
[35457]3013 CFLAGS=""
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h. */
[17496]3016
[35457]3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026
3027else
3028 ac_c_werror_flag=$ac_save_c_werror_flag
3029 CFLAGS="-g"
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042 ac_cv_prog_cc_g=yes
[17496]3043fi
[35457]3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]3045fi
[35457]3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_c_werror_flag=$ac_save_c_werror_flag
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052$as_echo "$ac_cv_prog_cc_g" >&6; }
[17496]3053if test "$ac_test_CFLAGS" = set; then
3054 CFLAGS=$ac_save_CFLAGS
3055elif test $ac_cv_prog_cc_g = yes; then
3056 if test "$GCC" = yes; then
3057 CFLAGS="-g -O2"
3058 else
3059 CFLAGS="-g"
3060 fi
3061else
3062 if test "$GCC" = yes; then
3063 CFLAGS="-O2"
3064 else
3065 CFLAGS=
3066 fi
3067fi
[35457]3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070if ${ac_cv_prog_cc_c89+:} false; then :
3071 $as_echo_n "(cached) " >&6
[17496]3072else
[35457]3073 ac_cv_prog_cc_c89=no
[17496]3074ac_save_CC=$CC
[35457]3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3076/* end confdefs.h. */
3077#include <stdarg.h>
3078#include <stdio.h>
[35457]3079struct stat;
[17496]3080/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3081struct buf { int x; };
3082FILE * (*rcsopen) (struct buf *, struct stat *, int);
3083static char *e (p, i)
3084 char **p;
3085 int i;
3086{
3087 return p[i];
3088}
3089static char *f (char * (*g) (char **, int), char **p, ...)
3090{
3091 char *s;
3092 va_list v;
3093 va_start (v,p);
3094 s = g (p, va_arg (v,int));
3095 va_end (v);
3096 return s;
3097}
3098
3099/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3100 function prototypes and stuff, but not '\xHH' hex character constants.
3101 These don't provoke an error unfortunately, instead are silently treated
[35457]3102 as 'x'. The following induces an error, until -std is added to get
[17496]3103 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3104 array size at least. It's necessary to write '\x00'==0 to get something
[35457]3105 that's true only with -std. */
[17496]3106int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107
[35457]3108/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3109 inside strings and character constants. */
3110#define FOO(x) 'x'
3111int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112
[17496]3113int test (int i, double x);
3114struct s1 {int (*f) (int a);};
3115struct s2 {int (*f) (double a);};
3116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3117int argc;
3118char **argv;
3119int
3120main ()
3121{
3122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123 ;
3124 return 0;
3125}
3126_ACEOF
[35457]3127for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3128 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
[17496]3129do
3130 CC="$ac_save_CC $ac_arg"
[35457]3131 if ac_fn_c_try_compile "$LINENO"; then :
3132 ac_cv_prog_cc_c89=$ac_arg
[17496]3133fi
[35457]3134rm -f core conftest.err conftest.$ac_objext
3135 test "x$ac_cv_prog_cc_c89" != "xno" && break
[17496]3136done
[35457]3137rm -f conftest.$ac_ext
[17496]3138CC=$ac_save_CC
3139
3140fi
[35457]3141# AC_CACHE_VAL
3142case "x$ac_cv_prog_cc_c89" in
3143 x)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3145$as_echo "none needed" >&6; } ;;
3146 xno)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3148$as_echo "unsupported" >&6; } ;;
[17496]3149 *)
[35457]3150 CC="$CC $ac_cv_prog_cc_c89"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3152$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
[17496]3153esac
[35457]3154if test "x$ac_cv_prog_cc_c89" != xno; then :
[17496]3155
3156fi
3157
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
[35457]3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3170$as_echo_n "checking how to run the C preprocessor... " >&6; }
[17496]3171# On Suns, sometimes $CPP names a directory.
3172if test -n "$CPP" && test -d "$CPP"; then
3173 CPP=
3174fi
3175if test -z "$CPP"; then
[35457]3176 if ${ac_cv_prog_CPP+:} false; then :
3177 $as_echo_n "(cached) " >&6
[17496]3178else
3179 # Double quotes because CPP needs to be expanded
3180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3181 do
3182 ac_preproc_ok=false
3183for ac_c_preproc_warn_flag in '' yes
3184do
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
[35457]3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
3199_ACEOF
[35457]3200if ac_fn_c_try_cpp "$LINENO"; then :
3201
[17496]3202else
3203 # Broken: fails on valid input.
3204continue
3205fi
[35457]3206rm -f conftest.err conftest.i conftest.$ac_ext
[17496]3207
[35457]3208 # OK, works on sane cases. Now check whether nonexistent headers
[17496]3209 # can be detected and how.
[35457]3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3211/* end confdefs.h. */
3212#include <ac_nonexistent.h>
3213_ACEOF
[35457]3214if ac_fn_c_try_cpp "$LINENO"; then :
[17496]3215 # Broken: success on invalid input.
3216continue
3217else
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
3221fi
[35457]3222rm -f conftest.err conftest.i conftest.$ac_ext
[17496]3223
3224done
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
[35457]3226rm -f conftest.i conftest.err conftest.$ac_ext
3227if $ac_preproc_ok; then :
[17496]3228 break
3229fi
3230
3231 done
3232 ac_cv_prog_CPP=$CPP
3233
3234fi
3235 CPP=$ac_cv_prog_CPP
3236else
3237 ac_cv_prog_CPP=$CPP
3238fi
[35457]3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3240$as_echo "$CPP" >&6; }
[17496]3241ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
[35457]3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3251/* end confdefs.h. */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
3257 Syntax error
3258_ACEOF
[35457]3259if ac_fn_c_try_cpp "$LINENO"; then :
3260
[17496]3261else
3262 # Broken: fails on valid input.
3263continue
3264fi
[35457]3265rm -f conftest.err conftest.i conftest.$ac_ext
[17496]3266
[35457]3267 # OK, works on sane cases. Now check whether nonexistent headers
[17496]3268 # can be detected and how.
[35457]3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3270/* end confdefs.h. */
3271#include <ac_nonexistent.h>
3272_ACEOF
[35457]3273if ac_fn_c_try_cpp "$LINENO"; then :
[17496]3274 # Broken: success on invalid input.
3275continue
3276else
3277 # Passes both tests.
3278ac_preproc_ok=:
3279break
3280fi
[35457]3281rm -f conftest.err conftest.i conftest.$ac_ext
[17496]3282
3283done
3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
[35457]3285rm -f conftest.i conftest.err conftest.$ac_ext
3286if $ac_preproc_ok; then :
3287
[17496]3288else
[35457]3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3292See \`config.log' for more details" "$LINENO" 5; }
[17496]3293fi
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301ac_aux_dir=
[35457]3302for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3303 if test -f "$ac_dir/install-sh"; then
[17496]3304 ac_aux_dir=$ac_dir
3305 ac_install_sh="$ac_aux_dir/install-sh -c"
3306 break
[35457]3307 elif test -f "$ac_dir/install.sh"; then
[17496]3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/install.sh -c"
3310 break
[35457]3311 elif test -f "$ac_dir/shtool"; then
[17496]3312 ac_aux_dir=$ac_dir
3313 ac_install_sh="$ac_aux_dir/shtool install -c"
3314 break
3315 fi
3316done
3317if test -z "$ac_aux_dir"; then
[35457]3318 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
[17496]3319fi
3320
[35457]3321# These three variables are undocumented and unsupported,
3322# and are intended to be withdrawn in a future Autoconf release.
3323# They can cause serious problems if a builder's source tree is in a directory
3324# whose full name contains unusual characters.
3325ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3326ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3327ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3328
3329
[17496]3330# Find a good install program. We prefer a C program (faster),
3331# so one script is as good as another. But avoid the broken or
3332# incompatible versions:
3333# SysV /etc/install, /usr/sbin/install
3334# SunOS /usr/etc/install
3335# IRIX /sbin/install
3336# AIX /bin/install
3337# AmigaOS /C/install, which installs bootblocks on floppy discs
3338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3341# OS/2's system install, which has a completely different semantic
3342# ./install, which can be erroneously created by make from ./install.sh.
[35457]3343# Reject install programs that cannot install multiple files.
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3345$as_echo_n "checking for a BSD-compatible install... " >&6; }
[17496]3346if test -z "$INSTALL"; then
[35457]3347if ${ac_cv_path_install+:} false; then :
3348 $as_echo_n "(cached) " >&6
[17496]3349else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
[35457]3355 # Account for people who put trailing slashes in PATH elements.
3356case $as_dir/ in #((
3357 ./ | .// | /[cC]/* | \
[17496]3358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
[35457]3359 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
[17496]3360 /usr/ucb/* ) ;;
3361 *)
3362 # OSF1 and SCO ODT 3.0 have their own names for install.
3363 # Don't use installbsd from OSF since it installs stuff as root
3364 # by default.
3365 for ac_prog in ginstall scoinst install; do
3366 for ac_exec_ext in '' $ac_executable_extensions; do
[35457]3367 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
[17496]3368 if test $ac_prog = install &&
3369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370 # AIX install. It has an incompatible calling convention.
3371 :
3372 elif test $ac_prog = install &&
3373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3374 # program-specific install script used by HP pwplus--don't use.
3375 :
3376 else
[35457]3377 rm -rf conftest.one conftest.two conftest.dir
3378 echo one > conftest.one
3379 echo two > conftest.two
3380 mkdir conftest.dir
3381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3382 test -s conftest.one && test -s conftest.two &&
3383 test -s conftest.dir/conftest.one &&
3384 test -s conftest.dir/conftest.two
3385 then
3386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3387 break 3
3388 fi
[17496]3389 fi
3390 fi
3391 done
3392 done
3393 ;;
3394esac
3395
[35457]3396 done
3397IFS=$as_save_IFS
[17496]3398
[35457]3399rm -rf conftest.one conftest.two conftest.dir
3400
[17496]3401fi
3402 if test "${ac_cv_path_install+set}" = set; then
3403 INSTALL=$ac_cv_path_install
3404 else
[35457]3405 # As a last resort, use the slow shell script. Don't cache a
3406 # value for INSTALL within a source directory, because that will
[17496]3407 # break other packages using the cache if that directory is
[35457]3408 # removed, or if the value is a relative name.
[17496]3409 INSTALL=$ac_install_sh
3410 fi
3411fi
[35457]3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3413$as_echo "$INSTALL" >&6; }
[17496]3414
3415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3416# It thinks the first close brace ends the variable substitution.
3417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3418
3419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3420
3421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3422
3423
[35457]3424
3425if test "x$JAVAC" = x ; then
3426 if test "x$JAVAPREFIX" = x; then
3427 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
3428do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430set dummy $ac_prog; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if ${ac_cv_prog_JAVAC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435else
3436 if test -n "$JAVAC"; then
3437 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_JAVAC="$ac_prog"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451 done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456JAVAC=$ac_cv_prog_JAVAC
3457if test -n "$JAVAC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
3459$as_echo "$JAVAC" >&6; }
3460else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466 test -n "$JAVAC" && break
3467done
3468
3469 else
3470 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
3471do
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473set dummy $ac_prog; ac_word=$2
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475$as_echo_n "checking for $ac_word... " >&6; }
3476if ${ac_cv_prog_JAVAC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478else
3479 if test -n "$JAVAC"; then
3480 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_JAVAC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493done
3494 done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499JAVAC=$ac_cv_prog_JAVAC
3500if test -n "$JAVAC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
3502$as_echo "$JAVAC" >&6; }
3503else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
3506fi
3507
3508
3509 test -n "$JAVAC" && break
3510done
3511test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
3512
3513 fi
3514 test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
3515else
3516 echo "Checking for javac... $JAVAC"
3517fi
3518
3519
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
3521$as_echo_n "checking if $JAVAC works... " >&6; }
3522if ${ac_cv_prog_javac_works+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524else
3525
3526JAVA_TEST=Test.java
3527CLASS_TEST=Test.class
3528cat << \EOF > $JAVA_TEST
3529/* #line 3529 "configure" */
3530public class Test {
3531}
3532EOF
3533if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
3534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; } >/dev/null 2>&1; then
3539 ac_cv_prog_javac_works=yes
3540else
3541 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
3542 echo "configure: failed program was:" >&5
3543 cat $JAVA_TEST >&5
3544fi
3545rm -f $JAVA_TEST $CLASS_TEST
3546
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
3549$as_echo "$ac_cv_prog_javac_works" >&6; }
3550if test "x$JAVACFLAGS" = x ; then
3551 JAVACFLAGS="-source 1.6 -target 1.6"
3552fi
3553
3554
3555
3556
[17496]3557# Checks for libraries.
3558
3559# Checks for header files.
3560
3561# Checks for typedefs, structures, and compiler characteristics.
3562
3563
[35457]3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3565$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3566if ${ac_cv_path_GREP+:} false; then :
3567 $as_echo_n "(cached) " >&6
[17496]3568else
[35457]3569 if test -z "$GREP"; then
3570 ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_prog in grep ggrep; do
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580 as_fn_executable_p "$ac_path_GREP" || continue
3581# Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583case `"$ac_path_GREP" --version 2>&1` in
3584*GNU*)
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586*)
3587 ac_count=0
3588 $as_echo_n 0123456789 >"conftest.in"
3589 while :
3590 do
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 $as_echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 as_fn_arith $ac_count + 1 && ac_count=$as_val
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
[17496]3602 fi
[35457]3603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3605 done
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607esac
3608
3609 $ac_path_GREP_found && break 3
3610 done
3611 done
3612 done
3613IFS=$as_save_IFS
3614 if test -z "$ac_cv_path_GREP"; then
3615 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3616 fi
3617else
3618 ac_cv_path_GREP=$GREP
[17496]3619fi
3620
[35457]3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3623$as_echo "$ac_cv_path_GREP" >&6; }
3624 GREP="$ac_cv_path_GREP"
[17496]3625
[35457]3626
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3628$as_echo_n "checking for egrep... " >&6; }
3629if ${ac_cv_path_EGREP+:} false; then :
3630 $as_echo_n "(cached) " >&6
[17496]3631else
[35457]3632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3633 then ac_cv_path_EGREP="$GREP -E"
3634 else
3635 if test -z "$EGREP"; then
3636 ac_path_EGREP_found=false
3637 # Loop through the user's path and test for each of PROGNAME-LIST
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3640do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_prog in egrep; do
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3646 as_fn_executable_p "$ac_path_EGREP" || continue
3647# Check for GNU ac_path_EGREP and select it if it is found.
3648 # Check for GNU $ac_path_EGREP
3649case `"$ac_path_EGREP" --version 2>&1` in
3650*GNU*)
3651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3652*)
3653 ac_count=0
3654 $as_echo_n 0123456789 >"conftest.in"
3655 while :
3656 do
3657 cat "conftest.in" "conftest.in" >"conftest.tmp"
3658 mv "conftest.tmp" "conftest.in"
3659 cp "conftest.in" "conftest.nl"
3660 $as_echo 'EGREP' >> "conftest.nl"
3661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3663 as_fn_arith $ac_count + 1 && ac_count=$as_val
3664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3665 # Best one so far, save it but keep looking for a better one
3666 ac_cv_path_EGREP="$ac_path_EGREP"
3667 ac_path_EGREP_max=$ac_count
3668 fi
3669 # 10*(2^10) chars as input seems more than enough
3670 test $ac_count -gt 10 && break
3671 done
3672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3673esac
3674
3675 $ac_path_EGREP_found && break 3
3676 done
3677 done
3678 done
3679IFS=$as_save_IFS
3680 if test -z "$ac_cv_path_EGREP"; then
3681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3682 fi
3683else
3684 ac_cv_path_EGREP=$EGREP
3685fi
3686
3687 fi
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3690$as_echo "$ac_cv_path_EGREP" >&6; }
3691 EGREP="$ac_cv_path_EGREP"
3692
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3695$as_echo_n "checking for ANSI C header files... " >&6; }
3696if ${ac_cv_header_stdc+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3700/* end confdefs.h. */
3701#include <stdlib.h>
3702#include <stdarg.h>
3703#include <string.h>
3704#include <float.h>
3705
3706int
3707main ()
3708{
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
[35457]3714if ac_fn_c_try_compile "$LINENO"; then :
[17496]3715 ac_cv_header_stdc=yes
3716else
[35457]3717 ac_cv_header_stdc=no
[17496]3718fi
[35457]3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]3720
3721if test $ac_cv_header_stdc = yes; then
3722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
[35457]3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3724/* end confdefs.h. */
3725#include <string.h>
3726
3727_ACEOF
3728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[35457]3729 $EGREP "memchr" >/dev/null 2>&1; then :
3730
[17496]3731else
3732 ac_cv_header_stdc=no
3733fi
3734rm -f conftest*
3735
3736fi
3737
3738if test $ac_cv_header_stdc = yes; then
3739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
[35457]3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3741/* end confdefs.h. */
3742#include <stdlib.h>
3743
3744_ACEOF
3745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[35457]3746 $EGREP "free" >/dev/null 2>&1; then :
3747
[17496]3748else
3749 ac_cv_header_stdc=no
3750fi
3751rm -f conftest*
3752
3753fi
3754
3755if test $ac_cv_header_stdc = yes; then
3756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
[35457]3757 if test "$cross_compiling" = yes; then :
[17496]3758 :
3759else
[35457]3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3761/* end confdefs.h. */
3762#include <ctype.h>
[35457]3763#include <stdlib.h>
[17496]3764#if ((' ' & 0x0FF) == 0x020)
3765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3767#else
3768# define ISLOWER(c) \
3769 (('a' <= (c) && (c) <= 'i') \
3770 || ('j' <= (c) && (c) <= 'r') \
3771 || ('s' <= (c) && (c) <= 'z'))
3772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3773#endif
3774
3775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3776int
3777main ()
3778{
3779 int i;
3780 for (i = 0; i < 256; i++)
3781 if (XOR (islower (i), ISLOWER (i))
3782 || toupper (i) != TOUPPER (i))
[35457]3783 return 2;
3784 return 0;
[17496]3785}
3786_ACEOF
[35457]3787if ac_fn_c_try_run "$LINENO"; then :
3788
[17496]3789else
[35457]3790 ac_cv_header_stdc=no
[17496]3791fi
[35457]3792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3793 conftest.$ac_objext conftest.beam conftest.$ac_ext
[17496]3794fi
[35457]3795
[17496]3796fi
3797fi
[35457]3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3799$as_echo "$ac_cv_header_stdc" >&6; }
[17496]3800if test $ac_cv_header_stdc = yes; then
3801
[35457]3802$as_echo "#define STDC_HEADERS 1" >>confdefs.h
[17496]3803
3804fi
3805
3806# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3807for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3808 inttypes.h stdint.h unistd.h
[35457]3809do :
3810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3812"
3813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
[17496]3814 cat >>confdefs.h <<_ACEOF
[35457]3815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
[17496]3816_ACEOF
3817
3818fi
3819
3820done
3821
3822
[35457]3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3824$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3825if ${ac_cv_header_stdbool_h+:} false; then :
3826 $as_echo_n "(cached) " >&6
[17496]3827else
[35457]3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3829/* end confdefs.h. */
3830
[35457]3831 #include <stdbool.h>
3832 #ifndef bool
3833 "error: bool is not defined"
3834 #endif
3835 #ifndef false
3836 "error: false is not defined"
3837 #endif
3838 #if false
3839 "error: false is not 0"
3840 #endif
3841 #ifndef true
3842 "error: true is not defined"
3843 #endif
3844 #if true != 1
3845 "error: true is not 1"
3846 #endif
3847 #ifndef __bool_true_false_are_defined
3848 "error: __bool_true_false_are_defined is not defined"
3849 #endif
[17496]3850
[35457]3851 struct s { _Bool s: 1; _Bool t; } s;
[17496]3852
[35457]3853 char a[true == 1 ? 1 : -1];
3854 char b[false == 0 ? 1 : -1];
3855 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3856 char d[(bool) 0.5 == true ? 1 : -1];
3857 /* See body of main program for 'e'. */
3858 char f[(_Bool) 0.0 == false ? 1 : -1];
3859 char g[true];
3860 char h[sizeof (_Bool)];
3861 char i[sizeof s.t];
3862 enum { j = false, k = true, l = false * true, m = true * 256 };
3863 /* The following fails for
3864 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3865 _Bool n[m];
3866 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3867 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3868 /* Catch a bug in an HP-UX C compiler. See
3869 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3870 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3871 */
3872 _Bool q = true;
3873 _Bool *pq = &q;
[17496]3874
3875int
3876main ()
3877{
[35457]3878
3879 bool e = &s;
3880 *pq |= q;
3881 *pq |= ! q;
3882 /* Refer to every declared value, to avoid compiler optimizations. */
3883 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3884 + !m + !n + !o + !p + !q + !pq);
3885
[17496]3886 ;
3887 return 0;
3888}
3889_ACEOF
[35457]3890if ac_fn_c_try_compile "$LINENO"; then :
[17496]3891 ac_cv_header_stdbool_h=yes
3892else
[35457]3893 ac_cv_header_stdbool_h=no
[17496]3894fi
[35457]3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]3896fi
[35457]3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3898$as_echo "$ac_cv_header_stdbool_h" >&6; }
3899 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3900if test "x$ac_cv_type__Bool" = xyes; then :
[17496]3901
3902cat >>confdefs.h <<_ACEOF
3903#define HAVE__BOOL 1
3904_ACEOF
3905
3906
3907fi
3908
[35457]3909
[17496]3910if test $ac_cv_header_stdbool_h = yes; then
3911
[35457]3912$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
[17496]3913
3914fi
3915
[35457]3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3917$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3918if ${ac_cv_c_const+:} false; then :
3919 $as_echo_n "(cached) " >&6
[17496]3920else
[35457]3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]3922/* end confdefs.h. */
3923
3924int
3925main ()
3926{
[35457]3927
[17496]3928#ifndef __cplusplus
[35457]3929 /* Ultrix mips cc rejects this sort of thing. */
[17496]3930 typedef int charset[2];
[35457]3931 const charset cs = { 0, 0 };
[17496]3932 /* SunOS 4.1.1 cc rejects this. */
[35457]3933 char const *const *pcpcc;
3934 char **ppc;
[17496]3935 /* NEC SVR4.0.2 mips cc rejects this. */
3936 struct point {int x, y;};
3937 static struct point const zero = {0,0};
3938 /* AIX XL C 1.02.0.0 rejects this.
3939 It does not let you subtract one const X* pointer from another in
3940 an arm of an if-expression whose if-part is not a constant
3941 expression */
3942 const char *g = "string";
[35457]3943 pcpcc = &g + (g ? g-g : 0);
[17496]3944 /* HPUX 7.0 cc rejects these. */
[35457]3945 ++pcpcc;
3946 ppc = (char**) pcpcc;
3947 pcpcc = (char const *const *) ppc;
3948 { /* SCO 3.2v4 cc rejects this sort of thing. */
3949 char tx;
3950 char *t = &tx;
[17496]3951 char const *s = 0 ? (char *) 0 : (char const *) 0;
3952
3953 *t++ = 0;
[35457]3954 if (s) return 0;
[17496]3955 }
3956 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3957 int x[] = {25, 17};
3958 const int *foo = &x[0];
3959 ++foo;
3960 }
3961 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3962 typedef const int *iptr;
3963 iptr p = 0;
3964 ++p;
3965 }
[35457]3966 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
[17496]3967 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
[35457]3968 struct s { int j; const int *ap[3]; } bx;
3969 struct s *b = &bx; b->j = 5;
[17496]3970 }
3971 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3972 const int foo = 10;
[35457]3973 if (!foo) return 0;
[17496]3974 }
[35457]3975 return !cs[0] && !zero.x;
[17496]3976#endif
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
[35457]3982if ac_fn_c_try_compile "$LINENO"; then :
[17496]3983 ac_cv_c_const=yes
3984else
[35457]3985 ac_cv_c_const=no
[17496]3986fi
[35457]3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]3988fi
[35457]3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3990$as_echo "$ac_cv_c_const" >&6; }
[17496]3991if test $ac_cv_c_const = no; then
3992
[35457]3993$as_echo "#define const /**/" >>confdefs.h
[17496]3994
3995fi
3996
3997
3998# Checks for library functions.
[35457]3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4000$as_echo_n "checking for ANSI C header files... " >&6; }
4001if ${ac_cv_header_stdc+:} false; then :
4002 $as_echo_n "(cached) " >&6
[17496]4003else
[35457]4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]4005/* end confdefs.h. */
4006#include <stdlib.h>
4007#include <stdarg.h>
4008#include <string.h>
4009#include <float.h>
4010
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
[35457]4019if ac_fn_c_try_compile "$LINENO"; then :
[17496]4020 ac_cv_header_stdc=yes
4021else
[35457]4022 ac_cv_header_stdc=no
[17496]4023fi
[35457]4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
[17496]4025
4026if test $ac_cv_header_stdc = yes; then
4027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
[35457]4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]4029/* end confdefs.h. */
4030#include <string.h>
4031
4032_ACEOF
4033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[35457]4034 $EGREP "memchr" >/dev/null 2>&1; then :
4035
[17496]4036else
4037 ac_cv_header_stdc=no
4038fi
4039rm -f conftest*
4040
4041fi
4042
4043if test $ac_cv_header_stdc = yes; then
4044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
[35457]4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]4046/* end confdefs.h. */
4047#include <stdlib.h>
4048
4049_ACEOF
4050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[35457]4051 $EGREP "free" >/dev/null 2>&1; then :
4052
[17496]4053else
4054 ac_cv_header_stdc=no
4055fi
4056rm -f conftest*
4057
4058fi
4059
4060if test $ac_cv_header_stdc = yes; then
4061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
[35457]4062 if test "$cross_compiling" = yes; then :
[17496]4063 :
4064else
[35457]4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[17496]4066/* end confdefs.h. */
4067#include <ctype.h>
[35457]4068#include <stdlib.h>
[17496]4069#if ((' ' & 0x0FF) == 0x020)
4070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072#else
4073# define ISLOWER(c) \
4074 (('a' <= (c) && (c) <= 'i') \
4075 || ('j' <= (c) && (c) <= 'r') \
4076 || ('s' <= (c) && (c) <= 'z'))
4077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078#endif
4079
4080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4081int
4082main ()
4083{
4084 int i;
4085 for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i))
4087 || toupper (i) != TOUPPER (i))
[35457]4088 return 2;
4089 return 0;
[17496]4090}
4091_ACEOF
[35457]4092if ac_fn_c_try_run "$LINENO"; then :
4093
[17496]4094else
[35457]4095 ac_cv_header_stdc=no
[17496]4096fi
[35457]4097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4098 conftest.$ac_objext conftest.beam conftest.$ac_ext
[17496]4099fi
[35457]4100
[17496]4101fi
4102fi
[35457]4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4104$as_echo "$ac_cv_header_stdc" >&6; }
[17496]4105if test $ac_cv_header_stdc = yes; then
4106
[35457]4107$as_echo "#define STDC_HEADERS 1" >>confdefs.h
[17496]4108
4109fi
4110
4111for ac_func in memset
[35457]4112do :
4113 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4114if test "x$ac_cv_func_memset" = xyes; then :
[17496]4115 cat >>confdefs.h <<_ACEOF
[35457]4116#define HAVE_MEMSET 1
[17496]4117_ACEOF
4118
4119fi
4120done
4121
4122
[35457]4123ac_config_files="$ac_config_files Makefile"
[17496]4124
4125cat >confcache <<\_ACEOF
4126# This file is a shell script that caches the results of configure
4127# tests run on this system so they can be shared between configure
4128# scripts and configure runs, see configure's option --config-cache.
4129# It is not useful on other systems. If it contains results you don't
4130# want to keep, you may remove or edit it.
4131#
4132# config.status only pays attention to the cache file if you give it
4133# the --recheck option to rerun configure.
4134#
4135# `ac_cv_env_foo' variables (set or unset) will be overridden when
4136# loading this file, other *unset* `ac_cv_foo' will be assigned the
4137# following values.
4138
4139_ACEOF
4140
4141# The following way of writing the cache mishandles newlines in values,
4142# but we know of no workaround that is simple, portable, and efficient.
[35457]4143# So, we kill variables containing newlines.
[17496]4144# Ultrix sh set writes to stderr and can't be redirected directly,
4145# and sets the high bit in the cache file unless we assign to the vars.
[35457]4146(
4147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4148 eval ac_val=\$$ac_var
4149 case $ac_val in #(
4150 *${as_nl}*)
4151 case $ac_var in #(
4152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4154 esac
4155 case $ac_var in #(
4156 _ | IFS | as_nl) ;; #(
4157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4158 *) { eval $ac_var=; unset $ac_var;} ;;
4159 esac ;;
4160 esac
4161 done
4162
[17496]4163 (set) 2>&1 |
[35457]4164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4165 *${as_nl}ac_space=\ *)
4166 # `set' does not quote correctly, so add quotes: double-quote
4167 # substitution turns \\\\ into \\, and sed turns \\ into \.
[17496]4168 sed -n \
4169 "s/'/'\\\\''/g;
4170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
[35457]4171 ;; #(
[17496]4172 *)
4173 # `set' quotes correctly as required by POSIX, so do not add quotes.
[35457]4174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
[17496]4175 ;;
[35457]4176 esac |
4177 sort
4178) |
[17496]4179 sed '
[35457]4180 /^ac_cv_env_/b end
[17496]4181 t clear
[35457]4182 :clear
[17496]4183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4184 t end
[35457]4185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4186 :end' >>confcache
4187if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4188 if test -w "$cache_file"; then
4189 if test "x$cache_file" != "x/dev/null"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4191$as_echo "$as_me: updating cache $cache_file" >&6;}
4192 if test ! -f "$cache_file" || test -h "$cache_file"; then
4193 cat confcache >"$cache_file"
4194 else
4195 case $cache_file in #(
4196 */* | ?:*)
4197 mv -f confcache "$cache_file"$$ &&
4198 mv -f "$cache_file"$$ "$cache_file" ;; #(
4199 *)
4200 mv -f confcache "$cache_file" ;;
4201 esac
4202 fi
4203 fi
[17496]4204 else
[35457]4205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4206$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
[17496]4207 fi
4208fi
4209rm -f confcache
4210
4211test "x$prefix" = xNONE && prefix=$ac_default_prefix
4212# Let make expand exec_prefix.
4213test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4214
4215DEFS=-DHAVE_CONFIG_H
4216
4217ac_libobjs=
4218ac_ltlibobjs=
[35457]4219U=
[17496]4220for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4221 # 1. Remove the extension, and $U if already installed.
[35457]4222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4225 # will be set to the directory where LIBOBJS objects are built.
4226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
[17496]4228done
4229LIBOBJS=$ac_libobjs
4230
4231LTLIBOBJS=$ac_ltlibobjs
4232
4233
4234
[35457]4235: "${CONFIG_STATUS=./config.status}"
4236ac_write_fail=0
[17496]4237ac_clean_files_save=$ac_clean_files
4238ac_clean_files="$ac_clean_files $CONFIG_STATUS"
[35457]4239{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4240$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4241as_write_fail=0
4242cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
[17496]4243#! $SHELL
4244# Generated by $as_me.
4245# Run this file to recreate the current configuration.
4246# Compiler output produced by configure, useful for debugging
4247# configure, is in config.log if it exists.
4248
4249debug=false
4250ac_cs_recheck=false
4251ac_cs_silent=false
[35457]4252
[17496]4253SHELL=\${CONFIG_SHELL-$SHELL}
[35457]4254export SHELL
4255_ASEOF
4256cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4257## -------------------- ##
4258## M4sh Initialization. ##
4259## -------------------- ##
[17496]4260
[35457]4261# Be more Bourne compatible
4262DUALCASE=1; export DUALCASE # for MKS sh
4263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
[17496]4264 emulate sh
4265 NULLCMD=:
[35457]4266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
[17496]4267 # is contrary to our usage. Disable this feature.
4268 alias -g '${1+"$@"}'='"$@"'
[35457]4269 setopt NO_GLOB_SUBST
4270else
4271 case `(set -o) 2>/dev/null` in #(
4272 *posix*) :
4273 set -o posix ;; #(
4274 *) :
4275 ;;
4276esac
[17496]4277fi
4278
[35457]4279
4280as_nl='
4281'
4282export as_nl
4283# Printing a long string crashes Solaris 7 /usr/bin/printf.
4284as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4285as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4287# Prefer a ksh shell builtin over an external printf program on Solaris,
4288# but without wasting forks for bash or zsh.
4289if test -z "$BASH_VERSION$ZSH_VERSION" \
4290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4291 as_echo='print -r --'
4292 as_echo_n='print -rn --'
4293elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4294 as_echo='printf %s\n'
4295 as_echo_n='printf %s'
[17496]4296else
[35457]4297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4299 as_echo_n='/usr/ucb/echo -n'
4300 else
4301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4302 as_echo_n_body='eval
4303 arg=$1;
4304 case $arg in #(
4305 *"$as_nl"*)
4306 expr "X$arg" : "X\\(.*\\)$as_nl";
4307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4308 esac;
4309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4310 '
4311 export as_echo_n_body
4312 as_echo_n='sh -c $as_echo_n_body as_echo'
4313 fi
4314 export as_echo_body
4315 as_echo='sh -c $as_echo_body as_echo'
[17496]4316fi
4317
[35457]4318# The user is always right.
4319if test "${PATH_SEPARATOR+set}" != set; then
4320 PATH_SEPARATOR=:
4321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4323 PATH_SEPARATOR=';'
4324 }
4325fi
[17496]4326
[35457]4327
4328# IFS
4329# We need space, tab and new line, in precisely that order. Quoting is
4330# there to prevent editors from complaining about space-tab.
4331# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4332# splitting by setting IFS to empty value.)
4333IFS=" "" $as_nl"
4334
4335# Find who we are. Look in the path if we contain no directory separator.
4336as_myself=
4337case $0 in #((
4338 *[\\/]* ) as_myself=$0 ;;
4339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4345 done
4346IFS=$as_save_IFS
4347
4348 ;;
4349esac
4350# We did not find ourselves, most probably we were run as `sh COMMAND'
4351# in which case we are not to be found in the path.
4352if test "x$as_myself" = x; then
4353 as_myself=$0
4354fi
4355if test ! -f "$as_myself"; then
4356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4357 exit 1
4358fi
4359
4360# Unset variables that we do not need and which cause bugs (e.g. in
4361# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4362# suppresses any "Segmentation fault" message there. '((' could
4363# trigger a bug in pdksh 5.2.14.
4364for as_var in BASH_ENV ENV MAIL MAILPATH
4365do eval test x\${$as_var+set} = xset \
4366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4367done
[17496]4368PS1='$ '
4369PS2='> '
4370PS4='+ '
4371
4372# NLS nuisances.
[35457]4373LC_ALL=C
4374export LC_ALL
4375LANGUAGE=C
4376export LANGUAGE
4377
4378# CDPATH.
4379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4380
4381
4382# as_fn_error STATUS ERROR [LINENO LOG_FD]
4383# ----------------------------------------
4384# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4385# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4386# script with STATUS, using 1 if that was 0.
4387as_fn_error ()
4388{
4389 as_status=$1; test $as_status -eq 0 && as_status=1
4390 if test "$4"; then
4391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
[17496]4393 fi
[35457]4394 $as_echo "$as_me: error: $2" >&2
4395 as_fn_exit $as_status
4396} # as_fn_error
[17496]4397
[35457]4398
4399# as_fn_set_status STATUS
4400# -----------------------
4401# Set $? to STATUS, without forking.
4402as_fn_set_status ()
4403{
4404 return $1
4405} # as_fn_set_status
4406
4407# as_fn_exit STATUS
4408# -----------------
4409# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4410as_fn_exit ()
4411{
4412 set +e
4413 as_fn_set_status $1
4414 exit $1
4415} # as_fn_exit
4416
4417# as_fn_unset VAR
4418# ---------------
4419# Portably unset VAR.
4420as_fn_unset ()
4421{
4422 { eval $1=; unset $1;}
4423}
4424as_unset=as_fn_unset
4425# as_fn_append VAR VALUE
4426# ----------------------
4427# Append the text in VALUE to the end of the definition contained in VAR. Take
4428# advantage of any shell optimizations that allow amortized linear growth over
4429# repeated appends, instead of the typical quadratic growth present in naive
4430# implementations.
4431if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4432 eval 'as_fn_append ()
4433 {
4434 eval $1+=\$2
4435 }'
4436else
4437 as_fn_append ()
4438 {
4439 eval $1=\$$1\$2
4440 }
4441fi # as_fn_append
4442
4443# as_fn_arith ARG...
4444# ------------------
4445# Perform arithmetic evaluation on the ARGs, and store the result in the
4446# global $as_val. Take advantage of shells that can avoid forks. The arguments
4447# must be portable across $(()) and expr.
4448if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4449 eval 'as_fn_arith ()
4450 {
4451 as_val=$(( $* ))
4452 }'
4453else
4454 as_fn_arith ()
4455 {
4456 as_val=`expr "$@" || test $? -eq 1`
4457 }
4458fi # as_fn_arith
4459
4460
4461if expr a : '\(a\)' >/dev/null 2>&1 &&
4462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
[17496]4463 as_expr=expr
4464else
4465 as_expr=false
4466fi
4467
[35457]4468if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
[17496]4469 as_basename=basename
4470else
4471 as_basename=false
4472fi
4473
[35457]4474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4475 as_dirname=dirname
4476else
4477 as_dirname=false
4478fi
[17496]4479
[35457]4480as_me=`$as_basename -- "$0" ||
[17496]4481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4482 X"$0" : 'X\(//\)$' \| \
[35457]4483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4484$as_echo X/"$0" |
4485 sed '/^.*\/\([^/][^/]*\)\/*$/{
4486 s//\1/
4487 q
4488 }
4489 /^X\/\(\/\/\)$/{
4490 s//\1/
4491 q
4492 }
4493 /^X\/\(\/\).*/{
4494 s//\1/
4495 q
4496 }
4497 s/.*/./; q'`
[17496]4498
4499# Avoid depending upon Character Ranges.
4500as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4502as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4503as_cr_digits='0123456789'
4504as_cr_alnum=$as_cr_Letters$as_cr_digits
4505
[35457]4506ECHO_C= ECHO_N= ECHO_T=
4507case `echo -n x` in #(((((
4508-n*)
4509 case `echo 'xy\c'` in
4510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4511 xy) ECHO_C='\c';;
4512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4513 ECHO_T=' ';;
4514 esac;;
4515*)
4516 ECHO_N='-n';;
4517esac
4518
4519rm -f conf$$ conf$$.exe conf$$.file
4520if test -d conf$$.dir; then
4521 rm -f conf$$.dir/conf$$.file
4522else
4523 rm -f conf$$.dir
4524 mkdir conf$$.dir 2>/dev/null
4525fi
4526if (echo >conf$$.file) 2>/dev/null; then
4527 if ln -s conf$$.file conf$$ 2>/dev/null; then
4528 as_ln_s='ln -s'
4529 # ... but there are two gotchas:
4530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4532 # In both cases, we have to default to `cp -pR'.
4533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4534 as_ln_s='cp -pR'
4535 elif ln conf$$.file conf$$ 2>/dev/null; then
4536 as_ln_s=ln
[17496]4537 else
[35457]4538 as_ln_s='cp -pR'
[17496]4539 fi
[35457]4540else
4541 as_ln_s='cp -pR'
[17496]4542fi
[35457]4543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4544rmdir conf$$.dir 2>/dev/null
[17496]4545
4546
[35457]4547# as_fn_mkdir_p
4548# -------------
4549# Create "$as_dir" as a directory, including parents if necessary.
4550as_fn_mkdir_p ()
4551{
[17496]4552
[35457]4553 case $as_dir in #(
4554 -*) as_dir=./$as_dir;;
[17496]4555 esac
[35457]4556 test -d "$as_dir" || eval $as_mkdir_p || {
4557 as_dirs=
4558 while :; do
4559 case $as_dir in #(
4560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4561 *) as_qdir=$as_dir;;
4562 esac
4563 as_dirs="'$as_qdir' $as_dirs"
4564 as_dir=`$as_dirname -- "$as_dir" ||
4565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4566 X"$as_dir" : 'X\(//\)[^/]' \| \
4567 X"$as_dir" : 'X\(//\)$' \| \
4568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4569$as_echo X"$as_dir" |
4570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4571 s//\1/
4572 q
4573 }
4574 /^X\(\/\/\)[^/].*/{
4575 s//\1/
4576 q
4577 }
4578 /^X\(\/\/\)$/{
4579 s//\1/
4580 q
4581 }
4582 /^X\(\/\).*/{
4583 s//\1/
4584 q
4585 }
4586 s/.*/./; q'`
4587 test -d "$as_dir" && break
4588 done
4589 test -z "$as_dirs" || eval "mkdir $as_dirs"
4590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
[17496]4591
4592
[35457]4593} # as_fn_mkdir_p
[17496]4594if mkdir -p . 2>/dev/null; then
[35457]4595 as_mkdir_p='mkdir -p "$as_dir"'
[17496]4596else
4597 test -d ./-p && rmdir ./-p
4598 as_mkdir_p=false
4599fi
4600
4601
[35457]4602# as_fn_executable_p FILE
4603# -----------------------
4604# Test if FILE is an executable regular file.
4605as_fn_executable_p ()
4606{
4607 test -f "$1" && test -x "$1"
4608} # as_fn_executable_p
4609as_test_x='test -x'
4610as_executable_p=as_fn_executable_p
4611
[17496]4612# Sed expression to map a string onto a valid CPP name.
4613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4614
4615# Sed expression to map a string onto a valid variable name.
4616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4617
4618
4619exec 6>&1
[35457]4620## ----------------------------------- ##
4621## Main body of $CONFIG_STATUS script. ##
4622## ----------------------------------- ##
4623_ASEOF
4624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
[17496]4625
[35457]4626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4627# Save the log message, to keep $0 and so on meaningful, and to
[17496]4628# report actual input values of CONFIG_FILES etc. instead of their
[35457]4629# values after options handling.
4630ac_log="
[17496]4631This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
[35457]4632generated by GNU Autoconf 2.69. Invocation command line was
[17496]4633
4634 CONFIG_FILES = $CONFIG_FILES
4635 CONFIG_HEADERS = $CONFIG_HEADERS
4636 CONFIG_LINKS = $CONFIG_LINKS
4637 CONFIG_COMMANDS = $CONFIG_COMMANDS
4638 $ $0 $@
4639
[35457]4640on `(hostname || uname -n) 2>/dev/null | sed 1q`
4641"
4642
[17496]4643_ACEOF
4644
[35457]4645case $ac_config_files in *"
4646"*) set x $ac_config_files; shift; ac_config_files=$*;;
4647esac
[17496]4648
[35457]4649case $ac_config_headers in *"
4650"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4651esac
[17496]4652
4653
[35457]4654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4655# Files that config.status was made for.
4656config_files="$ac_config_files"
4657config_headers="$ac_config_headers"
[17496]4658
[35457]4659_ACEOF
[17496]4660
[35457]4661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[17496]4662ac_cs_usage="\
[35457]4663\`$as_me' instantiates files and other configuration actions
4664from templates according to the current configuration. Unless the files
4665and actions are specified as TAGs, all are instantiated by default.
[17496]4666
[35457]4667Usage: $0 [OPTION]... [TAG]...
[17496]4668
4669 -h, --help print this help, then exit
[35457]4670 -V, --version print version number and configuration settings, then exit
4671 --config print configuration, then exit
4672 -q, --quiet, --silent
4673 do not print progress messages
[17496]4674 -d, --debug don't remove temporary files
4675 --recheck update $as_me by reconfiguring in the same conditions
[35457]4676 --file=FILE[:TEMPLATE]
4677 instantiate the configuration file FILE
4678 --header=FILE[:TEMPLATE]
4679 instantiate the configuration header FILE
[17496]4680
4681Configuration files:
4682$config_files
4683
4684Configuration headers:
4685$config_headers
4686
[35457]4687Report bugs to <BUG-REPORT-ADDRESS>."
4688
[17496]4689_ACEOF
[35457]4690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4691ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
[17496]4692ac_cs_version="\\
4693FULL-PACKAGE-NAME config.status VERSION
[35457]4694configured by $0, generated by GNU Autoconf 2.69,
4695 with options \\"\$ac_cs_config\\"
[17496]4696
[35457]4697Copyright (C) 2012 Free Software Foundation, Inc.
[17496]4698This config.status script is free software; the Free Software Foundation
4699gives unlimited permission to copy, distribute and modify it."
[35457]4700
4701ac_pwd='$ac_pwd'
4702srcdir='$srcdir'
4703INSTALL='$INSTALL'
4704test -n "\$AWK" || AWK=awk
[17496]4705_ACEOF
4706
[35457]4707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4708# The default lists apply if the user does not specify any file.
[17496]4709ac_need_defaults=:
4710while test $# != 0
4711do
4712 case $1 in
[35457]4713 --*=?*)
4714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
[17496]4716 ac_shift=:
4717 ;;
[35457]4718 --*=)
4719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4720 ac_optarg=
4721 ac_shift=:
4722 ;;
4723 *)
[17496]4724 ac_option=$1
4725 ac_optarg=$2
4726 ac_shift=shift
4727 ;;
4728 esac
4729
4730 case $ac_option in
4731 # Handling of the options.
4732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4733 ac_cs_recheck=: ;;
[35457]4734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4735 $as_echo "$ac_cs_version"; exit ;;
4736 --config | --confi | --conf | --con | --co | --c )
4737 $as_echo "$ac_cs_config"; exit ;;
4738 --debug | --debu | --deb | --de | --d | -d )
[17496]4739 debug=: ;;
4740 --file | --fil | --fi | --f )
4741 $ac_shift
[35457]4742 case $ac_optarg in
4743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4744 '') as_fn_error $? "missing file argument" ;;
4745 esac
4746 as_fn_append CONFIG_FILES " '$ac_optarg'"
[17496]4747 ac_need_defaults=false;;
4748 --header | --heade | --head | --hea )
4749 $ac_shift
[35457]4750 case $ac_optarg in
4751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4752 esac
4753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
[17496]4754 ac_need_defaults=false;;
[35457]4755 --he | --h)
4756 # Conflict between --help and --header
4757 as_fn_error $? "ambiguous option: \`$1'
4758Try \`$0 --help' for more information.";;
4759 --help | --hel | -h )
4760 $as_echo "$ac_cs_usage"; exit ;;
[17496]4761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4763 ac_cs_silent=: ;;
4764
4765 # This is an error.
[35457]4766 -*) as_fn_error $? "unrecognized option: \`$1'
4767Try \`$0 --help' for more information." ;;
[17496]4768
[35457]4769 *) as_fn_append ac_config_targets " $1"
4770 ac_need_defaults=false ;;
[17496]4771
4772 esac
4773 shift
4774done
4775
4776ac_configure_extra_args=
4777
4778if $ac_cs_silent; then
4779 exec 6>/dev/null
4780 ac_configure_extra_args="$ac_configure_extra_args --silent"
4781fi
4782
4783_ACEOF
[35457]4784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
[17496]4785if \$ac_cs_recheck; then
[35457]4786 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4787 shift
4788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4789 CONFIG_SHELL='$SHELL'
4790 export CONFIG_SHELL
4791 exec "\$@"
[17496]4792fi
4793
4794_ACEOF
[35457]4795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4796exec 5>>config.log
4797{
4798 echo
4799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4800## Running $as_me. ##
4801_ASBOX
4802 $as_echo "$ac_log"
4803} >&5
[17496]4804
[35457]4805_ACEOF
4806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4807_ACEOF
[17496]4808
[35457]4809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[17496]4810
[35457]4811# Handling of arguments.
[17496]4812for ac_config_target in $ac_config_targets
4813do
[35457]4814 case $ac_config_target in
4815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4817
4818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
[17496]4819 esac
4820done
4821
[35457]4822
[17496]4823# If the user did not use the arguments to specify the items to instantiate,
4824# then the envvar interface is used. Set only those that are not.
4825# We use the long form for the default assignment because of an extremely
4826# bizarre bug on SunOS 4.1.3.
4827if $ac_need_defaults; then
4828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4830fi
4831
4832# Have a temporary directory for convenience. Make it in the build tree
[35457]4833# simply because there is no reason against having it here, and in addition,
[17496]4834# creating and moving files from /tmp can sometimes cause problems.
[35457]4835# Hook for its removal unless debugging.
4836# Note that there is a small window in which the directory will not be cleaned:
4837# after its creation but before its name has been assigned to `$tmp'.
[17496]4838$debug ||
4839{
[35457]4840 tmp= ac_tmp=
4841 trap 'exit_status=$?
4842 : "${ac_tmp:=$tmp}"
4843 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4844' 0
4845 trap 'as_fn_exit 1' 1 2 13 15
[17496]4846}
4847# Create a (secure) tmp directory for tmp files.
4848
4849{
[35457]4850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4851 test -d "$tmp"
[17496]4852} ||
4853{
[35457]4854 tmp=./conf$$-$RANDOM
4855 (umask 077 && mkdir "$tmp")
4856} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4857ac_tmp=$tmp
4858
4859# Set up the scripts for CONFIG_FILES section.
4860# No need to generate them if there are no CONFIG_FILES.
4861# This happens for instance with `./config.status config.h'.
4862if test -n "$CONFIG_FILES"; then
4863
4864
4865ac_cr=`echo X | tr X '\015'`
4866# On cygwin, bash can eat \r inside `` if the user requested igncr.
4867# But we know of no other shell where ac_cr would be empty at this
4868# point, so we can use a bashism as a fallback.
4869if test "x$ac_cr" = x; then
4870 eval ac_cr=\$\'\\r\'
4871fi
4872ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4873if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4874 ac_cs_awk_cr='\\r'
4875else
4876 ac_cs_awk_cr=$ac_cr
4877fi
4878
4879echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4880_ACEOF
4881
4882
[17496]4883{
[35457]4884 echo "cat >conf$$subs.awk <<_ACEOF" &&
4885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4886 echo "_ACEOF"
4887} >conf$$subs.sh ||
4888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4889ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4890ac_delim='%!_!# '
4891for ac_last_try in false false false false false :; do
4892 . ./conf$$subs.sh ||
4893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4894
4895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4896 if test $ac_delim_n = $ac_delim_num; then
4897 break
4898 elif $ac_last_try; then
4899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4900 else
4901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4902 fi
4903done
4904rm -f conf$$subs.sh
4905
4906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4907cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4908_ACEOF
4909sed -n '
4910h
4911s/^/S["/; s/!.*/"]=/
4912p
4913g
4914s/^[^!]*!//
4915:repl
4916t repl
4917s/'"$ac_delim"'$//
4918t delim
4919:nl
4920h
4921s/\(.\{148\}\)..*/\1/
4922t more1
4923s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4924p
4925n
4926b repl
4927:more1
4928s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4929p
4930g
4931s/.\{148\}//
4932t nl
4933:delim
4934h
4935s/\(.\{148\}\)..*/\1/
4936t more2
4937s/["\\]/\\&/g; s/^/"/; s/$/"/
4938p
4939b
4940:more2
4941s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4942p
4943g
4944s/.\{148\}//
4945t delim
4946' <conf$$subs.awk | sed '
4947/^[^""]/{
4948 N
4949 s/\n//
[17496]4950}
[35457]4951' >>$CONFIG_STATUS || ac_write_fail=1
4952rm -f conf$$subs.awk
4953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4954_ACAWK
4955cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4956 for (key in S) S_is_set[key] = 1
4957 FS = ""
[17496]4958
[35457]4959}
4960{
4961 line = $ 0
4962 nfields = split(line, field, "@")
4963 substed = 0
4964 len = length(field[1])
4965 for (i = 2; i < nfields; i++) {
4966 key = field[i]
4967 keylen = length(key)
4968 if (S_is_set[key]) {
4969 value = S[key]
4970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4971 len += length(value) + length(field[++i])
4972 substed = 1
4973 } else
4974 len += 1 + keylen
4975 }
4976
4977 print line
4978}
4979
4980_ACAWK
[17496]4981_ACEOF
[35457]4982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4983if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4985else
4986 cat
4987fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4988 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4989_ACEOF
[17496]4990
[35457]4991# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4992# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4993# trailing colons and then remove the whole line if VPATH becomes empty
4994# (actually we leave an empty line to preserve line numbers).
4995if test "x$srcdir" = x.; then
4996 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4997h
4998s///
4999s/^/:/
5000s/[ ]*$/:/
5001s/:\$(srcdir):/:/g
5002s/:\${srcdir}:/:/g
5003s/:@srcdir@:/:/g
5004s/^:*//
5005s/:*$//
5006x
5007s/\(=[ ]*\).*/\1/
5008G
5009s/\n//
5010s/^[^=]*=[ ]*$//
5011}'
5012fi
[17496]5013
[35457]5014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5015fi # test -n "$CONFIG_FILES"
[17496]5016
[35457]5017# Set up the scripts for CONFIG_HEADERS section.
5018# No need to generate them if there are no CONFIG_HEADERS.
5019# This happens for instance with `./config.status Makefile'.
5020if test -n "$CONFIG_HEADERS"; then
5021cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5022BEGIN {
[17496]5023_ACEOF
5024
[35457]5025# Transform confdefs.h into an awk script `defines.awk', embedded as
5026# here-document in config.status, that substitutes the proper values into
5027# config.h.in to produce config.h.
5028
5029# Create a delimiter string that does not exist in confdefs.h, to ease
5030# handling of long lines.
5031ac_delim='%!_!# '
5032for ac_last_try in false false :; do
5033 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5034 if test -z "$ac_tt"; then
5035 break
5036 elif $ac_last_try; then
5037 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5038 else
5039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
[17496]5040 fi
[35457]5041done
[17496]5042
[35457]5043# For the awk script, D is an array of macro values keyed by name,
5044# likewise P contains macro parameters if any. Preserve backslash
5045# newline sequences.
5046
5047ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5048sed -n '
5049s/.\{148\}/&'"$ac_delim"'/g
5050t rset
5051:rset
5052s/^[ ]*#[ ]*define[ ][ ]*/ /
5053t def
5054d
5055:def
5056s/\\$//
5057t bsnl
5058s/["\\]/\\&/g
5059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5060D["\1"]=" \3"/p
5061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5062d
5063:bsnl
5064s/["\\]/\\&/g
5065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5066D["\1"]=" \3\\\\\\n"\\/p
5067t cont
5068s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5069t cont
5070d
5071:cont
5072n
5073s/.\{148\}/&'"$ac_delim"'/g
5074t clear
5075:clear
5076s/\\$//
5077t bsnlc
5078s/["\\]/\\&/g; s/^/"/; s/$/"/p
5079d
5080:bsnlc
5081s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5082b cont
5083' <confdefs.h | sed '
5084s/'"$ac_delim"'/"\\\
5085"/g' >>$CONFIG_STATUS || ac_write_fail=1
5086
5087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5088 for (key in D) D_is_set[key] = 1
5089 FS = ""
5090}
5091/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5092 line = \$ 0
5093 split(line, arg, " ")
5094 if (arg[1] == "#") {
5095 defundef = arg[2]
5096 mac1 = arg[3]
5097 } else {
5098 defundef = substr(arg[1], 2)
5099 mac1 = arg[2]
5100 }
5101 split(mac1, mac2, "(") #)
5102 macro = mac2[1]
5103 prefix = substr(line, 1, index(line, defundef) - 1)
5104 if (D_is_set[macro]) {
5105 # Preserve the white space surrounding the "#".
5106 print prefix "define", macro P[macro] D[macro]
5107 next
5108 } else {
5109 # Replace #undef with comments. This is necessary, for example,
5110 # in the case of _POSIX_SOURCE, which is predefined and required
5111 # on some systems where configure will not decide to define it.
5112 if (defundef == "undef") {
5113 print "/*", prefix defundef, macro, "*/"
5114 next
5115 }
5116 }
5117}
5118{ print }
5119_ACAWK
[17496]5120_ACEOF
[35457]5121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5122 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5123fi # test -n "$CONFIG_HEADERS"
5124
5125
5126eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5127shift
5128for ac_tag
5129do
5130 case $ac_tag in
5131 :[FHLC]) ac_mode=$ac_tag; continue;;
[17496]5132 esac
[35457]5133 case $ac_mode$ac_tag in
5134 :[FHL]*:*);;
5135 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5136 :[FH]-) ac_tag=-:-;;
5137 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5138 esac
5139 ac_save_IFS=$IFS
5140 IFS=:
5141 set x $ac_tag
5142 IFS=$ac_save_IFS
5143 shift
5144 ac_file=$1
5145 shift
[17496]5146
[35457]5147 case $ac_mode in
5148 :L) ac_source=$1;;
5149 :[FH])
5150 ac_file_inputs=
5151 for ac_f
5152 do
5153 case $ac_f in
5154 -) ac_f="$ac_tmp/stdin";;
5155 *) # Look for the file first in the build tree, then in the source tree
5156 # (if the path is not absolute). The absolute path cannot be DOS-style,
5157 # because $ac_f cannot contain `:'.
5158 test -f "$ac_f" ||
5159 case $ac_f in
5160 [\\/$]*) false;;
5161 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5162 esac ||
5163 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5164 esac
5165 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5166 as_fn_append ac_file_inputs " '$ac_f'"
5167 done
5168
5169 # Let's still pretend it is `configure' which instantiates (i.e., don't
5170 # use $as_me), people would be surprised to read:
5171 # /* config.h. Generated by config.status. */
5172 configure_input='Generated from '`
5173 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5174 `' by configure.'
5175 if test x"$ac_file" != x-; then
5176 configure_input="$ac_file. $configure_input"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5178$as_echo "$as_me: creating $ac_file" >&6;}
5179 fi
5180 # Neutralize special characters interpreted by sed in replacement strings.
5181 case $configure_input in #(
5182 *\&* | *\|* | *\\* )
5183 ac_sed_conf_input=`$as_echo "$configure_input" |
5184 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5185 *) ac_sed_conf_input=$configure_input;;
5186 esac
5187
5188 case $ac_tag in
5189 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5191 esac
5192 ;;
5193 esac
5194
5195 ac_dir=`$as_dirname -- "$ac_file" ||
[17496]5196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5197 X"$ac_file" : 'X\(//\)[^/]' \| \
5198 X"$ac_file" : 'X\(//\)$' \| \
[35457]5199 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5200$as_echo X"$ac_file" |
5201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5202 s//\1/
5203 q
5204 }
5205 /^X\(\/\/\)[^/].*/{
5206 s//\1/
5207 q
5208 }
5209 /^X\(\/\/\)$/{
5210 s//\1/
5211 q
5212 }
5213 /^X\(\/\).*/{
5214 s//\1/
5215 q
5216 }
5217 s/.*/./; q'`
5218 as_dir="$ac_dir"; as_fn_mkdir_p
[17496]5219 ac_builddir=.
5220
[35457]5221case "$ac_dir" in
5222.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5223*)
5224 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5225 # A ".." for each directory in $ac_dir_suffix.
5226 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5227 case $ac_top_builddir_sub in
5228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5230 esac ;;
5231esac
5232ac_abs_top_builddir=$ac_pwd
5233ac_abs_builddir=$ac_pwd$ac_dir_suffix
5234# for backward compatibility:
5235ac_top_builddir=$ac_top_build_prefix
[17496]5236
5237case $srcdir in
[35457]5238 .) # We are building in place.
[17496]5239 ac_srcdir=.
[35457]5240 ac_top_srcdir=$ac_top_builddir_sub
5241 ac_abs_top_srcdir=$ac_pwd ;;
5242 [\\/]* | ?:[\\/]* ) # Absolute name.
[17496]5243 ac_srcdir=$srcdir$ac_dir_suffix;
[35457]5244 ac_top_srcdir=$srcdir
5245 ac_abs_top_srcdir=$srcdir ;;
5246 *) # Relative name.
5247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5248 ac_top_srcdir=$ac_top_build_prefix$srcdir
5249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
[17496]5250esac
[35457]5251ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
[17496]5252
5253
[35457]5254 case $ac_mode in
5255 :F)
5256 #
5257 # CONFIG_FILE
5258 #
[17496]5259
5260 case $INSTALL in
5261 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
[35457]5262 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
[17496]5263 esac
[35457]5264_ACEOF
[17496]5265
[35457]5266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5267# If the template does not know about datarootdir, expand it.
5268# FIXME: This hack should be removed a few years after 2.60.
5269ac_datarootdir_hack=; ac_datarootdir_seen=
5270ac_sed_dataroot='
5271/datarootdir/ {
5272 p
5273 q
5274}
5275/@datadir@/p
5276/@docdir@/p
5277/@infodir@/p
5278/@localedir@/p
5279/@mandir@/p'
5280case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5281*datarootdir*) ac_datarootdir_seen=yes;;
5282*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5284$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5285_ACEOF
5286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5287 ac_datarootdir_hack='
5288 s&@datadir@&$datadir&g
5289 s&@docdir@&$docdir&g
5290 s&@infodir@&$infodir&g
5291 s&@localedir@&$localedir&g
5292 s&@mandir@&$mandir&g
5293 s&\\\${datarootdir}&$datarootdir&g' ;;
5294esac
5295_ACEOF
[17496]5296
[35457]5297# Neutralize VPATH when `$srcdir' = `.'.
5298# Shell code in configure.ac might set extrasub.
5299# FIXME: do we really want to maintain this feature?
5300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5301ac_sed_extra="$ac_vpsub
[17496]5302$extrasub
5303_ACEOF
[35457]5304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[17496]5305:t
5306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
[35457]5307s|@configure_input@|$ac_sed_conf_input|;t t
5308s&@top_builddir@&$ac_top_builddir_sub&;t t
5309s&@top_build_prefix@&$ac_top_build_prefix&;t t
5310s&@srcdir@&$ac_srcdir&;t t
5311s&@abs_srcdir@&$ac_abs_srcdir&;t t
5312s&@top_srcdir@&$ac_top_srcdir&;t t
5313s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5314s&@builddir@&$ac_builddir&;t t
5315s&@abs_builddir@&$ac_abs_builddir&;t t
5316s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5317s&@INSTALL@&$ac_INSTALL&;t t
5318$ac_datarootdir_hack
5319"
5320eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5321 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
[17496]5322
[35457]5323test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5324 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5326 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5328which seems to be undefined. Please make sure it is defined" >&5
5329$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5330which seems to be undefined. Please make sure it is defined" >&2;}
[17496]5331
[35457]5332 rm -f "$ac_tmp/stdin"
[17496]5333 case $ac_file in
[35457]5334 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5335 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5336 esac \
5337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5338 ;;
5339 :H)
5340 #
5341 # CONFIG_HEADER
5342 #
[17496]5343 if test x"$ac_file" != x-; then
[35457]5344 {
5345 $as_echo "/* $configure_input */" \
5346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5347 } >"$ac_tmp/config.h" \
5348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5349 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5351$as_echo "$as_me: $ac_file is unchanged" >&6;}
[17496]5352 else
[35457]5353 rm -f "$ac_file"
5354 mv "$ac_tmp/config.h" "$ac_file" \
5355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
[17496]5356 fi
5357 else
[35457]5358 $as_echo "/* $configure_input */" \
5359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5360 || as_fn_error $? "could not create -" "$LINENO" 5
[17496]5361 fi
[35457]5362 ;;
[17496]5363
5364
[35457]5365 esac
5366
5367done # for ac_tag
5368
5369
5370as_fn_exit 0
[17496]5371_ACEOF
5372ac_clean_files=$ac_clean_files_save
5373
[35457]5374test $ac_write_fail = 0 ||
5375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
[17496]5376
[35457]5377
[17496]5378# configure is writing to config.log, and then calls config.status.
5379# config.status does its own redirection, appending to config.log.
5380# Unfortunately, on DOS this fails, as config.log is still kept open
5381# by configure, so config.status won't be able to write to it; its
5382# output is simply discarded. So we exec the FD to /dev/null,
5383# effectively closing config.log, so it can be properly (re)opened and
5384# appended to by config.status. When coming back to configure, we
5385# need to make the FD available again.
5386if test "$no_create" != yes; then
5387 ac_cs_success=:
5388 ac_config_status_args=
5389 test "$silent" = yes &&
5390 ac_config_status_args="$ac_config_status_args --quiet"
5391 exec 5>/dev/null
5392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5393 exec 5>>config.log
5394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5395 # would make configure fail if this is the last instruction.
[35457]5396 $ac_cs_success || as_fn_exit 1
[17496]5397fi
[35457]5398if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5400$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5401fi
[17496]5402
Note: See TracBrowser for help on using the repository browser.