]> jfr.im git - irc/unrealircd/unrealircd.git/blob - configure
Fix rare crash if deleting spamfilter by id that isn't a spamfilter.
[irc/unrealircd/unrealircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unrealircd 4.0.19-rc2.
4 #
5 # Report bugs to <http://bugs.unrealircd.org/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
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
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
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
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $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
259 exit 255
260 fi
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."
268 else
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."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_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.
308 as_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.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (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 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # 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.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
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; }
490
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
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
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `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';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='unrealircd'
582 PACKAGE_TARNAME='unrealircd'
583 PACKAGE_VERSION='4.0.19-rc2'
584 PACKAGE_STRING='unrealircd 4.0.19-rc2'
585 PACKAGE_BUGREPORT='http://bugs.unrealircd.org/'
586 PACKAGE_URL='http://unrealircd.org/'
587
588 ac_unique_file="src/ircd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 UNRLINCDIR
628 URL
629 PTHREAD_CFLAGS
630 PTHREAD_LIBS
631 PTHREAD_CC
632 ax_pthread_config
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 CARES_LIBS
642 CARES_CFLAGS
643 PCRE2_LIBS
644 PCRE2_CFLAGS
645 PKG_CONFIG_LIBDIR
646 PKG_CONFIG_PATH
647 PKG_CONFIG
648 TRE_LIBS
649 TRE_CFLAGS
650 FD_SETSIZE
651 LDFLAGS_PRIVATELIBS
652 PIDFILE
653 DOCDIR
654 PERMDATADIR
655 TMPDIR
656 CACHEDIR
657 LOGDIR
658 MODULESDIR
659 CONFDIR
660 SCRIPTDIR
661 BINDIR
662 DYNAMIC_LDFLAGS
663 MODULEFLAGS
664 CRYPTOLIB
665 STRTOUL
666 EGREP
667 GREP
668 CPP
669 HARDEN_BINLDFLAGS
670 HARDEN_BINCFLAGS
671 HARDEN_LDFLAGS
672 HARDEN_CFLAGS
673 MKPASSWDLIBS
674 IRCDLIBS
675 PKGCONFIG
676 GUNZIP
677 GMAKE
678 MAKER
679 INSTALL
680 OPENSSLPATH
681 TOUCH
682 CP
683 RM
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 BUILDDIR
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 runstatedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_hardening
735 with_nick_history
736 with_sendq
737 with_permissions
738 with_bindir
739 with_scriptdir
740 with_confdir
741 with_modulesdir
742 with_logdir
743 with_cachedir
744 with_tmpdir
745 with_datadir
746 with_docdir
747 with_pidfile
748 with_privatelibdir
749 with_fd_setsize
750 enable_prefixaq
751 with_showlistmodes
752 with_topicisnuhost
753 with_shunnotices
754 with_no_operoverride
755 with_disableusermod
756 with_operoverride_verify
757 with_disable_extendedban_stacking
758 with_system_tre
759 with_system_pcre2
760 with_system_cares
761 enable_ssl
762 enable_dynamic_linking
763 enable_werror
764 enable_libcurl
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP
775 PKG_CONFIG
776 PKG_CONFIG_PATH
777 PKG_CONFIG_LIBDIR
778 TRE_CFLAGS
779 TRE_LIBS
780 PCRE2_CFLAGS
781 PCRE2_LIBS
782 CARES_CFLAGS
783 CARES_LIBS'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
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.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 runstatedir='${localstatedir}/run'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
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=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
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
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
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 ;;
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 ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
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 ;;
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=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
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 ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
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
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=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
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=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
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 \
1009 | --no-cr | --no-c | -n)
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=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
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=*)
1035 program_prefix=$ac_optarg ;;
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=*)
1042 program_suffix=$ac_optarg ;;
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=*)
1059 program_transform_name=$ac_optarg ;;
1060
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
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
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
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
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=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
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=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
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 ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
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 ;;
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=*)
1170 x_includes=$ac_optarg ;;
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=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir runstatedir
1222 do
1223 eval ac_val=\$$ac_var
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.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
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.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
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" |
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'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299 else
1300 ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
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.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for 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}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if 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
1334 \`configure' configures unrealircd 4.0.19-rc2 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
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
1348 -q, --quiet, --silent do not print \`checking ...' messages
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
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
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]
1374 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
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]
1388 _ACEOF
1389
1390 cat <<\_ACEOF
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of unrealircd 4.0.19-rc2:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-hardening Enable compiler and linker options to frustrate
1409 memory corruption exploits [yes]
1410 --disable-prefixaq Disable chanadmin (+a) and chanowner (+q) prefixes
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
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)
1418 --enable-werror Turn compilation warnings into errors (-Werror)
1419 --enable-libcurl=DIR enable libcurl (remote include) support
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-nick-history=length
1425 Specify the length of the nickname history
1426 --with-sendq=maxsendq Specify the max sendq for the server
1427 --with-permissions=permissions
1428 Specify the default permissions for configuration
1429 files
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
1434 stored
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
1444 --with-privatelibdir=path
1445 Specify the directory where private libraries are
1446 stored. Disable when building a package for a distro
1447 --with-fd-setsize=size Specify the max file descriptors to use
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
1455 --with-disable-extendedban-stacking
1456 Disable extended ban stacking
1457 --with-system-tre Use the system tre package instead of bundled,
1458 discovered using pkg-config
1459 --with-system-pcre2 Use the system pcre2 package instead of bundled,
1460 discovered using pkg-config
1461 --without-system-cares Use bundled version instead of system c-ares.
1462 Normally autodetected via pkg-config.
1463
1464 Some 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>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor
1473 PKG_CONFIG path to pkg-config utility
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
1478 TRE_CFLAGS C compiler flags for TRE, overriding pkg-config
1479 TRE_LIBS linker flags for TRE, overriding pkg-config
1480 PCRE2_CFLAGS
1481 C compiler flags for PCRE2, overriding pkg-config
1482 PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
1483 CARES_CFLAGS
1484 C compiler flags for CARES, overriding pkg-config
1485 CARES_LIBS linker flags for CARES, overriding pkg-config
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <http://bugs.unrealircd.org/>.
1491 unrealircd home page: <http://unrealircd.org/>.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1533 esac
1534 ac_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
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549 fi
1550
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 unrealircd configure 4.0.19-rc2
1555 generated by GNU Autoconf 2.69
1556
1557 Copyright (C) 2012 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560 _ACEOF
1561 exit
1562 fi
1563
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1567
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1572 {
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"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval 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
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_compile
1605
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 ac_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"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval 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 ||
1633 test -x conftest$ac_exeext
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
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
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_link
1651
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.
1656 ac_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"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval 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;;
1673 esac
1674 eval 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
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687 fi
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
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_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"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval 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
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_cpp
1730
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.
1736 ac_fn_c_check_header_mongrel ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if eval \${$3+:} false; then :
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 fi
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 else
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; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 $4
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_header_compiler=yes
1759 else
1760 ac_header_compiler=no
1761 fi
1762 rm -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; }
1765
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; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_cpp "$LINENO"; then :
1774 ac_header_preproc=yes
1775 else
1776 ac_header_preproc=no
1777 fi
1778 rm -f conftest.err conftest.i conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1781
1782 # So? What about this header?
1783 case $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;}
1801 ( $as_echo "## ------------------------------------------ ##
1802 ## Report this to http://bugs.unrealircd.org/ ##
1803 ## ------------------------------------------ ##"
1804 ) | sed "s/^/$as_me: WARNING: /" >&2
1805 ;;
1806 esac
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1811 else
1812 eval "$3=\$ac_header_compiler"
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 fi
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_header_mongrel
1821
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.
1826 ac_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; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841 else
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_compile
1852
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.
1857 ac_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; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 eval "$3=no"
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main ()
1871 {
1872 if (sizeof ($2))
1873 return 0;
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main ()
1884 {
1885 if (sizeof (($2)))
1886 return 0;
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892
1893 else
1894 eval "$3=yes"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
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
1912 ac_fn_c_compute_int ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if test "$cross_compiling" = yes; then
1916 # Depending upon the size, compute the lo and hi bounds.
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 static int test_array [1 - 2 * !(($2) >= 0)];
1924 test_array [0] = 0;
1925 return test_array [0];
1926
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_lo=0 ac_mid=0
1933 while :; do
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 int
1938 main ()
1939 {
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1941 test_array [0] = 0;
1942 return test_array [0];
1943
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_hi=$ac_mid; break
1950 else
1951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1952 if test $ac_lo -le $ac_mid; then
1953 ac_lo= ac_hi=
1954 break
1955 fi
1956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 done
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main ()
1966 {
1967 static int test_array [1 - 2 * !(($2) < 0)];
1968 test_array [0] = 0;
1969 return test_array [0];
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=-1 ac_mid=-1
1977 while :; do
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1985 test_array [0] = 0;
1986 return test_array [0];
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_lo=$ac_mid; break
1994 else
1995 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996 if test $ac_mid -le $ac_hi; then
1997 ac_lo= ac_hi=
1998 break
1999 fi
2000 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 done
2004 else
2005 ac_lo= ac_hi=
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0;
2021 return test_array [0];
2022
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=$ac_mid
2029 else
2030 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 done
2034 case $ac_lo in #((
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036 '') ac_retval=1 ;;
2037 esac
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2044 #include <stdio.h>
2045 #include <stdlib.h>
2046 int
2047 main ()
2048 {
2049
2050 FILE *f = fopen ("conftest.val", "w");
2051 if (! f)
2052 return 1;
2053 if (($2) < 0)
2054 {
2055 long int i = longval ();
2056 if (i != ($2))
2057 return 1;
2058 fprintf (f, "%ld", i);
2059 }
2060 else
2061 {
2062 unsigned long int i = ulongval ();
2063 if (i != ($2))
2064 return 1;
2065 fprintf (f, "%lu", i);
2066 }
2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
2069 return ferror (f) || fclose (f) != 0;
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_run "$LINENO"; then :
2076 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2077 else
2078 ac_retval=1
2079 fi
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081 conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 rm -f conftest.val
2083
2084 fi
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2087
2088 } # ac_fn_c_compute_int
2089
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_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; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
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
2124 extern "C"
2125 #endif
2126 char $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
2131 choke me
2132 #endif
2133
2134 int
2135 main ()
2136 {
2137 return $2 ();
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_link "$LINENO"; then :
2143 eval "$3=yes"
2144 else
2145 eval "$3=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext \
2148 conftest$ac_exeext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_func
2156 cat >config.log <<_ACEOF
2157 This file contains any messages produced by compilers while
2158 running configure, to aid debugging if configure makes a mistake.
2159
2160 It was created by unrealircd $as_me 4.0.19-rc2, which was
2161 generated by GNU Autoconf 2.69. Invocation command line was
2162
2163 $ $0 $@
2164
2165 _ACEOF
2166 exec 5>>config.log
2167 {
2168 cat <<_ASUNAME
2169 ## --------- ##
2170 ## Platform. ##
2171 ## --------- ##
2172
2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177 uname -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
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199 IFS=$as_save_IFS
2200
2201 } >&5
2202
2203 cat >&5 <<_ACEOF
2204
2205
2206 ## ----------- ##
2207 ## Core tests. ##
2208 ## ----------- ##
2209
2210 _ACEOF
2211
2212
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.
2218 ac_configure_args=
2219 ac_configure_args0=
2220 ac_configure_args1=
2221 ac_must_keep_next=false
2222 for ac_pass in 1 2
2223 do
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
2257 done
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.
2266 trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2268 {
2269 echo
2270
2271 $as_echo "## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##"
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
2307 $as_echo "## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##"
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
2322 $as_echo "## ------------------- ##
2323 ## File substitutions. ##
2324 ## ------------------- ##"
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
2338 $as_echo "## ----------- ##
2339 ## confdefs.h. ##
2340 ## ----------- ##"
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
2353 for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 done
2356 ac_signal=0
2357
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest* confdefs.h
2360
2361 $as_echo "/* confdefs.h */" > confdefs.h
2362
2363 # Predefined preprocessor variables.
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2387 _ACEOF
2388
2389
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2392 ac_site_file1=NONE
2393 ac_site_file2=NONE
2394 if test -n "$CONFIG_SITE"; then
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
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2407 fi
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 do
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
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;}
2418 as_fn_error $? "failed to load site script $ac_site_file
2419 See \`config.log' for more details" "$LINENO" 5; }
2420 fi
2421 done
2422
2423 if 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
2434 else
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
2438 fi
2439
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for 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
2489 done
2490 if $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;}
2495 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496 fi
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2500
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508
2509 ac_config_headers="$ac_config_headers include/setup.h"
2510
2511 ac_aux_dir=
2512 for ac_dir in autoconf "$srcdir"/autoconf; do
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
2526 done
2527 if test -z "$ac_aux_dir"; then
2528 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2529 fi
2530
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.
2535 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2536 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2537 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2538
2539
2540
2541
2542 if test "x$enable_dynamic_linking" = "x"; then
2543 echo "Please use ./Config instead of ./configure"
2544 exit 1
2545 fi
2546
2547 orig_cflags="$CFLAGS"
2548
2549 BUILDDIR="`pwd`"
2550
2551
2552 # Generation version number (e.g.: X in X.Y.Z)
2553 UNREAL_VERSION_GENERATION="4"
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION
2557 _ACEOF
2558
2559
2560 # Major version number (e.g.: Y in X.Y.Z)
2561 UNREAL_VERSION_MAJOR="0"
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR
2565 _ACEOF
2566
2567
2568 # Minor version number (e.g.: Z in X.Y.Z)
2569 UNREAL_VERSION_MINOR="19"
2570
2571 cat >>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
2577 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
2578 # string instead of an integer because it contains arbitrary data.
2579 UNREAL_VERSION_SUFFIX="-rc2"
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define UNREAL_VERSION_SUFFIX "$UNREAL_VERSION_SUFFIX"
2583 _ACEOF
2584
2585
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 if 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.
2593 set 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; }
2596 if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628
2629 fi
2630 if 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.
2633 set 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; }
2636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if 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; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672 yes:)
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;}
2675 ac_tool_warned=yes ;;
2676 esac
2677 CC=$ac_ct_CC
2678 fi
2679 else
2680 CC="$ac_cv_prog_CC"
2681 fi
2682
2683 if 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.
2686 set 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; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 fi
2723 fi
2724 if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args.
2726 set 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; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 ac_prog_rejected=no
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 if 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
2766 fi
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if 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.
2785 set 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; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 test -n "$CC" && break
2822 done
2823 fi
2824 if test -z "$CC"; then
2825 ac_ct_CC=$CC
2826 for ac_prog in cl.exe
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set 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; }
2832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if 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; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$ac_ct_CC" && break
2866 done
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872 yes:)
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;}
2875 ac_tool_warned=yes ;;
2876 esac
2877 CC=$ac_ct_CC
2878 fi
2879 fi
2880
2881 fi
2882
2883
2884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 as_fn_error $? "no acceptable C compiler found in \$PATH
2887 See \`config.log' for more details" "$LINENO" 5; }
2888
2889 # Provide some information about the compiler.
2890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2891 set X $ac_compile
2892 ac_compiler=$2
2893 for ac_option in --version -v -V -qversion; do
2894 { { ac_try="$ac_compiler $ac_option >&5"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval 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
2902 ac_status=$?
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; }
2912 done
2913
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 ac_clean_files_save=$ac_clean_files
2926 ac_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; }
2932 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933
2934 # The possible output files:
2935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2936
2937 ac_rmfiles=
2938 for ac_file in $ac_files
2939 do
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
2944 done
2945 rm -f $ac_rmfiles
2946
2947 if { { ac_try="$ac_link_default"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval 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
2955 ac_status=$?
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.
2963 for ac_file in $ac_files ''
2964 do
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
2987 done
2988 test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
2990 else
2991 ac_file=''
2992 fi
2993 if 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
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error 77 "C compiler cannot create executables
3002 See \`config.log' for more details" "$LINENO" 5; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 fi
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; }
3011 ac_exeext=$ac_cv_exeext
3012
3013 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3014 ac_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; }
3017 if { { ac_try="$ac_link"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3025 ac_status=$?
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'.
3032 for 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
3040 done
3041 else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 fi
3047 rm -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
3051 rm -f conftest.$ac_ext
3052 EXEEXT=$ac_cv_exeext
3053 ac_exeext=$EXEEXT
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056 #include <stdio.h>
3057 int
3058 main ()
3059 {
3060 FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 ac_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; }
3072 if test "$cross_compiling" != yes; then
3073 { { ac_try="$ac_link"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
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
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
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;}
3102 as_fn_error $? "cannot run C compiled programs.
3103 If you meant to cross compile, use \`--host'.
3104 See \`config.log' for more details" "$LINENO" 5; }
3105 fi
3106 fi
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109 $as_echo "$cross_compiling" >&6; }
3110
3111 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3112 ac_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; }
3115 if ${ac_cv_objext+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.o conftest.obj
3130 if { { ac_try="$ac_compile"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5
3138 ac_status=$?
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
3148 done
3149 else
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 fi
3158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3161 $as_echo "$ac_cv_objext" >&6; }
3162 OBJEXT=$ac_cv_objext
3163 ac_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; }
3166 if ${ac_cv_c_compiler_gnu+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175 #ifndef __GNUC__
3176 choke me
3177 #endif
3178
3179 ;
3180 return 0;
3181 }
3182 _ACEOF
3183 if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_compiler_gnu=yes
3185 else
3186 ac_compiler_gnu=no
3187 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196 else
3197 GCC=
3198 fi
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_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; }
3203 if ${ac_cv_prog_cc_g+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
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. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
3223 else
3224 CFLAGS=""
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237
3238 else
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254 fi
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 fi
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 fi
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3263 $as_echo "$ac_cv_prog_cc_g" >&6; }
3264 if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266 elif 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
3272 else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3277 fi
3278 fi
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; }
3281 if ${ac_cv_prog_cc_c89+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 ac_cv_prog_cc_c89=no
3285 ac_save_CC=$CC
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288 #include <stdarg.h>
3289 #include <stdio.h>
3290 struct stat;
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295 char **p;
3296 int i;
3297 {
3298 return p[i];
3299 }
3300 static 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 }
3309
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. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3318
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'
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3323
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3330 int
3331 main ()
3332 {
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 do
3341 CC="$ac_save_CC $ac_arg"
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_cv_prog_cc_c89=$ac_arg
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3347 done
3348 rm -f conftest.$ac_ext
3349 CC=$ac_save_CC
3350
3351 fi
3352 # AC_CACHE_VAL
3353 case "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; } ;;
3364 esac
3365 if test "x$ac_cv_prog_cc_c89" != xno; then :
3366
3367 fi
3368
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374
3375 if test "$ac_cv_c_compiler_gnu" = "yes"; then
3376 CFLAGS="$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; }
3380 if ${ac_cv_pipe+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383
3384 save_cflags="$CFLAGS"
3385 CFLAGS="$CFLAGS -pipe"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_pipe="yes"
3399 else
3400 ac_cv_pipe="no"
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 CFLAGS="$save_cflags"
3404
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe" >&5
3407 $as_echo "$ac_cv_pipe" >&6; }
3408 if test "$ac_cv_pipe" = "yes"; then
3409 CFLAGS="-pipe $CFLAGS"
3410 fi
3411 fi
3412
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; }
3415 if ${ac_cv_nsa+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418
3419 save_cflags="$CFLAGS"
3420 CFLAGS="$CFLAGS -fno-strict-aliasing"
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_nsa="yes"
3434 else
3435 ac_cv_nsa="no"
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 CFLAGS="$save_cflags"
3439
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nsa" >&5
3442 $as_echo "$ac_cv_nsa" >&6; }
3443 if test "$ac_cv_nsa" = "yes"; then
3444 CFLAGS="$CFLAGS -fno-strict-aliasing"
3445 fi
3446
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; }
3449 if ${ac_cv_nps+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452
3453 save_cflags="$CFLAGS"
3454 CFLAGS="$CFLAGS -Wno-pointer-sign"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_nps="yes"
3468 else
3469 ac_cv_nps="no"
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 CFLAGS="$save_cflags"
3473
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nps" >&5
3476 $as_echo "$ac_cv_nps" >&6; }
3477 if test "$ac_cv_nps" = "yes"; then
3478 CFLAGS="$CFLAGS -Wno-pointer-sign"
3479 fi
3480
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; }
3483 if ${ac_cv_nise+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
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
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_nise="yes"
3502 else
3503 ac_cv_nise="no"
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 CFLAGS="$save_cflags"
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nise" >&5
3510 $as_echo "$ac_cv_nise" >&6; }
3511 if test "$ac_cv_nise" = "yes"; then
3512 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
3513 fi
3514
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; }
3517 if ${ac_cv_nfzl+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
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
3526 int
3527 main ()
3528 {
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_nfzl="yes"
3536 else
3537 ac_cv_nfzl="no"
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 CFLAGS="$save_cflags"
3541
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nfzl" >&5
3544 $as_echo "$ac_cv_nfzl" >&6; }
3545 if test "$ac_cv_nfzl" = "yes"; then
3546 CFLAGS="$CFLAGS -Wno-format-zero-length"
3547 fi
3548
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; }
3551 if ${ac_cv_nft+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554
3555 save_cflags="$CFLAGS"
3556 CFLAGS="$CFLAGS -Wno-format-truncation -Werror"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_nft="yes"
3570 else
3571 ac_cv_nft="no"
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 CFLAGS="$save_cflags"
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nft" >&5
3578 $as_echo "$ac_cv_nft" >&6; }
3579 if test "$ac_cv_nft" = "yes"; then
3580 CFLAGS="$CFLAGS -Wno-format-truncation"
3581 fi
3582
3583 # Extract the first word of "rm", so it can be a program name with args.
3584 set 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; }
3587 if ${ac_cv_path_RM+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
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
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 ;;
3611 esac
3612 fi
3613 RM=$ac_cv_path_RM
3614 if test -n "$RM"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3616 $as_echo "$RM" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 # Extract the first word of "cp", so it can be a program name with args.
3624 set 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; }
3627 if ${ac_cv_path_CP+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
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
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3646 done
3647 done
3648 IFS=$as_save_IFS
3649
3650 ;;
3651 esac
3652 fi
3653 CP=$ac_cv_path_CP
3654 if test -n "$CP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3656 $as_echo "$CP" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662
3663 # Extract the first word of "touch", so it can be a program name with args.
3664 set 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; }
3667 if ${ac_cv_path_TOUCH+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
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
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 ;;
3691 esac
3692 fi
3693 TOUCH=$ac_cv_path_TOUCH
3694 if test -n "$TOUCH"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
3696 $as_echo "$TOUCH" >&6; }
3697 else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3701
3702
3703 # Extract the first word of "openssl", so it can be a program name with args.
3704 set 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; }
3707 if ${ac_cv_path_OPENSSLPATH+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
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
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 ;;
3731 esac
3732 fi
3733 OPENSSLPATH=$ac_cv_path_OPENSSLPATH
3734 if test -n "$OPENSSLPATH"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
3736 $as_echo "$OPENSSLPATH" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 # Extract the first word of "install", so it can be a program name with args.
3744 set 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; }
3747 if ${ac_cv_path_INSTALL+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
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
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 ;;
3771 esac
3772 fi
3773 INSTALL=$ac_cv_path_INSTALL
3774 if test -n "$INSTALL"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3776 $as_echo "$INSTALL" >&6; }
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782
3783 # Extract the first word of "gmake", so it can be a program name with args.
3784 set 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; }
3787 if ${ac_cv_prog_MAKER+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$MAKER"; then
3791 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
3809 fi
3810 fi
3811 MAKER=$ac_cv_prog_MAKER
3812 if test -n "$MAKER"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
3814 $as_echo "$MAKER" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 # Extract the first word of "gmake", so it can be a program name with args.
3822 set 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; }
3825 if ${ac_cv_path_GMAKE+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
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
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3844 done
3845 done
3846 IFS=$as_save_IFS
3847
3848 ;;
3849 esac
3850 fi
3851 GMAKE=$ac_cv_path_GMAKE
3852 if test -n "$GMAKE"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
3854 $as_echo "$GMAKE" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 fi
3859
3860
3861 # Extract the first word of "gunzip", so it can be a program name with args.
3862 set 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; }
3865 if ${ac_cv_path_GUNZIP+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
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
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 ;;
3889 esac
3890 fi
3891 GUNZIP=$ac_cv_path_GUNZIP
3892 if test -n "$GUNZIP"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
3894 $as_echo "$GUNZIP" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899
3900
3901 # Extract the first word of "pkg-config", so it can be a program name with args.
3902 set 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; }
3905 if ${ac_cv_path_PKGCONFIG+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
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
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3924 done
3925 done
3926 IFS=$as_save_IFS
3927
3928 ;;
3929 esac
3930 fi
3931 PKGCONFIG=$ac_cv_path_PKGCONFIG
3932 if test -n "$PKGCONFIG"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
3934 $as_echo "$PKGCONFIG" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
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; }
3944 if ${ac_cv_lib_descrypt_crypt+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 ac_check_lib_save_LIBS=$LIBS
3948 LIBS="-ldescrypt $LIBS"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
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
3956 extern "C"
3957 #endif
3958 char crypt ();
3959 int
3960 main ()
3961 {
3962 return crypt ();
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_link "$LINENO"; then :
3968 ac_cv_lib_descrypt_crypt=yes
3969 else
3970 ac_cv_lib_descrypt_crypt=no
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext \
3973 conftest$ac_exeext conftest.$ac_ext
3974 LIBS=$ac_check_lib_save_LIBS
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
3977 $as_echo "$ac_cv_lib_descrypt_crypt" >&6; }
3978 if test "x$ac_cv_lib_descrypt_crypt" = xyes; then :
3979
3980 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3981
3982 IRCDLIBS="$IRCDLIBS-ldescrypt "
3983 MKPASSWDLIBS="-ldescrypt"
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3986 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
3987 if ${ac_cv_lib_crypt_crypt+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 ac_check_lib_save_LIBS=$LIBS
3991 LIBS="-lcrypt $LIBS"
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
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
3999 extern "C"
4000 #endif
4001 char crypt ();
4002 int
4003 main ()
4004 {
4005 return crypt ();
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_c_try_link "$LINENO"; then :
4011 ac_cv_lib_crypt_crypt=yes
4012 else
4013 ac_cv_lib_crypt_crypt=no
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext \
4016 conftest$ac_exeext conftest.$ac_ext
4017 LIBS=$ac_check_lib_save_LIBS
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4020 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4021 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4022
4023 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
4024
4025 IRCDLIBS="$IRCDLIBS-lcrypt "
4026 MKPASSWDLIBS="-lcrypt"
4027 fi
4028
4029 fi
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4032 $as_echo_n "checking for socket in -lsocket... " >&6; }
4033 if ${ac_cv_lib_socket_socket+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $LIBS"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
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
4045 extern "C"
4046 #endif
4047 char socket ();
4048 int
4049 main ()
4050 {
4051 return socket ();
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_link "$LINENO"; then :
4057 ac_cv_lib_socket_socket=yes
4058 else
4059 ac_cv_lib_socket_socket=no
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext \
4062 conftest$ac_exeext conftest.$ac_ext
4063 LIBS=$ac_check_lib_save_LIBS
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4066 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4067 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4068 IRCDLIBS="$IRCDLIBS-lsocket "
4069 SOCKLIB="-lsocket"
4070 fi
4071
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; }
4074 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_check_lib_save_LIBS=$LIBS
4078 LIBS="-lnsl $LIBS"
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
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
4086 extern "C"
4087 #endif
4088 char inet_ntoa ();
4089 int
4090 main ()
4091 {
4092 return inet_ntoa ();
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_link "$LINENO"; then :
4098 ac_cv_lib_nsl_inet_ntoa=yes
4099 else
4100 ac_cv_lib_nsl_inet_ntoa=no
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext \
4103 conftest$ac_exeext conftest.$ac_ext
4104 LIBS=$ac_check_lib_save_LIBS
4105 fi
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; }
4108 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
4109 IRCDLIBS="$IRCDLIBS-lnsl "
4110 INETLIB="-lnsl"
4111 fi
4112
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; }
4115 if ${ac_cv_lib_crypto_RAND_egd+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 ac_check_lib_save_LIBS=$LIBS
4119 LIBS="-lcrypto $LIBS"
4120 cat 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
4127 extern "C"
4128 #endif
4129 char RAND_egd ();
4130 int
4131 main ()
4132 {
4133 return RAND_egd ();
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_link "$LINENO"; then :
4139 ac_cv_lib_crypto_RAND_egd=yes
4140 else
4141 ac_cv_lib_crypto_RAND_egd=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext \
4144 conftest$ac_exeext conftest.$ac_ext
4145 LIBS=$ac_check_lib_save_LIBS
4146 fi
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; }
4149 if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then :
4150
4151 $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h
4152
4153 fi
4154
4155
4156
4157
4158
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.
4162 saved_CC="$CC"
4163 saved_CXX="$CXX"
4164 saved_LD="$LD"
4165 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
4166 CC="$flag_wrap $CC"
4167 CXX="$flag_wrap $CXX"
4168 LD="$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.
4177 if test "${enable_hardening+set}" = set; then :
4178 enableval=$enable_hardening; hardening="$enableval"
4179 else
4180 hardening="yes"
4181 fi
4182
4183
4184 HARDEN_CFLAGS=""
4185 HARDEN_LDFLAGS=""
4186 if test x"$hardening" != x"no"; then :
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_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; }
4196 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
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
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4215 else
4216 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 CFLAGS=$ax_check_save_flags
4220 fi
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; }
4223 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_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; }
4232 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
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
4241 int
4242 main ()
4243 {
4244
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4251 else
4252 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 CFLAGS=$ax_check_save_flags
4256 fi
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; }
4259 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4260 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4261 else
4262 :
4263 fi
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271 else
4272 :
4273 fi
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_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
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_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; }
4291 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
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
4300 int
4301 main ()
4302 {
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4310 else
4311 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 CFLAGS=$ax_check_save_flags
4315 fi
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; }
4318 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_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; }
4327 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
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
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4346 else
4347 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 CFLAGS=$ax_check_save_flags
4351 fi
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; }
4354 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4355 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
4356 else
4357 :
4358 fi
4359
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366 else
4367 :
4368 fi
4369
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_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; }
4385 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
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
4394 int
4395 main ()
4396 {
4397
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4404 else
4405 ax_cv_check_cflags__Werror___fstack_protector_all=no
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 CFLAGS=$ax_check_save_flags
4409 fi
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; }
4412 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_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; }
4421 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
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
4430 int
4431 main ()
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4440 else
4441 ax_cv_check_cflags__Werror___fstack_protector_all=no
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 CFLAGS=$ax_check_save_flags
4445 fi
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; }
4448 if 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; }
4451 if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
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
4460 int
4461 main ()
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_link "$LINENO"; then :
4469 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4470 else
4471 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4475 LDFLAGS=$ax_check_save_flags
4476 fi
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; }
4479 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then :
4480 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_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; }
4489 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
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
4498 int
4499 main ()
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4508 else
4509 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 CFLAGS=$ax_check_save_flags
4513 fi
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; }
4516 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_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; }
4525 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
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
4534 int
4535 main ()
4536 {
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4544 else
4545 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 CFLAGS=$ax_check_save_flags
4549 fi
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; }
4552 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4553 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4554 else
4555 :
4556 fi
4557
4558 ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564 else
4565 :
4566 fi
4567
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_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; }
4582 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
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
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4601 else
4602 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 CFLAGS=$ax_check_save_flags
4606 fi
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; }
4609 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_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; }
4618 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
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
4627 int
4628 main ()
4629 {
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4637 else
4638 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 CFLAGS=$ax_check_save_flags
4642 fi
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; }
4645 if 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"
4647 else
4648 :
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657 else
4658 :
4659 fi
4660
4661 ac_ext=c
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667 else
4668 :
4669 fi
4670
4671 else
4672 :
4673 fi
4674
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681 else
4682 :
4683 fi
4684
4685 ac_ext=c
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_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
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_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; }
4703 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
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
4712 int
4713 main ()
4714 {
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ax_cv_check_cflags__Werror___fPIE=yes
4722 else
4723 ax_cv_check_cflags__Werror___fPIE=no
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 CFLAGS=$ax_check_save_flags
4727 fi
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; }
4730 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_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; }
4739 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
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
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ax_cv_check_cflags__Werror___fPIE=yes
4758 else
4759 ax_cv_check_cflags__Werror___fPIE=no
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 CFLAGS=$ax_check_save_flags
4763 fi
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; }
4766 if 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; }
4769 if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
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
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_link "$LINENO"; then :
4787 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4788 else
4789 ax_cv_check_ldflags__Werror___fPIE__pie=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793 LDFLAGS=$ax_check_save_flags
4794 fi
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; }
4797 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then :
4798 HARDEN_BINCFLAGS="-fPIE"
4799 HARDEN_BINLDFLAGS="-pie"
4800 else
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; }
4803 if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
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
4812 int
4813 main ()
4814 {
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_link "$LINENO"; then :
4821 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
4822 else
4823 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LDFLAGS=$ax_check_save_flags
4828 fi
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; }
4831 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then :
4832 HARDEN_BINCFLAGS="-fPIE"
4833 HARDEN_BINLDFLAGS="-Wl,-pie"
4834 else
4835 :
4836 fi
4837
4838 fi
4839
4840 else
4841 :
4842 fi
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850 else
4851 :
4852 fi
4853
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_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; }
4863 if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
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
4872 int
4873 main ()
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_c_try_link "$LINENO"; then :
4881 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
4882 else
4883 ax_cv_check_ldflags__Werror___Wl__z_relro=no
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LDFLAGS=$ax_check_save_flags
4888 fi
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; }
4891 if 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; }
4895 if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
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
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_link "$LINENO"; then :
4913 ax_cv_check_ldflags__Werror___Wl__z_now=yes
4914 else
4915 ax_cv_check_ldflags__Werror___Wl__z_now=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 LDFLAGS=$ax_check_save_flags
4920 fi
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; }
4923 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then :
4924 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
4925 else
4926 :
4927 fi
4928
4929 else
4930 :
4931 fi
4932
4933 fi
4934
4935
4936
4937
4938
4939 # End of flag tests.
4940 CC="$saved_CC"
4941 CXX="$saved_CXX"
4942 LD="$saved_LD"
4943
4944
4945
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; }
4948 if ${ac_cv_ip6+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951
4952 save_libs="$LIBS"
4953 LIBS="$LIBS $SOCKLIB"
4954 if 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;}
4957 as_fn_error $? "cannot run test program while cross compiling
4958 See \`config.log' for more details" "$LINENO" 5; }
4959 else
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 #include <sys/types.h>
4964 #include <sys/socket.h>
4965 int main() {
4966 int s = socket(AF_INET6, SOCK_STREAM, 0);
4967 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
4968 }
4969
4970 _ACEOF
4971 if ac_fn_c_try_run "$LINENO"; then :
4972 ac_cv_ip6=yes
4973 else
4974 ac_cv_ip6=no
4975 fi
4976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4977 conftest.$ac_objext conftest.beam conftest.$ac_ext
4978 fi
4979
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
4983 $as_echo "$ac_cv_ip6" >&6; }
4984 if test "$ac_cv_ip6" = "no"; then
4985 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
4986 fi
4987 LIBS="$save_libs"
4988
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_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.
4997 if test -n "$CPP" && test -d "$CPP"; then
4998 CPP=
4999 fi
5000 if test -z "$CPP"; then
5001 if ${ac_cv_prog_CPP+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
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
5008 for ac_c_preproc_warn_flag in '' yes
5009 do
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
5024 _ACEOF
5025 if ac_fn_c_try_cpp "$LINENO"; then :
5026
5027 else
5028 # Broken: fails on valid input.
5029 continue
5030 fi
5031 rm -f conftest.err conftest.i conftest.$ac_ext
5032
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>
5038 _ACEOF
5039 if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: success on invalid input.
5041 continue
5042 else
5043 # Passes both tests.
5044 ac_preproc_ok=:
5045 break
5046 fi
5047 rm -f conftest.err conftest.i conftest.$ac_ext
5048
5049 done
5050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051 rm -f conftest.i conftest.err conftest.$ac_ext
5052 if $ac_preproc_ok; then :
5053 break
5054 fi
5055
5056 done
5057 ac_cv_prog_CPP=$CPP
5058
5059 fi
5060 CPP=$ac_cv_prog_CPP
5061 else
5062 ac_cv_prog_CPP=$CPP
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5065 $as_echo "$CPP" >&6; }
5066 ac_preproc_ok=false
5067 for ac_c_preproc_warn_flag in '' yes
5068 do
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
5076 /* end confdefs.h. */
5077 #ifdef __STDC__
5078 # include <limits.h>
5079 #else
5080 # include <assert.h>
5081 #endif
5082 Syntax error
5083 _ACEOF
5084 if ac_fn_c_try_cpp "$LINENO"; then :
5085
5086 else
5087 # Broken: fails on valid input.
5088 continue
5089 fi
5090 rm -f conftest.err conftest.i conftest.$ac_ext
5091
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>
5097 _ACEOF
5098 if ac_fn_c_try_cpp "$LINENO"; then :
5099 # Broken: success on invalid input.
5100 continue
5101 else
5102 # Passes both tests.
5103 ac_preproc_ok=:
5104 break
5105 fi
5106 rm -f conftest.err conftest.i conftest.$ac_ext
5107
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.i conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then :
5112
5113 else
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details" "$LINENO" 5; }
5118 fi
5119
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_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; }
5129 if ${ac_cv_path_GREP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
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
5136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5137 do
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"
5143 as_fn_executable_p "$ac_path_GREP" || continue
5144 # Check for GNU ac_path_GREP and select it if it is found.
5145 # Check for GNU $ac_path_GREP
5146 case `"$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;;
5170 esac
5171
5172 $ac_path_GREP_found && break 3
5173 done
5174 done
5175 done
5176 IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_GREP"; then
5178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5179 fi
5180 else
5181 ac_cv_path_GREP=$GREP
5182 fi
5183
5184 fi
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"
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5191 $as_echo_n "checking for egrep... " >&6; }
5192 if ${ac_cv_path_EGREP+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
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
5202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5203 do
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"
5209 as_fn_executable_p "$ac_path_EGREP" || continue
5210 # Check for GNU ac_path_EGREP and select it if it is found.
5211 # Check for GNU $ac_path_EGREP
5212 case `"$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;;
5236 esac
5237
5238 $ac_path_EGREP_found && break 3
5239 done
5240 done
5241 done
5242 IFS=$as_save_IFS
5243 if test -z "$ac_cv_path_EGREP"; then
5244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5245 fi
5246 else
5247 ac_cv_path_EGREP=$EGREP
5248 fi
5249
5250 fi
5251 fi
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"
5255
5256
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; }
5259 if ${ac_cv_header_stdc+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
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>
5268
5269 int
5270 main ()
5271 {
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_header_stdc=yes
5279 else
5280 ac_cv_header_stdc=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283
5284 if 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>
5289
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "memchr" >/dev/null 2>&1; then :
5293
5294 else
5295 ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest*
5298
5299 fi
5300
5301 if 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
5304 /* end confdefs.h. */
5305 #include <stdlib.h>
5306
5307 _ACEOF
5308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5309 $EGREP "free" >/dev/null 2>&1; then :
5310
5311 else
5312 ac_cv_header_stdc=no
5313 fi
5314 rm -f conftest*
5315
5316 fi
5317
5318 if 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 :
5322 else
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))
5336 #endif
5337
5338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5339 int
5340 main ()
5341 {
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;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_run "$LINENO"; then :
5351
5352 else
5353 ac_cv_header_stdc=no
5354 fi
5355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5356 conftest.$ac_objext conftest.beam conftest.$ac_ext
5357 fi
5358
5359 fi
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5362 $as_echo "$ac_cv_header_stdc" >&6; }
5363 if test $ac_cv_header_stdc = yes; then
5364
5365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5366
5367 fi
5368
5369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5371 inttypes.h stdint.h unistd.h
5372 do :
5373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5375 "
5376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5377 cat >>confdefs.h <<_ACEOF
5378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 _ACEOF
5380
5381 fi
5382
5383 done
5384
5385
5386 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5387 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5388
5389 $as_echo "#define PARAMH /**/" >>confdefs.h
5390
5391 fi
5392
5393
5394 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5395 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5396
5397 $as_echo "#define STDLIBH /**/" >>confdefs.h
5398
5399 fi
5400
5401
5402 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5403 if test "x$ac_cv_header_stddef_h" = xyes; then :
5404
5405 $as_echo "#define STDDEFH /**/" >>confdefs.h
5406
5407 fi
5408
5409
5410 ac_fn_c_check_header_mongrel "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
5411 if test "x$ac_cv_header_sys_syslog_h" = xyes; then :
5412
5413 $as_echo "#define SYSSYSLOGH /**/" >>confdefs.h
5414
5415 fi
5416
5417
5418 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5419 if test "x$ac_cv_header_unistd_h" = xyes; then :
5420
5421 $as_echo "#define UNISTDH /**/" >>confdefs.h
5422
5423 fi
5424
5425
5426 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5427 if test "x$ac_cv_header_string_h" = xyes; then :
5428
5429 $as_echo "#define STRINGH /**/" >>confdefs.h
5430
5431 fi
5432
5433
5434 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5435 if test "x$ac_cv_header_strings_h" = xyes; then :
5436
5437 $as_echo "#define STRINGSH /**/" >>confdefs.h
5438
5439 fi
5440
5441
5442 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5443 if test "x$ac_cv_header_malloc_h" = xyes; then :
5444
5445 $as_echo "#define MALLOCH <malloc.h>" >>confdefs.h
5446
5447 fi
5448
5449
5450 ac_fn_c_check_header_mongrel "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
5451 if test "x$ac_cv_header_sys_rusage_h" = xyes; then :
5452
5453 $as_echo "#define RUSAGEH /**/" >>confdefs.h
5454
5455 fi
5456
5457
5458 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
5459 if test "x$ac_cv_header_glob_h" = xyes; then :
5460
5461 $as_echo "#define GLOBH /**/" >>confdefs.h
5462
5463 fi
5464
5465
5466 for ac_header in stdint.h inttypes.h
5467 do :
5468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5474
5475 fi
5476
5477 done
5478
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; }
5481 if ${ac_cv_c_const+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486
5487 int
5488 main ()
5489 {
5490
5491 #ifndef __cplusplus
5492 /* Ultrix mips cc rejects this sort of thing. */
5493 typedef int charset[2];
5494 const charset cs = { 0, 0 };
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;
5511 { /* SCO 3.2v4 cc rejects this sort of thing. */
5512 char tx;
5513 char *t = &tx;
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 }
5529 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5531 struct s { int j; const int *ap[3]; } bx;
5532 struct s *b = &bx; b->j = 5;
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
5541 ;
5542 return 0;
5543 }
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_c_const=yes
5547 else
5548 ac_cv_c_const=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5553 $as_echo "$ac_cv_c_const" >&6; }
5554 if test $ac_cv_c_const = no; then
5555
5556 $as_echo "#define const /**/" >>confdefs.h
5557
5558 fi
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if ${ac_cv_c_inline+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5574
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581 done
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5586
5587 case $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 ;;
5600 esac
5601
5602
5603 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5604 if test "x$ac_cv_type_mode_t" = xyes; then :
5605
5606 else
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define mode_t int
5610 _ACEOF
5611
5612 fi
5613
5614 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5615 if test "x$ac_cv_type_size_t" = xyes; then :
5616
5617 else
5618
5619 cat >>confdefs.h <<_ACEOF
5620 #define size_t unsigned int
5621 _ACEOF
5622
5623 fi
5624
5625
5626 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5627 if test "x$ac_cv_type_intptr_t" = xyes; then :
5628
5629 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5630
5631 else
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
5636 int
5637 main ()
5638 {
5639 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5640 test_array [0] = 0;
5641 return test_array [0];
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648
5649 cat >>confdefs.h <<_ACEOF
5650 #define intptr_t $ac_type
5651 _ACEOF
5652
5653 ac_type=
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 test -z "$ac_type" && break
5657 done
5658 fi
5659
5660
5661
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; }
5664 if ${ac_cv_header_time+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 #include <sys/time.h>
5671 #include <time.h>
5672
5673 int
5674 main ()
5675 {
5676 if ((struct tm *) 0)
5677 return 0;
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_header_time=yes
5684 else
5685 ac_cv_header_time=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5690 $as_echo "$ac_cv_header_time" >&6; }
5691 if test $ac_cv_header_time = yes; then
5692
5693 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5694
5695 fi
5696
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; }
5699 if ${ac_cv_header_sys_wait_h+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
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
5713 int
5714 main ()
5715 {
5716 int s;
5717 wait (&s);
5718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_header_sys_wait_h=yes
5725 else
5726 ac_cv_header_sys_wait_h=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 fi
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; }
5732 if test $ac_cv_header_sys_wait_h = yes; then
5733
5734 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5735
5736 fi
5737
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; }
5740 if ${ac_cv_struct_tm+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <time.h>
5747
5748 int
5749 main ()
5750 {
5751 struct tm tm;
5752 int *p = &tm.tm_sec;
5753 return !p;
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 ac_cv_struct_tm=time.h
5760 else
5761 ac_cv_struct_tm=sys/time.h
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5766 $as_echo "$ac_cv_struct_tm" >&6; }
5767 if test $ac_cv_struct_tm = sys/time.h; then
5768
5769 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5770
5771 fi
5772
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; }
5775 if ${ac_cv_type_uid_t+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781
5782 _ACEOF
5783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784 $EGREP "uid_t" >/dev/null 2>&1; then :
5785 ac_cv_type_uid_t=yes
5786 else
5787 ac_cv_type_uid_t=no
5788 fi
5789 rm -f conftest*
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5793 $as_echo "$ac_cv_type_uid_t" >&6; }
5794 if 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
5800
5801 fi
5802
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; }
5809 if ${ac_cv_sizeof_short+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5813
5814 else
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;}
5818 as_fn_error 77 "cannot compute sizeof (short)
5819 See \`config.log' for more details" "$LINENO" 5; }
5820 else
5821 ac_cv_sizeof_short=0
5822 fi
5823 fi
5824
5825 fi
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
5831 cat >>confdefs.h <<_ACEOF
5832 #define SIZEOF_SHORT $ac_cv_sizeof_short
5833 _ACEOF
5834
5835
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; }
5842 if ${ac_cv_sizeof_int+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5846
5847 else
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;}
5851 as_fn_error 77 "cannot compute sizeof (int)
5852 See \`config.log' for more details" "$LINENO" 5; }
5853 else
5854 ac_cv_sizeof_int=0
5855 fi
5856 fi
5857
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5860 $as_echo "$ac_cv_sizeof_int" >&6; }
5861
5862
5863
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_INT $ac_cv_sizeof_int
5866 _ACEOF
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; }
5875 if ${ac_cv_sizeof_long+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5879
5880 else
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;}
5884 as_fn_error 77 "cannot compute sizeof (long)
5885 See \`config.log' for more details" "$LINENO" 5; }
5886 else
5887 ac_cv_sizeof_long=0
5888 fi
5889 fi
5890
5891 fi
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
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF_LONG $ac_cv_sizeof_long
5899 _ACEOF
5900
5901
5902 if test "$ac_cv_sizeof_int" = 2 ; then
5903 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5904 if test "x$ac_cv_type_int16_t" = xyes; then :
5905
5906 else
5907
5908 cat >>confdefs.h <<_ACEOF
5909 #define int16_t int
5910 _ACEOF
5911
5912 fi
5913
5914 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5915 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5916
5917 else
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define u_int16_t unsigned int
5921 _ACEOF
5922
5923 fi
5924
5925 elif test "$ac_cv_sizeof_short" = 2 ; then
5926 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5927 if test "x$ac_cv_type_int16_t" = xyes; then :
5928
5929 else
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define int16_t short
5933 _ACEOF
5934
5935 fi
5936
5937 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5938 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5939
5940 else
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define u_int16_t unsigned short
5944 _ACEOF
5945
5946 fi
5947
5948 else
5949 as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
5950 fi
5951 if test "$ac_cv_sizeof_int" = 4 ; then
5952 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5953 if test "x$ac_cv_type_int32_t" = xyes; then :
5954
5955 else
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define int32_t int
5959 _ACEOF
5960
5961 fi
5962
5963 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5964 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5965
5966 else
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define u_int32_t unsigned int
5970 _ACEOF
5971
5972 fi
5973
5974 elif test "$ac_cv_sizeof_short" = 4 ; then
5975 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5976 if test "x$ac_cv_type_int32_t" = xyes; then :
5977
5978 else
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define int32_t short
5982 _ACEOF
5983
5984 fi
5985
5986 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5987 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5988
5989 else
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define u_int32_t unsigned short
5993 _ACEOF
5994
5995 fi
5996
5997 elif test "$ac_cv_sizeof_long" = 4 ; then
5998 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_int32_t" = xyes; then :
6000
6001 else
6002
6003 cat >>confdefs.h <<_ACEOF
6004 #define int32_t long
6005 _ACEOF
6006
6007 fi
6008
6009 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6010 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6011
6012 else
6013
6014 cat >>confdefs.h <<_ACEOF
6015 #define u_int32_t unsigned long
6016 _ACEOF
6017
6018 fi
6019
6020 else
6021 as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
6022 fi
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; }
6029 if ${ac_cv_sizeof_rlim_t+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "$ac_includes_default"; then :
6033
6034 else
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;}
6038 as_fn_error 77 "cannot compute sizeof (rlim_t)
6039 See \`config.log' for more details" "$LINENO" 5; }
6040 else
6041 ac_cv_sizeof_rlim_t=0
6042 fi
6043 fi
6044
6045 fi
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
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
6053 _ACEOF
6054
6055
6056 if test "$ac_cv_sizeof_rlim_t" = 8 ; then
6057
6058 $as_echo "#define LONG_LONG_RLIM_T /**/" >>confdefs.h
6059
6060 fi
6061
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; }
6065 if ${ac_cv_nonblocking+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068
6069 save_libs="$LIBS"
6070 LIBS="$LIBS $SOCKLIB"
6071 if 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;}
6074 as_fn_error $? "cannot run test program while cross compiling
6075 See \`config.log' for more details" "$LINENO" 5; }
6076 else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079
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>
6086 alarmed() {
6087 exit(1);
6088 }
6089 int main() {
6090 #ifdef O_NONBLOCK
6091 char b[12], x[32];
6092 int f, l = sizeof(x);
6093 f = socket(AF_INET, SOCK_DGRAM, 0);
6094 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
6095 signal(SIGALRM, alarmed);
6096 alarm(3);
6097 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6098 alarm(0);
6099 exit(0);
6100 }
6101 #endif
6102 exit(1);
6103 }
6104
6105 _ACEOF
6106 if ac_fn_c_try_run "$LINENO"; then :
6107 ac_cv_nonblocking=O_NONBLOCK
6108 else
6109
6110 if 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;}
6113 as_fn_error $? "cannot run test program while cross compiling
6114 See \`config.log' for more details" "$LINENO" 5; }
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118
6119 #include <sys/types.h>
6120 #include <sys/socket.h>
6121 #include <fcntl.h>
6122 #include <sys/ioctl.h>
6123 #include <sys/file.h>
6124 #include <signal.h>
6125 alarmed() {
6126 exit(0);
6127 }
6128 int main() {
6129 #ifdef O_NDELAY
6130 char b[12], x[32];
6131 int f, l = sizeof(x);
6132 f = socket(AF_INET, SOCK_DGRAM, 0);
6133 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
6134 signal(SIGALRM, alarmed);
6135 alarm(3);
6136 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6137 alarm(0);
6138 exit(0);
6139 }
6140 #endif
6141 exit(1);
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_run "$LINENO"; then :
6145 ac_cv_nonblocking=O_NDELAY
6146 else
6147
6148 if 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;}
6151 as_fn_error $? "cannot run test program while cross compiling
6152 See \`config.log' for more details" "$LINENO" 5; }
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 #include <sys/types.h>
6158 #include <sys/socket.h>
6159 #include <fcntl.h>
6160 #include <sys/ioctl.h>
6161 #include <sys/file.h>
6162 #include <signal.h>
6163 alarmed() {
6164 exit(1);
6165 }
6166 int main() {
6167 #ifdef FIONBIO
6168 char b[12], x[32];
6169 int f, l = sizeof(x);
6170 f = socket(AF_INET, SOCK_DGRAM, 0);
6171 if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
6172 signal(SIGALRM, alarmed);
6173 alarm(3);
6174 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6175 alarm(0);
6176 exit(0);
6177 }
6178 #endif
6179 exit(1);
6180
6181 _ACEOF
6182 if ac_fn_c_try_run "$LINENO"; then :
6183 ac_cv_nonblocking=FIONBIO
6184 else
6185 ac_cv_nonblocking=none
6186 fi
6187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6188 conftest.$ac_objext conftest.beam conftest.$ac_ext
6189 fi
6190
6191 fi
6192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6193 conftest.$ac_objext conftest.beam conftest.$ac_ext
6194 fi
6195
6196 fi
6197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6198 conftest.$ac_objext conftest.beam conftest.$ac_ext
6199 fi
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nonblocking" >&5
6203 $as_echo "$ac_cv_nonblocking" >&6; }
6204 if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
6205
6206 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
6207
6208 elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
6209
6210 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
6211
6212 elif test "$ac_cv_nonblocking" = "FIONBIO"; then
6213
6214 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
6215
6216 fi
6217 LIBS="$save_libs"
6218 if 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; }
6221 if ${ac_cv_prog_gcc_traditional+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 ac_pattern="Autoconf.*'x'"
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 #include <sgtty.h>
6228 Autoconf TIOCGETP
6229 _ACEOF
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6232 ac_cv_prog_gcc_traditional=yes
6233 else
6234 ac_cv_prog_gcc_traditional=no
6235 fi
6236 rm -f conftest*
6237
6238
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>
6243 Autoconf TCGETA
6244 _ACEOF
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6247 ac_cv_prog_gcc_traditional=yes
6248 fi
6249 rm -f conftest*
6250
6251 fi
6252 fi
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
6258 fi
6259
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; }
6262 if ${ac_cv_func_setpgrp_void+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test "$cross_compiling" = yes; then :
6266 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6267 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
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;
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_c_try_run "$LINENO"; then :
6283 ac_cv_func_setpgrp_void=no
6284 else
6285 ac_cv_func_setpgrp_void=yes
6286 fi
6287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6288 conftest.$ac_objext conftest.beam conftest.$ac_ext
6289 fi
6290
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6293 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
6294 if test $ac_cv_func_setpgrp_void = yes; then
6295
6296 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6297
6298 fi
6299
6300 if ${ac_cv_func_setvbuf_reversed+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 ac_cv_func_setvbuf_reversed=no
6304 fi
6305
6306
6307 for ac_func in snprintf
6308 do :
6309 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6310 if test "x$ac_cv_func_snprintf" = xyes; then :
6311 cat >>confdefs.h <<_ACEOF
6312 #define HAVE_SNPRINTF 1
6313 _ACEOF
6314
6315 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
6316
6317 fi
6318 done
6319
6320 for ac_func in vsnprintf
6321 do :
6322 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6323 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_VSNPRINTF 1
6326 _ACEOF
6327
6328 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
6329
6330 fi
6331 done
6332
6333 for ac_func in strlcpy
6334 do :
6335 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6336 if test "x$ac_cv_func_strlcpy" = xyes; then :
6337 cat >>confdefs.h <<_ACEOF
6338 #define HAVE_STRLCPY 1
6339 _ACEOF
6340
6341 $as_echo "#define HAVE_STRLCPY /**/" >>confdefs.h
6342
6343 fi
6344 done
6345
6346 for ac_func in strlcat
6347 do :
6348 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6349 if test "x$ac_cv_func_strlcat" = xyes; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define HAVE_STRLCAT 1
6352 _ACEOF
6353
6354 $as_echo "#define HAVE_STRLCAT /**/" >>confdefs.h
6355
6356 fi
6357 done
6358
6359 for ac_func in strlncat
6360 do :
6361 ac_fn_c_check_func "$LINENO" "strlncat" "ac_cv_func_strlncat"
6362 if test "x$ac_cv_func_strlncat" = xyes; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define HAVE_STRLNCAT 1
6365 _ACEOF
6366
6367 $as_echo "#define HAVE_STRLNCAT /**/" >>confdefs.h
6368
6369 fi
6370 done
6371
6372 for ac_func in inet_pton
6373 do :
6374 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6375 if test "x$ac_cv_func_inet_pton" = xyes; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_INET_PTON 1
6378 _ACEOF
6379
6380 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
6381
6382 fi
6383 done
6384
6385 for ac_func in inet_ntop
6386 do :
6387 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
6388 if test "x$ac_cv_func_inet_ntop" = xyes; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_INET_NTOP 1
6391 _ACEOF
6392
6393 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
6394
6395 fi
6396 done
6397
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; }
6400 if ${ac_cv_varlen_arrays+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406
6407 int
6408 main ()
6409 {
6410
6411 int main() {
6412 int i = 5;
6413 int a[i];
6414 a[0] = 1;
6415 return 0;
6416 }
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 ac_cv_varlen_arrays=yes
6423 else
6424 ac_cv_varlen_arrays=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_varlen_arrays" >&5
6430 $as_echo "$ac_cv_varlen_arrays" >&6; }
6431 if test "$ac_cv_varlen_arrays" = "yes" ; then
6432
6433 $as_echo "#define HAVE_C99_VARLEN_ARRAY /**/" >>confdefs.h
6434
6435 fi
6436
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; }
6439 if ${ac_cv_force_core+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442
6443 if 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;}
6446 as_fn_error $? "cannot run test program while cross compiling
6447 See \`config.log' for more details" "$LINENO" 5; }
6448 else
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>
6455 int main() {
6456 struct rlimit corelim;
6457 corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
6458 if (setrlimit(RLIMIT_CORE, &corelim))
6459 exit(1);
6460 exit(0);
6461 }
6462
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"; then :
6465 ac_cv_force_core=yes
6466 else
6467 ac_cv_force_core=no
6468 fi
6469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
6471 fi
6472
6473
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_force_core" >&5
6476 $as_echo "$ac_cv_force_core" >&6; }
6477 if test "$ac_cv_force_core" = "yes"; then
6478
6479 $as_echo "#define FORCE_CORE /**/" >>confdefs.h
6480
6481 fi
6482 for ac_func in vprintf
6483 do :
6484 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6485 if test "x$ac_cv_func_vprintf" = xyes; then :
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_VPRINTF 1
6488 _ACEOF
6489
6490 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6491 if test "x$ac_cv_func__doprnt" = xyes; then :
6492
6493 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6494
6495 fi
6496
6497 fi
6498 done
6499
6500
6501 for ac_func in gettimeofday
6502 do :
6503 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6504 if test "x$ac_cv_func_gettimeofday" = xyes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define HAVE_GETTIMEOFDAY 1
6507 _ACEOF
6508
6509 $as_echo "#define GETTIMEOFDAY /**/" >>confdefs.h
6510
6511 else
6512 for ac_func in lrand48
6513 do :
6514 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
6515 if test "x$ac_cv_func_lrand48" = xyes; then :
6516 cat >>confdefs.h <<_ACEOF
6517 #define HAVE_LRAND48 1
6518 _ACEOF
6519
6520 $as_echo "#define LRADN48 /**/" >>confdefs.h
6521
6522 fi
6523 done
6524
6525 fi
6526 done
6527
6528 for ac_func in getrusage
6529 do :
6530 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
6531 if test "x$ac_cv_func_getrusage" = xyes; then :
6532 cat >>confdefs.h <<_ACEOF
6533 #define HAVE_GETRUSAGE 1
6534 _ACEOF
6535
6536 $as_echo "#define GETRUSAGE_2 /**/" >>confdefs.h
6537
6538 else
6539 for ac_func in times
6540 do :
6541 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
6542 if test "x$ac_cv_func_times" = xyes; then :
6543 cat >>confdefs.h <<_ACEOF
6544 #define HAVE_TIMES 1
6545 _ACEOF
6546
6547 $as_echo "#define TIMES_2 /**/" >>confdefs.h
6548
6549 fi
6550 done
6551
6552 fi
6553 done
6554
6555 for ac_func in setproctitle
6556 do :
6557 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
6558 if test "x$ac_cv_func_setproctitle" = xyes; then :
6559 cat >>confdefs.h <<_ACEOF
6560 #define HAVE_SETPROCTITLE 1
6561 _ACEOF
6562
6563 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6564
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
6567 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
6568 if ${ac_cv_lib_util_setproctitle+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lutil $LIBS"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575
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. */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 char setproctitle ();
6583 int
6584 main ()
6585 {
6586 return setproctitle ();
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 ac_cv_lib_util_setproctitle=yes
6593 else
6594 ac_cv_lib_util_setproctitle=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 LIBS=$ac_check_lib_save_LIBS
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
6601 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
6602 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
6603
6604 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6605
6606 IRCDLIBS="$IRCDLIBS-lutil"
6607 else
6608
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #include <sys/exec.h>
6612
6613 _ACEOF
6614 if (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
6618
6619 else
6620 for ac_func in pstat
6621 do :
6622 ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
6623 if test "x$ac_cv_func_pstat" = xyes; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_PSTAT 1
6626 _ACEOF
6627
6628 $as_echo "#define HAVE_PSTAT /**/" >>confdefs.h
6629
6630 fi
6631 done
6632
6633 fi
6634 rm -f conftest*
6635
6636
6637 fi
6638
6639
6640
6641 fi
6642 done
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; }
6648 if ${ac_cv_sigtype+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651
6652 if 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;}
6655 as_fn_error $? "cannot run test program while cross compiling
6656 See \`config.log' for more details" "$LINENO" 5; }
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660
6661 #include <signal.h>
6662 int main() {
6663 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
6664 }
6665
6666 _ACEOF
6667 if ac_fn_c_try_run "$LINENO"; then :
6668 ac_cv_sigtype=POSIX
6669 else
6670
6671 if 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;}
6674 as_fn_error $? "cannot run test program while cross compiling
6675 See \`config.log' for more details" "$LINENO" 5; }
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679
6680 #include <signal.h>
6681 int calls = 0;
6682 void handler()
6683 {
6684 if (calls)
6685 return;
6686 calls++;
6687 kill(getpid(), SIGTERM);
6688 sleep(1);
6689 }
6690
6691 int main() {
6692 signal(SIGTERM, handler);
6693 kill(getpid(), SIGTERM);
6694 exit(0);
6695 }
6696
6697 _ACEOF
6698 if ac_fn_c_try_run "$LINENO"; then :
6699 ac_cv_sigtype=BSD
6700 else
6701 ac_cv_sigtype=SYSV
6702 fi
6703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6704 conftest.$ac_objext conftest.beam conftest.$ac_ext
6705 fi
6706
6707 fi
6708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6709 conftest.$ac_objext conftest.beam conftest.$ac_ext
6710 fi
6711
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigtype" >&5
6714 $as_echo "$ac_cv_sigtype" >&6; }
6715
6716 if test "$ac_cv_sigtype" = "POSIX"; then
6717
6718 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
6719
6720 elif test "$ac_cv_sigtype" = "BSD"; then
6721
6722 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
6723
6724 else
6725
6726 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
6727
6728 fi
6729 for ac_func in strtoken
6730 do :
6731 ac_fn_c_check_func "$LINENO" "strtoken" "ac_cv_func_strtoken"
6732 if test "x$ac_cv_func_strtoken" = xyes; then :
6733 cat >>confdefs.h <<_ACEOF
6734 #define HAVE_STRTOKEN 1
6735 _ACEOF
6736
6737 else
6738
6739 $as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
6740
6741 fi
6742 done
6743
6744 for ac_func in strtok
6745 do :
6746 ac_fn_c_check_func "$LINENO" "strtok" "ac_cv_func_strtok"
6747 if test "x$ac_cv_func_strtok" = xyes; then :
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_STRTOK 1
6750 _ACEOF
6751
6752 else
6753
6754 $as_echo "#define NEED_STRTOK /**/" >>confdefs.h
6755
6756 fi
6757 done
6758
6759 for ac_func in strerror
6760 do :
6761 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6762 if test "x$ac_cv_func_strerror" = xyes; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_STRERROR 1
6765 _ACEOF
6766
6767 else
6768
6769 $as_echo "#define NEED_STRERROR /**/" >>confdefs.h
6770
6771 fi
6772 done
6773
6774 for ac_func in index
6775 do :
6776 ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
6777 if test "x$ac_cv_func_index" = xyes; then :
6778 cat >>confdefs.h <<_ACEOF
6779 #define HAVE_INDEX 1
6780 _ACEOF
6781
6782 else
6783
6784 $as_echo "#define NOINDEX /**/" >>confdefs.h
6785
6786 fi
6787 done
6788
6789 for ac_func in strtoul
6790 do :
6791 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
6792 if test "x$ac_cv_func_strtoul" = xyes; then :
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_STRTOUL 1
6795 _ACEOF
6796
6797 else
6798 STRTOUL="strtoul.o"
6799 fi
6800 done
6801
6802 for ac_func in bcopy
6803 do :
6804 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
6805 if test "x$ac_cv_func_bcopy" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_BCOPY 1
6808 _ACEOF
6809
6810 else
6811
6812 $as_echo "#define NEED_BCOPY /**/" >>confdefs.h
6813
6814 fi
6815 done
6816
6817 for ac_func in bcmp
6818 do :
6819 ac_fn_c_check_func "$LINENO" "bcmp" "ac_cv_func_bcmp"
6820 if test "x$ac_cv_func_bcmp" = xyes; then :
6821 cat >>confdefs.h <<_ACEOF
6822 #define HAVE_BCMP 1
6823 _ACEOF
6824
6825 else
6826
6827 $as_echo "#define NEED_BCMP /**/" >>confdefs.h
6828
6829 fi
6830 done
6831
6832 for ac_func in bzero
6833 do :
6834 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
6835 if test "x$ac_cv_func_bzero" = xyes; then :
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_BZERO 1
6838 _ACEOF
6839
6840 else
6841
6842 $as_echo "#define NEED_BZERO /**/" >>confdefs.h
6843
6844 fi
6845 done
6846
6847 for ac_func in strcasecmp
6848 do :
6849 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6850 if test "x$ac_cv_func_strcasecmp" = xyes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STRCASECMP 1
6853 _ACEOF
6854
6855 $as_echo "#define GOT_STRCASECMP /**/" >>confdefs.h
6856
6857 fi
6858 done
6859
6860 save_libs="$LIBS"
6861 LIBS="$LIBS $SOCKLIB $INETLIB"
6862 for ac_func in inet_addr
6863 do :
6864 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
6865 if test "x$ac_cv_func_inet_addr" = xyes; then :
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_INET_ADDR 1
6868 _ACEOF
6869
6870 else
6871
6872 $as_echo "#define NEED_INET_ADDR /**/" >>confdefs.h
6873
6874 fi
6875 done
6876
6877 for ac_func in inet_ntoa
6878 do :
6879 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
6880 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
6881 cat >>confdefs.h <<_ACEOF
6882 #define HAVE_INET_NTOA 1
6883 _ACEOF
6884
6885 else
6886
6887 $as_echo "#define NEED_INET_NTOA /**/" >>confdefs.h
6888
6889 fi
6890 done
6891
6892 LIBS="$save_libs"
6893 for ac_func in syslog
6894 do :
6895 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
6896 if test "x$ac_cv_func_syslog" = xyes; then :
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_SYSLOG 1
6899 _ACEOF
6900
6901 $as_echo "#define HAVE_SYSLOG /**/" >>confdefs.h
6902
6903 fi
6904 done
6905
6906
6907
6908
6909
6910
6911 # Check whether --with-nick-history was given.
6912 if test "${with_nick_history+set}" = set; then :
6913 withval=$with_nick_history;
6914 cat >>confdefs.h <<_ACEOF
6915 #define NICKNAMEHISTORYLENGTH $withval
6916 _ACEOF
6917
6918 else
6919
6920 $as_echo "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
6921
6922 fi
6923
6924
6925 # Check whether --with-sendq was given.
6926 if test "${with_sendq+set}" = set; then :
6927 withval=$with_sendq;
6928 cat >>confdefs.h <<_ACEOF
6929 #define MAXSENDQLENGTH $withval
6930 _ACEOF
6931
6932 else
6933
6934 $as_echo "#define MAXSENDQLENGTH 3000000" >>confdefs.h
6935
6936 fi
6937
6938
6939 # Check whether --with-permissions was given.
6940 if test "${with_permissions+set}" = set; then :
6941 withval=$with_permissions;
6942 cat >>confdefs.h <<_ACEOF
6943 #define DEFAULT_PERMISSIONS 0$withval
6944 _ACEOF
6945
6946 else
6947
6948 $as_echo "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
6949
6950 fi
6951
6952
6953
6954 # Check whether --with-bindir was given.
6955 if test "${with_bindir+set}" = set; then :
6956 withval=$with_bindir;
6957 cat >>confdefs.h <<_ACEOF
6958 #define BINDIR "$withval"
6959 _ACEOF
6960
6961 BINDIR="$withval"
6962 else
6963
6964 cat >>confdefs.h <<_ACEOF
6965 #define BINDIR "$HOME/unrealircd/bin"
6966 _ACEOF
6967
6968 BINDIR="$HOME/unrealircd/bin"
6969 fi
6970
6971
6972
6973 # Check whether --with-scriptdir was given.
6974 if test "${with_scriptdir+set}" = set; then :
6975 withval=$with_scriptdir;
6976 cat >>confdefs.h <<_ACEOF
6977 #define SCRIPTDIR "$withval"
6978 _ACEOF
6979
6980 SCRIPTDIR="$withval"
6981 else
6982
6983 cat >>confdefs.h <<_ACEOF
6984 #define SCRIPTDIR "$HOME/unrealircd"
6985 _ACEOF
6986
6987 SCRIPTDIR="$HOME/unrealircd"
6988 fi
6989
6990
6991
6992 # Check whether --with-confdir was given.
6993 if test "${with_confdir+set}" = set; then :
6994 withval=$with_confdir;
6995 cat >>confdefs.h <<_ACEOF
6996 #define CONFDIR "$withval"
6997 _ACEOF
6998
6999 CONFDIR="$withval"
7000 else
7001
7002 cat >>confdefs.h <<_ACEOF
7003 #define CONFDIR "$HOME/unrealircd/conf"
7004 _ACEOF
7005
7006 CONFDIR="$HOME/unrealircd/conf"
7007 fi
7008
7009
7010
7011 # Check whether --with-modulesdir was given.
7012 if test "${with_modulesdir+set}" = set; then :
7013 withval=$with_modulesdir;
7014 cat >>confdefs.h <<_ACEOF
7015 #define MODULESDIR "$withval"
7016 _ACEOF
7017
7018 MODULESDIR="$withval"
7019 else
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define MODULESDIR "$HOME/unrealircd/modules"
7023 _ACEOF
7024
7025 MODULESDIR="$HOME/unrealircd/modules"
7026 fi
7027
7028
7029
7030 # Check whether --with-logdir was given.
7031 if test "${with_logdir+set}" = set; then :
7032 withval=$with_logdir;
7033 cat >>confdefs.h <<_ACEOF
7034 #define LOGDIR "$withval"
7035 _ACEOF
7036
7037 LOGDIR="$withval"
7038 else
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define LOGDIR "$HOME/unrealircd/logs"
7042 _ACEOF
7043
7044 LOGDIR="$HOME/unrealircd/logs"
7045 fi
7046
7047
7048
7049 # Check whether --with-cachedir was given.
7050 if test "${with_cachedir+set}" = set; then :
7051 withval=$with_cachedir;
7052 cat >>confdefs.h <<_ACEOF
7053 #define CACHEDIR "$withval"
7054 _ACEOF
7055
7056 CACHEDIR="$withval"
7057 else
7058
7059 cat >>confdefs.h <<_ACEOF
7060 #define CACHEDIR "$HOME/unrealircd/cache"
7061 _ACEOF
7062
7063 CACHEDIR="$HOME/unrealircd/cache"
7064 fi
7065
7066
7067
7068 # Check whether --with-tmpdir was given.
7069 if test "${with_tmpdir+set}" = set; then :
7070 withval=$with_tmpdir;
7071 cat >>confdefs.h <<_ACEOF
7072 #define TMPDIR "$withval"
7073 _ACEOF
7074
7075 TMPDIR="$withval"
7076 else
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define TMPDIR "$HOME/unrealircd/tmp"
7080 _ACEOF
7081
7082 TMPDIR="$HOME/unrealircd/tmp"
7083 fi
7084
7085
7086
7087 # Check whether --with-datadir was given.
7088 if test "${with_datadir+set}" = set; then :
7089 withval=$with_datadir;
7090 cat >>confdefs.h <<_ACEOF
7091 #define PERMDATADIR "$withval"
7092 _ACEOF
7093
7094 PERMDATADIR="$withval"
7095 else
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define DATADIR "$HOME/unrealircd/data"
7099 _ACEOF
7100
7101 PERMDATADIR="$HOME/unrealircd/data"
7102 fi
7103
7104
7105
7106 # Check whether --with-docdir was given.
7107 if test "${with_docdir+set}" = set; then :
7108 withval=$with_docdir;
7109 cat >>confdefs.h <<_ACEOF
7110 #define DOCDIR "$withval"
7111 _ACEOF
7112
7113 DOCDIR="$withval"
7114 else
7115
7116 cat >>confdefs.h <<_ACEOF
7117 #define DOCDIR "$HOME/unrealircd/doc"
7118 _ACEOF
7119
7120 DOCDIR="$HOME/unrealircd/doc"
7121 fi
7122
7123
7124
7125 # Check whether --with-pidfile was given.
7126 if test "${with_pidfile+set}" = set; then :
7127 withval=$with_pidfile;
7128 cat >>confdefs.h <<_ACEOF
7129 #define PIDFILE "$withval"
7130 _ACEOF
7131
7132 PIDFILE="$withval"
7133 else
7134
7135 cat >>confdefs.h <<_ACEOF
7136 #define PIDFILE "$HOME/unrealircd/data/unrealircd.pid"
7137 _ACEOF
7138
7139 PIDFILE="$HOME/unrealircd/data/unrealircd.pid"
7140 fi
7141
7142
7143
7144 # Check whether --with-privatelibdir was given.
7145 if test "${with_privatelibdir+set}" = set; then :
7146 withval=$with_privatelibdir;
7147 else
7148 with_privatelibdir="yes"
7149 fi
7150
7151 if test "x$with_privatelibdir" = "xno"; then :
7152 PRIVATELIBDIR=
7153 elif test "x$with_privatelibdir" = "xyes"; then :
7154 PRIVATELIBDIR="$HOME/unrealircd/lib"
7155 else
7156 PRIVATELIBDIR="$with_privatelibdir"
7157 fi
7158 if test "x$PRIVATELIBDIR" = "x"; then :
7159 LDFLAGS_PRIVATELIBS=""
7160 else
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define PRIVATELIBDIR "$PRIVATELIBDIR"
7164 _ACEOF
7165
7166 LDFLAGS_PRIVATELIBS="-Wl,-rpath,$PRIVATELIBDIR"
7167 LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
7168 export LDFLAGS
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 # Check whether --with-fd-setsize was given.
7185 if test "${with_fd_setsize+set}" = set; then :
7186 withval=$with_fd_setsize; ac_fd=$withval
7187 else
7188 ac_fd=1024
7189 fi
7190
7191
7192 cat >>confdefs.h <<_ACEOF
7193 #define MAXCONNECTIONS $ac_fd
7194 _ACEOF
7195
7196
7197 # Check whether --enable-prefixaq was given.
7198 if test "${enable_prefixaq+set}" = set; then :
7199 enableval=$enable_prefixaq;
7200 else
7201 enable_prefixaq=yes
7202 fi
7203
7204 if test $enable_prefixaq = "yes"; then :
7205
7206 $as_echo "#define PREFIX_AQ /**/" >>confdefs.h
7207
7208 fi
7209
7210
7211 # Check whether --with-showlistmodes was given.
7212 if test "${with_showlistmodes+set}" = set; then :
7213 withval=$with_showlistmodes; if test $withval = "yes"; then :
7214
7215 $as_echo "#define LIST_SHOW_MODES /**/" >>confdefs.h
7216
7217 fi
7218 fi
7219
7220
7221 # Check whether --with-topicisnuhost was given.
7222 if test "${with_topicisnuhost+set}" = set; then :
7223 withval=$with_topicisnuhost; if test $withval = "yes"; then :
7224
7225 $as_echo "#define TOPIC_NICK_IS_NUHOST /**/" >>confdefs.h
7226
7227 fi
7228 fi
7229
7230
7231 # Check whether --with-shunnotices was given.
7232 if test "${with_shunnotices+set}" = set; then :
7233 withval=$with_shunnotices; if test $withval = "yes"; then :
7234
7235 $as_echo "#define SHUN_NOTICES /**/" >>confdefs.h
7236
7237 fi
7238 fi
7239
7240
7241 # Check whether --with-no-operoverride was given.
7242 if test "${with_no_operoverride+set}" = set; then :
7243 withval=$with_no_operoverride; if test $withval = "yes"; then :
7244
7245 $as_echo "#define NO_OPEROVERRIDE /**/" >>confdefs.h
7246
7247 fi
7248 fi
7249
7250
7251 # Check whether --with-disableusermod was given.
7252 if test "${with_disableusermod+set}" = set; then :
7253 withval=$with_disableusermod; if test $withval = "yes"; then :
7254
7255 $as_echo "#define DISABLE_USERMOD /**/" >>confdefs.h
7256
7257 fi
7258 fi
7259
7260
7261 # Check whether --with-operoverride-verify was given.
7262 if test "${with_operoverride_verify+set}" = set; then :
7263 withval=$with_operoverride_verify; if test $withval = "yes"; then :
7264
7265 $as_echo "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
7266
7267 fi
7268 fi
7269
7270
7271 # Check whether --with-disable-extendedban-stacking was given.
7272 if test "${with_disable_extendedban_stacking+set}" = set; then :
7273 withval=$with_disable_extendedban_stacking; if test $withval = "yes"; then :
7274
7275 $as_echo "#define DISABLE_STACKED_EXTBANS /**/" >>confdefs.h
7276
7277 fi
7278 fi
7279
7280
7281 # Check whether --with-system-tre was given.
7282 if test "${with_system_tre+set}" = set; then :
7283 withval=$with_system_tre;
7284 else
7285 with_system_tre=no
7286 fi
7287
7288
7289 # Check whether --with-system-pcre2 was given.
7290 if test "${with_system_pcre2+set}" = set; then :
7291 withval=$with_system_pcre2;
7292 else
7293 with_system_pcre2=no
7294 fi
7295
7296
7297 # Check whether --with-system-cares was given.
7298 if test "${with_system_cares+set}" = set; then :
7299 withval=$with_system_cares;
7300 else
7301 with_system_cares=yes
7302 fi
7303
7304
7305 # Check whether --enable-ssl was given.
7306 if test "${enable_ssl+set}" = set; then :
7307 enableval=$enable_ssl;
7308 else
7309 enable_ssl=no
7310 fi
7311
7312 if test $enable_ssl != "no"; then :
7313
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
7315 $as_echo_n "checking for openssl... " >&6; }
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
7317 ssldir="$dir"
7318 if test -f "$dir/include/openssl/ssl.h"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
7320 $as_echo "found in $ssldir/include/openssl" >&6; }
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
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
7329 $as_echo "found in $ssldir/include" >&6; }
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
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7339 $as_echo "not found" >&6; }
7340 echo ""
7341 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
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"
7345 exit 1
7346 else
7347 CRYPTOLIB="-lssl -lcrypto";
7348 if test ! "$ssldir" = "/usr" ; then
7349 LDFLAGS="$LDFLAGS -L$ssldir/lib";
7350 fi
7351 fi
7352
7353 fi
7354
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; }
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364 SAVE_LIBS="$LIBS"
7365 LIBS="$LIBS $CRYPTOLIB"
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <openssl/ssl.h>
7369 int
7370 main ()
7371 {
7372 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 has_curves=1
7379 else
7380 has_curves=0
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 LIBS="$SAVE_LIBS"
7385 ac_ext=c
7386 ac_cpp='$CPP $CPPFLAGS'
7387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390
7391 if 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
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402 # Check whether --enable-dynamic-linking was given.
7403 if test "${enable_dynamic_linking+set}" = set; then :
7404 enableval=$enable_dynamic_linking; enable_dynamic_linking=$enableval
7405 else
7406 enable_dynamic_linking="yes"
7407 fi
7408
7409 if test $enable_dynamic_linking = "yes"; then :
7410
7411 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
7412 if test "x$ac_cv_func_dlopen" = xyes; then :
7413
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7417 if ${ac_cv_lib_dl_dlopen+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 ac_check_lib_save_LIBS=$LIBS
7421 LIBS="-ldl $LIBS"
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424
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. */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 char dlopen ();
7432 int
7433 main ()
7434 {
7435 return dlopen ();
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_c_try_link "$LINENO"; then :
7441 ac_cv_lib_dl_dlopen=yes
7442 else
7443 ac_cv_lib_dl_dlopen=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7451 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7452 IRCDLIBS="$IRCDLIBS -ldl"
7453 else
7454
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
7458
7459
7460 fi
7461
7462 fi
7463
7464
7465 hold_cflags=$CFLAGS
7466 DYNAMIC_LDFLAGS=""
7467 CFLAGS="$CFLAGS -Wl,-export-dynamic"
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; }
7470 if ${ac_cv_export_dynamic+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476
7477 int
7478 main ()
7479 {
7480 int i;
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 ac_cv_export_dynamic=yes
7487 else
7488 ac_cv_export_dynamic=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
7494 $as_echo "$ac_cv_export_dynamic" >&6; }
7495 CFLAGS=$hold_cflags
7496 if test "$ac_cv_export_dynamic" = "yes"; then
7497 DYNAMIC_LDFLAGS="-Wl,-export-dynamic"
7498 fi
7499
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; }
7502 if ${ac_cv_pic+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505
7506 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7507 ac_cv_pic="-fPIC -DPIC -shared"
7508 case `uname -s` in
7509 Darwin*)
7510 ac_cv_pic="-std=gnu89 -bundle -flat_namespace -undefined suppress"
7511 ;;
7512 HP-UX*)
7513 ac_cv_pic="-fPIC"
7514 ;;
7515 esac
7516 else
7517 case `uname -s` in
7518 SunOS*)
7519 ac_cv_pic="-KPIC -DPIC -G"
7520 ;;
7521 esac
7522 fi
7523
7524 fi
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; }
7529 if ${ac_cv_underscore+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532
7533 cat >uscore.c << __EOF__
7534 int main() {
7535 return 0;
7536 }
7537 __EOF__
7538 $CC -o uscore $CFLAGS uscore.c 1>&5
7539 if test -z "`strings -a uscore |grep '^_main$'`"; then
7540 ac_cv_underscore=no
7541 else
7542 ac_cv_underscore=yes
7543 fi
7544 rm -f uscore uscore.c
7545
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
7548 $as_echo "$ac_cv_underscore" >&6; }
7549 if test "$ac_cv_underscore" = "yes"; then
7550
7551 $as_echo "#define UNDERSCORE /**/" >>confdefs.h
7552
7553 fi
7554
7555 MODULEFLAGS="$ac_cv_pic $DYNAMIC_LDFLAGS"
7556
7557 else
7558
7559 $as_echo "#define STATIC_LINKING /**/" >>confdefs.h
7560
7561 fi
7562
7563 # Check whether --enable-werror was given.
7564 if test "${enable_werror+set}" = set; then :
7565 enableval=$enable_werror; ac_cv_werror="$enableval"
7566 else
7567 ac_cv_werror="no"
7568 fi
7569
7570
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; }
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575
7576 #include <sys/types.h>
7577 #include <sys/time.h>
7578 int main() {
7579 #if FD_SETSIZE < $ac_fd
7580 #error FD_SETSIZE is smaller than $ac_fd
7581 #endif
7582 exit(0);
7583 }
7584
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588 $as_echo "yes" >&6; }
7589 else
7590
7591 # must be passed on the commandline to avoid a ``warning, you redefined something''
7592 FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598
7599
7600 case `uname -s` in
7601 *SunOS*|*solaris*)
7602
7603 $as_echo "#define _SOLARIS /**/" >>confdefs.h
7604
7605 IRCDLIBS="$IRCDLIBS -lresolv "
7606 ;;
7607 esac
7608
7609 for ac_func in poll
7610 do :
7611 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7612 if 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
7619 fi
7620 done
7621
7622 for ac_func in epoll_create epoll_ctl epoll_wait
7623 do :
7624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7626 if 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
7633 fi
7634 done
7635
7636 for ac_func in kqueue kevent
7637 do :
7638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7640 if 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
7644
7645 $as_echo "#define HAVE_KQUEUE /**/" >>confdefs.h
7646
7647 fi
7648 done
7649
7650
7651 export PATH_SEPARATOR
7652
7653
7654
7655
7656
7657
7658
7659
7660 if 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.
7663 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
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
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689 ;;
7690 esac
7691 fi
7692 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7693 if test -n "$PKG_CONFIG"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7695 $as_echo "$PKG_CONFIG" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if 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.
7706 set dummy pkg-config; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
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
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 ;;
7733 esac
7734 fi
7735 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7736 if test -n "$ac_pt_PKG_CONFIG"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7738 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744 if test "x$ac_pt_PKG_CONFIG" = x; then
7745 PKG_CONFIG=""
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748 yes:)
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;}
7751 ac_tool_warned=yes ;;
7752 esac
7753 PKG_CONFIG=$ac_pt_PKG_CONFIG
7754 fi
7755 else
7756 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7757 fi
7758
7759 fi
7760 if test -n "$PKG_CONFIG"; then
7761 _pkg_min_version=0.9.0
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; }
7764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7766 $as_echo "yes" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 PKG_CONFIG=""
7771 fi
7772 fi
7773 if test "x$with_system_tre" = "xno"; then :
7774
7775 tre_version="0.8.0-git"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting TRE regex library" >&5
7777 $as_echo "extracting TRE regex library" >&6; }
7778 cur_dir=`pwd`
7779 cd extras
7780 rm -rf tre-$tre_version regexp
7781 if test "x$ac_cv_path_GUNZIP" = "x" ; then
7782 tar xfz tre.tar.gz
7783 else
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
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring TRE regex library" >&5
7790 $as_echo "configuring TRE regex library" >&6; }
7791 cd tre-$tre_version
7792 ./configure --disable-agrep --enable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras/regexp --libdir=$PRIVATELIBDIR || exit 1
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling TRE regex library" >&5
7794 $as_echo "compiling TRE regex library" >&6; }
7795 $ac_cv_prog_MAKER || exit 1
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing TRE regex library" >&5
7797 $as_echo "installing TRE regex library" >&6; }
7798 $ac_cv_prog_MAKER install || exit 1
7799 TRE_CFLAGS="-I$cur_dir/extras/regexp/include"
7800
7801
7802 TRE_LIBS=
7803 if test -n "$ac_cv_path_PKGCONFIG"; then :
7804 TRE_LIBS="`$ac_cv_path_PKGCONFIG --libs tre.pc`"
7805 fi
7806 if test -z "$TRE_LIBS"; then :
7807 TRE_LIBS="$PRIVATELIBDIR/libtre.so"
7808 fi
7809
7810 cd $cur_dir
7811
7812 else
7813
7814
7815 pkg_failed=no
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRE" >&5
7817 $as_echo_n "checking for TRE... " >&6; }
7818
7819 if 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" && \
7823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
7824 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 pkg_cv_TRE_CFLAGS=`$PKG_CONFIG --cflags "tre >= 0.7.5" 2>/dev/null`
7829 test "x$?" != "x0" && pkg_failed=yes
7830 else
7831 pkg_failed=yes
7832 fi
7833 else
7834 pkg_failed=untried
7835 fi
7836 if 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" && \
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
7841 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 pkg_cv_TRE_LIBS=`$PKG_CONFIG --libs "tre >= 0.7.5" 2>/dev/null`
7846 test "x$?" != "x0" && pkg_failed=yes
7847 else
7848 pkg_failed=yes
7849 fi
7850 else
7851 pkg_failed=untried
7852 fi
7853
7854
7855
7856 if test $pkg_failed = yes; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859
7860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7861 _pkg_short_errors_supported=yes
7862 else
7863 _pkg_short_errors_supported=no
7864 fi
7865 if test $_pkg_short_errors_supported = yes; then
7866 TRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
7867 else
7868 TRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
7869 fi
7870 # Put the nasty error message in config.log where it belongs
7871 echo "$TRE_PKG_ERRORS" >&5
7872
7873 as_fn_error $? "Package requirements (tre >= 0.7.5) were not met:
7874
7875 $TRE_PKG_ERRORS
7876
7877 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7878 installed software in a non-standard prefix.
7879
7880 Alternatively, you may set the environment variables TRE_CFLAGS
7881 and TRE_LIBS to avoid the need to call pkg-config.
7882 See the pkg-config man page for more details." "$LINENO" 5
7883 elif test $pkg_failed = untried; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7888 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7889 is in your PATH or set the PKG_CONFIG environment variable to the full
7890 path to pkg-config.
7891
7892 Alternatively, you may set the environment variables TRE_CFLAGS
7893 and TRE_LIBS to avoid the need to call pkg-config.
7894 See the pkg-config man page for more details.
7895
7896 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7897 See \`config.log' for more details" "$LINENO" 5; }
7898 else
7899 TRE_CFLAGS=$pkg_cv_TRE_CFLAGS
7900 TRE_LIBS=$pkg_cv_TRE_LIBS
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903
7904 fi
7905
7906 fi
7907
7908 if test "x$with_system_pcre2" = "xno"; then :
7909
7910 pcre2_version="10.30"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
7912 $as_echo "extracting PCRE2 regex library" >&6; }
7913 cur_dir=`pwd`
7914 cd extras
7915 rm -rf pcre2-$pcre2_version pcre2
7916 if test "x$ac_cv_path_GUNZIP" = "x" ; then
7917 tar xfz pcre2.tar.gz
7918 else
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
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
7925 $as_echo "configuring PCRE2 regex library" >&6; }
7926 cd pcre2-$pcre2_version
7927 ./configure --enable-jit --enable-shared --disable-unicode --prefix=$cur_dir/extras/pcre2 --libdir=$PRIVATELIBDIR || exit 1
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
7934 PCRE2_CFLAGS="-I$cur_dir/extras/pcre2/include"
7935
7936
7937 PCRE2_LIBS=
7938 if test -n "$ac_cv_path_PKGCONFIG"; then :
7939 PCRE2_LIBS="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
7940 fi
7941 if test -z "$PCRE2_LIBS"; then :
7942 PCRE2_LIBS="$PRIVATELIBDIR/libpcre2-8.so"
7943 fi
7944
7945 cd $cur_dir
7946
7947 else
7948
7949
7950 pkg_failed=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
7952 $as_echo_n "checking for PCRE2... " >&6; }
7953
7954 if 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
7965 else
7966 pkg_failed=yes
7967 fi
7968 else
7969 pkg_failed=untried
7970 fi
7971 if 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
7982 else
7983 pkg_failed=yes
7984 fi
7985 else
7986 pkg_failed=untried
7987 fi
7988
7989
7990
7991 if test $pkg_failed = yes; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994
7995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7996 _pkg_short_errors_supported=yes
7997 else
7998 _pkg_short_errors_supported=no
7999 fi
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
8012 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8013 installed software in a non-standard prefix.
8014
8015 Alternatively, you may set the environment variables PCRE2_CFLAGS
8016 and PCRE2_LIBS to avoid the need to call pkg-config.
8017 See the pkg-config man page for more details." "$LINENO" 5
8018 elif 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;}
8023 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8024 is in your PATH or set the PKG_CONFIG environment variable to the full
8025 path to pkg-config.
8026
8027 Alternatively, you may set the environment variables PCRE2_CFLAGS
8028 and PCRE2_LIBS to avoid the need to call pkg-config.
8029 See the pkg-config man page for more details.
8030
8031 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8032 See \`config.log' for more details" "$LINENO" 5; }
8033 else
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
8039 fi
8040
8041 fi
8042
8043 has_system_cares="no"
8044 if test "x$with_system_cares" = "xyes"; then :
8045
8046
8047 pkg_failed=no
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
8049 $as_echo_n "checking for CARES... " >&6; }
8050
8051 if 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" && \
8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8056 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8057 ac_status=$?
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
8060 pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
8061 test "x$?" != "x0" && pkg_failed=yes
8062 else
8063 pkg_failed=yes
8064 fi
8065 else
8066 pkg_failed=untried
8067 fi
8068 if 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" && \
8072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8073 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
8078 test "x$?" != "x0" && pkg_failed=yes
8079 else
8080 pkg_failed=yes
8081 fi
8082 else
8083 pkg_failed=untried
8084 fi
8085
8086
8087
8088 if test $pkg_failed = yes; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091
8092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8093 _pkg_short_errors_supported=yes
8094 else
8095 _pkg_short_errors_supported=no
8096 fi
8097 if test $_pkg_short_errors_supported = yes; then
8098 CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8099 else
8100 CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8101 fi
8102 # Put the nasty error message in config.log where it belongs
8103 echo "$CARES_PKG_ERRORS" >&5
8104
8105 has_system_cares=no
8106 elif test $pkg_failed = untried; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 has_system_cares=no
8110 else
8111 CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
8112 CARES_LIBS=$pkg_cv_CARES_LIBS
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114 $as_echo "yes" >&6; }
8115 has_system_cares=yes
8116 if test "x$PRIVATELIBDIR" != "x"; then :
8117 rm -f "$PRIVATELIBDIR/"libcares*
8118 fi
8119 fi
8120 fi
8121
8122 if test "$has_system_cares" = "no"; then :
8123
8124 cares_version="1.13.0"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
8126 $as_echo "extracting c-ares resolver library" >&6; }
8127 cur_dir=`pwd`
8128 cd extras
8129 rm -rf c-ares-$cares_version c-ares
8130 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8131 tar xfz c-ares.tar.gz
8132 else
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
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
8139 $as_echo "configuring c-ares library" >&6; }
8140 cd c-ares-$cares_version
8141 save_cflags="$CFLAGS"
8142 CFLAGS="$orig_cflags"
8143 export CFLAGS
8144 ./configure --prefix=$cur_dir/extras/c-ares --libdir=$PRIVATELIBDIR --enable-shared || exit 1
8145 CFLAGS="$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
8152 CARES_CFLAGS="-I$cur_dir/extras/c-ares/include"
8153
8154 CARES_LIBS="-L$PRIVATELIBDIR"
8155
8156 cd ../..
8157 CARESLIBSALT="$PRIVATELIBDIR/libcares.so"
8158 cd -
8159 case `uname -s` in
8160 *FreeBSD*)
8161 CARESLIBSALT="$CARESLIBSALT"
8162 ;;
8163 *Linux*)
8164 CARESLIBSALT="$CARESLIBSALT -lrt"
8165 ;;
8166 *SunOS*)
8167 CARESLIBSALT="$CARESLIBSALT -lrt"
8168 ;;
8169 esac
8170
8171 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
8172 CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
8173 else
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
8179 fi
8180
8181 cd $cur_dir
8182
8183 fi
8184
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; }
8191 if ${ac_cv_build+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 ac_build_alias=$build_alias
8195 test "x$ac_build_alias" = x &&
8196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8197 test "x$ac_build_alias" = x &&
8198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8199 ac_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
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8204 $as_echo "$ac_cv_build" >&6; }
8205 case $ac_cv_build in
8206 *-*-*) ;;
8207 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8208 esac
8209 build=$ac_cv_build
8210 ac_save_IFS=$IFS; IFS='-'
8211 set x $ac_cv_build
8212 shift
8213 build_cpu=$1
8214 build_vendor=$2
8215 shift; shift
8216 # Remember, the first character of IFS is used to create $*,
8217 # except with old shells:
8218 build_os=$*
8219 IFS=$ac_save_IFS
8220 case $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; }
8225 if ${ac_cv_host+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 if test "x$host_alias" = x; then
8229 ac_cv_host=$ac_cv_build
8230 else
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
8233 fi
8234
8235 fi
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8237 $as_echo "$ac_cv_host" >&6; }
8238 case $ac_cv_host in
8239 *-*-*) ;;
8240 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8241 esac
8242 host=$ac_cv_host
8243 ac_save_IFS=$IFS; IFS='-'
8244 set x $ac_cv_host
8245 shift
8246 host_cpu=$1
8247 host_vendor=$2
8248 shift; shift
8249 # Remember, the first character of IFS is used to create $*,
8250 # except with old shells:
8251 host_os=$*
8252 IFS=$ac_save_IFS
8253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8254
8255
8256
8257
8258 ac_ext=c
8259 ac_cpp='$CPP $CPPFLAGS'
8260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264 ax_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:
8273 if 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
8287 extern "C"
8288 #endif
8289 char pthread_join ();
8290 int
8291 main ()
8292 {
8293 return pthread_join ();
8294 ;
8295 return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 ax_pthread_ok=yes
8300 fi
8301 rm -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"
8311 fi
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
8323 ax_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
8345 case ${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 ;;
8362 esac
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; }
8370 save_CFLAGS="$CFLAGS"
8371 ax_pthread_extra_flags="-Werror"
8372 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 int foo(void);
8376 int
8377 main ()
8378 {
8379 foo()
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8387 else
8388 ax_pthread_extra_flags=
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 CFLAGS="$save_CFLAGS"
8394
8395 if test x"$ax_pthread_ok" = xno; then
8396 for 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.
8412 set 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; }
8415 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 if test -n "$ax_pthread_config"; then
8419 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
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
8432 done
8433 done
8434 IFS=$as_save_IFS
8435
8436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8437 fi
8438 fi
8439 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8440 if 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; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
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; }
8480 int
8481 main ()
8482 {
8483 pthread_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
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 ax_pthread_ok=yes
8495 fi
8496 rm -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=""
8510 done
8511 fi
8512
8513 # Various other checks:
8514 if 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>
8528 int
8529 main ()
8530 {
8531 int attr = $attr; return attr /* ; */
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 attr_name=$attr; break
8538 fi
8539 rm -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
8546 cat >>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; }
8575 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <pthread.h>
8582 int
8583 main ()
8584 {
8585 int i = PTHREAD_PRIO_INHERIT;
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 ax_cv_PTHREAD_PRIO_INHERIT=yes
8592 else
8593 ax_cv_PTHREAD_PRIO_INHERIT=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597
8598 fi
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
8605 fi
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"
8621 fi ;; #(
8622 *) :
8623 for ac_prog in ${CC}_r
8624 do
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626 set 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; }
8629 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 if test -n "$PTHREAD_CC"; then
8633 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
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
8646 done
8647 done
8648 IFS=$as_save_IFS
8649
8650 fi
8651 fi
8652 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8653 if test -n "$PTHREAD_CC"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8655 $as_echo "$PTHREAD_CC" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 fi
8660
8661
8662 test -n "$PTHREAD_CC" && break
8663 done
8664 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8665 ;;
8666 esac ;; #(
8667 *) :
8668 ;;
8669 esac
8670 ;;
8671 esac
8672 fi
8673 fi
8674
8675 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8676
8677
8678
8679
8680
8681 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8682 if test x"$ax_pthread_ok" = xyes; then
8683
8684 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8685
8686 :
8687 else
8688 ax_pthread_ok=no
8689
8690 fi
8691 ac_ext=c
8692 ac_cpp='$CPP $CPPFLAGS'
8693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697
8698
8699
8700 # Check whether --enable-libcurl was given.
8701 if test "${enable_libcurl+set}" = set; then :
8702 enableval=$enable_libcurl; enable_curl=$enableval
8703 else
8704 enable_curl=no
8705 fi
8706
8707
8708 if test "x$enable_curl" != "xno"; then :
8709
8710 CURLCONFIG="curl-config"
8711 if test "x$enable_curl" != "xyes"; then :
8712 CURLCONFIG="$enable_curl/bin/curl-config"
8713 fi
8714
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; }
8720 else
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;}
8725 as_fn_error $? "Could not find curl-config, try editing --enable-libcurl
8726 See \`config.log' for more details" "$LINENO" 5; }
8727 fi
8728
8729 CURLCFLAG="`$CURLCONFIG --cflags`"
8730 CURLLIBS="`$CURLCONFIG --libs`"
8731
8732 if $CURLCONFIG --libs | grep -q -e ares; then :
8733 CURLUSESCARES="1"
8734 else
8735 CURLUSESCARES="0"
8736 fi
8737
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;}
8741 fi
8742
8743
8744 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0" ; then :
8745
8746 as_fn_error $? "
8747
8748 You have decided to build unrealIRCd with libcURL (remote includes) support.
8749 However, you have system-installed c-ares support has either been disabled
8750 (--without-system-cares) or is unavailable.
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
8760 " "$LINENO" 5
8761
8762 fi
8763
8764 IRCDLIBS="$IRCDLIBS $CURLLIBS"
8765 CFLAGS="$CFLAGS $CURLCFLAG"
8766
8767 $as_echo "#define USE_LIBCURL /**/" >>confdefs.h
8768
8769
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; }
8772 LIBS_SAVEDA="$LIBS"
8773 CFLAGS_SAVEDA="$CFLAGS"
8774
8775 LIBS="$IRCDLIBS $IRCDLIBS_CURL_CARES"
8776 CFLAGS="$CFLAGS $CFLAGS_CURL_CARES"
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779
8780 #include <curl/curl.h>
8781 int
8782 main ()
8783 {
8784 CURL *curl = curl_easy_init();
8785 ;
8786 return 0;
8787 }
8788
8789 _ACEOF
8790 if ac_fn_c_try_link "$LINENO"; then :
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8792 $as_echo "yes" >&6; }
8793 else
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;}
8798 as_fn_error $? "You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
8799 See \`config.log' for more details" "$LINENO" 5; }
8800
8801 fi
8802 rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804 LIBS="$LIBS_SAVEDA"
8805 CFLAGS="$CFLAGS_SAVEDA"
8806
8807 URL="url.o"
8808
8809
8810 fi
8811
8812 UNRLINCDIR="`pwd`/include"
8813
8814 if test "$ac_cv_werror" = "yes" ; then
8815 CFLAGS="$CFLAGS -Werror"
8816 fi
8817
8818
8819
8820 ac_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"
8821
8822 cat >confcache <<\_ACEOF
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
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.
8828 #
8829 # config.status only pays attention to the cache file if you give it
8830 # the --recheck option to rerun configure.
8831 #
8832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8834 # following values.
8835
8836 _ACEOF
8837
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.
8840 # So, we kill variables containing newlines.
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.
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 #(
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;} ;;
8851 esac
8852 case $ac_var in #(
8853 _ | IFS | as_nl) ;; #(
8854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8855 *) { eval $ac_var=; unset $ac_var;} ;;
8856 esac ;;
8857 esac
8858 done
8859
8860 (set) 2>&1 |
8861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8862 *${as_nl}ac_space=\ *)
8863 # `set' does not quote correctly, so add quotes: double-quote
8864 # substitution turns \\\\ into \\, and sed turns \\ into \.
8865 sed -n \
8866 "s/'/'\\\\''/g;
8867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8868 ;; #(
8869 *)
8870 # `set' quotes correctly as required by POSIX, so do not add quotes.
8871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8872 ;;
8873 esac |
8874 sort
8875 ) |
8876 sed '
8877 /^ac_cv_env_/b end
8878 t clear
8879 :clear
8880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8881 t end
8882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8883 :end' >>confcache
8884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8885 if test -w "$cache_file"; then
8886 if test "x$cache_file" != "x/dev/null"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8888 $as_echo "$as_me: updating cache $cache_file" >&6;}
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
8901 else
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;}
8904 fi
8905 fi
8906 rm -f confcache
8907
8908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8909 # Let make expand exec_prefix.
8910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8911
8912 DEFS=-DHAVE_CONFIG_H
8913
8914 ac_libobjs=
8915 ac_ltlibobjs=
8916 U=
8917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8918 # 1. Remove the extension, and $U if already installed.
8919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8922 # will be set to the directory where LIBOBJS objects are built.
8923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8925 done
8926 LIBOBJS=$ac_libobjs
8927
8928 LTLIBOBJS=$ac_ltlibobjs
8929
8930
8931
8932 : "${CONFIG_STATUS=./config.status}"
8933 ac_write_fail=0
8934 ac_clean_files_save=$ac_clean_files
8935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8937 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8938 as_write_fail=0
8939 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8940 #! $SHELL
8941 # Generated by $as_me.
8942 # Run this file to recreate the current configuration.
8943 # Compiler output produced by configure, useful for debugging
8944 # configure, is in config.log if it exists.
8945
8946 debug=false
8947 ac_cs_recheck=false
8948 ac_cs_silent=false
8949
8950 SHELL=\${CONFIG_SHELL-$SHELL}
8951 export SHELL
8952 _ASEOF
8953 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8954 ## -------------------- ##
8955 ## M4sh Initialization. ##
8956 ## -------------------- ##
8957
8958 # Be more Bourne compatible
8959 DUALCASE=1; export DUALCASE # for MKS sh
8960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8961 emulate sh
8962 NULLCMD=:
8963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8964 # is contrary to our usage. Disable this feature.
8965 alias -g '${1+"$@"}'='"$@"'
8966 setopt NO_GLOB_SUBST
8967 else
8968 case `(set -o) 2>/dev/null` in #(
8969 *posix*) :
8970 set -o posix ;; #(
8971 *) :
8972 ;;
8973 esac
8974 fi
8975
8976
8977 as_nl='
8978 '
8979 export as_nl
8980 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8981 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8983 as_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.
8986 if 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 --'
8990 elif (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'
8993 else
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'
8997 else
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'
9010 fi
9011 export as_echo_body
9012 as_echo='sh -c $as_echo_body as_echo'
9013 fi
9014
9015 # The user is always right.
9016 if 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 }
9022 fi
9023
9024
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.)
9030 IFS=" "" $as_nl"
9031
9032 # Find who we are. Look in the path if we contain no directory separator.
9033 as_myself=
9034 case $0 in #((
9035 *[\\/]* ) as_myself=$0 ;;
9036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9038 do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9042 done
9043 IFS=$as_save_IFS
9044
9045 ;;
9046 esac
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.
9049 if test "x$as_myself" = x; then
9050 as_myself=$0
9051 fi
9052 if test ! -f "$as_myself"; then
9053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9054 exit 1
9055 fi
9056
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.
9061 for as_var in BASH_ENV ENV MAIL MAILPATH
9062 do eval test x\${$as_var+set} = xset \
9063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9064 done
9065 PS1='$ '
9066 PS2='> '
9067 PS4='+ '
9068
9069 # NLS nuisances.
9070 LC_ALL=C
9071 export LC_ALL
9072 LANGUAGE=C
9073 export LANGUAGE
9074
9075 # CDPATH.
9076 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9077
9078
9079 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9080 # ----------------------------------------
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
9083 # script with STATUS, using 1 if that was 0.
9084 as_fn_error ()
9085 {
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
9090 fi
9091 $as_echo "$as_me: error: $2" >&2
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.
9099 as_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.
9107 as_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.
9117 as_fn_unset ()
9118 {
9119 { eval $1=; unset $1;}
9120 }
9121 as_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.
9128 if (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 }'
9133 else
9134 as_fn_append ()
9135 {
9136 eval $1=\$$1\$2
9137 }
9138 fi # 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.
9145 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9146 eval 'as_fn_arith ()
9147 {
9148 as_val=$(( $* ))
9149 }'
9150 else
9151 as_fn_arith ()
9152 {
9153 as_val=`expr "$@" || test $? -eq 1`
9154 }
9155 fi # as_fn_arith
9156
9157
9158 if expr a : '\(a\)' >/dev/null 2>&1 &&
9159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9160 as_expr=expr
9161 else
9162 as_expr=false
9163 fi
9164
9165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9166 as_basename=basename
9167 else
9168 as_basename=false
9169 fi
9170
9171 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9172 as_dirname=dirname
9173 else
9174 as_dirname=false
9175 fi
9176
9177 as_me=`$as_basename -- "$0" ||
9178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9179 X"$0" : 'X\(//\)$' \| \
9180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9181 $as_echo X/"$0" |
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'`
9195
9196 # Avoid depending upon Character Ranges.
9197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9200 as_cr_digits='0123456789'
9201 as_cr_alnum=$as_cr_Letters$as_cr_digits
9202
9203 ECHO_C= ECHO_N= ECHO_T=
9204 case `echo -n x` in #(((((
9205 -n*)
9206 case `echo 'xy\c'` in
9207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9208 xy) ECHO_C='\c';;
9209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9210 ECHO_T=' ';;
9211 esac;;
9212 *)
9213 ECHO_N='-n';;
9214 esac
9215
9216 rm -f conf$$ conf$$.exe conf$$.file
9217 if test -d conf$$.dir; then
9218 rm -f conf$$.dir/conf$$.file
9219 else
9220 rm -f conf$$.dir
9221 mkdir conf$$.dir 2>/dev/null
9222 fi
9223 if (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.
9229 # In both cases, we have to default to `cp -pR'.
9230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9231 as_ln_s='cp -pR'
9232 elif ln conf$$.file conf$$ 2>/dev/null; then
9233 as_ln_s=ln
9234 else
9235 as_ln_s='cp -pR'
9236 fi
9237 else
9238 as_ln_s='cp -pR'
9239 fi
9240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9241 rmdir conf$$.dir 2>/dev/null
9242
9243
9244 # as_fn_mkdir_p
9245 # -------------
9246 # Create "$as_dir" as a directory, including parents if necessary.
9247 as_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"
9287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9288
9289
9290 } # as_fn_mkdir_p
9291 if mkdir -p . 2>/dev/null; then
9292 as_mkdir_p='mkdir -p "$as_dir"'
9293 else
9294 test -d ./-p && rmdir ./-p
9295 as_mkdir_p=false
9296 fi
9297
9298
9299 # as_fn_executable_p FILE
9300 # -----------------------
9301 # Test if FILE is an executable regular file.
9302 as_fn_executable_p ()
9303 {
9304 test -f "$1" && test -x "$1"
9305 } # as_fn_executable_p
9306 as_test_x='test -x'
9307 as_executable_p=as_fn_executable_p
9308
9309 # Sed expression to map a string onto a valid CPP name.
9310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9311
9312 # Sed expression to map a string onto a valid variable name.
9313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9314
9315
9316 exec 6>&1
9317 ## ----------------------------------- ##
9318 ## Main body of $CONFIG_STATUS script. ##
9319 ## ----------------------------------- ##
9320 _ASEOF
9321 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9322
9323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9324 # Save the log message, to keep $0 and so on meaningful, and to
9325 # report actual input values of CONFIG_FILES etc. instead of their
9326 # values after options handling.
9327 ac_log="
9328 This file was extended by unrealircd $as_me 4.0.19-rc2, which was
9329 generated by GNU Autoconf 2.69. Invocation command line was
9330
9331 CONFIG_FILES = $CONFIG_FILES
9332 CONFIG_HEADERS = $CONFIG_HEADERS
9333 CONFIG_LINKS = $CONFIG_LINKS
9334 CONFIG_COMMANDS = $CONFIG_COMMANDS
9335 $ $0 $@
9336
9337 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9338 "
9339
9340 _ACEOF
9341
9342 case $ac_config_files in *"
9343 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9344 esac
9345
9346 case $ac_config_headers in *"
9347 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9348 esac
9349
9350
9351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9352 # Files that config.status was made for.
9353 config_files="$ac_config_files"
9354 config_headers="$ac_config_headers"
9355
9356 _ACEOF
9357
9358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9359 ac_cs_usage="\
9360 \`$as_me' instantiates files and other configuration actions
9361 from templates according to the current configuration. Unless the files
9362 and actions are specified as TAGs, all are instantiated by default.
9363
9364 Usage: $0 [OPTION]... [TAG]...
9365
9366 -h, --help print this help, then exit
9367 -V, --version print version number and configuration settings, then exit
9368 --config print configuration, then exit
9369 -q, --quiet, --silent
9370 do not print progress messages
9371 -d, --debug don't remove temporary files
9372 --recheck update $as_me by reconfiguring in the same conditions
9373 --file=FILE[:TEMPLATE]
9374 instantiate the configuration file FILE
9375 --header=FILE[:TEMPLATE]
9376 instantiate the configuration header FILE
9377
9378 Configuration files:
9379 $config_files
9380
9381 Configuration headers:
9382 $config_headers
9383
9384 Report bugs to <http://bugs.unrealircd.org/>.
9385 unrealircd home page: <http://unrealircd.org/>."
9386
9387 _ACEOF
9388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9390 ac_cs_version="\\
9391 unrealircd config.status 4.0.19-rc2
9392 configured by $0, generated by GNU Autoconf 2.69,
9393 with options \\"\$ac_cs_config\\"
9394
9395 Copyright (C) 2012 Free Software Foundation, Inc.
9396 This config.status script is free software; the Free Software Foundation
9397 gives unlimited permission to copy, distribute and modify it."
9398
9399 ac_pwd='$ac_pwd'
9400 srcdir='$srcdir'
9401 test -n "\$AWK" || AWK=awk
9402 _ACEOF
9403
9404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9405 # The default lists apply if the user does not specify any file.
9406 ac_need_defaults=:
9407 while test $# != 0
9408 do
9409 case $1 in
9410 --*=?*)
9411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9413 ac_shift=:
9414 ;;
9415 --*=)
9416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9417 ac_optarg=
9418 ac_shift=:
9419 ;;
9420 *)
9421 ac_option=$1
9422 ac_optarg=$2
9423 ac_shift=shift
9424 ;;
9425 esac
9426
9427 case $ac_option in
9428 # Handling of the options.
9429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9430 ac_cs_recheck=: ;;
9431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9432 $as_echo "$ac_cs_version"; exit ;;
9433 --config | --confi | --conf | --con | --co | --c )
9434 $as_echo "$ac_cs_config"; exit ;;
9435 --debug | --debu | --deb | --de | --d | -d )
9436 debug=: ;;
9437 --file | --fil | --fi | --f )
9438 $ac_shift
9439 case $ac_optarg in
9440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9441 '') as_fn_error $? "missing file argument" ;;
9442 esac
9443 as_fn_append CONFIG_FILES " '$ac_optarg'"
9444 ac_need_defaults=false;;
9445 --header | --heade | --head | --hea )
9446 $ac_shift
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'"
9451 ac_need_defaults=false;;
9452 --he | --h)
9453 # Conflict between --help and --header
9454 as_fn_error $? "ambiguous option: \`$1'
9455 Try \`$0 --help' for more information.";;
9456 --help | --hel | -h )
9457 $as_echo "$ac_cs_usage"; exit ;;
9458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9460 ac_cs_silent=: ;;
9461
9462 # This is an error.
9463 -*) as_fn_error $? "unrecognized option: \`$1'
9464 Try \`$0 --help' for more information." ;;
9465
9466 *) as_fn_append ac_config_targets " $1"
9467 ac_need_defaults=false ;;
9468
9469 esac
9470 shift
9471 done
9472
9473 ac_configure_extra_args=
9474
9475 if $ac_cs_silent; then
9476 exec 6>/dev/null
9477 ac_configure_extra_args="$ac_configure_extra_args --silent"
9478 fi
9479
9480 _ACEOF
9481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9482 if \$ac_cs_recheck; then
9483 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9484 shift
9485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9486 CONFIG_SHELL='$SHELL'
9487 export CONFIG_SHELL
9488 exec "\$@"
9489 fi
9490
9491 _ACEOF
9492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9493 exec 5>>config.log
9494 {
9495 echo
9496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9497 ## Running $as_me. ##
9498 _ASBOX
9499 $as_echo "$ac_log"
9500 } >&5
9501
9502 _ACEOF
9503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9504 _ACEOF
9505
9506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9507
9508 # Handling of arguments.
9509 for ac_config_target in $ac_config_targets
9510 do
9511 case $ac_config_target in
9512 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
9513 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9514 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9515 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
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" ;;
9518 "src/modules/snomasks/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/snomasks/Makefile" ;;
9519 "src/modules/extbans/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/extbans/Makefile" ;;
9520 "src/modules/cap/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/cap/Makefile" ;;
9521 "src/modules/third/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/third/Makefile" ;;
9522 "unrealircd") CONFIG_FILES="$CONFIG_FILES unrealircd" ;;
9523
9524 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9525 esac
9526 done
9527
9528
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.
9533 if $ac_need_defaults; then
9534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9536 fi
9537
9538 # Have a temporary directory for convenience. Make it in the build tree
9539 # simply because there is no reason against having it here, and in addition,
9540 # creating and moving files from /tmp can sometimes cause problems.
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'.
9544 $debug ||
9545 {
9546 tmp= ac_tmp=
9547 trap 'exit_status=$?
9548 : "${ac_tmp:=$tmp}"
9549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9550 ' 0
9551 trap 'as_fn_exit 1' 1 2 13 15
9552 }
9553 # Create a (secure) tmp directory for tmp files.
9554
9555 {
9556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9557 test -d "$tmp"
9558 } ||
9559 {
9560 tmp=./conf$$-$RANDOM
9561 (umask 077 && mkdir "$tmp")
9562 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9563 ac_tmp=$tmp
9564
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'.
9568 if test -n "$CONFIG_FILES"; then
9569
9570
9571 ac_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.
9575 if test "x$ac_cr" = x; then
9576 eval ac_cr=\$\'\\r\'
9577 fi
9578 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9579 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9580 ac_cs_awk_cr='\\r'
9581 else
9582 ac_cs_awk_cr=$ac_cr
9583 fi
9584
9585 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9586 _ACEOF
9587
9588
9589 {
9590 echo "cat >conf$$subs.awk <<_ACEOF" &&
9591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9592 echo "_ACEOF"
9593 } >conf$$subs.sh ||
9594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9596 ac_delim='%!_!# '
9597 for ac_last_try in false false false false false :; do
9598 . ./conf$$subs.sh ||
9599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
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
9603 break
9604 elif $ac_last_try; then
9605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9606 else
9607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9608 fi
9609 done
9610 rm -f conf$$subs.sh
9611
9612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9613 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9614 _ACEOF
9615 sed -n '
9616 h
9617 s/^/S["/; s/!.*/"]=/
9618 p
9619 g
9620 s/^[^!]*!//
9621 :repl
9622 t repl
9623 s/'"$ac_delim"'$//
9624 t delim
9625 :nl
9626 h
9627 s/\(.\{148\}\)..*/\1/
9628 t more1
9629 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9630 p
9631 n
9632 b repl
9633 :more1
9634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9635 p
9636 g
9637 s/.\{148\}//
9638 t nl
9639 :delim
9640 h
9641 s/\(.\{148\}\)..*/\1/
9642 t more2
9643 s/["\\]/\\&/g; s/^/"/; s/$/"/
9644 p
9645 b
9646 :more2
9647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9648 p
9649 g
9650 s/.\{148\}//
9651 t delim
9652 ' <conf$$subs.awk | sed '
9653 /^[^""]/{
9654 N
9655 s/\n//
9656 }
9657 ' >>$CONFIG_STATUS || ac_write_fail=1
9658 rm -f conf$$subs.awk
9659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9660 _ACAWK
9661 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9662 for (key in S) S_is_set[key] = 1
9663 FS = "\a"
9664
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 }
9682
9683 print line
9684 }
9685
9686 _ACAWK
9687 _ACEOF
9688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9689 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9690 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9691 else
9692 cat
9693 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9694 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9695 _ACEOF
9696
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
9699 # trailing colons and then remove the whole line if VPATH becomes empty
9700 # (actually we leave an empty line to preserve line numbers).
9701 if test "x$srcdir" = x.; then
9702 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9703 h
9704 s///
9705 s/^/:/
9706 s/[ ]*$/:/
9707 s/:\$(srcdir):/:/g
9708 s/:\${srcdir}:/:/g
9709 s/:@srcdir@:/:/g
9710 s/^:*//
9711 s/:*$//
9712 x
9713 s/\(=[ ]*\).*/\1/
9714 G
9715 s/\n//
9716 s/^[^=]*=[ ]*$//
9717 }'
9718 fi
9719
9720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9721 fi # test -n "$CONFIG_FILES"
9722
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'.
9726 if test -n "$CONFIG_HEADERS"; then
9727 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9728 BEGIN {
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.
9737 ac_delim='%!_!# '
9738 for ac_last_try in false false :; do
9739 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9740 if test -z "$ac_tt"; then
9741 break
9742 elif $ac_last_try; then
9743 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9744 else
9745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9746 fi
9747 done
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
9753 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9754 sed -n '
9755 s/.\{148\}/&'"$ac_delim"'/g
9756 t rset
9757 :rset
9758 s/^[ ]*#[ ]*define[ ][ ]*/ /
9759 t def
9760 d
9761 :def
9762 s/\\$//
9763 t bsnl
9764 s/["\\]/\\&/g
9765 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9766 D["\1"]=" \3"/p
9767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9768 d
9769 :bsnl
9770 s/["\\]/\\&/g
9771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9772 D["\1"]=" \3\\\\\\n"\\/p
9773 t cont
9774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9775 t cont
9776 d
9777 :cont
9778 n
9779 s/.\{148\}/&'"$ac_delim"'/g
9780 t clear
9781 :clear
9782 s/\\$//
9783 t bsnlc
9784 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9785 d
9786 :bsnlc
9787 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9788 b cont
9789 ' <confdefs.h | sed '
9790 s/'"$ac_delim"'/"\\\
9791 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9792
9793 cat >>$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
9827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9828 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9829 fi # test -n "$CONFIG_HEADERS"
9830
9831
9832 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9833 shift
9834 for ac_tag
9835 do
9836 case $ac_tag in
9837 :[FHLC]) ac_mode=$ac_tag; continue;;
9838 esac
9839 case $ac_mode$ac_tag in
9840 :[FHL]*:*);;
9841 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9842 :[FH]-) ac_tag=-:-;;
9843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9844 esac
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
9852
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
9860 -) ac_f="$ac_tmp/stdin";;
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 ||
9869 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9870 esac
9871 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9872 as_fn_append ac_file_inputs " '$ac_f'"
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. */
9878 configure_input='Generated from '`
9879 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9880 `' by configure.'
9881 if test x"$ac_file" != x-; then
9882 configure_input="$ac_file. $configure_input"
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9884 $as_echo "$as_me: creating $ac_file" >&6;}
9885 fi
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
9893
9894 case $ac_tag in
9895 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9897 esac
9898 ;;
9899 esac
9900
9901 ac_dir=`$as_dirname -- "$ac_file" ||
9902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9903 X"$ac_file" : 'X\(//\)[^/]' \| \
9904 X"$ac_file" : 'X\(//\)$' \| \
9905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9906 $as_echo X"$ac_file" |
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'`
9924 as_dir="$ac_dir"; as_fn_mkdir_p
9925 ac_builddir=.
9926
9927 case "$ac_dir" in
9928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9929 *)
9930 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9931 # A ".." for each directory in $ac_dir_suffix.
9932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
9937 esac
9938 ac_abs_top_builddir=$ac_pwd
9939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9940 # for backward compatibility:
9941 ac_top_builddir=$ac_top_build_prefix
9942
9943 case $srcdir in
9944 .) # We are building in place.
9945 ac_srcdir=.
9946 ac_top_srcdir=$ac_top_builddir_sub
9947 ac_abs_top_srcdir=$ac_pwd ;;
9948 [\\/]* | ?:[\\/]* ) # Absolute name.
9949 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
9956 esac
9957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9958
9959
9960 case $ac_mode in
9961 :F)
9962 #
9963 # CONFIG_FILE
9964 #
9965
9966 _ACEOF
9967
9968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9969 # If the template does not know about datarootdir, expand it.
9970 # FIXME: This hack should be removed a few years after 2.60.
9971 ac_datarootdir_hack=; ac_datarootdir_seen=
9972 ac_sed_dataroot='
9973 /datarootdir/ {
9974 p
9975 q
9976 }
9977 /@datadir@/p
9978 /@docdir@/p
9979 /@infodir@/p
9980 /@localedir@/p
9981 /@mandir@/p'
9982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9983 *datarootdir*) ac_datarootdir_seen=yes;;
9984 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
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;}
9987 _ACEOF
9988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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
9995 s&\\\${datarootdir}&$datarootdir&g' ;;
9996 esac
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?
10002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10003 ac_sed_extra="$ac_vpsub
10004 $extrasub
10005 _ACEOF
10006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10007 :t
10008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10009 s|@configure_input@|$ac_sed_conf_input|;t t
10010 s&@top_builddir@&$ac_top_builddir_sub&;t t
10011 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10012 s&@srcdir@&$ac_srcdir&;t t
10013 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10014 s&@top_srcdir@&$ac_top_srcdir&;t t
10015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10016 s&@builddir@&$ac_builddir&;t t
10017 s&@abs_builddir@&$ac_abs_builddir&;t t
10018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10019 $ac_datarootdir_hack
10020 "
10021 eval 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
10023
10024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
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"; } &&
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10029 which seems to be undefined. Please make sure it is defined" >&5
10030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10031 which seems to be undefined. Please make sure it is defined" >&2;}
10032
10033 rm -f "$ac_tmp/stdin"
10034 case $ac_file in
10035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10037 esac \
10038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10039 ;;
10040 :H)
10041 #
10042 # CONFIG_HEADER
10043 #
10044 if test x"$ac_file" != x-; then
10045 {
10046 $as_echo "/* $configure_input */" \
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
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10052 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10053 else
10054 rm -f "$ac_file"
10055 mv "$ac_tmp/config.h" "$ac_file" \
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10057 fi
10058 else
10059 $as_echo "/* $configure_input */" \
10060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10061 || as_fn_error $? "could not create -" "$LINENO" 5
10062 fi
10063 ;;
10064
10065
10066 esac
10067
10068 done # for ac_tag
10069
10070
10071 as_fn_exit 0
10072 _ACEOF
10073 ac_clean_files=$ac_clean_files_save
10074
10075 test $ac_write_fail = 0 ||
10076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10077
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.
10087 if test "$no_create" != yes; then
10088 ac_cs_success=:
10089 ac_config_status_args=
10090 test "$silent" = yes &&
10091 ac_config_status_args="$ac_config_status_args --quiet"
10092 exec 5>/dev/null
10093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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.
10097 $ac_cs_success || as_fn_exit 1
10098 fi
10099 if 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;}
10102 fi
10103
10104 chmod 0700 unrealircd