]> jfr.im git - irc/unrealircd/unrealircd.git/blame - configure
Fix rare crash if deleting spamfilter by id that isn't a spamfilter.
[irc/unrealircd/unrealircd.git] / configure
CommitLineData
f40ec73c 1#! /bin/sh
f40ec73c 2# Guess values for system-dependent variables and create Makefiles.
57a008b8 3# Generated by GNU Autoconf 2.69 for unrealircd 4.0.19-rc2.
2828e7f8 4#
5# Report bugs to <http://bugs.unrealircd.org/>.
c0790e90 6#
94c2b583 7#
f1c5f885 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
94c2b583 9#
10#
f40ec73c 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
94c2b583 13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
f69335e6 16
cadd4230
BM
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
94c2b583 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
f69335e6 20 emulate sh
21 NULLCMD=:
94c2b583 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
545d087a
BM
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
cadd4230
BM
25 setopt NO_GLOB_SUBST
26else
94c2b583 27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cadd4230 32esac
cadd4230
BM
33fi
34
35
94c2b583 36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
cadd4230 56 else
94c2b583 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
cadd4230 69 fi
94c2b583 70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
f69335e6 72fi
73
94c2b583 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
f69335e6 81fi
82
545d087a 83
cadd4230
BM
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
cadd4230
BM
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
0ff0b04a 92as_myself=
94c2b583 93case $0 in #((
cadd4230
BM
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
94c2b583 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cadd4230
BM
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
94c2b583 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
cadd4230
BM
114fi
115
94c2b583 116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cadd4230 123done
545d087a
BM
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
94c2b583 129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
f1c5f885
BM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
94c2b583 162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
f1c5f885
BM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
94c2b583 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4eff1e84 213do
94c2b583 214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
f1c5f885
BM
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
94c2b583 260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
4eff1e84 268 else
94c2b583 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: http://bugs.unrealircd.org/ about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
4eff1e84 274 fi
94c2b583 275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
0ff0b04a 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
94c2b583 359
360
361} # as_fn_mkdir_p
f1c5f885
BM
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
94c2b583 370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
0ff0b04a
NPB
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
94c2b583 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
0ff0b04a 410# script with STATUS, using 1 if that was 0.
94c2b583 411as_fn_error ()
412{
0ff0b04a
NPB
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
94c2b583 417 fi
0ff0b04a 418 $as_echo "$as_me: error: $2" >&2
94c2b583 419 as_fn_exit $as_status
420} # as_fn_error
4eff1e84 421
cadd4230
BM
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
545d087a
BM
424 as_expr=expr
425else
426 as_expr=false
427fi
428
cadd4230 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
545d087a
BM
430 as_basename=basename
431else
432 as_basename=false
433fi
f69335e6 434
94c2b583 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
f69335e6 440
cadd4230 441as_me=`$as_basename -- "$0" ||
f69335e6 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
cadd4230 444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
94c2b583 445$as_echo X/"$0" |
cadd4230
BM
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
f69335e6 459
94c2b583 460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
545d087a 466
f69335e6 467
94c2b583 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
f69335e6 490
f1c5f885
BM
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
94c2b583 495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
cadd4230 501}
f69335e6 502
94c2b583 503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
85904c22 515
94c2b583 516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
4eff1e84 519else
94c2b583 520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f1c5f885 529 # In both cases, we have to default to `cp -pR'.
94c2b583 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f1c5f885 531 as_ln_s='cp -pR'
94c2b583 532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
f1c5f885 535 as_ln_s='cp -pR'
94c2b583 536 fi
cadd4230 537else
f1c5f885 538 as_ln_s='cp -pR'
cadd4230 539fi
94c2b583 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
cadd4230 542
94c2b583 543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
85904c22 545else
94c2b583 546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
cadd4230 549
f1c5f885
BM
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
f69335e6 552
94c2b583 553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
85904c22 555
94c2b583 556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
85904c22 558
85904c22 559
94c2b583 560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
85904c22
BM
562
563# Name of the host.
0ff0b04a 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
85904c22
BM
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
f69335e6 577MFLAGS=
578MAKEFLAGS=
f69335e6 579
f69335e6 580# Identity of this package.
2828e7f8 581PACKAGE_NAME='unrealircd'
582PACKAGE_TARNAME='unrealircd'
57a008b8
BM
583PACKAGE_VERSION='4.0.19-rc2'
584PACKAGE_STRING='unrealircd 4.0.19-rc2'
2828e7f8 585PACKAGE_BUGREPORT='http://bugs.unrealircd.org/'
94c2b583 586PACKAGE_URL='http://unrealircd.org/'
f69335e6 587
588ac_unique_file="src/ircd.c"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
cadd4230 592#ifdef HAVE_SYS_TYPES_H
f69335e6 593# include <sys/types.h>
594#endif
cadd4230 595#ifdef HAVE_SYS_STAT_H
f69335e6 596# include <sys/stat.h>
597#endif
cadd4230 598#ifdef STDC_HEADERS
f69335e6 599# include <stdlib.h>
600# include <stddef.h>
601#else
cadd4230 602# ifdef HAVE_STDLIB_H
f69335e6 603# include <stdlib.h>
604# endif
605#endif
cadd4230
BM
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f69335e6 608# include <memory.h>
609# endif
610# include <string.h>
611#endif
cadd4230 612#ifdef HAVE_STRINGS_H
f69335e6 613# include <strings.h>
614#endif
cadd4230 615#ifdef HAVE_INTTYPES_H
f69335e6 616# include <inttypes.h>
f69335e6 617#endif
cadd4230
BM
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
f69335e6 622# include <unistd.h>
623#endif"
624
94c2b583 625ac_subst_vars='LTLIBOBJS
85904c22 626LIBOBJS
101d2dd6 627UNRLINCDIR
94c2b583 628URL
f81d2207
BM
629PTHREAD_CFLAGS
630PTHREAD_LIBS
631PTHREAD_CC
632ax_pthread_config
0136ac3c
TM
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
94c2b583 641CARES_LIBS
642CARES_CFLAGS
547b2d69
BM
643PCRE2_LIBS
644PCRE2_CFLAGS
42d8a95c
WP
645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
c0790e90 647PKG_CONFIG
c0790e90 648TRE_LIBS
94c2b583 649TRE_CFLAGS
650FD_SETSIZE
9252ce30 651LDFLAGS_PRIVATELIBS
5e94fc9c
BM
652PIDFILE
653DOCDIR
e5ec2a64 654PERMDATADIR
5e94fc9c
BM
655TMPDIR
656CACHEDIR
657LOGDIR
658MODULESDIR
659CONFDIR
660SCRIPTDIR
94c2b583 661BINDIR
ecf260df 662DYNAMIC_LDFLAGS
94c2b583 663MODULEFLAGS
664CRYPTOLIB
665STRTOUL
94c2b583 666EGREP
667GREP
668CPP
4fd616f9
BM
669HARDEN_BINLDFLAGS
670HARDEN_BINCFLAGS
bae1dcf1
BM
671HARDEN_LDFLAGS
672HARDEN_CFLAGS
94c2b583 673MKPASSWDLIBS
674IRCDLIBS
675PKGCONFIG
676GUNZIP
677GMAKE
678MAKER
679INSTALL
680OPENSSLPATH
681TOUCH
682CP
683RM
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
21d0af6e 691BUILDDIR
94c2b583 692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
98709bee 711runstatedir
94c2b583 712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
bae1dcf1 734enable_hardening
94c2b583 735with_nick_history
736with_sendq
94c2b583 737with_permissions
5e94fc9c
BM
738with_bindir
739with_scriptdir
740with_confdir
741with_modulesdir
742with_logdir
743with_cachedir
744with_tmpdir
745with_datadir
746with_docdir
747with_pidfile
fd35f965 748with_privatelibdir
94c2b583 749with_fd_setsize
94c2b583 750enable_prefixaq
751with_showlistmodes
752with_topicisnuhost
753with_shunnotices
754with_no_operoverride
755with_disableusermod
756with_operoverride_verify
757with_disable_extendedban_stacking
758with_system_tre
547b2d69 759with_system_pcre2
94c2b583 760with_system_cares
761enable_ssl
94c2b583 762enable_dynamic_linking
821a0464 763enable_werror
94c2b583 764enable_libcurl
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
774CPP
775PKG_CONFIG
42d8a95c
WP
776PKG_CONFIG_PATH
777PKG_CONFIG_LIBDIR
94c2b583 778TRE_CFLAGS
779TRE_LIBS
547b2d69
BM
780PCRE2_CFLAGS
781PCRE2_LIBS
94c2b583 782CARES_CFLAGS
783CARES_LIBS'
784
785
786# Initialize some variables set by options.
c0790e90 787ac_init_help=
f69335e6 788ac_init_version=false
94c2b583 789ac_unrecognized_opts=
790ac_unrecognized_sep=
f40ec73c 791# The variables have the same names as the options, with
792# dashes changed to underlines.
f69335e6 793cache_file=/dev/null
f40ec73c 794exec_prefix=NONE
f40ec73c 795no_create=
f40ec73c 796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
f40ec73c 804verbose=
805x_includes=NONE
806x_libraries=NONE
f69335e6 807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
cadd4230 813# (The list follows the same order as the GNU Coding Standards.)
f40ec73c 814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
cadd4230
BM
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
f40ec73c 819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
98709bee 822runstatedir='${localstatedir}/run'
f40ec73c 823includedir='${prefix}/include'
824oldincludedir='/usr/include'
2828e7f8 825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cadd4230
BM
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
f40ec73c 834
f40ec73c 835ac_prev=
cadd4230 836ac_dashdash=
f40ec73c 837for ac_option
838do
f40ec73c 839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
cadd4230 841 eval $ac_prev=\$ac_option
f40ec73c 842 ac_prev=
843 continue
844 fi
845
cadd4230 846 case $ac_option in
0ff0b04a
NPB
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
cadd4230 850 esac
f40ec73c 851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
cadd4230
BM
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
f40ec73c 857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f69335e6 861 bindir=$ac_optarg ;;
f40ec73c 862
863 -build | --build | --buil | --bui | --bu)
f69335e6 864 ac_prev=build_alias ;;
f40ec73c 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f69335e6 866 build_alias=$ac_optarg ;;
f40ec73c 867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f69335e6 873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
f40ec73c 877
cadd4230 878 -datadir | --datadir | --datadi | --datad)
f40ec73c 879 ac_prev=datadir ;;
cadd4230 880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f69335e6 881 datadir=$ac_optarg ;;
f40ec73c 882
cadd4230
BM
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
f40ec73c 890 -disable-* | --disable-*)
94c2b583 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
f40ec73c 892 # Reject names that are not valid shell variable names.
94c2b583 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0ff0b04a 894 as_fn_error $? "invalid feature name: $ac_useropt"
94c2b583 895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899"enable_$ac_useropt"
900"*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
cadd4230
BM
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
f40ec73c 915
916 -enable-* | --enable-*)
94c2b583 917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
f40ec73c 918 # Reject names that are not valid shell variable names.
94c2b583 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0ff0b04a 920 as_fn_error $? "invalid feature name: $ac_useropt"
94c2b583 921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
f40ec73c 931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
f69335e6 939 exec_prefix=$ac_optarg ;;
f40ec73c 940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
f69335e6 945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
f40ec73c 951
952 -host | --host | --hos | --ho)
f69335e6 953 ac_prev=host_alias ;;
f40ec73c 954 -host=* | --host=* | --hos=* | --ho=*)
f69335e6 955 host_alias=$ac_optarg ;;
f40ec73c 956
cadd4230
BM
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
f40ec73c 963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
f69335e6 968 includedir=$ac_optarg ;;
f40ec73c 969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f69335e6 973 infodir=$ac_optarg ;;
f40ec73c 974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f69335e6 978 libdir=$ac_optarg ;;
f40ec73c 979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
f69335e6 985 libexecdir=$ac_optarg ;;
f40ec73c 986
cadd4230
BM
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
f40ec73c 992 -localstatedir | --localstatedir | --localstatedi | --localstated \
cadd4230 993 | --localstate | --localstat | --localsta | --localst | --locals)
f40ec73c 994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cadd4230 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f69335e6 997 localstatedir=$ac_optarg ;;
f40ec73c 998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f69335e6 1002 mandir=$ac_optarg ;;
f40ec73c 1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
f69335e6 1009 | --no-cr | --no-c | -n)
f40ec73c 1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f69335e6 1023 oldincludedir=$ac_optarg ;;
f40ec73c 1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f69335e6 1028 prefix=$ac_optarg ;;
f40ec73c 1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f69335e6 1035 program_prefix=$ac_optarg ;;
f40ec73c 1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f69335e6 1042 program_suffix=$ac_optarg ;;
f40ec73c 1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
f69335e6 1059 program_transform_name=$ac_optarg ;;
f40ec73c 1060
cadd4230
BM
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
f40ec73c 1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
98709bee
BM
1075 -runstatedir | --runstatedir | --runstatedi | --runstated \
1076 | --runstate | --runstat | --runsta | --runst | --runs \
1077 | --run | --ru | --r)
1078 ac_prev=runstatedir ;;
1079 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1080 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1081 | --run=* | --ru=* | --r=*)
1082 runstatedir=$ac_optarg ;;
1083
f40ec73c 1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
f69335e6 1088 sbindir=$ac_optarg ;;
f40ec73c 1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
f69335e6 1099 sharedstatedir=$ac_optarg ;;
f40ec73c 1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
f69335e6 1104 site=$ac_optarg ;;
f40ec73c 1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f69335e6 1109 srcdir=$ac_optarg ;;
f40ec73c 1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f69335e6 1116 sysconfdir=$ac_optarg ;;
f40ec73c 1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
f69335e6 1119 ac_prev=target_alias ;;
f40ec73c 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f69335e6 1121 target_alias=$ac_optarg ;;
f40ec73c 1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
f69335e6 1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
f40ec73c 1128
1129 -with-* | --with-*)
94c2b583 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
f40ec73c 1131 # Reject names that are not valid shell variable names.
94c2b583 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0ff0b04a 1133 as_fn_error $? "invalid package name: $ac_useropt"
94c2b583 1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
f40ec73c 1144
1145 -without-* | --without-*)
94c2b583 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
f40ec73c 1147 # Reject names that are not valid shell variable names.
94c2b583 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0ff0b04a 1149 as_fn_error $? "invalid package name: $ac_useropt"
94c2b583 1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
f40ec73c 1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f69335e6 1170 x_includes=$ac_optarg ;;
f40ec73c 1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f69335e6 1177 x_libraries=$ac_optarg ;;
f40ec73c 1178
0ff0b04a
NPB
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information"
f40ec73c 1181 ;;
1182
f69335e6 1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
94c2b583 1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
0ff0b04a 1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
94c2b583 1189 esac
cadd4230 1190 eval $ac_envvar=\$ac_optarg
f69335e6 1191 export $ac_envvar ;;
1192
f40ec73c 1193 *)
f69335e6 1194 # FIXME: should be removed in autoconf 3.0.
94c2b583 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f69335e6 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
94c2b583 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
0ff0b04a 1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
f40ec73c 1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
f69335e6 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0ff0b04a 1206 as_fn_error $? "missing argument to $ac_option"
94c2b583 1207fi
1208
1209if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
0ff0b04a 1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
94c2b583 1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
c0790e90 1215fi
1216
94c2b583 1217# Check all directory arguments for consistency.
cadd4230
BM
1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
98709bee 1221 libdir localedir mandir runstatedir
f40ec73c 1222do
cadd4230 1223 eval ac_val=\$$ac_var
94c2b583 1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
f69335e6 1231 case $ac_val in
cadd4230
BM
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
f40ec73c 1234 esac
0ff0b04a 1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
f40ec73c 1236done
1237
f69335e6 1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
f69335e6 1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252fi
f40ec73c 1253
f69335e6 1254ac_tool_prefix=
1255test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257test "$silent" = yes && exec 6>/dev/null
f40ec73c 1258
f40ec73c 1259
cadd4230
BM
1260ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261ac_ls_di=`ls -di .` &&
1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0ff0b04a 1263 as_fn_error $? "working directory cannot be determined"
cadd4230 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0ff0b04a 1265 as_fn_error $? "pwd does not report name of working directory"
cadd4230
BM
1266
1267
f40ec73c 1268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
cadd4230 1271 # Try the directory containing this script, then the parent directory.
94c2b583 1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277$as_echo X"$as_myself" |
cadd4230
BM
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
f40ec73c 1295 srcdir=$ac_confdir
cadd4230 1296 if test ! -r "$srcdir/$ac_unique_file"; then
f40ec73c 1297 srcdir=..
1298 fi
1299else
1300 ac_srcdir_defaulted=no
1301fi
cadd4230
BM
1302if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0ff0b04a 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
f40ec73c 1305fi
cadd4230
BM
1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307ac_abs_confdir=`(
0ff0b04a 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cadd4230
BM
1309 pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
f69335e6 1326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
57a008b8 1334\`configure' configures unrealircd 4.0.19-rc2 to adapt to many kinds of systems.
f69335e6 1335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
0ff0b04a 1348 -q, --quiet, --silent do not print \`checking ...' messages
f69335e6 1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
f69335e6 1354Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
94c2b583 1356 [$ac_default_prefix]
f69335e6 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
94c2b583 1358 [PREFIX]
f69335e6 1359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
94c2b583 1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
98709bee 1374 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
94c2b583 1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/unrealircd]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
f69335e6 1388_ACEOF
1389
1390 cat <<\_ACEOF
f81d2207
BM
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
f69335e6 1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
2828e7f8 1399 case $ac_init_help in
57a008b8 1400 short | recursive ) echo "Configuration of unrealircd 4.0.19-rc2:";;
2828e7f8 1401 esac
f69335e6 1402 cat <<\_ACEOF
1403
1404Optional Features:
94c2b583 1405 --disable-option-checking ignore unrecognized --enable/--with options
f69335e6 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
bae1dcf1
BM
1408 --enable-hardening Enable compiler and linker options to frustrate
1409 memory corruption exploits [yes]
9b4462f0 1410 --disable-prefixaq Disable chanadmin (+a) and chanowner (+q) prefixes
c342b432
BM
1411 --enable-ssl= enable ssl will check /usr/local/opt/openssl
1412 /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg
1413 /usr/sfw /usr/local /usr
7dbf154d 1414 --disable-dynamic-linking
1415 Make the IRCd statically link with shared objects
1416 rather than dynamically (noone knows if disabling
1417 dynamic linking actually does anything or not)
821a0464 1418 --enable-werror Turn compilation warnings into errors (-Werror)
b2e4cf82 1419 --enable-libcurl=DIR enable libcurl (remote include) support
f69335e6 1420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
af289c86 1424 --with-nick-history=length
1425 Specify the length of the nickname history
1426 --with-sendq=maxsendq Specify the max sendq for the server
af289c86 1427 --with-permissions=permissions
1428 Specify the default permissions for configuration
1429 files
5e94fc9c
BM
1430 --with-bindir=path Specify the directory for the unrealircd binary
1431 --with-scriptdir=path Specify the directory for the unrealircd start-stop
1432 script
1433 --with-confdir=path Specify the directory where configuration files are
af289c86 1434 stored
5e94fc9c
BM
1435 --with-modulesdir=path Specify the directory for loadable modules
1436 --with-logdir=path Specify the directory where log files are stored
1437 --with-cachedir=path Specify the directory where cached files are stored
1438 --with-tmpdir=path Specify the directory where private temporary files
1439 are stored. Should not be readable or writable by
1440 others, so not /tmp!!
1441 --with-datadir=path Specify the directory where permanent data is stored
1442 --with-docdir=path Specify the directory where documentation is stored
1443 --with-pidfile=path Specify the path of the pid file
fd35f965
BM
1444 --with-privatelibdir=path
1445 Specify the directory where private libraries are
590e345b 1446 stored. Disable when building a package for a distro
af289c86 1447 --with-fd-setsize=size Specify the max file descriptors to use
1bb24f05 1448 --with-showlistmodes Specify whether modes are shown in /list
1449 --with-topicisnuhost Display nick!user@host as the topic setter
1450 --with-shunnotices Notify a user when he/she is no longer shunned
1451 --with-no-operoverride Disable OperOverride
1452 --with-disableusermod Disable /set* and /chg*
1453 --with-operoverride-verify
1454 Require opers to invite themselves to +s/+p channels
7dee0cdc
BM
1455 --with-disable-extendedban-stacking
1456 Disable extended ban stacking
70ec1b1e
BM
1457 --with-system-tre Use the system tre package instead of bundled,
1458 discovered using pkg-config
547b2d69
BM
1459 --with-system-pcre2 Use the system pcre2 package instead of bundled,
1460 discovered using pkg-config
c133dfd3
BM
1461 --without-system-cares Use bundled version instead of system c-ares.
1462 Normally autodetected via pkg-config.
f69335e6 1463
1464Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
cadd4230 1469 LIBS libraries to pass to the linker, e.g. -l<library>
94c2b583 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cadd4230 1471 you have headers in a nonstandard directory <include dir>
f69335e6 1472 CPP C preprocessor
70ec1b1e 1473 PKG_CONFIG path to pkg-config utility
42d8a95c
WP
1474 PKG_CONFIG_PATH
1475 directories to add to pkg-config's search path
1476 PKG_CONFIG_LIBDIR
1477 path overriding pkg-config's built-in search path
70ec1b1e
BM
1478 TRE_CFLAGS C compiler flags for TRE, overriding pkg-config
1479 TRE_LIBS linker flags for TRE, overriding pkg-config
547b2d69
BM
1480 PCRE2_CFLAGS
1481 C compiler flags for PCRE2, overriding pkg-config
1482 PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
5f727eec
BM
1483 CARES_CFLAGS
1484 C compiler flags for CARES, overriding pkg-config
1485 CARES_LIBS linker flags for CARES, overriding pkg-config
f69335e6 1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
2828e7f8 1490Report bugs to <http://bugs.unrealircd.org/>.
94c2b583 1491unrealircd home page: <http://unrealircd.org/>.
f69335e6 1492_ACEOF
cadd4230 1493ac_status=$?
f69335e6 1494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
f69335e6 1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
94c2b583 1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
f69335e6 1502 ac_builddir=.
1503
cadd4230
BM
1504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
94c2b583 1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cadd4230 1508 # A ".." for each directory in $ac_dir_suffix.
94c2b583 1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cadd4230
BM
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
f69335e6 1519
1520case $srcdir in
cadd4230 1521 .) # We are building in place.
f69335e6 1522 ac_srcdir=.
cadd4230
BM
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
f69335e6 1526 ac_srcdir=$srcdir$ac_dir_suffix;
cadd4230
BM
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
545d087a 1533esac
cadd4230
BM
1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
f69335e6 1544 else
94c2b583 1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cadd4230
BM
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
f69335e6 1548 done
1549fi
1550
cadd4230 1551test -n "$ac_init_help" && exit $ac_status
f69335e6 1552if $ac_init_version; then
1553 cat <<\_ACEOF
57a008b8 1554unrealircd configure 4.0.19-rc2
f1c5f885 1555generated by GNU Autoconf 2.69
f69335e6 1556
f1c5f885 1557Copyright (C) 2012 Free Software Foundation, Inc.
f69335e6 1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
cadd4230 1561 exit
f69335e6 1562fi
f69335e6 1563
94c2b583 1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
7dbf154d 1567
94c2b583 1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
7dbf154d 1572{
94c2b583 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
7dbf154d 1598
94c2b583 1599 ac_retval=1
1600fi
0ff0b04a 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94c2b583 1602 as_fn_set_status $ac_retval
7dbf154d 1603
94c2b583 1604} # ac_fn_c_try_compile
4eff1e84 1605
94c2b583 1606# ac_fn_c_try_link LINENO
1607# -----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_link ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
f1c5f885 1633 test -x conftest$ac_exeext
94c2b583 1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
4eff1e84 1639
94c2b583 1640 ac_retval=1
1641fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
0ff0b04a 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94c2b583 1648 as_fn_set_status $ac_retval
7dbf154d 1649
94c2b583 1650} # ac_fn_c_try_link
7dbf154d 1651
c19165c8
BM
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
94c2b583 1694# ac_fn_c_try_cpp LINENO
1695# ----------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_cpp ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0ff0b04a 1715 test $ac_status = 0; } > conftest.i && {
94c2b583 1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
7dbf154d 1723
94c2b583 1724 ac_retval=1
1725fi
0ff0b04a 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94c2b583 1727 as_fn_set_status $ac_retval
7dbf154d 1728
94c2b583 1729} # ac_fn_c_try_cpp
4eff1e84 1730
94c2b583 1731# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734# the include files in INCLUDES and setting the cache variable VAR
1735# accordingly.
1736ac_fn_c_check_header_mongrel ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0ff0b04a 1739 if eval \${$3+:} false; then :
94c2b583 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
0ff0b04a 1742if eval \${$3+:} false; then :
94c2b583 1743 $as_echo_n "(cached) " >&6
1744fi
1745eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747$as_echo "$ac_res" >&6; }
1748else
1749 # Is the header compilable?
1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751$as_echo_n "checking $2 usability... " >&6; }
1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754$4
1755#include <$2>
7dbf154d 1756_ACEOF
94c2b583 1757if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_header_compiler=yes
1759else
1760 ac_header_compiler=no
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764$as_echo "$ac_header_compiler" >&6; }
7dbf154d 1765
94c2b583 1766# Is the header present?
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768$as_echo_n "checking $2 presence... " >&6; }
1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_cpp "$LINENO"; then :
1774 ac_header_preproc=yes
1775else
1776 ac_header_preproc=no
1777fi
0ff0b04a 1778rm -f conftest.err conftest.i conftest.$ac_ext
94c2b583 1779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780$as_echo "$ac_header_preproc" >&6; }
7dbf154d 1781
94c2b583 1782# So? What about this header?
1783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784 yes:no: )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 ;;
1790 no:yes:* )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
0ff0b04a 1801( $as_echo "## ------------------------------------------ ##
94c2b583 1802## Report this to http://bugs.unrealircd.org/ ##
0ff0b04a 1803## ------------------------------------------ ##"
94c2b583 1804 ) | sed "s/^/$as_me: WARNING: /" >&2
1805 ;;
1806esac
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
0ff0b04a 1809if eval \${$3+:} false; then :
94c2b583 1810 $as_echo_n "(cached) " >&6
1811else
1812 eval "$3=\$ac_header_compiler"
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817fi
0ff0b04a 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4eff1e84 1819
94c2b583 1820} # ac_fn_c_check_header_mongrel
4eff1e84 1821
94c2b583 1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823# -------------------------------------------------------
1824# Tests whether HEADER exists and can be compiled using the include files in
1825# INCLUDES, setting the cache variable VAR accordingly.
1826ac_fn_c_check_header_compile ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
0ff0b04a 1831if eval \${$3+:} false; then :
94c2b583 1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837#include <$2>
85904c22 1838_ACEOF
94c2b583 1839if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841else
1842 eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
0ff0b04a 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
85904c22 1850
94c2b583 1851} # ac_fn_c_check_header_compile
85904c22 1852
94c2b583 1853# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1854# -------------------------------------------
1855# Tests whether TYPE exists after having included INCLUDES, setting cache
1856# variable VAR accordingly.
1857ac_fn_c_check_type ()
1858{
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
0ff0b04a 1862if eval \${$3+:} false; then :
94c2b583 1863 $as_echo_n "(cached) " >&6
85904c22 1864else
94c2b583 1865 eval "$3=no"
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 1867/* end confdefs.h. */
94c2b583 1868$4
85904c22
BM
1869int
1870main ()
1871{
94c2b583 1872if (sizeof ($2))
1873 return 0;
1874 ;
85904c22 1875 return 0;
94c2b583 1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881$4
1882int
1883main ()
1884{
1885if (sizeof (($2)))
1886 return 0;
85904c22
BM
1887 ;
1888 return 0;
1889}
1890_ACEOF
94c2b583 1891if ac_fn_c_try_compile "$LINENO"; then :
85904c22 1892
94c2b583 1893else
1894 eval "$3=yes"
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85904c22 1897fi
85904c22
BM
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
94c2b583 1900eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
0ff0b04a 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
85904c22 1904
94c2b583 1905} # ac_fn_c_check_type
1906
1907# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1908# --------------------------------------------
1909# Tries to find the compile-time value of EXPR in a program that includes
1910# INCLUDES, setting VAR accordingly. Returns whether the value could be
1911# computed
1912ac_fn_c_compute_int ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
85904c22 1915 if test "$cross_compiling" = yes; then
94c2b583 1916 # Depending upon the size, compute the lo and hi bounds.
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 1918/* end confdefs.h. */
94c2b583 1919$4
85904c22
BM
1920int
1921main ()
1922{
94c2b583 1923static int test_array [1 - 2 * !(($2) >= 0)];
f1c5f885
BM
1924test_array [0] = 0;
1925return test_array [0];
85904c22
BM
1926
1927 ;
1928 return 0;
1929}
1930_ACEOF
94c2b583 1931if ac_fn_c_try_compile "$LINENO"; then :
85904c22
BM
1932 ac_lo=0 ac_mid=0
1933 while :; do
94c2b583 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 1935/* end confdefs.h. */
94c2b583 1936$4
85904c22
BM
1937int
1938main ()
1939{
94c2b583 1940static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f1c5f885
BM
1941test_array [0] = 0;
1942return test_array [0];
85904c22
BM
1943
1944 ;
1945 return 0;
1946}
1947_ACEOF
94c2b583 1948if ac_fn_c_try_compile "$LINENO"; then :
85904c22
BM
1949 ac_hi=$ac_mid; break
1950else
94c2b583 1951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
85904c22
BM
1952 if test $ac_lo -le $ac_mid; then
1953 ac_lo= ac_hi=
1954 break
1955 fi
94c2b583 1956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
85904c22 1957fi
85904c22
BM
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 done
1960else
94c2b583 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 1962/* end confdefs.h. */
94c2b583 1963$4
85904c22
BM
1964int
1965main ()
1966{
94c2b583 1967static int test_array [1 - 2 * !(($2) < 0)];
f1c5f885
BM
1968test_array [0] = 0;
1969return test_array [0];
85904c22
BM
1970
1971 ;
1972 return 0;
1973}
1974_ACEOF
94c2b583 1975if ac_fn_c_try_compile "$LINENO"; then :
85904c22
BM
1976 ac_hi=-1 ac_mid=-1
1977 while :; do
94c2b583 1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 1979/* end confdefs.h. */
94c2b583 1980$4
85904c22
BM
1981int
1982main ()
1983{
94c2b583 1984static int test_array [1 - 2 * !(($2) >= $ac_mid)];
f1c5f885
BM
1985test_array [0] = 0;
1986return test_array [0];
85904c22
BM
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
94c2b583 1992if ac_fn_c_try_compile "$LINENO"; then :
85904c22
BM
1993 ac_lo=$ac_mid; break
1994else
94c2b583 1995 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
85904c22
BM
1996 if test $ac_mid -le $ac_hi; then
1997 ac_lo= ac_hi=
1998 break
1999 fi
94c2b583 2000 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
85904c22 2001fi
85904c22
BM
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 done
2004else
94c2b583 2005 ac_lo= ac_hi=
85904c22 2006fi
85904c22
BM
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
85904c22
BM
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010# Binary search between lo and hi bounds.
2011while test "x$ac_lo" != "x$ac_hi"; do
94c2b583 2012 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 2014/* end confdefs.h. */
94c2b583 2015$4
85904c22
BM
2016int
2017main ()
2018{
94c2b583 2019static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f1c5f885
BM
2020test_array [0] = 0;
2021return test_array [0];
85904c22
BM
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
94c2b583 2027if ac_fn_c_try_compile "$LINENO"; then :
85904c22
BM
2028 ac_hi=$ac_mid
2029else
94c2b583 2030 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
85904c22 2031fi
85904c22
BM
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033done
94c2b583 2034case $ac_lo in #((
2035?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036'') ac_retval=1 ;;
85904c22 2037esac
94c2b583 2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 2040/* end confdefs.h. */
94c2b583 2041$4
2042static long int longval () { return $2; }
2043static unsigned long int ulongval () { return $2; }
85904c22
BM
2044#include <stdio.h>
2045#include <stdlib.h>
2046int
2047main ()
2048{
2049
2050 FILE *f = fopen ("conftest.val", "w");
2051 if (! f)
2052 return 1;
94c2b583 2053 if (($2) < 0)
85904c22
BM
2054 {
2055 long int i = longval ();
94c2b583 2056 if (i != ($2))
85904c22 2057 return 1;
94c2b583 2058 fprintf (f, "%ld", i);
85904c22
BM
2059 }
2060 else
2061 {
2062 unsigned long int i = ulongval ();
94c2b583 2063 if (i != ($2))
85904c22 2064 return 1;
94c2b583 2065 fprintf (f, "%lu", i);
85904c22 2066 }
94c2b583 2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
85904c22
BM
2069 return ferror (f) || fclose (f) != 0;
2070
94c2b583 2071 ;
2072 return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_run "$LINENO"; then :
2076 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
85904c22 2077else
94c2b583 2078 ac_retval=1
2079fi
2080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081 conftest.$ac_objext conftest.beam conftest.$ac_ext
2082rm -f conftest.val
85904c22 2083
94c2b583 2084 fi
0ff0b04a 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94c2b583 2086 as_fn_set_status $ac_retval
85904c22 2087
94c2b583 2088} # ac_fn_c_compute_int
85904c22 2089
94c2b583 2090# ac_fn_c_check_func LINENO FUNC VAR
2091# ----------------------------------
2092# Tests whether FUNC exists, setting the cache variable VAR accordingly
2093ac_fn_c_check_func ()
2094{
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
0ff0b04a 2098if eval \${$3+:} false; then :
94c2b583 2099 $as_echo_n "(cached) " >&6
85904c22 2100else
94c2b583 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 2102/* end confdefs.h. */
94c2b583 2103/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2105#define $2 innocuous_$2
2106
2107/* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $2 (); below.
2109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110 <limits.h> exists even on freestanding compilers. */
2111
2112#ifdef __STDC__
2113# include <limits.h>
2114#else
2115# include <assert.h>
2116#endif
2117
2118#undef $2
2119
2120/* Override any GCC internal prototype to avoid an error.
2121 Use char because int might match the return type of a GCC
2122 builtin and then its argument prototype would still apply. */
2123#ifdef __cplusplus
2124extern "C"
2125#endif
2126char $2 ();
2127/* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130#if defined __stub_$2 || defined __stub___$2
2131choke me
2132#endif
2133
85904c22
BM
2134int
2135main ()
2136{
94c2b583 2137return $2 ();
85904c22
BM
2138 ;
2139 return 0;
2140}
2141_ACEOF
94c2b583 2142if ac_fn_c_try_link "$LINENO"; then :
2143 eval "$3=yes"
85904c22 2144else
94c2b583 2145 eval "$3=no"
85904c22 2146fi
94c2b583 2147rm -f core conftest.err conftest.$ac_objext \
2148 conftest$ac_exeext conftest.$ac_ext
85904c22 2149fi
94c2b583 2150eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
0ff0b04a 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
85904c22 2154
94c2b583 2155} # ac_fn_c_check_func
2156cat >config.log <<_ACEOF
2157This file contains any messages produced by compilers while
2158running configure, to aid debugging if configure makes a mistake.
85904c22 2159
57a008b8 2160It was created by unrealircd $as_me 4.0.19-rc2, which was
f1c5f885 2161generated by GNU Autoconf 2.69. Invocation command line was
94c2b583 2162
2163 $ $0 $@
85904c22 2164
85904c22 2165_ACEOF
94c2b583 2166exec 5>>config.log
85904c22 2167{
94c2b583 2168cat <<_ASUNAME
2169## --------- ##
2170## Platform. ##
2171## --------- ##
2172
2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178
2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181
2182/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189
2190_ASUNAME
2191
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199IFS=$as_save_IFS
2200
2201} >&5
2202
2203cat >&5 <<_ACEOF
2204
2205
2206## ----------- ##
2207## Core tests. ##
2208## ----------- ##
2209
85904c22 2210_ACEOF
85904c22 2211
85904c22 2212
94c2b583 2213# Keep a trace of the command line.
2214# Strip out --no-create and --no-recursion so they do not pile up.
2215# Strip out --silent because we don't want to record it for future runs.
2216# Also quote any args containing shell meta-characters.
2217# Make two passes to allow for proper duplicate-argument suppression.
2218ac_configure_args=
2219ac_configure_args0=
2220ac_configure_args1=
2221ac_must_keep_next=false
2222for ac_pass in 1 2
2223do
2224 for ac_arg
2225 do
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 2)
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2249 ;;
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2252 fi
2253 as_fn_append ac_configure_args " '$ac_arg'"
2254 ;;
2255 esac
2256 done
2257done
2258{ ac_configure_args0=; unset ac_configure_args0;}
2259{ ac_configure_args1=; unset ac_configure_args1;}
2260
2261# When interrupted or exit'd, cleanup temporary files, and complete
2262# config.log. We remove comments because anyway the quotes in there
2263# would cause problems or look ugly.
2264# WARNING: Use '\'' to represent an apostrophe within the trap.
2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2268 {
2269 echo
2270
0ff0b04a 2271 $as_echo "## ---------------- ##
94c2b583 2272## Cache variables. ##
0ff0b04a 2273## ---------------- ##"
94c2b583 2274 echo
2275 # The following way of writing the cache mishandles newlines in values,
2276(
2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in #(
2280 *${as_nl}*)
2281 case $ac_var in #(
2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 esac
2285 case $ac_var in #(
2286 _ | IFS | as_nl) ;; #(
2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288 *) { eval $ac_var=; unset $ac_var;} ;;
2289 esac ;;
2290 esac
2291 done
2292 (set) 2>&1 |
2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294 *${as_nl}ac_space=\ *)
2295 sed -n \
2296 "s/'\''/'\''\\\\'\'''\''/g;
2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 ;; #(
2299 *)
2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 ;;
2302 esac |
2303 sort
2304)
2305 echo
2306
0ff0b04a 2307 $as_echo "## ----------------- ##
94c2b583 2308## Output variables. ##
0ff0b04a 2309## ----------------- ##"
94c2b583 2310 echo
2311 for ac_var in $ac_subst_vars
2312 do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2320
2321 if test -n "$ac_subst_files"; then
0ff0b04a 2322 $as_echo "## ------------------- ##
94c2b583 2323## File substitutions. ##
0ff0b04a 2324## ------------------- ##"
94c2b583 2325 echo
2326 for ac_var in $ac_subst_files
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335 fi
2336
2337 if test -s confdefs.h; then
0ff0b04a 2338 $as_echo "## ----------- ##
94c2b583 2339## confdefs.h. ##
0ff0b04a 2340## ----------- ##"
94c2b583 2341 echo
2342 cat confdefs.h
2343 echo
2344 fi
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2348 } >&5
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 exit $exit_status
2352' 0
2353for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355done
2356ac_signal=0
2357
2358# confdefs.h avoids OS command line length limits that DEFS can exceed.
2359rm -f -r conftest* confdefs.h
2360
2361$as_echo "/* confdefs.h */" > confdefs.h
2362
2363# Predefined preprocessor variables.
85904c22
BM
2364
2365cat >>confdefs.h <<_ACEOF
94c2b583 2366#define PACKAGE_NAME "$PACKAGE_NAME"
85904c22
BM
2367_ACEOF
2368
94c2b583 2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
85904c22 2371_ACEOF
94c2b583 2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_VERSION "$PACKAGE_VERSION"
85904c22 2375_ACEOF
85904c22 2376
94c2b583 2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_STRING "$PACKAGE_STRING"
2379_ACEOF
85904c22 2380
94c2b583 2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383_ACEOF
85904c22
BM
2384
2385cat >>confdefs.h <<_ACEOF
94c2b583 2386#define PACKAGE_URL "$PACKAGE_URL"
85904c22
BM
2387_ACEOF
2388
85904c22 2389
94c2b583 2390# Let the site file select an alternate cache file if it wants to.
2391# Prefer an explicitly selected file to automatically selected ones.
2392ac_site_file1=NONE
2393ac_site_file2=NONE
2394if test -n "$CONFIG_SITE"; then
0ff0b04a
NPB
2395 # We do not want a PATH search for config.site.
2396 case $CONFIG_SITE in #((
2397 -*) ac_site_file1=./$CONFIG_SITE;;
2398 */*) ac_site_file1=$CONFIG_SITE;;
2399 *) ac_site_file1=./$CONFIG_SITE;;
2400 esac
94c2b583 2401elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
85904c22 2404else
94c2b583 2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2407fi
2408for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409do
2410 test "x$ac_site_file" = xNONE && continue
2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
0ff0b04a
NPB
2415 . "$ac_site_file" \
2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418as_fn_error $? "failed to load site script $ac_site_file
2419See \`config.log' for more details" "$LINENO" 5; }
94c2b583 2420 fi
2421done
2422
2423if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special files
2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2426 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428$as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2433 fi
85904c22 2434else
94c2b583 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436$as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2438fi
85904c22 2439
94c2b583 2440# Check that the precious variables saved in the cache have kept the same
2441# value.
2442ac_cache_corrupted=false
2443for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2458 *)
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2488 fi
2489done
2490if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
0ff0b04a 2495 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
85904c22 2496fi
94c2b583 2497## -------------------- ##
2498## Main body of script. ##
2499## -------------------- ##
85904c22 2500
94c2b583 2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508
2509ac_config_headers="$ac_config_headers include/setup.h"
2510
2511ac_aux_dir=
2512for ac_dir in autoconf "$srcdir"/autoconf; do
0ff0b04a
NPB
2513 if test -f "$ac_dir/install-sh"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/install-sh -c"
2516 break
2517 elif test -f "$ac_dir/install.sh"; then
2518 ac_aux_dir=$ac_dir
2519 ac_install_sh="$ac_aux_dir/install.sh -c"
2520 break
2521 elif test -f "$ac_dir/shtool"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/shtool install -c"
2524 break
2525 fi
94c2b583 2526done
2527if test -z "$ac_aux_dir"; then
0ff0b04a 2528 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
85904c22 2529fi
85904c22 2530
94c2b583 2531# These three variables are undocumented and unsupported,
2532# and are intended to be withdrawn in a future Autoconf release.
2533# They can cause serious problems if a builder's source tree is in a directory
2534# whose full name contains unusual characters.
2535ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2536ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2537ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2538
2539
85904c22 2540
94c2b583 2541
2542if test "x$enable_dynamic_linking" = "x"; then
2543 echo "Please use ./Config instead of ./configure"
2544 exit 1
85904c22
BM
2545fi
2546
74ea7af9
BM
2547orig_cflags="$CFLAGS"
2548
21d0af6e
BM
2549BUILDDIR="`pwd`"
2550
2551
537c9a2e 2552# Generation version number (e.g.: X in X.Y.Z)
507d88cf 2553UNREAL_VERSION_GENERATION="4"
23516d8e
NPB
2554
2555cat >>confdefs.h <<_ACEOF
2556#define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION
2557_ACEOF
2558
2559
537c9a2e 2560# Major version number (e.g.: Y in X.Y.Z)
507d88cf 2561UNREAL_VERSION_MAJOR="0"
23516d8e
NPB
2562
2563cat >>confdefs.h <<_ACEOF
2564#define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR
2565_ACEOF
2566
2567
537c9a2e 2568# Minor version number (e.g.: Z in X.Y.Z)
1f4fcb94 2569UNREAL_VERSION_MINOR="19"
23516d8e
NPB
2570
2571cat >>confdefs.h <<_ACEOF
2572#define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR
2573_ACEOF
2574
2575
2576# The version suffix such as a beta marker or release candidate
2f2ee0ba 2577# marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
23516d8e 2578# string instead of an integer because it contains arbitrary data.
57a008b8 2579UNREAL_VERSION_SUFFIX="-rc2"
23516d8e
NPB
2580
2581cat >>confdefs.h <<_ACEOF
2582#define UNREAL_VERSION_SUFFIX "$UNREAL_VERSION_SUFFIX"
2583_ACEOF
2584
2585
94c2b583 2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 2596if ${ac_cv_prog_CC+:} false; then :
94c2b583 2597 $as_echo_n "(cached) " >&6
85904c22 2598else
94c2b583 2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
85904c22 2601else
94c2b583 2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614 done
2615IFS=$as_save_IFS
85904c22 2616
85904c22 2617fi
85904c22 2618fi
94c2b583 2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622$as_echo "$CC" >&6; }
85904c22 2623else
94c2b583 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
85904c22 2627
85904c22
BM
2628
2629fi
94c2b583 2630if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 2636if ${ac_cv_prog_ac_ct_CC+:} false; then :
94c2b583 2637 $as_echo_n "(cached) " >&6
85904c22 2638else
94c2b583 2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
85904c22 2641else
94c2b583 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2649 ac_cv_prog_ac_ct_CC="gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654 done
2655IFS=$as_save_IFS
85904c22 2656
85904c22 2657fi
85904c22 2658fi
94c2b583 2659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2662$as_echo "$ac_ct_CC" >&6; }
85904c22 2663else
94c2b583 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
85904c22 2667
94c2b583 2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 CC=$ac_ct_CC
2678 fi
2679else
2680 CC="$ac_cv_prog_CC"
85904c22
BM
2681fi
2682
94c2b583 2683if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}cc; 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; }
0ff0b04a 2689if ${ac_cv_prog_CC+:} false; then :
94c2b583 2690 $as_echo_n "(cached) " >&6
85904c22 2691else
94c2b583 2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
85904c22 2694else
94c2b583 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
f1c5f885 2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2702 ac_cv_prog_CC="${ac_tool_prefix}cc"
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
85904c22 2709
85904c22 2710fi
85904c22 2711fi
94c2b583 2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
85904c22 2716else
94c2b583 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
85904c22
BM
2719fi
2720
94c2b583 2721
2722 fi
85904c22 2723fi
94c2b583 2724if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args.
2726set dummy cc; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 2729if ${ac_cv_prog_CC+:} false; then :
94c2b583 2730 $as_echo_n "(cached) " >&6
85904c22 2731else
94c2b583 2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
85904c22 2734else
94c2b583 2735 ac_prog_rejected=no
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744 ac_prog_rejected=yes
2745 continue
2746 fi
2747 ac_cv_prog_CC="cc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
85904c22 2754
94c2b583 2755if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy $ac_cv_prog_CC
2758 shift
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2763 shift
2764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 fi
85904c22 2766fi
85904c22 2767fi
94c2b583 2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772$as_echo "$CC" >&6; }
85904c22 2773else
94c2b583 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
85904c22 2777
85904c22 2778
85904c22 2779fi
94c2b583 2780if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in cl.exe
2783 do
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 2788if ${ac_cv_prog_CC+:} false; then :
94c2b583 2789 $as_echo_n "(cached) " >&6
85904c22 2790else
94c2b583 2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
85904c22 2808
94c2b583 2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814$as_echo "$CC" >&6; }
85904c22 2815else
94c2b583 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
85904c22
BM
2818fi
2819
94c2b583 2820
2821 test -n "$CC" && break
85904c22 2822 done
94c2b583 2823fi
2824if test -z "$CC"; then
2825 ac_ct_CC=$CC
2826 for ac_prog in cl.exe
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 2832if ${ac_cv_prog_ac_ct_CC+:} false; then :
94c2b583 2833 $as_echo_n "(cached) " >&6
85904c22 2834else
94c2b583 2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 2845 ac_cv_prog_ac_ct_CC="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850 done
2851IFS=$as_save_IFS
85904c22 2852
94c2b583 2853fi
2854fi
2855ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858$as_echo "$ac_ct_CC" >&6; }
2859else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
85904c22
BM
2862fi
2863
94c2b583 2864
2865 test -n "$ac_ct_CC" && break
2866done
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877 CC=$ac_ct_CC
2878 fi
85904c22
BM
2879fi
2880
94c2b583 2881fi
85904c22 2882
94c2b583 2883
2884test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
2886as_fn_error $? "no acceptable C compiler found in \$PATH
2887See \`config.log' for more details" "$LINENO" 5; }
94c2b583 2888
2889# Provide some information about the compiler.
2890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2891set X $ac_compile
2892ac_compiler=$2
2893for ac_option in --version -v -V -qversion; do
2894 { { ac_try="$ac_compiler $ac_option >&5"
85904c22
BM
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
94c2b583 2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
85904c22 2902 ac_status=$?
94c2b583 2903 if test -s conftest.err; then
2904 sed '10a\
2905... rest of stderr output deleted ...
2906 10q' conftest.err >conftest.er1
2907 cat conftest.er1 >&5
2908 fi
2909 rm -f conftest.er1 conftest.err
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }
85904c22 2912done
94c2b583 2913
2914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 2915/* end confdefs.h. */
94c2b583 2916
85904c22
BM
2917int
2918main ()
2919{
2920
85904c22
BM
2921 ;
2922 return 0;
2923}
2924_ACEOF
94c2b583 2925ac_clean_files_save=$ac_clean_files
2926ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2927# Try to create an executable without -o first, disregard a.out.
2928# It will help us diagnose broken compilers, and finding out an intuition
2929# of exeext.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2931$as_echo_n "checking whether the C compiler works... " >&6; }
2932ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933
2934# The possible output files:
2935ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2936
2937ac_rmfiles=
2938for ac_file in $ac_files
2939do
2940 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2943 esac
2944done
2945rm -f $ac_rmfiles
2946
2947if { { ac_try="$ac_link_default"
85904c22
BM
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
94c2b583 2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link_default") 2>&5
85904c22 2955 ac_status=$?
94c2b583 2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960# in a Makefile. We should not override ac_cv_exeext if it was cached,
2961# so that the user can short-circuit this test for compilers unknown to
2962# Autoconf.
2963for ac_file in $ac_files ''
2964do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2968 ;;
2969 [ab].out )
2970 # We found the default executable, but exeext='' is most
2971 # certainly right.
2972 break;;
2973 *.* )
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
2983 break;;
2984 * )
2985 break;;
2986 esac
2987done
2988test "$ac_cv_exeext" = no && ac_cv_exeext=
85904c22 2989
94c2b583 2990else
2991 ac_file=''
85904c22 2992fi
94c2b583 2993if test -z "$ac_file"; then :
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996$as_echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
85904c22 2998
94c2b583 2999{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
3001as_fn_error 77 "C compiler cannot create executables
3002See \`config.log' for more details" "$LINENO" 5; }
85904c22 3003else
94c2b583 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005$as_echo "yes" >&6; }
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3008$as_echo_n "checking for C compiler default output file name... " >&6; }
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010$as_echo "$ac_file" >&6; }
3011ac_exeext=$ac_cv_exeext
85904c22 3012
94c2b583 3013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3014ac_clean_files=$ac_clean_files_save
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016$as_echo_n "checking for suffix of executables... " >&6; }
3017if { { ac_try="$ac_link"
85904c22
BM
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
94c2b583 3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
85904c22
BM
3024 (eval "$ac_link") 2>&5
3025 ac_status=$?
94c2b583 3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030# work properly (i.e., refer to `conftest.exe'), while it won't with
3031# `rm'.
3032for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 break;;
3038 * ) break;;
3039 esac
3040done
3041else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
3044as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3045See \`config.log' for more details" "$LINENO" 5; }
94c2b583 3046fi
3047rm -f conftest conftest$ac_cv_exeext
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049$as_echo "$ac_cv_exeext" >&6; }
3050
3051rm -f conftest.$ac_ext
3052EXEEXT=$ac_cv_exeext
3053ac_exeext=$EXEEXT
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056#include <stdio.h>
3057int
3058main ()
3059{
3060FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3062
3063 ;
3064 return 0;
85904c22
BM
3065}
3066_ACEOF
94c2b583 3067ac_clean_files="$ac_clean_files conftest.out"
3068# Check that the compiler produces executables we can run. If not, either
3069# the compiler is broken, or we cross compile.
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3071$as_echo_n "checking whether we are cross compiling... " >&6; }
3072if test "$cross_compiling" != yes; then
3073 { { ac_try="$ac_link"
85904c22
BM
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
94c2b583 3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
85904c22
BM
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
94c2b583 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 if { ac_try='./conftest$ac_cv_exeext'
3085 { { case "(($ac_try" in
85904c22
BM
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
94c2b583 3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
85904c22
BM
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
94c2b583 3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
3095 cross_compiling=no
3096 else
3097 if test "$cross_compiling" = maybe; then
3098 cross_compiling=yes
3099 else
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a 3102as_fn_error $? "cannot run C compiled programs.
94c2b583 3103If you meant to cross compile, use \`--host'.
0ff0b04a 3104See \`config.log' for more details" "$LINENO" 5; }
94c2b583 3105 fi
3106 fi
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109$as_echo "$cross_compiling" >&6; }
85904c22 3110
94c2b583 3111rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3112ac_clean_files=$ac_clean_files_save
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3114$as_echo_n "checking for suffix of object files... " >&6; }
0ff0b04a 3115if ${ac_cv_objext+:} false; then :
94c2b583 3116 $as_echo_n "(cached) " >&6
85904c22 3117else
94c2b583 3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22
BM
3119/* end confdefs.h. */
3120
94c2b583 3121int
3122main ()
3123{
85904c22 3124
94c2b583 3125 ;
3126 return 0;
3127}
85904c22 3128_ACEOF
94c2b583 3129rm -f conftest.o conftest.obj
3130if { { ac_try="$ac_compile"
85904c22
BM
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
94c2b583 3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5
85904c22 3138 ac_status=$?
94c2b583 3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;;
3147 esac
3148done
85904c22 3149else
94c2b583 3150 $as_echo "$as_me: failed program was:" >&5
85904c22
BM
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
94c2b583 3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
3155as_fn_error $? "cannot compute suffix of object files: cannot compile
3156See \`config.log' for more details" "$LINENO" 5; }
85904c22 3157fi
94c2b583 3158rm -f conftest.$ac_cv_objext conftest.$ac_ext
85904c22 3159fi
94c2b583 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; }
3162OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
0ff0b04a 3166if ${ac_cv_c_compiler_gnu+:} false; then :
94c2b583 3167 $as_echo_n "(cached) " >&6
3168else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
85904c22 3171
94c2b583 3172int
3173main ()
3174{
3175#ifndef __GNUC__
3176 choke me
3177#endif
85904c22 3178
94c2b583 3179 ;
3180 return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_compiler_gnu=yes
3185else
3186 ac_compiler_gnu=no
85904c22 3187fi
94c2b583 3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
85904c22
BM
3190
3191fi
94c2b583 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196else
3197 GCC=
85904c22 3198fi
94c2b583 3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; }
0ff0b04a 3203if ${ac_cv_prog_cc_g+:} false; then :
94c2b583 3204 $as_echo_n "(cached) " >&6
3205else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h. */
85904c22 3212
94c2b583 3213int
3214main ()
3215{
85904c22 3216
94c2b583 3217 ;
3218 return 0;
3219}
85904c22 3220_ACEOF
94c2b583 3221if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
85904c22 3223else
94c2b583 3224 CFLAGS=""
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 3226/* end confdefs.h. */
85904c22 3227
94c2b583 3228int
3229main ()
3230{
85904c22 3231
94c2b583 3232 ;
3233 return 0;
3234}
85904c22 3235_ACEOF
94c2b583 3236if ac_fn_c_try_compile "$LINENO"; then :
85904c22 3237
85904c22 3238else
94c2b583 3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 3242/* end confdefs.h. */
94c2b583 3243
85904c22
BM
3244int
3245main ()
3246{
94c2b583 3247
85904c22
BM
3248 ;
3249 return 0;
3250}
3251_ACEOF
94c2b583 3252if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
85904c22 3254fi
94c2b583 3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85904c22 3256fi
94c2b583 3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85904c22 3258fi
94c2b583 3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag
85904c22 3261fi
94c2b583 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3263$as_echo "$ac_cv_prog_cc_g" >&6; }
3264if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3268 CFLAGS="-g -O2"
3269 else
3270 CFLAGS="-g"
3271 fi
3272else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3277 fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3280$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
0ff0b04a 3281if ${ac_cv_prog_cc_c89+:} false; then :
94c2b583 3282 $as_echo_n "(cached) " >&6
3283else
3284 ac_cv_prog_cc_c89=no
3285ac_save_CC=$CC
3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288#include <stdarg.h>
3289#include <stdio.h>
f1c5f885 3290struct stat;
94c2b583 3291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292struct buf { int x; };
3293FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294static char *e (p, i)
3295 char **p;
3296 int i;
3297{
3298 return p[i];
3299}
3300static char *f (char * (*g) (char **, int), char **p, ...)
3301{
3302 char *s;
3303 va_list v;
3304 va_start (v,p);
3305 s = g (p, va_arg (v,int));
3306 va_end (v);
3307 return s;
3308}
85904c22 3309
94c2b583 3310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
85904c22 3318
94c2b583 3319/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3321#define FOO(x) 'x'
3322int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
85904c22 3323
94c2b583 3324int test (int i, double x);
3325struct s1 {int (*f) (int a);};
3326struct s2 {int (*f) (double a);};
3327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328int argc;
3329char **argv;
85904c22
BM
3330int
3331main ()
3332{
94c2b583 3333return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
85904c22
BM
3334 ;
3335 return 0;
3336}
3337_ACEOF
94c2b583 3338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340do
3341 CC="$ac_save_CC $ac_arg"
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_cv_prog_cc_c89=$ac_arg
3344fi
3345rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3347done
3348rm -f conftest.$ac_ext
3349CC=$ac_save_CC
3350
3351fi
3352# AC_CACHE_VAL
3353case "x$ac_cv_prog_cc_c89" in
3354 x)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3356$as_echo "none needed" >&6; } ;;
3357 xno)
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3359$as_echo "unsupported" >&6; } ;;
3360 *)
3361 CC="$CC $ac_cv_prog_cc_c89"
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3363$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
85904c22 3364esac
94c2b583 3365if test "x$ac_cv_prog_cc_c89" != xno; then :
3366
3367fi
3368
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374
3375if test "$ac_cv_c_compiler_gnu" = "yes"; then
3376CFLAGS="$CFLAGS -funsigned-char"
3377
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a working -pipe" >&5
3379$as_echo_n "checking if gcc has a working -pipe... " >&6; }
0ff0b04a 3380if ${ac_cv_pipe+:} false; then :
94c2b583 3381 $as_echo_n "(cached) " >&6
3382else
3383
3384 save_cflags="$CFLAGS"
3385 CFLAGS="$CFLAGS -pipe"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 3387/* end confdefs.h. */
94c2b583 3388
85904c22
BM
3389int
3390main ()
3391{
94c2b583 3392
85904c22
BM
3393 ;
3394 return 0;
3395}
3396_ACEOF
94c2b583 3397if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_pipe="yes"
85904c22 3399else
94c2b583 3400 ac_cv_pipe="no"
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 CFLAGS="$save_cflags"
85904c22
BM
3404
3405fi
94c2b583 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe" >&5
3407$as_echo "$ac_cv_pipe" >&6; }
3408if test "$ac_cv_pipe" = "yes"; then
3409CFLAGS="-pipe $CFLAGS"
3410fi
85904c22
BM
3411fi
3412
255223b3
BM
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -fno-strict-aliasing" >&5
3414$as_echo_n "checking if the compiler has a working -fno-strict-aliasing... " >&6; }
f5358606
BM
3415if ${ac_cv_nsa+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417else
85904c22 3418
f5358606
BM
3419 save_cflags="$CFLAGS"
3420 CFLAGS="$CFLAGS -fno-strict-aliasing"
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h. */
101d2dd6 3423
f5358606
BM
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_nsa="yes"
3434else
3435 ac_cv_nsa="no"
3436fi
3437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 CFLAGS="$save_cflags"
3439
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nsa" >&5
3442$as_echo "$ac_cv_nsa" >&6; }
3443if test "$ac_cv_nsa" = "yes"; then
3444CFLAGS="$CFLAGS -fno-strict-aliasing"
3445fi
3446
255223b3
BM
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-pointer-sign" >&5
3448$as_echo_n "checking if the compiler has a working -Wno-pointer-sign... " >&6; }
f5358606
BM
3449if ${ac_cv_nps+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451else
3452
3453 save_cflags="$CFLAGS"
3454 CFLAGS="$CFLAGS -Wno-pointer-sign"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h. */
3457
3458int
3459main ()
3460{
3461
3462 ;
3463 return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_nps="yes"
3468else
3469 ac_cv_nps="no"
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 CFLAGS="$save_cflags"
3473
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nps" >&5
3476$as_echo "$ac_cv_nps" >&6; }
3477if test "$ac_cv_nps" = "yes"; then
3478CFLAGS="$CFLAGS -Wno-pointer-sign"
3479fi
85904c22 3480
255223b3
BM
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-invalid-source-encoding" >&5
3482$as_echo_n "checking if the compiler has a working -Wno-invalid-source-encoding... " >&6; }
821a0464 3483if ${ac_cv_nise+:} false; then :
255223b3
BM
3484 $as_echo_n "(cached) " >&6
3485else
3486
3487 save_cflags="$CFLAGS"
3488 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491
3492int
3493main ()
3494{
3495
3496 ;
3497 return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"; then :
821a0464 3501 ac_cv_nise="yes"
255223b3 3502else
821a0464 3503 ac_cv_nise="no"
255223b3
BM
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 CFLAGS="$save_cflags"
3507
3508fi
821a0464
BM
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nise" >&5
3510$as_echo "$ac_cv_nise" >&6; }
3511if test "$ac_cv_nise" = "yes"; then
255223b3
BM
3512CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
3513fi
3514
47bfcf75
BM
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-zero-length" >&5
3516$as_echo_n "checking if the compiler has a working -Wno-format-zero-length... " >&6; }
3517if ${ac_cv_nfzl+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519else
3520
3521 save_cflags="$CFLAGS"
3522 CFLAGS="$CFLAGS -Wno-format-zero-length"
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529
3530 ;
3531 return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_nfzl="yes"
3536else
3537 ac_cv_nfzl="no"
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 CFLAGS="$save_cflags"
3541
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nfzl" >&5
3544$as_echo "$ac_cv_nfzl" >&6; }
3545if test "$ac_cv_nfzl" = "yes"; then
3546CFLAGS="$CFLAGS -Wno-format-zero-length"
3547fi
3548
98709bee
BM
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-truncation" >&5
3550$as_echo_n "checking if the compiler has a working -Wno-format-truncation... " >&6; }
3551if ${ac_cv_nft+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554
3555 save_cflags="$CFLAGS"
f3b97534 3556 CFLAGS="$CFLAGS -Wno-format-truncation -Werror"
98709bee
BM
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_nft="yes"
3570else
3571 ac_cv_nft="no"
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 CFLAGS="$save_cflags"
3575
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nft" >&5
3578$as_echo "$ac_cv_nft" >&6; }
3579if test "$ac_cv_nft" = "yes"; then
3580CFLAGS="$CFLAGS -Wno-format-truncation"
3581fi
3582
94c2b583 3583# Extract the first word of "rm", so it can be a program name with args.
3584set dummy rm; ac_word=$2
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3587if ${ac_cv_path_RM+:} false; then :
94c2b583 3588 $as_echo_n "(cached) " >&6
85904c22 3589else
94c2b583 3590 case $RM in
3591 [\\/]* | ?:[\\/]*)
3592 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3593 ;;
3594 *)
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3602 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606done
3607 done
3608IFS=$as_save_IFS
85904c22 3609
94c2b583 3610 ;;
3611esac
85904c22 3612fi
94c2b583 3613RM=$ac_cv_path_RM
3614if test -n "$RM"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3616$as_echo "$RM" >&6; }
3617else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
85904c22 3620fi
85904c22 3621
85904c22 3622
94c2b583 3623# Extract the first word of "cp", so it can be a program name with args.
3624set dummy cp; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3627if ${ac_cv_path_CP+:} false; then :
94c2b583 3628 $as_echo_n "(cached) " >&6
85904c22 3629else
94c2b583 3630 case $CP in
3631 [\\/]* | ?:[\\/]*)
3632 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3633 ;;
3634 *)
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3642 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3645 fi
3646done
3647 done
3648IFS=$as_save_IFS
3649
3650 ;;
85904c22 3651esac
94c2b583 3652fi
3653CP=$ac_cv_path_CP
3654if test -n "$CP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3656$as_echo "$CP" >&6; }
85904c22 3657else
94c2b583 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
85904c22
BM
3660fi
3661
85904c22 3662
94c2b583 3663# Extract the first word of "touch", so it can be a program name with args.
3664set dummy touch; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3667if ${ac_cv_path_TOUCH+:} false; then :
94c2b583 3668 $as_echo_n "(cached) " >&6
3669else
3670 case $TOUCH in
3671 [\\/]* | ?:[\\/]*)
3672 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
3673 ;;
3674 *)
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3682 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
85904c22 3689
94c2b583 3690 ;;
3691esac
85904c22 3692fi
94c2b583 3693TOUCH=$ac_cv_path_TOUCH
3694if test -n "$TOUCH"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
3696$as_echo "$TOUCH" >&6; }
85904c22 3697else
94c2b583 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700fi
85904c22 3701
94c2b583 3702
3703# Extract the first word of "openssl", so it can be a program name with args.
3704set dummy openssl; ac_word=$2
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3707if ${ac_cv_path_OPENSSLPATH+:} false; then :
94c2b583 3708 $as_echo_n "(cached) " >&6
85904c22 3709else
94c2b583 3710 case $OPENSSLPATH in
3711 [\\/]* | ?:[\\/]*)
3712 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
3713 ;;
3714 *)
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH
3717do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3722 ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726done
3727 done
3728IFS=$as_save_IFS
85904c22 3729
94c2b583 3730 ;;
3731esac
85904c22 3732fi
94c2b583 3733OPENSSLPATH=$ac_cv_path_OPENSSLPATH
3734if test -n "$OPENSSLPATH"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
3736$as_echo "$OPENSSLPATH" >&6; }
3737else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739$as_echo "no" >&6; }
85904c22 3740fi
85904c22 3741
85904c22 3742
94c2b583 3743# Extract the first word of "install", so it can be a program name with args.
3744set dummy install; ac_word=$2
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3747if ${ac_cv_path_INSTALL+:} false; then :
94c2b583 3748 $as_echo_n "(cached) " >&6
85904c22 3749else
94c2b583 3750 case $INSTALL in
3751 [\\/]* | ?:[\\/]*)
3752 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
3753 ;;
3754 *)
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3762 ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766done
3767 done
3768IFS=$as_save_IFS
85904c22 3769
94c2b583 3770 ;;
3771esac
3772fi
3773INSTALL=$ac_cv_path_INSTALL
3774if test -n "$INSTALL"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3776$as_echo "$INSTALL" >&6; }
3777else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
3780fi
85904c22
BM
3781
3782
94c2b583 3783# Extract the first word of "gmake", so it can be a program name with args.
3784set dummy gmake; ac_word=$2
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3787if ${ac_cv_prog_MAKER+:} false; then :
94c2b583 3788 $as_echo_n "(cached) " >&6
85904c22 3789else
94c2b583 3790 if test -n "$MAKER"; then
3791 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
85904c22 3792else
94c2b583 3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3800 ac_cv_prog_MAKER="gmake"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804done
3805 done
3806IFS=$as_save_IFS
85904c22 3807
94c2b583 3808 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
85904c22 3809fi
94c2b583 3810fi
3811MAKER=$ac_cv_prog_MAKER
3812if test -n "$MAKER"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
3814$as_echo "$MAKER" >&6; }
85904c22 3815else
94c2b583 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
85904c22 3819
85904c22 3820
94c2b583 3821# Extract the first word of "gmake", so it can be a program name with args.
3822set dummy gmake; ac_word=$2
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3825if ${ac_cv_path_GMAKE+:} false; then :
94c2b583 3826 $as_echo_n "(cached) " >&6
85904c22 3827else
94c2b583 3828 case $GMAKE in
3829 [\\/]* | ?:[\\/]*)
3830 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
3831 ;;
3832 *)
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3840 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845 done
3846IFS=$as_save_IFS
85904c22 3847
94c2b583 3848 ;;
3849esac
85904c22 3850fi
94c2b583 3851GMAKE=$ac_cv_path_GMAKE
3852if test -n "$GMAKE"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
3854$as_echo "$GMAKE" >&6; }
3855else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
85904c22
BM
3858fi
3859
85904c22 3860
94c2b583 3861# Extract the first word of "gunzip", so it can be a program name with args.
3862set dummy gunzip; ac_word=$2
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3865if ${ac_cv_path_GUNZIP+:} false; then :
94c2b583 3866 $as_echo_n "(cached) " >&6
85904c22 3867else
94c2b583 3868 case $GUNZIP in
3869 [\\/]* | ?:[\\/]*)
3870 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
3871 ;;
3872 *)
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3880 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884done
3885 done
3886IFS=$as_save_IFS
85904c22 3887
94c2b583 3888 ;;
85904c22 3889esac
85904c22 3890fi
94c2b583 3891GUNZIP=$ac_cv_path_GUNZIP
3892if test -n "$GUNZIP"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
3894$as_echo "$GUNZIP" >&6; }
3895else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
85904c22
BM
3898fi
3899
3900
94c2b583 3901# Extract the first word of "pkg-config", so it can be a program name with args.
3902set dummy pkg-config; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 3905if ${ac_cv_path_PKGCONFIG+:} false; then :
94c2b583 3906 $as_echo_n "(cached) " >&6
3907else
3908 case $PKGCONFIG in
3909 [\\/]* | ?:[\\/]*)
3910 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3911 ;;
3912 *)
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94c2b583 3920 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925 done
3926IFS=$as_save_IFS
3927
3928 ;;
3929esac
85904c22 3930fi
94c2b583 3931PKGCONFIG=$ac_cv_path_PKGCONFIG
3932if test -n "$PKGCONFIG"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
3934$as_echo "$PKGCONFIG" >&6; }
3935else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
85904c22
BM
3938fi
3939
3940
94c2b583 3941
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
3943$as_echo_n "checking for crypt in -ldescrypt... " >&6; }
0ff0b04a 3944if ${ac_cv_lib_descrypt_crypt+:} false; then :
94c2b583 3945 $as_echo_n "(cached) " >&6
85904c22 3946else
94c2b583 3947 ac_check_lib_save_LIBS=$LIBS
3948LIBS="-ldescrypt $LIBS"
3949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 3950/* end confdefs.h. */
85904c22
BM
3951
3952/* Override any GCC internal prototype to avoid an error.
3953 Use char because int might match the return type of a GCC
3954 builtin and then its argument prototype would still apply. */
3955#ifdef __cplusplus
3956extern "C"
3957#endif
94c2b583 3958char crypt ();
85904c22
BM
3959int
3960main ()
3961{
94c2b583 3962return crypt ();
85904c22
BM
3963 ;
3964 return 0;
3965}
3966_ACEOF
94c2b583 3967if ac_fn_c_try_link "$LINENO"; then :
3968 ac_cv_lib_descrypt_crypt=yes
85904c22 3969else
94c2b583 3970 ac_cv_lib_descrypt_crypt=no
85904c22 3971fi
94c2b583 3972rm -f core conftest.err conftest.$ac_objext \
3973 conftest$ac_exeext conftest.$ac_ext
3974LIBS=$ac_check_lib_save_LIBS
85904c22 3975fi
94c2b583 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
3977$as_echo "$ac_cv_lib_descrypt_crypt" >&6; }
0ff0b04a 3978if test "x$ac_cv_lib_descrypt_crypt" = xyes; then :
85904c22 3979
94c2b583 3980$as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
85904c22 3981
94c2b583 3982 IRCDLIBS="$IRCDLIBS-ldescrypt "
3983 MKPASSWDLIBS="-ldescrypt"
85904c22 3984else
94c2b583 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3986$as_echo_n "checking for crypt in -lcrypt... " >&6; }
0ff0b04a 3987if ${ac_cv_lib_crypt_crypt+:} false; then :
94c2b583 3988 $as_echo_n "(cached) " >&6
3989else
3990 ac_check_lib_save_LIBS=$LIBS
3991LIBS="-lcrypt $LIBS"
3992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 3993/* end confdefs.h. */
85904c22
BM
3994
3995/* Override any GCC internal prototype to avoid an error.
3996 Use char because int might match the return type of a GCC
3997 builtin and then its argument prototype would still apply. */
3998#ifdef __cplusplus
3999extern "C"
4000#endif
94c2b583 4001char crypt ();
85904c22
BM
4002int
4003main ()
4004{
94c2b583 4005return crypt ();
85904c22
BM
4006 ;
4007 return 0;
4008}
4009_ACEOF
94c2b583 4010if ac_fn_c_try_link "$LINENO"; then :
4011 ac_cv_lib_crypt_crypt=yes
85904c22 4012else
94c2b583 4013 ac_cv_lib_crypt_crypt=no
85904c22 4014fi
94c2b583 4015rm -f core conftest.err conftest.$ac_objext \
4016 conftest$ac_exeext conftest.$ac_ext
4017LIBS=$ac_check_lib_save_LIBS
85904c22 4018fi
94c2b583 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4020$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
0ff0b04a 4021if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
85904c22 4022
94c2b583 4023$as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
85904c22 4024
94c2b583 4025 IRCDLIBS="$IRCDLIBS-lcrypt "
4026 MKPASSWDLIBS="-lcrypt"
85904c22 4027fi
85904c22 4028
94c2b583 4029fi
85904c22 4030
94c2b583 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4032$as_echo_n "checking for socket in -lsocket... " >&6; }
0ff0b04a 4033if ${ac_cv_lib_socket_socket+:} false; then :
94c2b583 4034 $as_echo_n "(cached) " >&6
85904c22 4035else
94c2b583 4036 ac_check_lib_save_LIBS=$LIBS
4037LIBS="-lsocket $LIBS"
4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 4039/* end confdefs.h. */
85904c22
BM
4040
4041/* Override any GCC internal prototype to avoid an error.
4042 Use char because int might match the return type of a GCC
4043 builtin and then its argument prototype would still apply. */
4044#ifdef __cplusplus
4045extern "C"
4046#endif
94c2b583 4047char socket ();
85904c22
BM
4048int
4049main ()
4050{
94c2b583 4051return socket ();
85904c22
BM
4052 ;
4053 return 0;
4054}
4055_ACEOF
94c2b583 4056if ac_fn_c_try_link "$LINENO"; then :
4057 ac_cv_lib_socket_socket=yes
85904c22 4058else
94c2b583 4059 ac_cv_lib_socket_socket=no
85904c22 4060fi
94c2b583 4061rm -f core conftest.err conftest.$ac_objext \
4062 conftest$ac_exeext conftest.$ac_ext
4063LIBS=$ac_check_lib_save_LIBS
85904c22 4064fi
94c2b583 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4066$as_echo "$ac_cv_lib_socket_socket" >&6; }
0ff0b04a 4067if test "x$ac_cv_lib_socket_socket" = xyes; then :
94c2b583 4068 IRCDLIBS="$IRCDLIBS-lsocket "
4069 SOCKLIB="-lsocket"
85904c22 4070fi
85904c22 4071
94c2b583 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
4073$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
0ff0b04a 4074if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
94c2b583 4075 $as_echo_n "(cached) " >&6
85904c22 4076else
94c2b583 4077 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-lnsl $LIBS"
4079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 4080/* end confdefs.h. */
85904c22
BM
4081
4082/* Override any GCC internal prototype to avoid an error.
4083 Use char because int might match the return type of a GCC
4084 builtin and then its argument prototype would still apply. */
4085#ifdef __cplusplus
4086extern "C"
4087#endif
94c2b583 4088char inet_ntoa ();
85904c22
BM
4089int
4090main ()
4091{
94c2b583 4092return inet_ntoa ();
85904c22
BM
4093 ;
4094 return 0;
4095}
4096_ACEOF
94c2b583 4097if ac_fn_c_try_link "$LINENO"; then :
4098 ac_cv_lib_nsl_inet_ntoa=yes
85904c22 4099else
94c2b583 4100 ac_cv_lib_nsl_inet_ntoa=no
85904c22 4101fi
94c2b583 4102rm -f core conftest.err conftest.$ac_objext \
4103 conftest$ac_exeext conftest.$ac_ext
4104LIBS=$ac_check_lib_save_LIBS
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
4107$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
0ff0b04a 4108if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
94c2b583 4109 IRCDLIBS="$IRCDLIBS-lnsl "
4110 INETLIB="-lnsl"
4111fi
4112
07e707ae
BS
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5
4114$as_echo_n "checking for RAND_egd in -lcrypto... " >&6; }
4115if ${ac_cv_lib_crypto_RAND_egd+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 ac_check_lib_save_LIBS=$LIBS
4119LIBS="-lcrypto $LIBS"
4120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h. */
4122
4123/* Override any GCC internal prototype to avoid an error.
4124 Use char because int might match the return type of a GCC
4125 builtin and then its argument prototype would still apply. */
4126#ifdef __cplusplus
4127extern "C"
4128#endif
4129char RAND_egd ();
4130int
4131main ()
4132{
4133return RAND_egd ();
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_link "$LINENO"; then :
4139 ac_cv_lib_crypto_RAND_egd=yes
4140else
4141 ac_cv_lib_crypto_RAND_egd=no
4142fi
4143rm -f core conftest.err conftest.$ac_objext \
4144 conftest$ac_exeext conftest.$ac_ext
4145LIBS=$ac_check_lib_save_LIBS
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5
4148$as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; }
4149if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then :
4150
4151$as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h
4152
4153fi
9da19883
BM
4154
4155
4156
85904c22 4157
94c2b583 4158
bae1dcf1
BM
4159# We want to check for compiler flag support, but there is no way to make
4160# clang's "argument unused" warning fatal. So we invoke the compiler through a
4161# wrapper script that greps for this message.
4162saved_CC="$CC"
4163saved_CXX="$CXX"
4164saved_LD="$LD"
4165flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
4166CC="$flag_wrap $CC"
4167CXX="$flag_wrap $CXX"
4168LD="$flag_wrap $LD"
4169
4170# We use the same hardening flags for C and C++. We must check that each flag
4171# is supported by both compilers.
4172
4173
4174
4175
4176# Check whether --enable-hardening was given.
4177if test "${enable_hardening+set}" = set; then :
4178 enableval=$enable_hardening; hardening="$enableval"
4179else
4180 hardening="yes"
4181fi
4182
4183
4184HARDEN_CFLAGS=""
4185HARDEN_LDFLAGS=""
4186if test x"$hardening" != x"no"; then :
4187
4188 ac_ext=c
4189ac_cpp='$CPP $CPPFLAGS'
4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4195$as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4196if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198else
4199
4200 ax_check_save_flags=$CFLAGS
4201 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
4204
4205int
4206main ()
4207{
4208
4209 ;
4210 return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"; then :
4214 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4215else
4216 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 CFLAGS=$ax_check_save_flags
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4222$as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4223if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4224 ac_ext=c
4225ac_cpp='$CPP $CPPFLAGS'
4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4231$as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4232if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234else
4235
4236 ax_check_save_flags=$CFLAGS
4237 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h. */
4240
4241int
4242main ()
4243{
4244
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249if ac_fn_c_try_compile "$LINENO"; then :
4250 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4251else
4252 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 CFLAGS=$ax_check_save_flags
4256fi
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4258$as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4259if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4260 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4261else
4262 :
4263fi
4264
4265 ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271else
4272 :
4273fi
4274
4275 ac_ext=c
4276ac_cpp='$CPP $CPPFLAGS'
4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281
4282 # This one will likely succeed, even on platforms where it does nothing.
4283 ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4290$as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4291if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293else
4294
4295 ax_check_save_flags=$CFLAGS
4296 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h. */
4299
4300int
4301main ()
4302{
4303
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308if ac_fn_c_try_compile "$LINENO"; then :
4309 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4310else
4311 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4312fi
4313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 CFLAGS=$ax_check_save_flags
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4317$as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4318if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4319 ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4326$as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4327if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330
4331 ax_check_save_flags=$CFLAGS
4332 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344if ac_fn_c_try_compile "$LINENO"; then :
4345 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4346else
4347 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4348fi
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 CFLAGS=$ax_check_save_flags
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4353$as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4354if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4355 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
4356else
4357 :
4358fi
4359
4360 ac_ext=c
4361ac_cpp='$CPP $CPPFLAGS'
4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366else
4367 :
4368fi
4369
4370 ac_ext=c
4371ac_cpp='$CPP $CPPFLAGS'
4372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376
4377 ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4384$as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4385if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387else
4388
4389 ax_check_save_flags=$CFLAGS
4390 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393
4394int
4395main ()
4396{
4397
4398 ;
4399 return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"; then :
4403 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4404else
4405 ax_cv_check_cflags__Werror___fstack_protector_all=no
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 CFLAGS=$ax_check_save_flags
4409fi
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4411$as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4412if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4413 ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4420$as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4421if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423else
4424
4425 ax_check_save_flags=$CFLAGS
4426 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438if ac_fn_c_try_compile "$LINENO"; then :
4439 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4440else
4441 ax_cv_check_cflags__Werror___fstack_protector_all=no
4442fi
4443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 CFLAGS=$ax_check_save_flags
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4447$as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4448if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4450$as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
4451if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453else
4454
4455 ax_check_save_flags=$LDFLAGS
4456 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h. */
4459
4460int
4461main ()
4462{
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468if ac_fn_c_try_link "$LINENO"; then :
4469 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4470else
4471 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4472fi
4473rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4475 LDFLAGS=$ax_check_save_flags
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
4478$as_echo "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
4479if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then :
4480 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4481 ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4488$as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4489if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491else
4492
4493 ax_check_save_flags=$CFLAGS
4494 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496/* end confdefs.h. */
4497
4498int
4499main ()
4500{
4501
4502 ;
4503 return 0;
4504}
4505_ACEOF
4506if ac_fn_c_try_compile "$LINENO"; then :
4507 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4508else
4509 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 CFLAGS=$ax_check_save_flags
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4515$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4516if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4517 ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4524$as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4525if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527else
4528
4529 ax_check_save_flags=$CFLAGS
4530 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h. */
4533
4534int
4535main ()
4536{
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
4542if ac_fn_c_try_compile "$LINENO"; then :
4543 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4544else
4545 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4546fi
4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 CFLAGS=$ax_check_save_flags
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4551$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4552if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4553 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4554else
4555 :
4556fi
4557
4558 ac_ext=c
4559ac_cpp='$CPP $CPPFLAGS'
4560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564else
4565 :
4566fi
4567
4568 ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 ac_ext=c
4575ac_cpp='$CPP $CPPFLAGS'
4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4581$as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4582if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585
4586 ax_check_save_flags=$CFLAGS
4587 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h. */
4590
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4601else
4602 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 CFLAGS=$ax_check_save_flags
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4608$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4609if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4610 ac_ext=c
4611ac_cpp='$CPP $CPPFLAGS'
4612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4617$as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4618if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620else
4621
4622 ax_check_save_flags=$CFLAGS
4623 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625/* end confdefs.h. */
4626
4627int
4628main ()
4629{
4630
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635if ac_fn_c_try_compile "$LINENO"; then :
4636 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4637else
4638 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4639fi
4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 CFLAGS=$ax_check_save_flags
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4644$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4645if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4646 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
4647else
4648 :
4649fi
4650
4651 ac_ext=c
4652ac_cpp='$CPP $CPPFLAGS'
4653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657else
4658 :
4659fi
4660
4661 ac_ext=c
4662ac_cpp='$CPP $CPPFLAGS'
4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667else
4668 :
4669fi
4670
4671else
4672 :
4673fi
4674
4675 ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681else
4682 :
4683fi
4684
4685 ac_ext=c
4686ac_cpp='$CPP $CPPFLAGS'
4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690
4691
4692 # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
4693 #
4694 # The linker checks also compile code, so we need to include -fPIE as well.
4695 ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4702$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4703if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705else
4706
4707 ax_check_save_flags=$CFLAGS
4708 CFLAGS="$CFLAGS -Werror -fPIE"
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h. */
4711
4712int
4713main ()
4714{
4715
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720if ac_fn_c_try_compile "$LINENO"; then :
4721 ax_cv_check_cflags__Werror___fPIE=yes
4722else
4723 ax_cv_check_cflags__Werror___fPIE=no
4724fi
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 CFLAGS=$ax_check_save_flags
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4729$as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4730if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4731 ac_ext=c
4732ac_cpp='$CPP $CPPFLAGS'
4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4738$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4739if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742
4743 ax_check_save_flags=$CFLAGS
4744 CFLAGS="$CFLAGS -Werror -fPIE"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756if ac_fn_c_try_compile "$LINENO"; then :
4757 ax_cv_check_cflags__Werror___fPIE=yes
4758else
4759 ax_cv_check_cflags__Werror___fPIE=no
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 CFLAGS=$ax_check_save_flags
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4765$as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4766if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
4768$as_echo_n "checking whether the linker accepts -fPIE -pie... " >&6; }
4769if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772
4773 ax_check_save_flags=$LDFLAGS
4774 LDFLAGS="$LDFLAGS -Werror -fPIE -pie"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786if ac_fn_c_try_link "$LINENO"; then :
4787 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4788else
4789 ax_cv_check_ldflags__Werror___fPIE__pie=no
4790fi
4791rm -f core conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793 LDFLAGS=$ax_check_save_flags
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
4796$as_echo "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
4797if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then :
4fd616f9
BM
4798 HARDEN_BINCFLAGS="-fPIE"
4799 HARDEN_BINLDFLAGS="-pie"
bae1dcf1
BM
4800else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
4802$as_echo_n "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
4803if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805else
4806
4807 ax_check_save_flags=$LDFLAGS
4808 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie"
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h. */
4811
4812int
4813main ()
4814{
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_link "$LINENO"; then :
4821 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
4822else
4823 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LDFLAGS=$ax_check_save_flags
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
4830$as_echo "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
4831if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then :
4fd616f9
BM
4832 HARDEN_BINCFLAGS="-fPIE"
4833 HARDEN_BINLDFLAGS="-Wl,-pie"
bae1dcf1
BM
4834else
4835 :
4836fi
4837
4838fi
4839
4840else
4841 :
4842fi
4843
4844 ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850else
4851 :
4852fi
4853
4854 ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
4862$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
4863if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866
4867 ax_check_save_flags=$LDFLAGS
4868 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro"
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870/* end confdefs.h. */
4871
4872int
4873main ()
4874{
4875
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_link "$LINENO"; then :
4881 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
4882else
4883 ax_cv_check_ldflags__Werror___Wl__z_relro=no
4884fi
4885rm -f core conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LDFLAGS=$ax_check_save_flags
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
4890$as_echo "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
4891if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes; then :
4892 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
4894$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
4895if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897else
4898
4899 ax_check_save_flags=$LDFLAGS
4900 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h. */
4903
4904int
4905main ()
4906{
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_link "$LINENO"; then :
4913 ax_cv_check_ldflags__Werror___Wl__z_now=yes
4914else
4915 ax_cv_check_ldflags__Werror___Wl__z_now=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 LDFLAGS=$ax_check_save_flags
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
4922$as_echo "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
4923if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then :
4924 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
4925else
4926 :
4927fi
4928
4929else
4930 :
4931fi
4932
4933fi
4934
4935
4936
4fd616f9
BM
4937
4938
bae1dcf1
BM
4939# End of flag tests.
4940CC="$saved_CC"
4941CXX="$saved_CXX"
4942LD="$saved_LD"
4943
94c2b583 4944
4945
c19165c8
BM
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
4947$as_echo_n "checking if your system has IPv6 support... " >&6; }
4948if ${ac_cv_ip6+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950else
4951
4952save_libs="$LIBS"
4953LIBS="$LIBS $SOCKLIB"
4954if test "$cross_compiling" = yes; then :
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957as_fn_error $? "cannot run test program while cross compiling
4958See \`config.log' for more details" "$LINENO" 5; }
4959else
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h. */
4962
4963#include <sys/types.h>
4964#include <sys/socket.h>
4965int main() {
c51c3800
BM
4966int s = socket(AF_INET6, SOCK_STREAM, 0);
4967exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
c19165c8
BM
4968}
4969
4970_ACEOF
4971if ac_fn_c_try_run "$LINENO"; then :
4972 ac_cv_ip6=yes
4973else
4974 ac_cv_ip6=no
4975fi
4976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4977 conftest.$ac_objext conftest.beam conftest.$ac_ext
4978fi
4979
4980
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
4983$as_echo "$ac_cv_ip6" >&6; }
4984if test "$ac_cv_ip6" = "no"; then
4985 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
4986fi
4987LIBS="$save_libs"
94c2b583 4988
4989ac_ext=c
4990ac_cpp='$CPP $CPPFLAGS'
4991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4995$as_echo_n "checking how to run the C preprocessor... " >&6; }
4996# On Suns, sometimes $CPP names a directory.
4997if test -n "$CPP" && test -d "$CPP"; then
4998 CPP=
85904c22 4999fi
94c2b583 5000if test -z "$CPP"; then
0ff0b04a 5001 if ${ac_cv_prog_CPP+:} false; then :
94c2b583 5002 $as_echo_n "(cached) " >&6
5003else
5004 # Double quotes because CPP needs to be expanded
5005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5006 do
5007 ac_preproc_ok=false
5008for ac_c_preproc_warn_flag in '' yes
5009do
5010 # Use a header file that comes with gcc, so configuring glibc
5011 # with a fresh cross-compiler works.
5012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5013 # <limits.h> exists even on freestanding compilers.
5014 # On the NeXT, cc -E runs the code through the compiler's parser,
5015 # not just through cpp. "Syntax error" is here to catch this case.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h. */
5018#ifdef __STDC__
5019# include <limits.h>
5020#else
5021# include <assert.h>
5022#endif
5023 Syntax error
85904c22 5024_ACEOF
94c2b583 5025if ac_fn_c_try_cpp "$LINENO"; then :
5026
5027else
5028 # Broken: fails on valid input.
5029continue
5030fi
0ff0b04a 5031rm -f conftest.err conftest.i conftest.$ac_ext
85904c22 5032
94c2b583 5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h. */
5037#include <ac_nonexistent.h>
85904c22 5038_ACEOF
94c2b583 5039if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: success on invalid input.
5041continue
5042else
5043 # Passes both tests.
5044ac_preproc_ok=:
5045break
5046fi
0ff0b04a 5047rm -f conftest.err conftest.i conftest.$ac_ext
94c2b583 5048
5049done
5050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0ff0b04a 5051rm -f conftest.i conftest.err conftest.$ac_ext
94c2b583 5052if $ac_preproc_ok; then :
5053 break
5054fi
5055
5056 done
5057 ac_cv_prog_CPP=$CPP
85904c22
BM
5058
5059fi
94c2b583 5060 CPP=$ac_cv_prog_CPP
5061else
5062 ac_cv_prog_CPP=$CPP
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5065$as_echo "$CPP" >&6; }
5066ac_preproc_ok=false
5067for ac_c_preproc_warn_flag in '' yes
85904c22 5068do
94c2b583 5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 5076/* end confdefs.h. */
85904c22
BM
5077#ifdef __STDC__
5078# include <limits.h>
5079#else
5080# include <assert.h>
5081#endif
94c2b583 5082 Syntax error
5083_ACEOF
5084if ac_fn_c_try_cpp "$LINENO"; then :
85904c22 5085
94c2b583 5086else
5087 # Broken: fails on valid input.
5088continue
5089fi
0ff0b04a 5090rm -f conftest.err conftest.i conftest.$ac_ext
85904c22 5091
94c2b583 5092 # OK, works on sane cases. Now check whether nonexistent headers
5093 # can be detected and how.
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h. */
5096#include <ac_nonexistent.h>
85904c22 5097_ACEOF
94c2b583 5098if ac_fn_c_try_cpp "$LINENO"; then :
5099 # Broken: success on invalid input.
5100continue
85904c22 5101else
94c2b583 5102 # Passes both tests.
5103ac_preproc_ok=:
5104break
85904c22 5105fi
0ff0b04a 5106rm -f conftest.err conftest.i conftest.$ac_ext
94c2b583 5107
5108done
5109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0ff0b04a 5110rm -f conftest.i conftest.err conftest.$ac_ext
94c2b583 5111if $ac_preproc_ok; then :
85904c22 5112
94c2b583 5113else
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
5116as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5117See \`config.log' for more details" "$LINENO" 5; }
85904c22 5118fi
85904c22 5119
94c2b583 5120ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5128$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
0ff0b04a 5129if ${ac_cv_path_GREP+:} false; then :
94c2b583 5130 $as_echo_n "(cached) " >&6
5131else
5132 if test -z "$GREP"; then
5133 ac_path_GREP_found=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_prog in grep ggrep; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f1c5f885 5143 as_fn_executable_p "$ac_path_GREP" || continue
94c2b583 5144# Check for GNU ac_path_GREP and select it if it is found.
5145 # Check for GNU $ac_path_GREP
5146case `"$ac_path_GREP" --version 2>&1` in
5147*GNU*)
5148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5149*)
5150 ac_count=0
5151 $as_echo_n 0123456789 >"conftest.in"
5152 while :
5153 do
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo 'GREP' >> "conftest.nl"
5158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_GREP="$ac_path_GREP"
5164 ac_path_GREP_max=$ac_count
5165 fi
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170esac
5171
5172 $ac_path_GREP_found && break 3
5173 done
5174 done
5175 done
5176IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_GREP"; then
0ff0b04a 5178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
94c2b583 5179 fi
5180else
5181 ac_cv_path_GREP=$GREP
5182fi
85904c22
BM
5183
5184fi
94c2b583 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5186$as_echo "$ac_cv_path_GREP" >&6; }
5187 GREP="$ac_cv_path_GREP"
85904c22
BM
5188
5189
94c2b583 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5191$as_echo_n "checking for egrep... " >&6; }
0ff0b04a 5192if ${ac_cv_path_EGREP+:} false; then :
94c2b583 5193 $as_echo_n "(cached) " >&6
85904c22 5194else
94c2b583 5195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5196 then ac_cv_path_EGREP="$GREP -E"
5197 else
5198 if test -z "$EGREP"; then
5199 ac_path_EGREP_found=false
5200 # Loop through the user's path and test for each of PROGNAME-LIST
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_prog in egrep; do
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f1c5f885 5209 as_fn_executable_p "$ac_path_EGREP" || continue
94c2b583 5210# Check for GNU ac_path_EGREP and select it if it is found.
5211 # Check for GNU $ac_path_EGREP
5212case `"$ac_path_EGREP" --version 2>&1` in
5213*GNU*)
5214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5215*)
5216 ac_count=0
5217 $as_echo_n 0123456789 >"conftest.in"
5218 while :
5219 do
5220 cat "conftest.in" "conftest.in" >"conftest.tmp"
5221 mv "conftest.tmp" "conftest.in"
5222 cp "conftest.in" "conftest.nl"
5223 $as_echo 'EGREP' >> "conftest.nl"
5224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5226 as_fn_arith $ac_count + 1 && ac_count=$as_val
5227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5228 # Best one so far, save it but keep looking for a better one
5229 ac_cv_path_EGREP="$ac_path_EGREP"
5230 ac_path_EGREP_max=$ac_count
5231 fi
5232 # 10*(2^10) chars as input seems more than enough
5233 test $ac_count -gt 10 && break
5234 done
5235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5236esac
85904c22 5237
94c2b583 5238 $ac_path_EGREP_found && break 3
5239 done
5240 done
5241 done
5242IFS=$as_save_IFS
5243 if test -z "$ac_cv_path_EGREP"; then
0ff0b04a 5244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
94c2b583 5245 fi
5246else
5247 ac_cv_path_EGREP=$EGREP
5248fi
85904c22 5249
94c2b583 5250 fi
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5253$as_echo "$ac_cv_path_EGREP" >&6; }
5254 EGREP="$ac_cv_path_EGREP"
85904c22 5255
85904c22 5256
94c2b583 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5258$as_echo_n "checking for ANSI C header files... " >&6; }
0ff0b04a 5259if ${ac_cv_header_stdc+:} false; then :
94c2b583 5260 $as_echo_n "(cached) " >&6
5261else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h. */
5264#include <stdlib.h>
5265#include <stdarg.h>
5266#include <string.h>
5267#include <float.h>
85904c22
BM
5268
5269int
5270main ()
5271{
94c2b583 5272
85904c22
BM
5273 ;
5274 return 0;
5275}
5276_ACEOF
94c2b583 5277if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_header_stdc=yes
85904c22 5279else
94c2b583 5280 ac_cv_header_stdc=no
85904c22 5281fi
94c2b583 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85904c22 5283
94c2b583 5284if test $ac_cv_header_stdc = yes; then
5285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287/* end confdefs.h. */
5288#include <string.h>
85904c22 5289
85904c22 5290_ACEOF
94c2b583 5291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "memchr" >/dev/null 2>&1; then :
85904c22 5293
94c2b583 5294else
5295 ac_cv_header_stdc=no
85904c22 5296fi
94c2b583 5297rm -f conftest*
85904c22 5298
94c2b583 5299fi
85904c22 5300
94c2b583 5301if test $ac_cv_header_stdc = yes; then
5302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 5304/* end confdefs.h. */
94c2b583 5305#include <stdlib.h>
85904c22 5306
94c2b583 5307_ACEOF
5308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5309 $EGREP "free" >/dev/null 2>&1; then :
85904c22 5310
94c2b583 5311else
5312 ac_cv_header_stdc=no
5313fi
5314rm -f conftest*
85904c22 5315
94c2b583 5316fi
85904c22 5317
94c2b583 5318if test $ac_cv_header_stdc = yes; then
5319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5320 if test "$cross_compiling" = yes; then :
5321 :
5322else
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
5325#include <ctype.h>
5326#include <stdlib.h>
5327#if ((' ' & 0x0FF) == 0x020)
5328# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5329# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5330#else
5331# define ISLOWER(c) \
5332 (('a' <= (c) && (c) <= 'i') \
5333 || ('j' <= (c) && (c) <= 'r') \
5334 || ('s' <= (c) && (c) <= 'z'))
5335# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
85904c22
BM
5336#endif
5337
94c2b583 5338#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
85904c22
BM
5339int
5340main ()
5341{
94c2b583 5342 int i;
5343 for (i = 0; i < 256; i++)
5344 if (XOR (islower (i), ISLOWER (i))
5345 || toupper (i) != TOUPPER (i))
5346 return 2;
85904c22
BM
5347 return 0;
5348}
5349_ACEOF
94c2b583 5350if ac_fn_c_try_run "$LINENO"; then :
5351
85904c22 5352else
94c2b583 5353 ac_cv_header_stdc=no
5354fi
5355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5356 conftest.$ac_objext conftest.beam conftest.$ac_ext
5357fi
85904c22 5358
85904c22 5359fi
94c2b583 5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5362$as_echo "$ac_cv_header_stdc" >&6; }
5363if test $ac_cv_header_stdc = yes; then
5364
5365$as_echo "#define STDC_HEADERS 1" >>confdefs.h
85904c22 5366
85904c22 5367fi
85904c22 5368
94c2b583 5369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5371 inttypes.h stdint.h unistd.h
5372do :
5373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5375"
0ff0b04a 5376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
94c2b583 5377 cat >>confdefs.h <<_ACEOF
5378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
85904c22
BM
5379_ACEOF
5380
5381fi
94c2b583 5382
85904c22
BM
5383done
5384
85904c22 5385
94c2b583 5386ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
0ff0b04a 5387if test "x$ac_cv_header_sys_param_h" = xyes; then :
7dbf154d 5388
94c2b583 5389$as_echo "#define PARAMH /**/" >>confdefs.h
4eff1e84 5390
94c2b583 5391fi
5392
5393
5394ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
0ff0b04a 5395if test "x$ac_cv_header_stdlib_h" = xyes; then :
94c2b583 5396
5397$as_echo "#define STDLIBH /**/" >>confdefs.h
85904c22 5398
7dbf154d 5399fi
85904c22 5400
94c2b583 5401
5402ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
0ff0b04a 5403if test "x$ac_cv_header_stddef_h" = xyes; then :
94c2b583 5404
5405$as_echo "#define STDDEFH /**/" >>confdefs.h
c0790e90 5406
85904c22 5407fi
c0790e90 5408
94c2b583 5409
5410ac_fn_c_check_header_mongrel "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
0ff0b04a 5411if test "x$ac_cv_header_sys_syslog_h" = xyes; then :
94c2b583 5412
5413$as_echo "#define SYSSYSLOGH /**/" >>confdefs.h
c0790e90 5414
85904c22
BM
5415fi
5416
85904c22 5417
94c2b583 5418ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
0ff0b04a 5419if test "x$ac_cv_header_unistd_h" = xyes; then :
85904c22 5420
94c2b583 5421$as_echo "#define UNISTDH /**/" >>confdefs.h
85904c22 5422
94c2b583 5423fi
5424
5425
5426ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
0ff0b04a 5427if test "x$ac_cv_header_string_h" = xyes; then :
94c2b583 5428
5429$as_echo "#define STRINGH /**/" >>confdefs.h
85904c22 5430
7dbf154d 5431fi
94c2b583 5432
5433
5434ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
0ff0b04a 5435if test "x$ac_cv_header_strings_h" = xyes; then :
94c2b583 5436
5437$as_echo "#define STRINGSH /**/" >>confdefs.h
5438
85904c22
BM
5439fi
5440
5441
94c2b583 5442ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
0ff0b04a 5443if test "x$ac_cv_header_malloc_h" = xyes; then :
94c2b583 5444
5445$as_echo "#define MALLOCH <malloc.h>" >>confdefs.h
c0790e90 5446
4eff1e84 5447fi
c0790e90 5448
94c2b583 5449
5450ac_fn_c_check_header_mongrel "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
0ff0b04a 5451if test "x$ac_cv_header_sys_rusage_h" = xyes; then :
94c2b583 5452
5453$as_echo "#define RUSAGEH /**/" >>confdefs.h
85904c22
BM
5454
5455fi
7dbf154d 5456
85904c22 5457
94c2b583 5458ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
0ff0b04a 5459if test "x$ac_cv_header_glob_h" = xyes; then :
85904c22 5460
94c2b583 5461$as_echo "#define GLOBH /**/" >>confdefs.h
85904c22 5462
94c2b583 5463fi
7dbf154d 5464
94c2b583 5465
9f710925 5466for ac_header in stdint.h inttypes.h
5467do :
5468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
0ff0b04a 5470if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9f710925 5471 cat >>confdefs.h <<_ACEOF
5472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473_ACEOF
5474
5475fi
5476
5477done
5478
94c2b583 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5480$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
0ff0b04a 5481if ${ac_cv_c_const+:} false; then :
94c2b583 5482 $as_echo_n "(cached) " >&6
5483else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h. */
85904c22
BM
5486
5487int
5488main ()
5489{
f1c5f885 5490
94c2b583 5491#ifndef __cplusplus
f1c5f885 5492 /* Ultrix mips cc rejects this sort of thing. */
94c2b583 5493 typedef int charset[2];
f1c5f885 5494 const charset cs = { 0, 0 };
94c2b583 5495 /* SunOS 4.1.1 cc rejects this. */
5496 char const *const *pcpcc;
5497 char **ppc;
5498 /* NEC SVR4.0.2 mips cc rejects this. */
5499 struct point {int x, y;};
5500 static struct point const zero = {0,0};
5501 /* AIX XL C 1.02.0.0 rejects this.
5502 It does not let you subtract one const X* pointer from another in
5503 an arm of an if-expression whose if-part is not a constant
5504 expression */
5505 const char *g = "string";
5506 pcpcc = &g + (g ? g-g : 0);
5507 /* HPUX 7.0 cc rejects these. */
5508 ++pcpcc;
5509 ppc = (char**) pcpcc;
5510 pcpcc = (char const *const *) ppc;
f1c5f885
BM
5511 { /* SCO 3.2v4 cc rejects this sort of thing. */
5512 char tx;
5513 char *t = &tx;
94c2b583 5514 char const *s = 0 ? (char *) 0 : (char const *) 0;
5515
5516 *t++ = 0;
5517 if (s) return 0;
5518 }
5519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5520 int x[] = {25, 17};
5521 const int *foo = &x[0];
5522 ++foo;
5523 }
5524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5525 typedef const int *iptr;
5526 iptr p = 0;
5527 ++p;
5528 }
f1c5f885 5529 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
94c2b583 5530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
f1c5f885
BM
5531 struct s { int j; const int *ap[3]; } bx;
5532 struct s *b = &bx; b->j = 5;
94c2b583 5533 }
5534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5535 const int foo = 10;
5536 if (!foo) return 0;
5537 }
5538 return !cs[0] && !zero.x;
5539#endif
5540
85904c22
BM
5541 ;
5542 return 0;
5543}
5544_ACEOF
94c2b583 5545if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_c_const=yes
4eff1e84 5547else
94c2b583 5548 ac_cv_c_const=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5553$as_echo "$ac_cv_c_const" >&6; }
5554if test $ac_cv_c_const = no; then
5555
5556$as_echo "#define const /**/" >>confdefs.h
5557
5558fi
5559
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561$as_echo_n "checking for inline... " >&6; }
0ff0b04a 5562if ${ac_cv_c_inline+:} false; then :
94c2b583 5563 $as_echo_n "(cached) " >&6
5564else
5565 ac_cv_c_inline=no
5566for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h. */
5569#ifndef __cplusplus
5570typedef int foo_t;
5571static $ac_kw foo_t static_foo () {return 0; }
5572$ac_kw foo_t foo () {return 0; }
5573#endif
85904c22 5574
94c2b583 5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
4eff1e84 5578fi
94c2b583 5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581done
491d6f70 5582
4eff1e84 5583fi
94c2b583 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585$as_echo "$ac_cv_c_inline" >&6; }
5586
5587case $ac_cv_c_inline in
5588 inline | yes) ;;
5589 *)
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595#ifndef __cplusplus
5596#define inline $ac_val
5597#endif
5598_ACEOF
5599 ;;
5600esac
5601
5602
5603ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
0ff0b04a 5604if test "x$ac_cv_type_mode_t" = xyes; then :
94c2b583 5605
5606else
5607
5608cat >>confdefs.h <<_ACEOF
5609#define mode_t int
85904c22 5610_ACEOF
c0790e90 5611
94c2b583 5612fi
5613
5614ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
0ff0b04a 5615if test "x$ac_cv_type_size_t" = xyes; then :
94c2b583 5616
4eff1e84 5617else
94c2b583 5618
5619cat >>confdefs.h <<_ACEOF
5620#define size_t unsigned int
85904c22 5621_ACEOF
85904c22 5622
94c2b583 5623fi
85904c22 5624
85904c22 5625
94c2b583 5626 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
0ff0b04a 5627if test "x$ac_cv_type_intptr_t" = xyes; then :
85904c22 5628
94c2b583 5629$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
7dbf154d 5630
94c2b583 5631else
5632 for ac_type in 'int' 'long int' 'long long int'; do
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635$ac_includes_default
7dbf154d 5636int
5637main ()
5638{
94c2b583 5639static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
f1c5f885
BM
5640test_array [0] = 0;
5641return test_array [0];
94c2b583 5642
85904c22 5643 ;
7dbf154d 5644 return 0;
5645}
c0790e90 5646_ACEOF
94c2b583 5647if ac_fn_c_try_compile "$LINENO"; then :
85904c22 5648
94c2b583 5649cat >>confdefs.h <<_ACEOF
5650#define intptr_t $ac_type
85904c22 5651_ACEOF
7dbf154d 5652
94c2b583 5653 ac_type=
491d6f70 5654fi
94c2b583 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 test -z "$ac_type" && break
5657 done
4eff1e84 5658fi
4eff1e84 5659
c0790e90 5660
491d6f70 5661
94c2b583 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5663$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
0ff0b04a 5664if ${ac_cv_header_time+:} false; then :
94c2b583 5665 $as_echo_n "(cached) " >&6
85904c22 5666else
94c2b583 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 5668/* end confdefs.h. */
94c2b583 5669#include <sys/types.h>
5670#include <sys/time.h>
5671#include <time.h>
7dbf154d 5672
85904c22
BM
5673int
5674main ()
5675{
94c2b583 5676if ((struct tm *) 0)
5677return 0;
85904c22
BM
5678 ;
5679 return 0;
5680}
5681_ACEOF
94c2b583 5682if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_header_time=yes
85904c22 5684else
94c2b583 5685 ac_cv_header_time=no
85904c22 5686fi
94c2b583 5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4eff1e84 5688fi
94c2b583 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5690$as_echo "$ac_cv_header_time" >&6; }
5691if test $ac_cv_header_time = yes; then
c0790e90 5692
94c2b583 5693$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
c0790e90 5694
94c2b583 5695fi
545d087a 5696
a886c1eb
BM
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5698$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5699if ${ac_cv_header_sys_wait_h+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h. */
5704#include <sys/types.h>
5705#include <sys/wait.h>
5706#ifndef WEXITSTATUS
5707# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5708#endif
5709#ifndef WIFEXITED
5710# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5711#endif
5712
5713int
5714main ()
5715{
5716 int s;
5717 wait (&s);
5718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5719 ;
5720 return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_header_sys_wait_h=yes
5725else
5726 ac_cv_header_sys_wait_h=no
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5731$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5732if test $ac_cv_header_sys_wait_h = yes; then
5733
5734$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5735
5736fi
5737
94c2b583 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5739$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
0ff0b04a 5740if ${ac_cv_struct_tm+:} false; then :
94c2b583 5741 $as_echo_n "(cached) " >&6
85904c22 5742else
94c2b583 5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 5744/* end confdefs.h. */
94c2b583 5745#include <sys/types.h>
5746#include <time.h>
9e9390e5 5747
85904c22
BM
5748int
5749main ()
5750{
94c2b583 5751struct tm tm;
5752 int *p = &tm.tm_sec;
5753 return !p;
85904c22
BM
5754 ;
5755 return 0;
5756}
5757_ACEOF
94c2b583 5758if ac_fn_c_try_compile "$LINENO"; then :
5759 ac_cv_struct_tm=time.h
85904c22 5760else
94c2b583 5761 ac_cv_struct_tm=sys/time.h
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4eff1e84 5764fi
94c2b583 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5766$as_echo "$ac_cv_struct_tm" >&6; }
5767if test $ac_cv_struct_tm = sys/time.h; then
5768
5769$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9e9390e5 5770
c0790e90 5771fi
7dbf154d 5772
94c2b583 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5774$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
0ff0b04a 5775if ${ac_cv_type_uid_t+:} false; then :
94c2b583 5776 $as_echo_n "(cached) " >&6
5777else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h. */
5780#include <sys/types.h>
5781
85904c22 5782_ACEOF
94c2b583 5783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784 $EGREP "uid_t" >/dev/null 2>&1; then :
5785 ac_cv_type_uid_t=yes
5786else
5787 ac_cv_type_uid_t=no
5788fi
5789rm -f conftest*
545d087a 5790
7dbf154d 5791fi
94c2b583 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5793$as_echo "$ac_cv_type_uid_t" >&6; }
5794if test $ac_cv_type_uid_t = no; then
5795
5796$as_echo "#define uid_t int" >>confdefs.h
5797
5798
5799$as_echo "#define gid_t int" >>confdefs.h
7dbf154d 5800
7dbf154d 5801fi
5802
94c2b583 5803# The cast to long int works around a bug in the HP C Compiler
5804# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806# This bug is HP SR number 8606223364.
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5808$as_echo_n "checking size of short... " >&6; }
0ff0b04a 5809if ${ac_cv_sizeof_short+:} false; then :
94c2b583 5810 $as_echo_n "(cached) " >&6
5811else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7dbf154d 5813
85904c22 5814else
94c2b583 5815 if test "$ac_cv_type_short" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
5818as_fn_error 77 "cannot compute sizeof (short)
5819See \`config.log' for more details" "$LINENO" 5; }
94c2b583 5820 else
5821 ac_cv_sizeof_short=0
5822 fi
5823fi
5824
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5827$as_echo "$ac_cv_sizeof_short" >&6; }
5828
5829
5830
5831cat >>confdefs.h <<_ACEOF
5832#define SIZEOF_SHORT $ac_cv_sizeof_short
85904c22 5833_ACEOF
4eff1e84 5834
cadd4230 5835
94c2b583 5836# The cast to long int works around a bug in the HP C Compiler
5837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839# This bug is HP SR number 8606223364.
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5841$as_echo_n "checking size of int... " >&6; }
0ff0b04a 5842if ${ac_cv_sizeof_int+:} false; then :
94c2b583 5843 $as_echo_n "(cached) " >&6
5844else
5845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
c0790e90 5846
94c2b583 5847else
5848 if test "$ac_cv_type_int" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
5851as_fn_error 77 "cannot compute sizeof (int)
5852See \`config.log' for more details" "$LINENO" 5; }
94c2b583 5853 else
5854 ac_cv_sizeof_int=0
5855 fi
5856fi
4eff1e84 5857
94c2b583 5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5860$as_echo "$ac_cv_sizeof_int" >&6; }
4eff1e84 5861
94c2b583 5862
5863
5864cat >>confdefs.h <<_ACEOF
5865#define SIZEOF_INT $ac_cv_sizeof_int
85904c22 5866_ACEOF
94c2b583 5867
5868
5869# The cast to long int works around a bug in the HP C Compiler
5870# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872# This bug is HP SR number 8606223364.
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5874$as_echo_n "checking size of long... " >&6; }
0ff0b04a 5875if ${ac_cv_sizeof_long+:} false; then :
94c2b583 5876 $as_echo_n "(cached) " >&6
85904c22 5877else
94c2b583 5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5879
5880else
5881 if test "$ac_cv_type_long" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
5884as_fn_error 77 "cannot compute sizeof (long)
5885See \`config.log' for more details" "$LINENO" 5; }
94c2b583 5886 else
5887 ac_cv_sizeof_long=0
5888 fi
5889fi
7dbf154d 5890
5891fi
94c2b583 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5893$as_echo "$ac_cv_sizeof_long" >&6; }
5894
5895
5896
5897cat >>confdefs.h <<_ACEOF
5898#define SIZEOF_LONG $ac_cv_sizeof_long
5899_ACEOF
5900
5901
5902if test "$ac_cv_sizeof_int" = 2 ; then
5903 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
0ff0b04a 5904if test "x$ac_cv_type_int16_t" = xyes; then :
94c2b583 5905
5906else
5907
5908cat >>confdefs.h <<_ACEOF
5909#define int16_t int
5910_ACEOF
c0790e90 5911
4eff1e84 5912fi
7dbf154d 5913
94c2b583 5914 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
0ff0b04a 5915if test "x$ac_cv_type_u_int16_t" = xyes; then :
7dbf154d 5916
85904c22 5917else
9e9390e5 5918
94c2b583 5919cat >>confdefs.h <<_ACEOF
5920#define u_int16_t unsigned int
85904c22 5921_ACEOF
85904c22 5922
94c2b583 5923fi
9e9390e5 5924
94c2b583 5925elif test "$ac_cv_sizeof_short" = 2 ; then
5926 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
0ff0b04a 5927if test "x$ac_cv_type_int16_t" = xyes; then :
9e9390e5 5928
94c2b583 5929else
19112729 5930
94c2b583 5931cat >>confdefs.h <<_ACEOF
5932#define int16_t short
19112729 5933_ACEOF
19112729 5934
5935fi
f69335e6 5936
94c2b583 5937 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
0ff0b04a 5938if test "x$ac_cv_type_u_int16_t" = xyes; then :
4eff1e84 5939
94c2b583 5940else
5941
5942cat >>confdefs.h <<_ACEOF
5943#define u_int16_t unsigned short
4eff1e84 5944_ACEOF
85904c22 5945
f69335e6 5946fi
cadd4230 5947
94c2b583 5948else
0ff0b04a 5949 as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
4eff1e84 5950fi
94c2b583 5951if test "$ac_cv_sizeof_int" = 4 ; then
5952 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
0ff0b04a 5953if test "x$ac_cv_type_int32_t" = xyes; then :
545d087a 5954
7dbf154d 5955else
4eff1e84 5956
94c2b583 5957cat >>confdefs.h <<_ACEOF
5958#define int32_t int
5959_ACEOF
4eff1e84 5960
94c2b583 5961fi
4eff1e84 5962
94c2b583 5963 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
0ff0b04a 5964if test "x$ac_cv_type_u_int32_t" = xyes; then :
545d087a 5965
7dbf154d 5966else
f69335e6 5967
94c2b583 5968cat >>confdefs.h <<_ACEOF
5969#define u_int32_t unsigned int
5970_ACEOF
f69335e6 5971
4eff1e84 5972fi
85904c22 5973
94c2b583 5974elif test "$ac_cv_sizeof_short" = 4 ; then
5975 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
0ff0b04a 5976if test "x$ac_cv_type_int32_t" = xyes; then :
545d087a 5977
7dbf154d 5978else
f40ec73c 5979
94c2b583 5980cat >>confdefs.h <<_ACEOF
5981#define int32_t short
f69335e6 5982_ACEOF
4eff1e84 5983
85904c22 5984fi
c0790e90 5985
94c2b583 5986 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
0ff0b04a 5987if test "x$ac_cv_type_u_int32_t" = xyes; then :
94c2b583 5988
5989else
85904c22 5990
94c2b583 5991cat >>confdefs.h <<_ACEOF
5992#define u_int32_t unsigned short
85904c22 5993_ACEOF
545d087a 5994
94c2b583 5995fi
5996
5997elif test "$ac_cv_sizeof_long" = 4 ; then
5998 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
0ff0b04a 5999if test "x$ac_cv_type_int32_t" = xyes; then :
94c2b583 6000
4eff1e84 6001else
85904c22 6002
94c2b583 6003cat >>confdefs.h <<_ACEOF
6004#define int32_t long
85904c22 6005_ACEOF
7dbf154d 6006
94c2b583 6007fi
6008
6009 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
0ff0b04a 6010if test "x$ac_cv_type_u_int32_t" = xyes; then :
94c2b583 6011
6012else
4eff1e84 6013
94c2b583 6014cat >>confdefs.h <<_ACEOF
6015#define u_int32_t unsigned long
85904c22 6016_ACEOF
4eff1e84 6017
94c2b583 6018fi
6019
6020else
0ff0b04a 6021 as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
94c2b583 6022fi
6023# The cast to long int works around a bug in the HP C Compiler
6024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026# This bug is HP SR number 8606223364.
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5
6028$as_echo_n "checking size of rlim_t... " >&6; }
0ff0b04a 6029if ${ac_cv_sizeof_rlim_t+:} false; then :
94c2b583 6030 $as_echo_n "(cached) " >&6
c0790e90 6031else
94c2b583 6032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "$ac_includes_default"; then :
7dbf154d 6033
4eff1e84 6034else
94c2b583 6035 if test "$ac_cv_type_rlim_t" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6038as_fn_error 77 "cannot compute sizeof (rlim_t)
6039See \`config.log' for more details" "$LINENO" 5; }
94c2b583 6040 else
6041 ac_cv_sizeof_rlim_t=0
6042 fi
6043fi
6044
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5
6047$as_echo "$ac_cv_sizeof_rlim_t" >&6; }
6048
6049
6050
6051cat >>confdefs.h <<_ACEOF
6052#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
f69335e6 6053_ACEOF
4eff1e84 6054
6055
94c2b583 6056if test "$ac_cv_sizeof_rlim_t" = 8 ; then
4eff1e84 6057
94c2b583 6058$as_echo "#define LONG_LONG_RLIM_T /**/" >>confdefs.h
f40ec73c 6059
94c2b583 6060fi
4eff1e84 6061
94c2b583 6062
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of nonblocking sockets you have" >&5
6064$as_echo_n "checking what kind of nonblocking sockets you have... " >&6; }
0ff0b04a 6065if ${ac_cv_nonblocking+:} false; then :
94c2b583 6066 $as_echo_n "(cached) " >&6
f69335e6 6067else
7dbf154d 6068
94c2b583 6069save_libs="$LIBS"
6070LIBS="$LIBS $SOCKLIB"
6071if test "$cross_compiling" = yes; then :
6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6074as_fn_error $? "cannot run test program while cross compiling
6075See \`config.log' for more details" "$LINENO" 5; }
94c2b583 6076else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h. */
7dbf154d 6079
94c2b583 6080#include <sys/types.h>
6081#include <sys/socket.h>
6082#include <fcntl.h>
6083#include <sys/ioctl.h>
6084#include <sys/file.h>
6085#include <signal.h>
6086alarmed() {
6087exit(1);
6088}
6089int main() {
6090#ifdef O_NONBLOCK
6091char b[12], x[32];
6092int f, l = sizeof(x);
6093f = socket(AF_INET, SOCK_DGRAM, 0);
6094if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
6095signal(SIGALRM, alarmed);
6096alarm(3);
6097recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6098alarm(0);
6099exit(0);
6100}
6101#endif
6102exit(1);
6103}
4eff1e84 6104
4eff1e84 6105_ACEOF
94c2b583 6106if ac_fn_c_try_run "$LINENO"; then :
6107 ac_cv_nonblocking=O_NONBLOCK
4eff1e84 6108else
c0790e90 6109
94c2b583 6110if test "$cross_compiling" = yes; then :
6111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6113as_fn_error $? "cannot run test program while cross compiling
6114See \`config.log' for more details" "$LINENO" 5; }
f69335e6 6115else
94c2b583 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 6117/* end confdefs.h. */
f69335e6 6118
94c2b583 6119#include <sys/types.h>
6120#include <sys/socket.h>
6121#include <fcntl.h>
6122#include <sys/ioctl.h>
6123#include <sys/file.h>
85904c22 6124#include <signal.h>
94c2b583 6125alarmed() {
6126exit(0);
6127}
85904c22 6128int main() {
94c2b583 6129#ifdef O_NDELAY
6130char b[12], x[32];
6131int f, l = sizeof(x);
6132f = socket(AF_INET, SOCK_DGRAM, 0);
6133if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
6134signal(SIGALRM, alarmed);
6135alarm(3);
6136recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6137alarm(0);
6138exit(0);
6139}
6140#endif
6141exit(1);
85904c22 6142}
7dbf154d 6143_ACEOF
94c2b583 6144if ac_fn_c_try_run "$LINENO"; then :
6145 ac_cv_nonblocking=O_NDELAY
85904c22 6146else
c0790e90 6147
94c2b583 6148if test "$cross_compiling" = yes; then :
6149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6151as_fn_error $? "cannot run test program while cross compiling
6152See \`config.log' for more details" "$LINENO" 5; }
c0790e90 6153else
94c2b583 6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 6155/* end confdefs.h. */
c0790e90 6156
94c2b583 6157#include <sys/types.h>
6158#include <sys/socket.h>
6159#include <fcntl.h>
6160#include <sys/ioctl.h>
6161#include <sys/file.h>
85904c22 6162#include <signal.h>
94c2b583 6163alarmed() {
6164exit(1);
85904c22 6165}
85904c22 6166int main() {
94c2b583 6167#ifdef FIONBIO
6168char b[12], x[32];
6169int f, l = sizeof(x);
6170f = socket(AF_INET, SOCK_DGRAM, 0);
6171if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
6172signal(SIGALRM, alarmed);
6173alarm(3);
6174recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6175alarm(0);
85904c22
BM
6176exit(0);
6177}
94c2b583 6178#endif
6179exit(1);
cadd4230 6180
85904c22 6181_ACEOF
94c2b583 6182if ac_fn_c_try_run "$LINENO"; then :
6183 ac_cv_nonblocking=FIONBIO
c0790e90 6184else
94c2b583 6185 ac_cv_nonblocking=none
85904c22 6186fi
94c2b583 6187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6188 conftest.$ac_objext conftest.beam conftest.$ac_ext
85904c22 6189fi
c0790e90 6190
85904c22 6191fi
94c2b583 6192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6193 conftest.$ac_objext conftest.beam conftest.$ac_ext
4eff1e84 6194fi
c0790e90 6195
85904c22 6196fi
94c2b583 6197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6198 conftest.$ac_objext conftest.beam conftest.$ac_ext
6199fi
c0790e90 6200
94c2b583 6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nonblocking" >&5
6203$as_echo "$ac_cv_nonblocking" >&6; }
6204if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
85904c22 6205
94c2b583 6206$as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
545d087a 6207
94c2b583 6208elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
c0790e90 6209
94c2b583 6210$as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
4eff1e84 6211
94c2b583 6212elif test "$ac_cv_nonblocking" = "FIONBIO"; then
c0790e90 6213
94c2b583 6214$as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
cadd4230 6215
f69335e6 6216fi
94c2b583 6217LIBS="$save_libs"
6218if test $ac_cv_c_compiler_gnu = yes; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6220$as_echo_n "checking whether $CC needs -traditional... " >&6; }
0ff0b04a 6221if ${ac_cv_prog_gcc_traditional+:} false; then :
94c2b583 6222 $as_echo_n "(cached) " >&6
4eff1e84 6223else
94c2b583 6224 ac_pattern="Autoconf.*'x'"
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 6226/* end confdefs.h. */
94c2b583 6227#include <sgtty.h>
6228Autoconf TIOCGETP
6229_ACEOF
6230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6232 ac_cv_prog_gcc_traditional=yes
6233else
6234 ac_cv_prog_gcc_traditional=no
6235fi
6236rm -f conftest*
ab9db562 6237
c0790e90 6238
94c2b583 6239 if test $ac_cv_prog_gcc_traditional = no; then
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h. */
6242#include <termio.h>
6243Autoconf TCGETA
6244_ACEOF
6245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6247 ac_cv_prog_gcc_traditional=yes
6248fi
6249rm -f conftest*
c0790e90 6250
94c2b583 6251 fi
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6254$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6255 if test $ac_cv_prog_gcc_traditional = yes; then
6256 CC="$CC -traditional"
6257 fi
6258fi
ab9db562 6259
94c2b583 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6261$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
0ff0b04a 6262if ${ac_cv_func_setpgrp_void+:} false; then :
94c2b583 6263 $as_echo_n "(cached) " >&6
6264else
6265 if test "$cross_compiling" = yes; then :
0ff0b04a 6266 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
94c2b583 6267else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h. */
6270$ac_includes_default
85904c22
BM
6271int
6272main ()
6273{
94c2b583 6274/* If this system has a BSD-style setpgrp which takes arguments,
6275 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6276 exit successfully. */
6277 return setpgrp (1,1) != -1;
85904c22
BM
6278 ;
6279 return 0;
6280}
4eff1e84 6281_ACEOF
94c2b583 6282if ac_fn_c_try_run "$LINENO"; then :
6283 ac_cv_func_setpgrp_void=no
85904c22 6284else
94c2b583 6285 ac_cv_func_setpgrp_void=yes
6286fi
6287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6288 conftest.$ac_objext conftest.beam conftest.$ac_ext
4eff1e84 6289fi
6290
85904c22 6291fi
94c2b583 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6293$as_echo "$ac_cv_func_setpgrp_void" >&6; }
6294if test $ac_cv_func_setpgrp_void = yes; then
4eff1e84 6295
94c2b583 6296$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
f69335e6 6297
94c2b583 6298fi
4eff1e84 6299
0ff0b04a 6300if ${ac_cv_func_setvbuf_reversed+:} false; then :
94c2b583 6301 $as_echo_n "(cached) " >&6
6302else
6303 ac_cv_func_setvbuf_reversed=no
85904c22 6304fi
4eff1e84 6305
4eff1e84 6306
94c2b583 6307for ac_func in snprintf
6308do :
6309 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
0ff0b04a 6310if test "x$ac_cv_func_snprintf" = xyes; then :
94c2b583 6311 cat >>confdefs.h <<_ACEOF
6312#define HAVE_SNPRINTF 1
f69335e6 6313_ACEOF
4eff1e84 6314
94c2b583 6315$as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
f69335e6 6316
94c2b583 6317fi
6318done
f40ec73c 6319
94c2b583 6320for ac_func in vsnprintf
6321do :
6322 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
0ff0b04a 6323if test "x$ac_cv_func_vsnprintf" = xyes; then :
94c2b583 6324 cat >>confdefs.h <<_ACEOF
6325#define HAVE_VSNPRINTF 1
f69335e6 6326_ACEOF
4eff1e84 6327
94c2b583 6328$as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
c0790e90 6329
6330fi
94c2b583 6331done
6332
6333for ac_func in strlcpy
6334do :
6335 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
0ff0b04a 6336if test "x$ac_cv_func_strlcpy" = xyes; then :
c0790e90 6337 cat >>confdefs.h <<_ACEOF
94c2b583 6338#define HAVE_STRLCPY 1
f69335e6 6339_ACEOF
f40ec73c 6340
94c2b583 6341$as_echo "#define HAVE_STRLCPY /**/" >>confdefs.h
6342
c0790e90 6343fi
6344done
545d087a 6345
94c2b583 6346for ac_func in strlcat
6347do :
6348 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
0ff0b04a 6349if test "x$ac_cv_func_strlcat" = xyes; then :
94c2b583 6350 cat >>confdefs.h <<_ACEOF
6351#define HAVE_STRLCAT 1
c0790e90 6352_ACEOF
545d087a 6353
94c2b583 6354$as_echo "#define HAVE_STRLCAT /**/" >>confdefs.h
85904c22 6355
94c2b583 6356fi
6357done
cadd4230 6358
94c2b583 6359for ac_func in strlncat
6360do :
6361 ac_fn_c_check_func "$LINENO" "strlncat" "ac_cv_func_strlncat"
0ff0b04a 6362if test "x$ac_cv_func_strlncat" = xyes; then :
94c2b583 6363 cat >>confdefs.h <<_ACEOF
6364#define HAVE_STRLNCAT 1
6365_ACEOF
7dbf154d 6366
94c2b583 6367$as_echo "#define HAVE_STRLNCAT /**/" >>confdefs.h
c0790e90 6368
7dbf154d 6369fi
94c2b583 6370done
6371
6372for ac_func in inet_pton
6373do :
6374 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
0ff0b04a 6375if test "x$ac_cv_func_inet_pton" = xyes; then :
c0790e90 6376 cat >>confdefs.h <<_ACEOF
94c2b583 6377#define HAVE_INET_PTON 1
f69335e6 6378_ACEOF
f40ec73c 6379
94c2b583 6380$as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
545d087a 6381
c0790e90 6382fi
6383done
545d087a 6384
94c2b583 6385for ac_func in inet_ntop
6386do :
6387 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
0ff0b04a 6388if test "x$ac_cv_func_inet_ntop" = xyes; then :
94c2b583 6389 cat >>confdefs.h <<_ACEOF
6390#define HAVE_INET_NTOP 1
7dbf154d 6391_ACEOF
7dbf154d 6392
94c2b583 6393$as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
7dbf154d 6394
94c2b583 6395fi
6396done
7dbf154d 6397
94c2b583 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variable length arrays are supported" >&5
6399$as_echo_n "checking if C99 variable length arrays are supported... " >&6; }
0ff0b04a 6400if ${ac_cv_varlen_arrays+:} false; then :
94c2b583 6401 $as_echo_n "(cached) " >&6
6402else
7dbf154d 6403
94c2b583 6404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h. */
f40ec73c 6406
545d087a
BM
6407int
6408main ()
6409{
94c2b583 6410
6411int main() {
6412int i = 5;
6413int a[i];
6414a[0] = 1;
6415return 0;
6416}
f69335e6 6417 ;
6418 return 0;
6419}
6420_ACEOF
94c2b583 6421if ac_fn_c_try_compile "$LINENO"; then :
6422 ac_cv_varlen_arrays=yes
f69335e6 6423else
94c2b583 6424 ac_cv_varlen_arrays=no
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cadd4230 6427
f69335e6 6428fi
94c2b583 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_varlen_arrays" >&5
6430$as_echo "$ac_cv_varlen_arrays" >&6; }
6431if test "$ac_cv_varlen_arrays" = "yes" ; then
6432
6433$as_echo "#define HAVE_C99_VARLEN_ARRAY /**/" >>confdefs.h
f40ec73c 6434
6435fi
f69335e6 6436
94c2b583 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can set the core size to unlimited" >&5
6438$as_echo_n "checking if we can set the core size to unlimited... " >&6; }
0ff0b04a 6439if ${ac_cv_force_core+:} false; then :
94c2b583 6440 $as_echo_n "(cached) " >&6
6441else
6442
6443if test "$cross_compiling" = yes; then :
6444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6446as_fn_error $? "cannot run test program while cross compiling
6447See \`config.log' for more details" "$LINENO" 5; }
f69335e6 6448else
94c2b583 6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450/* end confdefs.h. */
6451
6452#include <sys/time.h>
6453#include <sys/resource.h>
6454#include <unistd.h>
6455int main() {
6456struct rlimit corelim;
6457corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
6458if (setrlimit(RLIMIT_CORE, &corelim))
6459exit(1);
6460exit(0);
6461}
c0790e90 6462
f69335e6 6463_ACEOF
94c2b583 6464if ac_fn_c_try_run "$LINENO"; then :
6465 ac_cv_force_core=yes
6466else
6467 ac_cv_force_core=no
6468fi
6469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
6471fi
6472
545d087a 6473
f69335e6 6474fi
94c2b583 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_force_core" >&5
6476$as_echo "$ac_cv_force_core" >&6; }
6477if test "$ac_cv_force_core" = "yes"; then
cadd4230 6478
94c2b583 6479$as_echo "#define FORCE_CORE /**/" >>confdefs.h
f40ec73c 6480
94c2b583 6481fi
6482for ac_func in vprintf
6483do :
6484 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
0ff0b04a 6485if test "x$ac_cv_func_vprintf" = xyes; then :
94c2b583 6486 cat >>confdefs.h <<_ACEOF
6487#define HAVE_VPRINTF 1
7dbf154d 6488_ACEOF
545d087a 6489
94c2b583 6490ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
0ff0b04a 6491if test "x$ac_cv_func__doprnt" = xyes; then :
545d087a 6492
94c2b583 6493$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
545d087a 6494
94c2b583 6495fi
f40ec73c 6496
94c2b583 6497fi
6498done
4eff1e84 6499
94c2b583 6500
6501for ac_func in gettimeofday
6502do :
6503 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
0ff0b04a 6504if test "x$ac_cv_func_gettimeofday" = xyes; then :
94c2b583 6505 cat >>confdefs.h <<_ACEOF
6506#define HAVE_GETTIMEOFDAY 1
f69335e6 6507_ACEOF
94c2b583 6508
6509$as_echo "#define GETTIMEOFDAY /**/" >>confdefs.h
6510
f69335e6 6511else
94c2b583 6512 for ac_func in lrand48
6513do :
6514 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
0ff0b04a 6515if test "x$ac_cv_func_lrand48" = xyes; then :
94c2b583 6516 cat >>confdefs.h <<_ACEOF
6517#define HAVE_LRAND48 1
6518_ACEOF
6519
6520$as_echo "#define LRADN48 /**/" >>confdefs.h
545d087a 6521
f69335e6 6522fi
94c2b583 6523done
cadd4230 6524
f69335e6 6525fi
94c2b583 6526done
6527
6528for ac_func in getrusage
6529do :
6530 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
0ff0b04a 6531if test "x$ac_cv_func_getrusage" = xyes; then :
f69335e6 6532 cat >>confdefs.h <<_ACEOF
94c2b583 6533#define HAVE_GETRUSAGE 1
f69335e6 6534_ACEOF
6535
94c2b583 6536$as_echo "#define GETRUSAGE_2 /**/" >>confdefs.h
f40ec73c 6537
94c2b583 6538else
6539 for ac_func in times
6540do :
6541 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
0ff0b04a 6542if test "x$ac_cv_func_times" = xyes; then :
94c2b583 6543 cat >>confdefs.h <<_ACEOF
6544#define HAVE_TIMES 1
85904c22 6545_ACEOF
4eff1e84 6546
94c2b583 6547$as_echo "#define TIMES_2 /**/" >>confdefs.h
6548
c0790e90 6549fi
6550done
f69335e6 6551
94c2b583 6552fi
6553done
545d087a 6554
94c2b583 6555for ac_func in setproctitle
6556do :
6557 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
0ff0b04a 6558if test "x$ac_cv_func_setproctitle" = xyes; then :
94c2b583 6559 cat >>confdefs.h <<_ACEOF
6560#define HAVE_SETPROCTITLE 1
7dbf154d 6561_ACEOF
7dbf154d 6562
94c2b583 6563$as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
85904c22 6564
94c2b583 6565else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
6567$as_echo_n "checking for setproctitle in -lutil... " >&6; }
0ff0b04a 6568if ${ac_cv_lib_util_setproctitle+:} false; then :
94c2b583 6569 $as_echo_n "(cached) " >&6
6570else
6571 ac_check_lib_save_LIBS=$LIBS
6572LIBS="-lutil $LIBS"
6573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
545d087a 6575
cadd4230
BM
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. */
f69335e6 6579#ifdef __cplusplus
6580extern "C"
6581#endif
94c2b583 6582char setproctitle ();
545d087a
BM
6583int
6584main ()
6585{
94c2b583 6586return setproctitle ();
f69335e6 6587 ;
6588 return 0;
6589}
6590_ACEOF
94c2b583 6591if ac_fn_c_try_link "$LINENO"; then :
6592 ac_cv_lib_util_setproctitle=yes
4eff1e84 6593else
94c2b583 6594 ac_cv_lib_util_setproctitle=no
4eff1e84 6595fi
94c2b583 6596rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
4eff1e84 6599fi
94c2b583 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
6601$as_echo "$ac_cv_lib_util_setproctitle" >&6; }
0ff0b04a 6602if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
94c2b583 6603
6604$as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6605
6606 IRCDLIBS="$IRCDLIBS-lutil"
6607else
6608
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h. */
6611#include <sys/exec.h>
6612
85904c22 6613_ACEOF
94c2b583 6614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6615 $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then :
6616
6617$as_echo "#define HAVE_PSSTRINGS /**/" >>confdefs.h
4eff1e84 6618
94c2b583 6619else
6620 for ac_func in pstat
6621do :
6622 ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
0ff0b04a 6623if test "x$ac_cv_func_pstat" = xyes; then :
94c2b583 6624 cat >>confdefs.h <<_ACEOF
6625#define HAVE_PSTAT 1
85904c22 6626_ACEOF
4eff1e84 6627
94c2b583 6628$as_echo "#define HAVE_PSTAT /**/" >>confdefs.h
6629
4eff1e84 6630fi
6631done
6632
94c2b583 6633fi
6634rm -f conftest*
4eff1e84 6635
94c2b583 6636
6637fi
6638
6639
6640
6641fi
6642done
6643
6644
6645
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of signals you have" >&5
6647$as_echo_n "checking what type of signals you have... " >&6; }
0ff0b04a 6648if ${ac_cv_sigtype+:} false; then :
94c2b583 6649 $as_echo_n "(cached) " >&6
6650else
6651
6652if test "$cross_compiling" = yes; then :
6653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6655as_fn_error $? "cannot run test program while cross compiling
6656See \`config.log' for more details" "$LINENO" 5; }
4eff1e84 6657else
94c2b583 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661#include <signal.h>
6662int main() {
6663sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
6664}
6665
85904c22 6666_ACEOF
94c2b583 6667if ac_fn_c_try_run "$LINENO"; then :
6668 ac_cv_sigtype=POSIX
6669else
6670
6671if test "$cross_compiling" = yes; then :
6672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
6674as_fn_error $? "cannot run test program while cross compiling
6675See \`config.log' for more details" "$LINENO" 5; }
94c2b583 6676else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4eff1e84 6678/* end confdefs.h. */
545d087a 6679
94c2b583 6680#include <signal.h>
6681int calls = 0;
6682void handler()
6683{
6684if (calls)
6685return;
6686calls++;
6687kill(getpid(), SIGTERM);
6688sleep(1);
6689}
6690
6691int main() {
6692signal(SIGTERM, handler);
6693kill(getpid(), SIGTERM);
6694exit(0);
6695}
6696
6697_ACEOF
6698if ac_fn_c_try_run "$LINENO"; then :
6699 ac_cv_sigtype=BSD
6700else
6701 ac_cv_sigtype=SYSV
6702fi
6703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6704 conftest.$ac_objext conftest.beam conftest.$ac_ext
6705fi
6706
6707fi
6708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6709 conftest.$ac_objext conftest.beam conftest.$ac_ext
6710fi
6711
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigtype" >&5
6714$as_echo "$ac_cv_sigtype" >&6; }
6715
6716if test "$ac_cv_sigtype" = "POSIX"; then
545d087a 6717
94c2b583 6718$as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
f40ec73c 6719
94c2b583 6720elif test "$ac_cv_sigtype" = "BSD"; then
85904c22 6721
94c2b583 6722$as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
c0790e90 6723
f69335e6 6724else
545d087a 6725
94c2b583 6726$as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
cadd4230 6727
f69335e6 6728fi
94c2b583 6729for ac_func in strtoken
6730do :
6731 ac_fn_c_check_func "$LINENO" "strtoken" "ac_cv_func_strtoken"
0ff0b04a 6732if test "x$ac_cv_func_strtoken" = xyes; then :
85904c22 6733 cat >>confdefs.h <<_ACEOF
94c2b583 6734#define HAVE_STRTOKEN 1
85904c22 6735_ACEOF
4eff1e84 6736
85904c22 6737else
4eff1e84 6738
94c2b583 6739$as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
4eff1e84 6740
85904c22
BM
6741fi
6742done
4eff1e84 6743
94c2b583 6744for ac_func in strtok
6745do :
6746 ac_fn_c_check_func "$LINENO" "strtok" "ac_cv_func_strtok"
0ff0b04a 6747if test "x$ac_cv_func_strtok" = xyes; then :
94c2b583 6748 cat >>confdefs.h <<_ACEOF
6749#define HAVE_STRTOK 1
f69335e6 6750_ACEOF
6751
94c2b583 6752else
c0790e90 6753
94c2b583 6754$as_echo "#define NEED_STRTOK /**/" >>confdefs.h
c0790e90 6755
94c2b583 6756fi
6757done
f40ec73c 6758
94c2b583 6759for ac_func in strerror
6760do :
6761 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
0ff0b04a 6762if test "x$ac_cv_func_strerror" = xyes; then :
94c2b583 6763 cat >>confdefs.h <<_ACEOF
6764#define HAVE_STRERROR 1
85904c22 6765_ACEOF
94c2b583 6766
4eff1e84 6767else
f69335e6 6768
94c2b583 6769$as_echo "#define NEED_STRERROR /**/" >>confdefs.h
c0790e90 6770
85904c22 6771fi
94c2b583 6772done
6773
6774for ac_func in index
6775do :
6776 ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
0ff0b04a 6777if test "x$ac_cv_func_index" = xyes; then :
4eff1e84 6778 cat >>confdefs.h <<_ACEOF
94c2b583 6779#define HAVE_INDEX 1
545d087a 6780_ACEOF
4eff1e84 6781
c0790e90 6782else
545d087a 6783
94c2b583 6784$as_echo "#define NOINDEX /**/" >>confdefs.h
545d087a 6785
7dbf154d 6786fi
4eff1e84 6787done
6788
94c2b583 6789for ac_func in strtoul
6790do :
6791 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
0ff0b04a 6792if test "x$ac_cv_func_strtoul" = xyes; then :
94c2b583 6793 cat >>confdefs.h <<_ACEOF
6794#define HAVE_STRTOUL 1
6795_ACEOF
545d087a 6796
c0790e90 6797else
94c2b583 6798 STRTOUL="strtoul.o"
6799fi
6800done
65a2668e 6801
94c2b583 6802for ac_func in bcopy
6803do :
6804 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
0ff0b04a 6805if test "x$ac_cv_func_bcopy" = xyes; then :
94c2b583 6806 cat >>confdefs.h <<_ACEOF
6807#define HAVE_BCOPY 1
6808_ACEOF
c0790e90 6809
94c2b583 6810else
c0790e90 6811
94c2b583 6812$as_echo "#define NEED_BCOPY /**/" >>confdefs.h
c0790e90 6813
94c2b583 6814fi
6815done
cadd4230 6816
94c2b583 6817for ac_func in bcmp
6818do :
6819 ac_fn_c_check_func "$LINENO" "bcmp" "ac_cv_func_bcmp"
0ff0b04a 6820if test "x$ac_cv_func_bcmp" = xyes; then :
94c2b583 6821 cat >>confdefs.h <<_ACEOF
6822#define HAVE_BCMP 1
4eff1e84 6823_ACEOF
94c2b583 6824
4eff1e84 6825else
c0790e90 6826
94c2b583 6827$as_echo "#define NEED_BCMP /**/" >>confdefs.h
c0790e90 6828
85904c22 6829fi
94c2b583 6830done
6831
6832for ac_func in bzero
6833do :
6834 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
0ff0b04a 6835if test "x$ac_cv_func_bzero" = xyes; then :
4eff1e84 6836 cat >>confdefs.h <<_ACEOF
94c2b583 6837#define HAVE_BZERO 1
f69335e6 6838_ACEOF
4eff1e84 6839
7dbf154d 6840else
65a2668e 6841
94c2b583 6842$as_echo "#define NEED_BZERO /**/" >>confdefs.h
65a2668e 6843
7dbf154d 6844fi
4eff1e84 6845done
6846
94c2b583 6847for ac_func in strcasecmp
6848do :
6849 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
0ff0b04a 6850if test "x$ac_cv_func_strcasecmp" = xyes; then :
94c2b583 6851 cat >>confdefs.h <<_ACEOF
6852#define HAVE_STRCASECMP 1
85904c22 6853_ACEOF
4eff1e84 6854
94c2b583 6855$as_echo "#define GOT_STRCASECMP /**/" >>confdefs.h
85904c22 6856
94c2b583 6857fi
6858done
545d087a 6859
94c2b583 6860save_libs="$LIBS"
6861LIBS="$LIBS $SOCKLIB $INETLIB"
6862for ac_func in inet_addr
6863do :
6864 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
0ff0b04a 6865if test "x$ac_cv_func_inet_addr" = xyes; then :
94c2b583 6866 cat >>confdefs.h <<_ACEOF
6867#define HAVE_INET_ADDR 1
85904c22 6868_ACEOF
94c2b583 6869
85904c22 6870else
4eff1e84 6871
94c2b583 6872$as_echo "#define NEED_INET_ADDR /**/" >>confdefs.h
545d087a 6873
85904c22 6874fi
94c2b583 6875done
6876
6877for ac_func in inet_ntoa
6878do :
6879 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
0ff0b04a 6880if test "x$ac_cv_func_inet_ntoa" = xyes; then :
4eff1e84 6881 cat >>confdefs.h <<_ACEOF
94c2b583 6882#define HAVE_INET_NTOA 1
4eff1e84 6883_ACEOF
545d087a 6884
94c2b583 6885else
6886
6887$as_echo "#define NEED_INET_NTOA /**/" >>confdefs.h
65a2668e 6888
4eff1e84 6889fi
6890done
c0790e90 6891
94c2b583 6892LIBS="$save_libs"
6893for ac_func in syslog
6894do :
6895 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
0ff0b04a 6896if test "x$ac_cv_func_syslog" = xyes; then :
94c2b583 6897 cat >>confdefs.h <<_ACEOF
6898#define HAVE_SYSLOG 1
6899_ACEOF
c0790e90 6900
94c2b583 6901$as_echo "#define HAVE_SYSLOG /**/" >>confdefs.h
4eff1e84 6902
65a2668e 6903fi
6904done
6905
f40ec73c 6906
6907
6908
6909
ecf260df 6910
cadd4230 6911# Check whether --with-nick-history was given.
94c2b583 6912if test "${with_nick_history+set}" = set; then :
7dbf154d 6913 withval=$with_nick_history;
6914cat >>confdefs.h <<_ACEOF
f40ec73c 6915#define NICKNAMEHISTORYLENGTH $withval
f69335e6 6916_ACEOF
f40ec73c 6917
6918else
cadd4230 6919
94c2b583 6920$as_echo "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
f40ec73c 6921
cadd4230
BM
6922fi
6923
f40ec73c 6924
7dbf154d 6925# Check whether --with-sendq was given.
94c2b583 6926if test "${with_sendq+set}" = set; then :
7dbf154d 6927 withval=$with_sendq;
6928cat >>confdefs.h <<_ACEOF
6929#define MAXSENDQLENGTH $withval
f69335e6 6930_ACEOF
f40ec73c 6931
6932else
7dbf154d 6933
94c2b583 6934$as_echo "#define MAXSENDQLENGTH 3000000" >>confdefs.h
f40ec73c 6935
cadd4230
BM
6936fi
6937
f40ec73c 6938
cadd4230 6939# Check whether --with-permissions was given.
94c2b583 6940if test "${with_permissions+set}" = set; then :
7dbf154d 6941 withval=$with_permissions;
6942cat >>confdefs.h <<_ACEOF
964bb656 6943#define DEFAULT_PERMISSIONS 0$withval
f69335e6 6944_ACEOF
f40ec73c 6945
6946else
7dbf154d 6947
94c2b583 6948$as_echo "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
f69335e6 6949
cadd4230
BM
6950fi
6951
f40ec73c 6952
5e94fc9c
BM
6953
6954# Check whether --with-bindir was given.
6955if test "${with_bindir+set}" = set; then :
6956 withval=$with_bindir;
7dbf154d 6957cat >>confdefs.h <<_ACEOF
5e94fc9c 6958#define BINDIR "$withval"
f69335e6 6959_ACEOF
7dbf154d 6960
5e94fc9c 6961 BINDIR="$withval"
f40ec73c 6962else
7dbf154d 6963
6964cat >>confdefs.h <<_ACEOF
5e94fc9c 6965#define BINDIR "$HOME/unrealircd/bin"
f69335e6 6966_ACEOF
7dbf154d 6967
5e94fc9c 6968 BINDIR="$HOME/unrealircd/bin"
cadd4230 6969fi
f40ec73c 6970
cadd4230 6971
7dbf154d 6972
5e94fc9c
BM
6973# Check whether --with-scriptdir was given.
6974if test "${with_scriptdir+set}" = set; then :
6975 withval=$with_scriptdir;
6976cat >>confdefs.h <<_ACEOF
6977#define SCRIPTDIR "$withval"
6978_ACEOF
6979
6980 SCRIPTDIR="$withval"
f40ec73c 6981else
5e94fc9c
BM
6982
6983cat >>confdefs.h <<_ACEOF
6984#define SCRIPTDIR "$HOME/unrealircd"
6985_ACEOF
6986
6987 SCRIPTDIR="$HOME/unrealircd"
cadd4230
BM
6988fi
6989
7dbf154d 6990
5e94fc9c
BM
6991
6992# Check whether --with-confdir was given.
6993if test "${with_confdir+set}" = set; then :
6994 withval=$with_confdir;
f69335e6 6995cat >>confdefs.h <<_ACEOF
5e94fc9c 6996#define CONFDIR "$withval"
f69335e6 6997_ACEOF
6998
5e94fc9c
BM
6999 CONFDIR="$withval"
7000else
3b0d1625 7001
5e94fc9c
BM
7002cat >>confdefs.h <<_ACEOF
7003#define CONFDIR "$HOME/unrealircd/conf"
7004_ACEOF
7005
7006 CONFDIR="$HOME/unrealircd/conf"
7007fi
7dbf154d 7008
5e94fc9c
BM
7009
7010
7011# Check whether --with-modulesdir was given.
7012if test "${with_modulesdir+set}" = set; then :
7013 withval=$with_modulesdir;
7dbf154d 7014cat >>confdefs.h <<_ACEOF
5e94fc9c 7015#define MODULESDIR "$withval"
f69335e6 7016_ACEOF
7dbf154d 7017
5e94fc9c
BM
7018 MODULESDIR="$withval"
7019else
7020
7021cat >>confdefs.h <<_ACEOF
7022#define MODULESDIR "$HOME/unrealircd/modules"
7023_ACEOF
7024
7025 MODULESDIR="$HOME/unrealircd/modules"
7026fi
7027
7028
7029
7030# Check whether --with-logdir was given.
7031if test "${with_logdir+set}" = set; then :
7032 withval=$with_logdir;
7033cat >>confdefs.h <<_ACEOF
7034#define LOGDIR "$withval"
7035_ACEOF
7036
7037 LOGDIR="$withval"
7038else
7039
7040cat >>confdefs.h <<_ACEOF
7041#define LOGDIR "$HOME/unrealircd/logs"
7042_ACEOF
7043
7044 LOGDIR="$HOME/unrealircd/logs"
7045fi
7046
7047
7048
7049# Check whether --with-cachedir was given.
7050if test "${with_cachedir+set}" = set; then :
7051 withval=$with_cachedir;
7052cat >>confdefs.h <<_ACEOF
7053#define CACHEDIR "$withval"
7054_ACEOF
7055
7056 CACHEDIR="$withval"
7057else
7058
7059cat >>confdefs.h <<_ACEOF
7060#define CACHEDIR "$HOME/unrealircd/cache"
7061_ACEOF
7062
7063 CACHEDIR="$HOME/unrealircd/cache"
7064fi
7065
7066
7067
7068# Check whether --with-tmpdir was given.
7069if test "${with_tmpdir+set}" = set; then :
7070 withval=$with_tmpdir;
7071cat >>confdefs.h <<_ACEOF
7072#define TMPDIR "$withval"
7073_ACEOF
7074
7075 TMPDIR="$withval"
7076else
7077
7078cat >>confdefs.h <<_ACEOF
7079#define TMPDIR "$HOME/unrealircd/tmp"
7080_ACEOF
7081
7082 TMPDIR="$HOME/unrealircd/tmp"
7083fi
7084
7085
7086
7087# Check whether --with-datadir was given.
7088if test "${with_datadir+set}" = set; then :
7089 withval=$with_datadir;
7090cat >>confdefs.h <<_ACEOF
e5ec2a64 7091#define PERMDATADIR "$withval"
5e94fc9c
BM
7092_ACEOF
7093
e5ec2a64 7094 PERMDATADIR="$withval"
f40ec73c 7095else
7dbf154d 7096
7097cat >>confdefs.h <<_ACEOF
5e94fc9c 7098#define DATADIR "$HOME/unrealircd/data"
f69335e6 7099_ACEOF
7dbf154d 7100
e5ec2a64 7101 PERMDATADIR="$HOME/unrealircd/data"
cadd4230
BM
7102fi
7103
7dbf154d 7104
5e94fc9c
BM
7105
7106# Check whether --with-docdir was given.
7107if test "${with_docdir+set}" = set; then :
7108 withval=$with_docdir;
7109cat >>confdefs.h <<_ACEOF
7110#define DOCDIR "$withval"
7111_ACEOF
7112
7113 DOCDIR="$withval"
7114else
7115
7116cat >>confdefs.h <<_ACEOF
7117#define DOCDIR "$HOME/unrealircd/doc"
7118_ACEOF
7119
7120 DOCDIR="$HOME/unrealircd/doc"
7121fi
7122
7123
7124
7125# Check whether --with-pidfile was given.
7126if test "${with_pidfile+set}" = set; then :
7127 withval=$with_pidfile;
7128cat >>confdefs.h <<_ACEOF
7129#define PIDFILE "$withval"
7130_ACEOF
7131
7132 PIDFILE="$withval"
7133else
7134
7135cat >>confdefs.h <<_ACEOF
c0f18b3e 7136#define PIDFILE "$HOME/unrealircd/data/unrealircd.pid"
5e94fc9c
BM
7137_ACEOF
7138
c0f18b3e 7139 PIDFILE="$HOME/unrealircd/data/unrealircd.pid"
5e94fc9c
BM
7140fi
7141
fd35f965 7142
9252ce30 7143
fd35f965
BM
7144# Check whether --with-privatelibdir was given.
7145if test "${with_privatelibdir+set}" = set; then :
7146 withval=$with_privatelibdir;
590e345b
BM
7147else
7148 with_privatelibdir="yes"
7149fi
fd35f965 7150
590e345b
BM
7151if test "x$with_privatelibdir" = "xno"; then :
7152 PRIVATELIBDIR=
7153elif test "x$with_privatelibdir" = "xyes"; then :
7154 PRIVATELIBDIR="$HOME/unrealircd/lib"
7155else
7156 PRIVATELIBDIR="$with_privatelibdir"
7157fi
7158if test "x$PRIVATELIBDIR" = "x"; then :
7159 LDFLAGS_PRIVATELIBS=""
fd35f965
BM
7160else
7161
7162cat >>confdefs.h <<_ACEOF
590e345b 7163#define PRIVATELIBDIR "$PRIVATELIBDIR"
fd35f965
BM
7164_ACEOF
7165
d1d87d4d 7166 LDFLAGS_PRIVATELIBS="-Wl,-rpath,$PRIVATELIBDIR"
9252ce30
BM
7167 LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
7168 export LDFLAGS
fd35f965
BM
7169fi
7170
7171
7172
5e94fc9c
BM
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
5e94fc9c
BM
7184# Check whether --with-fd-setsize was given.
7185if test "${with_fd_setsize+set}" = set; then :
7186 withval=$with_fd_setsize; ac_fd=$withval
7187else
7188 ac_fd=1024
7189fi
7190
7191
7192cat >>confdefs.h <<_ACEOF
7193#define MAXCONNECTIONS $ac_fd
7194_ACEOF
7195
7196
cadd4230 7197# Check whether --enable-prefixaq was given.
94c2b583 7198if test "${enable_prefixaq+set}" = set; then :
7dbf154d 7199 enableval=$enable_prefixaq;
7200else
7201 enable_prefixaq=yes
7202fi
7203
94c2b583 7204if test $enable_prefixaq = "yes"; then :
7dbf154d 7205
94c2b583 7206$as_echo "#define PREFIX_AQ /**/" >>confdefs.h
f40ec73c 7207
cadd4230
BM
7208fi
7209
06dc8646 7210
cadd4230 7211# Check whether --with-showlistmodes was given.
94c2b583 7212if test "${with_showlistmodes+set}" = set; then :
7213 withval=$with_showlistmodes; if test $withval = "yes"; then :
7dbf154d 7214
94c2b583 7215$as_echo "#define LIST_SHOW_MODES /**/" >>confdefs.h
7dbf154d 7216
7217fi
cadd4230
BM
7218fi
7219
1bb24f05 7220
cadd4230 7221# Check whether --with-topicisnuhost was given.
94c2b583 7222if test "${with_topicisnuhost+set}" = set; then :
7223 withval=$with_topicisnuhost; if test $withval = "yes"; then :
7dbf154d 7224
94c2b583 7225$as_echo "#define TOPIC_NICK_IS_NUHOST /**/" >>confdefs.h
7dbf154d 7226
7227fi
cadd4230
BM
7228fi
7229
1bb24f05 7230
cadd4230 7231# Check whether --with-shunnotices was given.
94c2b583 7232if test "${with_shunnotices+set}" = set; then :
7233 withval=$with_shunnotices; if test $withval = "yes"; then :
7dbf154d 7234
94c2b583 7235$as_echo "#define SHUN_NOTICES /**/" >>confdefs.h
7dbf154d 7236
7237fi
cadd4230
BM
7238fi
7239
1bb24f05 7240
cadd4230 7241# Check whether --with-no-operoverride was given.
94c2b583 7242if test "${with_no_operoverride+set}" = set; then :
7243 withval=$with_no_operoverride; if test $withval = "yes"; then :
7dbf154d 7244
94c2b583 7245$as_echo "#define NO_OPEROVERRIDE /**/" >>confdefs.h
7dbf154d 7246
7247fi
cadd4230
BM
7248fi
7249
1bb24f05 7250
cadd4230 7251# Check whether --with-disableusermod was given.
94c2b583 7252if test "${with_disableusermod+set}" = set; then :
7253 withval=$with_disableusermod; if test $withval = "yes"; then :
7dbf154d 7254
94c2b583 7255$as_echo "#define DISABLE_USERMOD /**/" >>confdefs.h
7dbf154d 7256
7257fi
cadd4230
BM
7258fi
7259
1bb24f05 7260
cadd4230 7261# Check whether --with-operoverride-verify was given.
94c2b583 7262if test "${with_operoverride_verify+set}" = set; then :
7263 withval=$with_operoverride_verify; if test $withval = "yes"; then :
7dbf154d 7264
94c2b583 7265$as_echo "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
7dbf154d 7266
7267fi
cadd4230
BM
7268fi
7269
1bb24f05 7270
7dee0cdc 7271# Check whether --with-disable-extendedban-stacking was given.
94c2b583 7272if test "${with_disable_extendedban_stacking+set}" = set; then :
7273 withval=$with_disable_extendedban_stacking; if test $withval = "yes"; then :
7dbf154d 7274
94c2b583 7275$as_echo "#define DISABLE_STACKED_EXTBANS /**/" >>confdefs.h
7dbf154d 7276
7277fi
7dee0cdc
BM
7278fi
7279
7280
70ec1b1e 7281# Check whether --with-system-tre was given.
94c2b583 7282if test "${with_system_tre+set}" = set; then :
70ec1b1e
BM
7283 withval=$with_system_tre;
7284else
7285 with_system_tre=no
7286fi
7287
7288
547b2d69
BM
7289# Check whether --with-system-pcre2 was given.
7290if test "${with_system_pcre2+set}" = set; then :
7291 withval=$with_system_pcre2;
7292else
7293 with_system_pcre2=no
7294fi
7295
7296
5f727eec 7297# Check whether --with-system-cares was given.
94c2b583 7298if test "${with_system_cares+set}" = set; then :
5f727eec
BM
7299 withval=$with_system_cares;
7300else
60d14e7d 7301 with_system_cares=yes
5f727eec
BM
7302fi
7303
7304
cadd4230 7305# Check whether --enable-ssl was given.
94c2b583 7306if test "${enable_ssl+set}" = set; then :
cadd4230 7307 enableval=$enable_ssl;
7dbf154d 7308else
7309 enable_ssl=no
7310fi
7311
94c2b583 7312if test $enable_ssl != "no"; then :
7dbf154d 7313
94c2b583 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
7315$as_echo_n "checking for openssl... " >&6; }
c342b432 7316 for dir in $enable_ssl /usr/local/opt/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr; do
7dbf154d 7317 ssldir="$dir"
7318 if test -f "$dir/include/openssl/ssl.h"; then
94c2b583 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
7320$as_echo "found in $ssldir/include/openssl" >&6; }
7dbf154d 7321 found_ssl="yes";
7322 if test ! "$ssldir" = "/usr" ; then
7323 CFLAGS="$CFLAGS -I$ssldir/include";
7324 fi
7325 break
7326 fi
7327 if test -f "$dir/include/ssl.h"; then
94c2b583 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
7329$as_echo "found in $ssldir/include" >&6; }
7dbf154d 7330 found_ssl="yes";
7331 if test ! "$ssldir" = "/usr" ; then
7332 CFLAGS="$CFLAGS -I$ssldir/include";
7333 fi
7334 break
7335 fi
7336 done
7337 if test x_$found_ssl != x_yes; then
94c2b583 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7339$as_echo "not found" >&6; }
7dbf154d 7340 echo ""
7341 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
547b2d69
BM
7342 echo "Please install the needed binaries and libraries."
7343 echo "The package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
7344 echo "After doing so re-run ./Config"
7dbf154d 7345 exit 1
7346 else
7347 CRYPTOLIB="-lssl -lcrypto";
7348 if test ! "$ssldir" = "/usr" ; then
7349 LDFLAGS="$LDFLAGS -L$ssldir/lib";
7350 fi
7dbf154d 7351 fi
f69335e6 7352
cadd4230 7353fi
871948d2 7354
fa9bdcd7
BM
7355
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
7357$as_echo_n "checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
7358ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364SAVE_LIBS="$LIBS"
7365LIBS="$LIBS $CRYPTOLIB"
7366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368#include <openssl/ssl.h>
7369int
7370main ()
7371{
7372SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
7373 ;
7374 return 0;
7375}
7376_ACEOF
7377if ac_fn_c_try_link "$LINENO"; then :
7378 has_curves=1
7379else
7380 has_curves=0
7381fi
7382rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384LIBS="$SAVE_LIBS"
7385ac_ext=c
7386ac_cpp='$CPP $CPPFLAGS'
7387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390
7391if test $has_curves = 1; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7393$as_echo "yes" >&6; }
7394
7395$as_echo "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
7396
7397else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399$as_echo "no" >&6; }
7400fi
7401
cadd4230 7402# Check whether --enable-dynamic-linking was given.
94c2b583 7403if test "${enable_dynamic_linking+set}" = set; then :
7dbf154d 7404 enableval=$enable_dynamic_linking; enable_dynamic_linking=$enableval
7405else
7406 enable_dynamic_linking="yes"
7407fi
7408
94c2b583 7409if test $enable_dynamic_linking = "yes"; then :
7dbf154d 7410
94c2b583 7411ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
0ff0b04a 7412if test "x$ac_cv_func_dlopen" = xyes; then :
cadd4230 7413
f40ec73c 7414else
94c2b583 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7416$as_echo_n "checking for dlopen in -ldl... " >&6; }
0ff0b04a 7417if ${ac_cv_lib_dl_dlopen+:} false; then :
94c2b583 7418 $as_echo_n "(cached) " >&6
f40ec73c 7419else
f69335e6 7420 ac_check_lib_save_LIBS=$LIBS
f40ec73c 7421LIBS="-ldl $LIBS"
94c2b583 7422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545d087a 7423/* end confdefs.h. */
f69335e6 7424
cadd4230
BM
7425/* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
f69335e6 7428#ifdef __cplusplus
7429extern "C"
7430#endif
f69335e6 7431char dlopen ();
f69335e6 7432int
7433main ()
7434{
cadd4230 7435return dlopen ();
f69335e6 7436 ;
7437 return 0;
7438}
7439_ACEOF
94c2b583 7440if ac_fn_c_try_link "$LINENO"; then :
f69335e6 7441 ac_cv_lib_dl_dlopen=yes
7442else
94c2b583 7443 ac_cv_lib_dl_dlopen=no
f69335e6 7444fi
94c2b583 7445rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
f69335e6 7447LIBS=$ac_check_lib_save_LIBS
7448fi
94c2b583 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7450$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
0ff0b04a 7451if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
0ca9f4c2 7452 IRCDLIBS="$IRCDLIBS -ldl"
f40ec73c 7453else
775f3fe2 7454
94c2b583 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
7456$as_echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
7457$as_echo "#define STATIC_LINKING 1" >>confdefs.h
f40ec73c 7458
775f3fe2 7459
f40ec73c 7460fi
7461
7462fi
7463
775f3fe2 7464
f40ec73c 7465hold_cflags=$CFLAGS
ecf260df 7466DYNAMIC_LDFLAGS=""
ec294b13 7467CFLAGS="$CFLAGS -Wl,-export-dynamic"
94c2b583 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
7469$as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
0ff0b04a 7470if ${ac_cv_export_dynamic+:} false; then :
94c2b583 7471 $as_echo_n "(cached) " >&6
f40ec73c 7472else
f69335e6 7473
94c2b583 7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545d087a 7475/* end confdefs.h. */
f40ec73c 7476
f69335e6 7477int
7478main ()
7479{
f40ec73c 7480int i;
f69335e6 7481 ;
7482 return 0;
7483}
7484_ACEOF
94c2b583 7485if ac_fn_c_try_link "$LINENO"; then :
f40ec73c 7486 ac_cv_export_dynamic=yes
7487else
94c2b583 7488 ac_cv_export_dynamic=no
f40ec73c 7489fi
94c2b583 7490rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
f40ec73c 7492fi
94c2b583 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
7494$as_echo "$ac_cv_export_dynamic" >&6; }
f40ec73c 7495CFLAGS=$hold_cflags
ecf260df
BM
7496if test "$ac_cv_export_dynamic" = "yes"; then
7497 DYNAMIC_LDFLAGS="-Wl,-export-dynamic"
f40ec73c 7498fi
7499
94c2b583 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
7501$as_echo_n "checking for compiler option to produce PIC... " >&6; }
0ff0b04a 7502if ${ac_cv_pic+:} false; then :
94c2b583 7503 $as_echo_n "(cached) " >&6
f40ec73c 7504else
f69335e6 7505
7506if test "$ac_cv_c_compiler_gnu" = "yes"; then
f40ec73c 7507 ac_cv_pic="-fPIC -DPIC -shared"
878a0f89 7508 case `uname -s` in
7509 Darwin*)
7d2dea92 7510 ac_cv_pic="-std=gnu89 -bundle -flat_namespace -undefined suppress"
878a0f89 7511 ;;
1bb24f05 7512 HP-UX*)
7513 ac_cv_pic="-fPIC"
7514 ;;
878a0f89 7515 esac
f40ec73c 7516else
7517case `uname -s` in
7518 SunOS*)
7519 ac_cv_pic="-KPIC -DPIC -G"
7520 ;;
7521esac
7522fi
7523
7524fi
94c2b583 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
7526$as_echo "$ac_cv_pic" >&6; }
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
7528$as_echo_n "checking if your system prepends an underscore on symbols... " >&6; }
0ff0b04a 7529if ${ac_cv_underscore+:} false; then :
94c2b583 7530 $as_echo_n "(cached) " >&6
d29b6498 7531else
f69335e6 7532
d29b6498 7533cat >uscore.c << __EOF__
7534int main() {
7535 return 0;
7536}
7537__EOF__
7538$CC -o uscore $CFLAGS uscore.c 1>&5
7539if test -z "`strings -a uscore |grep '^_main$'`"; then
7540ac_cv_underscore=no
7541else
7542ac_cv_underscore=yes
7543fi
4f1345c3 7544rm -f uscore uscore.c
e77382c1 7545
7546fi
94c2b583 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
7548$as_echo "$ac_cv_underscore" >&6; }
d29b6498 7549if test "$ac_cv_underscore" = "yes"; then
7dbf154d 7550
94c2b583 7551$as_echo "#define UNDERSCORE /**/" >>confdefs.h
d29b6498 7552
7553fi
7554
ecf260df 7555MODULEFLAGS="$ac_cv_pic $DYNAMIC_LDFLAGS"
f40ec73c 7556
545d087a 7557else
7dbf154d 7558
94c2b583 7559$as_echo "#define STATIC_LINKING /**/" >>confdefs.h
545d087a 7560
cadd4230 7561fi
f69335e6 7562
821a0464
BM
7563# Check whether --enable-werror was given.
7564if test "${enable_werror+set}" = set; then :
7565 enableval=$enable_werror; ac_cv_werror="$enableval"
7566else
7567 ac_cv_werror="no"
7568fi
7569
7570
94c2b583 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
7572$as_echo_n "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... " >&6; }
7573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h. */
f40ec73c 7575
7576#include <sys/types.h>
7577#include <sys/time.h>
7578int main() {
7dbf154d 7579#if FD_SETSIZE < $ac_fd
7580#error FD_SETSIZE is smaller than $ac_fd
7581#endif
f40ec73c 7582exit(0);
f40ec73c 7583}
7584
f69335e6 7585_ACEOF
94c2b583 7586if ac_fn_c_try_compile "$LINENO"; then :
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588$as_echo "yes" >&6; }
f69335e6 7589else
f8f82984 7590
7a3bf155 7591# must be passed on the commandline to avoid a ``warning, you redefined something''
f8f82984 7592FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
94c2b583 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
f8f82984 7595
f69335e6 7596fi
7dbf154d 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cadd4230 7598
7a3bf155 7599
730c302c 7600case `uname -s` in
7a3bf155 7601 *SunOS*|*solaris*)
7602
94c2b583 7603$as_echo "#define _SOLARIS /**/" >>confdefs.h
7a3bf155 7604
7605 IRCDLIBS="$IRCDLIBS -lresolv "
7606 ;;
7f62aab7 7607esac
51462f5e 7608
5e427e9f
WP
7609for ac_func in poll
7610do :
7611 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7612if test "x$ac_cv_func_poll" = xyes; then :
7613 cat >>confdefs.h <<_ACEOF
7614#define HAVE_POLL 1
7615_ACEOF
7616
7617$as_echo "#define HAVE_POLL /**/" >>confdefs.h
7618
7619fi
7620done
7621
6a210e34
WP
7622for ac_func in epoll_create epoll_ctl epoll_wait
7623do :
7624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7625ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7626if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7627 cat >>confdefs.h <<_ACEOF
7628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7629_ACEOF
7630
7631$as_echo "#define HAVE_EPOLL /**/" >>confdefs.h
7632
7633fi
7634done
7635
ad25d019
WP
7636for ac_func in kqueue kevent
7637do :
7638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7639ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7640if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7641 cat >>confdefs.h <<_ACEOF
7642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7643_ACEOF
6a210e34 7644
ad25d019 7645$as_echo "#define HAVE_KQUEUE /**/" >>confdefs.h
70ec1b1e 7646
ad25d019
WP
7647fi
7648done
9f710925 7649
7650
ad25d019 7651export PATH_SEPARATOR
9f710925 7652
7653
6a210e34 7654
42d8a95c
WP
7655
7656
7657
7658
7659
70ec1b1e
BM
7660if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7663set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
94c2b583 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 7666if ${ac_cv_path_PKG_CONFIG+:} false; then :
94c2b583 7667 $as_echo_n "(cached) " >&6
70ec1b1e
BM
7668else
7669 case $PKG_CONFIG in
7670 [\\/]* | ?:[\\/]*)
7671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7672 ;;
7673 *)
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
94c2b583 7679 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70ec1b1e 7681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
94c2b583 7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70ec1b1e
BM
7683 break 2
7684 fi
7685done
94c2b583 7686 done
70ec1b1e
BM
7687IFS=$as_save_IFS
7688
7689 ;;
7690esac
7691fi
7692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7693if test -n "$PKG_CONFIG"; then
94c2b583 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7695$as_echo "$PKG_CONFIG" >&6; }
70ec1b1e 7696else
94c2b583 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
70ec1b1e
BM
7699fi
7700
7701
7702fi
7703if test -z "$ac_cv_path_PKG_CONFIG"; then
7704 ac_pt_PKG_CONFIG=$PKG_CONFIG
7705 # Extract the first word of "pkg-config", so it can be a program name with args.
7706set dummy pkg-config; ac_word=$2
94c2b583 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
0ff0b04a 7709if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
94c2b583 7710 $as_echo_n "(cached) " >&6
70ec1b1e
BM
7711else
7712 case $ac_pt_PKG_CONFIG in
7713 [\\/]* | ?:[\\/]*)
7714 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7715 ;;
7716 *)
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
94c2b583 7722 for ac_exec_ext in '' $ac_executable_extensions; do
f1c5f885 7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70ec1b1e 7724 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
94c2b583 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70ec1b1e
BM
7726 break 2
7727 fi
7728done
94c2b583 7729 done
70ec1b1e
BM
7730IFS=$as_save_IFS
7731
7732 ;;
7733esac
7734fi
7735ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7736if test -n "$ac_pt_PKG_CONFIG"; then
94c2b583 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7738$as_echo "$ac_pt_PKG_CONFIG" >&6; }
70ec1b1e 7739else
94c2b583 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
70ec1b1e
BM
7742fi
7743
7744 if test "x$ac_pt_PKG_CONFIG" = x; then
7745 PKG_CONFIG=""
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748yes:)
94c2b583 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
70ec1b1e
BM
7751ac_tool_warned=yes ;;
7752esac
7753 PKG_CONFIG=$ac_pt_PKG_CONFIG
7754 fi
7755else
7756 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7757fi
7758
7759fi
7760if test -n "$PKG_CONFIG"; then
7761 _pkg_min_version=0.9.0
94c2b583 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7763$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
70ec1b1e 7764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
94c2b583 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7766$as_echo "yes" >&6; }
70ec1b1e 7767 else
94c2b583 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
70ec1b1e
BM
7770 PKG_CONFIG=""
7771 fi
70ec1b1e 7772fi
94c2b583 7773if test "x$with_system_tre" = "xno"; then :
70ec1b1e 7774
00ad832a 7775tre_version="0.8.0-git"
94c2b583 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting TRE regex library" >&5
7777$as_echo "extracting TRE regex library" >&6; }
ce14fdec 7778cur_dir=`pwd`
7779cd extras
a6c7bb10 7780rm -rf tre-$tre_version regexp
ddcec35e 7781if test "x$ac_cv_path_GUNZIP" = "x" ; then
7782 tar xfz tre.tar.gz
7783else
7784 cp tre.tar.gz tre.tar.gz.bak
7785 gunzip -f tre.tar.gz
7786 cp tre.tar.gz.bak tre.tar.gz
7787 tar xf tre.tar
7788fi
94c2b583 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring TRE regex library" >&5
7790$as_echo "configuring TRE regex library" >&6; }
6be3ab92 7791cd tre-$tre_version
fd35f965 7792./configure --disable-agrep --enable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras/regexp --libdir=$PRIVATELIBDIR || exit 1
94c2b583 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling TRE regex library" >&5
7794$as_echo "compiling TRE regex library" >&6; }
eddb4068 7795$ac_cv_prog_MAKER || exit 1
94c2b583 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: installing TRE regex library" >&5
7797$as_echo "installing TRE regex library" >&6; }
eddb4068 7798$ac_cv_prog_MAKER install || exit 1
70ec1b1e 7799TRE_CFLAGS="-I$cur_dir/extras/regexp/include"
759be00e 7800
91c3283c 7801
7802TRE_LIBS=
7803if test -n "$ac_cv_path_PKGCONFIG"; then :
fd35f965 7804 TRE_LIBS="`$ac_cv_path_PKGCONFIG --libs tre.pc`"
91c3283c 7805fi
7806if test -z "$TRE_LIBS"; then :
fd35f965 7807 TRE_LIBS="$PRIVATELIBDIR/libtre.so"
6be3ab92 7808fi
7809
ce14fdec 7810cd $cur_dir
eddb4068 7811
70ec1b1e
BM
7812else
7813
7814
7815pkg_failed=no
94c2b583 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRE" >&5
7817$as_echo_n "checking for TRE... " >&6; }
7818
42d8a95c
WP
7819if test -n "$TRE_CFLAGS"; then
7820 pkg_cv_TRE_CFLAGS="$TRE_CFLAGS"
7821 elif test -n "$PKG_CONFIG"; then
7822 if test -n "$PKG_CONFIG" && \
94c2b583 7823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
70ec1b1e
BM
7824 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7825 ac_status=$?
94c2b583 7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
70ec1b1e 7828 pkg_cv_TRE_CFLAGS=`$PKG_CONFIG --cflags "tre >= 0.7.5" 2>/dev/null`
42d8a95c 7829 test "x$?" != "x0" && pkg_failed=yes
70ec1b1e
BM
7830else
7831 pkg_failed=yes
7832fi
42d8a95c
WP
7833 else
7834 pkg_failed=untried
70ec1b1e 7835fi
42d8a95c
WP
7836if test -n "$TRE_LIBS"; then
7837 pkg_cv_TRE_LIBS="$TRE_LIBS"
7838 elif test -n "$PKG_CONFIG"; then
7839 if test -n "$PKG_CONFIG" && \
94c2b583 7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
70ec1b1e
BM
7841 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7842 ac_status=$?
94c2b583 7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
70ec1b1e 7845 pkg_cv_TRE_LIBS=`$PKG_CONFIG --libs "tre >= 0.7.5" 2>/dev/null`
42d8a95c 7846 test "x$?" != "x0" && pkg_failed=yes
70ec1b1e
BM
7847else
7848 pkg_failed=yes
7849fi
42d8a95c
WP
7850 else
7851 pkg_failed=untried
70ec1b1e
BM
7852fi
7853
7854
7855
7856if test $pkg_failed = yes; then
42d8a95c
WP
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
70ec1b1e
BM
7859
7860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7861 _pkg_short_errors_supported=yes
7862else
7863 _pkg_short_errors_supported=no
7864fi
7865 if test $_pkg_short_errors_supported = yes; then
42d8a95c 7866 TRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
70ec1b1e 7867 else
42d8a95c 7868 TRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
70ec1b1e
BM
7869 fi
7870 # Put the nasty error message in config.log where it belongs
7871 echo "$TRE_PKG_ERRORS" >&5
7872
0ff0b04a 7873 as_fn_error $? "Package requirements (tre >= 0.7.5) were not met:
70ec1b1e
BM
7874
7875$TRE_PKG_ERRORS
7876
7877Consider adjusting the PKG_CONFIG_PATH environment variable if you
7878installed software in a non-standard prefix.
7879
7880Alternatively, you may set the environment variables TRE_CFLAGS
7881and TRE_LIBS to avoid the need to call pkg-config.
42d8a95c 7882See the pkg-config man page for more details." "$LINENO" 5
70ec1b1e 7883elif test $pkg_failed = untried; then
42d8a95c
WP
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
94c2b583 7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a 7888as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
70ec1b1e
BM
7889is in your PATH or set the PKG_CONFIG environment variable to the full
7890path to pkg-config.
7891
7892Alternatively, you may set the environment variables TRE_CFLAGS
7893and TRE_LIBS to avoid the need to call pkg-config.
7894See the pkg-config man page for more details.
7895
42d8a95c 7896To get pkg-config, see <http://pkg-config.freedesktop.org/>.
0ff0b04a 7897See \`config.log' for more details" "$LINENO" 5; }
70ec1b1e
BM
7898else
7899 TRE_CFLAGS=$pkg_cv_TRE_CFLAGS
7900 TRE_LIBS=$pkg_cv_TRE_LIBS
94c2b583 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902$as_echo "yes" >&6; }
42d8a95c 7903
70ec1b1e
BM
7904fi
7905
94c2b583 7906fi
85904c22 7907
547b2d69
BM
7908if test "x$with_system_pcre2" = "xno"; then :
7909
1e059ca0 7910pcre2_version="10.30"
547b2d69
BM
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
7912$as_echo "extracting PCRE2 regex library" >&6; }
7913cur_dir=`pwd`
7914cd extras
7915rm -rf pcre2-$pcre2_version pcre2
7916if test "x$ac_cv_path_GUNZIP" = "x" ; then
7917 tar xfz pcre2.tar.gz
7918else
7919 cp pcre2.tar.gz pcre2.tar.gz.bak
7920 gunzip -f pcre2.tar.gz
7921 cp pcre2.tar.gz.bak pcre2.tar.gz
7922 tar xf pcre2.tar
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
7925$as_echo "configuring PCRE2 regex library" >&6; }
7926cd pcre2-$pcre2_version
fd35f965 7927./configure --enable-jit --enable-shared --disable-unicode --prefix=$cur_dir/extras/pcre2 --libdir=$PRIVATELIBDIR || exit 1
547b2d69
BM
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
7929$as_echo "compiling PCRE2 regex library" >&6; }
7930$ac_cv_prog_MAKER || exit 1
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
7932$as_echo "installing PCRE2 regex library" >&6; }
7933$ac_cv_prog_MAKER install || exit 1
7934PCRE2_CFLAGS="-I$cur_dir/extras/pcre2/include"
7935
7936
7937PCRE2_LIBS=
7938if test -n "$ac_cv_path_PKGCONFIG"; then :
fd35f965 7939 PCRE2_LIBS="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
547b2d69
BM
7940fi
7941if test -z "$PCRE2_LIBS"; then :
fd35f965 7942 PCRE2_LIBS="$PRIVATELIBDIR/libpcre2-8.so"
547b2d69
BM
7943fi
7944
7945cd $cur_dir
7946
7947else
7948
7949
7950pkg_failed=no
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
7952$as_echo_n "checking for PCRE2... " >&6; }
7953
7954if test -n "$PCRE2_CFLAGS"; then
7955 pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.00" 2>/dev/null`
7964 test "x$?" != "x0" && pkg_failed=yes
7965else
7966 pkg_failed=yes
7967fi
7968 else
7969 pkg_failed=untried
7970fi
7971if test -n "$PCRE2_LIBS"; then
7972 pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
7973 elif test -n "$PKG_CONFIG"; then
7974 if test -n "$PKG_CONFIG" && \
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
7976 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
7977 ac_status=$?
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }; then
7980 pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.00" 2>/dev/null`
7981 test "x$?" != "x0" && pkg_failed=yes
7982else
7983 pkg_failed=yes
7984fi
7985 else
7986 pkg_failed=untried
7987fi
7988
7989
7990
7991if test $pkg_failed = yes; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994
7995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7996 _pkg_short_errors_supported=yes
7997else
7998 _pkg_short_errors_supported=no
7999fi
8000 if test $_pkg_short_errors_supported = yes; then
8001 PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
8002 else
8003 PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
8004 fi
8005 # Put the nasty error message in config.log where it belongs
8006 echo "$PCRE2_PKG_ERRORS" >&5
8007
8008 as_fn_error $? "Package requirements (libpcre2-8 >= 10.00) were not met:
8009
8010$PCRE2_PKG_ERRORS
8011
8012Consider adjusting the PKG_CONFIG_PATH environment variable if you
8013installed software in a non-standard prefix.
8014
8015Alternatively, you may set the environment variables PCRE2_CFLAGS
8016and PCRE2_LIBS to avoid the need to call pkg-config.
8017See the pkg-config man page for more details." "$LINENO" 5
8018elif test $pkg_failed = untried; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
8021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8023as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8024is in your PATH or set the PKG_CONFIG environment variable to the full
8025path to pkg-config.
8026
8027Alternatively, you may set the environment variables PCRE2_CFLAGS
8028and PCRE2_LIBS to avoid the need to call pkg-config.
8029See the pkg-config man page for more details.
8030
8031To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8032See \`config.log' for more details" "$LINENO" 5; }
8033else
8034 PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
8035 PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8037$as_echo "yes" >&6; }
8038
8039fi
8040
8041fi
8042
c133dfd3 8043has_system_cares="no"
60d14e7d 8044if test "x$with_system_cares" = "xyes"; then :
5f727eec 8045
5f727eec
BM
8046
8047pkg_failed=no
94c2b583 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
8049$as_echo_n "checking for CARES... " >&6; }
8050
42d8a95c
WP
8051if test -n "$CARES_CFLAGS"; then
8052 pkg_cv_CARES_CFLAGS="$CARES_CFLAGS"
8053 elif test -n "$PKG_CONFIG"; then
8054 if test -n "$PKG_CONFIG" && \
94c2b583 8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
5f727eec
BM
8056 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8057 ac_status=$?
94c2b583 8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
5f727eec 8060 pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
42d8a95c 8061 test "x$?" != "x0" && pkg_failed=yes
5f727eec
BM
8062else
8063 pkg_failed=yes
8064fi
42d8a95c
WP
8065 else
8066 pkg_failed=untried
5f727eec 8067fi
42d8a95c
WP
8068if test -n "$CARES_LIBS"; then
8069 pkg_cv_CARES_LIBS="$CARES_LIBS"
8070 elif test -n "$PKG_CONFIG"; then
8071 if test -n "$PKG_CONFIG" && \
94c2b583 8072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
5f727eec
BM
8073 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8074 ac_status=$?
94c2b583 8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
5f727eec 8077 pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
42d8a95c 8078 test "x$?" != "x0" && pkg_failed=yes
5f727eec
BM
8079else
8080 pkg_failed=yes
8081fi
42d8a95c
WP
8082 else
8083 pkg_failed=untried
5f727eec
BM
8084fi
8085
8086
8087
8088if test $pkg_failed = yes; then
42d8a95c
WP
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
5f727eec
BM
8091
8092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8093 _pkg_short_errors_supported=yes
8094else
8095 _pkg_short_errors_supported=no
8096fi
8097 if test $_pkg_short_errors_supported = yes; then
42d8a95c 8098 CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
5f727eec 8099 else
42d8a95c 8100 CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
5f727eec
BM
8101 fi
8102 # Put the nasty error message in config.log where it belongs
8103 echo "$CARES_PKG_ERRORS" >&5
8104
60d14e7d 8105 has_system_cares=no
c0790e90 8106elif test $pkg_failed = untried; then
42d8a95c
WP
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
60d14e7d 8109 has_system_cares=no
5f727eec
BM
8110else
8111 CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
8112 CARES_LIBS=$pkg_cv_CARES_LIBS
94c2b583 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114$as_echo "yes" >&6; }
60d14e7d 8115 has_system_cares=yes
590e345b
BM
8116if test "x$PRIVATELIBDIR" != "x"; then :
8117 rm -f "$PRIVATELIBDIR/"libcares*
8118fi
5f727eec 8119fi
c133dfd3
BM
8120fi
8121
60d14e7d 8122if test "$has_system_cares" = "no"; then :
c133dfd3 8123
7d6d33a5 8124cares_version="1.13.0"
c133dfd3
BM
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
8126$as_echo "extracting c-ares resolver library" >&6; }
8127cur_dir=`pwd`
8128cd extras
8129rm -rf c-ares-$cares_version c-ares
8130if test "x$ac_cv_path_GUNZIP" = "x" ; then
8131 tar xfz c-ares.tar.gz
8132else
8133 cp c-ares.tar.gz c-ares.tar.gz.bak
8134 gunzip -f c-ares.tar.gz
8135 cp c-ares.tar.gz.bak c-ares.tar.gz
8136 tar xf c-ares.tar
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
8139$as_echo "configuring c-ares library" >&6; }
8140cd c-ares-$cares_version
8141save_cflags="$CFLAGS"
8142CFLAGS="$orig_cflags"
8143export CFLAGS
8144./configure --prefix=$cur_dir/extras/c-ares --libdir=$PRIVATELIBDIR --enable-shared || exit 1
8145CFLAGS="$save_cflags"
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
8147$as_echo "compiling c-ares resolver library" >&6; }
8148$ac_cv_prog_MAKER || exit 1
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
8150$as_echo "installing c-ares resolver library" >&6; }
8151$ac_cv_prog_MAKER install || exit 1
8152CARES_CFLAGS="-I$cur_dir/extras/c-ares/include"
8153
63add509 8154CARES_LIBS="-L$PRIVATELIBDIR"
c133dfd3
BM
8155
8156cd ../..
8157CARESLIBSALT="$PRIVATELIBDIR/libcares.so"
8158cd -
8159case `uname -s` in
8160 *FreeBSD*)
8161 CARESLIBSALT="$CARESLIBSALT"
8162 ;;
8163 *Linux*)
8164 CARESLIBSALT="$CARESLIBSALT -lrt"
8165 ;;
8166 *SunOS*)
8167 CARESLIBSALT="$CARESLIBSALT -lrt"
8168 ;;
8169esac
8170
8171if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
8172 CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
8173else
8174 CARES_LIBSPRE="$CARES_LIBS"
8175 CARES_LIBS="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
8176 if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
8177 CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
8178 fi
8179fi
8180
8181cd $cur_dir
5f727eec 8182
94c2b583 8183fi
5f727eec 8184
0136ac3c
TM
8185# Make sure we can run config.sub.
8186$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8187 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
8188
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8190$as_echo_n "checking build system type... " >&6; }
8191if ${ac_cv_build+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193else
8194 ac_build_alias=$build_alias
8195test "x$ac_build_alias" = x &&
8196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8197test "x$ac_build_alias" = x &&
8198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8199ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8201
8202fi
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8204$as_echo "$ac_cv_build" >&6; }
8205case $ac_cv_build in
8206*-*-*) ;;
8207*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8208esac
8209build=$ac_cv_build
8210ac_save_IFS=$IFS; IFS='-'
8211set x $ac_cv_build
8212shift
8213build_cpu=$1
8214build_vendor=$2
8215shift; shift
8216# Remember, the first character of IFS is used to create $*,
8217# except with old shells:
8218build_os=$*
8219IFS=$ac_save_IFS
8220case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8221
8222
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8224$as_echo_n "checking host system type... " >&6; }
8225if ${ac_cv_host+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227else
8228 if test "x$host_alias" = x; then
8229 ac_cv_host=$ac_cv_build
8230else
8231 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8233fi
8234
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8237$as_echo "$ac_cv_host" >&6; }
8238case $ac_cv_host in
8239*-*-*) ;;
8240*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8241esac
8242host=$ac_cv_host
8243ac_save_IFS=$IFS; IFS='-'
8244set x $ac_cv_host
8245shift
8246host_cpu=$1
8247host_vendor=$2
8248shift; shift
8249# Remember, the first character of IFS is used to create $*,
8250# except with old shells:
8251host_os=$*
8252IFS=$ac_save_IFS
8253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8254
8255
f81d2207
BM
8256
8257
8258ac_ext=c
8259ac_cpp='$CPP $CPPFLAGS'
8260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264ax_pthread_ok=no
8265
8266# We used to check for pthread.h first, but this fails if pthread.h
8267# requires special compiler flags (e.g. on True64 or Sequent).
8268# It gets checked for in the link test anyway.
8269
8270# First of all, check if the user has set any of the PTHREAD_LIBS,
8271# etcetera environment variables, and if threads linking works using
8272# them:
8273if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8274 save_CFLAGS="$CFLAGS"
8275 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8276 save_LIBS="$LIBS"
8277 LIBS="$PTHREAD_LIBS $LIBS"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8279$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h. */
8282
8283/* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8286#ifdef __cplusplus
8287extern "C"
8288#endif
8289char pthread_join ();
8290int
8291main ()
8292{
8293return pthread_join ();
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_link "$LINENO"; then :
8299 ax_pthread_ok=yes
8300fi
8301rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8304$as_echo "$ax_pthread_ok" >&6; }
8305 if test x"$ax_pthread_ok" = xno; then
8306 PTHREAD_LIBS=""
8307 PTHREAD_CFLAGS=""
8308 fi
8309 LIBS="$save_LIBS"
8310 CFLAGS="$save_CFLAGS"
8311fi
8312
8313# We must check for the threads library under a number of different
8314# names; the ordering is very important because some systems
8315# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8316# libraries is broken (non-POSIX).
8317
8318# Create a list of thread flags to try. Items starting with a "-" are
8319# C compiler flags, and other items are library names, except for "none"
8320# which indicates that we try without any flags at all, and "pthread-config"
8321# which is a program returning the flags for the Pth emulation library.
8322
8323ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8324
8325# The ordering *is* (sometimes) important. Some notes on the
8326# individual items follow:
8327
8328# pthreads: AIX (must check this before -lpthread)
8329# none: in case threads are in libc; should be tried before -Kthread and
8330# other compiler flags to prevent continual compiler warnings
8331# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8332# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8333# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8334# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8335# -pthreads: Solaris/gcc
8336# -mthreads: Mingw32/gcc, Lynx/gcc
8337# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8338# doesn't hurt to check since this sometimes defines pthreads too;
8339# also defines -D_REENTRANT)
8340# ... -mt is also the pthreads flag for HP/aCC
8341# pthread: Linux, etcetera
8342# --thread-safe: KAI C++
8343# pthread-config: use pthread-config program (for GNU Pth library)
8344
8345case ${host_os} in
8346 solaris*)
8347
8348 # On Solaris (at least, for some versions), libc contains stubbed
8349 # (non-functional) versions of the pthreads routines, so link-based
8350 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8351 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8352 # a function called by this macro, so we could check for that, but
8353 # who knows whether they'll stub that too in a future libc.) So,
8354 # we'll just look for -pthreads and -lpthread first:
8355
8356 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8357 ;;
8358
8359 darwin*)
8360 ax_pthread_flags="-pthread $ax_pthread_flags"
8361 ;;
8362esac
8363
8364# Clang doesn't consider unrecognized options an error unless we specify
8365# -Werror. We throw in some extra Clang-specific options to ensure that
8366# this doesn't happen for GCC, which also accepts -Werror.
8367
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
8369$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
8370save_CFLAGS="$CFLAGS"
8371ax_pthread_extra_flags="-Werror"
8372CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
8373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h. */
8375int foo(void);
8376int
8377main ()
8378{
8379foo()
8380 ;
8381 return 0;
8382}
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386$as_echo "yes" >&6; }
8387else
8388 ax_pthread_extra_flags=
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393CFLAGS="$save_CFLAGS"
8394
8395if test x"$ax_pthread_ok" = xno; then
8396for flag in $ax_pthread_flags; do
8397
8398 case $flag in
8399 none)
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8401$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8402 ;;
8403
8404 -*)
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8406$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8407 PTHREAD_CFLAGS="$flag"
8408 ;;
8409
8410 pthread-config)
8411 # Extract the first word of "pthread-config", so it can be a program name with args.
8412set dummy pthread-config; ac_word=$2
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if ${ac_cv_prog_ax_pthread_config+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417else
8418 if test -n "$ax_pthread_config"; then
8419 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8420else
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_ax_pthread_config="yes"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432done
8433 done
8434IFS=$as_save_IFS
8435
8436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8437fi
8438fi
8439ax_pthread_config=$ac_cv_prog_ax_pthread_config
8440if test -n "$ax_pthread_config"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8442$as_echo "$ax_pthread_config" >&6; }
8443else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448
8449 if test x"$ax_pthread_config" = xno; then continue; fi
8450 PTHREAD_CFLAGS="`pthread-config --cflags`"
8451 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8452 ;;
8453
8454 *)
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8456$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8457 PTHREAD_LIBS="-l$flag"
8458 ;;
8459 esac
8460
8461 save_LIBS="$LIBS"
8462 save_CFLAGS="$CFLAGS"
8463 LIBS="$PTHREAD_LIBS $LIBS"
8464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8465
8466 # Check for various functions. We must include pthread.h,
8467 # since some functions may be macros. (On the Sequent, we
8468 # need a special flag -Kthread to make this header compile.)
8469 # We check for pthread_join because it is in -lpthread on IRIX
8470 # while pthread_create is in libc. We check for pthread_attr_init
8471 # due to DEC craziness with -lpthreads. We check for
8472 # pthread_cleanup_push because it is one of the few pthread
8473 # functions on Solaris that doesn't have a non-functional libc stub.
8474 # We try pthread_create on general principles.
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
8477#include <pthread.h>
8478 static void routine(void *a) { a = 0; }
8479 static void *start_routine(void *a) { return a; }
8480int
8481main ()
8482{
8483pthread_t th; pthread_attr_t attr;
8484 pthread_create(&th, 0, start_routine, 0);
8485 pthread_join(th, 0);
8486 pthread_attr_init(&attr);
8487 pthread_cleanup_push(routine, 0);
8488 pthread_cleanup_pop(0) /* ; */
8489 ;
8490 return 0;
8491}
8492_ACEOF
8493if ac_fn_c_try_link "$LINENO"; then :
8494 ax_pthread_ok=yes
8495fi
8496rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498
8499 LIBS="$save_LIBS"
8500 CFLAGS="$save_CFLAGS"
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8503$as_echo "$ax_pthread_ok" >&6; }
8504 if test "x$ax_pthread_ok" = xyes; then
8505 break;
8506 fi
8507
8508 PTHREAD_LIBS=""
8509 PTHREAD_CFLAGS=""
8510done
8511fi
8512
8513# Various other checks:
8514if test "x$ax_pthread_ok" = xyes; then
8515 save_LIBS="$LIBS"
8516 LIBS="$PTHREAD_LIBS $LIBS"
8517 save_CFLAGS="$CFLAGS"
8518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8519
8520 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8522$as_echo_n "checking for joinable pthread attribute... " >&6; }
8523 attr_name=unknown
8524 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h. */
8527#include <pthread.h>
8528int
8529main ()
8530{
8531int attr = $attr; return attr /* ; */
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_link "$LINENO"; then :
8537 attr_name=$attr; break
8538fi
8539rm -f core conftest.err conftest.$ac_objext \
8540 conftest$ac_exeext conftest.$ac_ext
8541 done
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8543$as_echo "$attr_name" >&6; }
8544 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8545
8546cat >>confdefs.h <<_ACEOF
8547#define PTHREAD_CREATE_JOINABLE $attr_name
8548_ACEOF
8549
8550 fi
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8553$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8554 flag=no
8555 case ${host_os} in
8556 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
8557 osf* | hpux*) flag="-D_REENTRANT";;
8558 solaris*)
8559 if test "$GCC" = "yes"; then
8560 flag="-D_REENTRANT"
8561 else
8562 # TODO: What about Clang on Solaris?
8563 flag="-mt -D_REENTRANT"
8564 fi
8565 ;;
8566 esac
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
8568$as_echo "$flag" >&6; }
8569 if test "x$flag" != xno; then
8570 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8571 fi
8572
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8574$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8575if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577else
8578
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h. */
8581#include <pthread.h>
8582int
8583main ()
8584{
8585int i = PTHREAD_PRIO_INHERIT;
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590if ac_fn_c_try_link "$LINENO"; then :
8591 ax_cv_PTHREAD_PRIO_INHERIT=yes
8592else
8593 ax_cv_PTHREAD_PRIO_INHERIT=no
8594fi
8595rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597
8598fi
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8600$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8602
8603$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8604
8605fi
8606
8607 LIBS="$save_LIBS"
8608 CFLAGS="$save_CFLAGS"
8609
8610 # More AIX lossage: compile with *_r variant
8611 if test "x$GCC" != xyes; then
8612 case $host_os in
8613 aix*)
8614 case "x/$CC" in #(
8615 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8616 #handle absolute path differently from PATH based program lookup
8617 case "x$CC" in #(
8618 x/*) :
8619 if as_fn_executable_p ${CC}_r; then :
8620 PTHREAD_CC="${CC}_r"
8621fi ;; #(
8622 *) :
8623 for ac_prog in ${CC}_r
8624do
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626set dummy $ac_prog; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
8629if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631else
8632 if test -n "$PTHREAD_CC"; then
8633 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_PTHREAD_CC="$ac_prog"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647 done
8648IFS=$as_save_IFS
8649
8650fi
8651fi
8652PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8653if test -n "$PTHREAD_CC"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8655$as_echo "$PTHREAD_CC" >&6; }
8656else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659fi
8660
8661
8662 test -n "$PTHREAD_CC" && break
8663done
8664test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8665 ;;
8666esac ;; #(
8667 *) :
8668 ;;
8669esac
8670 ;;
8671 esac
8672 fi
8673fi
8674
8675test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8676
8677
8678
8679
8680
8681# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8682if test x"$ax_pthread_ok" = xyes; then
8683
8684$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8685
8686 :
8687else
8688 ax_pthread_ok=no
8689
8690fi
8691ac_ext=c
8692ac_cpp='$CPP $CPPFLAGS'
8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697
8698
85904c22 8699
b2e4cf82 8700 # Check whether --enable-libcurl was given.
94c2b583 8701if test "${enable_libcurl+set}" = set; then :
b2e4cf82 8702 enableval=$enable_libcurl; enable_curl=$enableval
8703else
8704 enable_curl=no
8705fi
8706
8707
94c2b583 8708 if test "x$enable_curl" != "xno"; then :
b2e4cf82 8709
8710 CURLCONFIG="curl-config"
94c2b583 8711 if test "x$enable_curl" != "xyes"; then :
b2e4cf82 8712 CURLCONFIG="$enable_curl/bin/curl-config"
8713fi
8714
94c2b583 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
8716$as_echo_n "checking $CURLCONFIG... " >&6; }
8717 if $CURLCONFIG --version 2>/dev/null >/dev/null; then :
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8719$as_echo "yes" >&6; }
b2e4cf82 8720else
94c2b583 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
8725as_fn_error $? "Could not find curl-config, try editing --enable-libcurl
8726See \`config.log' for more details" "$LINENO" 5; }
b2e4cf82 8727fi
8728
8729 CURLCFLAG="`$CURLCONFIG --cflags`"
8730 CURLLIBS="`$CURLCONFIG --libs`"
8731
d51d23e5 8732 if $CURLCONFIG --libs | grep -q -e ares; then :
df37d83f 8733 CURLUSESCARES="1"
8734else
8735 CURLUSESCARES="0"
b2e4cf82 8736fi
8737
94c2b583 8738 if test -z "${CURLLIBS}"; then :
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
8740$as_echo "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
b2e4cf82 8741fi
8742
8743
21d0af6e 8744 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0" ; then :
b2e4cf82 8745
0ff0b04a 8746 as_fn_error $? "
85904c22
BM
8747
8748 You have decided to build unrealIRCd with libcURL (remote includes) support.
69e651aa
BM
8749 However, you have system-installed c-ares support has either been disabled
8750 (--without-system-cares) or is unavailable.
85904c22
BM
8751 Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
8752 with the system-installed libcURL, this is a bad idea which may result in error
8753 messages looking like:
8754
8755 \`\`[error] unrealircd.conf:9: include: error downloading '(http://example.net/ex.conf)': Could not resolve host: example.net (Successful completion)''
8756
8757 Or UnrealIRCd might even crash.
8758
8759 Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
94c2b583 8760" "$LINENO" 5
b2e4cf82 8761
b2e4cf82 8762fi
8763
8764 IRCDLIBS="$IRCDLIBS $CURLLIBS"
7a3bf155 8765 CFLAGS="$CFLAGS $CURLCFLAG"
8766
94c2b583 8767$as_echo "#define USE_LIBCURL /**/" >>confdefs.h
7a3bf155 8768
b2e4cf82 8769
94c2b583 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
8771$as_echo_n "checking curl_easy_init() in $CURLLIBS... " >&6; }
b2e4cf82 8772 LIBS_SAVEDA="$LIBS"
8773 CFLAGS_SAVEDA="$CFLAGS"
8774
8775 LIBS="$IRCDLIBS $IRCDLIBS_CURL_CARES"
8776 CFLAGS="$CFLAGS $CFLAGS_CURL_CARES"
94c2b583 8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85904c22 8778/* end confdefs.h. */
94c2b583 8779
8780 #include <curl/curl.h>
b2e4cf82 8781int
8782main ()
8783{
8784CURL *curl = curl_easy_init();
8785 ;
8786 return 0;
94c2b583 8787}
85904c22 8788
94c2b583 8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8792$as_echo "yes" >&6; }
8793else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0ff0b04a
NPB
8798as_fn_error $? "You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
8799See \`config.log' for more details" "$LINENO" 5; }
b2e4cf82 8800
8801fi
94c2b583 8802rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
b2e4cf82 8804 LIBS="$LIBS_SAVEDA"
8805 CFLAGS="$CFLAGS_SAVEDA"
8806
8807 URL="url.o"
8808
8809
8810fi
8811
101d2dd6
BM
8812UNRLINCDIR="`pwd`/include"
8813
821a0464
BM
8814if test "$ac_cv_werror" = "yes" ; then
8815 CFLAGS="$CFLAGS -Werror"
8816fi
8817
8818
101d2dd6 8819
ea651384 8820ac_config_files="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/snomasks/Makefile src/modules/extbans/Makefile src/modules/cap/Makefile src/modules/third/Makefile unrealircd"
cadd4230 8821
f69335e6 8822cat >confcache <<\_ACEOF
f40ec73c 8823# This file is a shell script that caches the results of configure
8824# tests run on this system so they can be shared between configure
f69335e6 8825# scripts and configure runs, see configure's option --config-cache.
8826# It is not useful on other systems. If it contains results you don't
8827# want to keep, you may remove or edit it.
f40ec73c 8828#
f69335e6 8829# config.status only pays attention to the cache file if you give it
8830# the --recheck option to rerun configure.
f40ec73c 8831#
545d087a 8832# `ac_cv_env_foo' variables (set or unset) will be overridden when
f69335e6 8833# loading this file, other *unset* `ac_cv_foo' will be assigned the
8834# following values.
8835
8836_ACEOF
8837
f40ec73c 8838# The following way of writing the cache mishandles newlines in values,
8839# but we know of no workaround that is simple, portable, and efficient.
cadd4230 8840# So, we kill variables containing newlines.
f40ec73c 8841# Ultrix sh set writes to stderr and can't be redirected directly,
8842# and sets the high bit in the cache file unless we assign to the vars.
cadd4230
BM
8843(
8844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8845 eval ac_val=\$$ac_var
8846 case $ac_val in #(
8847 *${as_nl}*)
8848 case $ac_var in #(
94c2b583 8849 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cadd4230
BM
8851 esac
8852 case $ac_var in #(
8853 _ | IFS | as_nl) ;; #(
94c2b583 8854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8855 *) { eval $ac_var=; unset $ac_var;} ;;
cadd4230
BM
8856 esac ;;
8857 esac
8858 done
8859
f69335e6 8860 (set) 2>&1 |
cadd4230
BM
8861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8862 *${as_nl}ac_space=\ *)
94c2b583 8863 # `set' does not quote correctly, so add quotes: double-quote
8864 # substitution turns \\\\ into \\, and sed turns \\ into \.
f69335e6 8865 sed -n \
545d087a
BM
8866 "s/'/'\\\\''/g;
8867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cadd4230 8868 ;; #(
f69335e6 8869 *)
8870 # `set' quotes correctly as required by POSIX, so do not add quotes.
cadd4230 8871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f69335e6 8872 ;;
cadd4230
BM
8873 esac |
8874 sort
8875) |
f69335e6 8876 sed '
cadd4230 8877 /^ac_cv_env_/b end
f69335e6 8878 t clear
cadd4230 8879 :clear
f69335e6 8880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8881 t end
cadd4230
BM
8882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8883 :end' >>confcache
8884if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8885 if test -w "$cache_file"; then
0ff0b04a 8886 if test "x$cache_file" != "x/dev/null"; then
94c2b583 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8888$as_echo "$as_me: updating cache $cache_file" >&6;}
0ff0b04a
NPB
8889 if test ! -f "$cache_file" || test -h "$cache_file"; then
8890 cat confcache >"$cache_file"
8891 else
8892 case $cache_file in #(
8893 */* | ?:*)
8894 mv -f confcache "$cache_file"$$ &&
8895 mv -f "$cache_file"$$ "$cache_file" ;; #(
8896 *)
8897 mv -f confcache "$cache_file" ;;
8898 esac
8899 fi
8900 fi
f40ec73c 8901 else
94c2b583 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8903$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
f40ec73c 8904 fi
8905fi
8906rm -f confcache
8907
f40ec73c 8908test "x$prefix" = xNONE && prefix=$ac_default_prefix
8909# Let make expand exec_prefix.
8910test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8911
f40ec73c 8912DEFS=-DHAVE_CONFIG_H
8913
545d087a
BM
8914ac_libobjs=
8915ac_ltlibobjs=
0ff0b04a 8916U=
545d087a
BM
8917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8918 # 1. Remove the extension, and $U if already installed.
cadd4230 8919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
94c2b583 8920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cadd4230
BM
8921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8922 # will be set to the directory where LIBOBJS objects are built.
94c2b583 8923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
545d087a
BM
8925done
8926LIBOBJS=$ac_libobjs
8927
8928LTLIBOBJS=$ac_ltlibobjs
8929
8930
f40ec73c 8931
0ff0b04a 8932: "${CONFIG_STATUS=./config.status}"
94c2b583 8933ac_write_fail=0
f69335e6 8934ac_clean_files_save=$ac_clean_files
8935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
94c2b583 8936{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8937$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8938as_write_fail=0
8939cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
f69335e6 8940#! $SHELL
8941# Generated by $as_me.
f40ec73c 8942# Run this file to recreate the current configuration.
f40ec73c 8943# Compiler output produced by configure, useful for debugging
f69335e6 8944# configure, is in config.log if it exists.
f40ec73c 8945
f69335e6 8946debug=false
545d087a
BM
8947ac_cs_recheck=false
8948ac_cs_silent=false
85904c22 8949
94c2b583 8950SHELL=\${CONFIG_SHELL-$SHELL}
8951export SHELL
8952_ASEOF
8953cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8954## -------------------- ##
8955## M4sh Initialization. ##
8956## -------------------- ##
f69335e6 8957
cadd4230
BM
8958# Be more Bourne compatible
8959DUALCASE=1; export DUALCASE # for MKS sh
94c2b583 8960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
f69335e6 8961 emulate sh
8962 NULLCMD=:
94c2b583 8963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
545d087a
BM
8964 # is contrary to our usage. Disable this feature.
8965 alias -g '${1+"$@"}'='"$@"'
cadd4230
BM
8966 setopt NO_GLOB_SUBST
8967else
94c2b583 8968 case `(set -o) 2>/dev/null` in #(
8969 *posix*) :
8970 set -o posix ;; #(
8971 *) :
8972 ;;
cadd4230 8973esac
cadd4230
BM
8974fi
8975
8976
94c2b583 8977as_nl='
8978'
8979export as_nl
8980# Printing a long string crashes Solaris 7 /usr/bin/printf.
8981as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8982as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8984# Prefer a ksh shell builtin over an external printf program on Solaris,
8985# but without wasting forks for bash or zsh.
8986if test -z "$BASH_VERSION$ZSH_VERSION" \
8987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8988 as_echo='print -r --'
8989 as_echo_n='print -rn --'
8990elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8991 as_echo='printf %s\n'
8992 as_echo_n='printf %s'
8993else
8994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8995 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8996 as_echo_n='/usr/ucb/echo -n'
cadd4230 8997 else
94c2b583 8998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8999 as_echo_n_body='eval
9000 arg=$1;
9001 case $arg in #(
9002 *"$as_nl"*)
9003 expr "X$arg" : "X\\(.*\\)$as_nl";
9004 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9005 esac;
9006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9007 '
9008 export as_echo_n_body
9009 as_echo_n='sh -c $as_echo_n_body as_echo'
cadd4230 9010 fi
94c2b583 9011 export as_echo_body
9012 as_echo='sh -c $as_echo_body as_echo'
f69335e6 9013fi
9014
94c2b583 9015# The user is always right.
9016if test "${PATH_SEPARATOR+set}" != set; then
9017 PATH_SEPARATOR=:
9018 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9019 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9020 PATH_SEPARATOR=';'
9021 }
f69335e6 9022fi
9023
545d087a 9024
cadd4230
BM
9025# IFS
9026# We need space, tab and new line, in precisely that order. Quoting is
9027# there to prevent editors from complaining about space-tab.
9028# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9029# splitting by setting IFS to empty value.)
cadd4230
BM
9030IFS=" "" $as_nl"
9031
9032# Find who we are. Look in the path if we contain no directory separator.
0ff0b04a 9033as_myself=
94c2b583 9034case $0 in #((
cadd4230
BM
9035 *[\\/]* ) as_myself=$0 ;;
9036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
94c2b583 9041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9042 done
cadd4230
BM
9043IFS=$as_save_IFS
9044
9045 ;;
9046esac
9047# We did not find ourselves, most probably we were run as `sh COMMAND'
9048# in which case we are not to be found in the path.
9049if test "x$as_myself" = x; then
9050 as_myself=$0
9051fi
9052if test ! -f "$as_myself"; then
94c2b583 9053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9054 exit 1
cadd4230
BM
9055fi
9056
94c2b583 9057# Unset variables that we do not need and which cause bugs (e.g. in
9058# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9059# suppresses any "Segmentation fault" message there. '((' could
9060# trigger a bug in pdksh 5.2.14.
9061for as_var in BASH_ENV ENV MAIL MAILPATH
9062do eval test x\${$as_var+set} = xset \
9063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cadd4230 9064done
545d087a
BM
9065PS1='$ '
9066PS2='> '
9067PS4='+ '
9068
9069# NLS nuisances.
94c2b583 9070LC_ALL=C
9071export LC_ALL
9072LANGUAGE=C
9073export LANGUAGE
9074
9075# CDPATH.
9076(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9077
9078
0ff0b04a
NPB
9079# as_fn_error STATUS ERROR [LINENO LOG_FD]
9080# ----------------------------------------
94c2b583 9081# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9082# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
0ff0b04a 9083# script with STATUS, using 1 if that was 0.
94c2b583 9084as_fn_error ()
9085{
0ff0b04a
NPB
9086 as_status=$1; test $as_status -eq 0 && as_status=1
9087 if test "$4"; then
9088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4eff1e84 9090 fi
0ff0b04a 9091 $as_echo "$as_me: error: $2" >&2
94c2b583 9092 as_fn_exit $as_status
9093} # as_fn_error
9094
9095
9096# as_fn_set_status STATUS
9097# -----------------------
9098# Set $? to STATUS, without forking.
9099as_fn_set_status ()
9100{
9101 return $1
9102} # as_fn_set_status
9103
9104# as_fn_exit STATUS
9105# -----------------
9106# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9107as_fn_exit ()
9108{
9109 set +e
9110 as_fn_set_status $1
9111 exit $1
9112} # as_fn_exit
9113
9114# as_fn_unset VAR
9115# ---------------
9116# Portably unset VAR.
9117as_fn_unset ()
9118{
9119 { eval $1=; unset $1;}
9120}
9121as_unset=as_fn_unset
9122# as_fn_append VAR VALUE
9123# ----------------------
9124# Append the text in VALUE to the end of the definition contained in VAR. Take
9125# advantage of any shell optimizations that allow amortized linear growth over
9126# repeated appends, instead of the typical quadratic growth present in naive
9127# implementations.
9128if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9129 eval 'as_fn_append ()
9130 {
9131 eval $1+=\$2
9132 }'
9133else
9134 as_fn_append ()
9135 {
9136 eval $1=\$$1\$2
9137 }
9138fi # as_fn_append
9139
9140# as_fn_arith ARG...
9141# ------------------
9142# Perform arithmetic evaluation on the ARGs, and store the result in the
9143# global $as_val. Take advantage of shells that can avoid forks. The arguments
9144# must be portable across $(()) and expr.
9145if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9146 eval 'as_fn_arith ()
9147 {
9148 as_val=$(( $* ))
9149 }'
9150else
9151 as_fn_arith ()
9152 {
9153 as_val=`expr "$@" || test $? -eq 1`
9154 }
9155fi # as_fn_arith
9156
4eff1e84 9157
cadd4230
BM
9158if expr a : '\(a\)' >/dev/null 2>&1 &&
9159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
545d087a
BM
9160 as_expr=expr
9161else
9162 as_expr=false
9163fi
9164
cadd4230 9165if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
545d087a
BM
9166 as_basename=basename
9167else
9168 as_basename=false
9169fi
f69335e6 9170
94c2b583 9171if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9172 as_dirname=dirname
9173else
9174 as_dirname=false
9175fi
f69335e6 9176
cadd4230 9177as_me=`$as_basename -- "$0" ||
f69335e6 9178$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9179 X"$0" : 'X\(//\)$' \| \
cadd4230 9180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
94c2b583 9181$as_echo X/"$0" |
cadd4230
BM
9182 sed '/^.*\/\([^/][^/]*\)\/*$/{
9183 s//\1/
9184 q
9185 }
9186 /^X\/\(\/\/\)$/{
9187 s//\1/
9188 q
9189 }
9190 /^X\/\(\/\).*/{
9191 s//\1/
9192 q
9193 }
9194 s/.*/./; q'`
545d087a 9195
94c2b583 9196# Avoid depending upon Character Ranges.
9197as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9198as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9199as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9200as_cr_digits='0123456789'
9201as_cr_alnum=$as_cr_Letters$as_cr_digits
cadd4230
BM
9202
9203ECHO_C= ECHO_N= ECHO_T=
94c2b583 9204case `echo -n x` in #(((((
cadd4230 9205-n*)
94c2b583 9206 case `echo 'xy\c'` in
cadd4230 9207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
94c2b583 9208 xy) ECHO_C='\c';;
9209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9210 ECHO_T=' ';;
cadd4230
BM
9211 esac;;
9212*)
9213 ECHO_N='-n';;
f69335e6 9214esac
f40ec73c 9215
f69335e6 9216rm -f conf$$ conf$$.exe conf$$.file
cadd4230
BM
9217if test -d conf$$.dir; then
9218 rm -f conf$$.dir/conf$$.file
9219else
9220 rm -f conf$$.dir
94c2b583 9221 mkdir conf$$.dir 2>/dev/null
9222fi
9223if (echo >conf$$.file) 2>/dev/null; then
9224 if ln -s conf$$.file conf$$ 2>/dev/null; then
9225 as_ln_s='ln -s'
9226 # ... but there are two gotchas:
9227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f1c5f885 9229 # In both cases, we have to default to `cp -pR'.
94c2b583 9230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f1c5f885 9231 as_ln_s='cp -pR'
94c2b583 9232 elif ln conf$$.file conf$$ 2>/dev/null; then
9233 as_ln_s=ln
9234 else
f1c5f885 9235 as_ln_s='cp -pR'
94c2b583 9236 fi
f69335e6 9237else
f1c5f885 9238 as_ln_s='cp -pR'
f69335e6 9239fi
cadd4230
BM
9240rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9241rmdir conf$$.dir 2>/dev/null
f69335e6 9242
94c2b583 9243
9244# as_fn_mkdir_p
9245# -------------
9246# Create "$as_dir" as a directory, including parents if necessary.
9247as_fn_mkdir_p ()
9248{
9249
9250 case $as_dir in #(
9251 -*) as_dir=./$as_dir;;
9252 esac
9253 test -d "$as_dir" || eval $as_mkdir_p || {
9254 as_dirs=
9255 while :; do
9256 case $as_dir in #(
9257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9258 *) as_qdir=$as_dir;;
9259 esac
9260 as_dirs="'$as_qdir' $as_dirs"
9261 as_dir=`$as_dirname -- "$as_dir" ||
9262$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9263 X"$as_dir" : 'X\(//\)[^/]' \| \
9264 X"$as_dir" : 'X\(//\)$' \| \
9265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9266$as_echo X"$as_dir" |
9267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9268 s//\1/
9269 q
9270 }
9271 /^X\(\/\/\)[^/].*/{
9272 s//\1/
9273 q
9274 }
9275 /^X\(\/\/\)$/{
9276 s//\1/
9277 q
9278 }
9279 /^X\(\/\).*/{
9280 s//\1/
9281 q
9282 }
9283 s/.*/./; q'`
9284 test -d "$as_dir" && break
9285 done
9286 test -z "$as_dirs" || eval "mkdir $as_dirs"
0ff0b04a 9287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
94c2b583 9288
9289
9290} # as_fn_mkdir_p
545d087a 9291if mkdir -p . 2>/dev/null; then
94c2b583 9292 as_mkdir_p='mkdir -p "$as_dir"'
545d087a
BM
9293else
9294 test -d ./-p && rmdir ./-p
9295 as_mkdir_p=false
9296fi
9297
f1c5f885
BM
9298
9299# as_fn_executable_p FILE
9300# -----------------------
9301# Test if FILE is an executable regular file.
9302as_fn_executable_p ()
9303{
9304 test -f "$1" && test -x "$1"
9305} # as_fn_executable_p
9306as_test_x='test -x'
9307as_executable_p=as_fn_executable_p
f69335e6 9308
9309# Sed expression to map a string onto a valid CPP name.
545d087a 9310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 9311
9312# Sed expression to map a string onto a valid variable name.
545d087a 9313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 9314
9315
f69335e6 9316exec 6>&1
94c2b583 9317## ----------------------------------- ##
9318## Main body of $CONFIG_STATUS script. ##
9319## ----------------------------------- ##
9320_ASEOF
9321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
f69335e6 9322
94c2b583 9323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9324# Save the log message, to keep $0 and so on meaningful, and to
f69335e6 9325# report actual input values of CONFIG_FILES etc. instead of their
cadd4230
BM
9326# values after options handling.
9327ac_log="
57a008b8 9328This file was extended by unrealircd $as_me 4.0.19-rc2, which was
f1c5f885 9329generated by GNU Autoconf 2.69. Invocation command line was
f69335e6 9330
9331 CONFIG_FILES = $CONFIG_FILES
9332 CONFIG_HEADERS = $CONFIG_HEADERS
9333 CONFIG_LINKS = $CONFIG_LINKS
9334 CONFIG_COMMANDS = $CONFIG_COMMANDS
9335 $ $0 $@
9336
cadd4230
BM
9337on `(hostname || uname -n) 2>/dev/null | sed 1q`
9338"
9339
f69335e6 9340_ACEOF
9341
94c2b583 9342case $ac_config_files in *"
9343"*) set x $ac_config_files; shift; ac_config_files=$*;;
9344esac
9345
9346case $ac_config_headers in *"
9347"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9348esac
9349
9350
9351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f69335e6 9352# Files that config.status was made for.
cadd4230
BM
9353config_files="$ac_config_files"
9354config_headers="$ac_config_headers"
f69335e6 9355
cadd4230 9356_ACEOF
f69335e6 9357
94c2b583 9358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f69335e6 9359ac_cs_usage="\
94c2b583 9360\`$as_me' instantiates files and other configuration actions
9361from templates according to the current configuration. Unless the files
9362and actions are specified as TAGs, all are instantiated by default.
f69335e6 9363
94c2b583 9364Usage: $0 [OPTION]... [TAG]...
f69335e6 9365
9366 -h, --help print this help, then exit
cadd4230 9367 -V, --version print version number and configuration settings, then exit
94c2b583 9368 --config print configuration, then exit
9369 -q, --quiet, --silent
9370 do not print progress messages
f69335e6 9371 -d, --debug don't remove temporary files
9372 --recheck update $as_me by reconfiguring in the same conditions
94c2b583 9373 --file=FILE[:TEMPLATE]
9374 instantiate the configuration file FILE
9375 --header=FILE[:TEMPLATE]
9376 instantiate the configuration header FILE
f69335e6 9377
9378Configuration files:
9379$config_files
9380
9381Configuration headers:
9382$config_headers
9383
94c2b583 9384Report bugs to <http://bugs.unrealircd.org/>.
9385unrealircd home page: <http://unrealircd.org/>."
f69335e6 9386
cadd4230 9387_ACEOF
94c2b583 9388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9389ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f69335e6 9390ac_cs_version="\\
57a008b8 9391unrealircd config.status 4.0.19-rc2
f1c5f885 9392configured by $0, generated by GNU Autoconf 2.69,
94c2b583 9393 with options \\"\$ac_cs_config\\"
f69335e6 9394
f1c5f885 9395Copyright (C) 2012 Free Software Foundation, Inc.
f69335e6 9396This config.status script is free software; the Free Software Foundation
9397gives unlimited permission to copy, distribute and modify it."
cadd4230
BM
9398
9399ac_pwd='$ac_pwd'
9400srcdir='$srcdir'
94c2b583 9401test -n "\$AWK" || AWK=awk
f69335e6 9402_ACEOF
9403
94c2b583 9404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9405# The default lists apply if the user does not specify any file.
f69335e6 9406ac_need_defaults=:
9407while test $# != 0
9408do
9409 case $1 in
0ff0b04a 9410 --*=?*)
cadd4230
BM
9411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
545d087a
BM
9413 ac_shift=:
9414 ;;
0ff0b04a
NPB
9415 --*=)
9416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9417 ac_optarg=
9418 ac_shift=:
9419 ;;
cadd4230 9420 *)
545d087a
BM
9421 ac_option=$1
9422 ac_optarg=$2
9423 ac_shift=shift
f69335e6 9424 ;;
f69335e6 9425 esac
9426
545d087a 9427 case $ac_option in
f69335e6 9428 # Handling of the options.
545d087a
BM
9429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9430 ac_cs_recheck=: ;;
cadd4230 9431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
94c2b583 9432 $as_echo "$ac_cs_version"; exit ;;
9433 --config | --confi | --conf | --con | --co | --c )
9434 $as_echo "$ac_cs_config"; exit ;;
cadd4230 9435 --debug | --debu | --deb | --de | --d | -d )
f69335e6 9436 debug=: ;;
9437 --file | --fil | --fi | --f )
545d087a 9438 $ac_shift
94c2b583 9439 case $ac_optarg in
9440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
0ff0b04a 9441 '') as_fn_error $? "missing file argument" ;;
94c2b583 9442 esac
9443 as_fn_append CONFIG_FILES " '$ac_optarg'"
f69335e6 9444 ac_need_defaults=false;;
9445 --header | --heade | --head | --hea )
545d087a 9446 $ac_shift
94c2b583 9447 case $ac_optarg in
9448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9449 esac
9450 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
f69335e6 9451 ac_need_defaults=false;;
cadd4230
BM
9452 --he | --h)
9453 # Conflict between --help and --header
0ff0b04a 9454 as_fn_error $? "ambiguous option: \`$1'
94c2b583 9455Try \`$0 --help' for more information.";;
cadd4230 9456 --help | --hel | -h )
94c2b583 9457 $as_echo "$ac_cs_usage"; exit ;;
545d087a
BM
9458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9460 ac_cs_silent=: ;;
f69335e6 9461
9462 # This is an error.
0ff0b04a 9463 -*) as_fn_error $? "unrecognized option: \`$1'
94c2b583 9464Try \`$0 --help' for more information." ;;
f69335e6 9465
94c2b583 9466 *) as_fn_append ac_config_targets " $1"
cadd4230 9467 ac_need_defaults=false ;;
f69335e6 9468
9469 esac
9470 shift
9471done
9472
545d087a
BM
9473ac_configure_extra_args=
9474
9475if $ac_cs_silent; then
9476 exec 6>/dev/null
9477 ac_configure_extra_args="$ac_configure_extra_args --silent"
9478fi
9479
9480_ACEOF
94c2b583 9481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
545d087a 9482if \$ac_cs_recheck; then
f1c5f885 9483 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
94c2b583 9484 shift
9485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9486 CONFIG_SHELL='$SHELL'
cadd4230 9487 export CONFIG_SHELL
94c2b583 9488 exec "\$@"
545d087a
BM
9489fi
9490
f69335e6 9491_ACEOF
94c2b583 9492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cadd4230
BM
9493exec 5>>config.log
9494{
9495 echo
9496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9497## Running $as_me. ##
9498_ASBOX
94c2b583 9499 $as_echo "$ac_log"
cadd4230 9500} >&5
f69335e6 9501
cadd4230 9502_ACEOF
94c2b583 9503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cadd4230 9504_ACEOF
f69335e6 9505
94c2b583 9506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cadd4230
BM
9507
9508# Handling of arguments.
f69335e6 9509for ac_config_target in $ac_config_targets
9510do
cadd4230
BM
9511 case $ac_config_target in
9512 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
9513 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4fd616f9 9514 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
cadd4230 9515 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
101d2dd6
BM
9516 "src/modules/chanmodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
9517 "src/modules/usermodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
c0f18b3e 9518 "src/modules/snomasks/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/snomasks/Makefile" ;;
de59bf47 9519 "src/modules/extbans/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/extbans/Makefile" ;;
ea651384 9520 "src/modules/cap/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/cap/Makefile" ;;
bd21ea90 9521 "src/modules/third/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/third/Makefile" ;;
5e94fc9c 9522 "unrealircd") CONFIG_FILES="$CONFIG_FILES unrealircd" ;;
cadd4230 9523
0ff0b04a 9524 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f69335e6 9525 esac
f40ec73c 9526done
f69335e6 9527
cadd4230 9528
f69335e6 9529# If the user did not use the arguments to specify the items to instantiate,
9530# then the envvar interface is used. Set only those that are not.
9531# We use the long form for the default assignment because of an extremely
9532# bizarre bug on SunOS 4.1.3.
9533if $ac_need_defaults; then
9534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f40ec73c 9536fi
f40ec73c 9537
545d087a 9538# Have a temporary directory for convenience. Make it in the build tree
cadd4230 9539# simply because there is no reason against having it here, and in addition,
545d087a 9540# creating and moving files from /tmp can sometimes cause problems.
cadd4230
BM
9541# Hook for its removal unless debugging.
9542# Note that there is a small window in which the directory will not be cleaned:
9543# after its creation but before its name has been assigned to `$tmp'.
f69335e6 9544$debug ||
9545{
0ff0b04a 9546 tmp= ac_tmp=
cadd4230 9547 trap 'exit_status=$?
0ff0b04a
NPB
9548 : "${ac_tmp:=$tmp}"
9549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cadd4230 9550' 0
94c2b583 9551 trap 'as_fn_exit 1' 1 2 13 15
f69335e6 9552}
f69335e6 9553# Create a (secure) tmp directory for tmp files.
545d087a 9554
f69335e6 9555{
cadd4230 9556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
0ff0b04a 9557 test -d "$tmp"
f69335e6 9558} ||
9559{
cadd4230
BM
9560 tmp=./conf$$-$RANDOM
9561 (umask 077 && mkdir "$tmp")
0ff0b04a
NPB
9562} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9563ac_tmp=$tmp
cadd4230 9564
94c2b583 9565# Set up the scripts for CONFIG_FILES section.
9566# No need to generate them if there are no CONFIG_FILES.
9567# This happens for instance with `./config.status config.h'.
85904c22 9568if test -n "$CONFIG_FILES"; then
c0790e90 9569
cadd4230 9570
94c2b583 9571ac_cr=`echo X | tr X '\015'`
9572# On cygwin, bash can eat \r inside `` if the user requested igncr.
9573# But we know of no other shell where ac_cr would be empty at this
9574# point, so we can use a bashism as a fallback.
9575if test "x$ac_cr" = x; then
9576 eval ac_cr=\$\'\\r\'
9577fi
9578ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9579if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
0ff0b04a 9580 ac_cs_awk_cr='\\r'
94c2b583 9581else
9582 ac_cs_awk_cr=$ac_cr
9583fi
9584
0ff0b04a 9585echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
94c2b583 9586_ACEOF
cadd4230 9587
85904c22 9588
94c2b583 9589{
9590 echo "cat >conf$$subs.awk <<_ACEOF" &&
9591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9592 echo "_ACEOF"
9593} >conf$$subs.sh ||
0ff0b04a
NPB
9594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9595ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cadd4230
BM
9596ac_delim='%!_!# '
9597for ac_last_try in false false false false false :; do
94c2b583 9598 . ./conf$$subs.sh ||
0ff0b04a 9599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
94c2b583 9600
9601 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9602 if test $ac_delim_n = $ac_delim_num; then
cadd4230
BM
9603 break
9604 elif $ac_last_try; then
0ff0b04a 9605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cadd4230
BM
9606 else
9607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f69335e6 9608 fi
cadd4230 9609done
94c2b583 9610rm -f conf$$subs.sh
9611
9612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0ff0b04a 9613cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
94c2b583 9614_ACEOF
9615sed -n '
9616h
9617s/^/S["/; s/!.*/"]=/
9618p
9619g
9620s/^[^!]*!//
9621:repl
9622t repl
9623s/'"$ac_delim"'$//
9624t delim
9625:nl
9626h
9627s/\(.\{148\}\)..*/\1/
9628t more1
9629s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9630p
9631n
9632b repl
9633:more1
9634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9635p
9636g
9637s/.\{148\}//
9638t nl
9639:delim
9640h
9641s/\(.\{148\}\)..*/\1/
9642t more2
9643s/["\\]/\\&/g; s/^/"/; s/$/"/
9644p
9645b
9646:more2
9647s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9648p
9649g
9650s/.\{148\}//
9651t delim
9652' <conf$$subs.awk | sed '
9653/^[^""]/{
9654 N
9655 s/\n//
9656}
9657' >>$CONFIG_STATUS || ac_write_fail=1
9658rm -f conf$$subs.awk
9659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9660_ACAWK
0ff0b04a 9661cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
94c2b583 9662 for (key in S) S_is_set[key] = 1
9663 FS = "\a"
f40ec73c 9664
94c2b583 9665}
9666{
9667 line = $ 0
9668 nfields = split(line, field, "@")
9669 substed = 0
9670 len = length(field[1])
9671 for (i = 2; i < nfields; i++) {
9672 key = field[i]
9673 keylen = length(key)
9674 if (S_is_set[key]) {
9675 value = S[key]
9676 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9677 len += length(value) + length(field[++i])
9678 substed = 1
9679 } else
9680 len += 1 + keylen
9681 }
c0790e90 9682
94c2b583 9683 print line
9684}
9685
9686_ACAWK
cadd4230 9687_ACEOF
94c2b583 9688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9689if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9690 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9691else
9692 cat
0ff0b04a
NPB
9693fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9694 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
f69335e6 9695_ACEOF
cadd4230 9696
0ff0b04a
NPB
9697# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9698# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cadd4230
BM
9699# trailing colons and then remove the whole line if VPATH becomes empty
9700# (actually we leave an empty line to preserve line numbers).
9701if test "x$srcdir" = x.; then
0ff0b04a
NPB
9702 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9703h
9704s///
9705s/^/:/
9706s/[ ]*$/:/
9707s/:\$(srcdir):/:/g
9708s/:\${srcdir}:/:/g
9709s/:@srcdir@:/:/g
9710s/^:*//
cadd4230 9711s/:*$//
0ff0b04a
NPB
9712x
9713s/\(=[ ]*\).*/\1/
9714G
9715s/\n//
cadd4230
BM
9716s/^[^=]*=[ ]*$//
9717}'
9718fi
9719
94c2b583 9720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cadd4230
BM
9721fi # test -n "$CONFIG_FILES"
9722
94c2b583 9723# Set up the scripts for CONFIG_HEADERS section.
9724# No need to generate them if there are no CONFIG_HEADERS.
9725# This happens for instance with `./config.status Makefile'.
9726if test -n "$CONFIG_HEADERS"; then
0ff0b04a 9727cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
94c2b583 9728BEGIN {
9729_ACEOF
9730
9731# Transform confdefs.h into an awk script `defines.awk', embedded as
9732# here-document in config.status, that substitutes the proper values into
9733# config.h.in to produce config.h.
9734
9735# Create a delimiter string that does not exist in confdefs.h, to ease
9736# handling of long lines.
9737ac_delim='%!_!# '
9738for ac_last_try in false false :; do
0ff0b04a
NPB
9739 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9740 if test -z "$ac_tt"; then
94c2b583 9741 break
9742 elif $ac_last_try; then
0ff0b04a 9743 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
94c2b583 9744 else
9745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9746 fi
9747done
9748
9749# For the awk script, D is an array of macro values keyed by name,
9750# likewise P contains macro parameters if any. Preserve backslash
9751# newline sequences.
9752
9753ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9754sed -n '
9755s/.\{148\}/&'"$ac_delim"'/g
9756t rset
9757:rset
9758s/^[ ]*#[ ]*define[ ][ ]*/ /
9759t def
9760d
9761:def
9762s/\\$//
9763t bsnl
9764s/["\\]/\\&/g
9765s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9766D["\1"]=" \3"/p
9767s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9768d
9769:bsnl
9770s/["\\]/\\&/g
9771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9772D["\1"]=" \3\\\\\\n"\\/p
9773t cont
9774s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9775t cont
9776d
9777:cont
9778n
9779s/.\{148\}/&'"$ac_delim"'/g
9780t clear
9781:clear
9782s/\\$//
9783t bsnlc
9784s/["\\]/\\&/g; s/^/"/; s/$/"/p
9785d
9786:bsnlc
9787s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9788b cont
9789' <confdefs.h | sed '
9790s/'"$ac_delim"'/"\\\
9791"/g' >>$CONFIG_STATUS || ac_write_fail=1
9792
9793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9794 for (key in D) D_is_set[key] = 1
9795 FS = "\a"
9796}
9797/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9798 line = \$ 0
9799 split(line, arg, " ")
9800 if (arg[1] == "#") {
9801 defundef = arg[2]
9802 mac1 = arg[3]
9803 } else {
9804 defundef = substr(arg[1], 2)
9805 mac1 = arg[2]
9806 }
9807 split(mac1, mac2, "(") #)
9808 macro = mac2[1]
9809 prefix = substr(line, 1, index(line, defundef) - 1)
9810 if (D_is_set[macro]) {
9811 # Preserve the white space surrounding the "#".
9812 print prefix "define", macro P[macro] D[macro]
9813 next
9814 } else {
9815 # Replace #undef with comments. This is necessary, for example,
9816 # in the case of _POSIX_SOURCE, which is predefined and required
9817 # on some systems where configure will not decide to define it.
9818 if (defundef == "undef") {
9819 print "/*", prefix defundef, macro, "*/"
9820 next
9821 }
9822 }
9823}
9824{ print }
9825_ACAWK
9826_ACEOF
9827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0ff0b04a 9828 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
94c2b583 9829fi # test -n "$CONFIG_HEADERS"
9830
cadd4230 9831
94c2b583 9832eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9833shift
9834for ac_tag
cadd4230
BM
9835do
9836 case $ac_tag in
9837 :[FHLC]) ac_mode=$ac_tag; continue;;
9838 esac
9839 case $ac_mode$ac_tag in
9840 :[FHL]*:*);;
0ff0b04a 9841 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cadd4230
BM
9842 :[FH]-) ac_tag=-:-;;
9843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
f69335e6 9844 esac
cadd4230
BM
9845 ac_save_IFS=$IFS
9846 IFS=:
9847 set x $ac_tag
9848 IFS=$ac_save_IFS
9849 shift
9850 ac_file=$1
9851 shift
f69335e6 9852
cadd4230
BM
9853 case $ac_mode in
9854 :L) ac_source=$1;;
9855 :[FH])
9856 ac_file_inputs=
9857 for ac_f
9858 do
9859 case $ac_f in
0ff0b04a 9860 -) ac_f="$ac_tmp/stdin";;
cadd4230
BM
9861 *) # Look for the file first in the build tree, then in the source tree
9862 # (if the path is not absolute). The absolute path cannot be DOS-style,
9863 # because $ac_f cannot contain `:'.
9864 test -f "$ac_f" ||
9865 case $ac_f in
9866 [\\/$]*) false;;
9867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9868 esac ||
0ff0b04a 9869 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cadd4230 9870 esac
94c2b583 9871 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9872 as_fn_append ac_file_inputs " '$ac_f'"
cadd4230
BM
9873 done
9874
9875 # Let's still pretend it is `configure' which instantiates (i.e., don't
9876 # use $as_me), people would be surprised to read:
9877 # /* config.h. Generated by config.status. */
94c2b583 9878 configure_input='Generated from '`
9879 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9880 `' by configure.'
cadd4230
BM
9881 if test x"$ac_file" != x-; then
9882 configure_input="$ac_file. $configure_input"
94c2b583 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9884$as_echo "$as_me: creating $ac_file" >&6;}
cadd4230 9885 fi
94c2b583 9886 # Neutralize special characters interpreted by sed in replacement strings.
9887 case $configure_input in #(
9888 *\&* | *\|* | *\\* )
9889 ac_sed_conf_input=`$as_echo "$configure_input" |
9890 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9891 *) ac_sed_conf_input=$configure_input;;
9892 esac
cadd4230
BM
9893
9894 case $ac_tag in
0ff0b04a
NPB
9895 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cadd4230
BM
9897 esac
9898 ;;
9899 esac
9900
9901 ac_dir=`$as_dirname -- "$ac_file" ||
f69335e6 9902$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
545d087a
BM
9903 X"$ac_file" : 'X\(//\)[^/]' \| \
9904 X"$ac_file" : 'X\(//\)$' \| \
cadd4230 9905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
94c2b583 9906$as_echo X"$ac_file" |
cadd4230
BM
9907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9908 s//\1/
9909 q
9910 }
9911 /^X\(\/\/\)[^/].*/{
9912 s//\1/
9913 q
9914 }
9915 /^X\(\/\/\)$/{
9916 s//\1/
9917 q
9918 }
9919 /^X\(\/\).*/{
9920 s//\1/
9921 q
9922 }
9923 s/.*/./; q'`
94c2b583 9924 as_dir="$ac_dir"; as_fn_mkdir_p
f69335e6 9925 ac_builddir=.
f40ec73c 9926
cadd4230
BM
9927case "$ac_dir" in
9928.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9929*)
94c2b583 9930 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cadd4230 9931 # A ".." for each directory in $ac_dir_suffix.
94c2b583 9932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cadd4230
BM
9933 case $ac_top_builddir_sub in
9934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9936 esac ;;
9937esac
9938ac_abs_top_builddir=$ac_pwd
9939ac_abs_builddir=$ac_pwd$ac_dir_suffix
9940# for backward compatibility:
9941ac_top_builddir=$ac_top_build_prefix
f40ec73c 9942
f69335e6 9943case $srcdir in
cadd4230 9944 .) # We are building in place.
f69335e6 9945 ac_srcdir=.
cadd4230
BM
9946 ac_top_srcdir=$ac_top_builddir_sub
9947 ac_abs_top_srcdir=$ac_pwd ;;
9948 [\\/]* | ?:[\\/]* ) # Absolute name.
f69335e6 9949 ac_srcdir=$srcdir$ac_dir_suffix;
cadd4230
BM
9950 ac_top_srcdir=$srcdir
9951 ac_abs_top_srcdir=$srcdir ;;
9952 *) # Relative name.
9953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9954 ac_top_srcdir=$ac_top_build_prefix$srcdir
9955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
545d087a 9956esac
cadd4230 9957ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
f40ec73c 9958
9959
cadd4230
BM
9960 case $ac_mode in
9961 :F)
9962 #
9963 # CONFIG_FILE
9964 #
f40ec73c 9965
cadd4230 9966_ACEOF
545d087a 9967
94c2b583 9968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cadd4230
BM
9969# If the template does not know about datarootdir, expand it.
9970# FIXME: This hack should be removed a few years after 2.60.
9971ac_datarootdir_hack=; ac_datarootdir_seen=
94c2b583 9972ac_sed_dataroot='
9973/datarootdir/ {
cadd4230
BM
9974 p
9975 q
9976}
9977/@datadir@/p
9978/@docdir@/p
9979/@infodir@/p
9980/@localedir@/p
94c2b583 9981/@mandir@/p'
9982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cadd4230
BM
9983*datarootdir*) ac_datarootdir_seen=yes;;
9984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
94c2b583 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9986$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
f69335e6 9987_ACEOF
94c2b583 9988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cadd4230
BM
9989 ac_datarootdir_hack='
9990 s&@datadir@&$datadir&g
9991 s&@docdir@&$docdir&g
9992 s&@infodir@&$infodir&g
9993 s&@localedir@&$localedir&g
9994 s&@mandir@&$mandir&g
94c2b583 9995 s&\\\${datarootdir}&$datarootdir&g' ;;
cadd4230
BM
9996esac
9997_ACEOF
9998
9999# Neutralize VPATH when `$srcdir' = `.'.
10000# Shell code in configure.ac might set extrasub.
10001# FIXME: do we really want to maintain this feature?
94c2b583 10002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10003ac_sed_extra="$ac_vpsub
f69335e6 10004$extrasub
10005_ACEOF
94c2b583 10006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f69335e6 10007:t
10008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
94c2b583 10009s|@configure_input@|$ac_sed_conf_input|;t t
cadd4230 10010s&@top_builddir@&$ac_top_builddir_sub&;t t
94c2b583 10011s&@top_build_prefix@&$ac_top_build_prefix&;t t
cadd4230
BM
10012s&@srcdir@&$ac_srcdir&;t t
10013s&@abs_srcdir@&$ac_abs_srcdir&;t t
10014s&@top_srcdir@&$ac_top_srcdir&;t t
10015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10016s&@builddir@&$ac_builddir&;t t
10017s&@abs_builddir@&$ac_abs_builddir&;t t
10018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10019$ac_datarootdir_hack
94c2b583 10020"
0ff0b04a
NPB
10021eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10022 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cadd4230
BM
10023
10024test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
0ff0b04a
NPB
10025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10027 "$ac_tmp/out"`; test -z "$ac_out"; } &&
94c2b583 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0ff0b04a 10029which seems to be undefined. Please make sure it is defined" >&5
94c2b583 10030$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0ff0b04a 10031which seems to be undefined. Please make sure it is defined" >&2;}
cadd4230 10032
0ff0b04a 10033 rm -f "$ac_tmp/stdin"
f69335e6 10034 case $ac_file in
0ff0b04a
NPB
10035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
94c2b583 10037 esac \
0ff0b04a 10038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cadd4230
BM
10039 ;;
10040 :H)
10041 #
10042 # CONFIG_HEADER
10043 #
f69335e6 10044 if test x"$ac_file" != x-; then
94c2b583 10045 {
10046 $as_echo "/* $configure_input */" \
0ff0b04a
NPB
10047 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10048 } >"$ac_tmp/config.h" \
10049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10050 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
94c2b583 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10052$as_echo "$as_me: $ac_file is unchanged" >&6;}
f69335e6 10053 else
94c2b583 10054 rm -f "$ac_file"
0ff0b04a
NPB
10055 mv "$ac_tmp/config.h" "$ac_file" \
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f69335e6 10057 fi
10058 else
94c2b583 10059 $as_echo "/* $configure_input */" \
0ff0b04a
NPB
10060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10061 || as_fn_error $? "could not create -" "$LINENO" 5
f69335e6 10062 fi
cadd4230
BM
10063 ;;
10064
10065
10066 esac
10067
10068done # for ac_tag
f40ec73c 10069
f40ec73c 10070
94c2b583 10071as_fn_exit 0
f69335e6 10072_ACEOF
f69335e6 10073ac_clean_files=$ac_clean_files_save
10074
94c2b583 10075test $ac_write_fail = 0 ||
0ff0b04a 10076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
94c2b583 10077
f69335e6 10078
10079# configure is writing to config.log, and then calls config.status.
10080# config.status does its own redirection, appending to config.log.
10081# Unfortunately, on DOS this fails, as config.log is still kept open
10082# by configure, so config.status won't be able to write to it; its
10083# output is simply discarded. So we exec the FD to /dev/null,
10084# effectively closing config.log, so it can be properly (re)opened and
10085# appended to by config.status. When coming back to configure, we
10086# need to make the FD available again.
10087if test "$no_create" != yes; then
10088 ac_cs_success=:
545d087a
BM
10089 ac_config_status_args=
10090 test "$silent" = yes &&
10091 ac_config_status_args="$ac_config_status_args --quiet"
f69335e6 10092 exec 5>/dev/null
545d087a 10093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f69335e6 10094 exec 5>>config.log
10095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10096 # would make configure fail if this is the last instruction.
0ff0b04a 10097 $ac_cs_success || as_fn_exit 1
94c2b583 10098fi
10099if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10101$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
f69335e6 10102fi
f40ec73c 10103
5e94fc9c 10104chmod 0700 unrealircd