]> jfr.im git - irc/evilnet/x3.git/blame - configure
Suppress user unprivileged errors for channel messages using a service bots trigger...
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
db946ede 2# From configure.in Id.
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
0230185b 4# Generated by GNU Autoconf 2.68 for X3 1.9.
b3076f16 5#
63c95a47 6# Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 7#
c6254516 8#
a8b2ad8d 9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
c6254516 10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
db946ede 11# Foundation, Inc.
12#
c6254516 13#
b3076f16 14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
db946ede 16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
b3076f16 19
0bd0bef6 20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
db946ede 22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b3076f16 23 emulate sh
24 NULLCMD=:
db946ede 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b3076f16 26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 28 setopt NO_GLOB_SUBST
29else
db946ede 30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
0bd0bef6 35esac
b3076f16 36fi
0bd0bef6 37
38
db946ede 39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
a8b2ad8d 59 else
db946ede 60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
a8b2ad8d 72 fi
db946ede 73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
a8b2ad8d 75fi
76
db946ede 77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
b3076f16 84fi
85
86
a8b2ad8d 87# IFS
88# We need space, tab and new line, in precisely that order. Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
a8b2ad8d 92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
c6254516 95as_myself=
db946ede 96case $0 in #((
a8b2ad8d 97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
db946ede 103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
a8b2ad8d 105IFS=$as_save_IFS
106
107 ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
db946ede 115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
a8b2ad8d 117fi
118
db946ede 119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there. '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8b2ad8d 126done
b3076f16 127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
db946ede 132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 190do
db946ede 191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
c6254516 221 # Preserve -v and -x to the replacement shell.
db946ede 222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
c6254516
R
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
db946ede 233fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b3076f16 241 else
db946ede 242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: evilnet-devel@lists.sourceforge.net about your system,
244$0: including any error possibly output before this
245$0: message. Then install a modern shell, or manually run
246$0: the script under such a shell if you do have one."
b3076f16 247 fi
db946ede 248 exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275 return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283 set +e
284 as_fn_set_status $1
285 exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
c6254516 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
db946ede 332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368fi # as_fn_arith
369
370
c6254516
R
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
db946ede 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
c6254516 375# script with STATUS, using 1 if that was 0.
db946ede 376as_fn_error ()
377{
c6254516
R
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
db946ede 382 fi
c6254516 383 $as_echo "$as_me: error: $2" >&2
db946ede 384 as_fn_exit $as_status
385} # as_fn_error
b3076f16 386
a8b2ad8d 387if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 389 as_expr=expr
390else
391 as_expr=false
392fi
393
a8b2ad8d 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 395 as_basename=basename
396else
397 as_basename=false
398fi
399
db946ede 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402else
403 as_dirname=false
404fi
b3076f16 405
a8b2ad8d 406as_me=`$as_basename -- "$0" ||
b3076f16 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 410$as_echo X/"$0" |
a8b2ad8d 411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
b3076f16 424
db946ede 425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
b3076f16 431
b3076f16 432
db946ede 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b3076f16 455
db946ede 456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
a8b2ad8d 462}
b3076f16 463
db946ede 464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
a8b2ad8d 476
db946ede 477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
a8b2ad8d 498else
db946ede 499 as_ln_s='cp -p'
a8b2ad8d 500fi
db946ede 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
a8b2ad8d 503
db946ede 504if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
a8b2ad8d 509fi
510
db946ede 511if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
a8b2ad8d 513else
db946ede 514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
a8b2ad8d 531fi
db946ede 532as_executable_p=$as_test_x
a8b2ad8d 533
db946ede 534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a8b2ad8d 536
db946ede 537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a8b2ad8d 539
540
c6254516
R
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
0bd0bef6 543
db946ede 544# Name of the host.
c6254516 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
db946ede 546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
0bd0bef6 548
db946ede 549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
b3076f16 560
b3076f16 561# Identity of this package.
ceafd592 562PACKAGE_NAME='X3'
563PACKAGE_TARNAME='x3'
0230185b
MB
564PACKAGE_VERSION='1.9'
565PACKAGE_STRING='X3 1.9'
63c95a47 566PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
db946ede 567PACKAGE_URL=''
b3076f16 568
569ac_unique_file="src/opserv.c"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
0bd0bef6 573#ifdef HAVE_SYS_TYPES_H
b3076f16 574# include <sys/types.h>
575#endif
0bd0bef6 576#ifdef HAVE_SYS_STAT_H
b3076f16 577# include <sys/stat.h>
578#endif
0bd0bef6 579#ifdef STDC_HEADERS
b3076f16 580# include <stdlib.h>
581# include <stddef.h>
582#else
0bd0bef6 583# ifdef HAVE_STDLIB_H
b3076f16 584# include <stdlib.h>
585# endif
586#endif
0bd0bef6 587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b3076f16 589# include <memory.h>
590# endif
591# include <string.h>
592#endif
0bd0bef6 593#ifdef HAVE_STRINGS_H
b3076f16 594# include <strings.h>
595#endif
0bd0bef6 596#ifdef HAVE_INTTYPES_H
b3076f16 597# include <inttypes.h>
a8b2ad8d 598#endif
0bd0bef6 599#ifdef HAVE_STDINT_H
a8b2ad8d 600# include <stdint.h>
b3076f16 601#endif
0bd0bef6 602#ifdef HAVE_UNISTD_H
b3076f16 603# include <unistd.h>
604#endif"
605
c6254516 606ac_header_list=
db946ede 607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
a8b2ad8d 610LIBOBJS
db946ede 611PY_LIBS
612PY_CFLAGS
613TRACK
614RX_LIBS
615RX_INCLUDES
616MY_SUBDIRS
617MODULE_OBJS
618DO_PYTHON_FALSE
619DO_PYTHON_TRUE
620pythonpath
621ALLOCA
622MAKER
623EGREP
624GREP
625CPP
626LN_S
627RANLIB
628CP
629am__fastdepCC_FALSE
630am__fastdepCC_TRUE
631CCDEPMODE
c6254516 632am__nodep
db946ede 633AMDEPBACKSLASH
634AMDEP_FALSE
635AMDEP_TRUE
636am__quote
637am__include
638DEPDIR
639OBJEXT
640EXEEXT
641ac_ct_CC
642CPPFLAGS
643LDFLAGS
644CFLAGS
645CC
646MAINT
647MAINTAINER_MODE_FALSE
648MAINTAINER_MODE_TRUE
649am__untar
650am__tar
651AMTAR
652am__leading_dot
653SET_MAKE
654AWK
655mkdir_p
656MKDIR_P
657INSTALL_STRIP_PROGRAM
658STRIP
659install_sh
660MAKEINFO
661AUTOHEADER
662AUTOMAKE
663AUTOCONF
664ACLOCAL
665VERSION
666PACKAGE
667CYGPATH_W
668am__isrc
669INSTALL_DATA
670INSTALL_SCRIPT
671INSTALL_PROGRAM
672target_os
673target_vendor
674target_cpu
675target
676host_os
677host_vendor
678host_cpu
679host
680build_os
681build_vendor
682build_cpu
683build
684target_alias
685host_alias
686build_alias
687LIBS
688ECHO_T
689ECHO_N
690ECHO_C
691DEFS
692mandir
693localedir
694libdir
695psdir
696pdfdir
697dvidir
698htmldir
699infodir
700docdir
701oldincludedir
702includedir
703localstatedir
704sharedstatedir
705sysconfdir
706datadir
707datarootdir
708libexecdir
709sbindir
710bindir
711program_transform_name
712prefix
713exec_prefix
714PACKAGE_URL
715PACKAGE_BUGREPORT
716PACKAGE_STRING
717PACKAGE_VERSION
718PACKAGE_TARNAME
719PACKAGE_NAME
720PATH_SEPARATOR
721SHELL'
b3076f16 722ac_subst_files=''
db946ede 723ac_user_opts='
724enable_option_checking
725enable_maintainer_mode
726enable_dependency_tracking
727with_malloc
728with_protocol
729with_mail
730with_epoll
731with_kevent
732with_getopt
733enable_tokens
734enable_debug
735enable_modules
736enable_python
737with_tre
738with_coredumper
739with_ssl
740with_ldap
741'
a8b2ad8d 742 ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
0bd0bef6 748LIBS
a8b2ad8d 749CPPFLAGS
0f6fe38c 750CPP'
a8b2ad8d 751
b3076f16 752
753# Initialize some variables set by options.
754ac_init_help=
755ac_init_version=false
db946ede 756ac_unrecognized_opts=
757ac_unrecognized_sep=
b3076f16 758# The variables have the same names as the options, with
759# dashes changed to underlines.
760cache_file=/dev/null
761exec_prefix=NONE
762no_create=
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
771verbose=
772x_includes=NONE
773x_libraries=NONE
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 780# (The list follows the same order as the GNU Coding Standards.)
b3076f16 781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
a8b2ad8d 784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
b3076f16 786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
b3076f16 789includedir='${prefix}/include'
790oldincludedir='/usr/include'
a8b2ad8d 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
b3076f16 800
801ac_prev=
a8b2ad8d 802ac_dashdash=
b3076f16 803for ac_option
804do
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
a8b2ad8d 807 eval $ac_prev=\$ac_option
b3076f16 808 ac_prev=
809 continue
810 fi
811
a8b2ad8d 812 case $ac_option in
c6254516
R
813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *=) ac_optarg= ;;
815 *) ac_optarg=yes ;;
a8b2ad8d 816 esac
b3076f16 817
818 # Accept the important Cygnus configure options, so we can diagnose typos.
819
a8b2ad8d 820 case $ac_dashdash$ac_option in
821 --)
822 ac_dashdash=yes ;;
b3076f16 823
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
828
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
833
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
840
841 --config-cache | -C)
842 cache_file=config.cache ;;
843
a8b2ad8d 844 -datadir | --datadir | --datadi | --datad)
b3076f16 845 ac_prev=datadir ;;
a8b2ad8d 846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 847 datadir=$ac_optarg ;;
848
a8b2ad8d 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
855
b3076f16 856 -disable-* | --disable-*)
db946ede 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b3076f16 858 # Reject names that are not valid shell variable names.
db946ede 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
c6254516 860 as_fn_error $? "invalid feature name: $ac_useropt"
db946ede 861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
864 *"
865"enable_$ac_useropt"
866"*) ;;
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
869 esac
870 eval enable_$ac_useropt=no ;;
a8b2ad8d 871
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
876
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
b3076f16 881
882 -enable-* | --enable-*)
db946ede 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b3076f16 884 # Reject names that are not valid shell variable names.
db946ede 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
c6254516 886 as_fn_error $? "invalid feature name: $ac_useropt"
db946ede 887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891"enable_$ac_useropt"
892"*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=\$ac_optarg ;;
b3076f16 897
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
906
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
910
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
917
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
922
a8b2ad8d 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
928
b3076f16 929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
935
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
940
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
945
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
952
a8b2ad8d 953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
957
b3076f16 958 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 959 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 963 localstatedir=$ac_optarg ;;
964
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
969
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
973
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
976 no_create=yes ;;
977
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
981
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
990
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
995
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1002
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1009
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1026
a8b2ad8d 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1031
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1036
b3076f16 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1040
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1046
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1057
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1062
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1067
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1074
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1079
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1082
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1085
1086 -with-* | --with-*)
db946ede 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b3076f16 1088 # Reject names that are not valid shell variable names.
db946ede 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
c6254516 1090 as_fn_error $? "invalid package name: $ac_useropt"
db946ede 1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095"with_$ac_useropt"
1096"*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
b3076f16 1101
1102 -without-* | --without-*)
db946ede 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b3076f16 1104 # Reject names that are not valid shell variable names.
db946ede 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
c6254516 1106 as_fn_error $? "invalid package name: $ac_useropt"
db946ede 1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111"with_$ac_useropt"
1112"*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=no ;;
b3076f16 1117
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1121
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1128
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1135
c6254516
R
1136 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137Try \`$0 --help' for more information"
b3076f16 1138 ;;
1139
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
db946ede 1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
c6254516 1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
db946ede 1146 esac
a8b2ad8d 1147 eval $ac_envvar=\$ac_optarg
b3076f16 1148 export $ac_envvar ;;
1149
1150 *)
1151 # FIXME: should be removed in autoconf 3.0.
db946ede 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b3076f16 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
db946ede 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6254516 1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b3076f16 1156 ;;
1157
1158 esac
1159done
1160
1161if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
c6254516 1163 as_fn_error $? "missing argument to $ac_option"
db946ede 1164fi
1165
1166if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1168 no) ;;
c6254516 1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
db946ede 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 esac
b3076f16 1172fi
1173
db946ede 1174# Check all directory arguments for consistency.
a8b2ad8d 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
b3076f16 1179do
a8b2ad8d 1180 eval ac_val=\$$ac_var
db946ede 1181 # Remove trailing slashes.
1182 case $ac_val in
1183 */ )
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1186 esac
1187 # Be sure to have absolute directory names.
b3076f16 1188 case $ac_val in
a8b2ad8d 1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1191 esac
c6254516 1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b3076f16 1193done
1194
1195# There might be people who depend on the old broken behavior: `$host'
1196# used to hold the argument of --host etc.
1197# FIXME: To remove some day.
1198build=$build_alias
1199host=$host_alias
1200target=$target_alias
1201
1202# FIXME: To remove some day.
1203if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
c6254516
R
1206 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used" >&2
b3076f16 1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1210 fi
1211fi
1212
1213ac_tool_prefix=
1214test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216test "$silent" = yes && exec 6>/dev/null
1217
1218
a8b2ad8d 1219ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220ac_ls_di=`ls -di .` &&
1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
c6254516 1222 as_fn_error $? "working directory cannot be determined"
a8b2ad8d 1223test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
c6254516 1224 as_fn_error $? "pwd does not report name of working directory"
a8b2ad8d 1225
1226
b3076f16 1227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
a8b2ad8d 1230 # Try the directory containing this script, then the parent directory.
db946ede 1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236$as_echo X"$as_myself" |
a8b2ad8d 1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
b3076f16 1254 srcdir=$ac_confdir
a8b2ad8d 1255 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
a8b2ad8d 1261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
c6254516 1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b3076f16 1264fi
a8b2ad8d 1265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
c6254516 1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
a8b2ad8d 1268 pwd)`
1269# When building in place, set srcdir=.
1270if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272fi
1273# Remove unnecessary trailing slashes from srcdir.
1274# Double slashes in file names in object file debugging info
1275# mess up M-x gdb in Emacs.
1276case $srcdir in
1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278esac
1279for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284done
b3076f16 1285
1286#
1287# Report the --help message.
1288#
1289if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
0230185b 1293\`configure' configures X3 1.9 to adapt to many kinds of systems.
b3076f16 1294
1295Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300Defaults for the options are specified in brackets.
1301
1302Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
c6254516 1307 -q, --quiet, --silent do not print \`checking ...' messages
b3076f16 1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
b3076f16 1313Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
db946ede 1315 [$ac_default_prefix]
b3076f16 1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
db946ede 1317 [PREFIX]
b3076f16 1318
1319By default, \`make install' will install all the files in
1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322for instance \`--prefix=\$HOME'.
1323
1324For better control, use the options below.
1325
1326Fine tuning of the installation directories:
db946ede 1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1346_ACEOF
1347
1348 cat <<\_ACEOF
1349
1350Program names:
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354
1355System types:
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 --target=TARGET configure for building compilers for TARGET [HOST]
1359_ACEOF
1360fi
1361
1362if test -n "$ac_init_help"; then
1363 case $ac_init_help in
0230185b 1364 short | recursive ) echo "Configuration of X3 1.9:";;
b3076f16 1365 esac
1366 cat <<\_ACEOF
1367
1368Optional Features:
db946ede 1369 --disable-option-checking ignore unrecognized --enable/--with options
b3076f16 1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 1376 --disable-tokens Disables tokenization of P10 protocol output
1377 (tokens required if linking to ircu 2.10.11)
1378 --enable-debug Enables debugging behaviors
1379 --enable-modules=list,of,modules Enable extra modules
2f65da8f 1380 --disable-python don't build the python plugin
b3076f16 1381
1382Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1386 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1387 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1388 p10 (the default)
1136f709 1389 --with-mail=name How to send mail; one of:
1390 sendmail (the default), smtp
1391 --without-epoll Disables the epoll_*() I/O backend
1392 --without-kevent Disables the kevent() I/O backend
b3076f16 1393 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1394 --with-tre=PATH Base path to where libtre is installed, such that
1395 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1396 --with-coredumper=PATH Base path to where core dumper is installed, such
1397 that PATH/lib/libcoredumper.so and
1398 PATH/include/google/coredumper.h exist.
73d4cc91 1399 --with-ssl=PATH Base path to where openssl is installed
8da89711 1400 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1401 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1402
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
0bd0bef6 1408 LIBS libraries to pass to the linker, e.g. -l<library>
c6254516 1409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
a8b2ad8d 1410 you have headers in a nonstandard directory <include dir>
b3076f16 1411 CPP C preprocessor
1412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
63c95a47 1416Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1417_ACEOF
a8b2ad8d 1418ac_status=$?
b3076f16 1419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
b3076f16 1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
db946ede 1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
b3076f16 1427 ac_builddir=.
1428
a8b2ad8d 1429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
db946ede 1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
a8b2ad8d 1433 # A ".." for each directory in $ac_dir_suffix.
db946ede 1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
a8b2ad8d 1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
b3076f16 1444
1445case $srcdir in
a8b2ad8d 1446 .) # We are building in place.
b3076f16 1447 ac_srcdir=.
a8b2ad8d 1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1451 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1458esac
a8b2ad8d 1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1469 else
db946ede 1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1473 done
1474fi
1475
a8b2ad8d 1476test -n "$ac_init_help" && exit $ac_status
b3076f16 1477if $ac_init_version; then
1478 cat <<\_ACEOF
0230185b 1479X3 configure 1.9
c6254516 1480generated by GNU Autoconf 2.68
b3076f16 1481
c6254516 1482Copyright (C) 2010 Free Software Foundation, Inc.
b3076f16 1483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
a8b2ad8d 1486 exit
b3076f16 1487fi
b3076f16 1488
db946ede 1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
b3076f16 1492
db946ede 1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
1497{
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1523
db946ede 1524 ac_retval=1
1525fi
c6254516
R
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
db946ede 1528
1529} # ac_fn_c_try_compile
1530
1531# ac_fn_c_try_cpp LINENO
1532# ----------------------
1533# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_cpp ()
b3076f16 1535{
db946ede 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 if { { ac_try="$ac_cpp conftest.$ac_ext"
1538case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c6254516 1552 test $ac_status = 0; } > conftest.i && {
db946ede 1553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 }; then :
1556 ac_retval=0
1557else
1558 $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1560
db946ede 1561 ac_retval=1
1562fi
c6254516
R
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
b3076f16 1565
db946ede 1566} # ac_fn_c_try_cpp
b3076f16 1567
db946ede 1568# ac_fn_c_try_link LINENO
1569# -----------------------
1570# Try to link conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_link ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598else
1599 $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1601
db946ede 1602 ac_retval=1
1603fi
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c6254516
R
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
b3076f16 1611
db946ede 1612} # ac_fn_c_try_link
b3076f16 1613
db946ede 1614# ac_fn_c_try_run LINENO
1615# ----------------------
1616# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1617# that executables *can* be run.
1618ac_fn_c_try_run ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_link"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>&5
1629 ac_status=$?
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1632 { { case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_try") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; }; }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: program exited with status $ac_status" >&5
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1647
db946ede 1648 ac_retval=$ac_status
1649fi
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c6254516
R
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
db946ede 1653
1654} # ac_fn_c_try_run
1655
1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657# -------------------------------------------------------
1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659# the include files in INCLUDES and setting the cache variable VAR
1660# accordingly.
1661ac_fn_c_check_header_mongrel ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c6254516 1664 if eval \${$3+:} false; then :
db946ede 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
c6254516 1667if eval \${$3+:} false; then :
db946ede 1668 $as_echo_n "(cached) " >&6
1669fi
1670eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673else
1674 # Is the header compilable?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676$as_echo_n "checking $2 usability... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h. */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684else
1685 ac_header_compiler=no
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689$as_echo "$ac_header_compiler" >&6; }
1690
1691# Is the header present?
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693$as_echo_n "checking $2 presence... " >&6; }
1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696#include <$2>
1697_ACEOF
1698if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700else
1701 ac_header_preproc=no
1702fi
c6254516 1703rm -f conftest.err conftest.i conftest.$ac_ext
db946ede 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705$as_echo "$ac_header_preproc" >&6; }
1706
1707# So? What about this header?
1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
c6254516 1726( $as_echo "## -------------------------------------------------- ##
db946ede 1727## Report this to evilnet-devel@lists.sourceforge.net ##
c6254516 1728## -------------------------------------------------- ##"
db946ede 1729 ) | sed "s/^/$as_me: WARNING: /" >&2
1730 ;;
1731esac
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
c6254516 1734if eval \${$3+:} false; then :
db946ede 1735 $as_echo_n "(cached) " >&6
1736else
1737 eval "$3=\$ac_header_compiler"
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742fi
c6254516 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
db946ede 1744
1745} # ac_fn_c_check_header_mongrel
1746
1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists and can be compiled using the include files in
1750# INCLUDES, setting the cache variable VAR accordingly.
1751ac_fn_c_check_header_compile ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
c6254516 1756if eval \${$3+:} false; then :
db946ede 1757 $as_echo_n "(cached) " >&6
1758else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
c6254516 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
db946ede 1775
1776} # ac_fn_c_check_header_compile
1777
1778# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1779# ----------------------------------------------------
1780# Tries to find if the field MEMBER exists in type AGGR, after including
1781# INCLUDES, setting cache variable VAR accordingly.
1782ac_fn_c_check_member ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1786$as_echo_n "checking for $2.$3... " >&6; }
c6254516 1787if eval \${$4+:} false; then :
db946ede 1788 $as_echo_n "(cached) " >&6
1789else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$5
1793int
1794main ()
1795{
1796static $2 ac_aggr;
1797if (ac_aggr.$3)
1798return 0;
1799 ;
1800 return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$4=yes"
1805else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$5
1809int
1810main ()
1811{
1812static $2 ac_aggr;
1813if (sizeof ac_aggr.$3)
1814return 0;
1815 ;
1816 return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$4=yes"
1821else
1822 eval "$4=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$4
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
c6254516 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
db946ede 1832
1833} # ac_fn_c_check_member
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
c6254516 1843if eval \${$3+:} false; then :
db946ede 1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
c6254516 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
db946ede 1899
1900} # ac_fn_c_check_func
1901
1902# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1903# -------------------------------------------
1904# Tests whether TYPE exists after having included INCLUDES, setting cache
1905# variable VAR accordingly.
1906ac_fn_c_check_type ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
c6254516 1911if eval \${$3+:} false; then :
db946ede 1912 $as_echo_n "(cached) " >&6
1913else
1914 eval "$3=no"
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h. */
1917$4
1918int
1919main ()
1920{
1921if (sizeof ($2))
1922 return 0;
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$4
1931int
1932main ()
1933{
1934if (sizeof (($2)))
1935 return 0;
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941
1942else
1943 eval "$3=yes"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
c6254516 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
db946ede 1953
1954} # ac_fn_c_check_type
1955cat >config.log <<_ACEOF
1956This file contains any messages produced by compilers while
1957running configure, to aid debugging if configure makes a mistake.
1958
0230185b 1959It was created by X3 $as_me 1.9, which was
c6254516 1960generated by GNU Autoconf 2.68. Invocation command line was
db946ede 1961
1962 $ $0 $@
1963
1964_ACEOF
1965exec 5>>config.log
1966{
1967cat <<_ASUNAME
1968## --------- ##
1969## Platform. ##
1970## --------- ##
1971
1972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980
1981/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988
1989_ASUNAME
1990
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 $as_echo "PATH: $as_dir"
1997 done
1998IFS=$as_save_IFS
1999
2000} >&5
2001
2002cat >&5 <<_ACEOF
b3076f16 2003
2004
2005## ----------- ##
2006## Core tests. ##
2007## ----------- ##
2008
2009_ACEOF
2010
2011
2012# Keep a trace of the command line.
2013# Strip out --no-create and --no-recursion so they do not pile up.
2014# Strip out --silent because we don't want to record it for future runs.
2015# Also quote any args containing shell meta-characters.
2016# Make two passes to allow for proper duplicate-argument suppression.
2017ac_configure_args=
2018ac_configure_args0=
2019ac_configure_args1=
b3076f16 2020ac_must_keep_next=false
2021for ac_pass in 1 2
2022do
2023 for ac_arg
2024 do
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
a8b2ad8d 2030 *\'*)
db946ede 2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 2032 esac
2033 case $ac_pass in
db946ede 2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b3076f16 2035 2)
db946ede 2036 as_fn_append ac_configure_args1 " '$ac_arg'"
b3076f16 2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2048 ;;
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2051 fi
db946ede 2052 as_fn_append ac_configure_args " '$ac_arg'"
b3076f16 2053 ;;
2054 esac
2055 done
2056done
db946ede 2057{ ac_configure_args0=; unset ac_configure_args0;}
2058{ ac_configure_args1=; unset ac_configure_args1;}
b3076f16 2059
2060# When interrupted or exit'd, cleanup temporary files, and complete
2061# config.log. We remove comments because anyway the quotes in there
2062# would cause problems or look ugly.
a8b2ad8d 2063# WARNING: Use '\'' to represent an apostrophe within the trap.
2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 2065trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2067 {
2068 echo
2069
c6254516 2070 $as_echo "## ---------------- ##
b3076f16 2071## Cache variables. ##
c6254516 2072## ---------------- ##"
b3076f16 2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 2075(
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
db946ede 2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
a8b2ad8d 2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
db946ede 2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
a8b2ad8d 2088 esac ;;
2089 esac
2090 done
b3076f16 2091 (set) 2>&1 |
a8b2ad8d 2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
b3076f16 2094 sed -n \
a8b2ad8d 2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
b3076f16 2098 *)
a8b2ad8d 2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 2100 ;;
a8b2ad8d 2101 esac |
2102 sort
2103)
b3076f16 2104 echo
2105
c6254516 2106 $as_echo "## ----------------- ##
b3076f16 2107## Output variables. ##
c6254516 2108## ----------------- ##"
b3076f16 2109 echo
2110 for ac_var in $ac_subst_vars
2111 do
a8b2ad8d 2112 eval ac_val=\$$ac_var
2113 case $ac_val in
db946ede 2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
a8b2ad8d 2115 esac
db946ede 2116 $as_echo "$ac_var='\''$ac_val'\''"
b3076f16 2117 done | sort
2118 echo
2119
2120 if test -n "$ac_subst_files"; then
c6254516 2121 $as_echo "## ------------------- ##
a8b2ad8d 2122## File substitutions. ##
c6254516 2123## ------------------- ##"
b3076f16 2124 echo
2125 for ac_var in $ac_subst_files
2126 do
a8b2ad8d 2127 eval ac_val=\$$ac_var
2128 case $ac_val in
db946ede 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
a8b2ad8d 2130 esac
db946ede 2131 $as_echo "$ac_var='\''$ac_val'\''"
b3076f16 2132 done | sort
2133 echo
2134 fi
2135
2136 if test -s confdefs.h; then
c6254516 2137 $as_echo "## ----------- ##
b3076f16 2138## confdefs.h. ##
c6254516 2139## ----------- ##"
b3076f16 2140 echo
a8b2ad8d 2141 cat confdefs.h
b3076f16 2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
db946ede 2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
b3076f16 2147 } >&5
a8b2ad8d 2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 2150 exit $exit_status
a8b2ad8d 2151' 0
b3076f16 2152for ac_signal in 1 2 13 15; do
db946ede 2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b3076f16 2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 2158rm -f -r conftest* confdefs.h
b3076f16 2159
db946ede 2160$as_echo "/* confdefs.h */" > confdefs.h
2161
b3076f16 2162# Predefined preprocessor variables.
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_NAME "$PACKAGE_NAME"
2166_ACEOF
2167
b3076f16 2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170_ACEOF
2171
b3076f16 2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
2175
b3076f16 2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_STRING "$PACKAGE_STRING"
2178_ACEOF
2179
b3076f16 2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182_ACEOF
2183
db946ede 2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_URL "$PACKAGE_URL"
2186_ACEOF
2187
b3076f16 2188
2189# Let the site file select an alternate cache file if it wants to.
db946ede 2190# Prefer an explicitly selected file to automatically selected ones.
2191ac_site_file1=NONE
2192ac_site_file2=NONE
a8b2ad8d 2193if test -n "$CONFIG_SITE"; then
c6254516
R
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2199 esac
a8b2ad8d 2200elif test "x$prefix" != xNONE; then
db946ede 2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
a8b2ad8d 2203else
db946ede 2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
b3076f16 2206fi
db946ede 2207for ac_site_file in "$ac_site_file1" "$ac_site_file2"
a8b2ad8d 2208do
db946ede 2209 test "x$ac_site_file" = xNONE && continue
c6254516 2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
db946ede 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b3076f16 2213 sed 's/^/| /' "$ac_site_file" >&5
c6254516
R
2214 . "$ac_site_file" \
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217as_fn_error $? "failed to load site script $ac_site_file
2218See \`config.log' for more details" "$LINENO" 5; }
b3076f16 2219 fi
2220done
2221
2222if test -r "$cache_file"; then
c6254516
R
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
db946ede 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227$as_echo "$as_me: loading cache $cache_file" >&6;}
b3076f16 2228 case $cache_file in
a8b2ad8d 2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
b3076f16 2231 esac
2232 fi
2233else
db946ede 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235$as_echo "$as_me: creating cache $cache_file" >&6;}
b3076f16 2236 >$cache_file
2237fi
2238
c6254516
R
2239as_fn_append ac_header_list " stdlib.h"
2240as_fn_append ac_header_list " unistd.h"
2241as_fn_append ac_header_list " sys/param.h"
b3076f16 2242# Check that the precious variables saved in the cache have kept the same
2243# value.
2244ac_cache_corrupted=false
a8b2ad8d 2245for ac_var in $ac_precious_vars; do
b3076f16 2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 2250 case $ac_old_set,$ac_new_set in
2251 set,)
db946ede 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b3076f16 2254 ac_cache_corrupted=: ;;
2255 ,set)
db946ede 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b3076f16 2258 ac_cache_corrupted=: ;;
2259 ,);;
2260 *)
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
db946ede 2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2273 fi
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b3076f16 2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
db946ede 2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
db946ede 2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b3076f16 2289 esac
2290 fi
2291done
2292if $ac_cache_corrupted; then
db946ede 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
c6254516 2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b3076f16 2298fi
db946ede 2299## -------------------- ##
2300## Main body of script. ##
2301## -------------------- ##
b3076f16 2302
a8b2ad8d 2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 2308
2309
ceafd592 2310CODENAME=X3
a8b2ad8d 2311ac_config_headers="$ac_config_headers src/config.h"
b3076f16 2312
2313
2314ac_aux_dir=
a8b2ad8d 2315for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
c6254516
R
2316 if test -f "$ac_dir/install-sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2319 break
2320 elif test -f "$ac_dir/install.sh"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2323 break
2324 elif test -f "$ac_dir/shtool"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2327 break
2328 fi
b3076f16 2329done
2330if test -z "$ac_aux_dir"; then
c6254516 2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b3076f16 2332fi
a8b2ad8d 2333
2334# These three variables are undocumented and unsupported,
2335# and are intended to be withdrawn in a future Autoconf release.
2336# They can cause serious problems if a builder's source tree is in a directory
2337# whose full name contains unusual characters.
2338ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341
b3076f16 2342
2343# Make sure we can run config.sub.
a8b2ad8d 2344$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
c6254516 2345 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b3076f16 2346
db946ede 2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2348$as_echo_n "checking build system type... " >&6; }
c6254516 2349if ${ac_cv_build+:} false; then :
db946ede 2350 $as_echo_n "(cached) " >&6
b3076f16 2351else
a8b2ad8d 2352 ac_build_alias=$build_alias
2353test "x$ac_build_alias" = x &&
2354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2355test "x$ac_build_alias" = x &&
c6254516 2356 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
a8b2ad8d 2357ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
c6254516 2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b3076f16 2359
2360fi
db946ede 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2362$as_echo "$ac_cv_build" >&6; }
a8b2ad8d 2363case $ac_cv_build in
2364*-*-*) ;;
c6254516 2365*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
a8b2ad8d 2366esac
b3076f16 2367build=$ac_cv_build
a8b2ad8d 2368ac_save_IFS=$IFS; IFS='-'
2369set x $ac_cv_build
2370shift
2371build_cpu=$1
2372build_vendor=$2
2373shift; shift
2374# Remember, the first character of IFS is used to create $*,
2375# except with old shells:
2376build_os=$*
2377IFS=$ac_save_IFS
2378case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379
2380
db946ede 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
c6254516 2383if ${ac_cv_host+:} false; then :
db946ede 2384 $as_echo_n "(cached) " >&6
b3076f16 2385else
a8b2ad8d 2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
c6254516 2390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
a8b2ad8d 2391fi
b3076f16 2392
2393fi
db946ede 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395$as_echo "$ac_cv_host" >&6; }
a8b2ad8d 2396case $ac_cv_host in
2397*-*-*) ;;
c6254516 2398*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
a8b2ad8d 2399esac
b3076f16 2400host=$ac_cv_host
a8b2ad8d 2401ac_save_IFS=$IFS; IFS='-'
2402set x $ac_cv_host
2403shift
2404host_cpu=$1
2405host_vendor=$2
2406shift; shift
2407# Remember, the first character of IFS is used to create $*,
2408# except with old shells:
2409host_os=$*
2410IFS=$ac_save_IFS
2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412
2413
db946ede 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415$as_echo_n "checking target system type... " >&6; }
c6254516 2416if ${ac_cv_target+:} false; then :
db946ede 2417 $as_echo_n "(cached) " >&6
b3076f16 2418else
a8b2ad8d 2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
c6254516 2423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
a8b2ad8d 2424fi
b3076f16 2425
2426fi
db946ede 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428$as_echo "$ac_cv_target" >&6; }
a8b2ad8d 2429case $ac_cv_target in
2430*-*-*) ;;
c6254516 2431*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
a8b2ad8d 2432esac
b3076f16 2433target=$ac_cv_target
a8b2ad8d 2434ac_save_IFS=$IFS; IFS='-'
2435set x $ac_cv_target
2436shift
2437target_cpu=$1
2438target_vendor=$2
2439shift; shift
2440# Remember, the first character of IFS is used to create $*,
2441# except with old shells:
2442target_os=$*
2443IFS=$ac_save_IFS
2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 2445
2446
2447# The aliases save the names the user supplied, while $host etc.
2448# will get canonicalized.
2449test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
db946ede 2453am__api_version='1.11'
2f65da8f 2454
b3076f16 2455# Find a good install program. We prefer a C program (faster),
2456# so one script is as good as another. But avoid the broken or
2457# incompatible versions:
2458# SysV /etc/install, /usr/sbin/install
2459# SunOS /usr/etc/install
2460# IRIX /sbin/install
2461# AIX /bin/install
2462# AmigaOS /C/install, which installs bootblocks on floppy discs
2463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2466# OS/2's system install, which has a completely different semantic
2467# ./install, which can be erroneously created by make from ./install.sh.
db946ede 2468# Reject install programs that cannot install multiple files.
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2470$as_echo_n "checking for a BSD-compatible install... " >&6; }
b3076f16 2471if test -z "$INSTALL"; then
c6254516 2472if ${ac_cv_path_install+:} false; then :
db946ede 2473 $as_echo_n "(cached) " >&6
b3076f16 2474else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
db946ede 2480 # Account for people who put trailing slashes in PATH elements.
2481case $as_dir/ in #((
2482 ./ | .// | /[cC]/* | \
b3076f16 2483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
db946ede 2484 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b3076f16 2485 /usr/ucb/* ) ;;
2486 *)
2487 # OSF1 and SCO ODT 3.0 have their own names for install.
2488 # Don't use installbsd from OSF since it installs stuff as root
2489 # by default.
2490 for ac_prog in ginstall scoinst install; do
2491 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 2493 if test $ac_prog = install &&
2494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # AIX install. It has an incompatible calling convention.
2496 :
2497 elif test $ac_prog = install &&
2498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # program-specific install script used by HP pwplus--don't use.
2500 :
2501 else
db946ede 2502 rm -rf conftest.one conftest.two conftest.dir
2503 echo one > conftest.one
2504 echo two > conftest.two
2505 mkdir conftest.dir
2506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2507 test -s conftest.one && test -s conftest.two &&
2508 test -s conftest.dir/conftest.one &&
2509 test -s conftest.dir/conftest.two
2510 then
2511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2512 break 3
2513 fi
b3076f16 2514 fi
2515 fi
2516 done
2517 done
2518 ;;
2519esac
db946ede 2520
2521 done
a8b2ad8d 2522IFS=$as_save_IFS
b3076f16 2523
db946ede 2524rm -rf conftest.one conftest.two conftest.dir
b3076f16 2525
2526fi
2527 if test "${ac_cv_path_install+set}" = set; then
2528 INSTALL=$ac_cv_path_install
2529 else
a8b2ad8d 2530 # As a last resort, use the slow shell script. Don't cache a
2531 # value for INSTALL within a source directory, because that will
b3076f16 2532 # break other packages using the cache if that directory is
a8b2ad8d 2533 # removed, or if the value is a relative name.
b3076f16 2534 INSTALL=$ac_install_sh
2535 fi
2536fi
db946ede 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2538$as_echo "$INSTALL" >&6; }
b3076f16 2539
2540# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2541# It thinks the first close brace ends the variable substitution.
2542test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543
2544test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545
2546test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547
db946ede 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2549$as_echo_n "checking whether build environment is sane... " >&6; }
b3076f16 2550# Just in case
2551sleep 1
ec1a68c8 2552echo timestamp > conftest.file
db946ede 2553# Reject unsafe characters in $srcdir or the absolute working directory
2554# name. Accept space and tab only in the latter.
2555am_lf='
2556'
2557case `pwd` in
2558 *[\\\"\#\$\&\'\`$am_lf]*)
c6254516 2559 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
db946ede 2560esac
2561case $srcdir in
2562 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
c6254516 2563 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
db946ede 2564esac
2565
b3076f16 2566# Do `set' in a subshell so we don't clobber the current shell's
2567# arguments. Must try -L first in case configure is actually a
2568# symlink; some systems play weird games with the mod time of symlinks
2569# (eg FreeBSD returns the mod time of the symlink's containing
2570# directory).
2571if (
db946ede 2572 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b3076f16 2573 if test "$*" = "X"; then
2574 # -L didn't work.
db946ede 2575 set X `ls -t "$srcdir/configure" conftest.file`
b3076f16 2576 fi
ec1a68c8 2577 rm -f conftest.file
2578 if test "$*" != "X $srcdir/configure conftest.file" \
2579 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2580
2581 # If neither matched, then we have a broken ls. This can happen
2582 # if, for instance, CONFIG_SHELL is bash and it inherits a
2583 # broken ls alias from the environment. This has actually
2584 # happened. Such a system could not be considered "sane".
c6254516 2585 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
db946ede 2586alias in your environment" "$LINENO" 5
b3076f16 2587 fi
2588
ec1a68c8 2589 test "$2" = conftest.file
b3076f16 2590 )
2591then
2592 # Ok.
2593 :
2594else
c6254516 2595 as_fn_error $? "newly created file is older than distributed files!
db946ede 2596Check your system clock" "$LINENO" 5
b3076f16 2597fi
db946ede 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599$as_echo "yes" >&6; }
b3076f16 2600test "$program_prefix" != NONE &&
a8b2ad8d 2601 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2602# Use a double $ so make ignores it.
2603test "$program_suffix" != NONE &&
a8b2ad8d 2604 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
db946ede 2605# Double any \ or $.
b3076f16 2606# By default was `s,x,x', remove it if useless.
db946ede 2607ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2608program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b3076f16 2609
ec1a68c8 2610# expand $ac_aux_dir to an absolute path
2611am_aux_dir=`cd $ac_aux_dir && pwd`
2612
db946ede 2613if test x"${MISSING+set}" != xset; then
2614 case $am_aux_dir in
2615 *\ * | *\ *)
2616 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2617 *)
2618 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2619 esac
2620fi
ec1a68c8 2621# Use eval to expand $SHELL
2622if eval "$MISSING --run true"; then
2623 am_missing_run="$MISSING --run "
2624else
2625 am_missing_run=
db946ede 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2627$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ec1a68c8 2628fi
2629
db946ede 2630if test x"${install_sh}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2634 *)
2635 install_sh="\${SHELL} $am_aux_dir/install-sh"
2636 esac
2637fi
2638
2639# Installed binaries are usually stripped using `strip' when the user
2640# run `make install-strip'. However `strip' might not be the right
2641# tool to use in cross-compilation environments, therefore Automake
2642# will honor the `STRIP' environment variable to overrule this program.
2643if test "$cross_compiling" != no; then
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}strip; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
c6254516 2649if ${ac_cv_prog_STRIP+:} false; then :
db946ede 2650 $as_echo_n "(cached) " >&6
2f65da8f 2651else
db946ede 2652 if test -n "$STRIP"; then
2653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672STRIP=$ac_cv_prog_STRIP
2673if test -n "$STRIP"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2675$as_echo "$STRIP" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682fi
2683if test -z "$ac_cv_prog_STRIP"; then
2684 ac_ct_STRIP=$STRIP
2685 # Extract the first word of "strip", so it can be a program name with args.
2686set dummy strip; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
c6254516 2689if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
db946ede 2690 $as_echo_n "(cached) " >&6
2691else
2692 if test -n "$ac_ct_STRIP"; then
2693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_ac_ct_STRIP="strip"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2713if test -n "$ac_ct_STRIP"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2715$as_echo "$ac_ct_STRIP" >&6; }
2716else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721 if test "x$ac_ct_STRIP" = x; then
2722 STRIP=":"
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730 STRIP=$ac_ct_STRIP
2731 fi
2732else
2733 STRIP="$ac_cv_prog_STRIP"
2734fi
2735
2736fi
2737INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2740$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2741if test -z "$MKDIR_P"; then
c6254516 2742 if ${ac_cv_path_mkdir+:} false; then :
db946ede 2743 $as_echo_n "(cached) " >&6
2744else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2747do
2f65da8f 2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
db946ede 2750 for ac_prog in mkdir gmkdir; do
2f65da8f 2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2753 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2754 'mkdir (GNU coreutils) '* | \
2755 'mkdir (coreutils) '* | \
2756 'mkdir (fileutils) '4.1*)
2757 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2758 break 3;;
2759 esac
2760 done
2761 done
db946ede 2762 done
2f65da8f 2763IFS=$as_save_IFS
2764
2765fi
2766
c6254516 2767 test -d ./--version && rmdir ./--version
2f65da8f 2768 if test "${ac_cv_path_mkdir+set}" = set; then
2769 MKDIR_P="$ac_cv_path_mkdir -p"
ec1a68c8 2770 else
2f65da8f 2771 # As a last resort, use the slow shell script. Don't cache a
2772 # value for MKDIR_P within a source directory, because that will
2773 # break other packages using the cache if that directory is
2774 # removed, or if the value is a relative name.
2f65da8f 2775 MKDIR_P="$ac_install_sh -d"
ec1a68c8 2776 fi
2777fi
db946ede 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2779$as_echo "$MKDIR_P" >&6; }
2f65da8f 2780
2781mkdir_p="$MKDIR_P"
2782case $mkdir_p in
2783 [\\/$]* | ?:[\\/]*) ;;
2784 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2785esac
ec1a68c8 2786
2787for ac_prog in gawk mawk nawk awk
2788do
2789 # Extract the first word of "$ac_prog", so it can be a program name with args.
2790set dummy $ac_prog; ac_word=$2
db946ede 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
c6254516 2793if ${ac_cv_prog_AWK+:} false; then :
db946ede 2794 $as_echo_n "(cached) " >&6
ec1a68c8 2795else
2796 if test -n "$AWK"; then
2797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
db946ede 2804 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2806 ac_cv_prog_AWK="$ac_prog"
db946ede 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ec1a68c8 2808 break 2
2809 fi
2810done
db946ede 2811 done
a8b2ad8d 2812IFS=$as_save_IFS
ec1a68c8 2813
2814fi
2815fi
2816AWK=$ac_cv_prog_AWK
2817if test -n "$AWK"; then
db946ede 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2819$as_echo "$AWK" >&6; }
ec1a68c8 2820else
db946ede 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
ec1a68c8 2823fi
2824
a8b2ad8d 2825
ec1a68c8 2826 test -n "$AWK" && break
2827done
2828
db946ede 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2830$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2831set x ${MAKE-make}
2832ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c6254516 2833if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
db946ede 2834 $as_echo_n "(cached) " >&6
b3076f16 2835else
2836 cat >conftest.make <<\_ACEOF
a8b2ad8d 2837SHELL = /bin/sh
b3076f16 2838all:
a8b2ad8d 2839 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2840_ACEOF
c6254516 2841# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
a8b2ad8d 2842case `${MAKE-make} -f conftest.make 2>/dev/null` in
2843 *@@@%%%=?*=@@@%%%*)
2844 eval ac_cv_prog_make_${ac_make}_set=yes;;
2845 *)
2846 eval ac_cv_prog_make_${ac_make}_set=no;;
2847esac
b3076f16 2848rm -f conftest.make
2849fi
a8b2ad8d 2850if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
db946ede 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
b3076f16 2853 SET_MAKE=
2854else
db946ede 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
b3076f16 2857 SET_MAKE="MAKE=${MAKE-make}"
2858fi
2859
ec1a68c8 2860rm -rf .tst 2>/dev/null
2861mkdir .tst 2>/dev/null
2862if test -d .tst; then
2863 am__leading_dot=.
2864else
2865 am__leading_dot=_
2866fi
2867rmdir .tst 2>/dev/null
b3076f16 2868
2f65da8f 2869if test "`cd $srcdir && pwd`" != "`pwd`"; then
2870 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2871 # is not polluted with repeated "-I."
2872 am__isrc=' -I$(srcdir)'
2873 # test to see if srcdir already configured
2874 if test -f $srcdir/config.status; then
c6254516 2875 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2f65da8f 2876 fi
b3076f16 2877fi
2878
ec1a68c8 2879# test whether we have cygpath
2880if test -z "$CYGPATH_W"; then
2881 if (cygpath --version) >/dev/null 2>/dev/null; then
2882 CYGPATH_W='cygpath -w'
2883 else
2884 CYGPATH_W=echo
2885 fi
2886fi
2887
2888
2889# Define the identity of the package.
ceafd592 2890 PACKAGE='x3'
0230185b 2891 VERSION='1.9'
ec1a68c8 2892
2893
b3076f16 2894cat >>confdefs.h <<_ACEOF
2895#define PACKAGE "$PACKAGE"
2896_ACEOF
2897
2898
2899cat >>confdefs.h <<_ACEOF
2900#define VERSION "$VERSION"
2901_ACEOF
2902
ec1a68c8 2903# Some tools Automake needs.
b3076f16 2904
ec1a68c8 2905ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2906
ec1a68c8 2907
2908AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909
2910
2911AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912
2913
2914AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915
2916
2917MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2918
ec1a68c8 2919# We need awk for the "check" target. The system "awk" is bad on
2920# some platforms.
c6254516
R
2921# Always define AMTAR for backward compatibility. Yes, it's still used
2922# in the wild :-( We should find a proper way to deprecate it ...
2923AMTAR='$${TAR-tar}'
ec1a68c8 2924
c6254516 2925am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
ec1a68c8 2926
2927
2928
2929
b3076f16 2930
db946ede 2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2933$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
a8b2ad8d 2934 # Check whether --enable-maintainer-mode was given.
db946ede 2935if test "${enable_maintainer_mode+set}" = set; then :
a8b2ad8d 2936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2937else
2938 USE_MAINTAINER_MODE=no
a8b2ad8d 2939fi
2940
db946ede 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2942$as_echo "$USE_MAINTAINER_MODE" >&6; }
2f65da8f 2943 if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2944 MAINTAINER_MODE_TRUE=
2945 MAINTAINER_MODE_FALSE='#'
2946else
2947 MAINTAINER_MODE_TRUE='#'
2948 MAINTAINER_MODE_FALSE=
2949fi
ec1a68c8 2950
b3076f16 2951 MAINT=$MAINTAINER_MODE_TRUE
2952
2953
2954
ec1a68c8 2955DEPDIR="${am__leading_dot}deps"
2956
a8b2ad8d 2957ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2958
2959
2960am_make=${MAKE-make}
2961cat > confinc << 'END'
2962am__doit:
db946ede 2963 @echo this is the am__doit target
ec1a68c8 2964.PHONY: am__doit
2965END
2966# If we don't find an include directive, just comment out the code.
db946ede 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2968$as_echo_n "checking for style of include used by $am_make... " >&6; }
ec1a68c8 2969am__include="#"
2970am__quote=
2971_am_result=none
2972# First try GNU make style include.
2973echo "include confinc" > confmf
db946ede 2974# Ignore all kinds of additional output from `make'.
2975case `$am_make -s -f confmf 2> /dev/null` in #(
2976*the\ am__doit\ target*)
2977 am__include=include
2978 am__quote=
2979 _am_result=GNU
2980 ;;
2981esac
ec1a68c8 2982# Now try BSD make style include.
2983if test "$am__include" = "#"; then
2984 echo '.include "confinc"' > confmf
db946ede 2985 case `$am_make -s -f confmf 2> /dev/null` in #(
2986 *the\ am__doit\ target*)
2987 am__include=.include
2988 am__quote="\""
2989 _am_result=BSD
2990 ;;
2991 esac
ec1a68c8 2992fi
2993
2994
db946ede 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2996$as_echo "$_am_result" >&6; }
ec1a68c8 2997rm -f confinc confmf
2998
a8b2ad8d 2999# Check whether --enable-dependency-tracking was given.
db946ede 3000if test "${enable_dependency_tracking+set}" = set; then :
a8b2ad8d 3001 enableval=$enable_dependency_tracking;
3002fi
ec1a68c8 3003
ec1a68c8 3004if test "x$enable_dependency_tracking" != xno; then
3005 am_depcomp="$ac_aux_dir/depcomp"
3006 AMDEPBACKSLASH='\'
c6254516 3007 am__nodep='_no'
ec1a68c8 3008fi
2f65da8f 3009 if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 3010 AMDEP_TRUE=
3011 AMDEP_FALSE='#'
3012else
3013 AMDEP_TRUE='#'
3014 AMDEP_FALSE=
3015fi
3016
3017
b3076f16 3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}gcc; ac_word=$2
db946ede 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3028if ${ac_cv_prog_CC+:} false; then :
db946ede 3029 $as_echo_n "(cached) " >&6
b3076f16 3030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
db946ede 3039 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3041 ac_cv_prog_CC="${ac_tool_prefix}gcc"
db946ede 3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3043 break 2
3044 fi
3045done
db946ede 3046 done
a8b2ad8d 3047IFS=$as_save_IFS
b3076f16 3048
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
db946ede 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054$as_echo "$CC" >&6; }
b3076f16 3055else
db946ede 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057$as_echo "no" >&6; }
b3076f16 3058fi
3059
a8b2ad8d 3060
b3076f16 3061fi
3062if test -z "$ac_cv_prog_CC"; then
3063 ac_ct_CC=$CC
3064 # Extract the first word of "gcc", so it can be a program name with args.
3065set dummy gcc; ac_word=$2
db946ede 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3068if ${ac_cv_prog_ac_ct_CC+:} false; then :
db946ede 3069 $as_echo_n "(cached) " >&6
b3076f16 3070else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
db946ede 3079 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3081 ac_cv_prog_ac_ct_CC="gcc"
db946ede 3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3083 break 2
3084 fi
3085done
db946ede 3086 done
a8b2ad8d 3087IFS=$as_save_IFS
b3076f16 3088
3089fi
3090fi
3091ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092if test -n "$ac_ct_CC"; then
db946ede 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3094$as_echo "$ac_ct_CC" >&6; }
b3076f16 3095else
db946ede 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
b3076f16 3098fi
3099
a8b2ad8d 3100 if test "x$ac_ct_CC" = x; then
3101 CC=""
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104yes:)
db946ede 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 3107ac_tool_warned=yes ;;
3108esac
3109 CC=$ac_ct_CC
3110 fi
b3076f16 3111else
3112 CC="$ac_cv_prog_CC"
3113fi
3114
3115if test -z "$CC"; then
a8b2ad8d 3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3118set dummy ${ac_tool_prefix}cc; ac_word=$2
db946ede 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3121if ${ac_cv_prog_CC+:} false; then :
db946ede 3122 $as_echo_n "(cached) " >&6
b3076f16 3123else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
db946ede 3132 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3134 ac_cv_prog_CC="${ac_tool_prefix}cc"
db946ede 3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3136 break 2
3137 fi
3138done
db946ede 3139 done
a8b2ad8d 3140IFS=$as_save_IFS
b3076f16 3141
3142fi
3143fi
3144CC=$ac_cv_prog_CC
3145if test -n "$CC"; then
db946ede 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147$as_echo "$CC" >&6; }
b3076f16 3148else
db946ede 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
b3076f16 3151fi
3152
b3076f16 3153
a8b2ad8d 3154 fi
b3076f16 3155fi
3156if test -z "$CC"; then
3157 # Extract the first word of "cc", so it can be a program name with args.
3158set dummy cc; ac_word=$2
db946ede 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3161if ${ac_cv_prog_CC+:} false; then :
db946ede 3162 $as_echo_n "(cached) " >&6
b3076f16 3163else
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166else
3167 ac_prog_rejected=no
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
db946ede 3173 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3176 ac_prog_rejected=yes
3177 continue
3178 fi
3179 ac_cv_prog_CC="cc"
db946ede 3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3181 break 2
3182 fi
3183done
db946ede 3184 done
a8b2ad8d 3185IFS=$as_save_IFS
b3076f16 3186
3187if test $ac_prog_rejected = yes; then
3188 # We found a bogon in the path, so make sure we never use it.
3189 set dummy $ac_cv_prog_CC
3190 shift
3191 if test $# != 0; then
3192 # We chose a different compiler from the bogus one.
3193 # However, it has the same basename, so the bogon will be chosen
3194 # first if we set CC to just the basename; use the full file name.
3195 shift
3196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3197 fi
3198fi
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
db946ede 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
b3076f16 3205else
db946ede 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
b3076f16 3208fi
3209
a8b2ad8d 3210
b3076f16 3211fi
3212if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
a8b2ad8d 3214 for ac_prog in cl.exe
b3076f16 3215 do
3216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
db946ede 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3220if ${ac_cv_prog_CC+:} false; then :
db946ede 3221 $as_echo_n "(cached) " >&6
b3076f16 3222else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
db946ede 3231 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
db946ede 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3235 break 2
3236 fi
3237done
db946ede 3238 done
a8b2ad8d 3239IFS=$as_save_IFS
b3076f16 3240
3241fi
3242fi
3243CC=$ac_cv_prog_CC
3244if test -n "$CC"; then
db946ede 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246$as_echo "$CC" >&6; }
b3076f16 3247else
db946ede 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
b3076f16 3250fi
3251
a8b2ad8d 3252
b3076f16 3253 test -n "$CC" && break
3254 done
3255fi
3256if test -z "$CC"; then
3257 ac_ct_CC=$CC
a8b2ad8d 3258 for ac_prog in cl.exe
b3076f16 3259do
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261set dummy $ac_prog; ac_word=$2
db946ede 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
c6254516 3264if ${ac_cv_prog_ac_ct_CC+:} false; then :
db946ede 3265 $as_echo_n "(cached) " >&6
b3076f16 3266else
3267 if test -n "$ac_ct_CC"; then
3268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
db946ede 3275 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3277 ac_cv_prog_ac_ct_CC="$ac_prog"
db946ede 3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3279 break 2
3280 fi
3281done
db946ede 3282 done
a8b2ad8d 3283IFS=$as_save_IFS
b3076f16 3284
3285fi
3286fi
3287ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288if test -n "$ac_ct_CC"; then
db946ede 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3290$as_echo "$ac_ct_CC" >&6; }
b3076f16 3291else
db946ede 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
b3076f16 3294fi
3295
a8b2ad8d 3296
b3076f16 3297 test -n "$ac_ct_CC" && break
3298done
3299
a8b2ad8d 3300 if test "x$ac_ct_CC" = x; then
3301 CC=""
3302 else
3303 case $cross_compiling:$ac_tool_warned in
3304yes:)
db946ede 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 3307ac_tool_warned=yes ;;
3308esac
3309 CC=$ac_ct_CC
3310 fi
b3076f16 3311fi
3312
3313fi
3314
3315
db946ede 3316test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
3318as_fn_error $? "no acceptable C compiler found in \$PATH
3319See \`config.log' for more details" "$LINENO" 5; }
b3076f16 3320
3321# Provide some information about the compiler.
db946ede 3322$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3323set X $ac_compile
3324ac_compiler=$2
3325for ac_option in --version -v -V -qversion; do
3326 { { ac_try="$ac_compiler $ac_option >&5"
a8b2ad8d 3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
db946ede 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b3076f16 3334 ac_status=$?
db946ede 3335 if test -s conftest.err; then
3336 sed '10a\
3337... rest of stderr output deleted ...
3338 10q' conftest.err >conftest.er1
3339 cat conftest.er1 >&5
db946ede 3340 fi
c6254516 3341 rm -f conftest.er1 conftest.err
db946ede 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }
3344done
b3076f16 3345
db946ede 3346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3347/* end confdefs.h. */
c6254516 3348
b3076f16 3349int
3350main ()
3351{
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357ac_clean_files_save=$ac_clean_files
c6254516 3358ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b3076f16 3359# Try to create an executable without -o first, disregard a.out.
3360# It will help us diagnose broken compilers, and finding out an intuition
3361# of exeext.
c6254516
R
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3363$as_echo_n "checking whether the C compiler works... " >&6; }
db946ede 3364ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3365
3366# The possible output files:
3367ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3368
a8b2ad8d 3369ac_rmfiles=
3370for ac_file in $ac_files
3371do
3372 case $ac_file in
db946ede 3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
a8b2ad8d 3374 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3375 esac
3376done
3377rm -f $ac_rmfiles
3378
db946ede 3379if { { ac_try="$ac_link_default"
a8b2ad8d 3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
db946ede 3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3386 (eval "$ac_link_default") 2>&5
b3076f16 3387 ac_status=$?
db946ede 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
a8b2ad8d 3390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3391# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3392# in a Makefile. We should not override ac_cv_exeext if it was cached,
3393# so that the user can short-circuit this test for compilers unknown to
3394# Autoconf.
0bd0bef6 3395for ac_file in $ac_files ''
b3076f16 3396do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
db946ede 3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b3076f16 3400 ;;
3401 [ab].out )
3402 # We found the default executable, but exeext='' is most
3403 # certainly right.
3404 break;;
3405 *.* )
db946ede 3406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
a8b2ad8d 3407 then :; else
3408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 fi
3410 # We set ac_cv_exeext here because the later test for it is not
3411 # safe: cross compilers may not add the suffix if given an `-o'
3412 # argument, so we may need to know it at that point already.
3413 # Even if this section looks crufty: it has the advantage of
3414 # actually working.
b3076f16 3415 break;;
3416 * )
3417 break;;
3418 esac
3419done
a8b2ad8d 3420test "$ac_cv_exeext" = no && ac_cv_exeext=
3421
b3076f16 3422else
0bd0bef6 3423 ac_file=''
3424fi
db946ede 3425if test -z "$ac_file"; then :
c6254516
R
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427$as_echo "no" >&6; }
3428$as_echo "$as_me: failed program was:" >&5
b3076f16 3429sed 's/^/| /' conftest.$ac_ext >&5
3430
db946ede 3431{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
3433as_fn_error 77 "C compiler cannot create executables
3434See \`config.log' for more details" "$LINENO" 5; }
3435else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437$as_echo "yes" >&6; }
b3076f16 3438fi
c6254516
R
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3440$as_echo_n "checking for C compiler default output file name... " >&6; }
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3442$as_echo "$ac_file" >&6; }
b3076f16 3443ac_exeext=$ac_cv_exeext
b3076f16 3444
c6254516 3445rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b3076f16 3446ac_clean_files=$ac_clean_files_save
db946ede 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3448$as_echo_n "checking for suffix of executables... " >&6; }
3449if { { ac_try="$ac_link"
a8b2ad8d 3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
db946ede 3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3456 (eval "$ac_link") 2>&5
b3076f16 3457 ac_status=$?
db946ede 3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
b3076f16 3460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3461# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3462# work properly (i.e., refer to `conftest.exe'), while it won't with
3463# `rm'.
3464for ac_file in conftest.exe conftest conftest.*; do
3465 test -f "$ac_file" || continue
3466 case $ac_file in
db946ede 3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b3076f16 3468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 3469 break;;
3470 * ) break;;
3471 esac
3472done
3473else
db946ede 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
3476as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3477See \`config.log' for more details" "$LINENO" 5; }
b3076f16 3478fi
c6254516 3479rm -f conftest conftest$ac_cv_exeext
db946ede 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3481$as_echo "$ac_cv_exeext" >&6; }
b3076f16 3482
3483rm -f conftest.$ac_ext
3484EXEEXT=$ac_cv_exeext
3485ac_exeext=$EXEEXT
c6254516
R
3486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h. */
3488#include <stdio.h>
3489int
3490main ()
3491{
3492FILE *f = fopen ("conftest.out", "w");
3493 return ferror (f) || fclose (f) != 0;
3494
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499ac_clean_files="$ac_clean_files conftest.out"
3500# Check that the compiler produces executables we can run. If not, either
3501# the compiler is broken, or we cross compile.
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3503$as_echo_n "checking whether we are cross compiling... " >&6; }
3504if test "$cross_compiling" != yes; then
3505 { { ac_try="$ac_link"
3506case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516 if { ac_try='./conftest$ac_cv_exeext'
3517 { { case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522$as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_try") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; }; then
3527 cross_compiling=no
3528 else
3529 if test "$cross_compiling" = maybe; then
3530 cross_compiling=yes
3531 else
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "cannot run C compiled programs.
3535If you meant to cross compile, use \`--host'.
3536See \`config.log' for more details" "$LINENO" 5; }
3537 fi
3538 fi
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3541$as_echo "$cross_compiling" >&6; }
3542
3543rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3544ac_clean_files=$ac_clean_files_save
db946ede 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3546$as_echo_n "checking for suffix of object files... " >&6; }
c6254516 3547if ${ac_cv_objext+:} false; then :
db946ede 3548 $as_echo_n "(cached) " >&6
b3076f16 3549else
db946ede 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3551/* end confdefs.h. */
3552
3553int
3554main ()
3555{
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561rm -f conftest.o conftest.obj
db946ede 3562if { { ac_try="$ac_compile"
a8b2ad8d 3563case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566esac
db946ede 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3569 (eval "$ac_compile") 2>&5
b3076f16 3570 ac_status=$?
db946ede 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
a8b2ad8d 3573 for ac_file in conftest.o conftest.obj conftest.*; do
3574 test -f "$ac_file" || continue;
b3076f16 3575 case $ac_file in
db946ede 3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b3076f16 3577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3578 break;;
3579 esac
3580done
3581else
db946ede 3582 $as_echo "$as_me: failed program was:" >&5
b3076f16 3583sed 's/^/| /' conftest.$ac_ext >&5
3584
db946ede 3585{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
3587as_fn_error $? "cannot compute suffix of object files: cannot compile
3588See \`config.log' for more details" "$LINENO" 5; }
b3076f16 3589fi
b3076f16 3590rm -f conftest.$ac_cv_objext conftest.$ac_ext
3591fi
db946ede 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3593$as_echo "$ac_cv_objext" >&6; }
b3076f16 3594OBJEXT=$ac_cv_objext
3595ac_objext=$OBJEXT
db946ede 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3597$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c6254516 3598if ${ac_cv_c_compiler_gnu+:} false; then :
db946ede 3599 $as_echo_n "(cached) " >&6
b3076f16 3600else
db946ede 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607#ifndef __GNUC__
3608 choke me
3609#endif
3610
3611 ;
3612 return 0;
3613}
3614_ACEOF
db946ede 3615if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 3616 ac_compiler_gnu=yes
3617else
db946ede 3618 ac_compiler_gnu=no
b3076f16 3619fi
a8b2ad8d 3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3621ac_cv_c_compiler_gnu=$ac_compiler_gnu
3622
3623fi
db946ede 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3625$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3626if test $ac_compiler_gnu = yes; then
3627 GCC=yes
3628else
3629 GCC=
3630fi
b3076f16 3631ac_test_CFLAGS=${CFLAGS+set}
3632ac_save_CFLAGS=$CFLAGS
db946ede 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3634$as_echo_n "checking whether $CC accepts -g... " >&6; }
c6254516 3635if ${ac_cv_prog_cc_g+:} false; then :
db946ede 3636 $as_echo_n "(cached) " >&6
b3076f16 3637else
a8b2ad8d 3638 ac_save_c_werror_flag=$ac_c_werror_flag
3639 ac_c_werror_flag=yes
3640 ac_cv_prog_cc_g=no
3641 CFLAGS="-g"
db946ede 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 3643/* end confdefs.h. */
3644
3645int
3646main ()
3647{
3648
3649 ;
3650 return 0;
3651}
3652_ACEOF
db946ede 3653if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3654 ac_cv_prog_cc_g=yes
3655else
db946ede 3656 CFLAGS=""
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 3658/* end confdefs.h. */
3659
3660int
3661main ()
3662{
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
db946ede 3668if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3669
db946ede 3670else
3671 ac_c_werror_flag=$ac_save_c_werror_flag
a8b2ad8d 3672 CFLAGS="-g"
db946ede 3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3674/* end confdefs.h. */
3675
3676int
3677main ()
3678{
3679
3680 ;
3681 return 0;
3682}
3683_ACEOF
db946ede 3684if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 3685 ac_cv_prog_cc_g=yes
a8b2ad8d 3686fi
a8b2ad8d 3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688fi
a8b2ad8d 3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3690fi
a8b2ad8d 3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3693fi
db946ede 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3695$as_echo "$ac_cv_prog_cc_g" >&6; }
b3076f16 3696if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3703 fi
3704else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3709 fi
3710fi
db946ede 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3712$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c6254516 3713if ${ac_cv_prog_cc_c89+:} false; then :
db946ede 3714 $as_echo_n "(cached) " >&6
b3076f16 3715else
a8b2ad8d 3716 ac_cv_prog_cc_c89=no
b3076f16 3717ac_save_CC=$CC
db946ede 3718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3719/* end confdefs.h. */
3720#include <stdarg.h>
3721#include <stdio.h>
3722#include <sys/types.h>
3723#include <sys/stat.h>
3724/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3725struct buf { int x; };
3726FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727static char *e (p, i)
3728 char **p;
3729 int i;
3730{
3731 return p[i];
3732}
3733static char *f (char * (*g) (char **, int), char **p, ...)
3734{
3735 char *s;
3736 va_list v;
3737 va_start (v,p);
3738 s = g (p, va_arg (v,int));
3739 va_end (v);
3740 return s;
3741}
3742
3743/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3744 function prototypes and stuff, but not '\xHH' hex character constants.
3745 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3746 as 'x'. The following induces an error, until -std is added to get
b3076f16 3747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3748 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3749 that's true only with -std. */
b3076f16 3750int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3751
a8b2ad8d 3752/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753 inside strings and character constants. */
3754#define FOO(x) 'x'
3755int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3756
b3076f16 3757int test (int i, double x);
3758struct s1 {int (*f) (int a);};
3759struct s2 {int (*f) (double a);};
3760int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761int argc;
3762char **argv;
3763int
3764main ()
3765{
3766return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767 ;
3768 return 0;
3769}
3770_ACEOF
a8b2ad8d 3771for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3773do
3774 CC="$ac_save_CC $ac_arg"
db946ede 3775 if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3776 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3777fi
a8b2ad8d 3778rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3780done
a8b2ad8d 3781rm -f conftest.$ac_ext
b3076f16 3782CC=$ac_save_CC
3783
3784fi
a8b2ad8d 3785# AC_CACHE_VAL
3786case "x$ac_cv_prog_cc_c89" in
3787 x)
db946ede 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789$as_echo "none needed" >&6; } ;;
a8b2ad8d 3790 xno)
db946ede 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792$as_echo "unsupported" >&6; } ;;
b3076f16 3793 *)
a8b2ad8d 3794 CC="$CC $ac_cv_prog_cc_c89"
db946ede 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3797esac
db946ede 3798if test "x$ac_cv_prog_cc_c89" != xno; then :
b3076f16 3799
db946ede 3800fi
b3076f16 3801
b3076f16 3802ac_ext=c
3803ac_cpp='$CPP $CPPFLAGS'
3804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
ec1a68c8 3808depcc="$CC" am_compiler_list=
3809
db946ede 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3811$as_echo_n "checking dependency style of $depcc... " >&6; }
c6254516 3812if ${am_cv_CC_dependencies_compiler_type+:} false; then :
db946ede 3813 $as_echo_n "(cached) " >&6
ec1a68c8 3814else
3815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3816 # We make a subdir and do the tests there. Otherwise we can end up
3817 # making bogus files that we don't know about and never remove. For
3818 # instance it was reported that on HP-UX the gcc test will end up
3819 # making a dummy file named `D' -- because `-MD' means `put the output
3820 # in D'.
c6254516 3821 rm -rf conftest.dir
ec1a68c8 3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3834
3835 am_cv_CC_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
db946ede 3839 am__universal=false
3840 case " $depcc " in #(
3841 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3842 esac
3843
ec1a68c8 3844 for depmode in $am_compiler_list; do
3845 # Setup a source with many dependencies, because some compilers
3846 # like to wrap large dependency lists on column 80 (with \), and
3847 # we should not choose a depcomp mode which is confused by this.
3848 #
3849 # We need to recreate these files for each test, as the compiler may
3850 # overwrite some of them when testing with obscure command lines.
3851 # This happens at least with the AIX C compiler.
3852 : > sub/conftest.c
3853 for i in 1 2 3 4 5 6; do
3854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856 # Solaris 8's {/usr,}/bin/sh.
3857 touch sub/conftst$i.h
3858 done
3859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860
db946ede 3861 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3862 # mode. It turns out that the SunPro C++ compiler does not properly
3863 # handle `-M -o', and we need to detect this. Also, some Intel
3864 # versions had trouble with output in subdirs
3865 am__obj=sub/conftest.${OBJEXT-o}
3866 am__minus_obj="-o $am__obj"
ec1a68c8 3867 case $depmode in
db946ede 3868 gcc)
3869 # This depmode causes a compiler race in universal mode.
3870 test "$am__universal" = false || continue
3871 ;;
ec1a68c8 3872 nosideeffect)
3873 # after this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested
3875 if test "x$enable_dependency_tracking" = xyes; then
3876 continue
3877 else
3878 break
3879 fi
3880 ;;
c6254516 3881 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
db946ede 3882 # This compiler won't grok `-c -o', but also, the minuso test has
3883 # not run yet. These depmodes are late enough in the game, and
3884 # so weak that their functioning should not be impacted.
3885 am__obj=conftest.${OBJEXT-o}
3886 am__minus_obj=
3887 ;;
ec1a68c8 3888 none) break ;;
3889 esac
ec1a68c8 3890 if depmode=$depmode \
db946ede 3891 source=sub/conftest.c object=$am__obj \
ec1a68c8 3892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
db946ede 3893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
ec1a68c8 3894 >/dev/null 2>conftest.err &&
2f65da8f 3895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
db946ede 3897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899 # icc doesn't choke on unknown options, it will just issue warnings
3900 # or remarks (even with -Werror). So we grep stderr for any message
3901 # that says an option was ignored or not supported.
3902 # When given -MP, icc 7.0 and 7.1 complain thusly:
3903 # icc: Command line warning: ignoring option '-M'; no argument required
3904 # The diagnosis changed in icc 8.0:
3905 # icc: Command line remark: option '-MP' not supported
3906 if (grep 'ignoring option' conftest.err ||
3907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908 am_cv_CC_dependencies_compiler_type=$depmode
3909 break
3910 fi
3911 fi
3912 done
3913
3914 cd ..
3915 rm -rf conftest.dir
3916else
3917 am_cv_CC_dependencies_compiler_type=none
3918fi
3919
3920fi
db946ede 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3923CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3924
2f65da8f 3925 if
ec1a68c8 3926 test "x$enable_dependency_tracking" != xno \
3927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3928 am__fastdepCC_TRUE=
3929 am__fastdepCC_FALSE='#'
3930else
3931 am__fastdepCC_TRUE='#'
3932 am__fastdepCC_FALSE=
3933fi
3934
3935
b3076f16 3936
db946ede 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
3938$as_echo_n "checking return type of signal handlers... " >&6; }
c6254516 3939if ${ac_cv_type_signal+:} false; then :
db946ede 3940 $as_echo_n "(cached) " >&6
b3076f16 3941else
db946ede 3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3943/* end confdefs.h. */
3944#include <sys/types.h>
3945#include <signal.h>
b3076f16 3946
3947int
3948main ()
3949{
a8b2ad8d 3950return *(signal (0, 0)) (0) == 1;
b3076f16 3951 ;
3952 return 0;
3953}
3954_ACEOF
db946ede 3955if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3956 ac_cv_type_signal=int
b3076f16 3957else
db946ede 3958 ac_cv_type_signal=void
b3076f16 3959fi
a8b2ad8d 3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3961fi
db946ede 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
3963$as_echo "$ac_cv_type_signal" >&6; }
b3076f16 3964
3965cat >>confdefs.h <<_ACEOF
3966#define RETSIGTYPE $ac_cv_type_signal
3967_ACEOF
3968
3969
db946ede 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3971$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
c6254516 3972if ${ac_cv_c_const+:} false; then :
db946ede 3973 $as_echo_n "(cached) " >&6
b3076f16 3974else
db946ede 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3976/* end confdefs.h. */
3977
3978int
3979main ()
3980{
3981/* FIXME: Include the comments suggested by Paul. */
3982#ifndef __cplusplus
3983 /* Ultrix mips cc rejects this. */
3984 typedef int charset[2];
0bd0bef6 3985 const charset cs;
b3076f16 3986 /* SunOS 4.1.1 cc rejects this. */
0bd0bef6 3987 char const *const *pcpcc;
3988 char **ppc;
b3076f16 3989 /* NEC SVR4.0.2 mips cc rejects this. */
3990 struct point {int x, y;};
3991 static struct point const zero = {0,0};
3992 /* AIX XL C 1.02.0.0 rejects this.
3993 It does not let you subtract one const X* pointer from another in
3994 an arm of an if-expression whose if-part is not a constant
3995 expression */
3996 const char *g = "string";
0bd0bef6 3997 pcpcc = &g + (g ? g-g : 0);
b3076f16 3998 /* HPUX 7.0 cc rejects these. */
0bd0bef6 3999 ++pcpcc;
4000 ppc = (char**) pcpcc;
4001 pcpcc = (char const *const *) ppc;
b3076f16 4002 { /* SCO 3.2v4 cc rejects this. */
4003 char *t;
4004 char const *s = 0 ? (char *) 0 : (char const *) 0;
4005
4006 *t++ = 0;
a8b2ad8d 4007 if (s) return 0;
b3076f16 4008 }
4009 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4010 int x[] = {25, 17};
4011 const int *foo = &x[0];
4012 ++foo;
4013 }
4014 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4015 typedef const int *iptr;
4016 iptr p = 0;
4017 ++p;
4018 }
4019 { /* AIX XL C 1.02.0.0 rejects this saying
4020 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4021 struct s { int j; const int *ap[3]; };
4022 struct s *b; b->j = 5;
4023 }
4024 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4025 const int foo = 10;
a8b2ad8d 4026 if (!foo) return 0;
b3076f16 4027 }
0bd0bef6 4028 return !cs[0] && !zero.x;
b3076f16 4029#endif
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
db946ede 4035if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 4036 ac_cv_c_const=yes
4037else
db946ede 4038 ac_cv_c_const=no
b3076f16 4039fi
a8b2ad8d 4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4041fi
db946ede 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4043$as_echo "$ac_cv_c_const" >&6; }
b3076f16 4044if test $ac_cv_c_const = no; then
4045
db946ede 4046$as_echo "#define const /**/" >>confdefs.h
b3076f16 4047
4048fi
4049
0f6fe38c 4050
4051for ac_prog in gawk mawk nawk awk
4052do
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054set dummy $ac_prog; ac_word=$2
db946ede 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4057if ${ac_cv_prog_AWK+:} false; then :
db946ede 4058 $as_echo_n "(cached) " >&6
0f6fe38c 4059else
4060 if test -n "$AWK"; then
4061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
db946ede 4068 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0f6fe38c 4070 ac_cv_prog_AWK="$ac_prog"
db946ede 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0f6fe38c 4072 break 2
4073 fi
4074done
db946ede 4075 done
0f6fe38c 4076IFS=$as_save_IFS
4077
4078fi
4079fi
4080AWK=$ac_cv_prog_AWK
4081if test -n "$AWK"; then
db946ede 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4083$as_echo "$AWK" >&6; }
0f6fe38c 4084else
db946ede 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
0f6fe38c 4087fi
b3076f16 4088
a8b2ad8d 4089
b3076f16 4090 test -n "$AWK" && break
4091done
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}gcc; ac_word=$2
db946ede 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4103if ${ac_cv_prog_CC+:} false; then :
db946ede 4104 $as_echo_n "(cached) " >&6
b3076f16 4105else
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
db946ede 4114 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
db946ede 4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4118 break 2
4119 fi
4120done
db946ede 4121 done
a8b2ad8d 4122IFS=$as_save_IFS
b3076f16 4123
4124fi
4125fi
4126CC=$ac_cv_prog_CC
4127if test -n "$CC"; then
db946ede 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129$as_echo "$CC" >&6; }
b3076f16 4130else
db946ede 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
b3076f16 4133fi
4134
a8b2ad8d 4135
b3076f16 4136fi
4137if test -z "$ac_cv_prog_CC"; then
4138 ac_ct_CC=$CC
4139 # Extract the first word of "gcc", so it can be a program name with args.
4140set dummy gcc; ac_word=$2
db946ede 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4143if ${ac_cv_prog_ac_ct_CC+:} false; then :
db946ede 4144 $as_echo_n "(cached) " >&6
b3076f16 4145else
4146 if test -n "$ac_ct_CC"; then
4147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
db946ede 4154 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4156 ac_cv_prog_ac_ct_CC="gcc"
db946ede 4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4158 break 2
4159 fi
4160done
db946ede 4161 done
a8b2ad8d 4162IFS=$as_save_IFS
b3076f16 4163
4164fi
4165fi
4166ac_ct_CC=$ac_cv_prog_ac_ct_CC
4167if test -n "$ac_ct_CC"; then
db946ede 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4169$as_echo "$ac_ct_CC" >&6; }
b3076f16 4170else
db946ede 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
b3076f16 4173fi
4174
a8b2ad8d 4175 if test "x$ac_ct_CC" = x; then
4176 CC=""
4177 else
4178 case $cross_compiling:$ac_tool_warned in
4179yes:)
db946ede 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 4182ac_tool_warned=yes ;;
4183esac
4184 CC=$ac_ct_CC
4185 fi
b3076f16 4186else
4187 CC="$ac_cv_prog_CC"
4188fi
4189
4190if test -z "$CC"; then
a8b2ad8d 4191 if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 4193set dummy ${ac_tool_prefix}cc; ac_word=$2
db946ede 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4196if ${ac_cv_prog_CC+:} false; then :
db946ede 4197 $as_echo_n "(cached) " >&6
b3076f16 4198else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201else
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
db946ede 4207 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4209 ac_cv_prog_CC="${ac_tool_prefix}cc"
db946ede 4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4211 break 2
4212 fi
4213done
db946ede 4214 done
a8b2ad8d 4215IFS=$as_save_IFS
b3076f16 4216
4217fi
4218fi
4219CC=$ac_cv_prog_CC
4220if test -n "$CC"; then
db946ede 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222$as_echo "$CC" >&6; }
b3076f16 4223else
db946ede 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
b3076f16 4226fi
4227
b3076f16 4228
a8b2ad8d 4229 fi
b3076f16 4230fi
4231if test -z "$CC"; then
4232 # Extract the first word of "cc", so it can be a program name with args.
4233set dummy cc; ac_word=$2
db946ede 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4236if ${ac_cv_prog_CC+:} false; then :
db946ede 4237 $as_echo_n "(cached) " >&6
b3076f16 4238else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241else
4242 ac_prog_rejected=no
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
db946ede 4248 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251 ac_prog_rejected=yes
4252 continue
4253 fi
4254 ac_cv_prog_CC="cc"
db946ede 4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4256 break 2
4257 fi
4258done
db946ede 4259 done
a8b2ad8d 4260IFS=$as_save_IFS
b3076f16 4261
4262if test $ac_prog_rejected = yes; then
4263 # We found a bogon in the path, so make sure we never use it.
4264 set dummy $ac_cv_prog_CC
4265 shift
4266 if test $# != 0; then
4267 # We chose a different compiler from the bogus one.
4268 # However, it has the same basename, so the bogon will be chosen
4269 # first if we set CC to just the basename; use the full file name.
4270 shift
4271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272 fi
4273fi
4274fi
4275fi
4276CC=$ac_cv_prog_CC
4277if test -n "$CC"; then
db946ede 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279$as_echo "$CC" >&6; }
b3076f16 4280else
db946ede 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
b3076f16 4283fi
4284
a8b2ad8d 4285
b3076f16 4286fi
4287if test -z "$CC"; then
4288 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4289 for ac_prog in cl.exe
b3076f16 4290 do
4291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
db946ede 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4295if ${ac_cv_prog_CC+:} false; then :
db946ede 4296 $as_echo_n "(cached) " >&6
b3076f16 4297else
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
db946ede 4306 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
db946ede 4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4310 break 2
4311 fi
4312done
db946ede 4313 done
a8b2ad8d 4314IFS=$as_save_IFS
b3076f16 4315
4316fi
4317fi
4318CC=$ac_cv_prog_CC
4319if test -n "$CC"; then
db946ede 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321$as_echo "$CC" >&6; }
b3076f16 4322else
db946ede 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
b3076f16 4325fi
4326
a8b2ad8d 4327
b3076f16 4328 test -n "$CC" && break
4329 done
4330fi
4331if test -z "$CC"; then
4332 ac_ct_CC=$CC
a8b2ad8d 4333 for ac_prog in cl.exe
b3076f16 4334do
4335 # Extract the first word of "$ac_prog", so it can be a program name with args.
4336set dummy $ac_prog; ac_word=$2
db946ede 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4339if ${ac_cv_prog_ac_ct_CC+:} false; then :
db946ede 4340 $as_echo_n "(cached) " >&6
b3076f16 4341else
4342 if test -n "$ac_ct_CC"; then
4343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
db946ede 4350 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4352 ac_cv_prog_ac_ct_CC="$ac_prog"
db946ede 4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4354 break 2
4355 fi
4356done
db946ede 4357 done
a8b2ad8d 4358IFS=$as_save_IFS
b3076f16 4359
4360fi
4361fi
4362ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363if test -n "$ac_ct_CC"; then
db946ede 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4365$as_echo "$ac_ct_CC" >&6; }
b3076f16 4366else
db946ede 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
b3076f16 4369fi
4370
a8b2ad8d 4371
b3076f16 4372 test -n "$ac_ct_CC" && break
4373done
4374
a8b2ad8d 4375 if test "x$ac_ct_CC" = x; then
4376 CC=""
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379yes:)
db946ede 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 4382ac_tool_warned=yes ;;
4383esac
4384 CC=$ac_ct_CC
4385 fi
b3076f16 4386fi
4387
4388fi
4389
4390
db946ede 4391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
4393as_fn_error $? "no acceptable C compiler found in \$PATH
4394See \`config.log' for more details" "$LINENO" 5; }
b3076f16 4395
4396# Provide some information about the compiler.
db946ede 4397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4398set X $ac_compile
4399ac_compiler=$2
4400for ac_option in --version -v -V -qversion; do
4401 { { ac_try="$ac_compiler $ac_option >&5"
a8b2ad8d 4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
db946ede 4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b3076f16 4409 ac_status=$?
db946ede 4410 if test -s conftest.err; then
4411 sed '10a\
4412... rest of stderr output deleted ...
4413 10q' conftest.err >conftest.er1
4414 cat conftest.er1 >&5
db946ede 4415 fi
c6254516 4416 rm -f conftest.er1 conftest.err
db946ede 4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4419done
b3076f16 4420
db946ede 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c6254516 4423if ${ac_cv_c_compiler_gnu+:} false; then :
db946ede 4424 $as_echo_n "(cached) " >&6
b3076f16 4425else
db946ede 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4427/* end confdefs.h. */
4428
4429int
4430main ()
4431{
4432#ifndef __GNUC__
4433 choke me
4434#endif
4435
4436 ;
4437 return 0;
4438}
4439_ACEOF
db946ede 4440if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 4441 ac_compiler_gnu=yes
4442else
db946ede 4443 ac_compiler_gnu=no
b3076f16 4444fi
a8b2ad8d 4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4446ac_cv_c_compiler_gnu=$ac_compiler_gnu
4447
4448fi
db946ede 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4451if test $ac_compiler_gnu = yes; then
4452 GCC=yes
4453else
4454 GCC=
4455fi
b3076f16 4456ac_test_CFLAGS=${CFLAGS+set}
4457ac_save_CFLAGS=$CFLAGS
db946ede 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4459$as_echo_n "checking whether $CC accepts -g... " >&6; }
c6254516 4460if ${ac_cv_prog_cc_g+:} false; then :
db946ede 4461 $as_echo_n "(cached) " >&6
b3076f16 4462else
a8b2ad8d 4463 ac_save_c_werror_flag=$ac_c_werror_flag
4464 ac_c_werror_flag=yes
4465 ac_cv_prog_cc_g=no
4466 CFLAGS="-g"
db946ede 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 4468/* end confdefs.h. */
4469
4470int
4471main ()
4472{
4473
4474 ;
4475 return 0;
4476}
4477_ACEOF
db946ede 4478if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4479 ac_cv_prog_cc_g=yes
4480else
db946ede 4481 CFLAGS=""
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 4483/* end confdefs.h. */
4484
4485int
4486main ()
4487{
4488
4489 ;
4490 return 0;
4491}
4492_ACEOF
db946ede 4493if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4494
db946ede 4495else
4496 ac_c_werror_flag=$ac_save_c_werror_flag
a8b2ad8d 4497 CFLAGS="-g"
db946ede 4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4499/* end confdefs.h. */
4500
4501int
4502main ()
4503{
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
db946ede 4509if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 4510 ac_cv_prog_cc_g=yes
a8b2ad8d 4511fi
a8b2ad8d 4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513fi
a8b2ad8d 4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4515fi
a8b2ad8d 4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4518fi
db946ede 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4520$as_echo "$ac_cv_prog_cc_g" >&6; }
b3076f16 4521if test "$ac_test_CFLAGS" = set; then
4522 CFLAGS=$ac_save_CFLAGS
4523elif test $ac_cv_prog_cc_g = yes; then
4524 if test "$GCC" = yes; then
4525 CFLAGS="-g -O2"
4526 else
4527 CFLAGS="-g"
4528 fi
4529else
4530 if test "$GCC" = yes; then
4531 CFLAGS="-O2"
4532 else
4533 CFLAGS=
4534 fi
4535fi
db946ede 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c6254516 4538if ${ac_cv_prog_cc_c89+:} false; then :
db946ede 4539 $as_echo_n "(cached) " >&6
b3076f16 4540else
a8b2ad8d 4541 ac_cv_prog_cc_c89=no
b3076f16 4542ac_save_CC=$CC
db946ede 4543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4544/* end confdefs.h. */
4545#include <stdarg.h>
4546#include <stdio.h>
4547#include <sys/types.h>
4548#include <sys/stat.h>
4549/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4550struct buf { int x; };
4551FILE * (*rcsopen) (struct buf *, struct stat *, int);
4552static char *e (p, i)
4553 char **p;
4554 int i;
4555{
4556 return p[i];
4557}
4558static char *f (char * (*g) (char **, int), char **p, ...)
4559{
4560 char *s;
4561 va_list v;
4562 va_start (v,p);
4563 s = g (p, va_arg (v,int));
4564 va_end (v);
4565 return s;
4566}
4567
4568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4569 function prototypes and stuff, but not '\xHH' hex character constants.
4570 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4571 as 'x'. The following induces an error, until -std is added to get
b3076f16 4572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4573 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4574 that's true only with -std. */
b3076f16 4575int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4576
a8b2ad8d 4577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4578 inside strings and character constants. */
4579#define FOO(x) 'x'
4580int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4581
b3076f16 4582int test (int i, double x);
4583struct s1 {int (*f) (int a);};
4584struct s2 {int (*f) (double a);};
4585int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4586int argc;
4587char **argv;
4588int
4589main ()
4590{
4591return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4592 ;
4593 return 0;
4594}
4595_ACEOF
a8b2ad8d 4596for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4598do
4599 CC="$ac_save_CC $ac_arg"
db946ede 4600 if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4601 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4602fi
a8b2ad8d 4603rm -f core conftest.err conftest.$ac_objext
4604 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4605done
a8b2ad8d 4606rm -f conftest.$ac_ext
b3076f16 4607CC=$ac_save_CC
4608
4609fi
a8b2ad8d 4610# AC_CACHE_VAL
4611case "x$ac_cv_prog_cc_c89" in
4612 x)
db946ede 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4614$as_echo "none needed" >&6; } ;;
a8b2ad8d 4615 xno)
db946ede 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4617$as_echo "unsupported" >&6; } ;;
b3076f16 4618 *)
a8b2ad8d 4619 CC="$CC $ac_cv_prog_cc_c89"
db946ede 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4621$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4622esac
db946ede 4623if test "x$ac_cv_prog_cc_c89" != xno; then :
b3076f16 4624
db946ede 4625fi
b3076f16 4626
b3076f16 4627ac_ext=c
4628ac_cpp='$CPP $CPPFLAGS'
4629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
ec1a68c8 4633depcc="$CC" am_compiler_list=
4634
db946ede 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4636$as_echo_n "checking dependency style of $depcc... " >&6; }
c6254516 4637if ${am_cv_CC_dependencies_compiler_type+:} false; then :
db946ede 4638 $as_echo_n "(cached) " >&6
ec1a68c8 4639else
4640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4641 # We make a subdir and do the tests there. Otherwise we can end up
4642 # making bogus files that we don't know about and never remove. For
4643 # instance it was reported that on HP-UX the gcc test will end up
4644 # making a dummy file named `D' -- because `-MD' means `put the output
4645 # in D'.
c6254516 4646 rm -rf conftest.dir
ec1a68c8 4647 mkdir conftest.dir
4648 # Copy depcomp to subdir because otherwise we won't find it if we're
4649 # using a relative directory.
4650 cp "$am_depcomp" conftest.dir
4651 cd conftest.dir
4652 # We will build objects and dependencies in a subdirectory because
4653 # it helps to detect inapplicable dependency modes. For instance
4654 # both Tru64's cc and ICC support -MD to output dependencies as a
4655 # side effect of compilation, but ICC will put the dependencies in
4656 # the current directory while Tru64 will put them in the object
4657 # directory.
4658 mkdir sub
4659
4660 am_cv_CC_dependencies_compiler_type=none
4661 if test "$am_compiler_list" = ""; then
4662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4663 fi
db946ede 4664 am__universal=false
4665 case " $depcc " in #(
4666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4667 esac
4668
ec1a68c8 4669 for depmode in $am_compiler_list; do
4670 # Setup a source with many dependencies, because some compilers
4671 # like to wrap large dependency lists on column 80 (with \), and
4672 # we should not choose a depcomp mode which is confused by this.
4673 #
4674 # We need to recreate these files for each test, as the compiler may
4675 # overwrite some of them when testing with obscure command lines.
4676 # This happens at least with the AIX C compiler.
4677 : > sub/conftest.c
4678 for i in 1 2 3 4 5 6; do
4679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4681 # Solaris 8's {/usr,}/bin/sh.
4682 touch sub/conftst$i.h
4683 done
4684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4685
db946ede 4686 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4687 # mode. It turns out that the SunPro C++ compiler does not properly
4688 # handle `-M -o', and we need to detect this. Also, some Intel
4689 # versions had trouble with output in subdirs
4690 am__obj=sub/conftest.${OBJEXT-o}
4691 am__minus_obj="-o $am__obj"
ec1a68c8 4692 case $depmode in
db946ede 4693 gcc)
4694 # This depmode causes a compiler race in universal mode.
4695 test "$am__universal" = false || continue
4696 ;;
ec1a68c8 4697 nosideeffect)
4698 # after this tag, mechanisms are not by side-effect, so they'll
4699 # only be used when explicitly requested
4700 if test "x$enable_dependency_tracking" = xyes; then
4701 continue
4702 else
4703 break
4704 fi
4705 ;;
c6254516 4706 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
db946ede 4707 # This compiler won't grok `-c -o', but also, the minuso test has
4708 # not run yet. These depmodes are late enough in the game, and
4709 # so weak that their functioning should not be impacted.
4710 am__obj=conftest.${OBJEXT-o}
4711 am__minus_obj=
4712 ;;
ec1a68c8 4713 none) break ;;
4714 esac
ec1a68c8 4715 if depmode=$depmode \
db946ede 4716 source=sub/conftest.c object=$am__obj \
ec1a68c8 4717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
db946ede 4718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
ec1a68c8 4719 >/dev/null 2>conftest.err &&
2f65da8f 4720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
db946ede 4722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4724 # icc doesn't choke on unknown options, it will just issue warnings
4725 # or remarks (even with -Werror). So we grep stderr for any message
4726 # that says an option was ignored or not supported.
4727 # When given -MP, icc 7.0 and 7.1 complain thusly:
4728 # icc: Command line warning: ignoring option '-M'; no argument required
4729 # The diagnosis changed in icc 8.0:
4730 # icc: Command line remark: option '-MP' not supported
4731 if (grep 'ignoring option' conftest.err ||
4732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4733 am_cv_CC_dependencies_compiler_type=$depmode
4734 break
4735 fi
4736 fi
4737 done
4738
4739 cd ..
4740 rm -rf conftest.dir
4741else
4742 am_cv_CC_dependencies_compiler_type=none
4743fi
4744
4745fi
db946ede 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4747$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4748CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4749
2f65da8f 4750 if
ec1a68c8 4751 test "x$enable_dependency_tracking" != xno \
4752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4753 am__fastdepCC_TRUE=
4754 am__fastdepCC_FALSE='#'
4755else
4756 am__fastdepCC_TRUE='#'
4757 am__fastdepCC_FALSE=
4758fi
4759
4760
b3076f16 4761
0f6fe38c 4762
07559983 4763# Extract the first word of "cp", so it can be a program name with args.
4764set dummy cp; ac_word=$2
db946ede 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4767if ${ac_cv_path_CP+:} false; then :
db946ede 4768 $as_echo_n "(cached) " >&6
07559983 4769else
4770 case $CP in
4771 [\\/]* | ?:[\\/]*)
4772 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4773 ;;
4774 *)
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
db946ede 4780 for ac_exec_ext in '' $ac_executable_extensions; do
07559983 4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
db946ede 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
07559983 4784 break 2
4785 fi
4786done
db946ede 4787 done
07559983 4788IFS=$as_save_IFS
4789
4790 ;;
4791esac
4792fi
4793CP=$ac_cv_path_CP
4794if test -n "$CP"; then
db946ede 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4796$as_echo "$CP" >&6; }
07559983 4797else
db946ede 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
07559983 4800fi
4801
4802
4803
35305a49 4804if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
db946ede 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4809if ${ac_cv_prog_RANLIB+:} false; then :
db946ede 4810 $as_echo_n "(cached) " >&6
2f61d1d7 4811else
35305a49 4812 if test -n "$RANLIB"; then
4813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4814else
2f61d1d7 4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
db946ede 4820 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
db946ede 4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35305a49 4824 break 2
2f61d1d7 4825 fi
35305a49 4826done
db946ede 4827 done
a8b2ad8d 4828IFS=$as_save_IFS
2f61d1d7 4829
b3076f16 4830fi
35305a49 4831fi
4832RANLIB=$ac_cv_prog_RANLIB
4833if test -n "$RANLIB"; then
db946ede 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4835$as_echo "$RANLIB" >&6; }
b3076f16 4836else
db946ede 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
2f61d1d7 4839fi
2f61d1d7 4840
a8b2ad8d 4841
b3076f16 4842fi
35305a49 4843if test -z "$ac_cv_prog_RANLIB"; then
4844 ac_ct_RANLIB=$RANLIB
4845 # Extract the first word of "ranlib", so it can be a program name with args.
4846set dummy ranlib; ac_word=$2
db946ede 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
c6254516 4849if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
db946ede 4850 $as_echo_n "(cached) " >&6
2f61d1d7 4851else
35305a49 4852 if test -n "$ac_ct_RANLIB"; then
4853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4854else
35305a49 4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
db946ede 4860 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4862 ac_cv_prog_ac_ct_RANLIB="ranlib"
db946ede 4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35305a49 4864 break 2
4865 fi
4866done
db946ede 4867 done
a8b2ad8d 4868IFS=$as_save_IFS
35305a49 4869
b3076f16 4870fi
2f61d1d7 4871fi
db946ede 4872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4873if test -n "$ac_ct_RANLIB"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4875$as_echo "$ac_ct_RANLIB" >&6; }
4876else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
b3076f16 4879fi
b3076f16 4880
db946ede 4881 if test "x$ac_ct_RANLIB" = x; then
4882 RANLIB=":"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890 RANLIB=$ac_ct_RANLIB
4891 fi
4892else
4893 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4894fi
4895
4896
db946ede 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4898$as_echo_n "checking whether ln -s works... " >&6; }
4899LN_S=$as_ln_s
4900if test "$LN_S" = "ln -s"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902$as_echo "yes" >&6; }
b3076f16 4903else
db946ede 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4905$as_echo "no, using $LN_S" >&6; }
4906fi
b3076f16 4907
db946ede 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4909$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4910set x ${MAKE-make}
4911ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c6254516 4912if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
db946ede 4913 $as_echo_n "(cached) " >&6
4914else
4915 cat >conftest.make <<\_ACEOF
4916SHELL = /bin/sh
4917all:
4918 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 4919_ACEOF
c6254516 4920# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
db946ede 4921case `${MAKE-make} -f conftest.make 2>/dev/null` in
4922 *@@@%%%=?*=@@@%%%*)
4923 eval ac_cv_prog_make_${ac_make}_set=yes;;
4924 *)
4925 eval ac_cv_prog_make_${ac_make}_set=no;;
a8b2ad8d 4926esac
db946ede 4927rm -f conftest.make
4928fi
4929if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931$as_echo "yes" >&6; }
4932 SET_MAKE=
b3076f16 4933else
db946ede 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936 SET_MAKE="MAKE=${MAKE-make}"
b3076f16 4937fi
a8b2ad8d 4938
db946ede 4939ac_ext=c
4940ac_cpp='$CPP $CPPFLAGS'
4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4945$as_echo_n "checking how to run the C preprocessor... " >&6; }
4946# On Suns, sometimes $CPP names a directory.
4947if test -n "$CPP" && test -d "$CPP"; then
4948 CPP=
b3076f16 4949fi
db946ede 4950if test -z "$CPP"; then
c6254516 4951 if ${ac_cv_prog_CPP+:} false; then :
db946ede 4952 $as_echo_n "(cached) " >&6
4953else
4954 # Double quotes because CPP needs to be expanded
4955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4956 do
4957 ac_preproc_ok=false
4958for ac_c_preproc_warn_flag in '' yes
4959do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
4964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h. */
4968#ifdef __STDC__
4969# include <limits.h>
4970#else
4971# include <assert.h>
4972#endif
4973 Syntax error
b3076f16 4974_ACEOF
db946ede 4975if ac_fn_c_try_cpp "$LINENO"; then :
b3076f16 4976
db946ede 4977else
4978 # Broken: fails on valid input.
4979continue
b3076f16 4980fi
c6254516 4981rm -f conftest.err conftest.i conftest.$ac_ext
b3076f16 4982
db946ede 4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4986/* end confdefs.h. */
db946ede 4987#include <ac_nonexistent.h>
ff3b058a 4988_ACEOF
db946ede 4989if ac_fn_c_try_cpp "$LINENO"; then :
4990 # Broken: success on invalid input.
4991continue
0f6fe38c 4992else
db946ede 4993 # Passes both tests.
4994ac_preproc_ok=:
4995break
0f6fe38c 4996fi
c6254516 4997rm -f conftest.err conftest.i conftest.$ac_ext
0f6fe38c 4998
db946ede 4999done
5000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c6254516 5001rm -f conftest.i conftest.err conftest.$ac_ext
db946ede 5002if $ac_preproc_ok; then :
5003 break
0f6fe38c 5004fi
0f6fe38c 5005
db946ede 5006 done
5007 ac_cv_prog_CPP=$CPP
0f6fe38c 5008
5009fi
db946ede 5010 CPP=$ac_cv_prog_CPP
5011else
5012 ac_cv_prog_CPP=$CPP
5013fi
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5015$as_echo "$CPP" >&6; }
5016ac_preproc_ok=false
5017for ac_c_preproc_warn_flag in '' yes
0f6fe38c 5018do
db946ede 5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0f6fe38c 5026/* end confdefs.h. */
db946ede 5027#ifdef __STDC__
5028# include <limits.h>
5029#else
5030# include <assert.h>
5031#endif
5032 Syntax error
0f6fe38c 5033_ACEOF
db946ede 5034if ac_fn_c_try_cpp "$LINENO"; then :
35305a49 5035
db946ede 5036else
5037 # Broken: fails on valid input.
5038continue
35305a49 5039fi
c6254516 5040rm -f conftest.err conftest.i conftest.$ac_ext
a8b2ad8d 5041
db946ede 5042 # OK, works on sane cases. Now check whether nonexistent headers
5043 # can be detected and how.
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h. */
5046#include <ac_nonexistent.h>
35305a49 5047_ACEOF
db946ede 5048if ac_fn_c_try_cpp "$LINENO"; then :
5049 # Broken: success on invalid input.
5050continue
5051else
5052 # Passes both tests.
5053ac_preproc_ok=:
5054break
35305a49 5055fi
c6254516 5056rm -f conftest.err conftest.i conftest.$ac_ext
35305a49 5057
0f6fe38c 5058done
db946ede 5059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c6254516 5060rm -f conftest.i conftest.err conftest.$ac_ext
db946ede 5061if $ac_preproc_ok; then :
35305a49 5062
db946ede 5063else
5064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6254516
R
5066as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5067See \`config.log' for more details" "$LINENO" 5; }
db946ede 5068fi
35305a49 5069
db946ede 5070ac_ext=c
5071ac_cpp='$CPP $CPPFLAGS'
5072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 5075
5076
db946ede 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5078$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
c6254516 5079if ${ac_cv_path_GREP+:} false; then :
db946ede 5080 $as_echo_n "(cached) " >&6
5081else
5082 if test -z "$GREP"; then
5083 ac_path_GREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in grep ggrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5094# Check for GNU ac_path_GREP and select it if it is found.
5095 # Check for GNU $ac_path_GREP
5096case `"$ac_path_GREP" --version 2>&1` in
5097*GNU*)
5098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5099*)
5100 ac_count=0
5101 $as_echo_n 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'GREP' >> "conftest.nl"
5108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_GREP="$ac_path_GREP"
5114 ac_path_GREP_max=$ac_count
5115 fi
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120esac
b3076f16 5121
db946ede 5122 $ac_path_GREP_found && break 3
5123 done
5124 done
5125 done
5126IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_GREP"; then
c6254516 5128 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
db946ede 5129 fi
5130else
5131 ac_cv_path_GREP=$GREP
5132fi
b3076f16 5133
db946ede 5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5136$as_echo "$ac_cv_path_GREP" >&6; }
5137 GREP="$ac_cv_path_GREP"
b3076f16 5138
5139
db946ede 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5141$as_echo_n "checking for egrep... " >&6; }
c6254516 5142if ${ac_cv_path_EGREP+:} false; then :
db946ede 5143 $as_echo_n "(cached) " >&6
5144else
5145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5146 then ac_cv_path_EGREP="$GREP -E"
5147 else
5148 if test -z "$EGREP"; then
5149 ac_path_EGREP_found=false
5150 # Loop through the user's path and test for each of PROGNAME-LIST
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_prog in egrep; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5160# Check for GNU ac_path_EGREP and select it if it is found.
5161 # Check for GNU $ac_path_EGREP
5162case `"$ac_path_EGREP" --version 2>&1` in
5163*GNU*)
5164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5165*)
5166 ac_count=0
5167 $as_echo_n 0123456789 >"conftest.in"
5168 while :
5169 do
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 $as_echo 'EGREP' >> "conftest.nl"
5174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 as_fn_arith $ac_count + 1 && ac_count=$as_val
5177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_EGREP="$ac_path_EGREP"
5180 ac_path_EGREP_max=$ac_count
5181 fi
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5184 done
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186esac
b3076f16 5187
db946ede 5188 $ac_path_EGREP_found && break 3
5189 done
5190 done
5191 done
5192IFS=$as_save_IFS
5193 if test -z "$ac_cv_path_EGREP"; then
c6254516 5194 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
db946ede 5195 fi
5196else
5197 ac_cv_path_EGREP=$EGREP
5198fi
b3076f16 5199
db946ede 5200 fi
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5203$as_echo "$ac_cv_path_EGREP" >&6; }
5204 EGREP="$ac_cv_path_EGREP"
b3076f16 5205
5206
db946ede 5207if test $ac_cv_c_compiler_gnu = yes; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5209$as_echo_n "checking whether $CC needs -traditional... " >&6; }
c6254516 5210if ${ac_cv_prog_gcc_traditional+:} false; then :
db946ede 5211 $as_echo_n "(cached) " >&6
b3076f16 5212else
db946ede 5213 ac_pattern="Autoconf.*'x'"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5215/* end confdefs.h. */
db946ede 5216#include <sgtty.h>
5217Autoconf TIOCGETP
b3076f16 5218_ACEOF
db946ede 5219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5221 ac_cv_prog_gcc_traditional=yes
b3076f16 5222else
db946ede 5223 ac_cv_prog_gcc_traditional=no
b3076f16 5224fi
db946ede 5225rm -f conftest*
a8b2ad8d 5226
b3076f16 5227
db946ede 5228 if test $ac_cv_prog_gcc_traditional = no; then
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5230/* end confdefs.h. */
db946ede 5231#include <termio.h>
5232Autoconf TCGETA
b3076f16 5233_ACEOF
db946ede 5234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5235 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5236 ac_cv_prog_gcc_traditional=yes
5237fi
5238rm -f conftest*
5239
5240 fi
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5243$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5244 if test $ac_cv_prog_gcc_traditional = yes; then
5245 CC="$CC -traditional"
5246 fi
5247fi
5248
5249# Extract the first word of "gmake", so it can be a program name with args.
5250set dummy gmake; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
c6254516 5253if ${ac_cv_prog_MAKER+:} false; then :
db946ede 5254 $as_echo_n "(cached) " >&6
b3076f16 5255else
db946ede 5256 if test -n "$MAKER"; then
5257 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_MAKER="gmake"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271 done
5272IFS=$as_save_IFS
b3076f16 5273
db946ede 5274 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5275fi
5276fi
5277MAKER=$ac_cv_prog_MAKER
5278if test -n "$MAKER"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
5280$as_echo "$MAKER" >&6; }
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
b3076f16 5284fi
a8b2ad8d 5285
b3076f16 5286
db946ede 5287
5288case $target in
5289 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5290 ANSI_SRC=""
b3076f16 5291 ;;
db946ede 5292 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5293 ANSI_SRC=""
5294 ;;
5295 *-solaris*)
5296 EXTRA_DEFINE="-D__SOLARIS__"
5297 ANSI_SRC="-fno-builtin"
5298 ;;
5299 *-cygwin)
5300 ANSI_SRC="-fno-builtin"
5301 ;;
5302 *-linux*)
5303 EXTRA_DEFINE="-D_GNU_SOURCE"
5304 ANSI_SRC=""
5305 ;;
5306 *)
5307 ANSI_SRC=""
b3076f16 5308 ;;
5309esac
db946ede 5310CFLAGS="$CFLAGS $EXTRA_DEFINE"
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5313$as_echo_n "checking for socket in -lsocket... " >&6; }
c6254516 5314if ${ac_cv_lib_socket_socket+:} false; then :
db946ede 5315 $as_echo_n "(cached) " >&6
b3076f16 5316else
db946ede 5317 ac_check_lib_save_LIBS=$LIBS
5318LIBS="-lsocket $LIBS"
5319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h. */
b3076f16 5321
db946ede 5322/* Override any GCC internal prototype to avoid an error.
5323 Use char because int might match the return type of a GCC
5324 builtin and then its argument prototype would still apply. */
5325#ifdef __cplusplus
5326extern "C"
5327#endif
5328char socket ();
5329int
5330main ()
5331{
5332return socket ();
5333 ;
5334 return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_link "$LINENO"; then :
5338 ac_cv_lib_socket_socket=yes
5339else
5340 ac_cv_lib_socket_socket=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344LIBS=$ac_check_lib_save_LIBS
b3076f16 5345fi
db946ede 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5347$as_echo "$ac_cv_lib_socket_socket" >&6; }
c6254516 5348if test "x$ac_cv_lib_socket_socket" = xyes; then :
b3076f16 5349 cat >>confdefs.h <<_ACEOF
db946ede 5350#define HAVE_LIBSOCKET 1
b3076f16 5351_ACEOF
5352
db946ede 5353 LIBS="-lsocket $LIBS"
b3076f16 5354
db946ede 5355fi
b3076f16 5356
db946ede 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5358$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
c6254516 5359if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
db946ede 5360 $as_echo_n "(cached) " >&6
b3076f16 5361else
db946ede 5362 ac_check_lib_save_LIBS=$LIBS
5363LIBS="-lnsl $LIBS"
5364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5365/* end confdefs.h. */
b3076f16 5366
db946ede 5367/* Override any GCC internal prototype to avoid an error.
5368 Use char because int might match the return type of a GCC
5369 builtin and then its argument prototype would still apply. */
5370#ifdef __cplusplus
5371extern "C"
5372#endif
5373char gethostbyname ();
b3076f16 5374int
5375main ()
5376{
db946ede 5377return gethostbyname ();
b3076f16 5378 ;
5379 return 0;
5380}
5381_ACEOF
db946ede 5382if ac_fn_c_try_link "$LINENO"; then :
5383 ac_cv_lib_nsl_gethostbyname=yes
b3076f16 5384else
db946ede 5385 ac_cv_lib_nsl_gethostbyname=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389LIBS=$ac_check_lib_save_LIBS
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5392$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
c6254516 5393if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
db946ede 5394 cat >>confdefs.h <<_ACEOF
5395#define HAVE_LIBNSL 1
b3076f16 5396_ACEOF
db946ede 5397
5398 LIBS="-lnsl $LIBS"
5399
5400fi
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5403$as_echo_n "checking for main in -lm... " >&6; }
c6254516 5404if ${ac_cv_lib_m_main+:} false; then :
db946ede 5405 $as_echo_n "(cached) " >&6
5406else
5407 ac_check_lib_save_LIBS=$LIBS
5408LIBS="-lm $LIBS"
5409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5410/* end confdefs.h. */
db946ede 5411
b3076f16 5412
5413int
5414main ()
5415{
db946ede 5416return main ();
b3076f16 5417 ;
5418 return 0;
5419}
5420_ACEOF
db946ede 5421if ac_fn_c_try_link "$LINENO"; then :
5422 ac_cv_lib_m_main=yes
b3076f16 5423else
db946ede 5424 ac_cv_lib_m_main=no
b3076f16 5425fi
db946ede 5426rm -f core conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428LIBS=$ac_check_lib_save_LIBS
b3076f16 5429fi
db946ede 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5431$as_echo "$ac_cv_lib_m_main" >&6; }
c6254516 5432if test "x$ac_cv_lib_m_main" = xyes; then :
db946ede 5433 cat >>confdefs.h <<_ACEOF
5434#define HAVE_LIBM 1
2f61d1d7 5435_ACEOF
5436
db946ede 5437 LIBS="-lm $LIBS"
5438
2f61d1d7 5439fi
5440
db946ede 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
5442$as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
c6254516 5443if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
db946ede 5444 $as_echo_n "(cached) " >&6
2f61d1d7 5445else
db946ede 5446 ac_check_lib_save_LIBS=$LIBS
5447LIBS="-lGeoIP $LIBS"
5448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
2f61d1d7 5450
db946ede 5451/* Override any GCC internal prototype to avoid an error.
5452 Use char because int might match the return type of a GCC
5453 builtin and then its argument prototype would still apply. */
5454#ifdef __cplusplus
5455extern "C"
5456#endif
5457char GeoIP_open ();
2f61d1d7 5458int
5459main ()
5460{
db946ede 5461return GeoIP_open ();
2f61d1d7 5462 ;
5463 return 0;
5464}
5465_ACEOF
db946ede 5466if ac_fn_c_try_link "$LINENO"; then :
5467 ac_cv_lib_GeoIP_GeoIP_open=yes
2f61d1d7 5468else
db946ede 5469 ac_cv_lib_GeoIP_GeoIP_open=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5473LIBS=$ac_check_lib_save_LIBS
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5476$as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
c6254516 5477if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
db946ede 5478 cat >>confdefs.h <<_ACEOF
5479#define HAVE_LIBGEOIP 1
2f61d1d7 5480_ACEOF
db946ede 5481
5482 LIBS="-lGeoIP $LIBS"
5483
5484fi
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5488$as_echo_n "checking for ANSI C header files... " >&6; }
c6254516 5489if ${ac_cv_header_stdc+:} false; then :
db946ede 5490 $as_echo_n "(cached) " >&6
5491else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f61d1d7 5493/* end confdefs.h. */
db946ede 5494#include <stdlib.h>
5495#include <stdarg.h>
5496#include <string.h>
5497#include <float.h>
2f61d1d7 5498
5499int
5500main ()
5501{
db946ede 5502
2f61d1d7 5503 ;
5504 return 0;
5505}
b3076f16 5506_ACEOF
db946ede 5507if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_header_stdc=yes
2f61d1d7 5509else
db946ede 5510 ac_cv_header_stdc=no
2f61d1d7 5511fi
a8b2ad8d 5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8b2ad8d 5513
db946ede 5514if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#include <string.h>
2f61d1d7 5519
2f61d1d7 5520_ACEOF
db946ede 5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then :
b3076f16 5523
db946ede 5524else
5525 ac_cv_header_stdc=no
2f61d1d7 5526fi
db946ede 5527rm -f conftest*
b3076f16 5528
db946ede 5529fi
b3076f16 5530
db946ede 5531if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h. */
5535#include <stdlib.h>
21f6caee 5536
db946ede 5537_ACEOF
5538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then :
b3076f16 5540
db946ede 5541else
5542 ac_cv_header_stdc=no
5543fi
5544rm -f conftest*
b3076f16 5545
db946ede 5546fi
b3076f16 5547
db946ede 5548if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then :
5551 :
5552else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5554/* end confdefs.h. */
db946ede 5555#include <ctype.h>
5556#include <stdlib.h>
5557#if ((' ' & 0x0FF) == 0x020)
5558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
b3076f16 5560#else
db946ede 5561# define ISLOWER(c) \
5562 (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b3076f16 5566#endif
5567
db946ede 5568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b3076f16 5569int
5570main ()
5571{
db946ede 5572 int i;
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5576 return 2;
b3076f16 5577 return 0;
ff3b058a 5578}
5579_ACEOF
db946ede 5580if ac_fn_c_try_run "$LINENO"; then :
b3076f16 5581
db946ede 5582else
5583 ac_cv_header_stdc=no
b3076f16 5584fi
db946ede 5585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5586 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 5587fi
b3076f16 5588
b3076f16 5589fi
db946ede 5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5592$as_echo "$ac_cv_header_stdc" >&6; }
5593if test $ac_cv_header_stdc = yes; then
b3076f16 5594
db946ede 5595$as_echo "#define STDC_HEADERS 1" >>confdefs.h
0f6fe38c 5596
db946ede 5597fi
0f6fe38c 5598
5599
db946ede 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5601$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
c6254516 5602if ${ac_cv_header_time+:} false; then :
db946ede 5603 $as_echo_n "(cached) " >&6
5604else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5606/* end confdefs.h. */
db946ede 5607#include <sys/types.h>
5608#include <sys/time.h>
5609#include <time.h>
b3076f16 5610
db946ede 5611int
5612main ()
5613{
5614if ((struct tm *) 0)
5615return 0;
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_header_time=yes
5622else
5623 ac_cv_header_time=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5628$as_echo "$ac_cv_header_time" >&6; }
5629if test $ac_cv_header_time = yes; then
b3076f16 5630
db946ede 5631$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
b3076f16 5632
db946ede 5633fi
b3076f16 5634
db946ede 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5636$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
c6254516 5637if ${ac_cv_struct_tm+:} false; then :
db946ede 5638 $as_echo_n "(cached) " >&6
5639else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h. */
5642#include <sys/types.h>
5643#include <time.h>
b3076f16 5644
5645int
5646main ()
5647{
db946ede 5648struct tm tm;
5649 int *p = &tm.tm_sec;
5650 return !p;
b3076f16 5651 ;
5652 return 0;
5653}
5654_ACEOF
db946ede 5655if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_struct_tm=time.h
b3076f16 5657else
db946ede 5658 ac_cv_struct_tm=sys/time.h
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5661fi
db946ede 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5663$as_echo "$ac_cv_struct_tm" >&6; }
5664if test $ac_cv_struct_tm = sys/time.h; then
5665
5666$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a8b2ad8d 5667
b3076f16 5668fi
db946ede 5669
5670
5671# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5672for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5673 inttypes.h stdint.h unistd.h
5674do :
5675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5677"
c6254516 5678if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b3076f16 5679 cat >>confdefs.h <<_ACEOF
db946ede 5680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b3076f16 5681_ACEOF
5682
5683fi
db946ede 5684
b3076f16 5685done
5686
db946ede 5687
5688for ac_header in GeoIP.h GeoIPCity.h arpa/inet.h fcntl.h math.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h sys/epoll.h sys/event.h
5689do :
5690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5691ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
c6254516 5692if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
db946ede 5693 cat >>confdefs.h <<_ACEOF
5694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695_ACEOF
5696
1136f709 5697fi
b3076f16 5698
db946ede 5699done
5700
b3076f16 5701
db946ede 5702ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
5703#include <sys/socket.h>
5704"
c6254516 5705if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b3076f16 5706
db946ede 5707$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
b3076f16 5708
db946ede 5709fi
b3076f16 5710
db946ede 5711ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "#include <sys/types.h>
5712#include <sys/socket.h>
5713#include <netdb.h>
5714"
c6254516 5715if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
b3076f16 5716
db946ede 5717$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
b3076f16 5718
db946ede 5719fi
b3076f16 5720
b3076f16 5721
db946ede 5722for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create kqueue kevent select gettimeofday times GetProcessTimes mprotect
5723do :
5724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5725ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
c6254516 5726if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
db946ede 5727 cat >>confdefs.h <<_ACEOF
5728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5729_ACEOF
b3076f16 5730
db946ede 5731fi
5732done
b3076f16 5733
db946ede 5734
5735
5736if test $ac_cv_func_gettimeofday = no; then
5737 for ac_func in ftime
5738do :
5739 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
c6254516 5740if test "x$ac_cv_func_ftime" = xyes; then :
db946ede 5741 cat >>confdefs.h <<_ACEOF
5742#define HAVE_FTIME 1
b3076f16 5743_ACEOF
b3076f16 5744
db946ede 5745else
c6254516 5746 as_fn_error $? "ftime or gettimeofday required. X3 build will fail." "$LINENO" 5
b3076f16 5747fi
db946ede 5748done
a8b2ad8d 5749
b3076f16 5750fi
db946ede 5751
5752for ac_func in socket strcspn strspn strtod strtoul
5753do :
5754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5755ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
c6254516 5756if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b3076f16 5757 cat >>confdefs.h <<_ACEOF
db946ede 5758#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b3076f16 5759_ACEOF
5760
5761else
c6254516 5762 as_fn_error $? "a required function was not found. X3 build will fail." "$LINENO" 5
b3076f16 5763fi
5764done
5765
5766
c6254516
R
5767ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5768if test "x$ac_cv_type_size_t" = xyes; then :
5769
5770else
5771
5772cat >>confdefs.h <<_ACEOF
5773#define size_t unsigned int
5774_ACEOF
5775
5776fi
5777
b3076f16 5778# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5779# for constant arguments. Useless!
db946ede 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5781$as_echo_n "checking for working alloca.h... " >&6; }
c6254516 5782if ${ac_cv_working_alloca_h+:} false; then :
db946ede 5783 $as_echo_n "(cached) " >&6
b3076f16 5784else
db946ede 5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5786/* end confdefs.h. */
5787#include <alloca.h>
5788int
5789main ()
5790{
5791char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 5792 if (p) return 0;
b3076f16 5793 ;
5794 return 0;
5795}
5796_ACEOF
db946ede 5797if ac_fn_c_try_link "$LINENO"; then :
b3076f16 5798 ac_cv_working_alloca_h=yes
5799else
db946ede 5800 ac_cv_working_alloca_h=no
b3076f16 5801fi
db946ede 5802rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
b3076f16 5804fi
db946ede 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5806$as_echo "$ac_cv_working_alloca_h" >&6; }
b3076f16 5807if test $ac_cv_working_alloca_h = yes; then
5808
db946ede 5809$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b3076f16 5810
5811fi
5812
db946ede 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5814$as_echo_n "checking for alloca... " >&6; }
c6254516 5815if ${ac_cv_func_alloca_works+:} false; then :
db946ede 5816 $as_echo_n "(cached) " >&6
b3076f16 5817else
db946ede 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5819/* end confdefs.h. */
5820#ifdef __GNUC__
5821# define alloca __builtin_alloca
5822#else
5823# ifdef _MSC_VER
5824# include <malloc.h>
5825# define alloca _alloca
5826# else
0bd0bef6 5827# ifdef HAVE_ALLOCA_H
b3076f16 5828# include <alloca.h>
5829# else
5830# ifdef _AIX
5831 #pragma alloca
5832# else
5833# ifndef alloca /* predefined by HP cc +Olibcalls */
c6254516 5834void *alloca (size_t);
b3076f16 5835# endif
5836# endif
5837# endif
5838# endif
5839#endif
5840
5841int
5842main ()
5843{
5844char *p = (char *) alloca (1);
a8b2ad8d 5845 if (p) return 0;
b3076f16 5846 ;
5847 return 0;
5848}
5849_ACEOF
db946ede 5850if ac_fn_c_try_link "$LINENO"; then :
b3076f16 5851 ac_cv_func_alloca_works=yes
5852else
db946ede 5853 ac_cv_func_alloca_works=no
b3076f16 5854fi
db946ede 5855rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
b3076f16 5857fi
db946ede 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5859$as_echo "$ac_cv_func_alloca_works" >&6; }
b3076f16 5860
5861if test $ac_cv_func_alloca_works = yes; then
5862
db946ede 5863$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b3076f16 5864
5865else
5866 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5867# that cause trouble. Some versions do not even contain alloca or
5868# contain a buggy version. If you still want to use their alloca,
5869# use ar to extract alloca.o from them instead of compiling alloca.c.
5870
a8b2ad8d 5871ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 5872
db946ede 5873$as_echo "#define C_ALLOCA 1" >>confdefs.h
b3076f16 5874
5875
db946ede 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5877$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
c6254516 5878if ${ac_cv_os_cray+:} false; then :
db946ede 5879 $as_echo_n "(cached) " >&6
b3076f16 5880else
db946ede 5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5882/* end confdefs.h. */
a8b2ad8d 5883#if defined CRAY && ! defined CRAY2
b3076f16 5884webecray
5885#else
5886wenotbecray
5887#endif
5888
5889_ACEOF
5890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
db946ede 5891 $EGREP "webecray" >/dev/null 2>&1; then :
b3076f16 5892 ac_cv_os_cray=yes
5893else
5894 ac_cv_os_cray=no
5895fi
5896rm -f conftest*
5897
5898fi
db946ede 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5900$as_echo "$ac_cv_os_cray" >&6; }
b3076f16 5901if test $ac_cv_os_cray = yes; then
5902 for ac_func in _getb67 GETB67 getb67; do
db946ede 5903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
c6254516 5905if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b3076f16 5906
5907cat >>confdefs.h <<_ACEOF
5908#define CRAY_STACKSEG_END $ac_func
5909_ACEOF
5910
5911 break
5912fi
5913
5914 done
5915fi
5916
db946ede 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5918$as_echo_n "checking stack direction for C alloca... " >&6; }
c6254516 5919if ${ac_cv_c_stack_direction+:} false; then :
db946ede 5920 $as_echo_n "(cached) " >&6
b3076f16 5921else
db946ede 5922 if test "$cross_compiling" = yes; then :
b3076f16 5923 ac_cv_c_stack_direction=0
5924else
db946ede 5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5926/* end confdefs.h. */
a8b2ad8d 5927$ac_includes_default
b3076f16 5928int
5929find_stack_direction ()
5930{
5931 static char *addr = 0;
5932 auto char dummy;
5933 if (addr == 0)
5934 {
5935 addr = &dummy;
5936 return find_stack_direction ();
5937 }
5938 else
5939 return (&dummy > addr) ? 1 : -1;
5940}
5941
5942int
5943main ()
5944{
a8b2ad8d 5945 return find_stack_direction () < 0;
b3076f16 5946}
5947_ACEOF
db946ede 5948if ac_fn_c_try_run "$LINENO"; then :
b3076f16 5949 ac_cv_c_stack_direction=1
5950else
db946ede 5951 ac_cv_c_stack_direction=-1
b3076f16 5952fi
db946ede 5953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5954 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 5955fi
a8b2ad8d 5956
b3076f16 5957fi
db946ede 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5959$as_echo "$ac_cv_c_stack_direction" >&6; }
b3076f16 5960cat >>confdefs.h <<_ACEOF
5961#define STACK_DIRECTION $ac_cv_c_stack_direction
5962_ACEOF
5963
5964
5965fi
5966
c6254516
R
5967
5968
5969
5970 for ac_header in $ac_header_list
db946ede 5971do :
5972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
c6254516
R
5973ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5974"
5975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b3076f16 5976 cat >>confdefs.h <<_ACEOF
db946ede 5977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b3076f16 5978_ACEOF
5979
5980fi
5981
5982done
5983
c6254516
R
5984
5985
5986
5987
5988
5989
5990
b3076f16 5991for ac_func in getpagesize
db946ede 5992do :
5993 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
c6254516 5994if test "x$ac_cv_func_getpagesize" = xyes; then :
b3076f16 5995 cat >>confdefs.h <<_ACEOF
db946ede 5996#define HAVE_GETPAGESIZE 1
b3076f16 5997_ACEOF
5998
5999fi
6000done
6001
db946ede 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6003$as_echo_n "checking for working mmap... " >&6; }
c6254516 6004if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
db946ede 6005 $as_echo_n "(cached) " >&6
b3076f16 6006else
db946ede 6007 if test "$cross_compiling" = yes; then :
b3076f16 6008 ac_cv_func_mmap_fixed_mapped=no
6009else
db946ede 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6011/* end confdefs.h. */
6012$ac_includes_default
6013/* malloc might have been renamed as rpl_malloc. */
6014#undef malloc
6015
6016/* Thanks to Mike Haertel and Jim Avera for this test.
6017 Here is a matrix of mmap possibilities:
6018 mmap private not fixed
6019 mmap private fixed at somewhere currently unmapped
6020 mmap private fixed at somewhere already mapped
6021 mmap shared not fixed
6022 mmap shared fixed at somewhere currently unmapped
6023 mmap shared fixed at somewhere already mapped
6024 For private mappings, we should verify that changes cannot be read()
6025 back from the file, nor mmap's back from the file at a different
6026 address. (There have been systems where private was not correctly
6027 implemented like the infamous i386 svr4.0, and systems where the
6028 VM page cache was not coherent with the file system buffer cache
6029 like early versions of FreeBSD and possibly contemporary NetBSD.)
6030 For shared mappings, we should conversely verify that changes get
6031 propagated back to all the places they're supposed to be.
6032
6033 Grep wants private fixed already mapped.
6034 The main things grep needs to know about mmap are:
6035 * does it exist and is it safe to write into the mmap'd area
6036 * how to use it (BSD variants) */
6037
6038#include <fcntl.h>
6039#include <sys/mman.h>
6040
0bd0bef6 6041#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 6042char *malloc ();
6043#endif
6044
6045/* This mess was copied from the GNU getpagesize.h. */
0bd0bef6 6046#ifndef HAVE_GETPAGESIZE
b3076f16 6047# ifdef _SC_PAGESIZE
6048# define getpagesize() sysconf(_SC_PAGESIZE)
6049# else /* no _SC_PAGESIZE */
0bd0bef6 6050# ifdef HAVE_SYS_PARAM_H
b3076f16 6051# include <sys/param.h>
6052# ifdef EXEC_PAGESIZE
6053# define getpagesize() EXEC_PAGESIZE
6054# else /* no EXEC_PAGESIZE */
6055# ifdef NBPG
6056# define getpagesize() NBPG * CLSIZE
6057# ifndef CLSIZE
6058# define CLSIZE 1
6059# endif /* no CLSIZE */
6060# else /* no NBPG */
6061# ifdef NBPC
6062# define getpagesize() NBPC
6063# else /* no NBPC */
6064# ifdef PAGESIZE
6065# define getpagesize() PAGESIZE
6066# endif /* PAGESIZE */
6067# endif /* no NBPC */
6068# endif /* no NBPG */
6069# endif /* no EXEC_PAGESIZE */
6070# else /* no HAVE_SYS_PARAM_H */
6071# define getpagesize() 8192 /* punt totally */
6072# endif /* no HAVE_SYS_PARAM_H */
6073# endif /* no _SC_PAGESIZE */
6074
6075#endif /* no HAVE_GETPAGESIZE */
6076
6077int
6078main ()
6079{
6080 char *data, *data2, *data3;
c6254516 6081 const char *cdata2;
b3076f16 6082 int i, pagesize;
c6254516 6083 int fd, fd2;
b3076f16 6084
6085 pagesize = getpagesize ();
6086
6087 /* First, make a file with some known garbage in it. */
6088 data = (char *) malloc (pagesize);
6089 if (!data)
a8b2ad8d 6090 return 1;
b3076f16 6091 for (i = 0; i < pagesize; ++i)
6092 *(data + i) = rand ();
6093 umask (0);
6094 fd = creat ("conftest.mmap", 0600);
6095 if (fd < 0)
c6254516 6096 return 2;
b3076f16 6097 if (write (fd, data, pagesize) != pagesize)
c6254516 6098 return 3;
b3076f16 6099 close (fd);
6100
c6254516
R
6101 /* Next, check that the tail of a page is zero-filled. File must have
6102 non-zero length, otherwise we risk SIGBUS for entire page. */
6103 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6104 if (fd2 < 0)
6105 return 4;
6106 cdata2 = "";
6107 if (write (fd2, cdata2, 1) != 1)
6108 return 5;
6109 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6110 if (data2 == MAP_FAILED)
6111 return 6;
6112 for (i = 0; i < pagesize; ++i)
6113 if (*(data2 + i))
6114 return 7;
6115 close (fd2);
6116 if (munmap (data2, pagesize))
6117 return 8;
6118
b3076f16 6119 /* Next, try to mmap the file at a fixed address which already has
6120 something else allocated at it. If we can, also make sure that
6121 we see the same garbage. */
6122 fd = open ("conftest.mmap", O_RDWR);
6123 if (fd < 0)
c6254516 6124 return 9;
b3076f16 6125 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6126 MAP_PRIVATE | MAP_FIXED, fd, 0L))
c6254516 6127 return 10;
b3076f16 6128 for (i = 0; i < pagesize; ++i)
6129 if (*(data + i) != *(data2 + i))
c6254516 6130 return 11;
b3076f16 6131
6132 /* Finally, make sure that changes to the mapped area do not
6133 percolate back to the file as seen by read(). (This is a bug on
6134 some variants of i386 svr4.0.) */
6135 for (i = 0; i < pagesize; ++i)
6136 *(data2 + i) = *(data2 + i) + 1;
6137 data3 = (char *) malloc (pagesize);
6138 if (!data3)
c6254516 6139 return 12;
b3076f16 6140 if (read (fd, data3, pagesize) != pagesize)
c6254516 6141 return 13;
b3076f16 6142 for (i = 0; i < pagesize; ++i)
6143 if (*(data + i) != *(data3 + i))
c6254516 6144 return 14;
b3076f16 6145 close (fd);
a8b2ad8d 6146 return 0;
db946ede 6147}
6148_ACEOF
6149if ac_fn_c_try_run "$LINENO"; then :
b3076f16 6150 ac_cv_func_mmap_fixed_mapped=yes
6151else
db946ede 6152 ac_cv_func_mmap_fixed_mapped=no
b3076f16 6153fi
db946ede 6154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6155 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 6156fi
a8b2ad8d 6157
b3076f16 6158fi
db946ede 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6160$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 6161if test $ac_cv_func_mmap_fixed_mapped = yes; then
6162
db946ede 6163$as_echo "#define HAVE_MMAP 1" >>confdefs.h
b3076f16 6164
6165fi
c6254516 6166rm -f conftest.mmap conftest.txt
b3076f16 6167
6168
db946ede 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin_len" >&5
6170$as_echo_n "checking for sin_len... " >&6; }
c6254516 6171if ${ac_cv_sin_len+:} false; then :
db946ede 6172 $as_echo_n "(cached) " >&6
b3076f16 6173else
db946ede 6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6175/* end confdefs.h. */
6176#include <sys/types.h>
6177#include <netinet/in.h>
6178int
6179main ()
6180{
6181struct sockaddr_in *sin; sin->sin_len = 0;
6182 ;
6183 return 0;
6184}
6185_ACEOF
db946ede 6186if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6187 ac_cv_sin_len="yes"
6188else
db946ede 6189 ac_cv_sin_len="no"
b3076f16 6190fi
a8b2ad8d 6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6192fi
db946ede 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sin_len" >&5
6194$as_echo "$ac_cv_sin_len" >&6; }
b3076f16 6195if test $ac_cv_sin_len = yes ; then
6196
db946ede 6197$as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h
b3076f16 6198
6199fi
6200
db946ede 6201ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
79886419 6202#include<sys/socket.h>
db946ede 6203"
c6254516 6204if test "x$ac_cv_type_socklen_t" = xyes; then :
79886419 6205
0f6fe38c 6206else
ff3b058a 6207
db946ede 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6209$as_echo_n "checking for socklen_t equivalent... " >&6; }
c6254516 6210 if ${curl_cv_socklen_t_equiv+:} false; then :
db946ede 6211 $as_echo_n "(cached) " >&6
ff3b058a 6212else
0f6fe38c 6213
6214 curl_cv_socklen_t_equiv=
6215 for arg2 in "struct sockaddr" void ; do
6216 for t in int size_t unsigned long "unsigned long" ; do
db946ede 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff3b058a 6218/* end confdefs.h. */
0f6fe38c 6219#include <sys/types.h>
6220#include <sys/socket.h>
6221int getpeername (int $arg2 *, $t *);
6222int
6223main ()
6224{
6225$t len;
6226 getpeername(0, 0, &len);
6227 ;
6228 return 0;
6229}
79886419 6230_ACEOF
db946ede 6231if ac_fn_c_try_compile "$LINENO"; then :
0f6fe38c 6232 curl_cv_socklen_t_equiv="$t"
6233 break
79886419 6234fi
a8b2ad8d 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0f6fe38c 6236 done
6237 done
79886419 6238
6239fi
6240
db946ede 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
6242$as_echo "$curl_cv_socklen_t_equiv" >&6; }
79886419 6243
0f6fe38c 6244cat >>confdefs.h <<_ACEOF
6245#define socklen_t $curl_cv_socklen_t_equiv
79886419 6246_ACEOF
6247
0f6fe38c 6248fi
6249
6250
6251OLD_CFLAGS=$CFLAGS
6252CFLAGS="$CFLAGS -W -Wall -Werror"
b3076f16 6253
1136f709 6254if test "z$USE_MAINTAINER_MODE" = zyes ; then
6255 CFLAGS="$CFLAGS -ansi"
6256fi
6257
db946ede 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6259$as_echo_n "checking for inline... " >&6; }
c6254516 6260if ${ac_cv_c_inline+:} false; then :
db946ede 6261 $as_echo_n "(cached) " >&6
1136f709 6262else
6263 ac_cv_c_inline=no
6264for ac_kw in inline __inline__ __inline; do
db946ede 6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1136f709 6266/* end confdefs.h. */
6267#ifndef __cplusplus
6268typedef int foo_t;
6269static $ac_kw foo_t static_foo () {return 0; }
6270$ac_kw foo_t foo () {return 0; }
6271#endif
6272
6273_ACEOF
db946ede 6274if ac_fn_c_try_compile "$LINENO"; then :
1136f709 6275 ac_cv_c_inline=$ac_kw
1136f709 6276fi
1136f709 6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 test "$ac_cv_c_inline" != no && break
6279done
6280
6281fi
db946ede 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6283$as_echo "$ac_cv_c_inline" >&6; }
1136f709 6284
6285case $ac_cv_c_inline in
6286 inline | yes) ;;
6287 *)
6288 case $ac_cv_c_inline in
6289 no) ac_val=;;
6290 *) ac_val=$ac_cv_c_inline;;
6291 esac
6292 cat >>confdefs.h <<_ACEOF
6293#ifndef __cplusplus
6294#define inline $ac_val
6295#endif
6296_ACEOF
6297 ;;
6298esac
6299
6300
db946ede 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t format" >&5
6302$as_echo_n "checking for time_t format... " >&6; }
c6254516 6303if ${ac_cv_fmt_time_t+:} false; then :
db946ede 6304 $as_echo_n "(cached) " >&6
b3076f16 6305else
6306
6307ac_cv_fmt_time_t=no
db946ede 6308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h. */
b3076f16 6310#include <sys/types.h>
6311#include <stdio.h>
6312void myfunc(void) {
6313 time_t test=0;
6314 printf("%li", test);
6315}
6316_ACEOF
db946ede 6317if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6318 ac_cv_fmt_time_t="\"%li\""
b3076f16 6319fi
a8b2ad8d 6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6321if test $ac_cv_fmt_time_t = no; then
db946ede 6322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h. */
b3076f16 6324#include <sys/types.h>
6325#include <stdio.h>
6326void myfunc(void) {
6327 time_t test=0;
6328 printf("%i", test);
6329}
6330_ACEOF
db946ede 6331if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6332 ac_cv_fmt_time_t="\"%i\""
b3076f16 6333fi
a8b2ad8d 6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6335fi
6336if test $ac_cv_fmt_time_t = no; then
c6254516 6337as_fn_error $? "Cannot detect format string for time_t
db946ede 6338Please check sys/types.h for the typedef of time_t and submit to a developer" "$LINENO" 5
b3076f16 6339fi
6340
6341fi
6342
6343
6344cat >>confdefs.h <<_ACEOF
6345#define FMT_TIME_T $ac_cv_fmt_time_t
6346_ACEOF
6347
db946ede 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fmt_time_t" >&5
6349$as_echo "$ac_cv_fmt_time_t" >&6; }
b3076f16 6350
db946ede 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6352$as_echo_n "checking for va_copy... " >&6; }
c6254516 6353if ${ac_cv_c_va_copy+:} false; then :
db946ede 6354 $as_echo_n "(cached) " >&6
b3076f16 6355else
db946ede 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6357/* end confdefs.h. */
6358#include <stdarg.h>
6359int
6360main ()
6361{
6362va_list ap1, ap2; va_copy(ap1, ap2);
6363 ;
6364 return 0;
6365}
6366_ACEOF
db946ede 6367if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6368 ac_cv_c_va_copy="yes"
6369else
db946ede 6370 ac_cv_c_va_copy="no"
b3076f16 6371
6372fi
db946ede 6373rm -f core conftest.err conftest.$ac_objext \
6374 conftest$ac_exeext conftest.$ac_ext
b3076f16 6375fi
db946ede 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6377$as_echo "$ac_cv_c_va_copy" >&6; }
b3076f16 6378if test "$ac_cv_c_va_copy" = "yes" ; then
6379
db946ede 6380$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
b3076f16 6381
6382fi
6383
db946ede 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6385$as_echo_n "checking for __va_copy... " >&6; }
c6254516 6386if ${ac_cv_c___va_copy+:} false; then :
db946ede 6387 $as_echo_n "(cached) " >&6
b3076f16 6388else
db946ede 6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6390/* end confdefs.h. */
6391#include <stdarg.h>
6392int
6393main ()
6394{
6395va_list ap1, ap2; __va_copy(ap1, ap2);
6396 ;
6397 return 0;
6398}
6399_ACEOF
db946ede 6400if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6401 ac_cv_c___va_copy="yes"
6402else
db946ede 6403 ac_cv_c___va_copy="no"
b3076f16 6404
6405fi
db946ede 6406rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
b3076f16 6408fi
db946ede 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6410$as_echo "$ac_cv_c___va_copy" >&6; }
b3076f16 6411if test "$ac_cv_c___va_copy" = "yes" ; then
6412
db946ede 6413$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
b3076f16 6414
6415fi
6416
6417CFLAGS=$OLD_CFLAGS
6418
db946ede 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which malloc to use" >&5
6420$as_echo_n "checking which malloc to use... " >&6; }
b3076f16 6421
a8b2ad8d 6422# Check whether --with-malloc was given.
db946ede 6423if test "${with_malloc+set}" = set; then :
a8b2ad8d 6424 withval=$with_malloc;
b3076f16 6425else
6426 withval="system"
a8b2ad8d 6427fi
6428
b3076f16 6429if test "x$withval" = "xsystem" ; then
db946ede 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
6431$as_echo "system" >&6; }
b3076f16 6432
db946ede 6433$as_echo "#define WITH_MALLOC_SYSTEM 1" >>confdefs.h
b3076f16 6434
5b1166fd 6435 x3_malloc="System"
b3076f16 6436elif test "x$withval" = "xdmalloc" ; then
db946ede 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dmalloc" >&5
6438$as_echo "dmalloc" >&6; }
6439 for ac_header in dmalloc.h
6440do :
6441 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
c6254516 6442if test "x$ac_cv_header_dmalloc_h" = xyes; then :
b3076f16 6443 cat >>confdefs.h <<_ACEOF
db946ede 6444#define HAVE_DMALLOC_H 1
b3076f16 6445_ACEOF
6446
6447else
c6254516 6448 as_fn_error $? "dmalloc header file missing. dmalloc build will fail." "$LINENO" 5
b3076f16 6449fi
6450
6451done
6452
db946ede 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
6454$as_echo_n "checking for malloc in -ldmalloc... " >&6; }
c6254516 6455if ${ac_cv_lib_dmalloc_malloc+:} false; then :
db946ede 6456 $as_echo_n "(cached) " >&6
b3076f16 6457else
6458 ac_check_lib_save_LIBS=$LIBS
6459LIBS="-ldmalloc $LIBS"
db946ede 6460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6461/* end confdefs.h. */
6462
a8b2ad8d 6463/* Override any GCC internal prototype to avoid an error.
6464 Use char because int might match the return type of a GCC
6465 builtin and then its argument prototype would still apply. */
b3076f16 6466#ifdef __cplusplus
6467extern "C"
6468#endif
b3076f16 6469char malloc ();
6470int
6471main ()
6472{
a8b2ad8d 6473return malloc ();
db946ede 6474 ;
6475 return 0;
6476}
6477_ACEOF
6478if ac_fn_c_try_link "$LINENO"; then :
6479 ac_cv_lib_dmalloc_malloc=yes
b3076f16 6480else
db946ede 6481 ac_cv_lib_dmalloc_malloc=no
b3076f16 6482fi
db946ede 6483rm -f core conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6485LIBS=$ac_check_lib_save_LIBS
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
6488$as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
c6254516 6489if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
db946ede 6490 cat >>confdefs.h <<_ACEOF
6491#define HAVE_LIBDMALLOC 1
6492_ACEOF
a8b2ad8d 6493
db946ede 6494 LIBS="-ldmalloc $LIBS"
b3076f16 6495
b3076f16 6496else
c6254516 6497 as_fn_error $? "dmalloc library is missing. dmalloc build will fail." "$LINENO" 5
b3076f16 6498fi
b3076f16 6499
db946ede 6500
6501$as_echo "#define WITH_MALLOC_DMALLOC 1" >>confdefs.h
6502
6503 x3_malloc="DMalloc"
6504elif test "x$withval" = "xmpatrol" ; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpatrol" >&5
6506$as_echo "mpatrol" >&6; }
6507 for ac_header in mpatrol.h
6508do :
6509 ac_fn_c_check_header_mongrel "$LINENO" "mpatrol.h" "ac_cv_header_mpatrol_h" "$ac_includes_default"
c6254516 6510if test "x$ac_cv_header_mpatrol_h" = xyes; then :
b3076f16 6511 cat >>confdefs.h <<_ACEOF
db946ede 6512#define HAVE_MPATROL_H 1
b3076f16 6513_ACEOF
6514
6515else
c6254516 6516 as_fn_error $? "mpatrol header file missing. mpatrol build will fail." "$LINENO" 5
b3076f16 6517fi
6518
6519done
6520
db946ede 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
6522$as_echo_n "checking for elf_begin in -lelf... " >&6; }
c6254516 6523if ${ac_cv_lib_elf_elf_begin+:} false; then :
db946ede 6524 $as_echo_n "(cached) " >&6
b3076f16 6525else
6526 ac_check_lib_save_LIBS=$LIBS
6527LIBS="-lelf $LIBS"
db946ede 6528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6529/* end confdefs.h. */
6530
a8b2ad8d 6531/* Override any GCC internal prototype to avoid an error.
6532 Use char because int might match the return type of a GCC
6533 builtin and then its argument prototype would still apply. */
b3076f16 6534#ifdef __cplusplus
6535extern "C"
6536#endif
b3076f16 6537char elf_begin ();
6538int
6539main ()
6540{
a8b2ad8d 6541return elf_begin ();
b3076f16 6542 ;
6543 return 0;
6544}
6545_ACEOF
db946ede 6546if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6547 ac_cv_lib_elf_elf_begin=yes
6548else
db946ede 6549 ac_cv_lib_elf_elf_begin=no
b3076f16 6550fi
db946ede 6551rm -f core conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
b3076f16 6553LIBS=$ac_check_lib_save_LIBS
6554fi
db946ede 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
6556$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
c6254516 6557if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
b3076f16 6558 cat >>confdefs.h <<_ACEOF
6559#define HAVE_LIBELF 1
6560_ACEOF
6561
6562 LIBS="-lelf $LIBS"
6563
6564fi
6565
db946ede 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __mp_atexit in -lmpatrol" >&5
6567$as_echo_n "checking for __mp_atexit in -lmpatrol... " >&6; }
c6254516 6568if ${ac_cv_lib_mpatrol___mp_atexit+:} false; then :
db946ede 6569 $as_echo_n "(cached) " >&6
b3076f16 6570else
6571 ac_check_lib_save_LIBS=$LIBS
6572LIBS="-lmpatrol $LIBS"
db946ede 6573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6574/* end confdefs.h. */
6575
a8b2ad8d 6576/* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
b3076f16 6579#ifdef __cplusplus
6580extern "C"
6581#endif
b3076f16 6582char __mp_atexit ();
6583int
6584main ()
6585{
a8b2ad8d 6586return __mp_atexit ();
b3076f16 6587 ;
6588 return 0;
6589}
6590_ACEOF
db946ede 6591if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6592 ac_cv_lib_mpatrol___mp_atexit=yes
6593else
db946ede 6594 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 6595fi
db946ede 6596rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
b3076f16 6598LIBS=$ac_check_lib_save_LIBS
6599fi
db946ede 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
6601$as_echo "$ac_cv_lib_mpatrol___mp_atexit" >&6; }
c6254516 6602if test "x$ac_cv_lib_mpatrol___mp_atexit" = xyes; then :
b3076f16 6603 cat >>confdefs.h <<_ACEOF
6604#define HAVE_LIBMPATROL 1
6605_ACEOF
6606
6607 LIBS="-lmpatrol $LIBS"
6608
6609else
c6254516 6610 as_fn_error $? "mpatrol library is missing completely. mpatrol build will fail." "$LINENO" 5
b3076f16 6611fi
6612
6613
db946ede 6614$as_echo "#define WITH_MALLOC_MPATROL 1" >>confdefs.h
b3076f16 6615
5b1166fd 6616 x3_malloc="MPatrol"
b3076f16 6617elif test "x$withval" = "xboehm-gc" ; then
db946ede 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm-gc" >&5
6619$as_echo "boehm-gc" >&6; }
6620 for ac_header in gc/gc.h
6621do :
6622 ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
c6254516 6623if test "x$ac_cv_header_gc_gc_h" = xyes; then :
b3076f16 6624 cat >>confdefs.h <<_ACEOF
db946ede 6625#define HAVE_GC_GC_H 1
b3076f16 6626_ACEOF
6627
6628else
c6254516 6629 as_fn_error $? "Boehm GC header file missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6630fi
6631
6632done
6633
db946ede 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6635$as_echo_n "checking for dlopen in -ldl... " >&6; }
c6254516 6636if ${ac_cv_lib_dl_dlopen+:} false; then :
db946ede 6637 $as_echo_n "(cached) " >&6
b3076f16 6638else
6639 ac_check_lib_save_LIBS=$LIBS
6640LIBS="-ldl $LIBS"
db946ede 6641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6642/* end confdefs.h. */
6643
a8b2ad8d 6644/* Override any GCC internal prototype to avoid an error.
6645 Use char because int might match the return type of a GCC
6646 builtin and then its argument prototype would still apply. */
b3076f16 6647#ifdef __cplusplus
6648extern "C"
6649#endif
b3076f16 6650char dlopen ();
6651int
6652main ()
6653{
a8b2ad8d 6654return dlopen ();
b3076f16 6655 ;
6656 return 0;
6657}
6658_ACEOF
db946ede 6659if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6660 ac_cv_lib_dl_dlopen=yes
6661else
db946ede 6662 ac_cv_lib_dl_dlopen=no
b3076f16 6663fi
db946ede 6664rm -f core conftest.err conftest.$ac_objext \
6665 conftest$ac_exeext conftest.$ac_ext
b3076f16 6666LIBS=$ac_check_lib_save_LIBS
6667fi
db946ede 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6669$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
c6254516 6670if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b3076f16 6671 cat >>confdefs.h <<_ACEOF
6672#define HAVE_LIBDL 1
6673_ACEOF
6674
6675 LIBS="-ldl $LIBS"
6676
6677else
c6254516 6678 as_fn_error $? "libdl library is missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6679fi
6680
db946ede 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_gcollect in -lgc" >&5
6682$as_echo_n "checking for GC_gcollect in -lgc... " >&6; }
c6254516 6683if ${ac_cv_lib_gc_GC_gcollect+:} false; then :
db946ede 6684 $as_echo_n "(cached) " >&6
b3076f16 6685else
6686 ac_check_lib_save_LIBS=$LIBS
6687LIBS="-lgc $LIBS"
db946ede 6688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6689/* end confdefs.h. */
6690
a8b2ad8d 6691/* Override any GCC internal prototype to avoid an error.
6692 Use char because int might match the return type of a GCC
6693 builtin and then its argument prototype would still apply. */
b3076f16 6694#ifdef __cplusplus
6695extern "C"
6696#endif
b3076f16 6697char GC_gcollect ();
6698int
6699main ()
6700{
a8b2ad8d 6701return GC_gcollect ();
b3076f16 6702 ;
6703 return 0;
6704}
6705_ACEOF
db946ede 6706if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6707 ac_cv_lib_gc_GC_gcollect=yes
6708else
db946ede 6709 ac_cv_lib_gc_GC_gcollect=no
b3076f16 6710fi
db946ede 6711rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext conftest.$ac_ext
b3076f16 6713LIBS=$ac_check_lib_save_LIBS
6714fi
db946ede 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_gcollect" >&5
6716$as_echo "$ac_cv_lib_gc_GC_gcollect" >&6; }
c6254516 6717if test "x$ac_cv_lib_gc_GC_gcollect" = xyes; then :
b3076f16 6718 cat >>confdefs.h <<_ACEOF
6719#define HAVE_LIBGC 1
6720_ACEOF
6721
6722 LIBS="-lgc $LIBS"
6723
6724else
c6254516 6725 as_fn_error $? "Boehm GC library is missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6726fi
6727
6728
db946ede 6729$as_echo "#define WITH_MALLOC_BOEHM_GC 1" >>confdefs.h
b3076f16 6730
5b1166fd 6731 x3_malloc="Boehm"
b8cb2a14 6732elif test "x$withval" = "xx3" ; then
db946ede 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x3" >&5
6734$as_echo "x3" >&6; }
ec1a68c8 6735
db946ede 6736$as_echo "#define WITH_MALLOC_X3 1" >>confdefs.h
ec1a68c8 6737
b8cb2a14 6738 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 6739 x3_malloc="X3"
ceafd592 6740elif test "x$withval" = "xslab" ; then
db946ede 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slab" >&5
6742$as_echo "slab" >&6; }
ceafd592 6743
db946ede 6744$as_echo "#define WITH_MALLOC_SLAB 1" >>confdefs.h
ceafd592 6745
6746 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 6747 x3_malloc="Slab"
b3076f16 6748else
c6254516 6749 as_fn_error $? "Unknown malloc type $withval" "$LINENO" 5
b3076f16 6750fi
6751
db946ede 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which protocol to use" >&5
6753$as_echo_n "checking which protocol to use... " >&6; }
b3076f16 6754
a8b2ad8d 6755# Check whether --with-protocol was given.
db946ede 6756if test "${with_protocol+set}" = set; then :
a8b2ad8d 6757 withval=$with_protocol;
b3076f16 6758else
6759 withval="p10"
a8b2ad8d 6760fi
6761
b3076f16 6762if test "x$withval" = "xp10" ; then
db946ede 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: P10" >&5
6764$as_echo "P10" >&6; }
b3076f16 6765
db946ede 6766$as_echo "#define WITH_PROTOCOL_P10 1" >>confdefs.h
b3076f16 6767
2f61d1d7 6768 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
0f6fe38c 6769 PROTO_FILES=proto-p10.c
5b1166fd 6770 x3_ircd="P10"
b3076f16 6771else
c6254516 6772 as_fn_error $? "Unknown IRC dialect $withval" "$LINENO" 5
b3076f16 6773fi
6774
db946ede 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to send mail" >&5
6776$as_echo_n "checking how to send mail... " >&6; }
1136f709 6777
6778# Check whether --with-mail was given.
db946ede 6779if test "${with_mail+set}" = set; then :
1136f709 6780 withval=$with_mail;
6781else
6782 withval="sendmail"
6783fi
6784
6785if test -r "${srcdir}/src/mail-${withval}.c" ; then
db946ede 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6787$as_echo "$withval" >&6; }
1136f709 6788 MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)"
6789else
c6254516 6790 as_fn_error $? "Unknown mail method $withval" "$LINENO" 5
1136f709 6791fi
6792
db946ede 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking I/O multiplexing backends" >&5
6794$as_echo_n "checking I/O multiplexing backends... " >&6; }
1136f709 6795IOMUXES=""
6796
6797if test "x$ac_cv_func_select" = xyes ; then
6798
db946ede 6799$as_echo "#define WITH_IOSET_SELECT 1" >>confdefs.h
1136f709 6800
6801 MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)"
6802 IOMUXES="$IOMUXES select"
6803fi
6804
6805
6806# Check whether --with-epoll was given.
db946ede 6807if test "${with_epoll+set}" = set; then :
1136f709 6808 withval=$with_epoll;
6809else
6810 withval="$ac_cv_func_epoll_create"
6811fi
6812
6813if test "x$withval" = xyes ; then
6814
db946ede 6815$as_echo "#define WITH_IOSET_EPOLL 1" >>confdefs.h
1136f709 6816
6817 MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)"
6818 IOMUXES="$IOMUXES epoll"
6819fi
6820
6821
6822# Check whether --with-kevent was given.
db946ede 6823if test "${with_kevent+set}" = set; then :
1136f709 6824 withval=$with_kevent;
6825else
6826 withval="$ac_cv_func_kevent"
6827fi
6828
6829if test "x$withval" = xyes ; then
6830
db946ede 6831$as_echo "#define WITH_IOSET_KEVENT 1" >>confdefs.h
1136f709 6832
6833 MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)"
6834 IOMUXES="$IOMUXES kevent"
6835fi
6836
6837IOMUXES=`echo $IOMUXES | sed 's/^ +//'`
db946ede 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6839$as_echo "$IOMUXES" >&6; }
1136f709 6840if test "x$IOMUXES" = "x" ; then
c6254516 6841 as_fn_error $? "No supported I/O multiplexing backend found" "$LINENO" 5
1136f709 6842else
db946ede 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6844$as_echo "$IOMUXES" >&6; }
1136f709 6845fi
6846
8da89711 6847
6848# Check whether --with-getopt was given.
db946ede 6849if test "${with_getopt+set}" = set; then :
8da89711 6850 withval=$with_getopt; if test "$withval" = no; then
6851
db946ede 6852$as_echo "#define IGNORE_GETOPT 1" >>confdefs.h
8da89711 6853
6854fi
6855fi
6856
6857
db946ede 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenization" >&5
6859$as_echo_n "checking whether to enable tokenization... " >&6; }
8da89711 6860# Check whether --enable-tokens was given.
db946ede 6861if test "${enable_tokens+set}" = set; then :
8da89711 6862 enableval=$enable_tokens;
6863else
6864 enableval=yes
6865fi
6866
6867if test "z$enableval" = zno ; then
db946ede 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
8da89711 6870else
6871
db946ede 6872$as_echo "#define ENABLE_TOKENS 1" >>confdefs.h
8da89711 6873
db946ede 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6875$as_echo "yes" >&6; }
8da89711 6876fi
6877
db946ede 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug behaviors" >&5
6879$as_echo_n "checking whether to enable debug behaviors... " >&6; }
8da89711 6880# Check whether --enable-debug was given.
db946ede 6881if test "${enable_debug+set}" = set; then :
8da89711 6882 enableval=$enable_debug;
6883 CPPFLAGS="$CPPFLAGS"
db946ede 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6885$as_echo "yes" >&6; }
8da89711 6886 x3_debug="Enabled"
e166c31b 6887
6888else
6889
8da89711 6890 CPPFLAGS="$CPPFLAGS -DNDEBUG"
db946ede 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
8da89711 6893 x3_debug="Disabled"
e166c31b 6894
6895fi
6896
6897
8da89711 6898if test -e src ; then
6899 if test ! -d src ; then
c6254516 6900 as_fn_error $? "src exists but is not a directory; please move it out of the way." "$LINENO" 5
8da89711 6901 fi
6902else
6903 mkdir src
6904fi
db946ede 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra module files" >&5
6906$as_echo_n "checking for extra module files... " >&6; }
8da89711 6907MODULE_DEFINES="src/modules-list.h"
6908echo > $MODULE_DEFINES
6909touch $MODULE_DEFINES
6910# Check whether --enable-modules was given.
db946ede 6911if test "${enable_modules+set}" = set; then :
8da89711 6912 enableval=$enable_modules;
6913 OIFS="$IFS"
6914 IFS=','
6915 EXTRA_MODULE_OBJS=""
6916 module_list=""
6917 for module in $enableval ; do
6918 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
6919 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
6920 module_list="$module_list $module"
6921 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
6922 if test "x$module" = "xtrack" ; then
6923 TRACK="-D HAVE_TRACK"
e166c31b 6924
db946ede 6925$as_echo "#define HAVE_TRACK 1" >>confdefs.h
e166c31b 6926
8da89711 6927 fi
6928 if test "x$module" = "xhelpserv" ; then
6929 TRACK="-D HAVE_HELPSERV"
e166c31b 6930
db946ede 6931$as_echo "#define HAVE_HELPSERV 1" >>confdefs.h
e166c31b 6932
8da89711 6933 fi
6934 done
6935 IFS="$OIFS"
6936 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
db946ede 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $module_list" >&5
6938$as_echo "$module_list" >&6; }
8da89711 6939
e166c31b 6940else
e166c31b 6941
db946ede 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6943$as_echo "none" >&6; }
e166c31b 6944
e166c31b 6945fi
e166c31b 6946
e166c31b 6947
2f65da8f 6948# Check whether --enable-python was given.
db946ede 6949if test "${enable_python+set}" = set; then :
2f65da8f 6950 enableval=$enable_python; python=$enableval
6951else
6952 python=yes
6953fi
6954
6955
6956
8da89711 6957MY_SUBDIRS=""
6958RX_INCLUDES=""
6959RX_LIBS=""
6960if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
6961 MY_SUBDIRS="rx $MY_SUBDIRS"
6962 RX_INCLUDES="-I../rx"
6963 RX_LIBS="../rx/librx.a"
6964fi
6965MY_SUBDIRS="$MY_SUBDIRS src"
6966CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
6967if test "z$USE_MAINTAINER_MODE" = zyes ; then
0f6fe38c 6968 CFLAGS="$CFLAGS -Werror"
e166c31b 6969fi
6970
6971
8da89711 6972tre_version="0.7.5"
6973withval=''
6974
6975# Check whether --with-tre was given.
db946ede 6976if test "${with_tre+set}" = set; then :
8da89711 6977 withval=$with_tre;
6978fi
6979
6980if test "x$withval" != "x"; then
db946ede 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libtre" >&5
6982$as_echo "Using include dir $withval to find libtre" >&6; }
39edf54a 6983 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 6984 LIBS="$LIBS -L$withval/lib"
6985else
db946ede 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for tre in system and home dirs (${HOME})..." >&5
6987$as_echo "Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 6988 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 6989 LIBS="$LIBS -L${HOME}/lib"
6990fi
db946ede 6991ac_fn_c_check_header_mongrel "$LINENO" "tre/regex.h" "ac_cv_header_tre_regex_h" "$ac_includes_default"
c6254516 6992if test "x$ac_cv_header_tre_regex_h" = xyes; then :
e166c31b 6993
e166c31b 6994else
c6254516 6995 as_fn_error $? "tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5
e166c31b 6996fi
6997
e166c31b 6998
db946ede 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -ltre" >&5
7000$as_echo_n "checking for regexec in -ltre... " >&6; }
c6254516 7001if ${ac_cv_lib_tre_regexec+:} false; then :
db946ede 7002 $as_echo_n "(cached) " >&6
b3076f16 7003else
8da89711 7004 ac_check_lib_save_LIBS=$LIBS
7005LIBS="-ltre $LIBS"
db946ede 7006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8da89711 7007/* end confdefs.h. */
b3076f16 7008
8da89711 7009/* Override any GCC internal prototype to avoid an error.
7010 Use char because int might match the return type of a GCC
7011 builtin and then its argument prototype would still apply. */
7012#ifdef __cplusplus
7013extern "C"
7014#endif
7015char regexec ();
7016int
7017main ()
7018{
7019return regexec ();
7020 ;
7021 return 0;
7022}
7023_ACEOF
db946ede 7024if ac_fn_c_try_link "$LINENO"; then :
8da89711 7025 ac_cv_lib_tre_regexec=yes
b3076f16 7026else
db946ede 7027 ac_cv_lib_tre_regexec=no
a8b2ad8d 7028fi
db946ede 7029rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
8da89711 7031LIBS=$ac_check_lib_save_LIBS
b3076f16 7032fi
db946ede 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_regexec" >&5
7034$as_echo "$ac_cv_lib_tre_regexec" >&6; }
c6254516 7035if test "x$ac_cv_lib_tre_regexec" = xyes; then :
8da89711 7036 cat >>confdefs.h <<_ACEOF
7037#define HAVE_LIBTRE 1
8de34abd 7038_ACEOF
7039
db946ede 7040 LIBS="-ltre $LIBS"
35305a49 7041
db946ede 7042else
c6254516 7043 as_fn_error $? "TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5
35305a49 7044fi
a8b2ad8d 7045
35305a49 7046
db946ede 7047core_version="1.1"
7048withval=''
35305a49 7049
db946ede 7050# Check whether --with-coredumper was given.
7051if test "${with_coredumper+set}" = set; then :
7052 withval=$with_coredumper;
35305a49 7053fi
a8b2ad8d 7054
db946ede 7055if test "x$withval" != "x"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find coredumper" >&5
7057$as_echo "Using include dir $withval to find coredumper" >&6; }
7058 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7059 LIBS="$LIBS -L$withval/lib"
35305a49 7060else
db946ede 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
7062$as_echo "Looking for coredumper in system and home dirs (${HOME})..." >&6; }
7063 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
7064 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
8da89711 7065fi
db946ede 7066ac_fn_c_check_header_mongrel "$LINENO" "google/coredumper.h" "ac_cv_header_google_coredumper_h" "$ac_includes_default"
c6254516 7067if test "x$ac_cv_header_google_coredumper_h" = xyes; then :
8da89711 7068
8da89711 7069else
db946ede 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
7071$as_echo "google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
8da89711 7072fi
7073
7074
db946ede 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WriteCoreDump in -lcoredumper" >&5
7076$as_echo_n "checking for WriteCoreDump in -lcoredumper... " >&6; }
c6254516 7077if ${ac_cv_lib_coredumper_WriteCoreDump+:} false; then :
db946ede 7078 $as_echo_n "(cached) " >&6
8da89711 7079else
7080 ac_check_lib_save_LIBS=$LIBS
7081LIBS="-lcoredumper $LIBS"
db946ede 7082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8da89711 7083/* end confdefs.h. */
7084
7085/* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7088#ifdef __cplusplus
7089extern "C"
7090#endif
7091char WriteCoreDump ();
7092int
7093main ()
7094{
7095return WriteCoreDump ();
7096 ;
7097 return 0;
7098}
7099_ACEOF
db946ede 7100if ac_fn_c_try_link "$LINENO"; then :
8da89711 7101 ac_cv_lib_coredumper_WriteCoreDump=yes
7102else
db946ede 7103 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 7104fi
db946ede 7105rm -f core conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
8da89711 7107LIBS=$ac_check_lib_save_LIBS
35305a49 7108fi
db946ede 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
7110$as_echo "$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
c6254516 7111if test "x$ac_cv_lib_coredumper_WriteCoreDump" = xyes; then :
8da89711 7112 cat >>confdefs.h <<_ACEOF
7113#define HAVE_LIBCOREDUMPER 1
7114_ACEOF
7115
7116 LIBS="-lcoredumper $LIBS"
7117
35305a49 7118else
db946ede 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
7120$as_echo "Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 7121fi
7122
7123
73d4cc91 7124withval=''
7125
7126# Check whether --with-ssl was given.
db946ede 7127if test "${with_ssl+set}" = set; then :
73d4cc91 7128 withval=$with_ssl;
7129fi
7130
7131if test "x$withval" != "x"; then
db946ede 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find openssl" >&5
7133$as_echo "Using include dir $withval to find openssl" >&6; }
73d4cc91 7134 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7135 LIBS="$LIBS -L$withval/lib"
7136else
db946ede 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for openssl in system " >&5
7138$as_echo "Looking for openssl in system " >&6; }
73d4cc91 7139fi
7140
db946ede 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_new in -lssl" >&5
7142$as_echo_n "checking for BIO_new in -lssl... " >&6; }
c6254516 7143if ${ac_cv_lib_ssl_BIO_new+:} false; then :
db946ede 7144 $as_echo_n "(cached) " >&6
73d4cc91 7145else
7146 ac_check_lib_save_LIBS=$LIBS
7147LIBS="-lssl $LIBS"
db946ede 7148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73d4cc91 7149/* end confdefs.h. */
7150
7151/* Override any GCC internal prototype to avoid an error.
7152 Use char because int might match the return type of a GCC
7153 builtin and then its argument prototype would still apply. */
7154#ifdef __cplusplus
7155extern "C"
7156#endif
7157char BIO_new ();
7158int
7159main ()
7160{
7161return BIO_new ();
7162 ;
7163 return 0;
7164}
7165_ACEOF
db946ede 7166if ac_fn_c_try_link "$LINENO"; then :
73d4cc91 7167 ac_cv_lib_ssl_BIO_new=yes
7168else
db946ede 7169 ac_cv_lib_ssl_BIO_new=no
73d4cc91 7170fi
db946ede 7171rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
73d4cc91 7173LIBS=$ac_check_lib_save_LIBS
7174fi
db946ede 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_new" >&5
7176$as_echo "$ac_cv_lib_ssl_BIO_new" >&6; }
c6254516 7177if test "x$ac_cv_lib_ssl_BIO_new" = xyes; then :
73d4cc91 7178
7179LIBS="-lssl $LIBS"
73d4cc91 7180for ac_header in openssl/bio.h
db946ede 7181do :
7182 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
c6254516 7183if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
73d4cc91 7184 cat >>confdefs.h <<_ACEOF
db946ede 7185#define HAVE_OPENSSL_BIO_H 1
73d4cc91 7186_ACEOF
7187
7188
db946ede 7189$as_echo "#define WITH_SSL 1" >>confdefs.h
73d4cc91 7190
7191ssl_message="LDAP library: enabled"
7192
7193else
7194
7195if test "x$withval" != "x"; then
c6254516 7196 as_fn_error $? "ssl headers not found" "$LINENO" 5
73d4cc91 7197fi
7198
7199fi
7200
7201done
7202
7203
7204else
7205
7206if test "x$withval" != "x"; then
c6254516 7207 as_fn_error $? "libldap not found or not valid" "$LINENO" 5
73d4cc91 7208fi
7209
7210
7211fi
7212
db946ede 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7214$as_echo "$LIBS" >&6; }
73d4cc91 7215
7216
8da89711 7217withval=''
35305a49 7218
8da89711 7219# Check whether --with-ldap was given.
db946ede 7220if test "${with_ldap+set}" = set; then :
8da89711 7221 withval=$with_ldap;
7222fi
7223
7224if test "x$withval" != "x"; then
db946ede 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libldap" >&5
7226$as_echo "Using include dir $withval to find libldap" >&6; }
8da89711 7227 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7228 LIBS="$LIBS -L$withval/lib"
7229else
db946ede 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for ldap in system " >&5
7231$as_echo "Looking for ldap in system " >&6; }
8da89711 7232fi
7233
db946ede 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5
7235$as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
c6254516 7236if ${ac_cv_lib_ldap_ldap_simple_bind_s+:} false; then :
db946ede 7237 $as_echo_n "(cached) " >&6
35305a49 7238else
7239 ac_check_lib_save_LIBS=$LIBS
8da89711 7240LIBS="-lldap $LIBS"
db946ede 7241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35305a49 7242/* end confdefs.h. */
7243
a8b2ad8d 7244/* Override any GCC internal prototype to avoid an error.
7245 Use char because int might match the return type of a GCC
7246 builtin and then its argument prototype would still apply. */
35305a49 7247#ifdef __cplusplus
7248extern "C"
7249#endif
39edf54a 7250char ldap_simple_bind_s ();
35305a49 7251int
7252main ()
7253{
39edf54a 7254return ldap_simple_bind_s ();
35305a49 7255 ;
7256 return 0;
7257}
7258_ACEOF
db946ede 7259if ac_fn_c_try_link "$LINENO"; then :
39edf54a 7260 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 7261else
db946ede 7262 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 7263fi
db946ede 7264rm -f core conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
35305a49 7266LIBS=$ac_check_lib_save_LIBS
5b1166fd 7267fi
db946ede 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
7269$as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
c6254516 7270if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = xyes; then :
b3076f16 7271
39edf54a 7272LIBS="-lldap $LIBS"
8da89711 7273for ac_header in ldap.h
db946ede 7274do :
7275 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
c6254516 7276if test "x$ac_cv_header_ldap_h" = xyes; then :
8da89711 7277 cat >>confdefs.h <<_ACEOF
db946ede 7278#define HAVE_LDAP_H 1
8da89711 7279_ACEOF
a8b2ad8d 7280
7281
db946ede 7282$as_echo "#define WITH_LDAP 1" >>confdefs.h
a8b2ad8d 7283
8da89711 7284ldap_message="LDAP library: enabled"
7285
a8b2ad8d 7286else
a8b2ad8d 7287
db9a9a8a 7288if test "x$withval" != "x"; then
c6254516 7289 as_fn_error $? "ldap.h not found" "$LINENO" 5
a8b2ad8d 7290fi
7291
a8b2ad8d 7292fi
a8b2ad8d 7293
8da89711 7294done
7295
a8b2ad8d 7296
7297else
8da89711 7298
db9a9a8a 7299if test "x$withval" != "x"; then
c6254516 7300 as_fn_error $? "libldap not found or not valid" "$LINENO" 5
8da89711 7301fi
7302
7303
a8b2ad8d 7304fi
7305
2f65da8f 7306
7307
7308if test "$python" = yes; then
7309 # Extract the first word of "python2", so it can be a program name with args.
7310set dummy python2; ac_word=$2
db946ede 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
c6254516 7313if ${ac_cv_path_pythonpath+:} false; then :
db946ede 7314 $as_echo_n "(cached) " >&6
2f65da8f 7315else
7316 case $pythonpath in
7317 [\\/]* | ?:[\\/]*)
7318 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
7319 ;;
7320 *)
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
db946ede 7326 for ac_exec_ext in '' $ac_executable_extensions; do
2f65da8f 7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
db946ede 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f65da8f 7330 break 2
7331 fi
7332done
db946ede 7333 done
2f65da8f 7334IFS=$as_save_IFS
7335
7336 ;;
7337esac
7338fi
7339pythonpath=$ac_cv_path_pythonpath
7340if test -n "$pythonpath"; then
db946ede 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7342$as_echo "$pythonpath" >&6; }
2f65da8f 7343else
db946ede 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
2f65da8f 7346fi
7347
7348
7349 if test "_$pythonpath" = _ ; then
7350 # Extract the first word of "python", so it can be a program name with args.
7351set dummy python; ac_word=$2
db946ede 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
c6254516 7354if ${ac_cv_path_pythonpath+:} false; then :
db946ede 7355 $as_echo_n "(cached) " >&6
2f65da8f 7356else
7357 case $pythonpath in
7358 [\\/]* | ?:[\\/]*)
7359 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
7360 ;;
7361 *)
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
db946ede 7367 for ac_exec_ext in '' $ac_executable_extensions; do
2f65da8f 7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
db946ede 7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f65da8f 7371 break 2
7372 fi
7373done
db946ede 7374 done
2f65da8f 7375IFS=$as_save_IFS
7376
7377 ;;
7378esac
7379fi
7380pythonpath=$ac_cv_path_pythonpath
7381if test -n "$pythonpath"; then
db946ede 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7383$as_echo "$pythonpath" >&6; }
2f65da8f 7384else
db946ede 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
2f65da8f 7387fi
7388
7389
7390 fi
7391 if test "_$pythonpath" = _ ; then
7392 python=no
7393 else
db946ede 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7395$as_echo_n "checking Python version... " >&6; }
2f65da8f 7396 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
7397 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
7398 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
7399 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
db946ede 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VER" >&5
7401$as_echo "$PY_VER" >&6; }
2f65da8f 7402 if test "$?" != "1"; then
db946ede 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python compile flags" >&5
7404$as_echo_n "checking Python compile flags... " >&6; }
2f65da8f 7405 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
7406 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
7407 if test -f $PY_INC/Python.h; then
7408
db946ede 7409$as_echo "#define WITH_PYTHON 1" >>confdefs.h
2f65da8f 7410
7411 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
7412 PY_CFLAGS="-I$PY_INC"
db946ede 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7414$as_echo "ok" >&6; }
cbfd323c 7415 CFLAGS="$CFLAGS $PY_CFLAGS"
7416 LIBS="$LIBS $PY_LIBS"
2f65da8f 7417 else
7418 python=no
db946ede 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find Python.h" >&5
7420$as_echo "Can't find Python.h" >&6; }
2f65da8f 7421 fi
7422 else
7423 echo "Python too old. Only 2.2 or above is supported."
7424 python=no
7425 fi
7426 fi
7427fi
7428
7429 if test "x$python" = "xyes"; then
7430 DO_PYTHON_TRUE=
7431 DO_PYTHON_FALSE='#'
7432else
7433 DO_PYTHON_TRUE='#'
7434 DO_PYTHON_FALSE=
7435fi
7436
7437
db946ede 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7439$as_echo "$LIBS" >&6; }
a8b2ad8d 7440
7441
7442cat >>confdefs.h <<_ACEOF
7443#define CODENAME "${CODENAME}"
7444_ACEOF
7445
7446
7447
7448
7449
7450
2f65da8f 7451
7452
7453
a8b2ad8d 7454ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
7455
7456cat >confcache <<\_ACEOF
7457# This file is a shell script that caches the results of configure
7458# tests run on this system so they can be shared between configure
7459# scripts and configure runs, see configure's option --config-cache.
7460# It is not useful on other systems. If it contains results you don't
7461# want to keep, you may remove or edit it.
7462#
b3076f16 7463# config.status only pays attention to the cache file if you give it
7464# the --recheck option to rerun configure.
7465#
7466# `ac_cv_env_foo' variables (set or unset) will be overridden when
7467# loading this file, other *unset* `ac_cv_foo' will be assigned the
7468# following values.
7469
7470_ACEOF
7471
7472# The following way of writing the cache mishandles newlines in values,
7473# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 7474# So, we kill variables containing newlines.
b3076f16 7475# Ultrix sh set writes to stderr and can't be redirected directly,
7476# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 7477(
7478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7479 eval ac_val=\$$ac_var
7480 case $ac_val in #(
7481 *${as_nl}*)
7482 case $ac_var in #(
db946ede 7483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7484$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
a8b2ad8d 7485 esac
7486 case $ac_var in #(
7487 _ | IFS | as_nl) ;; #(
db946ede 7488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7489 *) { eval $ac_var=; unset $ac_var;} ;;
a8b2ad8d 7490 esac ;;
7491 esac
7492 done
7493
b3076f16 7494 (set) 2>&1 |
a8b2ad8d 7495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7496 *${as_nl}ac_space=\ *)
db946ede 7497 # `set' does not quote correctly, so add quotes: double-quote
7498 # substitution turns \\\\ into \\, and sed turns \\ into \.
b3076f16 7499 sed -n \
7500 "s/'/'\\\\''/g;
7501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 7502 ;; #(
b3076f16 7503 *)
7504 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 7505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 7506 ;;
a8b2ad8d 7507 esac |
7508 sort
7509) |
b3076f16 7510 sed '
a8b2ad8d 7511 /^ac_cv_env_/b end
b3076f16 7512 t clear
a8b2ad8d 7513 :clear
b3076f16 7514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7515 t end
a8b2ad8d 7516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7517 :end' >>confcache
7518if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7519 if test -w "$cache_file"; then
c6254516 7520 if test "x$cache_file" != "x/dev/null"; then
db946ede 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7522$as_echo "$as_me: updating cache $cache_file" >&6;}
c6254516
R
7523 if test ! -f "$cache_file" || test -h "$cache_file"; then
7524 cat confcache >"$cache_file"
7525 else
7526 case $cache_file in #(
7527 */* | ?:*)
7528 mv -f confcache "$cache_file"$$ &&
7529 mv -f "$cache_file"$$ "$cache_file" ;; #(
7530 *)
7531 mv -f confcache "$cache_file" ;;
7532 esac
7533 fi
7534 fi
b3076f16 7535 else
db946ede 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7537$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 7538 fi
7539fi
7540rm -f confcache
7541
7542test "x$prefix" = xNONE && prefix=$ac_default_prefix
7543# Let make expand exec_prefix.
7544test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7545
b3076f16 7546DEFS=-DHAVE_CONFIG_H
7547
7548ac_libobjs=
7549ac_ltlibobjs=
c6254516 7550U=
b3076f16 7551for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7552 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 7553 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
db946ede 7554 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
a8b2ad8d 7555 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7556 # will be set to the directory where LIBOBJS objects are built.
db946ede 7557 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7558 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 7559done
7560LIBOBJS=$ac_libobjs
7561
7562LTLIBOBJS=$ac_ltlibobjs
7563
7564
db946ede 7565 if test -n "$EXEEXT"; then
7566 am__EXEEXT_TRUE=
7567 am__EXEEXT_FALSE='#'
7568else
7569 am__EXEEXT_TRUE='#'
7570 am__EXEEXT_FALSE=
7571fi
7572
ec1a68c8 7573if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
c6254516 7574 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
db946ede 7575Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7576fi
7577if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
c6254516 7578 as_fn_error $? "conditional \"AMDEP\" was never defined.
db946ede 7579Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7580fi
7581if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
c6254516 7582 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
db946ede 7583Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7584fi
7585if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
c6254516 7586 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
db946ede 7587Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7588fi
2f65da8f 7589if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
c6254516 7590 as_fn_error $? "conditional \"DO_PYTHON\" was never defined.
db946ede 7591Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f65da8f 7592fi
b3076f16 7593
c6254516 7594: "${CONFIG_STATUS=./config.status}"
db946ede 7595ac_write_fail=0
b3076f16 7596ac_clean_files_save=$ac_clean_files
7597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
db946ede 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7599$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7600as_write_fail=0
7601cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b3076f16 7602#! $SHELL
7603# Generated by $as_me.
7604# Run this file to recreate the current configuration.
7605# Compiler output produced by configure, useful for debugging
7606# configure, is in config.log if it exists.
7607
7608debug=false
7609ac_cs_recheck=false
7610ac_cs_silent=false
b3076f16 7611
db946ede 7612SHELL=\${CONFIG_SHELL-$SHELL}
7613export SHELL
7614_ASEOF
7615cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7616## -------------------- ##
7617## M4sh Initialization. ##
7618## -------------------- ##
b3076f16 7619
0bd0bef6 7620# Be more Bourne compatible
7621DUALCASE=1; export DUALCASE # for MKS sh
db946ede 7622if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b3076f16 7623 emulate sh
7624 NULLCMD=:
db946ede 7625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b3076f16 7626 # is contrary to our usage. Disable this feature.
7627 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 7628 setopt NO_GLOB_SUBST
7629else
db946ede 7630 case `(set -o) 2>/dev/null` in #(
7631 *posix*) :
7632 set -o posix ;; #(
7633 *) :
7634 ;;
0bd0bef6 7635esac
b3076f16 7636fi
0bd0bef6 7637
7638
db946ede 7639as_nl='
7640'
7641export as_nl
7642# Printing a long string crashes Solaris 7 /usr/bin/printf.
7643as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7644as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7645as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7646# Prefer a ksh shell builtin over an external printf program on Solaris,
7647# but without wasting forks for bash or zsh.
7648if test -z "$BASH_VERSION$ZSH_VERSION" \
7649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7650 as_echo='print -r --'
7651 as_echo_n='print -rn --'
7652elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7653 as_echo='printf %s\n'
7654 as_echo_n='printf %s'
7655else
7656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7658 as_echo_n='/usr/ucb/echo -n'
a8b2ad8d 7659 else
db946ede 7660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7661 as_echo_n_body='eval
7662 arg=$1;
7663 case $arg in #(
7664 *"$as_nl"*)
7665 expr "X$arg" : "X\\(.*\\)$as_nl";
7666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7667 esac;
7668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7669 '
7670 export as_echo_n_body
7671 as_echo_n='sh -c $as_echo_n_body as_echo'
a8b2ad8d 7672 fi
db946ede 7673 export as_echo_body
7674 as_echo='sh -c $as_echo_body as_echo'
a8b2ad8d 7675fi
7676
db946ede 7677# The user is always right.
7678if test "${PATH_SEPARATOR+set}" != set; then
7679 PATH_SEPARATOR=:
7680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7682 PATH_SEPARATOR=';'
7683 }
b3076f16 7684fi
7685
7686
a8b2ad8d 7687# IFS
7688# We need space, tab and new line, in precisely that order. Quoting is
7689# there to prevent editors from complaining about space-tab.
7690# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7691# splitting by setting IFS to empty value.)
a8b2ad8d 7692IFS=" "" $as_nl"
7693
7694# Find who we are. Look in the path if we contain no directory separator.
c6254516 7695as_myself=
db946ede 7696case $0 in #((
a8b2ad8d 7697 *[\\/]* ) as_myself=$0 ;;
7698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
db946ede 7703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7704 done
a8b2ad8d 7705IFS=$as_save_IFS
7706
7707 ;;
7708esac
7709# We did not find ourselves, most probably we were run as `sh COMMAND'
7710# in which case we are not to be found in the path.
7711if test "x$as_myself" = x; then
7712 as_myself=$0
7713fi
7714if test ! -f "$as_myself"; then
db946ede 7715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7716 exit 1
a8b2ad8d 7717fi
7718
db946ede 7719# Unset variables that we do not need and which cause bugs (e.g. in
7720# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7721# suppresses any "Segmentation fault" message there. '((' could
7722# trigger a bug in pdksh 5.2.14.
7723for as_var in BASH_ENV ENV MAIL MAILPATH
7724do eval test x\${$as_var+set} = xset \
7725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8b2ad8d 7726done
b3076f16 7727PS1='$ '
7728PS2='> '
7729PS4='+ '
7730
7731# NLS nuisances.
db946ede 7732LC_ALL=C
7733export LC_ALL
7734LANGUAGE=C
7735export LANGUAGE
7736
7737# CDPATH.
7738(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7739
7740
c6254516
R
7741# as_fn_error STATUS ERROR [LINENO LOG_FD]
7742# ----------------------------------------
db946ede 7743# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7744# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
c6254516 7745# script with STATUS, using 1 if that was 0.
db946ede 7746as_fn_error ()
7747{
c6254516
R
7748 as_status=$1; test $as_status -eq 0 && as_status=1
7749 if test "$4"; then
7750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b3076f16 7752 fi
c6254516 7753 $as_echo "$as_me: error: $2" >&2
db946ede 7754 as_fn_exit $as_status
7755} # as_fn_error
7756
7757
7758# as_fn_set_status STATUS
7759# -----------------------
7760# Set $? to STATUS, without forking.
7761as_fn_set_status ()
7762{
7763 return $1
7764} # as_fn_set_status
7765
7766# as_fn_exit STATUS
7767# -----------------
7768# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7769as_fn_exit ()
7770{
7771 set +e
7772 as_fn_set_status $1
7773 exit $1
7774} # as_fn_exit
7775
7776# as_fn_unset VAR
7777# ---------------
7778# Portably unset VAR.
7779as_fn_unset ()
7780{
7781 { eval $1=; unset $1;}
7782}
7783as_unset=as_fn_unset
7784# as_fn_append VAR VALUE
7785# ----------------------
7786# Append the text in VALUE to the end of the definition contained in VAR. Take
7787# advantage of any shell optimizations that allow amortized linear growth over
7788# repeated appends, instead of the typical quadratic growth present in naive
7789# implementations.
7790if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7791 eval 'as_fn_append ()
7792 {
7793 eval $1+=\$2
7794 }'
7795else
7796 as_fn_append ()
7797 {
7798 eval $1=\$$1\$2
7799 }
7800fi # as_fn_append
7801
7802# as_fn_arith ARG...
7803# ------------------
7804# Perform arithmetic evaluation on the ARGs, and store the result in the
7805# global $as_val. Take advantage of shells that can avoid forks. The arguments
7806# must be portable across $(()) and expr.
7807if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7808 eval 'as_fn_arith ()
7809 {
7810 as_val=$(( $* ))
7811 }'
7812else
7813 as_fn_arith ()
7814 {
7815 as_val=`expr "$@" || test $? -eq 1`
7816 }
7817fi # as_fn_arith
7818
b3076f16 7819
a8b2ad8d 7820if expr a : '\(a\)' >/dev/null 2>&1 &&
7821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 7822 as_expr=expr
7823else
7824 as_expr=false
7825fi
7826
a8b2ad8d 7827if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 7828 as_basename=basename
7829else
7830 as_basename=false
7831fi
7832
db946ede 7833if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7834 as_dirname=dirname
7835else
7836 as_dirname=false
7837fi
b3076f16 7838
a8b2ad8d 7839as_me=`$as_basename -- "$0" ||
b3076f16 7840$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7841 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 7842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 7843$as_echo X/"$0" |
a8b2ad8d 7844 sed '/^.*\/\([^/][^/]*\)\/*$/{
7845 s//\1/
7846 q
7847 }
7848 /^X\/\(\/\/\)$/{
7849 s//\1/
7850 q
7851 }
7852 /^X\/\(\/\).*/{
7853 s//\1/
7854 q
7855 }
7856 s/.*/./; q'`
b3076f16 7857
db946ede 7858# Avoid depending upon Character Ranges.
7859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7862as_cr_digits='0123456789'
7863as_cr_alnum=$as_cr_Letters$as_cr_digits
a8b2ad8d 7864
7865ECHO_C= ECHO_N= ECHO_T=
db946ede 7866case `echo -n x` in #(((((
a8b2ad8d 7867-n*)
db946ede 7868 case `echo 'xy\c'` in
a8b2ad8d 7869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
db946ede 7870 xy) ECHO_C='\c';;
7871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7872 ECHO_T=' ';;
a8b2ad8d 7873 esac;;
7874*)
7875 ECHO_N='-n';;
b3076f16 7876esac
7877
b3076f16 7878rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 7879if test -d conf$$.dir; then
7880 rm -f conf$$.dir/conf$$.file
7881else
7882 rm -f conf$$.dir
db946ede 7883 mkdir conf$$.dir 2>/dev/null
7884fi
7885if (echo >conf$$.file) 2>/dev/null; then
7886 if ln -s conf$$.file conf$$ 2>/dev/null; then
7887 as_ln_s='ln -s'
7888 # ... but there are two gotchas:
7889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7891 # In both cases, we have to default to `cp -p'.
7892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7893 as_ln_s='cp -p'
7894 elif ln conf$$.file conf$$ 2>/dev/null; then
7895 as_ln_s=ln
7896 else
b3076f16 7897 as_ln_s='cp -p'
db946ede 7898 fi
b3076f16 7899else
7900 as_ln_s='cp -p'
7901fi
a8b2ad8d 7902rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7903rmdir conf$$.dir 2>/dev/null
b3076f16 7904
db946ede 7905
7906# as_fn_mkdir_p
7907# -------------
7908# Create "$as_dir" as a directory, including parents if necessary.
7909as_fn_mkdir_p ()
7910{
7911
7912 case $as_dir in #(
7913 -*) as_dir=./$as_dir;;
7914 esac
7915 test -d "$as_dir" || eval $as_mkdir_p || {
7916 as_dirs=
7917 while :; do
7918 case $as_dir in #(
7919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7920 *) as_qdir=$as_dir;;
7921 esac
7922 as_dirs="'$as_qdir' $as_dirs"
7923 as_dir=`$as_dirname -- "$as_dir" ||
7924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7925 X"$as_dir" : 'X\(//\)[^/]' \| \
7926 X"$as_dir" : 'X\(//\)$' \| \
7927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7928$as_echo X"$as_dir" |
7929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7930 s//\1/
7931 q
7932 }
7933 /^X\(\/\/\)[^/].*/{
7934 s//\1/
7935 q
7936 }
7937 /^X\(\/\/\)$/{
7938 s//\1/
7939 q
7940 }
7941 /^X\(\/\).*/{
7942 s//\1/
7943 q
7944 }
7945 s/.*/./; q'`
7946 test -d "$as_dir" && break
7947 done
7948 test -z "$as_dirs" || eval "mkdir $as_dirs"
c6254516 7949 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
db946ede 7950
7951
7952} # as_fn_mkdir_p
b3076f16 7953if mkdir -p . 2>/dev/null; then
db946ede 7954 as_mkdir_p='mkdir -p "$as_dir"'
b3076f16 7955else
7956 test -d ./-p && rmdir ./-p
7957 as_mkdir_p=false
7958fi
7959
0bd0bef6 7960if test -x / >/dev/null 2>&1; then
7961 as_test_x='test -x'
a8b2ad8d 7962else
0bd0bef6 7963 if ls -dL / >/dev/null 2>&1; then
7964 as_ls_L_option=L
7965 else
7966 as_ls_L_option=
7967 fi
7968 as_test_x='
7969 eval sh -c '\''
7970 if test -d "$1"; then
db946ede 7971 test -d "$1/.";
0bd0bef6 7972 else
db946ede 7973 case $1 in #(
7974 -*)set "./$1";;
0bd0bef6 7975 esac;
db946ede 7976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
0bd0bef6 7977 ???[sx]*):;;*)false;;esac;fi
7978 '\'' sh
7979 '
a8b2ad8d 7980fi
0bd0bef6 7981as_executable_p=$as_test_x
b3076f16 7982
7983# Sed expression to map a string onto a valid CPP name.
7984as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7985
7986# Sed expression to map a string onto a valid variable name.
7987as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7988
7989
b3076f16 7990exec 6>&1
db946ede 7991## ----------------------------------- ##
7992## Main body of $CONFIG_STATUS script. ##
7993## ----------------------------------- ##
7994_ASEOF
7995test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b3076f16 7996
db946ede 7997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7998# Save the log message, to keep $0 and so on meaningful, and to
b3076f16 7999# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 8000# values after options handling.
8001ac_log="
0230185b 8002This file was extended by X3 $as_me 1.9, which was
c6254516 8003generated by GNU Autoconf 2.68. Invocation command line was
b3076f16 8004
8005 CONFIG_FILES = $CONFIG_FILES
8006 CONFIG_HEADERS = $CONFIG_HEADERS
8007 CONFIG_LINKS = $CONFIG_LINKS
8008 CONFIG_COMMANDS = $CONFIG_COMMANDS
8009 $ $0 $@
8010
a8b2ad8d 8011on `(hostname || uname -n) 2>/dev/null | sed 1q`
8012"
8013
b3076f16 8014_ACEOF
8015
db946ede 8016case $ac_config_files in *"
8017"*) set x $ac_config_files; shift; ac_config_files=$*;;
8018esac
8019
8020case $ac_config_headers in *"
8021"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8022esac
8023
8024
8025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b3076f16 8026# Files that config.status was made for.
a8b2ad8d 8027config_files="$ac_config_files"
8028config_headers="$ac_config_headers"
8029config_commands="$ac_config_commands"
b3076f16 8030
a8b2ad8d 8031_ACEOF
b3076f16 8032
db946ede 8033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b3076f16 8034ac_cs_usage="\
db946ede 8035\`$as_me' instantiates files and other configuration actions
8036from templates according to the current configuration. Unless the files
8037and actions are specified as TAGs, all are instantiated by default.
b3076f16 8038
db946ede 8039Usage: $0 [OPTION]... [TAG]...
b3076f16 8040
8041 -h, --help print this help, then exit
0bd0bef6 8042 -V, --version print version number and configuration settings, then exit
c6254516 8043 --config print configuration, then exit
db946ede 8044 -q, --quiet, --silent
8045 do not print progress messages
b3076f16 8046 -d, --debug don't remove temporary files
8047 --recheck update $as_me by reconfiguring in the same conditions
db946ede 8048 --file=FILE[:TEMPLATE]
8049 instantiate the configuration file FILE
8050 --header=FILE[:TEMPLATE]
8051 instantiate the configuration header FILE
b3076f16 8052
8053Configuration files:
8054$config_files
8055
8056Configuration headers:
8057$config_headers
8058
ec1a68c8 8059Configuration commands:
8060$config_commands
8061
db946ede 8062Report bugs to <evilnet-devel@lists.sourceforge.net>."
b3076f16 8063
a8b2ad8d 8064_ACEOF
db946ede 8065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6254516 8066ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b3076f16 8067ac_cs_version="\\
0230185b 8068X3 config.status 1.9
c6254516
R
8069configured by $0, generated by GNU Autoconf 2.68,
8070 with options \\"\$ac_cs_config\\"
b3076f16 8071
c6254516 8072Copyright (C) 2010 Free Software Foundation, Inc.
b3076f16 8073This config.status script is free software; the Free Software Foundation
8074gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 8075
8076ac_pwd='$ac_pwd'
8077srcdir='$srcdir'
8078INSTALL='$INSTALL'
2f65da8f 8079MKDIR_P='$MKDIR_P'
db946ede 8080AWK='$AWK'
8081test -n "\$AWK" || AWK=awk
b3076f16 8082_ACEOF
8083
db946ede 8084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8085# The default lists apply if the user does not specify any file.
b3076f16 8086ac_need_defaults=:
8087while test $# != 0
8088do
8089 case $1 in
c6254516 8090 --*=?*)
a8b2ad8d 8091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8092 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 8093 ac_shift=:
8094 ;;
c6254516
R
8095 --*=)
8096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8097 ac_optarg=
8098 ac_shift=:
8099 ;;
a8b2ad8d 8100 *)
b3076f16 8101 ac_option=$1
8102 ac_optarg=$2
8103 ac_shift=shift
8104 ;;
b3076f16 8105 esac
8106
8107 case $ac_option in
8108 # Handling of the options.
b3076f16 8109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8110 ac_cs_recheck=: ;;
a8b2ad8d 8111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
db946ede 8112 $as_echo "$ac_cs_version"; exit ;;
c6254516
R
8113 --config | --confi | --conf | --con | --co | --c )
8114 $as_echo "$ac_cs_config"; exit ;;
a8b2ad8d 8115 --debug | --debu | --deb | --de | --d | -d )
b3076f16 8116 debug=: ;;
8117 --file | --fil | --fi | --f )
8118 $ac_shift
db946ede 8119 case $ac_optarg in
8120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6254516 8121 '') as_fn_error $? "missing file argument" ;;
db946ede 8122 esac
8123 as_fn_append CONFIG_FILES " '$ac_optarg'"
b3076f16 8124 ac_need_defaults=false;;
8125 --header | --heade | --head | --hea )
8126 $ac_shift
db946ede 8127 case $ac_optarg in
8128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8129 esac
8130 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b3076f16 8131 ac_need_defaults=false;;
a8b2ad8d 8132 --he | --h)
8133 # Conflict between --help and --header
c6254516 8134 as_fn_error $? "ambiguous option: \`$1'
db946ede 8135Try \`$0 --help' for more information.";;
a8b2ad8d 8136 --help | --hel | -h )
db946ede 8137 $as_echo "$ac_cs_usage"; exit ;;
b3076f16 8138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8139 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8140 ac_cs_silent=: ;;
8141
8142 # This is an error.
c6254516 8143 -*) as_fn_error $? "unrecognized option: \`$1'
db946ede 8144Try \`$0 --help' for more information." ;;
b3076f16 8145
db946ede 8146 *) as_fn_append ac_config_targets " $1"
a8b2ad8d 8147 ac_need_defaults=false ;;
b3076f16 8148
8149 esac
8150 shift
8151done
8152
8153ac_configure_extra_args=
8154
8155if $ac_cs_silent; then
8156 exec 6>/dev/null
8157 ac_configure_extra_args="$ac_configure_extra_args --silent"
8158fi
8159
8160_ACEOF
db946ede 8161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b3076f16 8162if \$ac_cs_recheck; then
db946ede 8163 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8164 shift
8165 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8166 CONFIG_SHELL='$SHELL'
a8b2ad8d 8167 export CONFIG_SHELL
db946ede 8168 exec "\$@"
b3076f16 8169fi
8170
8171_ACEOF
db946ede 8172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8173exec 5>>config.log
8174{
8175 echo
8176 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8177## Running $as_me. ##
8178_ASBOX
db946ede 8179 $as_echo "$ac_log"
a8b2ad8d 8180} >&5
b3076f16 8181
a8b2ad8d 8182_ACEOF
db946ede 8183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ec1a68c8 8184#
a8b2ad8d 8185# INIT-COMMANDS
ec1a68c8 8186#
ec1a68c8 8187AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8188
8189_ACEOF
b3076f16 8190
db946ede 8191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8192
8193# Handling of arguments.
b3076f16 8194for ac_config_target in $ac_config_targets
8195do
a8b2ad8d 8196 case $ac_config_target in
8197 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8200 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
8201 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8202
c6254516 8203 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b3076f16 8204 esac
8205done
8206
a8b2ad8d 8207
b3076f16 8208# If the user did not use the arguments to specify the items to instantiate,
8209# then the envvar interface is used. Set only those that are not.
8210# We use the long form for the default assignment because of an extremely
8211# bizarre bug on SunOS 4.1.3.
8212if $ac_need_defaults; then
8213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 8215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 8216fi
8217
8218# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 8219# simply because there is no reason against having it here, and in addition,
b3076f16 8220# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 8221# Hook for its removal unless debugging.
8222# Note that there is a small window in which the directory will not be cleaned:
8223# after its creation but before its name has been assigned to `$tmp'.
b3076f16 8224$debug ||
8225{
c6254516 8226 tmp= ac_tmp=
a8b2ad8d 8227 trap 'exit_status=$?
c6254516
R
8228 : "${ac_tmp:=$tmp}"
8229 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
a8b2ad8d 8230' 0
db946ede 8231 trap 'as_fn_exit 1' 1 2 13 15
b3076f16 8232}
b3076f16 8233# Create a (secure) tmp directory for tmp files.
8234
8235{
a8b2ad8d 8236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6254516 8237 test -d "$tmp"
b3076f16 8238} ||
8239{
a8b2ad8d 8240 tmp=./conf$$-$RANDOM
8241 (umask 077 && mkdir "$tmp")
c6254516
R
8242} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8243ac_tmp=$tmp
b3076f16 8244
db946ede 8245# Set up the scripts for CONFIG_FILES section.
8246# No need to generate them if there are no CONFIG_FILES.
8247# This happens for instance with `./config.status config.h'.
a8b2ad8d 8248if test -n "$CONFIG_FILES"; then
8249
a8b2ad8d 8250
db946ede 8251ac_cr=`echo X | tr X '\015'`
8252# On cygwin, bash can eat \r inside `` if the user requested igncr.
8253# But we know of no other shell where ac_cr would be empty at this
8254# point, so we can use a bashism as a fallback.
8255if test "x$ac_cr" = x; then
8256 eval ac_cr=\$\'\\r\'
8257fi
8258ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8259if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
c6254516 8260 ac_cs_awk_cr='\\r'
db946ede 8261else
8262 ac_cs_awk_cr=$ac_cr
a8b2ad8d 8263fi
8264
c6254516 8265echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a8b2ad8d 8266_ACEOF
8267
8268
db946ede 8269{
8270 echo "cat >conf$$subs.awk <<_ACEOF" &&
8271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8272 echo "_ACEOF"
8273} >conf$$subs.sh ||
c6254516
R
8274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8275ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
a8b2ad8d 8276ac_delim='%!_!# '
8277for ac_last_try in false false false false false :; do
db946ede 8278 . ./conf$$subs.sh ||
c6254516 8279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
a8b2ad8d 8280
db946ede 8281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8282 if test $ac_delim_n = $ac_delim_num; then
a8b2ad8d 8283 break
8284 elif $ac_last_try; then
c6254516 8285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
a8b2ad8d 8286 else
8287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8288 fi
8289done
db946ede 8290rm -f conf$$subs.sh
8291
8292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6254516 8293cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
db946ede 8294_ACEOF
8295sed -n '
8296h
8297s/^/S["/; s/!.*/"]=/
8298p
8299g
8300s/^[^!]*!//
8301:repl
8302t repl
8303s/'"$ac_delim"'$//
8304t delim
8305:nl
8306h
c6254516 8307s/\(.\{148\}\)..*/\1/
db946ede 8308t more1
8309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8310p
8311n
8312b repl
8313:more1
8314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8315p
8316g
8317s/.\{148\}//
8318t nl
8319:delim
8320h
c6254516 8321s/\(.\{148\}\)..*/\1/
db946ede 8322t more2
8323s/["\\]/\\&/g; s/^/"/; s/$/"/
8324p
8325b
8326:more2
8327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8328p
8329g
8330s/.\{148\}//
8331t delim
8332' <conf$$subs.awk | sed '
8333/^[^""]/{
8334 N
8335 s/\n//
8336}
8337' >>$CONFIG_STATUS || ac_write_fail=1
8338rm -f conf$$subs.awk
8339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8340_ACAWK
c6254516 8341cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
db946ede 8342 for (key in S) S_is_set[key] = 1
8343 FS = "\a"
a8b2ad8d 8344
db946ede 8345}
8346{
8347 line = $ 0
8348 nfields = split(line, field, "@")
8349 substed = 0
8350 len = length(field[1])
8351 for (i = 2; i < nfields; i++) {
8352 key = field[i]
8353 keylen = length(key)
8354 if (S_is_set[key]) {
8355 value = S[key]
8356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8357 len += length(value) + length(field[++i])
8358 substed = 1
8359 } else
8360 len += 1 + keylen
8361 }
a8b2ad8d 8362
db946ede 8363 print line
8364}
8365
8366_ACAWK
a8b2ad8d 8367_ACEOF
db946ede 8368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8371else
8372 cat
c6254516
R
8373fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8374 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
a8b2ad8d 8375_ACEOF
8376
c6254516
R
8377# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8378# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
a8b2ad8d 8379# trailing colons and then remove the whole line if VPATH becomes empty
8380# (actually we leave an empty line to preserve line numbers).
8381if test "x$srcdir" = x.; then
c6254516
R
8382 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8383h
8384s///
8385s/^/:/
8386s/[ ]*$/:/
8387s/:\$(srcdir):/:/g
8388s/:\${srcdir}:/:/g
8389s/:@srcdir@:/:/g
8390s/^:*//
a8b2ad8d 8391s/:*$//
c6254516
R
8392x
8393s/\(=[ ]*\).*/\1/
8394G
8395s/\n//
a8b2ad8d 8396s/^[^=]*=[ ]*$//
8397}'
8398fi
8399
db946ede 8400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8401fi # test -n "$CONFIG_FILES"
8402
db946ede 8403# Set up the scripts for CONFIG_HEADERS section.
8404# No need to generate them if there are no CONFIG_HEADERS.
8405# This happens for instance with `./config.status Makefile'.
8406if test -n "$CONFIG_HEADERS"; then
c6254516 8407cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
db946ede 8408BEGIN {
8409_ACEOF
8410
8411# Transform confdefs.h into an awk script `defines.awk', embedded as
8412# here-document in config.status, that substitutes the proper values into
8413# config.h.in to produce config.h.
8414
8415# Create a delimiter string that does not exist in confdefs.h, to ease
8416# handling of long lines.
8417ac_delim='%!_!# '
8418for ac_last_try in false false :; do
c6254516
R
8419 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8420 if test -z "$ac_tt"; then
db946ede 8421 break
8422 elif $ac_last_try; then
c6254516 8423 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
db946ede 8424 else
8425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8426 fi
8427done
8428
8429# For the awk script, D is an array of macro values keyed by name,
8430# likewise P contains macro parameters if any. Preserve backslash
8431# newline sequences.
8432
8433ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8434sed -n '
8435s/.\{148\}/&'"$ac_delim"'/g
8436t rset
8437:rset
8438s/^[ ]*#[ ]*define[ ][ ]*/ /
8439t def
8440d
8441:def
8442s/\\$//
8443t bsnl
8444s/["\\]/\\&/g
8445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8446D["\1"]=" \3"/p
8447s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8448d
8449:bsnl
8450s/["\\]/\\&/g
8451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8452D["\1"]=" \3\\\\\\n"\\/p
8453t cont
8454s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8455t cont
8456d
8457:cont
8458n
8459s/.\{148\}/&'"$ac_delim"'/g
8460t clear
8461:clear
8462s/\\$//
8463t bsnlc
8464s/["\\]/\\&/g; s/^/"/; s/$/"/p
8465d
8466:bsnlc
8467s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8468b cont
8469' <confdefs.h | sed '
8470s/'"$ac_delim"'/"\\\
8471"/g' >>$CONFIG_STATUS || ac_write_fail=1
8472
8473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8474 for (key in D) D_is_set[key] = 1
8475 FS = "\a"
8476}
8477/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8478 line = \$ 0
8479 split(line, arg, " ")
8480 if (arg[1] == "#") {
8481 defundef = arg[2]
8482 mac1 = arg[3]
8483 } else {
8484 defundef = substr(arg[1], 2)
8485 mac1 = arg[2]
8486 }
8487 split(mac1, mac2, "(") #)
8488 macro = mac2[1]
8489 prefix = substr(line, 1, index(line, defundef) - 1)
8490 if (D_is_set[macro]) {
8491 # Preserve the white space surrounding the "#".
8492 print prefix "define", macro P[macro] D[macro]
8493 next
8494 } else {
8495 # Replace #undef with comments. This is necessary, for example,
8496 # in the case of _POSIX_SOURCE, which is predefined and required
8497 # on some systems where configure will not decide to define it.
8498 if (defundef == "undef") {
8499 print "/*", prefix defundef, macro, "*/"
8500 next
8501 }
8502 }
8503}
8504{ print }
8505_ACAWK
8506_ACEOF
8507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6254516 8508 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
db946ede 8509fi # test -n "$CONFIG_HEADERS"
8510
a8b2ad8d 8511
db946ede 8512eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8513shift
8514for ac_tag
a8b2ad8d 8515do
8516 case $ac_tag in
8517 :[FHLC]) ac_mode=$ac_tag; continue;;
8518 esac
8519 case $ac_mode$ac_tag in
8520 :[FHL]*:*);;
c6254516 8521 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
a8b2ad8d 8522 :[FH]-) ac_tag=-:-;;
8523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8524 esac
8525 ac_save_IFS=$IFS
8526 IFS=:
8527 set x $ac_tag
8528 IFS=$ac_save_IFS
8529 shift
8530 ac_file=$1
8531 shift
8532
8533 case $ac_mode in
8534 :L) ac_source=$1;;
8535 :[FH])
8536 ac_file_inputs=
8537 for ac_f
8538 do
8539 case $ac_f in
c6254516 8540 -) ac_f="$ac_tmp/stdin";;
a8b2ad8d 8541 *) # Look for the file first in the build tree, then in the source tree
8542 # (if the path is not absolute). The absolute path cannot be DOS-style,
8543 # because $ac_f cannot contain `:'.
8544 test -f "$ac_f" ||
8545 case $ac_f in
8546 [\\/$]*) false;;
8547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8548 esac ||
c6254516 8549 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
a8b2ad8d 8550 esac
db946ede 8551 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8552 as_fn_append ac_file_inputs " '$ac_f'"
a8b2ad8d 8553 done
8554
8555 # Let's still pretend it is `configure' which instantiates (i.e., don't
8556 # use $as_me), people would be surprised to read:
8557 # /* config.h. Generated by config.status. */
db946ede 8558 configure_input='Generated from '`
8559 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8560 `' by configure.'
a8b2ad8d 8561 if test x"$ac_file" != x-; then
8562 configure_input="$ac_file. $configure_input"
db946ede 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8564$as_echo "$as_me: creating $ac_file" >&6;}
a8b2ad8d 8565 fi
db946ede 8566 # Neutralize special characters interpreted by sed in replacement strings.
8567 case $configure_input in #(
8568 *\&* | *\|* | *\\* )
8569 ac_sed_conf_input=`$as_echo "$configure_input" |
8570 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8571 *) ac_sed_conf_input=$configure_input;;
8572 esac
a8b2ad8d 8573
8574 case $ac_tag in
c6254516
R
8575 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
a8b2ad8d 8577 esac
8578 ;;
b3076f16 8579 esac
8580
a8b2ad8d 8581 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 8582$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8583 X"$ac_file" : 'X\(//\)[^/]' \| \
8584 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 8585 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8586$as_echo X"$ac_file" |
a8b2ad8d 8587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8588 s//\1/
8589 q
8590 }
8591 /^X\(\/\/\)[^/].*/{
8592 s//\1/
8593 q
8594 }
8595 /^X\(\/\/\)$/{
8596 s//\1/
8597 q
8598 }
8599 /^X\(\/\).*/{
8600 s//\1/
8601 q
8602 }
8603 s/.*/./; q'`
db946ede 8604 as_dir="$ac_dir"; as_fn_mkdir_p
b3076f16 8605 ac_builddir=.
8606
a8b2ad8d 8607case "$ac_dir" in
8608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8609*)
db946ede 8610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
a8b2ad8d 8611 # A ".." for each directory in $ac_dir_suffix.
db946ede 8612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
a8b2ad8d 8613 case $ac_top_builddir_sub in
8614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8616 esac ;;
8617esac
8618ac_abs_top_builddir=$ac_pwd
8619ac_abs_builddir=$ac_pwd$ac_dir_suffix
8620# for backward compatibility:
8621ac_top_builddir=$ac_top_build_prefix
b3076f16 8622
8623case $srcdir in
a8b2ad8d 8624 .) # We are building in place.
b3076f16 8625 ac_srcdir=.
a8b2ad8d 8626 ac_top_srcdir=$ac_top_builddir_sub
8627 ac_abs_top_srcdir=$ac_pwd ;;
8628 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 8629 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 8630 ac_top_srcdir=$srcdir
8631 ac_abs_top_srcdir=$srcdir ;;
8632 *) # Relative name.
8633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8634 ac_top_srcdir=$ac_top_build_prefix$srcdir
8635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 8636esac
a8b2ad8d 8637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 8638
b3076f16 8639
a8b2ad8d 8640 case $ac_mode in
8641 :F)
8642 #
8643 # CONFIG_FILE
8644 #
b3076f16 8645
8646 case $INSTALL in
8647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 8648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 8649 esac
2f65da8f 8650 ac_MKDIR_P=$MKDIR_P
8651 case $MKDIR_P in
8652 [\\/$]* | ?:[\\/]* ) ;;
8653 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8654 esac
a8b2ad8d 8655_ACEOF
b3076f16 8656
db946ede 8657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8658# If the template does not know about datarootdir, expand it.
8659# FIXME: This hack should be removed a few years after 2.60.
8660ac_datarootdir_hack=; ac_datarootdir_seen=
db946ede 8661ac_sed_dataroot='
8662/datarootdir/ {
a8b2ad8d 8663 p
8664 q
8665}
8666/@datadir@/p
8667/@docdir@/p
8668/@infodir@/p
8669/@localedir@/p
db946ede 8670/@mandir@/p'
8671case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
a8b2ad8d 8672*datarootdir*) ac_datarootdir_seen=yes;;
8673*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
db946ede 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8675$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
a8b2ad8d 8676_ACEOF
db946ede 8677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8b2ad8d 8678 ac_datarootdir_hack='
8679 s&@datadir@&$datadir&g
8680 s&@docdir@&$docdir&g
8681 s&@infodir@&$infodir&g
8682 s&@localedir@&$localedir&g
8683 s&@mandir@&$mandir&g
db946ede 8684 s&\\\${datarootdir}&$datarootdir&g' ;;
a8b2ad8d 8685esac
b3076f16 8686_ACEOF
a8b2ad8d 8687
8688# Neutralize VPATH when `$srcdir' = `.'.
8689# Shell code in configure.ac might set extrasub.
8690# FIXME: do we really want to maintain this feature?
db946ede 8691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8692ac_sed_extra="$ac_vpsub
b3076f16 8693$extrasub
8694_ACEOF
db946ede 8695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b3076f16 8696:t
8697/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
db946ede 8698s|@configure_input@|$ac_sed_conf_input|;t t
a8b2ad8d 8699s&@top_builddir@&$ac_top_builddir_sub&;t t
db946ede 8700s&@top_build_prefix@&$ac_top_build_prefix&;t t
a8b2ad8d 8701s&@srcdir@&$ac_srcdir&;t t
8702s&@abs_srcdir@&$ac_abs_srcdir&;t t
8703s&@top_srcdir@&$ac_top_srcdir&;t t
8704s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8705s&@builddir@&$ac_builddir&;t t
8706s&@abs_builddir@&$ac_abs_builddir&;t t
8707s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8708s&@INSTALL@&$ac_INSTALL&;t t
2f65da8f 8709s&@MKDIR_P@&$ac_MKDIR_P&;t t
a8b2ad8d 8710$ac_datarootdir_hack
db946ede 8711"
c6254516
R
8712eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
a8b2ad8d 8714
8715test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
c6254516
R
8716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8718 "$ac_tmp/out"`; test -z "$ac_out"; } &&
db946ede 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
c6254516 8720which seems to be undefined. Please make sure it is defined" >&5
db946ede 8721$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
c6254516 8722which seems to be undefined. Please make sure it is defined" >&2;}
a8b2ad8d 8723
c6254516 8724 rm -f "$ac_tmp/stdin"
b3076f16 8725 case $ac_file in
c6254516
R
8726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
db946ede 8728 esac \
c6254516 8729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
a8b2ad8d 8730 ;;
8731 :H)
8732 #
8733 # CONFIG_HEADER
8734 #
b3076f16 8735 if test x"$ac_file" != x-; then
db946ede 8736 {
8737 $as_echo "/* $configure_input */" \
c6254516
R
8738 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8739 } >"$ac_tmp/config.h" \
8740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8741 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
db946ede 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8743$as_echo "$as_me: $ac_file is unchanged" >&6;}
b3076f16 8744 else
db946ede 8745 rm -f "$ac_file"
c6254516
R
8746 mv "$ac_tmp/config.h" "$ac_file" \
8747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b3076f16 8748 fi
8749 else
db946ede 8750 $as_echo "/* $configure_input */" \
c6254516
R
8751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8752 || as_fn_error $? "could not create -" "$LINENO" 5
b3076f16 8753 fi
db946ede 8754# Compute "$ac_file"'s index in $config_headers.
8755_am_arg="$ac_file"
ec1a68c8 8756_am_stamp_count=1
8757for _am_header in $config_headers :; do
8758 case $_am_header in
cbfd323c 8759 $_am_arg | $_am_arg:* )
ec1a68c8 8760 break ;;
8761 * )
8762 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8763 esac
8764done
cbfd323c 8765echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8766$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8767 X"$_am_arg" : 'X\(//\)[^/]' \| \
8768 X"$_am_arg" : 'X\(//\)$' \| \
8769 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8770$as_echo X"$_am_arg" |
a8b2ad8d 8771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8772 s//\1/
8773 q
8774 }
8775 /^X\(\/\/\)[^/].*/{
8776 s//\1/
8777 q
8778 }
8779 /^X\(\/\/\)$/{
8780 s//\1/
8781 q
8782 }
8783 /^X\(\/\).*/{
8784 s//\1/
8785 q
8786 }
8787 s/.*/./; q'`/stamp-h$_am_stamp_count
8788 ;;
ec1a68c8 8789
db946ede 8790 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8791$as_echo "$as_me: executing $ac_file commands" >&6;}
a8b2ad8d 8792 ;;
8793 esac
ec1a68c8 8794
8795
a8b2ad8d 8796 case $ac_file$ac_mode in
db946ede 8797 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8798 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8799 # are listed without --file. Let's play safe and only enable the eval
8800 # if we detect the quoting.
8801 case $CONFIG_FILES in
8802 *\'*) eval set x "$CONFIG_FILES" ;;
8803 *) set x $CONFIG_FILES ;;
8804 esac
8805 shift
8806 for mf
8807 do
8808 # Strip MF so we end up with the name of the file.
8809 mf=`echo "$mf" | sed -e 's/:.*$//'`
8810 # Check whether this is an Automake generated Makefile or not.
8811 # We used to match only the files named `Makefile.in', but
8812 # some people rename them; so instead we look at the file content.
8813 # Grep'ing the first line is not enough: some people post-process
8814 # each Makefile.in and add a new line on top of each file to say so.
8815 # Grep'ing the whole file is not good either: AIX grep has a line
8816 # limit of 2048, but all sed's we know have understand at least 4000.
8817 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8818 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 8819$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8820 X"$mf" : 'X\(//\)[^/]' \| \
8821 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 8822 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8823$as_echo X"$mf" |
a8b2ad8d 8824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8825 s//\1/
8826 q
8827 }
8828 /^X\(\/\/\)[^/].*/{
8829 s//\1/
8830 q
8831 }
8832 /^X\(\/\/\)$/{
8833 s//\1/
8834 q
8835 }
8836 /^X\(\/\).*/{
8837 s//\1/
8838 q
8839 }
8840 s/.*/./; q'`
db946ede 8841 else
8842 continue
8843 fi
8844 # Extract the definition of DEPDIR, am__include, and am__quote
8845 # from the Makefile without running `make'.
8846 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8847 test -z "$DEPDIR" && continue
8848 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8849 test -z "am__include" && continue
8850 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8851 # When using ansi2knr, U may be empty or an underscore; expand it
8852 U=`sed -n 's/^U = //p' < "$mf"`
8853 # Find all dependency output files, they are included files with
8854 # $(DEPDIR) in their names. We invoke sed twice because it is the
8855 # simplest approach to changing $(DEPDIR) to its actual value in the
8856 # expansion.
8857 for file in `sed -n "
8858 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8859 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8860 # Make sure the directory exists.
8861 test -f "$dirpart/$file" && continue
8862 fdir=`$as_dirname -- "$file" ||
ec1a68c8 8863$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8864 X"$file" : 'X\(//\)[^/]' \| \
8865 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 8866 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8867$as_echo X"$file" |
a8b2ad8d 8868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8869 s//\1/
8870 q
8871 }
8872 /^X\(\/\/\)[^/].*/{
8873 s//\1/
8874 q
8875 }
8876 /^X\(\/\/\)$/{
8877 s//\1/
8878 q
8879 }
8880 /^X\(\/\).*/{
8881 s//\1/
8882 q
8883 }
8884 s/.*/./; q'`
db946ede 8885 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8886 # echo "creating $dirpart/$file"
8887 echo '# dummy' > "$dirpart/$file"
ec1a68c8 8888 done
ec1a68c8 8889 done
db946ede 8890}
ec1a68c8 8891 ;;
a8b2ad8d 8892
ec1a68c8 8893 esac
a8b2ad8d 8894done # for ac_tag
b3076f16 8895
b3076f16 8896
db946ede 8897as_fn_exit 0
b3076f16 8898_ACEOF
b3076f16 8899ac_clean_files=$ac_clean_files_save
8900
db946ede 8901test $ac_write_fail = 0 ||
c6254516 8902 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
db946ede 8903
b3076f16 8904
8905# configure is writing to config.log, and then calls config.status.
8906# config.status does its own redirection, appending to config.log.
8907# Unfortunately, on DOS this fails, as config.log is still kept open
8908# by configure, so config.status won't be able to write to it; its
8909# output is simply discarded. So we exec the FD to /dev/null,
8910# effectively closing config.log, so it can be properly (re)opened and
8911# appended to by config.status. When coming back to configure, we
8912# need to make the FD available again.
8913if test "$no_create" != yes; then
8914 ac_cs_success=:
8915 ac_config_status_args=
8916 test "$silent" = yes &&
8917 ac_config_status_args="$ac_config_status_args --quiet"
8918 exec 5>/dev/null
8919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8920 exec 5>>config.log
8921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8922 # would make configure fail if this is the last instruction.
c6254516 8923 $ac_cs_success || as_fn_exit 1
db946ede 8924fi
8925if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8927$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b3076f16 8928fi
8929
5b1166fd 8930
8931
8932
8933cat <<EOF
8934
8935Configuration summary
8936=====================
8937
8938X3 is now configured as follows:
8939
8940* Compilation environment
8941
8942 CC = $CC
8943 CFLAGS = $CFLAGS
8944 CPP = $CPP
8945 CPPFLAGS = $CPPFLAGS
8946 LD = $LD
8947 LDFLAGS = $LDFLAGS
8948 LIBS = $LIBS
8949
8950* X3 options
8951
a8b2ad8d 8952 Debug: $x3_debug
8953 Extra Modules: $module_list
8954 Malloc: $x3_malloc
8955 Protocol: $x3_ircd
8956 Regexp Library TRE $tre_version
8957 Coredumper Library Coredumper $core_version
8da89711 8958 $ldap_message
2f65da8f 8959 python: $python
5b1166fd 8960
a8b2ad8d 8961 Install to: $prefix
35305a49 8962
5b1166fd 8963Now you can proceed with compiling X3
8964
8965EOF
8966