]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b6d0720c | 3 | # Generated by GNU Autoconf 2.68 for charybdis 3.3.0. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
6fb6bd15 | 7 | # |
631ef239 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
b6d0720c AC |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
6fb6bd15 | 11 | # |
7083c021 | 12 | # |
212380e3 AC |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
212380e3 | 18 | |
631ef239 AC |
19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
22 | emulate sh |
23 | NULLCMD=: | |
7083c021 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
27 | setopt NO_GLOB_SUBST |
28 | else | |
7083c021 AC |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
631ef239 | 34 | esac |
631ef239 AC |
35 | fi |
36 | ||
37 | ||
7083c021 AC |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 58 | else |
7083c021 AC |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 71 | fi |
7083c021 AC |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 74 | fi |
212380e3 | 75 | |
7083c021 AC |
76 | # The user is always right. |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
212380e3 AC |
83 | fi |
84 | ||
85 | ||
631ef239 AC |
86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 94 | as_myself= |
7083c021 | 95 | case $0 in #(( |
631ef239 AC |
96 | *[\\/]* ) as_myself=$0 ;; |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
631ef239 AC |
104 | IFS=$as_save_IFS |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
7083c021 AC |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
115 | exit 1 | |
631ef239 AC |
116 | fi |
117 | ||
7083c021 AC |
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 125 | done |
212380e3 AC |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
7083c021 AC |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212380e3 | 189 | do |
7083c021 AC |
190 | IFS=$as_save_IFS |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
b6d0720c | 220 | # Preserve -v and -x to the replacement shell. |
7083c021 AC |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
b6d0720c AC |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
7083c021 AC |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
212380e3 | 240 | else |
7083c021 AC |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
242 | $0: including any error possibly output before this | |
243 | $0: message. Then install a modern shell, or manually run | |
244 | $0: the script under such a shell if you do have one." | |
212380e3 | 245 | fi |
7083c021 AC |
246 | exit 1 |
247 | fi | |
248 | fi | |
249 | fi | |
250 | SHELL=${CONFIG_SHELL-/bin/sh} | |
251 | export SHELL | |
252 | # Unset more variables known to interfere with behavior of common tools. | |
253 | CLICOLOR_FORCE= GREP_OPTIONS= | |
254 | unset CLICOLOR_FORCE GREP_OPTIONS | |
255 | ||
256 | ## --------------------- ## | |
257 | ## M4sh Shell Functions. ## | |
258 | ## --------------------- ## | |
259 | # as_fn_unset VAR | |
260 | # --------------- | |
261 | # Portably unset VAR. | |
262 | as_fn_unset () | |
263 | { | |
264 | { eval $1=; unset $1;} | |
265 | } | |
266 | as_unset=as_fn_unset | |
267 | ||
268 | # as_fn_set_status STATUS | |
269 | # ----------------------- | |
270 | # Set $? to STATUS, without forking. | |
271 | as_fn_set_status () | |
272 | { | |
273 | return $1 | |
274 | } # as_fn_set_status | |
275 | ||
276 | # as_fn_exit STATUS | |
277 | # ----------------- | |
278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
279 | as_fn_exit () | |
280 | { | |
281 | set +e | |
282 | as_fn_set_status $1 | |
283 | exit $1 | |
284 | } # as_fn_exit | |
285 | ||
286 | # as_fn_mkdir_p | |
287 | # ------------- | |
288 | # Create "$as_dir" as a directory, including parents if necessary. | |
289 | as_fn_mkdir_p () | |
290 | { | |
291 | ||
292 | case $as_dir in #( | |
293 | -*) as_dir=./$as_dir;; | |
294 | esac | |
295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
296 | as_dirs= | |
297 | while :; do | |
298 | case $as_dir in #( | |
299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
300 | *) as_qdir=$as_dir;; | |
301 | esac | |
302 | as_dirs="'$as_qdir' $as_dirs" | |
303 | as_dir=`$as_dirname -- "$as_dir" || | |
304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
306 | X"$as_dir" : 'X\(//\)$' \| \ | |
307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
308 | $as_echo X"$as_dir" | | |
309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)[^/].*/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\/\)$/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | /^X\(\/\).*/{ | |
322 | s//\1/ | |
323 | q | |
324 | } | |
325 | s/.*/./; q'` | |
326 | test -d "$as_dir" && break | |
327 | done | |
328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
330 | |
331 | ||
332 | } # as_fn_mkdir_p | |
333 | # as_fn_append VAR VALUE | |
334 | # ---------------------- | |
335 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
336 | # advantage of any shell optimizations that allow amortized linear growth over | |
337 | # repeated appends, instead of the typical quadratic growth present in naive | |
338 | # implementations. | |
339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
340 | eval 'as_fn_append () | |
341 | { | |
342 | eval $1+=\$2 | |
343 | }' | |
344 | else | |
345 | as_fn_append () | |
346 | { | |
347 | eval $1=\$$1\$2 | |
348 | } | |
349 | fi # as_fn_append | |
350 | ||
351 | # as_fn_arith ARG... | |
352 | # ------------------ | |
353 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
355 | # must be portable across $(()) and expr. | |
356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
357 | eval 'as_fn_arith () | |
358 | { | |
359 | as_val=$(( $* )) | |
360 | }' | |
361 | else | |
362 | as_fn_arith () | |
363 | { | |
364 | as_val=`expr "$@" || test $? -eq 1` | |
365 | } | |
366 | fi # as_fn_arith | |
367 | ||
368 | ||
b6d0720c AC |
369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
370 | # ---------------------------------------- | |
7083c021 AC |
371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 373 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
374 | as_fn_error () |
375 | { | |
b6d0720c AC |
376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
377 | if test "$4"; then | |
378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 380 | fi |
b6d0720c | 381 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
382 | as_fn_exit $as_status |
383 | } # as_fn_error | |
212380e3 | 384 | |
631ef239 AC |
385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
387 | as_expr=expr |
388 | else | |
389 | as_expr=false | |
390 | fi | |
391 | ||
631ef239 | 392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
393 | as_basename=basename |
394 | else | |
395 | as_basename=false | |
396 | fi | |
397 | ||
7083c021 AC |
398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
399 | as_dirname=dirname | |
400 | else | |
401 | as_dirname=false | |
402 | fi | |
212380e3 | 403 | |
631ef239 | 404 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
406 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 408 | $as_echo X/"$0" | |
631ef239 AC |
409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\/\)$/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | /^X\/\(\/\).*/{ | |
418 | s//\1/ | |
419 | q | |
420 | } | |
421 | s/.*/./; q'` | |
212380e3 | 422 | |
7083c021 AC |
423 | # Avoid depending upon Character Ranges. |
424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
427 | as_cr_digits='0123456789' | |
428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
212380e3 | 429 | |
212380e3 | 430 | |
7083c021 AC |
431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
436 | sed -n ' | |
437 | p | |
438 | /[$]LINENO/= | |
439 | ' <$as_myself | | |
440 | sed ' | |
441 | s/[$]LINENO.*/&-/ | |
442 | t lineno | |
443 | b | |
444 | :lineno | |
445 | N | |
446 | :loop | |
447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
448 | t loop | |
449 | s/-\n.*// | |
450 | ' >$as_me.lineno && | |
451 | chmod +x "$as_me.lineno" || | |
452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
212380e3 | 453 | |
7083c021 AC |
454 | # Don't try to exec as it changes $[0], causing all sort of problems |
455 | # (the dirname of $[0] is not the place where we might find the | |
456 | # original and so on. Autoconf is especially sensitive to this). | |
457 | . "./$as_me.lineno" | |
458 | # Exit status is that of the last command. | |
459 | exit | |
631ef239 | 460 | } |
212380e3 | 461 | |
7083c021 AC |
462 | ECHO_C= ECHO_N= ECHO_T= |
463 | case `echo -n x` in #((((( | |
464 | -n*) | |
465 | case `echo 'xy\c'` in | |
466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
467 | xy) ECHO_C='\c';; | |
468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
469 | ECHO_T=' ';; | |
470 | esac;; | |
471 | *) | |
472 | ECHO_N='-n';; | |
473 | esac | |
631ef239 | 474 | |
7083c021 AC |
475 | rm -f conf$$ conf$$.exe conf$$.file |
476 | if test -d conf$$.dir; then | |
477 | rm -f conf$$.dir/conf$$.file | |
478 | else | |
479 | rm -f conf$$.dir | |
480 | mkdir conf$$.dir 2>/dev/null | |
481 | fi | |
482 | if (echo >conf$$.file) 2>/dev/null; then | |
483 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
484 | as_ln_s='ln -s' | |
485 | # ... but there are two gotchas: | |
486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
488 | # In both cases, we have to default to `cp -p'. | |
489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
490 | as_ln_s='cp -p' | |
491 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
492 | as_ln_s=ln | |
493 | else | |
494 | as_ln_s='cp -p' | |
495 | fi | |
631ef239 | 496 | else |
7083c021 | 497 | as_ln_s='cp -p' |
631ef239 | 498 | fi |
7083c021 AC |
499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
500 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 501 | |
7083c021 AC |
502 | if mkdir -p . 2>/dev/null; then |
503 | as_mkdir_p='mkdir -p "$as_dir"' | |
504 | else | |
505 | test -d ./-p && rmdir ./-p | |
506 | as_mkdir_p=false | |
631ef239 AC |
507 | fi |
508 | ||
7083c021 AC |
509 | if test -x / >/dev/null 2>&1; then |
510 | as_test_x='test -x' | |
631ef239 | 511 | else |
7083c021 AC |
512 | if ls -dL / >/dev/null 2>&1; then |
513 | as_ls_L_option=L | |
514 | else | |
515 | as_ls_L_option= | |
516 | fi | |
517 | as_test_x=' | |
518 | eval sh -c '\'' | |
519 | if test -d "$1"; then | |
520 | test -d "$1/."; | |
521 | else | |
522 | case $1 in #( | |
523 | -*)set "./$1";; | |
524 | esac; | |
525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
526 | ???[sx]*):;;*)false;;esac;fi | |
527 | '\'' sh | |
528 | ' | |
631ef239 | 529 | fi |
7083c021 | 530 | as_executable_p=$as_test_x |
631ef239 | 531 | |
7083c021 AC |
532 | # Sed expression to map a string onto a valid CPP name. |
533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 534 | |
7083c021 AC |
535 | # Sed expression to map a string onto a valid variable name. |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 AC |
537 | |
538 | ||
6fb6bd15 AC |
539 | test -n "$DJDIR" || exec 7<&0 </dev/null |
540 | exec 6>&1 | |
631ef239 | 541 | |
7083c021 | 542 | # Name of the host. |
b6d0720c | 543 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
544 | # so uname gets run too. |
545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 546 | |
7083c021 AC |
547 | # |
548 | # Initializations. | |
549 | # | |
550 | ac_default_prefix=/usr/local | |
551 | ac_clean_files= | |
552 | ac_config_libobj_dir=. | |
553 | LIBOBJS= | |
554 | cross_compiling=no | |
555 | subdirs= | |
556 | MFLAGS= | |
557 | MAKEFLAGS= | |
212380e3 | 558 | |
212380e3 AC |
559 | # Identity of this package. |
560 | PACKAGE_NAME='charybdis' | |
561 | PACKAGE_TARNAME='charybdis' | |
5a241f54 AC |
562 | PACKAGE_VERSION='3.3.0' |
563 | PACKAGE_STRING='charybdis 3.3.0' | |
212380e3 | 564 | PACKAGE_BUGREPORT='' |
7083c021 | 565 | PACKAGE_URL='' |
212380e3 AC |
566 | |
567 | ac_default_prefix=$HOME/ircd | |
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
631ef239 | 571 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
572 | # include <sys/types.h> |
573 | #endif | |
631ef239 | 574 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
575 | # include <sys/stat.h> |
576 | #endif | |
631ef239 | 577 | #ifdef STDC_HEADERS |
212380e3 AC |
578 | # include <stdlib.h> |
579 | # include <stddef.h> | |
580 | #else | |
631ef239 | 581 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
582 | # include <stdlib.h> |
583 | # endif | |
584 | #endif | |
631ef239 AC |
585 | #ifdef HAVE_STRING_H |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
587 | # include <memory.h> |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
631ef239 | 591 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
592 | # include <strings.h> |
593 | #endif | |
631ef239 | 594 | #ifdef HAVE_INTTYPES_H |
212380e3 | 595 | # include <inttypes.h> |
212380e3 | 596 | #endif |
631ef239 AC |
597 | #ifdef HAVE_STDINT_H |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
601 | # include <unistd.h> |
602 | #endif" | |
603 | ||
7083c021 AC |
604 | enable_option_checking=no |
605 | ac_subst_vars='LTLIBOBJS | |
631ef239 | 606 | LIBOBJS |
7083c021 AC |
607 | SEDOBJ |
608 | IRC_CFLAGS | |
609 | PICFLAGS | |
610 | SSL_LIBS | |
611 | SSL_INCLUDES | |
612 | SSL_SRCS_ENABLE | |
613 | MOD_TARGET | |
614 | MODULES_LIBS | |
615 | SELECT_TYPE | |
616 | moduledir | |
617 | MODULE_DIR | |
618 | helpdir | |
619 | HELP_DIR | |
620 | logdir | |
621 | LOG_DIR | |
622 | confdir | |
623 | ETC_DIR | |
624 | ZLIB_LD | |
625 | ENCSPEED | |
626 | ALLOCA | |
627 | VICONF | |
628 | CRYPT_LIB | |
629 | LEXLIB | |
630 | LEX_OUTPUT_ROOT | |
631 | LEX | |
632 | YFLAGS | |
633 | YACC | |
634 | TOUCH | |
635 | RANLIB | |
636 | LD | |
637 | AR | |
638 | SED | |
639 | LN | |
640 | MV | |
641 | CP | |
642 | RM | |
643 | INSTALL_DATA | |
644 | INSTALL_SCRIPT | |
645 | INSTALL_PROGRAM | |
646 | SET_MAKE | |
647 | STDOUT | |
648 | MAKEDEPEND | |
649 | MKDEP | |
650 | subdirs | |
651 | EGREP | |
652 | GREP | |
653 | CPP | |
654 | OBJEXT | |
655 | EXEEXT | |
656 | ac_ct_CC | |
657 | CPPFLAGS | |
658 | LDFLAGS | |
659 | CFLAGS | |
660 | CC | |
661 | target_alias | |
662 | host_alias | |
663 | build_alias | |
664 | LIBS | |
665 | ECHO_T | |
666 | ECHO_N | |
667 | ECHO_C | |
668 | DEFS | |
669 | mandir | |
670 | localedir | |
671 | libdir | |
672 | psdir | |
673 | pdfdir | |
674 | dvidir | |
675 | htmldir | |
676 | infodir | |
677 | docdir | |
678 | oldincludedir | |
679 | includedir | |
680 | localstatedir | |
681 | sharedstatedir | |
682 | sysconfdir | |
683 | datadir | |
684 | datarootdir | |
685 | libexecdir | |
686 | sbindir | |
687 | bindir | |
688 | program_transform_name | |
689 | prefix | |
690 | exec_prefix | |
691 | PACKAGE_URL | |
692 | PACKAGE_BUGREPORT | |
693 | PACKAGE_STRING | |
694 | PACKAGE_VERSION | |
695 | PACKAGE_TARNAME | |
696 | PACKAGE_NAME | |
697 | PATH_SEPARATOR | |
698 | SHELL' | |
212380e3 | 699 | ac_subst_files='' |
7083c021 AC |
700 | ac_user_opts=' |
701 | enable_option_checking | |
702 | enable_ipv6 | |
703 | enable_openssl | |
704 | with_zlib_path | |
705 | enable_zlib | |
706 | enable_ports | |
707 | enable_poll | |
708 | enable_select | |
709 | enable_kqueue | |
710 | enable_epoll | |
711 | with_confdir | |
712 | with_logdir | |
713 | with_helpdir | |
714 | with_moduledir | |
b6d0720c AC |
715 | with_custom_branding |
716 | with_custom_version | |
7083c021 AC |
717 | enable_assert |
718 | enable_iodebug | |
719 | enable_profile | |
720 | enable_balloc | |
721 | enable_small_net | |
722 | with_nicklen | |
723 | with_topiclen | |
724 | enable_warnings | |
725 | ' | |
631ef239 AC |
726 | ac_precious_vars='build_alias |
727 | host_alias | |
728 | target_alias | |
729 | CC | |
730 | CFLAGS | |
731 | LDFLAGS | |
732 | LIBS | |
733 | CPPFLAGS | |
734 | CPP | |
735 | YACC | |
736 | YFLAGS' | |
b676ea3b | 737 | ac_subdirs_all='libratbox' |
212380e3 AC |
738 | |
739 | # Initialize some variables set by options. | |
740 | ac_init_help= | |
741 | ac_init_version=false | |
7083c021 AC |
742 | ac_unrecognized_opts= |
743 | ac_unrecognized_sep= | |
212380e3 AC |
744 | # The variables have the same names as the options, with |
745 | # dashes changed to underlines. | |
746 | cache_file=/dev/null | |
747 | exec_prefix=NONE | |
748 | no_create= | |
749 | no_recursion= | |
750 | prefix=NONE | |
751 | program_prefix=NONE | |
752 | program_suffix=NONE | |
753 | program_transform_name=s,x,x, | |
754 | silent= | |
755 | site= | |
756 | srcdir= | |
757 | verbose= | |
758 | x_includes=NONE | |
759 | x_libraries=NONE | |
760 | ||
761 | # Installation directory options. | |
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
763 | # and all the variables that are supposed to be based on exec_prefix | |
764 | # by default will actually change. | |
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 766 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
767 | bindir='${exec_prefix}/bin' |
768 | sbindir='${exec_prefix}/sbin' | |
769 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
770 | datarootdir='${prefix}/share' |
771 | datadir='${datarootdir}' | |
212380e3 AC |
772 | sysconfdir='${prefix}/etc' |
773 | sharedstatedir='${prefix}/com' | |
774 | localstatedir='${prefix}/var' | |
212380e3 AC |
775 | includedir='${prefix}/include' |
776 | oldincludedir='/usr/include' | |
631ef239 AC |
777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
778 | infodir='${datarootdir}/info' | |
779 | htmldir='${docdir}' | |
780 | dvidir='${docdir}' | |
781 | pdfdir='${docdir}' | |
782 | psdir='${docdir}' | |
783 | libdir='${exec_prefix}/lib' | |
784 | localedir='${datarootdir}/locale' | |
785 | mandir='${datarootdir}/man' | |
212380e3 AC |
786 | |
787 | ac_prev= | |
631ef239 | 788 | ac_dashdash= |
212380e3 AC |
789 | for ac_option |
790 | do | |
791 | # If the previous option needs an argument, assign it. | |
792 | if test -n "$ac_prev"; then | |
631ef239 | 793 | eval $ac_prev=\$ac_option |
212380e3 AC |
794 | ac_prev= |
795 | continue | |
796 | fi | |
797 | ||
631ef239 | 798 | case $ac_option in |
b6d0720c AC |
799 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
800 | *=) ac_optarg= ;; | |
801 | *) ac_optarg=yes ;; | |
631ef239 | 802 | esac |
212380e3 AC |
803 | |
804 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
805 | ||
631ef239 AC |
806 | case $ac_dashdash$ac_option in |
807 | --) | |
808 | ac_dashdash=yes ;; | |
212380e3 AC |
809 | |
810 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
811 | ac_prev=bindir ;; | |
812 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
813 | bindir=$ac_optarg ;; | |
814 | ||
815 | -build | --build | --buil | --bui | --bu) | |
816 | ac_prev=build_alias ;; | |
817 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
818 | build_alias=$ac_optarg ;; | |
819 | ||
820 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
821 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
822 | ac_prev=cache_file ;; | |
823 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
824 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
825 | cache_file=$ac_optarg ;; | |
826 | ||
827 | --config-cache | -C) | |
828 | cache_file=config.cache ;; | |
829 | ||
631ef239 | 830 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 831 | ac_prev=datadir ;; |
631ef239 | 832 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
833 | datadir=$ac_optarg ;; |
834 | ||
631ef239 AC |
835 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
836 | | --dataroo | --dataro | --datar) | |
837 | ac_prev=datarootdir ;; | |
838 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
839 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
840 | datarootdir=$ac_optarg ;; | |
841 | ||
212380e3 | 842 | -disable-* | --disable-*) |
7083c021 | 843 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 844 | # Reject names that are not valid shell variable names. |
7083c021 | 845 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 846 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
847 | ac_useropt_orig=$ac_useropt |
848 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
849 | case $ac_user_opts in | |
850 | *" | |
851 | "enable_$ac_useropt" | |
852 | "*) ;; | |
853 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
854 | ac_unrecognized_sep=', ';; | |
855 | esac | |
856 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
857 | |
858 | -docdir | --docdir | --docdi | --doc | --do) | |
859 | ac_prev=docdir ;; | |
860 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
861 | docdir=$ac_optarg ;; | |
862 | ||
863 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
864 | ac_prev=dvidir ;; | |
865 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
866 | dvidir=$ac_optarg ;; | |
212380e3 AC |
867 | |
868 | -enable-* | --enable-*) | |
7083c021 | 869 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 870 | # Reject names that are not valid shell variable names. |
7083c021 | 871 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 872 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
873 | ac_useropt_orig=$ac_useropt |
874 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
875 | case $ac_user_opts in | |
876 | *" | |
877 | "enable_$ac_useropt" | |
878 | "*) ;; | |
879 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
880 | ac_unrecognized_sep=', ';; | |
881 | esac | |
882 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
883 | |
884 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
885 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
886 | | --exec | --exe | --ex) | |
887 | ac_prev=exec_prefix ;; | |
888 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
889 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
890 | | --exec=* | --exe=* | --ex=*) | |
891 | exec_prefix=$ac_optarg ;; | |
892 | ||
893 | -gas | --gas | --ga | --g) | |
894 | # Obsolete; use --with-gas. | |
895 | with_gas=yes ;; | |
896 | ||
897 | -help | --help | --hel | --he | -h) | |
898 | ac_init_help=long ;; | |
899 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
900 | ac_init_help=recursive ;; | |
901 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
902 | ac_init_help=short ;; | |
903 | ||
904 | -host | --host | --hos | --ho) | |
905 | ac_prev=host_alias ;; | |
906 | -host=* | --host=* | --hos=* | --ho=*) | |
907 | host_alias=$ac_optarg ;; | |
908 | ||
631ef239 AC |
909 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
910 | ac_prev=htmldir ;; | |
911 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
912 | | --ht=*) | |
913 | htmldir=$ac_optarg ;; | |
914 | ||
212380e3 AC |
915 | -includedir | --includedir | --includedi | --included | --include \ |
916 | | --includ | --inclu | --incl | --inc) | |
917 | ac_prev=includedir ;; | |
918 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
919 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
920 | includedir=$ac_optarg ;; | |
921 | ||
922 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
923 | ac_prev=infodir ;; | |
924 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
925 | infodir=$ac_optarg ;; | |
926 | ||
927 | -libdir | --libdir | --libdi | --libd) | |
928 | ac_prev=libdir ;; | |
929 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
930 | libdir=$ac_optarg ;; | |
931 | ||
932 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
933 | | --libexe | --libex | --libe) | |
934 | ac_prev=libexecdir ;; | |
935 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
936 | | --libexe=* | --libex=* | --libe=*) | |
937 | libexecdir=$ac_optarg ;; | |
938 | ||
631ef239 AC |
939 | -localedir | --localedir | --localedi | --localed | --locale) |
940 | ac_prev=localedir ;; | |
941 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
942 | localedir=$ac_optarg ;; | |
943 | ||
212380e3 | 944 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 945 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
946 | ac_prev=localstatedir ;; |
947 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 948 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
949 | localstatedir=$ac_optarg ;; |
950 | ||
951 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
952 | ac_prev=mandir ;; | |
953 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
954 | mandir=$ac_optarg ;; | |
955 | ||
956 | -nfp | --nfp | --nf) | |
957 | # Obsolete; use --without-fp. | |
958 | with_fp=no ;; | |
959 | ||
960 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
961 | | --no-cr | --no-c | -n) | |
962 | no_create=yes ;; | |
963 | ||
964 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
965 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
966 | no_recursion=yes ;; | |
967 | ||
968 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
969 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
970 | | --oldin | --oldi | --old | --ol | --o) | |
971 | ac_prev=oldincludedir ;; | |
972 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
973 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
974 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
975 | oldincludedir=$ac_optarg ;; | |
976 | ||
977 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
978 | ac_prev=prefix ;; | |
979 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
980 | prefix=$ac_optarg ;; | |
981 | ||
982 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
983 | | --program-pre | --program-pr | --program-p) | |
984 | ac_prev=program_prefix ;; | |
985 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
986 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
987 | program_prefix=$ac_optarg ;; | |
988 | ||
989 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
990 | | --program-suf | --program-su | --program-s) | |
991 | ac_prev=program_suffix ;; | |
992 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
993 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
994 | program_suffix=$ac_optarg ;; | |
995 | ||
996 | -program-transform-name | --program-transform-name \ | |
997 | | --program-transform-nam | --program-transform-na \ | |
998 | | --program-transform-n | --program-transform- \ | |
999 | | --program-transform | --program-transfor \ | |
1000 | | --program-transfo | --program-transf \ | |
1001 | | --program-trans | --program-tran \ | |
1002 | | --progr-tra | --program-tr | --program-t) | |
1003 | ac_prev=program_transform_name ;; | |
1004 | -program-transform-name=* | --program-transform-name=* \ | |
1005 | | --program-transform-nam=* | --program-transform-na=* \ | |
1006 | | --program-transform-n=* | --program-transform-=* \ | |
1007 | | --program-transform=* | --program-transfor=* \ | |
1008 | | --program-transfo=* | --program-transf=* \ | |
1009 | | --program-trans=* | --program-tran=* \ | |
1010 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1011 | program_transform_name=$ac_optarg ;; | |
1012 | ||
631ef239 AC |
1013 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1014 | ac_prev=pdfdir ;; | |
1015 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1016 | pdfdir=$ac_optarg ;; | |
1017 | ||
1018 | -psdir | --psdir | --psdi | --psd | --ps) | |
1019 | ac_prev=psdir ;; | |
1020 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1021 | psdir=$ac_optarg ;; | |
1022 | ||
212380e3 AC |
1023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1024 | | -silent | --silent | --silen | --sile | --sil) | |
1025 | silent=yes ;; | |
1026 | ||
1027 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1028 | ac_prev=sbindir ;; | |
1029 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1030 | | --sbi=* | --sb=*) | |
1031 | sbindir=$ac_optarg ;; | |
1032 | ||
1033 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1034 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1035 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1036 | | --sha | --sh) | |
1037 | ac_prev=sharedstatedir ;; | |
1038 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1039 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1040 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1041 | | --sha=* | --sh=*) | |
1042 | sharedstatedir=$ac_optarg ;; | |
1043 | ||
1044 | -site | --site | --sit) | |
1045 | ac_prev=site ;; | |
1046 | -site=* | --site=* | --sit=*) | |
1047 | site=$ac_optarg ;; | |
1048 | ||
1049 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1050 | ac_prev=srcdir ;; | |
1051 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1052 | srcdir=$ac_optarg ;; | |
1053 | ||
1054 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1055 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1056 | ac_prev=sysconfdir ;; | |
1057 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1058 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1059 | sysconfdir=$ac_optarg ;; | |
1060 | ||
1061 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1062 | ac_prev=target_alias ;; | |
1063 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1064 | target_alias=$ac_optarg ;; | |
1065 | ||
1066 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1067 | verbose=yes ;; | |
1068 | ||
1069 | -version | --version | --versio | --versi | --vers | -V) | |
1070 | ac_init_version=: ;; | |
1071 | ||
1072 | -with-* | --with-*) | |
7083c021 | 1073 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1074 | # Reject names that are not valid shell variable names. |
7083c021 | 1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1076 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1077 | ac_useropt_orig=$ac_useropt |
1078 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1079 | case $ac_user_opts in | |
1080 | *" | |
1081 | "with_$ac_useropt" | |
1082 | "*) ;; | |
1083 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1084 | ac_unrecognized_sep=', ';; | |
1085 | esac | |
1086 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1087 | |
1088 | -without-* | --without-*) | |
7083c021 | 1089 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1090 | # Reject names that are not valid shell variable names. |
7083c021 | 1091 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1092 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1093 | ac_useropt_orig=$ac_useropt |
1094 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1095 | case $ac_user_opts in | |
1096 | *" | |
1097 | "with_$ac_useropt" | |
1098 | "*) ;; | |
1099 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1100 | ac_unrecognized_sep=', ';; | |
1101 | esac | |
1102 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1103 | |
1104 | --x) | |
1105 | # Obsolete; use --with-x. | |
1106 | with_x=yes ;; | |
1107 | ||
1108 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1109 | | --x-incl | --x-inc | --x-in | --x-i) | |
1110 | ac_prev=x_includes ;; | |
1111 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1112 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1113 | x_includes=$ac_optarg ;; | |
1114 | ||
1115 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1116 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1117 | ac_prev=x_libraries ;; | |
1118 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1119 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1120 | x_libraries=$ac_optarg ;; | |
1121 | ||
b6d0720c AC |
1122 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1123 | Try \`$0 --help' for more information" | |
212380e3 AC |
1124 | ;; |
1125 | ||
1126 | *=*) | |
1127 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1128 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1129 | case $ac_envvar in #( |
1130 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1131 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1132 | esac |
631ef239 | 1133 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1134 | export $ac_envvar ;; |
1135 | ||
1136 | *) | |
1137 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1138 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1139 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1140 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1141 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1142 | ;; |
1143 | ||
1144 | esac | |
1145 | done | |
1146 | ||
1147 | if test -n "$ac_prev"; then | |
1148 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1149 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1150 | fi |
1151 | ||
7083c021 AC |
1152 | if test -n "$ac_unrecognized_opts"; then |
1153 | case $enable_option_checking in | |
1154 | no) ;; | |
b6d0720c | 1155 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1156 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1157 | esac | |
1158 | fi | |
1159 | ||
1160 | # Check all directory arguments for consistency. | |
631ef239 AC |
1161 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1162 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1163 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1164 | libdir localedir mandir | |
212380e3 | 1165 | do |
631ef239 | 1166 | eval ac_val=\$$ac_var |
7083c021 AC |
1167 | # Remove trailing slashes. |
1168 | case $ac_val in | |
1169 | */ ) | |
1170 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1171 | eval $ac_var=\$ac_val;; | |
1172 | esac | |
1173 | # Be sure to have absolute directory names. | |
212380e3 | 1174 | case $ac_val in |
631ef239 AC |
1175 | [\\/$]* | ?:[\\/]* ) continue;; |
1176 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1177 | esac |
b6d0720c | 1178 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1179 | done |
1180 | ||
1181 | # There might be people who depend on the old broken behavior: `$host' | |
1182 | # used to hold the argument of --host etc. | |
1183 | # FIXME: To remove some day. | |
1184 | build=$build_alias | |
1185 | host=$host_alias | |
1186 | target=$target_alias | |
1187 | ||
1188 | # FIXME: To remove some day. | |
1189 | if test "x$host_alias" != x; then | |
1190 | if test "x$build_alias" = x; then | |
1191 | cross_compiling=maybe | |
b6d0720c AC |
1192 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1193 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
212380e3 AC |
1194 | elif test "x$build_alias" != "x$host_alias"; then |
1195 | cross_compiling=yes | |
1196 | fi | |
1197 | fi | |
1198 | ||
1199 | ac_tool_prefix= | |
1200 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1201 | ||
1202 | test "$silent" = yes && exec 6>/dev/null | |
1203 | ||
1204 | ||
631ef239 AC |
1205 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1206 | ac_ls_di=`ls -di .` && | |
1207 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1208 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1210 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1211 | |
1212 | ||
1213 | # Find the source files, if location was not specified. | |
1214 | if test -z "$srcdir"; then | |
212380e3 | 1215 | ac_srcdir_defaulted=yes |
631ef239 | 1216 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1217 | ac_confdir=`$as_dirname -- "$as_myself" || |
1218 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1219 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1220 | X"$as_myself" : 'X\(//\)$' \| \ | |
1221 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1222 | $as_echo X"$as_myself" | | |
631ef239 AC |
1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\/\)[^/].*/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | /^X\(\/\/\)$/{ | |
1232 | s//\1/ | |
1233 | q | |
1234 | } | |
1235 | /^X\(\/\).*/{ | |
1236 | s//\1/ | |
1237 | q | |
1238 | } | |
1239 | s/.*/./; q'` | |
212380e3 | 1240 | srcdir=$ac_confdir |
631ef239 | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1242 | srcdir=.. |
1243 | fi | |
1244 | else | |
1245 | ac_srcdir_defaulted=no | |
1246 | fi | |
631ef239 AC |
1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1249 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1250 | fi |
631ef239 AC |
1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1252 | ac_abs_confdir=`( | |
b6d0720c | 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1254 | pwd)` |
1255 | # When building in place, set srcdir=. | |
1256 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1257 | srcdir=. | |
1258 | fi | |
1259 | # Remove unnecessary trailing slashes from srcdir. | |
1260 | # Double slashes in file names in object file debugging info | |
1261 | # mess up M-x gdb in Emacs. | |
1262 | case $srcdir in | |
1263 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1264 | esac | |
1265 | for ac_var in $ac_precious_vars; do | |
1266 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1267 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1268 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1269 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1270 | done | |
212380e3 AC |
1271 | |
1272 | # | |
1273 | # Report the --help message. | |
1274 | # | |
1275 | if test "$ac_init_help" = "long"; then | |
1276 | # Omit some internal or obsolete options to make the list less imposing. | |
1277 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1278 | cat <<_ACEOF | |
5a241f54 | 1279 | \`configure' configures charybdis 3.3.0 to adapt to many kinds of systems. |
212380e3 AC |
1280 | |
1281 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1282 | ||
1283 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1284 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1285 | ||
1286 | Defaults for the options are specified in brackets. | |
1287 | ||
1288 | Configuration: | |
1289 | -h, --help display this help and exit | |
1290 | --help=short display options specific to this package | |
1291 | --help=recursive display the short help of all the included packages | |
1292 | -V, --version display version information and exit | |
b6d0720c | 1293 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1294 | --cache-file=FILE cache test results in FILE [disabled] |
1295 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1296 | -n, --no-create do not create output files | |
1297 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1298 | ||
212380e3 AC |
1299 | Installation directories: |
1300 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1301 | [$ac_default_prefix] |
212380e3 | 1302 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1303 | [PREFIX] |
212380e3 AC |
1304 | |
1305 | By default, \`make install' will install all the files in | |
1306 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1307 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1308 | for instance \`--prefix=\$HOME'. | |
1309 | ||
1310 | For better control, use the options below. | |
1311 | ||
1312 | Fine tuning of the installation directories: | |
7083c021 AC |
1313 | --bindir=DIR user executables [EPREFIX/bin] |
1314 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1315 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1316 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1317 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1318 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1319 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1320 | --includedir=DIR C header files [PREFIX/include] | |
1321 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1322 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1323 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1324 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1325 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1326 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1327 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1328 | --htmldir=DIR html documentation [DOCDIR] | |
1329 | --dvidir=DIR dvi documentation [DOCDIR] | |
1330 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1331 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1332 | _ACEOF |
1333 | ||
1334 | cat <<\_ACEOF | |
1335 | _ACEOF | |
1336 | fi | |
1337 | ||
1338 | if test -n "$ac_init_help"; then | |
1339 | case $ac_init_help in | |
5a241f54 | 1340 | short | recursive ) echo "Configuration of charybdis 3.3.0:";; |
212380e3 AC |
1341 | esac |
1342 | cat <<\_ACEOF | |
1343 | ||
1344 | Optional Features: | |
7083c021 | 1345 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1346 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1347 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1348 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1349 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1350 | --disable-openssl Disable OpenSSL support. |
1351 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1352 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1353 | --enable-poll Force poll() usage. |
1354 | --enable-select Force select() usage. | |
1355 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1356 | --enable-epoll Force sys_epoll usage (Linux only). |
1357 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1358 | hard(aborts the daemon) | |
1359 | --enable-iodebug Enable IO Debugging hooks | |
1360 | --enable-profile Enable profiling | |
1361 | --disable-balloc Disable the block allocator. | |
212380e3 | 1362 | --enable-small-net Enable small network support. |
212380e3 AC |
1363 | --enable-warnings Enable all sorts of warnings for debugging. |
1364 | ||
1365 | Optional Packages: | |
1366 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1367 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1368 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1369 | --with-confdir=DIR Directory to install config files. | |
1370 | --with-logdir=DIR Directory where to write logfiles. | |
1371 | --with-helpdir=DIR Directory to install help files. | |
1372 | --with-moduledir=DIR Directory to install modules. | |
b6d0720c AC |
1373 | --with-custom-branding=NAME |
1374 | Custom branding name. | |
1375 | --with-custom-version=NAME | |
1376 | Custom version branding. | |
212380e3 AC |
1377 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) |
1378 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1379 | 390) | |
212380e3 AC |
1380 | |
1381 | Some influential environment variables: | |
1382 | CC C compiler command | |
1383 | CFLAGS C compiler flags | |
1384 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1385 | nonstandard directory <lib dir> | |
631ef239 | 1386 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1387 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1388 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1389 | CPP C preprocessor |
b6d0720c AC |
1390 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1391 | Defaults to the first program found out of: `bison -y', `byacc', | |
1392 | `yacc'. | |
631ef239 AC |
1393 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1394 | This script will default YFLAGS to the empty string to avoid a | |
1395 | default value of `-d' given by some make applications. | |
212380e3 AC |
1396 | |
1397 | Use these variables to override the choices made by `configure' or to help | |
1398 | it to find libraries and programs with nonstandard names/locations. | |
1399 | ||
7083c021 | 1400 | Report bugs to the package provider. |
212380e3 | 1401 | _ACEOF |
631ef239 | 1402 | ac_status=$? |
212380e3 AC |
1403 | fi |
1404 | ||
1405 | if test "$ac_init_help" = "recursive"; then | |
1406 | # If there are subdirs, report their specific --help. | |
212380e3 | 1407 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1408 | test -d "$ac_dir" || |
1409 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1410 | continue | |
212380e3 AC |
1411 | ac_builddir=. |
1412 | ||
631ef239 AC |
1413 | case "$ac_dir" in |
1414 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1415 | *) | |
7083c021 | 1416 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1417 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1418 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1419 | case $ac_top_builddir_sub in |
1420 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1421 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1422 | esac ;; | |
1423 | esac | |
1424 | ac_abs_top_builddir=$ac_pwd | |
1425 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1426 | # for backward compatibility: | |
1427 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1428 | |
1429 | case $srcdir in | |
631ef239 | 1430 | .) # We are building in place. |
212380e3 | 1431 | ac_srcdir=. |
631ef239 AC |
1432 | ac_top_srcdir=$ac_top_builddir_sub |
1433 | ac_abs_top_srcdir=$ac_pwd ;; | |
1434 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1435 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1436 | ac_top_srcdir=$srcdir |
1437 | ac_abs_top_srcdir=$srcdir ;; | |
1438 | *) # Relative name. | |
1439 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1440 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1441 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1442 | esac |
631ef239 AC |
1443 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1444 | ||
1445 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1446 | # Check for guested configure. | |
1447 | if test -f "$ac_srcdir/configure.gnu"; then | |
1448 | echo && | |
1449 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1450 | elif test -f "$ac_srcdir/configure"; then | |
1451 | echo && | |
1452 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1453 | else |
7083c021 | 1454 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1455 | fi || ac_status=$? |
1456 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1457 | done |
1458 | fi | |
1459 | ||
631ef239 | 1460 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1461 | if $ac_init_version; then |
1462 | cat <<\_ACEOF | |
5a241f54 | 1463 | charybdis configure 3.3.0 |
b6d0720c | 1464 | generated by GNU Autoconf 2.68 |
212380e3 | 1465 | |
b6d0720c | 1466 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 AC |
1467 | This configure script is free software; the Free Software Foundation |
1468 | gives unlimited permission to copy, distribute and modify it. | |
1469 | ||
b676ea3b | 1470 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1471 | _ACEOF |
631ef239 | 1472 | exit |
212380e3 | 1473 | fi |
212380e3 | 1474 | |
7083c021 AC |
1475 | ## ------------------------ ## |
1476 | ## Autoconf initialization. ## | |
1477 | ## ------------------------ ## | |
212380e3 | 1478 | |
7083c021 AC |
1479 | # ac_fn_c_try_compile LINENO |
1480 | # -------------------------- | |
1481 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1482 | ac_fn_c_try_compile () | |
1483 | { | |
1484 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1485 | rm -f conftest.$ac_objext | |
1486 | if { { ac_try="$ac_compile" | |
1487 | case "(($ac_try" in | |
1488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1489 | *) ac_try_echo=$ac_try;; | |
1490 | esac | |
1491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1492 | $as_echo "$ac_try_echo"; } >&5 | |
1493 | (eval "$ac_compile") 2>conftest.err | |
1494 | ac_status=$? | |
1495 | if test -s conftest.err; then | |
1496 | grep -v '^ *+' conftest.err >conftest.er1 | |
1497 | cat conftest.er1 >&5 | |
1498 | mv -f conftest.er1 conftest.err | |
1499 | fi | |
1500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1501 | test $ac_status = 0; } && { | |
1502 | test -z "$ac_c_werror_flag" || | |
1503 | test ! -s conftest.err | |
1504 | } && test -s conftest.$ac_objext; then : | |
1505 | ac_retval=0 | |
1506 | else | |
1507 | $as_echo "$as_me: failed program was:" >&5 | |
1508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1509 | |
7083c021 AC |
1510 | ac_retval=1 |
1511 | fi | |
b6d0720c | 1512 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1513 | as_fn_set_status $ac_retval |
7083c021 AC |
1514 | |
1515 | } # ac_fn_c_try_compile | |
1516 | ||
1517 | # ac_fn_c_try_cpp LINENO | |
1518 | # ---------------------- | |
1519 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1520 | ac_fn_c_try_cpp () | |
212380e3 | 1521 | { |
7083c021 AC |
1522 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1523 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1524 | case "(($ac_try" in | |
1525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1526 | *) ac_try_echo=$ac_try;; | |
1527 | esac | |
1528 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1529 | $as_echo "$ac_try_echo"; } >&5 | |
1530 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1531 | ac_status=$? | |
1532 | if test -s conftest.err; then | |
1533 | grep -v '^ *+' conftest.err >conftest.er1 | |
1534 | cat conftest.er1 >&5 | |
1535 | mv -f conftest.er1 conftest.err | |
1536 | fi | |
1537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b6d0720c | 1538 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1540 | test ! -s conftest.err | |
1541 | }; then : | |
1542 | ac_retval=0 | |
1543 | else | |
1544 | $as_echo "$as_me: failed program was:" >&5 | |
1545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1546 | |
7083c021 AC |
1547 | ac_retval=1 |
1548 | fi | |
b6d0720c | 1549 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1550 | as_fn_set_status $ac_retval |
212380e3 | 1551 | |
7083c021 | 1552 | } # ac_fn_c_try_cpp |
212380e3 | 1553 | |
7083c021 AC |
1554 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1555 | # ------------------------------------------------------- | |
1556 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1557 | # the include files in INCLUDES and setting the cache variable VAR | |
1558 | # accordingly. | |
1559 | ac_fn_c_check_header_mongrel () | |
1560 | { | |
1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b6d0720c | 1562 | if eval \${$3+:} false; then : |
7083c021 AC |
1563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1564 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1565 | if eval \${$3+:} false; then : |
7083c021 AC |
1566 | $as_echo_n "(cached) " >&6 |
1567 | fi | |
1568 | eval ac_res=\$$3 | |
1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1570 | $as_echo "$ac_res" >&6; } | |
1571 | else | |
1572 | # Is the header compilable? | |
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1574 | $as_echo_n "checking $2 usability... " >&6; } | |
1575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1576 | /* end confdefs.h. */ | |
1577 | $4 | |
1578 | #include <$2> | |
1579 | _ACEOF | |
1580 | if ac_fn_c_try_compile "$LINENO"; then : | |
1581 | ac_header_compiler=yes | |
1582 | else | |
1583 | ac_header_compiler=no | |
1584 | fi | |
1585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1587 | $as_echo "$ac_header_compiler" >&6; } | |
212380e3 | 1588 | |
7083c021 AC |
1589 | # Is the header present? |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1591 | $as_echo_n "checking $2 presence... " >&6; } | |
1592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1593 | /* end confdefs.h. */ | |
1594 | #include <$2> | |
1595 | _ACEOF | |
1596 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1597 | ac_header_preproc=yes | |
1598 | else | |
1599 | ac_header_preproc=no | |
1600 | fi | |
b6d0720c | 1601 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1603 | $as_echo "$ac_header_preproc" >&6; } | |
212380e3 | 1604 | |
7083c021 AC |
1605 | # So? What about this header? |
1606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1607 | yes:no: ) | |
1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1609 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1611 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1612 | ;; | |
1613 | no:yes:* ) | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1615 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1617 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1619 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1621 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1623 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1624 | ;; | |
1625 | esac | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1627 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1628 | if eval \${$3+:} false; then : |
7083c021 AC |
1629 | $as_echo_n "(cached) " >&6 |
1630 | else | |
1631 | eval "$3=\$ac_header_compiler" | |
1632 | fi | |
1633 | eval ac_res=\$$3 | |
1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1635 | $as_echo "$ac_res" >&6; } | |
1636 | fi | |
b6d0720c | 1637 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1638 | |
7083c021 | 1639 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1640 | |
7083c021 AC |
1641 | # ac_fn_c_try_run LINENO |
1642 | # ---------------------- | |
1643 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1644 | # that executables *can* be run. | |
1645 | ac_fn_c_try_run () | |
1646 | { | |
1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1648 | if { { ac_try="$ac_link" | |
1649 | case "(($ac_try" in | |
1650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1651 | *) ac_try_echo=$ac_try;; | |
1652 | esac | |
1653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1654 | $as_echo "$ac_try_echo"; } >&5 | |
1655 | (eval "$ac_link") 2>&5 | |
1656 | ac_status=$? | |
1657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1658 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1659 | { { case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_try") 2>&5 | |
1666 | ac_status=$? | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; }; }; then : | |
1669 | ac_retval=0 | |
1670 | else | |
1671 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1672 | $as_echo "$as_me: failed program was:" >&5 | |
1673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1674 | |
7083c021 AC |
1675 | ac_retval=$ac_status |
1676 | fi | |
1677 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1678 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1679 | as_fn_set_status $ac_retval |
212380e3 | 1680 | |
7083c021 | 1681 | } # ac_fn_c_try_run |
212380e3 | 1682 | |
7083c021 AC |
1683 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1684 | # ------------------------------------------------------- | |
1685 | # Tests whether HEADER exists and can be compiled using the include files in | |
1686 | # INCLUDES, setting the cache variable VAR accordingly. | |
1687 | ac_fn_c_check_header_compile () | |
1688 | { | |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1691 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1692 | if eval \${$3+:} false; then : |
7083c021 AC |
1693 | $as_echo_n "(cached) " >&6 |
1694 | else | |
1695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1696 | /* end confdefs.h. */ | |
1697 | $4 | |
1698 | #include <$2> | |
212380e3 | 1699 | _ACEOF |
7083c021 AC |
1700 | if ac_fn_c_try_compile "$LINENO"; then : |
1701 | eval "$3=yes" | |
1702 | else | |
1703 | eval "$3=no" | |
1704 | fi | |
1705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1706 | fi | |
1707 | eval ac_res=\$$3 | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1709 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1710 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1711 | |
7083c021 | 1712 | } # ac_fn_c_check_header_compile |
212380e3 | 1713 | |
7083c021 AC |
1714 | # ac_fn_c_try_link LINENO |
1715 | # ----------------------- | |
1716 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1717 | ac_fn_c_try_link () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1721 | if { { ac_try="$ac_link" | |
1722 | case "(($ac_try" in | |
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 | *) ac_try_echo=$ac_try;; | |
1725 | esac | |
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 | $as_echo "$ac_try_echo"; } >&5 | |
1728 | (eval "$ac_link") 2>conftest.err | |
1729 | ac_status=$? | |
1730 | if test -s conftest.err; then | |
1731 | grep -v '^ *+' conftest.err >conftest.er1 | |
1732 | cat conftest.er1 >&5 | |
1733 | mv -f conftest.er1 conftest.err | |
1734 | fi | |
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 | test $ac_status = 0; } && { | |
1737 | test -z "$ac_c_werror_flag" || | |
1738 | test ! -s conftest.err | |
1739 | } && test -s conftest$ac_exeext && { | |
1740 | test "$cross_compiling" = yes || | |
1741 | $as_test_x conftest$ac_exeext | |
1742 | }; then : | |
1743 | ac_retval=0 | |
212380e3 | 1744 | else |
7083c021 AC |
1745 | $as_echo "$as_me: failed program was:" >&5 |
1746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1747 | |
7083c021 | 1748 | ac_retval=1 |
212380e3 | 1749 | fi |
7083c021 AC |
1750 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1751 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1752 | # interfere with the next link command; also delete a directory that is | |
1753 | # left behind by Apple's compiler. We do this before executing the actions. | |
1754 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1756 | as_fn_set_status $ac_retval |
212380e3 | 1757 | |
7083c021 | 1758 | } # ac_fn_c_try_link |
212380e3 | 1759 | |
7083c021 AC |
1760 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1761 | # ------------------------------------------- | |
1762 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1763 | # variable VAR accordingly. | |
1764 | ac_fn_c_check_type () | |
1765 | { | |
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1768 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1769 | if eval \${$3+:} false; then : |
7083c021 | 1770 | $as_echo_n "(cached) " >&6 |
212380e3 | 1771 | else |
7083c021 AC |
1772 | eval "$3=no" |
1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 | /* end confdefs.h. */ | |
1775 | $4 | |
1776 | int | |
1777 | main () | |
1778 | { | |
1779 | if (sizeof ($2)) | |
1780 | return 0; | |
1781 | ; | |
1782 | return 0; | |
1783 | } | |
212380e3 | 1784 | _ACEOF |
7083c021 AC |
1785 | if ac_fn_c_try_compile "$LINENO"; then : |
1786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1787 | /* end confdefs.h. */ |
7083c021 | 1788 | $4 |
212380e3 AC |
1789 | int |
1790 | main () | |
1791 | { | |
7083c021 AC |
1792 | if (sizeof (($2))) |
1793 | return 0; | |
212380e3 AC |
1794 | ; |
1795 | return 0; | |
1796 | } | |
1797 | _ACEOF | |
7083c021 | 1798 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 1799 | |
631ef239 | 1800 | else |
7083c021 | 1801 | eval "$3=yes" |
212380e3 | 1802 | fi |
7083c021 | 1803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1804 | fi |
7083c021 | 1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1806 | fi |
7083c021 AC |
1807 | eval ac_res=\$$3 |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1809 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1811 | |
7083c021 AC |
1812 | } # ac_fn_c_check_type |
1813 | ||
1814 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1815 | # -------------------------------------------- | |
1816 | # Tries to find the compile-time value of EXPR in a program that includes | |
1817 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1818 | # computed | |
1819 | ac_fn_c_compute_int () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | if test "$cross_compiling" = yes; then | |
1823 | # Depending upon the size, compute the lo and hi bounds. | |
1824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1825 | /* end confdefs.h. */ | |
1826 | $4 | |
1827 | int | |
1828 | main () | |
1829 | { | |
1830 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1831 | test_array [0] = 0 | |
1832 | ||
1833 | ; | |
1834 | return 0; | |
1835 | } | |
212380e3 | 1836 | _ACEOF |
7083c021 AC |
1837 | if ac_fn_c_try_compile "$LINENO"; then : |
1838 | ac_lo=0 ac_mid=0 | |
1839 | while :; do | |
1840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1841 | /* end confdefs.h. */ |
7083c021 AC |
1842 | $4 |
1843 | int | |
1844 | main () | |
1845 | { | |
1846 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1847 | test_array [0] = 0 | |
212380e3 | 1848 | |
7083c021 AC |
1849 | ; |
1850 | return 0; | |
1851 | } | |
212380e3 | 1852 | _ACEOF |
7083c021 AC |
1853 | if ac_fn_c_try_compile "$LINENO"; then : |
1854 | ac_hi=$ac_mid; break | |
212380e3 | 1855 | else |
7083c021 AC |
1856 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1857 | if test $ac_lo -le $ac_mid; then | |
1858 | ac_lo= ac_hi= | |
1859 | break | |
1860 | fi | |
1861 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 1862 | fi |
631ef239 | 1863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
1864 | done |
1865 | else | |
1866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1867 | /* end confdefs.h. */ | |
1868 | $4 | |
1869 | int | |
1870 | main () | |
1871 | { | |
1872 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1873 | test_array [0] = 0 | |
212380e3 | 1874 | |
7083c021 AC |
1875 | ; |
1876 | return 0; | |
1877 | } | |
212380e3 | 1878 | _ACEOF |
7083c021 AC |
1879 | if ac_fn_c_try_compile "$LINENO"; then : |
1880 | ac_hi=-1 ac_mid=-1 | |
1881 | while :; do | |
1882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1883 | /* end confdefs.h. */ | |
1884 | $4 | |
1885 | int | |
1886 | main () | |
1887 | { | |
1888 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1889 | test_array [0] = 0 | |
212380e3 | 1890 | |
7083c021 AC |
1891 | ; |
1892 | return 0; | |
1893 | } | |
1894 | _ACEOF | |
1895 | if ac_fn_c_try_compile "$LINENO"; then : | |
1896 | ac_lo=$ac_mid; break | |
1897 | else | |
1898 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1899 | if test $ac_mid -le $ac_hi; then | |
1900 | ac_lo= ac_hi= | |
1901 | break | |
1902 | fi | |
1903 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 1904 | fi |
7083c021 AC |
1905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1906 | done | |
212380e3 | 1907 | else |
7083c021 AC |
1908 | ac_lo= ac_hi= |
1909 | fi | |
1910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1911 | fi | |
1912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1913 | # Binary search between lo and hi bounds. | |
1914 | while test "x$ac_lo" != "x$ac_hi"; do | |
1915 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1917 | /* end confdefs.h. */ |
7083c021 AC |
1918 | $4 |
1919 | int | |
1920 | main () | |
1921 | { | |
1922 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1923 | test_array [0] = 0 | |
1924 | ||
1925 | ; | |
1926 | return 0; | |
1927 | } | |
212380e3 | 1928 | _ACEOF |
7083c021 AC |
1929 | if ac_fn_c_try_compile "$LINENO"; then : |
1930 | ac_hi=$ac_mid | |
212380e3 | 1931 | else |
7083c021 | 1932 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 1933 | fi |
7083c021 AC |
1934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1935 | done | |
1936 | case $ac_lo in #(( | |
1937 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1938 | '') ac_retval=1 ;; | |
1939 | esac | |
1940 | else | |
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1942 | /* end confdefs.h. */ | |
1943 | $4 | |
1944 | static long int longval () { return $2; } | |
1945 | static unsigned long int ulongval () { return $2; } | |
1946 | #include <stdio.h> | |
1947 | #include <stdlib.h> | |
1948 | int | |
1949 | main () | |
1950 | { | |
631ef239 | 1951 | |
7083c021 AC |
1952 | FILE *f = fopen ("conftest.val", "w"); |
1953 | if (! f) | |
1954 | return 1; | |
1955 | if (($2) < 0) | |
1956 | { | |
1957 | long int i = longval (); | |
1958 | if (i != ($2)) | |
1959 | return 1; | |
1960 | fprintf (f, "%ld", i); | |
1961 | } | |
1962 | else | |
1963 | { | |
1964 | unsigned long int i = ulongval (); | |
1965 | if (i != ($2)) | |
1966 | return 1; | |
1967 | fprintf (f, "%lu", i); | |
1968 | } | |
1969 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1970 | on some platforms. */ | |
1971 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 1972 | |
7083c021 AC |
1973 | ; |
1974 | return 0; | |
1975 | } | |
212380e3 | 1976 | _ACEOF |
7083c021 AC |
1977 | if ac_fn_c_try_run "$LINENO"; then : |
1978 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 1979 | else |
7083c021 | 1980 | ac_retval=1 |
212380e3 | 1981 | fi |
7083c021 AC |
1982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
1983 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1984 | rm -f conftest.val | |
631ef239 | 1985 | |
7083c021 | 1986 | fi |
b6d0720c | 1987 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1988 | as_fn_set_status $ac_retval |
212380e3 | 1989 | |
7083c021 | 1990 | } # ac_fn_c_compute_int |
212380e3 | 1991 | |
7083c021 AC |
1992 | # ac_fn_c_check_func LINENO FUNC VAR |
1993 | # ---------------------------------- | |
1994 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1995 | ac_fn_c_check_func () | |
1996 | { | |
1997 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1999 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2000 | if eval \${$3+:} false; then : |
7083c021 | 2001 | $as_echo_n "(cached) " >&6 |
212380e3 | 2002 | else |
7083c021 | 2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 2004 | /* end confdefs.h. */ |
7083c021 AC |
2005 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2007 | #define $2 innocuous_$2 | |
2008 | ||
2009 | /* System header to define __stub macros and hopefully few prototypes, | |
2010 | which can conflict with char $2 (); below. | |
2011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2012 | <limits.h> exists even on freestanding compilers. */ | |
2013 | ||
212380e3 AC |
2014 | #ifdef __STDC__ |
2015 | # include <limits.h> | |
2016 | #else | |
2017 | # include <assert.h> | |
2018 | #endif | |
212380e3 | 2019 | |
7083c021 | 2020 | #undef $2 |
631ef239 | 2021 | |
7083c021 AC |
2022 | /* Override any GCC internal prototype to avoid an error. |
2023 | Use char because int might match the return type of a GCC | |
2024 | builtin and then its argument prototype would still apply. */ | |
2025 | #ifdef __cplusplus | |
2026 | extern "C" | |
2027 | #endif | |
2028 | char $2 (); | |
2029 | /* The GNU C library defines this for functions which it implements | |
2030 | to always fail with ENOSYS. Some functions are actually named | |
2031 | something starting with __ and the normal name is an alias. */ | |
2032 | #if defined __stub_$2 || defined __stub___$2 | |
2033 | choke me | |
2034 | #endif | |
212380e3 | 2035 | |
7083c021 AC |
2036 | int |
2037 | main () | |
2038 | { | |
2039 | return $2 (); | |
2040 | ; | |
2041 | return 0; | |
2042 | } | |
212380e3 | 2043 | _ACEOF |
7083c021 AC |
2044 | if ac_fn_c_try_link "$LINENO"; then : |
2045 | eval "$3=yes" | |
212380e3 | 2046 | else |
7083c021 AC |
2047 | eval "$3=no" |
2048 | fi | |
2049 | rm -f core conftest.err conftest.$ac_objext \ | |
2050 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 2051 | fi |
7083c021 AC |
2052 | eval ac_res=\$$3 |
2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2054 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2055 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
631ef239 | 2056 | |
7083c021 AC |
2057 | } # ac_fn_c_check_func |
2058 | cat >config.log <<_ACEOF | |
2059 | This file contains any messages produced by compilers while | |
2060 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2061 | |
5a241f54 | 2062 | It was created by charybdis $as_me 3.3.0, which was |
b6d0720c | 2063 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 | 2064 | |
7083c021 | 2065 | $ $0 $@ |
212380e3 | 2066 | |
7083c021 AC |
2067 | _ACEOF |
2068 | exec 5>>config.log | |
2069 | { | |
2070 | cat <<_ASUNAME | |
2071 | ## --------- ## | |
2072 | ## Platform. ## | |
2073 | ## --------- ## | |
2074 | ||
2075 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2076 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2077 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2078 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2079 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2080 | ||
2081 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2082 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2083 | ||
2084 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2085 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2086 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2087 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2088 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2089 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2090 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2091 | ||
2092 | _ASUNAME | |
212380e3 | 2093 | |
631ef239 | 2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2095 | for as_dir in $PATH |
631ef239 AC |
2096 | do |
2097 | IFS=$as_save_IFS | |
2098 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2099 | $as_echo "PATH: $as_dir" |
631ef239 | 2100 | done |
631ef239 AC |
2101 | IFS=$as_save_IFS |
2102 | ||
7083c021 | 2103 | } >&5 |
631ef239 | 2104 | |
7083c021 | 2105 | cat >&5 <<_ACEOF |
631ef239 | 2106 | |
631ef239 | 2107 | |
7083c021 AC |
2108 | ## ----------- ## |
2109 | ## Core tests. ## | |
2110 | ## ----------- ## | |
631ef239 | 2111 | |
7083c021 | 2112 | _ACEOF |
631ef239 AC |
2113 | |
2114 | ||
7083c021 AC |
2115 | # Keep a trace of the command line. |
2116 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2117 | # Strip out --silent because we don't want to record it for future runs. | |
2118 | # Also quote any args containing shell meta-characters. | |
2119 | # Make two passes to allow for proper duplicate-argument suppression. | |
2120 | ac_configure_args= | |
2121 | ac_configure_args0= | |
2122 | ac_configure_args1= | |
2123 | ac_must_keep_next=false | |
2124 | for ac_pass in 1 2 | |
631ef239 | 2125 | do |
7083c021 | 2126 | for ac_arg |
631ef239 | 2127 | do |
7083c021 AC |
2128 | case $ac_arg in |
2129 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2131 | | -silent | --silent | --silen | --sile | --sil) | |
2132 | continue ;; | |
2133 | *\'*) | |
2134 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2135 | esac | |
2136 | case $ac_pass in | |
2137 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2138 | 2) | |
2139 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2140 | if test $ac_must_keep_next = true; then | |
2141 | ac_must_keep_next=false # Got value, back to normal. | |
2142 | else | |
2143 | case $ac_arg in | |
2144 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2145 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2146 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2147 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2148 | case "$ac_configure_args0 " in | |
2149 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2150 | esac | |
2151 | ;; | |
2152 | -* ) ac_must_keep_next=true ;; | |
2153 | esac | |
2154 | fi | |
2155 | as_fn_append ac_configure_args " '$ac_arg'" | |
2156 | ;; | |
2157 | esac | |
631ef239 AC |
2158 | done |
2159 | done | |
7083c021 AC |
2160 | { ac_configure_args0=; unset ac_configure_args0;} |
2161 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2162 | |
7083c021 AC |
2163 | # When interrupted or exit'd, cleanup temporary files, and complete |
2164 | # config.log. We remove comments because anyway the quotes in there | |
2165 | # would cause problems or look ugly. | |
2166 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2167 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2168 | trap 'exit_status=$? | |
2169 | # Save into config.log some information that might help in debugging. | |
2170 | { | |
2171 | echo | |
631ef239 | 2172 | |
b6d0720c | 2173 | $as_echo "## ---------------- ## |
7083c021 | 2174 | ## Cache variables. ## |
b6d0720c | 2175 | ## ---------------- ##" |
7083c021 AC |
2176 | echo |
2177 | # The following way of writing the cache mishandles newlines in values, | |
2178 | ( | |
2179 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2180 | eval ac_val=\$$ac_var | |
2181 | case $ac_val in #( | |
2182 | *${as_nl}*) | |
2183 | case $ac_var in #( | |
2184 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2185 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2186 | esac | |
2187 | case $ac_var in #( | |
2188 | _ | IFS | as_nl) ;; #( | |
2189 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2190 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2191 | esac ;; | |
2192 | esac | |
2193 | done | |
2194 | (set) 2>&1 | | |
2195 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2196 | *${as_nl}ac_space=\ *) | |
2197 | sed -n \ | |
2198 | "s/'\''/'\''\\\\'\'''\''/g; | |
2199 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2200 | ;; #( | |
2201 | *) | |
2202 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2203 | ;; | |
2204 | esac | | |
2205 | sort | |
2206 | ) | |
2207 | echo | |
631ef239 | 2208 | |
b6d0720c | 2209 | $as_echo "## ----------------- ## |
7083c021 | 2210 | ## Output variables. ## |
b6d0720c | 2211 | ## ----------------- ##" |
7083c021 AC |
2212 | echo |
2213 | for ac_var in $ac_subst_vars | |
2214 | do | |
2215 | eval ac_val=\$$ac_var | |
2216 | case $ac_val in | |
2217 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2218 | esac | |
2219 | $as_echo "$ac_var='\''$ac_val'\''" | |
2220 | done | sort | |
2221 | echo | |
631ef239 | 2222 | |
7083c021 | 2223 | if test -n "$ac_subst_files"; then |
b6d0720c | 2224 | $as_echo "## ------------------- ## |
7083c021 | 2225 | ## File substitutions. ## |
b6d0720c | 2226 | ## ------------------- ##" |
7083c021 AC |
2227 | echo |
2228 | for ac_var in $ac_subst_files | |
2229 | do | |
2230 | eval ac_val=\$$ac_var | |
2231 | case $ac_val in | |
2232 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2233 | esac | |
2234 | $as_echo "$ac_var='\''$ac_val'\''" | |
2235 | done | sort | |
2236 | echo | |
2237 | fi | |
631ef239 | 2238 | |
7083c021 | 2239 | if test -s confdefs.h; then |
b6d0720c | 2240 | $as_echo "## ----------- ## |
7083c021 | 2241 | ## confdefs.h. ## |
b6d0720c | 2242 | ## ----------- ##" |
7083c021 AC |
2243 | echo |
2244 | cat confdefs.h | |
2245 | echo | |
2246 | fi | |
2247 | test "$ac_signal" != 0 && | |
2248 | $as_echo "$as_me: caught signal $ac_signal" | |
2249 | $as_echo "$as_me: exit $exit_status" | |
2250 | } >&5 | |
2251 | rm -f core *.core core.conftest.* && | |
2252 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2253 | exit $exit_status | |
2254 | ' 0 | |
2255 | for ac_signal in 1 2 13 15; do | |
2256 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2257 | done | |
2258 | ac_signal=0 | |
631ef239 | 2259 | |
7083c021 AC |
2260 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2261 | rm -f -r conftest* confdefs.h | |
631ef239 | 2262 | |
7083c021 | 2263 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2264 | |
7083c021 | 2265 | # Predefined preprocessor variables. |
212380e3 | 2266 | |
7083c021 AC |
2267 | cat >>confdefs.h <<_ACEOF |
2268 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2269 | _ACEOF |
212380e3 | 2270 | |
7083c021 AC |
2271 | cat >>confdefs.h <<_ACEOF |
2272 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2273 | _ACEOF |
212380e3 | 2274 | |
7083c021 AC |
2275 | cat >>confdefs.h <<_ACEOF |
2276 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2277 | _ACEOF |
212380e3 | 2278 | |
7083c021 AC |
2279 | cat >>confdefs.h <<_ACEOF |
2280 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2281 | _ACEOF | |
212380e3 | 2282 | |
7083c021 AC |
2283 | cat >>confdefs.h <<_ACEOF |
2284 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2285 | _ACEOF | |
212380e3 | 2286 | |
7083c021 AC |
2287 | cat >>confdefs.h <<_ACEOF |
2288 | #define PACKAGE_URL "$PACKAGE_URL" | |
2289 | _ACEOF | |
212380e3 | 2290 | |
631ef239 | 2291 | |
7083c021 AC |
2292 | # Let the site file select an alternate cache file if it wants to. |
2293 | # Prefer an explicitly selected file to automatically selected ones. | |
2294 | ac_site_file1=NONE | |
2295 | ac_site_file2=NONE | |
2296 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2297 | # We do not want a PATH search for config.site. |
2298 | case $CONFIG_SITE in #(( | |
2299 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2300 | */*) ac_site_file1=$CONFIG_SITE;; | |
2301 | *) ac_site_file1=./$CONFIG_SITE;; | |
2302 | esac | |
7083c021 AC |
2303 | elif test "x$prefix" != xNONE; then |
2304 | ac_site_file1=$prefix/share/config.site | |
2305 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2306 | else |
7083c021 AC |
2307 | ac_site_file1=$ac_default_prefix/share/config.site |
2308 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2309 | fi | |
2310 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2311 | do |
7083c021 | 2312 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2313 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2315 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2316 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2317 | . "$ac_site_file" \ |
2318 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2320 | as_fn_error $? "failed to load site script $ac_site_file | |
2321 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2322 | fi |
2323 | done | |
212380e3 | 2324 | |
7083c021 | 2325 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2326 | # Some versions of bash will fail to source /dev/null (special files |
2327 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2328 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2330 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2331 | case $cache_file in | |
2332 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2333 | *) . "./$cache_file";; | |
2334 | esac | |
2335 | fi | |
212380e3 | 2336 | else |
7083c021 AC |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2338 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2339 | >$cache_file | |
212380e3 AC |
2340 | fi |
2341 | ||
7083c021 AC |
2342 | # Check that the precious variables saved in the cache have kept the same |
2343 | # value. | |
2344 | ac_cache_corrupted=false | |
2345 | for ac_var in $ac_precious_vars; do | |
2346 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2347 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2348 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2349 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2350 | case $ac_old_set,$ac_new_set in | |
2351 | set,) | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2353 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2354 | ac_cache_corrupted=: ;; | |
2355 | ,set) | |
2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2357 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2358 | ac_cache_corrupted=: ;; | |
2359 | ,);; | |
2360 | *) | |
2361 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2362 | # differences in whitespace do not lead to failure. | |
2363 | ac_old_val_w=`echo x $ac_old_val` | |
2364 | ac_new_val_w=`echo x $ac_new_val` | |
2365 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2367 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2368 | ac_cache_corrupted=: | |
2369 | else | |
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2371 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2372 | eval $ac_var=\$ac_old_val | |
2373 | fi | |
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2375 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2377 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2378 | fi;; | |
2379 | esac | |
2380 | # Pass precious variables to config.status. | |
2381 | if test "$ac_new_set" = set; then | |
2382 | case $ac_new_val in | |
2383 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2384 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2385 | esac | |
2386 | case " $ac_configure_args " in | |
2387 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2388 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2389 | esac | |
212380e3 AC |
2390 | fi |
2391 | done | |
7083c021 AC |
2392 | if $ac_cache_corrupted; then |
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2396 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2397 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2398 | fi |
7083c021 AC |
2399 | ## -------------------- ## |
2400 | ## Main body of script. ## | |
2401 | ## -------------------- ## | |
212380e3 | 2402 | |
7083c021 AC |
2403 | ac_ext=c |
2404 | ac_cpp='$CPP $CPPFLAGS' | |
2405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2408 | |
212380e3 | 2409 | |
212380e3 | 2410 | |
7083c021 | 2411 | ac_config_headers="$ac_config_headers include/setup.h" |
631ef239 | 2412 | |
212380e3 | 2413 | |
212380e3 | 2414 | |
631ef239 | 2415 | |
7083c021 AC |
2416 | ac_ext=c |
2417 | ac_cpp='$CPP $CPPFLAGS' | |
2418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2421 | if test -n "$ac_tool_prefix"; then | |
2422 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2423 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2425 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2426 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2427 | $as_echo_n "(cached) " >&6 |
212380e3 | 2428 | else |
7083c021 AC |
2429 | if test -n "$CC"; then |
2430 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2431 | else | |
2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2433 | for as_dir in $PATH |
2434 | do | |
2435 | IFS=$as_save_IFS | |
2436 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2437 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2439 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2441 | break 2 |
2442 | fi | |
2443 | done | |
7083c021 | 2444 | done |
631ef239 | 2445 | IFS=$as_save_IFS |
212380e3 | 2446 | |
212380e3 | 2447 | fi |
7083c021 AC |
2448 | fi |
2449 | CC=$ac_cv_prog_CC | |
2450 | if test -n "$CC"; then | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2452 | $as_echo "$CC" >&6; } | |
212380e3 | 2453 | else |
7083c021 AC |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2455 | $as_echo "no" >&6; } | |
212380e3 AC |
2456 | fi |
2457 | ||
631ef239 | 2458 | |
7083c021 AC |
2459 | fi |
2460 | if test -z "$ac_cv_prog_CC"; then | |
2461 | ac_ct_CC=$CC | |
2462 | # Extract the first word of "gcc", so it can be a program name with args. | |
2463 | set dummy gcc; ac_word=$2 | |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2465 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2466 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2467 | $as_echo_n "(cached) " >&6 |
212380e3 | 2468 | else |
7083c021 AC |
2469 | if test -n "$ac_ct_CC"; then |
2470 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2471 | else | |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2473 | for as_dir in $PATH |
2474 | do | |
2475 | IFS=$as_save_IFS | |
2476 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2479 | ac_cv_prog_ac_ct_CC="gcc" |
2480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2481 | break 2 |
2482 | fi | |
2483 | done | |
7083c021 | 2484 | done |
631ef239 | 2485 | IFS=$as_save_IFS |
212380e3 | 2486 | |
212380e3 | 2487 | fi |
7083c021 AC |
2488 | fi |
2489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2490 | if test -n "$ac_ct_CC"; then | |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2492 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2493 | else |
7083c021 AC |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2495 | $as_echo "no" >&6; } | |
212380e3 AC |
2496 | fi |
2497 | ||
7083c021 AC |
2498 | if test "x$ac_ct_CC" = x; then |
2499 | CC="" | |
2500 | else | |
2501 | case $cross_compiling:$ac_tool_warned in | |
2502 | yes:) | |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2505 | ac_tool_warned=yes ;; | |
2506 | esac | |
2507 | CC=$ac_ct_CC | |
2508 | fi | |
2509 | else | |
2510 | CC="$ac_cv_prog_CC" | |
2511 | fi | |
631ef239 | 2512 | |
7083c021 AC |
2513 | if test -z "$CC"; then |
2514 | if test -n "$ac_tool_prefix"; then | |
2515 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2516 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2518 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2519 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2520 | $as_echo_n "(cached) " >&6 |
212380e3 | 2521 | else |
7083c021 AC |
2522 | if test -n "$CC"; then |
2523 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2524 | else | |
2525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2526 | for as_dir in $PATH |
2527 | do | |
2528 | IFS=$as_save_IFS | |
2529 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2530 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2532 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2534 | break 2 |
2535 | fi | |
2536 | done | |
7083c021 | 2537 | done |
631ef239 | 2538 | IFS=$as_save_IFS |
7083c021 | 2539 | |
212380e3 | 2540 | fi |
7083c021 AC |
2541 | fi |
2542 | CC=$ac_cv_prog_CC | |
2543 | if test -n "$CC"; then | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2545 | $as_echo "$CC" >&6; } | |
212380e3 | 2546 | else |
7083c021 AC |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2548 | $as_echo "no" >&6; } | |
212380e3 AC |
2549 | fi |
2550 | ||
631ef239 | 2551 | |
7083c021 AC |
2552 | fi |
2553 | fi | |
2554 | if test -z "$CC"; then | |
2555 | # Extract the first word of "cc", so it can be a program name with args. | |
2556 | set dummy cc; ac_word=$2 | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2558 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2559 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2560 | $as_echo_n "(cached) " >&6 |
212380e3 | 2561 | else |
7083c021 AC |
2562 | if test -n "$CC"; then |
2563 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2564 | else | |
2565 | ac_prog_rejected=no | |
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2567 | for as_dir in $PATH |
2568 | do | |
2569 | IFS=$as_save_IFS | |
2570 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2571 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2573 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2574 | ac_prog_rejected=yes | |
2575 | continue | |
2576 | fi | |
2577 | ac_cv_prog_CC="cc" | |
2578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2579 | break 2 |
2580 | fi | |
2581 | done | |
7083c021 | 2582 | done |
631ef239 | 2583 | IFS=$as_save_IFS |
212380e3 | 2584 | |
7083c021 AC |
2585 | if test $ac_prog_rejected = yes; then |
2586 | # We found a bogon in the path, so make sure we never use it. | |
2587 | set dummy $ac_cv_prog_CC | |
2588 | shift | |
2589 | if test $# != 0; then | |
2590 | # We chose a different compiler from the bogus one. | |
2591 | # However, it has the same basename, so the bogon will be chosen | |
2592 | # first if we set CC to just the basename; use the full file name. | |
2593 | shift | |
2594 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2595 | fi | |
212380e3 | 2596 | fi |
7083c021 AC |
2597 | fi |
2598 | fi | |
2599 | CC=$ac_cv_prog_CC | |
2600 | if test -n "$CC"; then | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2602 | $as_echo "$CC" >&6; } | |
212380e3 | 2603 | else |
7083c021 AC |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2605 | $as_echo "no" >&6; } | |
212380e3 AC |
2606 | fi |
2607 | ||
2608 | ||
7083c021 AC |
2609 | fi |
2610 | if test -z "$CC"; then | |
2611 | if test -n "$ac_tool_prefix"; then | |
2612 | for ac_prog in cl.exe | |
2613 | do | |
2614 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2615 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2617 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2618 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2619 | $as_echo_n "(cached) " >&6 |
212380e3 | 2620 | else |
7083c021 AC |
2621 | if test -n "$CC"; then |
2622 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2623 | else |
2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2625 | for as_dir in $PATH | |
2626 | do | |
2627 | IFS=$as_save_IFS | |
2628 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2631 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2633 | break 2 |
2634 | fi | |
2635 | done | |
7083c021 | 2636 | done |
631ef239 | 2637 | IFS=$as_save_IFS |
212380e3 AC |
2638 | |
2639 | fi | |
2640 | fi | |
7083c021 AC |
2641 | CC=$ac_cv_prog_CC |
2642 | if test -n "$CC"; then | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2644 | $as_echo "$CC" >&6; } | |
212380e3 | 2645 | else |
7083c021 AC |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2647 | $as_echo "no" >&6; } | |
212380e3 AC |
2648 | fi |
2649 | ||
631ef239 | 2650 | |
7083c021 AC |
2651 | test -n "$CC" && break |
2652 | done | |
212380e3 | 2653 | fi |
7083c021 AC |
2654 | if test -z "$CC"; then |
2655 | ac_ct_CC=$CC | |
2656 | for ac_prog in cl.exe | |
212380e3 AC |
2657 | do |
2658 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2659 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2661 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2662 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2663 | $as_echo_n "(cached) " >&6 |
212380e3 | 2664 | else |
7083c021 AC |
2665 | if test -n "$ac_ct_CC"; then |
2666 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 AC |
2667 | else |
2668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2669 | for as_dir in $PATH | |
2670 | do | |
2671 | IFS=$as_save_IFS | |
2672 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2673 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2675 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2677 | break 2 |
2678 | fi | |
2679 | done | |
7083c021 | 2680 | done |
631ef239 | 2681 | IFS=$as_save_IFS |
212380e3 AC |
2682 | |
2683 | fi | |
2684 | fi | |
7083c021 AC |
2685 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2686 | if test -n "$ac_ct_CC"; then | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2688 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2689 | else |
7083c021 AC |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2691 | $as_echo "no" >&6; } | |
212380e3 AC |
2692 | fi |
2693 | ||
631ef239 | 2694 | |
7083c021 | 2695 | test -n "$ac_ct_CC" && break |
212380e3 | 2696 | done |
212380e3 | 2697 | |
7083c021 AC |
2698 | if test "x$ac_ct_CC" = x; then |
2699 | CC="" | |
2700 | else | |
2701 | case $cross_compiling:$ac_tool_warned in | |
2702 | yes:) | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2704 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2705 | ac_tool_warned=yes ;; | |
2706 | esac | |
2707 | CC=$ac_ct_CC | |
2708 | fi | |
2709 | fi | |
2710 | ||
2711 | fi | |
2712 | ||
2713 | ||
2714 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2715 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2716 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2717 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2718 | |
2719 | # Provide some information about the compiler. | |
2720 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2721 | set X $ac_compile | |
2722 | ac_compiler=$2 | |
2723 | for ac_option in --version -v -V -qversion; do | |
2724 | { { ac_try="$ac_compiler $ac_option >&5" | |
2725 | case "(($ac_try" in | |
2726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2727 | *) ac_try_echo=$ac_try;; | |
2728 | esac | |
2729 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2730 | $as_echo "$ac_try_echo"; } >&5 | |
2731 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2732 | ac_status=$? | |
2733 | if test -s conftest.err; then | |
2734 | sed '10a\ | |
2735 | ... rest of stderr output deleted ... | |
2736 | 10q' conftest.err >conftest.er1 | |
2737 | cat conftest.er1 >&5 | |
7083c021 | 2738 | fi |
6fb6bd15 | 2739 | rm -f conftest.er1 conftest.err |
7083c021 AC |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2741 | test $ac_status = 0; } | |
2742 | done | |
2743 | ||
2744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2745 | /* end confdefs.h. */ | |
6fb6bd15 | 2746 | |
212380e3 | 2747 | int |
7083c021 | 2748 | main () |
212380e3 | 2749 | { |
7083c021 AC |
2750 | |
2751 | ; | |
2752 | return 0; | |
212380e3 AC |
2753 | } |
2754 | _ACEOF | |
7083c021 | 2755 | ac_clean_files_save=$ac_clean_files |
6fb6bd15 | 2756 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
7083c021 AC |
2757 | # Try to create an executable without -o first, disregard a.out. |
2758 | # It will help us diagnose broken compilers, and finding out an intuition | |
2759 | # of exeext. | |
6fb6bd15 AC |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2761 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
7083c021 AC |
2762 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2763 | ||
2764 | # The possible output files: | |
2765 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2766 | ||
2767 | ac_rmfiles= | |
2768 | for ac_file in $ac_files | |
2769 | do | |
2770 | case $ac_file in | |
2771 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2772 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2773 | esac | |
2774 | done | |
2775 | rm -f $ac_rmfiles | |
2776 | ||
2777 | if { { ac_try="$ac_link_default" | |
631ef239 AC |
2778 | case "(($ac_try" in |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2780 | *) ac_try_echo=$ac_try;; | |
2781 | esac | |
7083c021 AC |
2782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2783 | $as_echo "$ac_try_echo"; } >&5 | |
2784 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2785 | ac_status=$? |
7083c021 AC |
2786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2787 | test $ac_status = 0; }; then : | |
2788 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2789 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2790 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2791 | # so that the user can short-circuit this test for compilers unknown to | |
2792 | # Autoconf. | |
2793 | for ac_file in $ac_files '' | |
2794 | do | |
2795 | test -f "$ac_file" || continue | |
2796 | case $ac_file in | |
2797 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2798 | ;; | |
2799 | [ab].out ) | |
2800 | # We found the default executable, but exeext='' is most | |
2801 | # certainly right. | |
2802 | break;; | |
2803 | *.* ) | |
2804 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2805 | then :; else | |
2806 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2807 | fi | |
2808 | # We set ac_cv_exeext here because the later test for it is not | |
2809 | # safe: cross compilers may not add the suffix if given an `-o' | |
2810 | # argument, so we may need to know it at that point already. | |
2811 | # Even if this section looks crufty: it has the advantage of | |
2812 | # actually working. | |
2813 | break;; | |
2814 | * ) | |
2815 | break;; | |
2816 | esac | |
2817 | done | |
2818 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
212380e3 | 2819 | |
212380e3 | 2820 | else |
7083c021 | 2821 | ac_file='' |
631ef239 | 2822 | fi |
7083c021 | 2823 | if test -z "$ac_file"; then : |
6fb6bd15 AC |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2825 | $as_echo "no" >&6; } | |
2826 | $as_echo "$as_me: failed program was:" >&5 | |
7083c021 AC |
2827 | sed 's/^/| /' conftest.$ac_ext >&5 |
2828 | ||
2829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2831 | as_fn_error 77 "C compiler cannot create executables |
2832 | See \`config.log' for more details" "$LINENO" 5; } | |
6fb6bd15 AC |
2833 | else |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2835 | $as_echo "yes" >&6; } | |
631ef239 | 2836 | fi |
6fb6bd15 AC |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2838 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2840 | $as_echo "$ac_file" >&6; } | |
7083c021 | 2841 | ac_exeext=$ac_cv_exeext |
631ef239 | 2842 | |
6fb6bd15 | 2843 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
7083c021 | 2844 | ac_clean_files=$ac_clean_files_save |
7083c021 AC |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2846 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2847 | if { { ac_try="$ac_link" | |
2848 | case "(($ac_try" in | |
2849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2850 | *) ac_try_echo=$ac_try;; | |
2851 | esac | |
2852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2853 | $as_echo "$ac_try_echo"; } >&5 | |
2854 | (eval "$ac_link") 2>&5 | |
2855 | ac_status=$? | |
2856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2857 | test $ac_status = 0; }; then : | |
2858 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2859 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2860 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2861 | # `rm'. | |
2862 | for ac_file in conftest.exe conftest conftest.*; do | |
2863 | test -f "$ac_file" || continue | |
2864 | case $ac_file in | |
2865 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2866 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2867 | break;; | |
2868 | * ) break;; | |
2869 | esac | |
2870 | done | |
212380e3 | 2871 | else |
7083c021 AC |
2872 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2874 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2875 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 2876 | fi |
6fb6bd15 | 2877 | rm -f conftest conftest$ac_cv_exeext |
7083c021 AC |
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2879 | $as_echo "$ac_cv_exeext" >&6; } | |
2880 | ||
2881 | rm -f conftest.$ac_ext | |
2882 | EXEEXT=$ac_cv_exeext | |
2883 | ac_exeext=$EXEEXT | |
6fb6bd15 AC |
2884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2885 | /* end confdefs.h. */ | |
2886 | #include <stdio.h> | |
2887 | int | |
2888 | main () | |
2889 | { | |
2890 | FILE *f = fopen ("conftest.out", "w"); | |
2891 | return ferror (f) || fclose (f) != 0; | |
2892 | ||
2893 | ; | |
2894 | return 0; | |
2895 | } | |
2896 | _ACEOF | |
2897 | ac_clean_files="$ac_clean_files conftest.out" | |
2898 | # Check that the compiler produces executables we can run. If not, either | |
2899 | # the compiler is broken, or we cross compile. | |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2901 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2902 | if test "$cross_compiling" != yes; then | |
2903 | { { ac_try="$ac_link" | |
2904 | case "(($ac_try" in | |
2905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2906 | *) ac_try_echo=$ac_try;; | |
2907 | esac | |
2908 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2909 | $as_echo "$ac_try_echo"; } >&5 | |
2910 | (eval "$ac_link") 2>&5 | |
2911 | ac_status=$? | |
2912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2913 | test $ac_status = 0; } | |
2914 | if { ac_try='./conftest$ac_cv_exeext' | |
2915 | { { case "(($ac_try" in | |
2916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2917 | *) ac_try_echo=$ac_try;; | |
2918 | esac | |
2919 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2920 | $as_echo "$ac_try_echo"; } >&5 | |
2921 | (eval "$ac_try") 2>&5 | |
2922 | ac_status=$? | |
2923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2924 | test $ac_status = 0; }; }; then | |
2925 | cross_compiling=no | |
2926 | else | |
2927 | if test "$cross_compiling" = maybe; then | |
2928 | cross_compiling=yes | |
2929 | else | |
2930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c | 2932 | as_fn_error $? "cannot run C compiled programs. |
6fb6bd15 | 2933 | If you meant to cross compile, use \`--host'. |
b6d0720c | 2934 | See \`config.log' for more details" "$LINENO" 5; } |
6fb6bd15 AC |
2935 | fi |
2936 | fi | |
2937 | fi | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2939 | $as_echo "$cross_compiling" >&6; } | |
2940 | ||
2941 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2942 | ac_clean_files=$ac_clean_files_save | |
7083c021 AC |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2944 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b6d0720c | 2945 | if ${ac_cv_objext+:} false; then : |
7083c021 AC |
2946 | $as_echo_n "(cached) " >&6 |
2947 | else | |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2949 | /* end confdefs.h. */ | |
212380e3 | 2950 | |
7083c021 AC |
2951 | int |
2952 | main () | |
2953 | { | |
2954 | ||
2955 | ; | |
2956 | return 0; | |
2957 | } | |
212380e3 | 2958 | _ACEOF |
7083c021 AC |
2959 | rm -f conftest.o conftest.obj |
2960 | if { { ac_try="$ac_compile" | |
631ef239 AC |
2961 | case "(($ac_try" in |
2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2963 | *) ac_try_echo=$ac_try;; | |
2964 | esac | |
7083c021 AC |
2965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2966 | $as_echo "$ac_try_echo"; } >&5 | |
2967 | (eval "$ac_compile") 2>&5 | |
212380e3 | 2968 | ac_status=$? |
7083c021 AC |
2969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2970 | test $ac_status = 0; }; then : | |
2971 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2972 | test -f "$ac_file" || continue; | |
2973 | case $ac_file in | |
2974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2975 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2976 | break;; | |
2977 | esac | |
2978 | done | |
212380e3 | 2979 | else |
7083c021 | 2980 | $as_echo "$as_me: failed program was:" >&5 |
212380e3 AC |
2981 | sed 's/^/| /' conftest.$ac_ext >&5 |
2982 | ||
7083c021 AC |
2983 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2984 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2985 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2986 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2987 | fi |
2988 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
212380e3 | 2989 | fi |
7083c021 AC |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2991 | $as_echo "$ac_cv_objext" >&6; } | |
2992 | OBJEXT=$ac_cv_objext | |
2993 | ac_objext=$OBJEXT | |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2995 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 2996 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 AC |
2997 | $as_echo_n "(cached) " >&6 |
2998 | else | |
2999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3000 | /* end confdefs.h. */ | |
212380e3 | 3001 | |
7083c021 AC |
3002 | int |
3003 | main () | |
3004 | { | |
3005 | #ifndef __GNUC__ | |
3006 | choke me | |
3007 | #endif | |
212380e3 | 3008 | |
7083c021 AC |
3009 | ; |
3010 | return 0; | |
3011 | } | |
3012 | _ACEOF | |
3013 | if ac_fn_c_try_compile "$LINENO"; then : | |
3014 | ac_compiler_gnu=yes | |
3015 | else | |
3016 | ac_compiler_gnu=no | |
212380e3 | 3017 | fi |
7083c021 AC |
3018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3019 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3020 | ||
3021 | fi | |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3023 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3024 | if test $ac_compiler_gnu = yes; then | |
3025 | GCC=yes | |
3026 | else | |
3027 | GCC= | |
212380e3 | 3028 | fi |
7083c021 AC |
3029 | ac_test_CFLAGS=${CFLAGS+set} |
3030 | ac_save_CFLAGS=$CFLAGS | |
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3032 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 3033 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
3034 | $as_echo_n "(cached) " >&6 |
3035 | else | |
3036 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3037 | ac_c_werror_flag=yes | |
3038 | ac_cv_prog_cc_g=no | |
3039 | CFLAGS="-g" | |
3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3041 | /* end confdefs.h. */ | |
212380e3 | 3042 | |
7083c021 AC |
3043 | int |
3044 | main () | |
3045 | { | |
631ef239 | 3046 | |
7083c021 AC |
3047 | ; |
3048 | return 0; | |
3049 | } | |
212380e3 | 3050 | _ACEOF |
7083c021 AC |
3051 | if ac_fn_c_try_compile "$LINENO"; then : |
3052 | ac_cv_prog_cc_g=yes | |
212380e3 | 3053 | else |
7083c021 AC |
3054 | CFLAGS="" |
3055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3056 | /* end confdefs.h. */ | |
212380e3 | 3057 | |
7083c021 AC |
3058 | int |
3059 | main () | |
3060 | { | |
631ef239 | 3061 | |
7083c021 AC |
3062 | ; |
3063 | return 0; | |
3064 | } | |
3065 | _ACEOF | |
3066 | if ac_fn_c_try_compile "$LINENO"; then : | |
631ef239 | 3067 | |
7083c021 AC |
3068 | else |
3069 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3070 | CFLAGS="-g" | |
3071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3072 | /* end confdefs.h. */ | |
212380e3 | 3073 | |
7083c021 AC |
3074 | int |
3075 | main () | |
3076 | { | |
212380e3 | 3077 | |
7083c021 AC |
3078 | ; |
3079 | return 0; | |
3080 | } | |
212380e3 | 3081 | _ACEOF |
7083c021 AC |
3082 | if ac_fn_c_try_compile "$LINENO"; then : |
3083 | ac_cv_prog_cc_g=yes | |
212380e3 | 3084 | fi |
7083c021 | 3085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3086 | fi |
7083c021 | 3087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3088 | fi |
7083c021 AC |
3089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3090 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 3091 | fi |
7083c021 AC |
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3093 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3094 | if test "$ac_test_CFLAGS" = set; then | |
3095 | CFLAGS=$ac_save_CFLAGS | |
3096 | elif test $ac_cv_prog_cc_g = yes; then | |
3097 | if test "$GCC" = yes; then | |
3098 | CFLAGS="-g -O2" | |
3099 | else | |
3100 | CFLAGS="-g" | |
3101 | fi | |
212380e3 | 3102 | else |
7083c021 AC |
3103 | if test "$GCC" = yes; then |
3104 | CFLAGS="-O2" | |
3105 | else | |
3106 | CFLAGS= | |
3107 | fi | |
3108 | fi | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3110 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 3111 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
3112 | $as_echo_n "(cached) " >&6 |
3113 | else | |
3114 | ac_cv_prog_cc_c89=no | |
3115 | ac_save_CC=$CC | |
3116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3117 | /* end confdefs.h. */ |
212380e3 | 3118 | #include <stdarg.h> |
7083c021 AC |
3119 | #include <stdio.h> |
3120 | #include <sys/types.h> | |
3121 | #include <sys/stat.h> | |
3122 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3123 | struct buf { int x; }; | |
3124 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3125 | static char *e (p, i) | |
3126 | char **p; | |
3127 | int i; | |
3128 | { | |
3129 | return p[i]; | |
3130 | } | |
3131 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3132 | { | |
3133 | char *s; | |
3134 | va_list v; | |
3135 | va_start (v,p); | |
3136 | s = g (p, va_arg (v,int)); | |
3137 | va_end (v); | |
3138 | return s; | |
3139 | } | |
3140 | ||
3141 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3142 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3143 | These don't provoke an error unfortunately, instead are silently treated | |
3144 | as 'x'. The following induces an error, until -std is added to get | |
3145 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3146 | array size at least. It's necessary to write '\x00'==0 to get something | |
3147 | that's true only with -std. */ | |
3148 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3149 | ||
3150 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3151 | inside strings and character constants. */ | |
3152 | #define FOO(x) 'x' | |
3153 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
212380e3 | 3154 | |
7083c021 AC |
3155 | int test (int i, double x); |
3156 | struct s1 {int (*f) (int a);}; | |
3157 | struct s2 {int (*f) (double a);}; | |
3158 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3159 | int argc; | |
3160 | char **argv; | |
212380e3 AC |
3161 | int |
3162 | main () | |
3163 | { | |
7083c021 | 3164 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
3165 | ; |
3166 | return 0; | |
3167 | } | |
3168 | _ACEOF | |
7083c021 AC |
3169 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3170 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3171 | do | |
3172 | CC="$ac_save_CC $ac_arg" | |
3173 | if ac_fn_c_try_compile "$LINENO"; then : | |
3174 | ac_cv_prog_cc_c89=$ac_arg | |
3175 | fi | |
3176 | rm -f core conftest.err conftest.$ac_objext | |
3177 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3178 | done | |
3179 | rm -f conftest.$ac_ext | |
3180 | CC=$ac_save_CC | |
3181 | ||
3182 | fi | |
3183 | # AC_CACHE_VAL | |
3184 | case "x$ac_cv_prog_cc_c89" in | |
3185 | x) | |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3187 | $as_echo "none needed" >&6; } ;; | |
3188 | xno) | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3190 | $as_echo "unsupported" >&6; } ;; | |
3191 | *) | |
3192 | CC="$CC $ac_cv_prog_cc_c89" | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3194 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 3195 | esac |
7083c021 | 3196 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 3197 | |
212380e3 | 3198 | fi |
631ef239 | 3199 | |
7083c021 AC |
3200 | ac_ext=c |
3201 | ac_cpp='$CPP $CPPFLAGS' | |
3202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3205 | |
212380e3 | 3206 | |
7083c021 AC |
3207 | ac_ext=c |
3208 | ac_cpp='$CPP $CPPFLAGS' | |
3209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3213 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3214 | # On Suns, sometimes $CPP names a directory. | |
3215 | if test -n "$CPP" && test -d "$CPP"; then | |
3216 | CPP= | |
3217 | fi | |
3218 | if test -z "$CPP"; then | |
b6d0720c | 3219 | if ${ac_cv_prog_CPP+:} false; then : |
7083c021 AC |
3220 | $as_echo_n "(cached) " >&6 |
3221 | else | |
3222 | # Double quotes because CPP needs to be expanded | |
3223 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3224 | do | |
3225 | ac_preproc_ok=false | |
3226 | for ac_c_preproc_warn_flag in '' yes | |
3227 | do | |
3228 | # Use a header file that comes with gcc, so configuring glibc | |
3229 | # with a fresh cross-compiler works. | |
3230 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3231 | # <limits.h> exists even on freestanding compilers. | |
3232 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3233 | # not just through cpp. "Syntax error" is here to catch this case. | |
3234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3235 | /* end confdefs.h. */ | |
3236 | #ifdef __STDC__ | |
3237 | # include <limits.h> | |
3238 | #else | |
3239 | # include <assert.h> | |
3240 | #endif | |
3241 | Syntax error | |
212380e3 | 3242 | _ACEOF |
7083c021 | 3243 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3244 | |
7083c021 AC |
3245 | else |
3246 | # Broken: fails on valid input. | |
3247 | continue | |
212380e3 | 3248 | fi |
b6d0720c | 3249 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3250 | |
7083c021 AC |
3251 | # OK, works on sane cases. Now check whether nonexistent headers |
3252 | # can be detected and how. | |
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3254 | /* end confdefs.h. */ |
7083c021 | 3255 | #include <ac_nonexistent.h> |
212380e3 | 3256 | _ACEOF |
7083c021 AC |
3257 | if ac_fn_c_try_cpp "$LINENO"; then : |
3258 | # Broken: success on invalid input. | |
3259 | continue | |
212380e3 | 3260 | else |
7083c021 AC |
3261 | # Passes both tests. |
3262 | ac_preproc_ok=: | |
3263 | break | |
212380e3 | 3264 | fi |
b6d0720c | 3265 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3266 | |
7083c021 AC |
3267 | done |
3268 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b6d0720c | 3269 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
3270 | if $ac_preproc_ok; then : |
3271 | break | |
212380e3 AC |
3272 | fi |
3273 | ||
7083c021 AC |
3274 | done |
3275 | ac_cv_prog_CPP=$CPP | |
3276 | ||
3277 | fi | |
3278 | CPP=$ac_cv_prog_CPP | |
212380e3 | 3279 | else |
7083c021 AC |
3280 | ac_cv_prog_CPP=$CPP |
3281 | fi | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3283 | $as_echo "$CPP" >&6; } | |
3284 | ac_preproc_ok=false | |
3285 | for ac_c_preproc_warn_flag in '' yes | |
3286 | do | |
3287 | # Use a header file that comes with gcc, so configuring glibc | |
3288 | # with a fresh cross-compiler works. | |
3289 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3290 | # <limits.h> exists even on freestanding compilers. | |
3291 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3292 | # not just through cpp. "Syntax error" is here to catch this case. | |
3293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3294 | /* end confdefs.h. */ |
7083c021 AC |
3295 | #ifdef __STDC__ |
3296 | # include <limits.h> | |
212380e3 | 3297 | #else |
7083c021 | 3298 | # include <assert.h> |
212380e3 | 3299 | #endif |
7083c021 | 3300 | Syntax error |
212380e3 | 3301 | _ACEOF |
7083c021 | 3302 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3303 | |
7083c021 AC |
3304 | else |
3305 | # Broken: fails on valid input. | |
3306 | continue | |
212380e3 | 3307 | fi |
b6d0720c | 3308 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3309 | |
7083c021 AC |
3310 | # OK, works on sane cases. Now check whether nonexistent headers |
3311 | # can be detected and how. | |
3312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3313 | /* end confdefs.h. */ |
7083c021 | 3314 | #include <ac_nonexistent.h> |
212380e3 | 3315 | _ACEOF |
7083c021 AC |
3316 | if ac_fn_c_try_cpp "$LINENO"; then : |
3317 | # Broken: success on invalid input. | |
3318 | continue | |
212380e3 | 3319 | else |
7083c021 AC |
3320 | # Passes both tests. |
3321 | ac_preproc_ok=: | |
3322 | break | |
212380e3 | 3323 | fi |
b6d0720c | 3324 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 AC |
3325 | |
3326 | done | |
7083c021 | 3327 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b6d0720c | 3328 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 3329 | if $ac_preproc_ok; then : |
212380e3 | 3330 | |
7083c021 AC |
3331 | else |
3332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3334 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3335 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 3336 | fi |
212380e3 | 3337 | |
7083c021 AC |
3338 | ac_ext=c |
3339 | ac_cpp='$CPP $CPPFLAGS' | |
3340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
3343 | |
3344 | ||
7083c021 AC |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3346 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
b6d0720c | 3347 | if ${ac_cv_path_GREP+:} false; then : |
7083c021 | 3348 | $as_echo_n "(cached) " >&6 |
212380e3 | 3349 | else |
7083c021 AC |
3350 | if test -z "$GREP"; then |
3351 | ac_path_GREP_found=false | |
3352 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3354 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3355 | do | |
3356 | IFS=$as_save_IFS | |
3357 | test -z "$as_dir" && as_dir=. | |
3358 | for ac_prog in grep ggrep; do | |
3359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3360 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3361 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3362 | # Check for GNU ac_path_GREP and select it if it is found. | |
3363 | # Check for GNU $ac_path_GREP | |
3364 | case `"$ac_path_GREP" --version 2>&1` in | |
3365 | *GNU*) | |
3366 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3367 | *) | |
3368 | ac_count=0 | |
3369 | $as_echo_n 0123456789 >"conftest.in" | |
3370 | while : | |
3371 | do | |
3372 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3373 | mv "conftest.tmp" "conftest.in" | |
3374 | cp "conftest.in" "conftest.nl" | |
3375 | $as_echo 'GREP' >> "conftest.nl" | |
3376 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3377 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3378 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3379 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3380 | # Best one so far, save it but keep looking for a better one | |
3381 | ac_cv_path_GREP="$ac_path_GREP" | |
3382 | ac_path_GREP_max=$ac_count | |
3383 | fi | |
3384 | # 10*(2^10) chars as input seems more than enough | |
3385 | test $ac_count -gt 10 && break | |
3386 | done | |
3387 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3388 | esac |
7083c021 AC |
3389 | |
3390 | $ac_path_GREP_found && break 3 | |
3391 | done | |
3392 | done | |
3393 | done | |
3394 | IFS=$as_save_IFS | |
3395 | if test -z "$ac_cv_path_GREP"; then | |
b6d0720c | 3396 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3397 | fi |
212380e3 | 3398 | else |
7083c021 AC |
3399 | ac_cv_path_GREP=$GREP |
3400 | fi | |
212380e3 | 3401 | |
212380e3 | 3402 | fi |
7083c021 AC |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3404 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3405 | GREP="$ac_cv_path_GREP" | |
631ef239 | 3406 | |
212380e3 | 3407 | |
7083c021 AC |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3409 | $as_echo_n "checking for egrep... " >&6; } | |
b6d0720c | 3410 | if ${ac_cv_path_EGREP+:} false; then : |
7083c021 AC |
3411 | $as_echo_n "(cached) " >&6 |
3412 | else | |
3413 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3414 | then ac_cv_path_EGREP="$GREP -E" | |
3415 | else | |
3416 | if test -z "$EGREP"; then | |
3417 | ac_path_EGREP_found=false | |
3418 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3420 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3421 | do | |
3422 | IFS=$as_save_IFS | |
3423 | test -z "$as_dir" && as_dir=. | |
3424 | for ac_prog in egrep; do | |
3425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3426 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3427 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3428 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3429 | # Check for GNU $ac_path_EGREP | |
3430 | case `"$ac_path_EGREP" --version 2>&1` in | |
3431 | *GNU*) | |
3432 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3433 | *) | |
3434 | ac_count=0 | |
3435 | $as_echo_n 0123456789 >"conftest.in" | |
3436 | while : | |
3437 | do | |
3438 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3439 | mv "conftest.tmp" "conftest.in" | |
3440 | cp "conftest.in" "conftest.nl" | |
3441 | $as_echo 'EGREP' >> "conftest.nl" | |
3442 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3443 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3444 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3445 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3446 | # Best one so far, save it but keep looking for a better one | |
3447 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3448 | ac_path_EGREP_max=$ac_count | |
3449 | fi | |
3450 | # 10*(2^10) chars as input seems more than enough | |
3451 | test $ac_count -gt 10 && break | |
3452 | done | |
3453 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3454 | esac |
212380e3 | 3455 | |
7083c021 AC |
3456 | $ac_path_EGREP_found && break 3 |
3457 | done | |
3458 | done | |
3459 | done | |
3460 | IFS=$as_save_IFS | |
3461 | if test -z "$ac_cv_path_EGREP"; then | |
b6d0720c | 3462 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3463 | fi |
212380e3 | 3464 | else |
7083c021 | 3465 | ac_cv_path_EGREP=$EGREP |
212380e3 | 3466 | fi |
212380e3 | 3467 | |
7083c021 | 3468 | fi |
212380e3 | 3469 | fi |
7083c021 AC |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3471 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3472 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3473 | |
3474 | ||
7083c021 AC |
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3476 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 3477 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 3478 | $as_echo_n "(cached) " >&6 |
212380e3 | 3479 | else |
7083c021 | 3480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3481 | /* end confdefs.h. */ |
7083c021 AC |
3482 | #include <stdlib.h> |
3483 | #include <stdarg.h> | |
3484 | #include <string.h> | |
3485 | #include <float.h> | |
212380e3 AC |
3486 | |
3487 | int | |
3488 | main () | |
3489 | { | |
212380e3 AC |
3490 | |
3491 | ; | |
3492 | return 0; | |
3493 | } | |
3494 | _ACEOF | |
7083c021 AC |
3495 | if ac_fn_c_try_compile "$LINENO"; then : |
3496 | ac_cv_header_stdc=yes | |
212380e3 | 3497 | else |
7083c021 | 3498 | ac_cv_header_stdc=no |
212380e3 | 3499 | fi |
631ef239 | 3500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3501 | |
7083c021 AC |
3502 | if test $ac_cv_header_stdc = yes; then |
3503 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3505 | /* end confdefs.h. */ | |
3506 | #include <string.h> | |
212380e3 | 3507 | |
7083c021 AC |
3508 | _ACEOF |
3509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3510 | $EGREP "memchr" >/dev/null 2>&1; then : | |
212380e3 | 3511 | |
212380e3 | 3512 | else |
7083c021 AC |
3513 | ac_cv_header_stdc=no |
3514 | fi | |
3515 | rm -f conftest* | |
212380e3 | 3516 | |
7083c021 | 3517 | fi |
212380e3 | 3518 | |
7083c021 AC |
3519 | if test $ac_cv_header_stdc = yes; then |
3520 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3522 | /* end confdefs.h. */ |
7083c021 | 3523 | #include <stdlib.h> |
212380e3 | 3524 | |
212380e3 | 3525 | _ACEOF |
7083c021 AC |
3526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3527 | $EGREP "free" >/dev/null 2>&1; then : | |
3528 | ||
212380e3 | 3529 | else |
7083c021 AC |
3530 | ac_cv_header_stdc=no |
3531 | fi | |
3532 | rm -f conftest* | |
212380e3 | 3533 | |
212380e3 | 3534 | fi |
631ef239 | 3535 | |
7083c021 AC |
3536 | if test $ac_cv_header_stdc = yes; then |
3537 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3538 | if test "$cross_compiling" = yes; then : | |
3539 | : | |
212380e3 | 3540 | else |
7083c021 | 3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3542 | /* end confdefs.h. */ |
7083c021 AC |
3543 | #include <ctype.h> |
3544 | #include <stdlib.h> | |
3545 | #if ((' ' & 0x0FF) == 0x020) | |
3546 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3547 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3548 | #else | |
3549 | # define ISLOWER(c) \ | |
3550 | (('a' <= (c) && (c) <= 'i') \ | |
3551 | || ('j' <= (c) && (c) <= 'r') \ | |
3552 | || ('s' <= (c) && (c) <= 'z')) | |
3553 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3554 | #endif | |
3555 | ||
3556 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
3557 | int |
3558 | main () | |
3559 | { | |
7083c021 AC |
3560 | int i; |
3561 | for (i = 0; i < 256; i++) | |
3562 | if (XOR (islower (i), ISLOWER (i)) | |
3563 | || toupper (i) != TOUPPER (i)) | |
3564 | return 2; | |
212380e3 AC |
3565 | return 0; |
3566 | } | |
3567 | _ACEOF | |
7083c021 AC |
3568 | if ac_fn_c_try_run "$LINENO"; then : |
3569 | ||
3570 | else | |
3571 | ac_cv_header_stdc=no | |
212380e3 | 3572 | fi |
7083c021 AC |
3573 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3574 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 3575 | fi |
212380e3 | 3576 | |
7083c021 AC |
3577 | fi |
3578 | fi | |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3580 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3581 | if test $ac_cv_header_stdc = yes; then | |
3582 | ||
3583 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
631ef239 | 3584 | |
212380e3 | 3585 | fi |
631ef239 | 3586 | |
7083c021 AC |
3587 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3588 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3589 | inttypes.h stdint.h unistd.h | |
3590 | do : | |
3591 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3592 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3593 | " | |
b6d0720c | 3594 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
3595 | cat >>confdefs.h <<_ACEOF |
3596 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 3597 | _ACEOF |
631ef239 | 3598 | |
7083c021 | 3599 | fi |
631ef239 | 3600 | |
7083c021 AC |
3601 | done |
3602 | ||
3603 | ||
3604 | ||
3605 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b6d0720c | 3606 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 | 3607 | MINIX=yes |
212380e3 | 3608 | else |
7083c021 AC |
3609 | MINIX= |
3610 | fi | |
3611 | ||
3612 | ||
3613 | if test "$MINIX" = yes; then | |
3614 | ||
3615 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3616 | ||
212380e3 | 3617 | |
7083c021 | 3618 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 AC |
3619 | |
3620 | ||
7083c021 | 3621 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 3622 | |
7083c021 | 3623 | fi |
212380e3 | 3624 | |
212380e3 | 3625 | |
7083c021 AC |
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3627 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b6d0720c | 3628 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
7083c021 | 3629 | $as_echo_n "(cached) " >&6 |
212380e3 | 3630 | else |
7083c021 | 3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3632 | /* end confdefs.h. */ |
7083c021 AC |
3633 | |
3634 | # define __EXTENSIONS__ 1 | |
3635 | $ac_includes_default | |
212380e3 AC |
3636 | int |
3637 | main () | |
3638 | { | |
7083c021 | 3639 | |
212380e3 AC |
3640 | ; |
3641 | return 0; | |
3642 | } | |
3643 | _ACEOF | |
7083c021 AC |
3644 | if ac_fn_c_try_compile "$LINENO"; then : |
3645 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 3646 | else |
7083c021 | 3647 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 3648 | fi |
631ef239 | 3649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3650 | fi |
7083c021 AC |
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3652 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3653 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3654 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 3655 | |
7083c021 | 3656 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 3657 | |
7083c021 AC |
3658 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3659 | ||
3660 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3661 | ||
3662 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 3663 | |
7083c021 AC |
3664 | |
3665 | ||
3666 | ||
3667 | OLD_CFLAGS="$CFLAGS" | |
3668 | ac_ext=c | |
3669 | ac_cpp='$CPP $CPPFLAGS' | |
3670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3673 | if test -n "$ac_tool_prefix"; then | |
3674 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3675 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3677 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3678 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3679 | $as_echo_n "(cached) " >&6 |
212380e3 | 3680 | else |
7083c021 AC |
3681 | if test -n "$CC"; then |
3682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3683 | else |
7083c021 AC |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3691 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
3697 | IFS=$as_save_IFS | |
212380e3 | 3698 | |
212380e3 | 3699 | fi |
212380e3 | 3700 | fi |
7083c021 AC |
3701 | CC=$ac_cv_prog_CC |
3702 | if test -n "$CC"; then | |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3704 | $as_echo "$CC" >&6; } | |
212380e3 | 3705 | else |
7083c021 AC |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3707 | $as_echo "no" >&6; } | |
3708 | fi | |
212380e3 | 3709 | |
212380e3 AC |
3710 | |
3711 | fi | |
7083c021 AC |
3712 | if test -z "$ac_cv_prog_CC"; then |
3713 | ac_ct_CC=$CC | |
3714 | # Extract the first word of "gcc", so it can be a program name with args. | |
3715 | set dummy gcc; ac_word=$2 | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3717 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3718 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3719 | $as_echo_n "(cached) " >&6 |
212380e3 | 3720 | else |
7083c021 AC |
3721 | if test -n "$ac_ct_CC"; then |
3722 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 3723 | else |
7083c021 AC |
3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3725 | for as_dir in $PATH | |
3726 | do | |
3727 | IFS=$as_save_IFS | |
3728 | test -z "$as_dir" && as_dir=. | |
3729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3731 | ac_cv_prog_ac_ct_CC="gcc" | |
3732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3733 | break 2 | |
3734 | fi | |
3735 | done | |
3736 | done | |
3737 | IFS=$as_save_IFS | |
212380e3 | 3738 | |
212380e3 | 3739 | fi |
212380e3 | 3740 | fi |
7083c021 AC |
3741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3742 | if test -n "$ac_ct_CC"; then | |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3744 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 3745 | else |
7083c021 AC |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3747 | $as_echo "no" >&6; } | |
3748 | fi | |
212380e3 | 3749 | |
7083c021 AC |
3750 | if test "x$ac_ct_CC" = x; then |
3751 | CC="" | |
3752 | else | |
3753 | case $cross_compiling:$ac_tool_warned in | |
3754 | yes:) | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3757 | ac_tool_warned=yes ;; | |
631ef239 | 3758 | esac |
7083c021 AC |
3759 | CC=$ac_ct_CC |
3760 | fi | |
212380e3 | 3761 | else |
7083c021 | 3762 | CC="$ac_cv_prog_CC" |
212380e3 | 3763 | fi |
631ef239 | 3764 | |
7083c021 AC |
3765 | if test -z "$CC"; then |
3766 | if test -n "$ac_tool_prefix"; then | |
3767 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3768 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3770 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3771 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3772 | $as_echo_n "(cached) " >&6 |
212380e3 | 3773 | else |
7083c021 AC |
3774 | if test -n "$CC"; then |
3775 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3776 | else |
7083c021 AC |
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3778 | for as_dir in $PATH | |
3779 | do | |
3780 | IFS=$as_save_IFS | |
3781 | test -z "$as_dir" && as_dir=. | |
3782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3784 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3786 | break 2 | |
3787 | fi | |
3788 | done | |
3789 | done | |
3790 | IFS=$as_save_IFS | |
212380e3 | 3791 | |
212380e3 | 3792 | fi |
7083c021 AC |
3793 | fi |
3794 | CC=$ac_cv_prog_CC | |
3795 | if test -n "$CC"; then | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3797 | $as_echo "$CC" >&6; } | |
212380e3 | 3798 | else |
7083c021 AC |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3800 | $as_echo "no" >&6; } | |
3801 | fi | |
3802 | ||
212380e3 | 3803 | |
7083c021 | 3804 | fi |
212380e3 | 3805 | fi |
7083c021 AC |
3806 | if test -z "$CC"; then |
3807 | # Extract the first word of "cc", so it can be a program name with args. | |
3808 | set dummy cc; ac_word=$2 | |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3810 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3811 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 AC |
3812 | $as_echo_n "(cached) " >&6 |
3813 | else | |
3814 | if test -n "$CC"; then | |
3815 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3816 | else | |
3817 | ac_prog_rejected=no | |
3818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3819 | for as_dir in $PATH | |
3820 | do | |
3821 | IFS=$as_save_IFS | |
3822 | test -z "$as_dir" && as_dir=. | |
3823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3825 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3826 | ac_prog_rejected=yes | |
3827 | continue | |
3828 | fi | |
3829 | ac_cv_prog_CC="cc" | |
3830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3831 | break 2 | |
3832 | fi | |
3833 | done | |
3834 | done | |
3835 | IFS=$as_save_IFS | |
631ef239 | 3836 | |
7083c021 AC |
3837 | if test $ac_prog_rejected = yes; then |
3838 | # We found a bogon in the path, so make sure we never use it. | |
3839 | set dummy $ac_cv_prog_CC | |
3840 | shift | |
3841 | if test $# != 0; then | |
3842 | # We chose a different compiler from the bogus one. | |
3843 | # However, it has the same basename, so the bogon will be chosen | |
3844 | # first if we set CC to just the basename; use the full file name. | |
3845 | shift | |
3846 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3847 | fi | |
3848 | fi | |
3849 | fi | |
3850 | fi | |
3851 | CC=$ac_cv_prog_CC | |
3852 | if test -n "$CC"; then | |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3854 | $as_echo "$CC" >&6; } | |
3855 | else | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3857 | $as_echo "no" >&6; } | |
212380e3 | 3858 | fi |
631ef239 | 3859 | |
212380e3 | 3860 | |
7083c021 AC |
3861 | fi |
3862 | if test -z "$CC"; then | |
3863 | if test -n "$ac_tool_prefix"; then | |
3864 | for ac_prog in cl.exe | |
3865 | do | |
3866 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3867 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3869 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3870 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3871 | $as_echo_n "(cached) " >&6 |
212380e3 | 3872 | else |
7083c021 AC |
3873 | if test -n "$CC"; then |
3874 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3875 | else | |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3877 | for as_dir in $PATH | |
3878 | do | |
3879 | IFS=$as_save_IFS | |
3880 | test -z "$as_dir" && as_dir=. | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3883 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3885 | break 2 | |
3886 | fi | |
3887 | done | |
3888 | done | |
3889 | IFS=$as_save_IFS | |
212380e3 | 3890 | |
212380e3 | 3891 | fi |
7083c021 AC |
3892 | fi |
3893 | CC=$ac_cv_prog_CC | |
3894 | if test -n "$CC"; then | |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3896 | $as_echo "$CC" >&6; } | |
212380e3 | 3897 | else |
7083c021 AC |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3899 | $as_echo "no" >&6; } | |
3900 | fi | |
212380e3 | 3901 | |
212380e3 | 3902 | |
7083c021 AC |
3903 | test -n "$CC" && break |
3904 | done | |
3905 | fi | |
3906 | if test -z "$CC"; then | |
3907 | ac_ct_CC=$CC | |
3908 | for ac_prog in cl.exe | |
3909 | do | |
3910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3911 | set dummy $ac_prog; ac_word=$2 | |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3913 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3914 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3915 | $as_echo_n "(cached) " >&6 |
212380e3 | 3916 | else |
7083c021 AC |
3917 | if test -n "$ac_ct_CC"; then |
3918 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3919 | else | |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3921 | for as_dir in $PATH | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3927 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3929 | break 2 | |
3930 | fi | |
3931 | done | |
3932 | done | |
3933 | IFS=$as_save_IFS | |
212380e3 | 3934 | |
212380e3 AC |
3935 | fi |
3936 | fi | |
7083c021 AC |
3937 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3938 | if test -n "$ac_ct_CC"; then | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3940 | $as_echo "$ac_ct_CC" >&6; } | |
3941 | else | |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3943 | $as_echo "no" >&6; } | |
212380e3 | 3944 | fi |
631ef239 AC |
3945 | |
3946 | ||
7083c021 AC |
3947 | test -n "$ac_ct_CC" && break |
3948 | done | |
631ef239 | 3949 | |
7083c021 AC |
3950 | if test "x$ac_ct_CC" = x; then |
3951 | CC="" | |
3952 | else | |
3953 | case $cross_compiling:$ac_tool_warned in | |
3954 | yes:) | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3957 | ac_tool_warned=yes ;; | |
3958 | esac | |
3959 | CC=$ac_ct_CC | |
3960 | fi | |
3961 | fi | |
212380e3 | 3962 | |
7083c021 | 3963 | fi |
212380e3 | 3964 | |
7083c021 AC |
3965 | |
3966 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3968 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3969 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
3970 | |
3971 | # Provide some information about the compiler. | |
3972 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3973 | set X $ac_compile | |
3974 | ac_compiler=$2 | |
3975 | for ac_option in --version -v -V -qversion; do | |
3976 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 AC |
3977 | case "(($ac_try" in |
3978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3979 | *) ac_try_echo=$ac_try;; | |
3980 | esac | |
7083c021 AC |
3981 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3982 | $as_echo "$ac_try_echo"; } >&5 | |
3983 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 3984 | ac_status=$? |
7083c021 AC |
3985 | if test -s conftest.err; then |
3986 | sed '10a\ | |
3987 | ... rest of stderr output deleted ... | |
3988 | 10q' conftest.err >conftest.er1 | |
3989 | cat conftest.er1 >&5 | |
7083c021 | 3990 | fi |
6fb6bd15 | 3991 | rm -f conftest.er1 conftest.err |
7083c021 AC |
3992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3993 | test $ac_status = 0; } | |
3994 | done | |
212380e3 | 3995 | |
7083c021 AC |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3997 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 3998 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 | 3999 | $as_echo_n "(cached) " >&6 |
212380e3 | 4000 | else |
7083c021 | 4001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 4002 | /* end confdefs.h. */ |
7083c021 | 4003 | |
212380e3 AC |
4004 | int |
4005 | main () | |
4006 | { | |
7083c021 AC |
4007 | #ifndef __GNUC__ |
4008 | choke me | |
4009 | #endif | |
212380e3 AC |
4010 | |
4011 | ; | |
4012 | return 0; | |
4013 | } | |
4014 | _ACEOF | |
7083c021 AC |
4015 | if ac_fn_c_try_compile "$LINENO"; then : |
4016 | ac_compiler_gnu=yes | |
4017 | else | |
4018 | ac_compiler_gnu=no | |
4019 | fi | |
4020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4021 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4022 | ||
4023 | fi | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4025 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4026 | if test $ac_compiler_gnu = yes; then | |
4027 | GCC=yes | |
4028 | else | |
4029 | GCC= | |
4030 | fi | |
4031 | ac_test_CFLAGS=${CFLAGS+set} | |
4032 | ac_save_CFLAGS=$CFLAGS | |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4034 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 4035 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
4036 | $as_echo_n "(cached) " >&6 |
4037 | else | |
4038 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4039 | ac_c_werror_flag=yes | |
4040 | ac_cv_prog_cc_g=no | |
4041 | CFLAGS="-g" | |
4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4043 | /* end confdefs.h. */ |
7083c021 | 4044 | |
212380e3 AC |
4045 | int |
4046 | main () | |
4047 | { | |
212380e3 AC |
4048 | |
4049 | ; | |
4050 | return 0; | |
4051 | } | |
4052 | _ACEOF | |
7083c021 AC |
4053 | if ac_fn_c_try_compile "$LINENO"; then : |
4054 | ac_cv_prog_cc_g=yes | |
212380e3 | 4055 | else |
7083c021 AC |
4056 | CFLAGS="" |
4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4058 | /* end confdefs.h. */ |
7083c021 | 4059 | |
212380e3 AC |
4060 | int |
4061 | main () | |
4062 | { | |
212380e3 AC |
4063 | |
4064 | ; | |
4065 | return 0; | |
4066 | } | |
4067 | _ACEOF | |
7083c021 AC |
4068 | if ac_fn_c_try_compile "$LINENO"; then : |
4069 | ||
4070 | else | |
4071 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4072 | CFLAGS="-g" | |
4073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4074 | /* end confdefs.h. */ |
7083c021 | 4075 | |
212380e3 AC |
4076 | int |
4077 | main () | |
4078 | { | |
212380e3 AC |
4079 | |
4080 | ; | |
4081 | return 0; | |
4082 | } | |
4083 | _ACEOF | |
7083c021 AC |
4084 | if ac_fn_c_try_compile "$LINENO"; then : |
4085 | ac_cv_prog_cc_g=yes | |
212380e3 | 4086 | fi |
631ef239 | 4087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4088 | fi |
631ef239 | 4089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4090 | fi |
631ef239 | 4091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
4092 | ac_c_werror_flag=$ac_save_c_werror_flag |
4093 | fi | |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4095 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4096 | if test "$ac_test_CFLAGS" = set; then | |
4097 | CFLAGS=$ac_save_CFLAGS | |
4098 | elif test $ac_cv_prog_cc_g = yes; then | |
4099 | if test "$GCC" = yes; then | |
4100 | CFLAGS="-g -O2" | |
4101 | else | |
4102 | CFLAGS="-g" | |
4103 | fi | |
4104 | else | |
4105 | if test "$GCC" = yes; then | |
4106 | CFLAGS="-O2" | |
4107 | else | |
4108 | CFLAGS= | |
4109 | fi | |
4110 | fi | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4112 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 4113 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
4114 | $as_echo_n "(cached) " >&6 |
4115 | else | |
4116 | ac_cv_prog_cc_c89=no | |
4117 | ac_save_CC=$CC | |
4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4119 | /* end confdefs.h. */ |
7083c021 AC |
4120 | #include <stdarg.h> |
4121 | #include <stdio.h> | |
4122 | #include <sys/types.h> | |
4123 | #include <sys/stat.h> | |
4124 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4125 | struct buf { int x; }; | |
4126 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4127 | static char *e (p, i) | |
4128 | char **p; | |
4129 | int i; | |
4130 | { | |
4131 | return p[i]; | |
4132 | } | |
4133 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4134 | { | |
4135 | char *s; | |
4136 | va_list v; | |
4137 | va_start (v,p); | |
4138 | s = g (p, va_arg (v,int)); | |
4139 | va_end (v); | |
4140 | return s; | |
4141 | } | |
4142 | ||
4143 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4144 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4145 | These don't provoke an error unfortunately, instead are silently treated | |
4146 | as 'x'. The following induces an error, until -std is added to get | |
4147 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4148 | array size at least. It's necessary to write '\x00'==0 to get something | |
4149 | that's true only with -std. */ | |
4150 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4151 | ||
4152 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4153 | inside strings and character constants. */ | |
4154 | #define FOO(x) 'x' | |
4155 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4156 | ||
4157 | int test (int i, double x); | |
4158 | struct s1 {int (*f) (int a);}; | |
4159 | struct s2 {int (*f) (double a);}; | |
4160 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4161 | int argc; | |
4162 | char **argv; | |
212380e3 AC |
4163 | int |
4164 | main () | |
4165 | { | |
7083c021 | 4166 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
4167 | ; |
4168 | return 0; | |
4169 | } | |
4170 | _ACEOF | |
7083c021 AC |
4171 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4172 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4173 | do | |
4174 | CC="$ac_save_CC $ac_arg" | |
4175 | if ac_fn_c_try_compile "$LINENO"; then : | |
4176 | ac_cv_prog_cc_c89=$ac_arg | |
4177 | fi | |
4178 | rm -f core conftest.err conftest.$ac_objext | |
4179 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4180 | done | |
4181 | rm -f conftest.$ac_ext | |
4182 | CC=$ac_save_CC | |
4183 | ||
4184 | fi | |
4185 | # AC_CACHE_VAL | |
4186 | case "x$ac_cv_prog_cc_c89" in | |
4187 | x) | |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4189 | $as_echo "none needed" >&6; } ;; | |
4190 | xno) | |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4192 | $as_echo "unsupported" >&6; } ;; | |
4193 | *) | |
4194 | CC="$CC $ac_cv_prog_cc_c89" | |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4196 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 4197 | esac |
7083c021 | 4198 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 4199 | |
212380e3 | 4200 | fi |
631ef239 | 4201 | |
7083c021 AC |
4202 | ac_ext=c |
4203 | ac_cpp='$CPP $CPPFLAGS' | |
4204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4207 | ||
4208 | ac_ext=c | |
4209 | ac_cpp='$CPP $CPPFLAGS' | |
4210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4213 | ||
4214 | ||
4215 | CFLAGS="$OLD_CFLAGS" | |
4216 | ||
4217 | ac_aux_dir= | |
4218 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
b6d0720c AC |
4219 | if test -f "$ac_dir/install-sh"; then |
4220 | ac_aux_dir=$ac_dir | |
4221 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4222 | break | |
4223 | elif test -f "$ac_dir/install.sh"; then | |
4224 | ac_aux_dir=$ac_dir | |
4225 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4226 | break | |
4227 | elif test -f "$ac_dir/shtool"; then | |
4228 | ac_aux_dir=$ac_dir | |
4229 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4230 | break | |
4231 | fi | |
212380e3 | 4232 | done |
7083c021 | 4233 | if test -z "$ac_aux_dir"; then |
b6d0720c | 4234 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7083c021 | 4235 | fi |
212380e3 | 4236 | |
7083c021 AC |
4237 | # These three variables are undocumented and unsupported, |
4238 | # and are intended to be withdrawn in a future Autoconf release. | |
4239 | # They can cause serious problems if a builder's source tree is in a directory | |
4240 | # whose full name contains unusual characters. | |
4241 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4242 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4243 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
212380e3 | 4244 | |
7083c021 AC |
4245 | |
4246 | ||
4247 | ||
4248 | subdirs="$subdirs libratbox" | |
4249 | ||
4250 | ||
4251 | ||
4252 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
4253 | ||
4254 | SGS=no | |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 | |
4256 | $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } | |
4257 | case `$CC -version 2>&1` in | |
4258 | *TenDRA*) | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 | |
4260 | $as_echo "yes, TenDRA" >&6; } | |
4261 | IRC_CFLAGS="" | |
4262 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
4263 | SGS=yes | |
4264 | TenDRA=yes | |
4265 | ;; | |
4266 | *MIPSpro*) | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 | |
4268 | $as_echo "yes, MIPSpro" >&6; } | |
4269 | MIPSpro=yes | |
4270 | SGS=yes | |
4271 | ;; | |
4272 | *) | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4274 | $as_echo "no" >&6; } | |
4275 | TenDRA=no | |
4276 | MIPSpro=no | |
4277 | ;; | |
631ef239 | 4278 | esac |
7083c021 AC |
4279 | |
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
4281 | $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } | |
4282 | case `$CC -V 2>&1` in | |
4283 | *Sun*WorkShop* | *Forte*Developer*) | |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 | |
4285 | $as_echo "Sun Workshop/Forte" >&6; } | |
4286 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
4287 | SunWorkShop=yes | |
4288 | SGS=yes | |
4289 | ;; | |
4290 | *Tru64*) | |
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 | |
4292 | $as_echo "Tru64 cc" >&6; } | |
4293 | IRC_CFLAGS="-O2" | |
4294 | CPPFLAGS="-I/usr/local/include" | |
4295 | Tru=yes | |
4296 | ;; | |
4297 | *HP*ANSI*) | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 | |
4299 | $as_echo "HPUX cc" >&6; } | |
4300 | HPUX=yes | |
4301 | IRC_CFLAGS="+e" | |
4302 | ;; | |
4303 | *) | |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4305 | $as_echo "no" >&6; } | |
4306 | ;; | |
631ef239 | 4307 | esac |
212380e3 | 4308 | |
212380e3 | 4309 | fi |
631ef239 | 4310 | |
7083c021 AC |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5 |
4312 | $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; } | |
4313 | OSNAME=`uname -s` | |
4314 | case "$OSNAME" in | |
4315 | HP-UX*) | |
631ef239 | 4316 | |
7083c021 AC |
4317 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
4319 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
4320 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
4321 | HPUX=yes | |
4322 | else | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
4324 | $as_echo "already using newer HPUX" >&6; } | |
4325 | fi | |
4326 | ;; | |
4327 | SunOS*) | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
4329 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 4330 | |
7083c021 | 4331 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 4332 | |
7083c021 AC |
4333 | SUN=yes |
4334 | ;; | |
4335 | AIX*) | |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
4337 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
4338 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
4339 | ;; | |
4340 | *) | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4342 | $as_echo "no" >&6; } | |
4343 | ;; | |
631ef239 | 4344 | esac |
212380e3 | 4345 | |
7083c021 AC |
4346 | if test "$ac_cv_c_compiler_gnu" = yes; then |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5 | |
4348 | $as_echo_n "checking if $CC is Apple GCC... " >&6; } | |
4349 | ||
4350 | case `$CC -v 2>&1 | tail -n 1` in | |
4351 | *Apple*) | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4353 | $as_echo "yes" >&6; } | |
4354 | AppleGCC=yes | |
4355 | ;; | |
4356 | *) | |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4358 | $as_echo "no" >&6; } | |
4359 | AppleGCC=no | |
4360 | ;; | |
4361 | esac | |
4362 | ||
4363 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
212380e3 | 4364 | fi |
631ef239 | 4365 | |
7083c021 AC |
4366 | if test "$ac_cv_prog_cc_g" = yes; then |
4367 | if test "$Tru" = yes; then | |
4368 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
4369 | else | |
4370 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
4371 | fi | |
212380e3 | 4372 | fi |
212380e3 | 4373 | |
7083c021 AC |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
4375 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
4376 | if test "$SGS" = "yes"; then | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4378 | $as_echo "yes" >&6; } | |
212380e3 | 4379 | else |
7083c021 AC |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4381 | $as_echo "no" >&6; } | |
4382 | fi | |
212380e3 | 4383 | |
7083c021 AC |
4384 | # Extract the first word of "mkdep", so it can be a program name with args. |
4385 | set dummy mkdep; ac_word=$2 | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4387 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4388 | if ${ac_cv_path_MKDEP+:} false; then : |
7083c021 AC |
4389 | $as_echo_n "(cached) " >&6 |
4390 | else | |
4391 | case $MKDEP in | |
4392 | [\\/]* | ?:[\\/]*) | |
4393 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
4394 | ;; | |
4395 | *) | |
4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4397 | for as_dir in $PATH | |
4398 | do | |
4399 | IFS=$as_save_IFS | |
4400 | test -z "$as_dir" && as_dir=. | |
4401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4403 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" | |
4404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4405 | break 2 | |
4406 | fi | |
4407 | done | |
4408 | done | |
4409 | IFS=$as_save_IFS | |
212380e3 | 4410 | |
7083c021 | 4411 | ;; |
631ef239 | 4412 | esac |
7083c021 AC |
4413 | fi |
4414 | MKDEP=$ac_cv_path_MKDEP | |
4415 | if test -n "$MKDEP"; then | |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
4417 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 4418 | else |
7083c021 AC |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4420 | $as_echo "no" >&6; } | |
212380e3 | 4421 | fi |
631ef239 | 4422 | |
7083c021 AC |
4423 | |
4424 | # Extract the first word of "makedepend", so it can be a program name with args. | |
4425 | set dummy makedepend; ac_word=$2 | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4427 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4428 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
7083c021 AC |
4429 | $as_echo_n "(cached) " >&6 |
4430 | else | |
4431 | case $MAKEDEPEND in | |
4432 | [\\/]* | ?:[\\/]*) | |
4433 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
4434 | ;; | |
4435 | *) | |
4436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4437 | for as_dir in $PATH | |
4438 | do | |
4439 | IFS=$as_save_IFS | |
4440 | test -z "$as_dir" && as_dir=. | |
4441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4443 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" | |
4444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4445 | break 2 | |
4446 | fi | |
4447 | done | |
212380e3 | 4448 | done |
7083c021 AC |
4449 | IFS=$as_save_IFS |
4450 | ||
4451 | ;; | |
4452 | esac | |
4453 | fi | |
4454 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
4455 | if test -n "$MAKEDEPEND"; then | |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
4457 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 4458 | else |
7083c021 AC |
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4460 | $as_echo "no" >&6; } | |
4461 | fi | |
212380e3 | 4462 | |
212380e3 | 4463 | |
212380e3 | 4464 | |
7083c021 AC |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
4466 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
4467 | ||
4468 | STDOUT="> .depend" | |
4469 | ||
4470 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
4472 | $as_echo "gcc -MM" >&6; } | |
4473 | MKDEP="$CC -MM" | |
4474 | elif test ! -z "$MKDEP"; then | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
4476 | $as_echo "mkdep" >&6; } | |
4477 | ||
4478 | if test -z "$Tru"; then | |
4479 | STDOUT="" | |
4480 | else | |
4481 | STDOUT=" 2> /dev/null" | |
4482 | fi | |
4483 | elif test "$SunWorkShop" = yes; then | |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
4485 | $as_echo "$CC -xM" >&6; } | |
4486 | MKDEP="$CC -xM" | |
4487 | STDOUT="> .depend 2> /dev/null" | |
4488 | elif test ! -z "$MAKEDEPEND"; then | |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
4490 | $as_echo "makedepend" >&6; } | |
4491 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 4492 | else |
7083c021 AC |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
4494 | $as_echo "nothing suitable.. forget it!" >&6; } | |
4495 | MKDEP=":" | |
212380e3 | 4496 | fi |
631ef239 | 4497 | |
7083c021 AC |
4498 | |
4499 | ||
4500 | ||
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
4502 | $as_echo_n "checking for /dev/null... " >&6; } | |
4503 | if test -c /dev/null ; then | |
4504 | ||
4505 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
4506 | ||
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4508 | $as_echo "yes" >&6; } | |
212380e3 | 4509 | else |
212380e3 | 4510 | |
7083c021 AC |
4511 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
4512 | ||
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
4514 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 4515 | fi |
631ef239 | 4516 | |
7083c021 AC |
4517 | if test ! -z "$CFLAGS"; then |
4518 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 4519 | fi |
631ef239 | 4520 | |
7083c021 AC |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4522 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 4523 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4524 | $as_echo_n "(cached) " >&6 |
4525 | else | |
4526 | ac_func_search_save_LIBS=$LIBS | |
4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4528 | /* end confdefs.h. */ |
7083c021 AC |
4529 | |
4530 | /* Override any GCC internal prototype to avoid an error. | |
4531 | Use char because int might match the return type of a GCC | |
4532 | builtin and then its argument prototype would still apply. */ | |
4533 | #ifdef __cplusplus | |
4534 | extern "C" | |
4535 | #endif | |
4536 | char strerror (); | |
212380e3 AC |
4537 | int |
4538 | main () | |
4539 | { | |
7083c021 | 4540 | return strerror (); |
212380e3 AC |
4541 | ; |
4542 | return 0; | |
4543 | } | |
4544 | _ACEOF | |
7083c021 AC |
4545 | for ac_lib in '' cposix; do |
4546 | if test -z "$ac_lib"; then | |
4547 | ac_res="none required" | |
4548 | else | |
4549 | ac_res=-l$ac_lib | |
4550 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4551 | fi | |
4552 | if ac_fn_c_try_link "$LINENO"; then : | |
4553 | ac_cv_search_strerror=$ac_res | |
4554 | fi | |
4555 | rm -f core conftest.err conftest.$ac_objext \ | |
4556 | conftest$ac_exeext | |
b6d0720c | 4557 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4558 | break |
4559 | fi | |
4560 | done | |
b6d0720c | 4561 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4562 | |
212380e3 | 4563 | else |
7083c021 AC |
4564 | ac_cv_search_strerror=no |
4565 | fi | |
4566 | rm conftest.$ac_ext | |
4567 | LIBS=$ac_func_search_save_LIBS | |
4568 | fi | |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
4570 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4571 | ac_res=$ac_cv_search_strerror | |
4572 | if test "$ac_res" != no; then : | |
4573 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 4574 | |
212380e3 | 4575 | fi |
631ef239 | 4576 | |
7083c021 AC |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4578 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 4579 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
4580 | $as_echo_n "(cached) " >&6 |
4581 | else | |
4582 | ac_cv_c_inline=no | |
4583 | for ac_kw in inline __inline__ __inline; do | |
4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4585 | /* end confdefs.h. */ | |
4586 | #ifndef __cplusplus | |
4587 | typedef int foo_t; | |
4588 | static $ac_kw foo_t static_foo () {return 0; } | |
4589 | $ac_kw foo_t foo () {return 0; } | |
4590 | #endif | |
4591 | ||
4592 | _ACEOF | |
4593 | if ac_fn_c_try_compile "$LINENO"; then : | |
4594 | ac_cv_c_inline=$ac_kw | |
4595 | fi | |
631ef239 | 4596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 4597 | test "$ac_cv_c_inline" != no && break |
212380e3 | 4598 | done |
7083c021 AC |
4599 | |
4600 | fi | |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4602 | $as_echo "$ac_cv_c_inline" >&6; } | |
4603 | ||
4604 | case $ac_cv_c_inline in | |
4605 | inline | yes) ;; | |
4606 | *) | |
4607 | case $ac_cv_c_inline in | |
4608 | no) ac_val=;; | |
4609 | *) ac_val=$ac_cv_c_inline;; | |
4610 | esac | |
4611 | cat >>confdefs.h <<_ACEOF | |
4612 | #ifndef __cplusplus | |
4613 | #define inline $ac_val | |
4614 | #endif | |
4615 | _ACEOF | |
4616 | ;; | |
212380e3 | 4617 | esac |
7083c021 AC |
4618 | |
4619 | if test $ac_cv_c_compiler_gnu = yes; then | |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4621 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b6d0720c | 4622 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
7083c021 | 4623 | $as_echo_n "(cached) " >&6 |
212380e3 | 4624 | else |
7083c021 AC |
4625 | ac_pattern="Autoconf.*'x'" |
4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4627 | /* end confdefs.h. */ | |
4628 | #include <sgtty.h> | |
4629 | Autoconf TIOCGETP | |
212380e3 | 4630 | _ACEOF |
7083c021 AC |
4631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4632 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4633 | ac_cv_prog_gcc_traditional=yes | |
4634 | else | |
4635 | ac_cv_prog_gcc_traditional=no | |
4636 | fi | |
4637 | rm -f conftest* | |
4638 | ||
4639 | ||
4640 | if test $ac_cv_prog_gcc_traditional = no; then | |
4641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4642 | /* end confdefs.h. */ |
7083c021 AC |
4643 | #include <termio.h> |
4644 | Autoconf TCGETA | |
4645 | _ACEOF | |
4646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4647 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4648 | ac_cv_prog_gcc_traditional=yes | |
4649 | fi | |
4650 | rm -f conftest* | |
212380e3 | 4651 | |
7083c021 AC |
4652 | fi |
4653 | fi | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4655 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4656 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4657 | CC="$CC -traditional" | |
4658 | fi | |
4659 | fi | |
212380e3 | 4660 | |
7083c021 AC |
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4662 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4663 | set x ${MAKE-make} | |
4664 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 4665 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
4666 | $as_echo_n "(cached) " >&6 |
4667 | else | |
4668 | cat >conftest.make <<\_ACEOF | |
4669 | SHELL = /bin/sh | |
4670 | all: | |
4671 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 4672 | _ACEOF |
b6d0720c | 4673 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
4674 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4675 | *@@@%%%=?*=@@@%%%*) | |
4676 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4677 | *) | |
4678 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 4679 | esac |
7083c021 AC |
4680 | rm -f conftest.make |
4681 | fi | |
4682 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4684 | $as_echo "yes" >&6; } | |
4685 | SET_MAKE= | |
4686 | else | |
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4688 | $as_echo "no" >&6; } | |
4689 | SET_MAKE="MAKE=${MAKE-make}" | |
4690 | fi | |
4691 | ||
4692 | # Find a good install program. We prefer a C program (faster), | |
4693 | # so one script is as good as another. But avoid the broken or | |
4694 | # incompatible versions: | |
4695 | # SysV /etc/install, /usr/sbin/install | |
4696 | # SunOS /usr/etc/install | |
4697 | # IRIX /sbin/install | |
4698 | # AIX /bin/install | |
4699 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4700 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4701 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4702 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4703 | # OS/2's system install, which has a completely different semantic | |
4704 | # ./install, which can be erroneously created by make from ./install.sh. | |
4705 | # Reject install programs that cannot install multiple files. | |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4707 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4708 | if test -z "$INSTALL"; then | |
b6d0720c | 4709 | if ${ac_cv_path_install+:} false; then : |
7083c021 AC |
4710 | $as_echo_n "(cached) " >&6 |
4711 | else | |
4712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4713 | for as_dir in $PATH | |
4714 | do | |
4715 | IFS=$as_save_IFS | |
4716 | test -z "$as_dir" && as_dir=. | |
4717 | # Account for people who put trailing slashes in PATH elements. | |
4718 | case $as_dir/ in #(( | |
4719 | ./ | .// | /[cC]/* | \ | |
4720 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4721 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4722 | /usr/ucb/* ) ;; | |
4723 | *) | |
4724 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4725 | # Don't use installbsd from OSF since it installs stuff as root | |
4726 | # by default. | |
4727 | for ac_prog in ginstall scoinst install; do | |
4728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4729 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4730 | if test $ac_prog = install && | |
4731 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4732 | # AIX install. It has an incompatible calling convention. | |
4733 | : | |
4734 | elif test $ac_prog = install && | |
4735 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4736 | # program-specific install script used by HP pwplus--don't use. | |
4737 | : | |
4738 | else | |
4739 | rm -rf conftest.one conftest.two conftest.dir | |
4740 | echo one > conftest.one | |
4741 | echo two > conftest.two | |
4742 | mkdir conftest.dir | |
4743 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4744 | test -s conftest.one && test -s conftest.two && | |
4745 | test -s conftest.dir/conftest.one && | |
4746 | test -s conftest.dir/conftest.two | |
4747 | then | |
4748 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4749 | break 3 | |
4750 | fi | |
4751 | fi | |
4752 | fi | |
4753 | done | |
4754 | done | |
4755 | ;; | |
631ef239 | 4756 | esac |
7083c021 AC |
4757 | |
4758 | done | |
4759 | IFS=$as_save_IFS | |
4760 | ||
4761 | rm -rf conftest.one conftest.two conftest.dir | |
4762 | ||
4763 | fi | |
4764 | if test "${ac_cv_path_install+set}" = set; then | |
4765 | INSTALL=$ac_cv_path_install | |
4766 | else | |
4767 | # As a last resort, use the slow shell script. Don't cache a | |
4768 | # value for INSTALL within a source directory, because that will | |
4769 | # break other packages using the cache if that directory is | |
4770 | # removed, or if the value is a relative name. | |
4771 | INSTALL=$ac_install_sh | |
4772 | fi | |
4773 | fi | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4775 | $as_echo "$INSTALL" >&6; } | |
4776 | ||
4777 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4778 | # It thinks the first close brace ends the variable substitution. | |
4779 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4780 | ||
4781 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4782 | ||
4783 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4784 | ||
4785 | # Extract the first word of "rm", so it can be a program name with args. | |
4786 | set dummy rm; ac_word=$2 | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4788 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4789 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 4790 | $as_echo_n "(cached) " >&6 |
212380e3 | 4791 | else |
7083c021 AC |
4792 | case $RM in |
4793 | [\\/]* | ?:[\\/]*) | |
4794 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4795 | ;; | |
4796 | *) | |
4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4798 | for as_dir in $PATH | |
4799 | do | |
4800 | IFS=$as_save_IFS | |
4801 | test -z "$as_dir" && as_dir=. | |
4802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4804 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
4805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4806 | break 2 | |
4807 | fi | |
4808 | done | |
4809 | done | |
4810 | IFS=$as_save_IFS | |
212380e3 | 4811 | |
7083c021 AC |
4812 | ;; |
4813 | esac | |
212380e3 | 4814 | fi |
7083c021 AC |
4815 | RM=$ac_cv_path_RM |
4816 | if test -n "$RM"; then | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4818 | $as_echo "$RM" >&6; } | |
4819 | else | |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4821 | $as_echo "no" >&6; } | |
212380e3 | 4822 | fi |
631ef239 AC |
4823 | |
4824 | ||
7083c021 AC |
4825 | # Extract the first word of "cp", so it can be a program name with args. |
4826 | set dummy cp; ac_word=$2 | |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4828 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4829 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
4830 | $as_echo_n "(cached) " >&6 |
4831 | else | |
4832 | case $CP in | |
4833 | [\\/]* | ?:[\\/]*) | |
4834 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4835 | ;; | |
4836 | *) | |
4837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4838 | for as_dir in $PATH | |
4839 | do | |
4840 | IFS=$as_save_IFS | |
4841 | test -z "$as_dir" && as_dir=. | |
4842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4844 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
4845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4846 | break 2 | |
4847 | fi | |
4848 | done | |
4849 | done | |
4850 | IFS=$as_save_IFS | |
631ef239 | 4851 | |
7083c021 AC |
4852 | ;; |
4853 | esac | |
4854 | fi | |
4855 | CP=$ac_cv_path_CP | |
4856 | if test -n "$CP"; then | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
4858 | $as_echo "$CP" >&6; } | |
4859 | else | |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4861 | $as_echo "no" >&6; } | |
4862 | fi | |
212380e3 AC |
4863 | |
4864 | ||
7083c021 AC |
4865 | # Extract the first word of "mv", so it can be a program name with args. |
4866 | set dummy mv; ac_word=$2 | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4868 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4869 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 4870 | $as_echo_n "(cached) " >&6 |
212380e3 | 4871 | else |
7083c021 AC |
4872 | case $MV in |
4873 | [\\/]* | ?:[\\/]*) | |
4874 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4875 | ;; | |
4876 | *) | |
4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4878 | for as_dir in $PATH | |
4879 | do | |
4880 | IFS=$as_save_IFS | |
4881 | test -z "$as_dir" && as_dir=. | |
4882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4884 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
4885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4886 | break 2 | |
4887 | fi | |
4888 | done | |
4889 | done | |
4890 | IFS=$as_save_IFS | |
4891 | ||
4892 | ;; | |
631ef239 | 4893 | esac |
7083c021 AC |
4894 | fi |
4895 | MV=$ac_cv_path_MV | |
4896 | if test -n "$MV"; then | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4898 | $as_echo "$MV" >&6; } | |
212380e3 | 4899 | else |
7083c021 AC |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4901 | $as_echo "no" >&6; } | |
212380e3 | 4902 | fi |
631ef239 | 4903 | |
212380e3 | 4904 | |
7083c021 AC |
4905 | # Extract the first word of "ln", so it can be a program name with args. |
4906 | set dummy ln; ac_word=$2 | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4908 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4909 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 4910 | $as_echo_n "(cached) " >&6 |
212380e3 | 4911 | else |
7083c021 AC |
4912 | case $LN in |
4913 | [\\/]* | ?:[\\/]*) | |
4914 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4915 | ;; | |
4916 | *) | |
4917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4918 | for as_dir in $PATH | |
4919 | do | |
4920 | IFS=$as_save_IFS | |
4921 | test -z "$as_dir" && as_dir=. | |
4922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4924 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
4925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4926 | break 2 | |
4927 | fi | |
4928 | done | |
4929 | done | |
4930 | IFS=$as_save_IFS | |
212380e3 | 4931 | |
7083c021 | 4932 | ;; |
631ef239 | 4933 | esac |
7083c021 AC |
4934 | fi |
4935 | LN=$ac_cv_path_LN | |
4936 | if test -n "$LN"; then | |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4938 | $as_echo "$LN" >&6; } | |
212380e3 | 4939 | else |
7083c021 AC |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4941 | $as_echo "no" >&6; } | |
212380e3 | 4942 | fi |
631ef239 | 4943 | |
7083c021 AC |
4944 | |
4945 | # Extract the first word of "sed", so it can be a program name with args. | |
4946 | set dummy sed; ac_word=$2 | |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4948 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4949 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
4950 | $as_echo_n "(cached) " >&6 |
4951 | else | |
4952 | case $SED in | |
4953 | [\\/]* | ?:[\\/]*) | |
4954 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4955 | ;; | |
4956 | *) | |
4957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4958 | for as_dir in $PATH | |
4959 | do | |
4960 | IFS=$as_save_IFS | |
4961 | test -z "$as_dir" && as_dir=. | |
4962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4964 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
4965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4966 | break 2 | |
4967 | fi | |
4968 | done | |
212380e3 | 4969 | done |
7083c021 AC |
4970 | IFS=$as_save_IFS |
4971 | ||
4972 | ;; | |
4973 | esac | |
4974 | fi | |
4975 | SED=$ac_cv_path_SED | |
4976 | if test -n "$SED"; then | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4978 | $as_echo "$SED" >&6; } | |
212380e3 | 4979 | else |
7083c021 AC |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4981 | $as_echo "no" >&6; } | |
4982 | fi | |
212380e3 | 4983 | |
212380e3 | 4984 | |
7083c021 AC |
4985 | # Extract the first word of "ar", so it can be a program name with args. |
4986 | set dummy ar; ac_word=$2 | |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4988 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4989 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
4990 | $as_echo_n "(cached) " >&6 |
4991 | else | |
4992 | case $AR in | |
4993 | [\\/]* | ?:[\\/]*) | |
4994 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
4995 | ;; | |
4996 | *) | |
4997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4998 | for as_dir in $PATH | |
4999 | do | |
5000 | IFS=$as_save_IFS | |
5001 | test -z "$as_dir" && as_dir=. | |
5002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5004 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
5005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5006 | break 2 | |
5007 | fi | |
5008 | done | |
5009 | done | |
5010 | IFS=$as_save_IFS | |
212380e3 | 5011 | |
7083c021 | 5012 | ;; |
631ef239 | 5013 | esac |
7083c021 AC |
5014 | fi |
5015 | AR=$ac_cv_path_AR | |
5016 | if test -n "$AR"; then | |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5018 | $as_echo "$AR" >&6; } | |
212380e3 | 5019 | else |
7083c021 AC |
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5021 | $as_echo "no" >&6; } | |
212380e3 | 5022 | fi |
631ef239 | 5023 | |
7083c021 AC |
5024 | |
5025 | # Extract the first word of "ld", so it can be a program name with args. | |
5026 | set dummy ld; ac_word=$2 | |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5028 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5029 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 5030 | $as_echo_n "(cached) " >&6 |
212380e3 | 5031 | else |
7083c021 AC |
5032 | case $LD in |
5033 | [\\/]* | ?:[\\/]*) | |
5034 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
5035 | ;; | |
5036 | *) | |
5037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5038 | for as_dir in $PATH | |
5039 | do | |
5040 | IFS=$as_save_IFS | |
5041 | test -z "$as_dir" && as_dir=. | |
5042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5044 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
5045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5046 | break 2 | |
5047 | fi | |
5048 | done | |
5049 | done | |
5050 | IFS=$as_save_IFS | |
212380e3 | 5051 | |
7083c021 AC |
5052 | ;; |
5053 | esac | |
212380e3 | 5054 | fi |
7083c021 AC |
5055 | LD=$ac_cv_path_LD |
5056 | if test -n "$LD"; then | |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5058 | $as_echo "$LD" >&6; } | |
5059 | else | |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5061 | $as_echo "no" >&6; } | |
212380e3 | 5062 | fi |
631ef239 | 5063 | |
212380e3 | 5064 | |
7083c021 AC |
5065 | # Extract the first word of "ranlib", so it can be a program name with args. |
5066 | set dummy ranlib; ac_word=$2 | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5068 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5069 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 5070 | $as_echo_n "(cached) " >&6 |
212380e3 | 5071 | else |
7083c021 AC |
5072 | case $RANLIB in |
5073 | [\\/]* | ?:[\\/]*) | |
5074 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
5075 | ;; | |
5076 | *) | |
5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5078 | for as_dir in $PATH | |
5079 | do | |
5080 | IFS=$as_save_IFS | |
5081 | test -z "$as_dir" && as_dir=. | |
5082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
5085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5086 | break 2 | |
5087 | fi | |
5088 | done | |
5089 | done | |
5090 | IFS=$as_save_IFS | |
212380e3 | 5091 | |
7083c021 AC |
5092 | ;; |
5093 | esac | |
5094 | fi | |
5095 | RANLIB=$ac_cv_path_RANLIB | |
5096 | if test -n "$RANLIB"; then | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5098 | $as_echo "$RANLIB" >&6; } | |
5099 | else | |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5101 | $as_echo "no" >&6; } | |
212380e3 | 5102 | fi |
631ef239 | 5103 | |
7083c021 AC |
5104 | |
5105 | # Extract the first word of "touch", so it can be a program name with args. | |
5106 | set dummy touch; ac_word=$2 | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5108 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5109 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
5110 | $as_echo_n "(cached) " >&6 |
5111 | else | |
5112 | case $TOUCH in | |
5113 | [\\/]* | ?:[\\/]*) | |
5114 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5115 | ;; | |
5116 | *) | |
5117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5118 | for as_dir in $PATH | |
5119 | do | |
5120 | IFS=$as_save_IFS | |
5121 | test -z "$as_dir" && as_dir=. | |
5122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5124 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
5125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5126 | break 2 | |
5127 | fi | |
212380e3 | 5128 | done |
7083c021 AC |
5129 | done |
5130 | IFS=$as_save_IFS | |
5131 | ||
5132 | ;; | |
212380e3 | 5133 | esac |
7083c021 AC |
5134 | fi |
5135 | TOUCH=$ac_cv_path_TOUCH | |
5136 | if test -n "$TOUCH"; then | |
5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
5138 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 5139 | else |
7083c021 AC |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5141 | $as_echo "no" >&6; } | |
5142 | fi | |
212380e3 | 5143 | |
212380e3 | 5144 | |
7083c021 AC |
5145 | |
5146 | for ac_prog in 'bison -y' byacc | |
5147 | do | |
5148 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5149 | set dummy $ac_prog; ac_word=$2 | |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5151 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5152 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 5153 | $as_echo_n "(cached) " >&6 |
212380e3 | 5154 | else |
7083c021 AC |
5155 | if test -n "$YACC"; then |
5156 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5157 | else | |
5158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5159 | for as_dir in $PATH | |
5160 | do | |
5161 | IFS=$as_save_IFS | |
5162 | test -z "$as_dir" && as_dir=. | |
5163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5165 | ac_cv_prog_YACC="$ac_prog" | |
5166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5167 | break 2 | |
5168 | fi | |
5169 | done | |
5170 | done | |
5171 | IFS=$as_save_IFS | |
212380e3 | 5172 | |
212380e3 AC |
5173 | fi |
5174 | fi | |
7083c021 AC |
5175 | YACC=$ac_cv_prog_YACC |
5176 | if test -n "$YACC"; then | |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5178 | $as_echo "$YACC" >&6; } | |
5179 | else | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5181 | $as_echo "no" >&6; } | |
212380e3 | 5182 | fi |
631ef239 AC |
5183 | |
5184 | ||
7083c021 AC |
5185 | test -n "$YACC" && break |
5186 | done | |
5187 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
5188 | |
5189 | ||
7083c021 | 5190 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 5191 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 5192 | fi |
212380e3 | 5193 | |
7083c021 AC |
5194 | for ac_prog in flex lex |
5195 | do | |
5196 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5197 | set dummy $ac_prog; ac_word=$2 | |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5199 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5200 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 5201 | $as_echo_n "(cached) " >&6 |
212380e3 | 5202 | else |
7083c021 AC |
5203 | if test -n "$LEX"; then |
5204 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 5205 | else |
7083c021 AC |
5206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5207 | for as_dir in $PATH | |
5208 | do | |
5209 | IFS=$as_save_IFS | |
5210 | test -z "$as_dir" && as_dir=. | |
5211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5213 | ac_cv_prog_LEX="$ac_prog" | |
5214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5215 | break 2 | |
5216 | fi | |
631ef239 | 5217 | done |
7083c021 AC |
5218 | done |
5219 | IFS=$as_save_IFS | |
631ef239 | 5220 | |
7083c021 AC |
5221 | fi |
5222 | fi | |
5223 | LEX=$ac_cv_prog_LEX | |
5224 | if test -n "$LEX"; then | |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
5226 | $as_echo "$LEX" >&6; } | |
631ef239 | 5227 | else |
7083c021 AC |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5229 | $as_echo "no" >&6; } | |
631ef239 AC |
5230 | fi |
5231 | ||
5232 | ||
7083c021 AC |
5233 | test -n "$LEX" && break |
5234 | done | |
5235 | test -n "$LEX" || LEX=":" | |
212380e3 | 5236 | |
7083c021 AC |
5237 | if test "x$LEX" != "x:"; then |
5238 | cat >conftest.l <<_ACEOF | |
5239 | %% | |
5240 | a { ECHO; } | |
5241 | b { REJECT; } | |
5242 | c { yymore (); } | |
5243 | d { yyless (1); } | |
5244 | e { yyless (input () != 0); } | |
5245 | f { unput (yytext[0]); } | |
5246 | . { BEGIN INITIAL; } | |
5247 | %% | |
5248 | #ifdef YYTEXT_POINTER | |
5249 | extern char *yytext; | |
212380e3 | 5250 | #endif |
212380e3 | 5251 | int |
7083c021 | 5252 | main (void) |
212380e3 | 5253 | { |
7083c021 | 5254 | return ! yylex () + ! yywrap (); |
212380e3 AC |
5255 | } |
5256 | _ACEOF | |
7083c021 | 5257 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
5258 | case "(($ac_try" in |
5259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5260 | *) ac_try_echo=$ac_try;; | |
5261 | esac | |
7083c021 AC |
5262 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5263 | $as_echo "$ac_try_echo"; } >&5 | |
5264 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 5265 | ac_status=$? |
7083c021 AC |
5266 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5267 | test $ac_status = 0; } | |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
5269 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 5270 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 5271 | $as_echo_n "(cached) " >&6 |
212380e3 | 5272 | else |
212380e3 | 5273 | |
7083c021 AC |
5274 | if test -f lex.yy.c; then |
5275 | ac_cv_prog_lex_root=lex.yy | |
5276 | elif test -f lexyy.c; then | |
5277 | ac_cv_prog_lex_root=lexyy | |
5278 | else | |
b6d0720c | 5279 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
5280 | fi |
5281 | fi | |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
5283 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
5284 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
5285 | ||
5286 | if test -z "${LEXLIB+set}"; then | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
5288 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 5289 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
5290 | $as_echo_n "(cached) " >&6 |
5291 | else | |
631ef239 | 5292 | |
7083c021 AC |
5293 | ac_save_LIBS=$LIBS |
5294 | ac_cv_lib_lex='none needed' | |
5295 | for ac_lib in '' -lfl -ll; do | |
5296 | LIBS="$ac_lib $ac_save_LIBS" | |
5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5298 | /* end confdefs.h. */ | |
5299 | `cat $LEX_OUTPUT_ROOT.c` | |
5300 | _ACEOF | |
5301 | if ac_fn_c_try_link "$LINENO"; then : | |
5302 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 5303 | fi |
7083c021 AC |
5304 | rm -f core conftest.err conftest.$ac_objext \ |
5305 | conftest$ac_exeext conftest.$ac_ext | |
5306 | test "$ac_cv_lib_lex" != 'none needed' && break | |
5307 | done | |
5308 | LIBS=$ac_save_LIBS | |
631ef239 | 5309 | |
631ef239 | 5310 | fi |
7083c021 AC |
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
5312 | $as_echo "$ac_cv_lib_lex" >&6; } | |
5313 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
5314 | fi | |
5315 | ||
5316 | ||
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
5318 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 5319 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 5320 | $as_echo_n "(cached) " >&6 |
631ef239 | 5321 | else |
7083c021 AC |
5322 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5323 | # default is implementation-dependent. Figure out which it is, since | |
5324 | # not all implementations provide the %pointer and %array declarations. | |
5325 | ac_cv_prog_lex_yytext_pointer=no | |
5326 | ac_save_LIBS=$LIBS | |
5327 | LIBS="$LEXLIB $ac_save_LIBS" | |
5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5329 | /* end confdefs.h. */ | |
b6d0720c AC |
5330 | |
5331 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
5332 | `cat $LEX_OUTPUT_ROOT.c` |
5333 | _ACEOF | |
5334 | if ac_fn_c_try_link "$LINENO"; then : | |
5335 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 5336 | fi |
7083c021 AC |
5337 | rm -f core conftest.err conftest.$ac_objext \ |
5338 | conftest$ac_exeext conftest.$ac_ext | |
5339 | LIBS=$ac_save_LIBS | |
5340 | ||
212380e3 | 5341 | fi |
7083c021 AC |
5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5343 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
5344 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 5345 | |
7083c021 AC |
5346 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
5347 | ||
5348 | fi | |
5349 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
5350 | ||
5351 | fi | |
5352 | ||
5353 | if test "$LEX" = ":"; then | |
b6d0720c | 5354 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
5355 | fi |
5356 | ||
7083c021 AC |
5357 | if test "$libexecdir" = '${exec_prefix}/libexec' && |
5358 | test "$localstatedir" = '${prefix}/var'; then | |
5359 | libexecdir='${bindir}' | |
5360 | localstatedir='${prefix}' | |
631ef239 | 5361 | fi |
212380e3 | 5362 | |
7083c021 AC |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5364 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 5365 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 5366 | $as_echo_n "(cached) " >&6 |
212380e3 | 5367 | else |
7083c021 | 5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5369 | /* end confdefs.h. */ |
7083c021 AC |
5370 | #include <stdlib.h> |
5371 | #include <stdarg.h> | |
5372 | #include <string.h> | |
5373 | #include <float.h> | |
212380e3 AC |
5374 | |
5375 | int | |
5376 | main () | |
5377 | { | |
7083c021 | 5378 | |
212380e3 AC |
5379 | ; |
5380 | return 0; | |
5381 | } | |
5382 | _ACEOF | |
7083c021 AC |
5383 | if ac_fn_c_try_compile "$LINENO"; then : |
5384 | ac_cv_header_stdc=yes | |
212380e3 | 5385 | else |
7083c021 | 5386 | ac_cv_header_stdc=no |
212380e3 | 5387 | fi |
631ef239 | 5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5389 | |
7083c021 AC |
5390 | if test $ac_cv_header_stdc = yes; then |
5391 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5393 | /* end confdefs.h. */ | |
5394 | #include <string.h> | |
5395 | ||
212380e3 | 5396 | _ACEOF |
7083c021 AC |
5397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5398 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5399 | ||
5400 | else | |
5401 | ac_cv_header_stdc=no | |
5402 | fi | |
5403 | rm -f conftest* | |
212380e3 AC |
5404 | |
5405 | fi | |
5406 | ||
7083c021 AC |
5407 | if test $ac_cv_header_stdc = yes; then |
5408 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5410 | /* end confdefs.h. */ | |
5411 | #include <stdlib.h> | |
5412 | ||
5413 | _ACEOF | |
5414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5415 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 5416 | |
212380e3 | 5417 | else |
7083c021 | 5418 | ac_cv_header_stdc=no |
631ef239 | 5419 | fi |
7083c021 | 5420 | rm -f conftest* |
631ef239 | 5421 | |
7083c021 | 5422 | fi |
212380e3 | 5423 | |
7083c021 AC |
5424 | if test $ac_cv_header_stdc = yes; then |
5425 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5426 | if test "$cross_compiling" = yes; then : | |
5427 | : | |
212380e3 | 5428 | else |
7083c021 | 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5430 | /* end confdefs.h. */ |
7083c021 AC |
5431 | #include <ctype.h> |
5432 | #include <stdlib.h> | |
5433 | #if ((' ' & 0x0FF) == 0x020) | |
5434 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5435 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5436 | #else | |
5437 | # define ISLOWER(c) \ | |
5438 | (('a' <= (c) && (c) <= 'i') \ | |
5439 | || ('j' <= (c) && (c) <= 'r') \ | |
5440 | || ('s' <= (c) && (c) <= 'z')) | |
5441 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 5442 | #endif |
7083c021 AC |
5443 | |
5444 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
5445 | int |
5446 | main () | |
5447 | { | |
7083c021 AC |
5448 | int i; |
5449 | for (i = 0; i < 256; i++) | |
5450 | if (XOR (islower (i), ISLOWER (i)) | |
5451 | || toupper (i) != TOUPPER (i)) | |
5452 | return 2; | |
212380e3 AC |
5453 | return 0; |
5454 | } | |
5455 | _ACEOF | |
7083c021 | 5456 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5457 | |
7083c021 AC |
5458 | else |
5459 | ac_cv_header_stdc=no | |
631ef239 | 5460 | fi |
7083c021 AC |
5461 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5462 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5463 | fi |
7083c021 | 5464 | |
212380e3 | 5465 | fi |
212380e3 | 5466 | fi |
7083c021 AC |
5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5468 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5469 | if test $ac_cv_header_stdc = yes; then | |
5470 | ||
5471 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
5472 | |
5473 | fi | |
5474 | ||
5475 | ||
7083c021 AC |
5476 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h |
5477 | do : | |
5478 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5479 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 5480 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
5481 | cat >>confdefs.h <<_ACEOF |
5482 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5483 | _ACEOF | |
212380e3 | 5484 | |
212380e3 AC |
5485 | fi |
5486 | ||
7083c021 | 5487 | done |
212380e3 AC |
5488 | |
5489 | ||
212380e3 | 5490 | |
7083c021 AC |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5492 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 5493 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
5494 | $as_echo_n "(cached) " >&6 |
5495 | else | |
5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5497 | /* end confdefs.h. */ | |
212380e3 | 5498 | |
7083c021 AC |
5499 | int |
5500 | main () | |
5501 | { | |
5502 | /* FIXME: Include the comments suggested by Paul. */ | |
5503 | #ifndef __cplusplus | |
5504 | /* Ultrix mips cc rejects this. */ | |
5505 | typedef int charset[2]; | |
5506 | const charset cs; | |
5507 | /* SunOS 4.1.1 cc rejects this. */ | |
5508 | char const *const *pcpcc; | |
5509 | char **ppc; | |
5510 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5511 | struct point {int x, y;}; | |
5512 | static struct point const zero = {0,0}; | |
5513 | /* AIX XL C 1.02.0.0 rejects this. | |
5514 | It does not let you subtract one const X* pointer from another in | |
5515 | an arm of an if-expression whose if-part is not a constant | |
5516 | expression */ | |
5517 | const char *g = "string"; | |
5518 | pcpcc = &g + (g ? g-g : 0); | |
5519 | /* HPUX 7.0 cc rejects these. */ | |
5520 | ++pcpcc; | |
5521 | ppc = (char**) pcpcc; | |
5522 | pcpcc = (char const *const *) ppc; | |
5523 | { /* SCO 3.2v4 cc rejects this. */ | |
5524 | char *t; | |
5525 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
212380e3 | 5526 | |
7083c021 AC |
5527 | *t++ = 0; |
5528 | if (s) return 0; | |
5529 | } | |
5530 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5531 | int x[] = {25, 17}; | |
5532 | const int *foo = &x[0]; | |
5533 | ++foo; | |
5534 | } | |
5535 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5536 | typedef const int *iptr; | |
5537 | iptr p = 0; | |
5538 | ++p; | |
5539 | } | |
5540 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5541 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5542 | struct s { int j; const int *ap[3]; }; | |
5543 | struct s *b; b->j = 5; | |
5544 | } | |
5545 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5546 | const int foo = 10; | |
5547 | if (!foo) return 0; | |
5548 | } | |
5549 | return !cs[0] && !zero.x; | |
5550 | #endif | |
212380e3 | 5551 | |
7083c021 AC |
5552 | ; |
5553 | return 0; | |
5554 | } | |
212380e3 | 5555 | _ACEOF |
7083c021 AC |
5556 | if ac_fn_c_try_compile "$LINENO"; then : |
5557 | ac_cv_c_const=yes | |
212380e3 | 5558 | else |
7083c021 | 5559 | ac_cv_c_const=no |
212380e3 | 5560 | fi |
631ef239 | 5561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5562 | fi |
7083c021 AC |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5564 | $as_echo "$ac_cv_c_const" >&6; } | |
5565 | if test $ac_cv_c_const = no; then | |
212380e3 | 5566 | |
7083c021 | 5567 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
5568 | |
5569 | fi | |
5570 | ||
7083c021 AC |
5571 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5573 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 5574 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 5575 | $as_echo_n "(cached) " >&6 |
212380e3 | 5576 | else |
7083c021 AC |
5577 | ac_cv_c_bigendian=unknown |
5578 | # See if we're dealing with a universal compiler. | |
5579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5580 | /* end confdefs.h. */ | |
5581 | #ifndef __APPLE_CC__ | |
5582 | not a universal capable compiler | |
5583 | #endif | |
5584 | typedef int dummy; | |
5585 | ||
5586 | _ACEOF | |
5587 | if ac_fn_c_try_compile "$LINENO"; then : | |
5588 | ||
5589 | # Check for potential -arch flags. It is not universal unless | |
5590 | # there are at least two -arch flags with different values. | |
5591 | ac_arch= | |
5592 | ac_prev= | |
5593 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5594 | if test -n "$ac_prev"; then | |
5595 | case $ac_word in | |
5596 | i?86 | x86_64 | ppc | ppc64) | |
5597 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5598 | ac_arch=$ac_word | |
5599 | else | |
5600 | ac_cv_c_bigendian=universal | |
5601 | break | |
5602 | fi | |
5603 | ;; | |
5604 | esac | |
5605 | ac_prev= | |
5606 | elif test "x$ac_word" = "x-arch"; then | |
5607 | ac_prev=arch | |
5608 | fi | |
5609 | done | |
5610 | fi | |
5611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5612 | if test $ac_cv_c_bigendian = unknown; then | |
5613 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
5615 | /* end confdefs.h. */ |
5616 | #include <sys/types.h> | |
7083c021 | 5617 | #include <sys/param.h> |
212380e3 AC |
5618 | |
5619 | int | |
5620 | main () | |
5621 | { | |
7083c021 AC |
5622 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5623 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5624 | && LITTLE_ENDIAN) | |
5625 | bogus endian macros | |
5626 | #endif | |
212380e3 AC |
5627 | |
5628 | ; | |
5629 | return 0; | |
5630 | } | |
5631 | _ACEOF | |
7083c021 | 5632 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5633 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 5634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
5635 | /* end confdefs.h. */ |
5636 | #include <sys/types.h> | |
7083c021 | 5637 | #include <sys/param.h> |
212380e3 AC |
5638 | |
5639 | int | |
5640 | main () | |
5641 | { | |
5642 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
5643 | not big endian |
5644 | #endif | |
212380e3 AC |
5645 | |
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
7083c021 | 5650 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
5651 | ac_cv_c_bigendian=yes |
5652 | else | |
7083c021 | 5653 | ac_cv_c_bigendian=no |
212380e3 | 5654 | fi |
631ef239 | 5655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
5656 | fi |
5657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5658 | fi | |
5659 | if test $ac_cv_c_bigendian = unknown; then | |
5660 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5662 | /* end confdefs.h. */ | |
5663 | #include <limits.h> | |
212380e3 | 5664 | |
7083c021 AC |
5665 | int |
5666 | main () | |
5667 | { | |
5668 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5669 | bogus endian macros | |
5670 | #endif | |
5671 | ||
5672 | ; | |
5673 | return 0; | |
5674 | } | |
212380e3 | 5675 | _ACEOF |
7083c021 AC |
5676 | if ac_fn_c_try_compile "$LINENO"; then : |
5677 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5679 | /* end confdefs.h. */ |
7083c021 AC |
5680 | #include <limits.h> |
5681 | ||
212380e3 AC |
5682 | int |
5683 | main () | |
5684 | { | |
7083c021 AC |
5685 | #ifndef _BIG_ENDIAN |
5686 | not big endian | |
5687 | #endif | |
5688 | ||
212380e3 AC |
5689 | ; |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
7083c021 | 5693 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5694 | ac_cv_c_bigendian=yes |
7083c021 AC |
5695 | else |
5696 | ac_cv_c_bigendian=no | |
212380e3 | 5697 | fi |
7083c021 | 5698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5699 | fi |
7083c021 AC |
5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5701 | fi | |
5702 | if test $ac_cv_c_bigendian = unknown; then | |
5703 | # Compile a test program. | |
5704 | if test "$cross_compiling" = yes; then : | |
5705 | # Try to guess by grepping values from an object file. | |
5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5707 | /* end confdefs.h. */ | |
5708 | short int ascii_mm[] = | |
5709 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5710 | short int ascii_ii[] = | |
5711 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5712 | int use_ascii (int i) { | |
5713 | return ascii_mm[i] + ascii_ii[i]; | |
5714 | } | |
5715 | short int ebcdic_ii[] = | |
5716 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5717 | short int ebcdic_mm[] = | |
5718 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5719 | int use_ebcdic (int i) { | |
5720 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5721 | } | |
5722 | extern int foo; | |
631ef239 | 5723 | |
7083c021 AC |
5724 | int |
5725 | main () | |
5726 | { | |
5727 | return use_ascii (foo) == use_ebcdic (foo); | |
5728 | ; | |
5729 | return 0; | |
5730 | } | |
5731 | _ACEOF | |
5732 | if ac_fn_c_try_compile "$LINENO"; then : | |
5733 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5734 | ac_cv_c_bigendian=yes | |
5735 | fi | |
5736 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5737 | if test "$ac_cv_c_bigendian" = unknown; then | |
5738 | ac_cv_c_bigendian=no | |
5739 | else | |
5740 | # finding both strings is unlikely to happen, but who knows? | |
5741 | ac_cv_c_bigendian=unknown | |
5742 | fi | |
5743 | fi | |
212380e3 | 5744 | fi |
631ef239 | 5745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5746 | else |
7083c021 | 5747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5748 | /* end confdefs.h. */ |
631ef239 | 5749 | $ac_includes_default |
212380e3 AC |
5750 | int |
5751 | main () | |
5752 | { | |
631ef239 | 5753 | |
7083c021 AC |
5754 | /* Are we little or big endian? From Harbison&Steele. */ |
5755 | union | |
5756 | { | |
5757 | long int l; | |
5758 | char c[sizeof (long int)]; | |
5759 | } u; | |
5760 | u.l = 1; | |
5761 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
5762 | |
5763 | ; | |
5764 | return 0; | |
212380e3 AC |
5765 | } |
5766 | _ACEOF | |
7083c021 | 5767 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
5768 | ac_cv_c_bigendian=no |
5769 | else | |
7083c021 | 5770 | ac_cv_c_bigendian=yes |
212380e3 | 5771 | fi |
7083c021 AC |
5772 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5773 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5774 | fi |
631ef239 | 5775 | |
7083c021 | 5776 | fi |
212380e3 | 5777 | fi |
7083c021 AC |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5779 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5780 | case $ac_cv_c_bigendian in #( | |
5781 | yes) | |
5782 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5783 | ;; #( | |
5784 | no) | |
5785 | ;; #( | |
5786 | universal) | |
5787 | ||
5788 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5789 | ||
5790 | ;; #( | |
5791 | *) | |
b6d0720c | 5792 | as_fn_error $? "unknown endianness |
7083c021 AC |
5793 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5794 | esac | |
631ef239 | 5795 | |
212380e3 | 5796 | fi |
7083c021 | 5797 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 5798 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 5799 | |
7083c021 | 5800 | else |
212380e3 | 5801 | |
7083c021 AC |
5802 | cat >>confdefs.h <<_ACEOF |
5803 | #define pid_t int | |
5804 | _ACEOF | |
212380e3 | 5805 | |
212380e3 | 5806 | fi |
7083c021 AC |
5807 | |
5808 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 5809 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 5810 | |
212380e3 | 5811 | else |
7083c021 AC |
5812 | |
5813 | cat >>confdefs.h <<_ACEOF | |
5814 | #define size_t unsigned int | |
212380e3 | 5815 | _ACEOF |
7083c021 AC |
5816 | |
5817 | fi | |
5818 | ||
5819 | # The cast to long int works around a bug in the HP C Compiler | |
5820 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5821 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5822 | # This bug is HP SR number 8606223364. | |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5824 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 5825 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 5826 | $as_echo_n "(cached) " >&6 |
212380e3 | 5827 | else |
7083c021 AC |
5828 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
5829 | ||
5830 | else | |
5831 | if test "$ac_cv_type_short" = yes; then | |
5832 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5833 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5834 | as_fn_error 77 "cannot compute sizeof (short) |
5835 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5836 | else |
5837 | ac_cv_sizeof_short=0 | |
5838 | fi | |
5839 | fi | |
212380e3 | 5840 | |
212380e3 | 5841 | fi |
7083c021 AC |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
5843 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 5844 | |
212380e3 | 5845 | |
7083c021 AC |
5846 | |
5847 | cat >>confdefs.h <<_ACEOF | |
5848 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 5849 | _ACEOF |
7083c021 AC |
5850 | |
5851 | ||
5852 | # The cast to long int works around a bug in the HP C Compiler | |
5853 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5854 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5855 | # This bug is HP SR number 8606223364. | |
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5857 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 5858 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
5859 | $as_echo_n "(cached) " >&6 |
5860 | else | |
5861 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5862 | ||
5863 | else | |
5864 | if test "$ac_cv_type_int" = yes; then | |
5865 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5866 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5867 | as_fn_error 77 "cannot compute sizeof (int) |
5868 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5869 | else |
5870 | ac_cv_sizeof_int=0 | |
5871 | fi | |
5872 | fi | |
5873 | ||
5874 | fi | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
5876 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
5877 | ||
5878 | ||
5879 | ||
5880 | cat >>confdefs.h <<_ACEOF | |
5881 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 5882 | _ACEOF |
7083c021 AC |
5883 | |
5884 | ||
5885 | # The cast to long int works around a bug in the HP C Compiler | |
5886 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5887 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5888 | # This bug is HP SR number 8606223364. | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5890 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 5891 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 5892 | $as_echo_n "(cached) " >&6 |
212380e3 | 5893 | else |
7083c021 | 5894 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 5895 | |
7083c021 AC |
5896 | else |
5897 | if test "$ac_cv_type_long" = yes; then | |
5898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5899 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5900 | as_fn_error 77 "cannot compute sizeof (long) |
5901 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5902 | else |
5903 | ac_cv_sizeof_long=0 | |
5904 | fi | |
212380e3 | 5905 | fi |
631ef239 | 5906 | |
7083c021 AC |
5907 | fi |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
5909 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 5910 | |
631ef239 | 5911 | |
7083c021 AC |
5912 | |
5913 | cat >>confdefs.h <<_ACEOF | |
5914 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5915 | _ACEOF | |
5916 | ||
5917 | ||
5918 | # The cast to long int works around a bug in the HP C Compiler | |
5919 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5920 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5921 | # This bug is HP SR number 8606223364. | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
5923 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 5924 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
5925 | $as_echo_n "(cached) " >&6 |
5926 | else | |
5927 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
5928 | ||
212380e3 | 5929 | else |
7083c021 AC |
5930 | if test "$ac_cv_type_long_long" = yes; then |
5931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5933 | as_fn_error 77 "cannot compute sizeof (long long) |
5934 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5935 | else |
5936 | ac_cv_sizeof_long_long=0 | |
5937 | fi | |
212380e3 | 5938 | fi |
212380e3 AC |
5939 | |
5940 | fi | |
7083c021 AC |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
5942 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
5943 | |
5944 | ||
5945 | ||
7083c021 AC |
5946 | cat >>confdefs.h <<_ACEOF |
5947 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5948 | _ACEOF | |
212380e3 | 5949 | |
212380e3 | 5950 | |
212380e3 | 5951 | |
7083c021 AC |
5952 | |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
5954 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 5955 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
5956 | $as_echo_n "(cached) " >&6 |
5957 | else | |
5958 | ac_func_search_save_LIBS=$LIBS | |
5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5960 | /* end confdefs.h. */ |
7083c021 AC |
5961 | |
5962 | /* Override any GCC internal prototype to avoid an error. | |
5963 | Use char because int might match the return type of a GCC | |
5964 | builtin and then its argument prototype would still apply. */ | |
5965 | #ifdef __cplusplus | |
5966 | extern "C" | |
5967 | #endif | |
5968 | char socket (); | |
212380e3 AC |
5969 | int |
5970 | main () | |
5971 | { | |
7083c021 | 5972 | return socket (); |
212380e3 AC |
5973 | ; |
5974 | return 0; | |
5975 | } | |
5976 | _ACEOF | |
7083c021 AC |
5977 | for ac_lib in '' socket; do |
5978 | if test -z "$ac_lib"; then | |
5979 | ac_res="none required" | |
5980 | else | |
5981 | ac_res=-l$ac_lib | |
5982 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5983 | fi | |
5984 | if ac_fn_c_try_link "$LINENO"; then : | |
5985 | ac_cv_search_socket=$ac_res | |
5986 | fi | |
5987 | rm -f core conftest.err conftest.$ac_objext \ | |
5988 | conftest$ac_exeext | |
b6d0720c | 5989 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
5990 | break |
5991 | fi | |
5992 | done | |
b6d0720c | 5993 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
5994 | |
5995 | else | |
7083c021 AC |
5996 | ac_cv_search_socket=no |
5997 | fi | |
5998 | rm conftest.$ac_ext | |
5999 | LIBS=$ac_func_search_save_LIBS | |
6000 | fi | |
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6002 | $as_echo "$ac_cv_search_socket" >&6; } | |
6003 | ac_res=$ac_cv_search_socket | |
6004 | if test "$ac_res" != no; then : | |
6005 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6006 | |
7083c021 | 6007 | else |
b6d0720c | 6008 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 6009 | fi |
631ef239 | 6010 | |
212380e3 | 6011 | |
7083c021 AC |
6012 | if test x"$SUN" = xyes; then |
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
6014 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 6015 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6016 | $as_echo_n "(cached) " >&6 |
6017 | else | |
6018 | ac_func_search_save_LIBS=$LIBS | |
6019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6020 | /* end confdefs.h. */ |
7083c021 AC |
6021 | |
6022 | /* Override any GCC internal prototype to avoid an error. | |
6023 | Use char because int might match the return type of a GCC | |
6024 | builtin and then its argument prototype would still apply. */ | |
6025 | #ifdef __cplusplus | |
6026 | extern "C" | |
6027 | #endif | |
6028 | char inet_ntoa (); | |
212380e3 AC |
6029 | int |
6030 | main () | |
6031 | { | |
7083c021 | 6032 | return inet_ntoa (); |
212380e3 AC |
6033 | ; |
6034 | return 0; | |
6035 | } | |
6036 | _ACEOF | |
7083c021 AC |
6037 | for ac_lib in '' nsl; do |
6038 | if test -z "$ac_lib"; then | |
6039 | ac_res="none required" | |
6040 | else | |
6041 | ac_res=-l$ac_lib | |
6042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6043 | fi | |
6044 | if ac_fn_c_try_link "$LINENO"; then : | |
6045 | ac_cv_search_inet_ntoa=$ac_res | |
6046 | fi | |
6047 | rm -f core conftest.err conftest.$ac_objext \ | |
6048 | conftest$ac_exeext | |
b6d0720c | 6049 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6050 | break |
6051 | fi | |
6052 | done | |
b6d0720c | 6053 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
6054 | |
6055 | else | |
7083c021 AC |
6056 | ac_cv_search_inet_ntoa=no |
6057 | fi | |
6058 | rm conftest.$ac_ext | |
6059 | LIBS=$ac_func_search_save_LIBS | |
6060 | fi | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6062 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6063 | ac_res=$ac_cv_search_inet_ntoa | |
6064 | if test "$ac_res" != no; then : | |
6065 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6066 | |
7083c021 | 6067 | else |
b6d0720c | 6068 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 6069 | fi |
631ef239 | 6070 | |
7083c021 | 6071 | fi |
212380e3 | 6072 | |
7083c021 AC |
6073 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6074 | #include <sys/socket.h> | |
6075 | " | |
b6d0720c | 6076 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
6077 | |
6078 | else | |
6079 | ||
7083c021 | 6080 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 6081 | |
7083c021 | 6082 | fi |
212380e3 AC |
6083 | |
6084 | ||
7083c021 AC |
6085 | # Check whether --enable-ipv6 was given. |
6086 | if test "${enable_ipv6+set}" = set; then : | |
6087 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 6088 | else |
7083c021 AC |
6089 | ipv6=no |
6090 | fi | |
212380e3 | 6091 | |
212380e3 | 6092 | |
7083c021 AC |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
6094 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 6095 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6096 | $as_echo_n "(cached) " >&6 |
6097 | else | |
6098 | ac_func_search_save_LIBS=$LIBS | |
6099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6100 | /* end confdefs.h. */ | |
212380e3 | 6101 | |
631ef239 AC |
6102 | /* Override any GCC internal prototype to avoid an error. |
6103 | Use char because int might match the return type of a GCC | |
6104 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6105 | #ifdef __cplusplus |
6106 | extern "C" | |
212380e3 | 6107 | #endif |
7083c021 | 6108 | char crypt (); |
212380e3 AC |
6109 | int |
6110 | main () | |
6111 | { | |
7083c021 | 6112 | return crypt (); |
212380e3 AC |
6113 | ; |
6114 | return 0; | |
6115 | } | |
6116 | _ACEOF | |
7083c021 AC |
6117 | for ac_lib in '' crypt descrypt; do |
6118 | if test -z "$ac_lib"; then | |
6119 | ac_res="none required" | |
6120 | else | |
6121 | ac_res=-l$ac_lib | |
6122 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6123 | fi | |
6124 | if ac_fn_c_try_link "$LINENO"; then : | |
6125 | ac_cv_search_crypt=$ac_res | |
6126 | fi | |
6127 | rm -f core conftest.err conftest.$ac_objext \ | |
6128 | conftest$ac_exeext | |
b6d0720c | 6129 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6130 | break |
6131 | fi | |
6132 | done | |
b6d0720c | 6133 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 6134 | |
212380e3 | 6135 | else |
7083c021 AC |
6136 | ac_cv_search_crypt=no |
6137 | fi | |
6138 | rm conftest.$ac_ext | |
6139 | LIBS=$ac_func_search_save_LIBS | |
6140 | fi | |
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
6142 | $as_echo "$ac_cv_search_crypt" >&6; } | |
6143 | ac_res=$ac_cv_search_crypt | |
6144 | if test "$ac_res" != no; then : | |
6145 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6146 | |
212380e3 | 6147 | fi |
631ef239 | 6148 | |
7083c021 AC |
6149 | |
6150 | CRYPT_LIB=$ac_cv_search_crypt | |
6151 | ||
6152 | if test "$CRYPT_LIB" = "none required"; then | |
6153 | unset CRYPT_LIB | |
6154 | elif test "$CRYPT_LIB" = no; then | |
6155 | unset CRYPT_LIB | |
212380e3 | 6156 | fi |
7083c021 AC |
6157 | |
6158 | ||
6159 | ||
6160 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
6161 | VICONF=viconf | |
6162 | else | |
6163 | VICONF="" | |
6164 | fi | |
6165 | ||
6166 | ||
6167 | ||
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
6169 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 6170 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
6171 | $as_echo_n "(cached) " >&6 |
6172 | else | |
6173 | ||
6174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6175 | /* end confdefs.h. */ | |
6176 | #include <string.h> | |
6177 | #include <strings.h> | |
212380e3 | 6178 | _ACEOF |
7083c021 AC |
6179 | if ac_fn_c_try_compile "$LINENO"; then : |
6180 | gcc_cv_header_string=yes | |
6181 | else | |
6182 | gcc_cv_header_string=no | |
6183 | fi | |
6184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6185 | |
6186 | fi | |
7083c021 AC |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
6188 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 6189 | |
7083c021 AC |
6190 | if test "$gcc_cv_header_string" = "yes"; then |
6191 | ||
6192 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
6193 | ||
6194 | fi | |
212380e3 | 6195 | |
7083c021 AC |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6197 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 6198 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
6199 | $as_echo_n "(cached) " >&6 |
6200 | else | |
6201 | ac_cv_c_bigendian=unknown | |
6202 | # See if we're dealing with a universal compiler. | |
6203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6204 | /* end confdefs.h. */ | |
6205 | #ifndef __APPLE_CC__ | |
6206 | not a universal capable compiler | |
6207 | #endif | |
6208 | typedef int dummy; | |
6209 | ||
6210 | _ACEOF | |
6211 | if ac_fn_c_try_compile "$LINENO"; then : | |
6212 | ||
6213 | # Check for potential -arch flags. It is not universal unless | |
6214 | # there are at least two -arch flags with different values. | |
6215 | ac_arch= | |
6216 | ac_prev= | |
6217 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6218 | if test -n "$ac_prev"; then | |
6219 | case $ac_word in | |
6220 | i?86 | x86_64 | ppc | ppc64) | |
6221 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6222 | ac_arch=$ac_word | |
6223 | else | |
6224 | ac_cv_c_bigendian=universal | |
6225 | break | |
6226 | fi | |
6227 | ;; | |
6228 | esac | |
6229 | ac_prev= | |
6230 | elif test "x$ac_word" = "x-arch"; then | |
6231 | ac_prev=arch | |
6232 | fi | |
6233 | done | |
212380e3 | 6234 | fi |
7083c021 AC |
6235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6236 | if test $ac_cv_c_bigendian = unknown; then | |
6237 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6239 | /* end confdefs.h. */ | |
6240 | #include <sys/types.h> | |
6241 | #include <sys/param.h> | |
6242 | ||
6243 | int | |
6244 | main () | |
6245 | { | |
6246 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6247 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6248 | && LITTLE_ENDIAN) | |
6249 | bogus endian macros | |
6250 | #endif | |
6251 | ||
6252 | ; | |
6253 | return 0; | |
6254 | } | |
6255 | _ACEOF | |
6256 | if ac_fn_c_try_compile "$LINENO"; then : | |
6257 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6259 | /* end confdefs.h. */ | |
6260 | #include <sys/types.h> | |
6261 | #include <sys/param.h> | |
6262 | ||
6263 | int | |
6264 | main () | |
6265 | { | |
6266 | #if BYTE_ORDER != BIG_ENDIAN | |
6267 | not big endian | |
6268 | #endif | |
212380e3 | 6269 | |
7083c021 AC |
6270 | ; |
6271 | return 0; | |
6272 | } | |
6273 | _ACEOF | |
6274 | if ac_fn_c_try_compile "$LINENO"; then : | |
6275 | ac_cv_c_bigendian=yes | |
212380e3 | 6276 | else |
7083c021 AC |
6277 | ac_cv_c_bigendian=no |
6278 | fi | |
6279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6280 | fi | |
6281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6282 | fi | |
6283 | if test $ac_cv_c_bigendian = unknown; then | |
6284 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6286 | /* end confdefs.h. */ | |
6287 | #include <limits.h> | |
6288 | ||
6289 | int | |
6290 | main () | |
6291 | { | |
6292 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6293 | bogus endian macros | |
6294 | #endif | |
6295 | ||
6296 | ; | |
6297 | return 0; | |
6298 | } | |
212380e3 | 6299 | _ACEOF |
7083c021 AC |
6300 | if ac_fn_c_try_compile "$LINENO"; then : |
6301 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6303 | /* end confdefs.h. */ |
7083c021 AC |
6304 | #include <limits.h> |
6305 | ||
212380e3 AC |
6306 | int |
6307 | main () | |
6308 | { | |
7083c021 AC |
6309 | #ifndef _BIG_ENDIAN |
6310 | not big endian | |
6311 | #endif | |
6312 | ||
212380e3 AC |
6313 | ; |
6314 | return 0; | |
6315 | } | |
6316 | _ACEOF | |
7083c021 AC |
6317 | if ac_fn_c_try_compile "$LINENO"; then : |
6318 | ac_cv_c_bigendian=yes | |
212380e3 | 6319 | else |
7083c021 | 6320 | ac_cv_c_bigendian=no |
212380e3 | 6321 | fi |
631ef239 | 6322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6323 | fi |
7083c021 AC |
6324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6325 | fi | |
6326 | if test $ac_cv_c_bigendian = unknown; then | |
6327 | # Compile a test program. | |
6328 | if test "$cross_compiling" = yes; then : | |
6329 | # Try to guess by grepping values from an object file. | |
6330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6331 | /* end confdefs.h. */ | |
6332 | short int ascii_mm[] = | |
6333 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6334 | short int ascii_ii[] = | |
6335 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6336 | int use_ascii (int i) { | |
6337 | return ascii_mm[i] + ascii_ii[i]; | |
6338 | } | |
6339 | short int ebcdic_ii[] = | |
6340 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6341 | short int ebcdic_mm[] = | |
6342 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6343 | int use_ebcdic (int i) { | |
6344 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6345 | } | |
6346 | extern int foo; | |
212380e3 | 6347 | |
7083c021 AC |
6348 | int |
6349 | main () | |
6350 | { | |
6351 | return use_ascii (foo) == use_ebcdic (foo); | |
6352 | ; | |
6353 | return 0; | |
6354 | } | |
212380e3 | 6355 | _ACEOF |
7083c021 AC |
6356 | if ac_fn_c_try_compile "$LINENO"; then : |
6357 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6358 | ac_cv_c_bigendian=yes | |
6359 | fi | |
6360 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6361 | if test "$ac_cv_c_bigendian" = unknown; then | |
6362 | ac_cv_c_bigendian=no | |
6363 | else | |
6364 | # finding both strings is unlikely to happen, but who knows? | |
6365 | ac_cv_c_bigendian=unknown | |
6366 | fi | |
6367 | fi | |
6368 | fi | |
6369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6370 | else | |
6371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
6372 | /* end confdefs.h. */ |
6373 | $ac_includes_default | |
6374 | int | |
6375 | main () | |
6376 | { | |
7083c021 AC |
6377 | |
6378 | /* Are we little or big endian? From Harbison&Steele. */ | |
6379 | union | |
6380 | { | |
6381 | long int l; | |
6382 | char c[sizeof (long int)]; | |
6383 | } u; | |
6384 | u.l = 1; | |
6385 | return u.c[sizeof (long int) - 1] == 1; | |
6386 | ||
212380e3 AC |
6387 | ; |
6388 | return 0; | |
6389 | } | |
6390 | _ACEOF | |
7083c021 AC |
6391 | if ac_fn_c_try_run "$LINENO"; then : |
6392 | ac_cv_c_bigendian=no | |
212380e3 | 6393 | else |
7083c021 | 6394 | ac_cv_c_bigendian=yes |
212380e3 | 6395 | fi |
7083c021 AC |
6396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6397 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6398 | fi |
212380e3 | 6399 | |
7083c021 AC |
6400 | fi |
6401 | fi | |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6403 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6404 | case $ac_cv_c_bigendian in #( | |
6405 | yes) | |
6406 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6407 | ;; #( | |
6408 | no) | |
6409 | ;; #( | |
6410 | universal) | |
212380e3 | 6411 | |
7083c021 | 6412 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 6413 | |
7083c021 AC |
6414 | ;; #( |
6415 | *) | |
b6d0720c | 6416 | as_fn_error $? "unknown endianness |
7083c021 AC |
6417 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6418 | esac | |
212380e3 | 6419 | |
212380e3 | 6420 | |
7083c021 | 6421 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 6422 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 6423 | |
7083c021 | 6424 | else |
b6d0720c | 6425 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 6426 | fi |
212380e3 AC |
6427 | |
6428 | ||
212380e3 AC |
6429 | |
6430 | ||
7083c021 | 6431 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 6432 | |
7083c021 AC |
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
6434 | $as_echo_n "checking for strlcpy... " >&6; } | |
6435 | save_CFLAGS=$CFLAGS | |
6436 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 6437 | |
7083c021 | 6438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6439 | /* end confdefs.h. */ |
7083c021 AC |
6440 | #include <string.h> |
6441 | #include <stdlib.h> | |
212380e3 AC |
6442 | int |
6443 | main () | |
6444 | { | |
7083c021 AC |
6445 | char *a = malloc(6); |
6446 | strlcpy(a, "hello", 6); | |
6447 | ||
212380e3 AC |
6448 | ; |
6449 | return 0; | |
6450 | } | |
6451 | _ACEOF | |
7083c021 AC |
6452 | if ac_fn_c_try_link "$LINENO"; then : |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6454 | $as_echo "yes" >&6; } | |
212380e3 | 6455 | |
7083c021 | 6456 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 6457 | |
212380e3 | 6458 | else |
7083c021 AC |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6460 | $as_echo "no" >&6; } | |
212380e3 | 6461 | |
7083c021 AC |
6462 | fi |
6463 | rm -f core conftest.err conftest.$ac_objext \ | |
6464 | conftest$ac_exeext conftest.$ac_ext | |
6465 | ||
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
6467 | $as_echo_n "checking for strlcat... " >&6; } | |
6468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6469 | /* end confdefs.h. */ |
7083c021 AC |
6470 | #include <string.h> |
6471 | #include <stdlib.h> | |
212380e3 AC |
6472 | int |
6473 | main () | |
6474 | { | |
7083c021 AC |
6475 | char *a = malloc(6); |
6476 | a[0] = '\0'; | |
6477 | strlcat(a, "hello", 6); | |
6478 | ||
212380e3 AC |
6479 | ; |
6480 | return 0; | |
6481 | } | |
6482 | _ACEOF | |
7083c021 AC |
6483 | if ac_fn_c_try_link "$LINENO"; then : |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6485 | $as_echo "yes" >&6; } | |
631ef239 | 6486 | |
7083c021 | 6487 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 6488 | |
7083c021 AC |
6489 | else |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6491 | $as_echo "no" >&6; } | |
212380e3 | 6492 | |
7083c021 AC |
6493 | fi |
6494 | rm -f core conftest.err conftest.$ac_objext \ | |
6495 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6496 | |
7083c021 | 6497 | CFLAGS=$save_CFLAGS |
212380e3 AC |
6498 | |
6499 | else | |
6500 | ||
212380e3 | 6501 | |
7083c021 AC |
6502 | for ac_func in strlcat strlcpy |
6503 | do : | |
6504 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6505 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6506 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
6507 | cat >>confdefs.h <<_ACEOF |
6508 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
6509 | _ACEOF |
6510 | ||
212380e3 | 6511 | fi |
7083c021 | 6512 | done |
212380e3 AC |
6513 | |
6514 | ||
6515 | fi | |
6516 | ||
7083c021 | 6517 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 6518 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 6519 | |
212380e3 | 6520 | else |
212380e3 | 6521 | |
7083c021 | 6522 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 6523 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 6524 | |
631ef239 | 6525 | |
7083c021 | 6526 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 6527 | |
212380e3 | 6528 | |
7083c021 | 6529 | else |
212380e3 | 6530 | |
7083c021 AC |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
6532 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 6533 | |
7083c021 | 6534 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 6535 | |
212380e3 | 6536 | |
212380e3 | 6537 | fi |
631ef239 | 6538 | |
7083c021 | 6539 | |
212380e3 | 6540 | fi |
7083c021 AC |
6541 | |
6542 | ||
6543 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 6544 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 6545 | |
212380e3 AC |
6546 | else |
6547 | ||
7083c021 | 6548 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 6549 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 6550 | |
7083c021 AC |
6551 | |
6552 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
6553 | |
6554 | ||
212380e3 | 6555 | else |
212380e3 | 6556 | |
7083c021 AC |
6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
6558 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 6559 | |
7083c021 | 6560 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 6561 | |
7083c021 AC |
6562 | |
6563 | fi | |
212380e3 AC |
6564 | |
6565 | ||
6566 | fi | |
6567 | ||
6568 | ||
7083c021 AC |
6569 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
6570 | #include <netinet/in.h> | |
6571 | " | |
b6d0720c | 6572 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 6573 | |
7083c021 | 6574 | else |
212380e3 | 6575 | |
7083c021 | 6576 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 6577 | |
7083c021 | 6578 | fi |
212380e3 AC |
6579 | |
6580 | ||
7083c021 AC |
6581 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
6582 | #include <sys/socket.h> | |
6583 | " | |
b6d0720c | 6584 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 6585 | |
212380e3 | 6586 | else |
212380e3 | 6587 | |
7083c021 | 6588 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 6589 | |
7083c021 | 6590 | fi |
212380e3 | 6591 | |
212380e3 | 6592 | |
7083c021 | 6593 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 6594 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 6595 | |
7083c021 AC |
6596 | cat >>confdefs.h <<_ACEOF |
6597 | #define HAVE_UINTPTR_T 1 | |
6598 | _ACEOF | |
212380e3 | 6599 | |
631ef239 | 6600 | |
212380e3 | 6601 | fi |
7083c021 AC |
6602 | |
6603 | ||
6604 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
6605 | do : | |
6606 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6607 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6608 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6609 | cat >>confdefs.h <<_ACEOF |
7083c021 | 6610 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
6611 | _ACEOF |
6612 | ||
6613 | fi | |
6614 | done | |
6615 | ||
6616 | ||
6617 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6618 | # for constant arguments. Useless! | |
7083c021 AC |
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6620 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 6621 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 6622 | $as_echo_n "(cached) " >&6 |
212380e3 | 6623 | else |
7083c021 | 6624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6625 | /* end confdefs.h. */ |
6626 | #include <alloca.h> | |
6627 | int | |
6628 | main () | |
6629 | { | |
6630 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 6631 | if (p) return 0; |
212380e3 AC |
6632 | ; |
6633 | return 0; | |
6634 | } | |
6635 | _ACEOF | |
7083c021 | 6636 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6637 | ac_cv_working_alloca_h=yes |
6638 | else | |
7083c021 | 6639 | ac_cv_working_alloca_h=no |
212380e3 | 6640 | fi |
7083c021 AC |
6641 | rm -f core conftest.err conftest.$ac_objext \ |
6642 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6643 | fi |
7083c021 AC |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6645 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
6646 | if test $ac_cv_working_alloca_h = yes; then |
6647 | ||
7083c021 | 6648 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
6649 | |
6650 | fi | |
6651 | ||
7083c021 AC |
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6653 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 6654 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 6655 | $as_echo_n "(cached) " >&6 |
212380e3 | 6656 | else |
7083c021 | 6657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6658 | /* end confdefs.h. */ |
6659 | #ifdef __GNUC__ | |
6660 | # define alloca __builtin_alloca | |
6661 | #else | |
6662 | # ifdef _MSC_VER | |
6663 | # include <malloc.h> | |
6664 | # define alloca _alloca | |
6665 | # else | |
631ef239 | 6666 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
6667 | # include <alloca.h> |
6668 | # else | |
6669 | # ifdef _AIX | |
6670 | #pragma alloca | |
6671 | # else | |
6672 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 6673 | void *alloca (size_t); |
212380e3 AC |
6674 | # endif |
6675 | # endif | |
6676 | # endif | |
6677 | # endif | |
6678 | #endif | |
6679 | ||
6680 | int | |
6681 | main () | |
6682 | { | |
6683 | char *p = (char *) alloca (1); | |
631ef239 | 6684 | if (p) return 0; |
212380e3 AC |
6685 | ; |
6686 | return 0; | |
6687 | } | |
6688 | _ACEOF | |
7083c021 | 6689 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6690 | ac_cv_func_alloca_works=yes |
6691 | else | |
7083c021 | 6692 | ac_cv_func_alloca_works=no |
212380e3 | 6693 | fi |
7083c021 AC |
6694 | rm -f core conftest.err conftest.$ac_objext \ |
6695 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6696 | fi |
7083c021 AC |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6698 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
6699 | |
6700 | if test $ac_cv_func_alloca_works = yes; then | |
6701 | ||
7083c021 | 6702 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6703 | |
6704 | else | |
6705 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6706 | # that cause trouble. Some versions do not even contain alloca or | |
6707 | # contain a buggy version. If you still want to use their alloca, | |
6708 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6709 | ||
631ef239 | 6710 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 6711 | |
7083c021 | 6712 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6713 | |
6714 | ||
7083c021 AC |
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6716 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 6717 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 6718 | $as_echo_n "(cached) " >&6 |
212380e3 | 6719 | else |
7083c021 | 6720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6721 | /* end confdefs.h. */ |
631ef239 | 6722 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
6723 | webecray |
6724 | #else | |
6725 | wenotbecray | |
6726 | #endif | |
6727 | ||
6728 | _ACEOF | |
6729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 6730 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
6731 | ac_cv_os_cray=yes |
6732 | else | |
6733 | ac_cv_os_cray=no | |
6734 | fi | |
6735 | rm -f conftest* | |
6736 | ||
6737 | fi | |
7083c021 AC |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6739 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
6740 | if test $ac_cv_os_cray = yes; then |
6741 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
6742 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6743 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6744 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
6745 | |
6746 | cat >>confdefs.h <<_ACEOF | |
6747 | #define CRAY_STACKSEG_END $ac_func | |
6748 | _ACEOF | |
6749 | ||
6750 | break | |
6751 | fi | |
6752 | ||
6753 | done | |
6754 | fi | |
6755 | ||
7083c021 AC |
6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6757 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 6758 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 6759 | $as_echo_n "(cached) " >&6 |
212380e3 | 6760 | else |
7083c021 | 6761 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
6762 | ac_cv_c_stack_direction=0 |
6763 | else | |
7083c021 | 6764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6765 | /* end confdefs.h. */ |
631ef239 | 6766 | $ac_includes_default |
212380e3 AC |
6767 | int |
6768 | find_stack_direction () | |
6769 | { | |
6770 | static char *addr = 0; | |
6771 | auto char dummy; | |
6772 | if (addr == 0) | |
6773 | { | |
6774 | addr = &dummy; | |
6775 | return find_stack_direction (); | |
6776 | } | |
6777 | else | |
6778 | return (&dummy > addr) ? 1 : -1; | |
6779 | } | |
6780 | ||
6781 | int | |
6782 | main () | |
6783 | { | |
631ef239 | 6784 | return find_stack_direction () < 0; |
212380e3 AC |
6785 | } |
6786 | _ACEOF | |
7083c021 | 6787 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6788 | ac_cv_c_stack_direction=1 |
6789 | else | |
7083c021 | 6790 | ac_cv_c_stack_direction=-1 |
212380e3 | 6791 | fi |
7083c021 AC |
6792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6793 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6794 | fi |
631ef239 | 6795 | |
212380e3 | 6796 | fi |
7083c021 AC |
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
6798 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
6799 | cat >>confdefs.h <<_ACEOF |
6800 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6801 | _ACEOF | |
6802 | ||
6803 | ||
6804 | fi | |
6805 | ||
6806 | ||
6807 | ||
7083c021 | 6808 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 6809 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 6810 | |
212380e3 | 6811 | else |
7083c021 AC |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
6813 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 6814 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 6815 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6816 | else |
6817 | ac_check_lib_save_LIBS=$LIBS | |
6818 | LIBS="-lrt $LIBS" | |
7083c021 | 6819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6820 | /* end confdefs.h. */ |
6821 | ||
631ef239 AC |
6822 | /* Override any GCC internal prototype to avoid an error. |
6823 | Use char because int might match the return type of a GCC | |
6824 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6825 | #ifdef __cplusplus |
6826 | extern "C" | |
6827 | #endif | |
212380e3 AC |
6828 | char nanosleep (); |
6829 | int | |
6830 | main () | |
6831 | { | |
631ef239 | 6832 | return nanosleep (); |
212380e3 AC |
6833 | ; |
6834 | return 0; | |
6835 | } | |
6836 | _ACEOF | |
7083c021 | 6837 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6838 | ac_cv_lib_rt_nanosleep=yes |
6839 | else | |
7083c021 | 6840 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 6841 | fi |
7083c021 AC |
6842 | rm -f core conftest.err conftest.$ac_objext \ |
6843 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6844 | LIBS=$ac_check_lib_save_LIBS |
6845 | fi | |
7083c021 AC |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
6847 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 6848 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
6849 | LIBS="${LIBS} -lrt" |
6850 | else | |
7083c021 AC |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
6852 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 6853 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 6854 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6855 | else |
6856 | ac_check_lib_save_LIBS=$LIBS | |
6857 | LIBS="-lposix4 $LIBS" | |
7083c021 | 6858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6859 | /* end confdefs.h. */ |
6860 | ||
631ef239 AC |
6861 | /* Override any GCC internal prototype to avoid an error. |
6862 | Use char because int might match the return type of a GCC | |
6863 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6864 | #ifdef __cplusplus |
6865 | extern "C" | |
6866 | #endif | |
212380e3 AC |
6867 | char nanosleep (); |
6868 | int | |
6869 | main () | |
6870 | { | |
631ef239 | 6871 | return nanosleep (); |
212380e3 AC |
6872 | ; |
6873 | return 0; | |
6874 | } | |
6875 | _ACEOF | |
7083c021 | 6876 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6877 | ac_cv_lib_posix4_nanosleep=yes |
6878 | else | |
7083c021 | 6879 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 6880 | fi |
7083c021 AC |
6881 | rm -f core conftest.err conftest.$ac_objext \ |
6882 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6883 | LIBS=$ac_check_lib_save_LIBS |
6884 | fi | |
7083c021 AC |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
6886 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 6887 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
6888 | LIBS="${LIBS} -lposix4" |
6889 | ||
6890 | fi | |
6891 | ||
6892 | fi | |
6893 | ||
6894 | fi | |
6895 | ||
6896 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
6897 | then | |
7083c021 AC |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
6899 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
6900 | else |
6901 | ||
7083c021 | 6902 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
6903 | |
6904 | fi | |
6905 | ||
7083c021 AC |
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
6907 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 6908 | # Check whether --enable-openssl was given. |
7083c021 | 6909 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 6910 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
6911 | else |
6912 | cf_enable_openssl="auto" | |
631ef239 AC |
6913 | fi |
6914 | ||
212380e3 AC |
6915 | |
6916 | if test "$cf_enable_openssl" != "no" ; then | |
6917 | cf_openssl_basedir="" | |
6918 | if test "$cf_enable_openssl" != "auto" && | |
6919 | test "$cf_enable_openssl" != "yes" ; then | |
6920 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
6921 | else | |
6922 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
6923 | /usr/local/openssl ; do | |
6924 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
6925 | cf_openssl_basedir="${dirs}" | |
6926 | break | |
6927 | fi | |
6928 | done | |
6929 | unset dirs | |
6930 | fi | |
6931 | if test ! -z "$cf_openssl_basedir"; then | |
6932 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
6933 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
6934 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
6935 | else | |
6936 | cf_openssl_basedir="" | |
6937 | fi | |
6938 | else | |
6939 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
6940 | cf_openssl_basedir="/usr" | |
6941 | fi | |
6942 | fi | |
6943 | ||
6944 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
6946 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
6947 | cf_enable_openssl="yes" |
6948 | else | |
7083c021 AC |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
6950 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
6951 | cf_enable_openssl="no" |
6952 | fi | |
6953 | unset cf_openssl_basedir | |
6954 | else | |
7083c021 AC |
6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
6956 | $as_echo "disabled" >&6; } | |
212380e3 AC |
6957 | fi |
6958 | ||
6959 | save_CPPFLAGS="$CPPFLAGS" | |
6960 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
6961 | save_LIBS="$LIBS" | |
6962 | LIBS="$LIBS $SSL_LIBS" | |
6963 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
6965 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
6966 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
6967 | cf_openssl_version_ok=no |
6968 | else | |
7083c021 | 6969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6970 | /* end confdefs.h. */ |
6971 | #include <openssl/opensslv.h> | |
6972 | #include <stdlib.h> | |
6973 | int | |
6974 | main () | |
6975 | { | |
6976 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
6977 | exit(0); else exit(1); | |
6978 | ; | |
6979 | return 0; | |
6980 | } | |
6981 | _ACEOF | |
7083c021 | 6982 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6983 | cf_openssl_version_ok=yes |
6984 | else | |
7083c021 | 6985 | cf_openssl_version_ok=no |
212380e3 | 6986 | fi |
7083c021 AC |
6987 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6988 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
6989 | fi |
6990 | ||
631ef239 | 6991 | |
212380e3 | 6992 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
6994 | $as_echo "found" >&6; } | |
212380e3 AC |
6995 | |
6996 | ENCSPEED=encspeed | |
6997 | ||
6998 | ||
6999 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
7001 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 7002 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 7003 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7004 | else |
7005 | ac_check_lib_save_LIBS=$LIBS | |
7006 | LIBS="-lcrypto $LIBS" | |
7083c021 | 7007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7008 | /* end confdefs.h. */ |
7009 | ||
631ef239 AC |
7010 | /* Override any GCC internal prototype to avoid an error. |
7011 | Use char because int might match the return type of a GCC | |
7012 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7013 | #ifdef __cplusplus |
7014 | extern "C" | |
7015 | #endif | |
212380e3 AC |
7016 | char RSA_free (); |
7017 | int | |
7018 | main () | |
7019 | { | |
631ef239 | 7020 | return RSA_free (); |
212380e3 AC |
7021 | ; |
7022 | return 0; | |
7023 | } | |
7024 | _ACEOF | |
7083c021 | 7025 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7026 | ac_cv_lib_crypto_RSA_free=yes |
7027 | else | |
7083c021 | 7028 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 7029 | fi |
7083c021 AC |
7030 | rm -f core conftest.err conftest.$ac_objext \ |
7031 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7032 | LIBS=$ac_check_lib_save_LIBS |
7033 | fi | |
7083c021 AC |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7035 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 7036 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
7037 | cat >>confdefs.h <<_ACEOF |
7038 | #define HAVE_LIBCRYPTO 1 | |
7039 | _ACEOF | |
7040 | ||
7041 | LIBS="-lcrypto $LIBS" | |
7042 | ||
7043 | fi | |
7044 | ||
7045 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
7046 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
7047 | else | |
7083c021 AC |
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
7049 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
7050 | fi |
7051 | fi | |
7052 | ||
7053 | CPPFLAGS="$save_CPPFLAGS" | |
7054 | LIBS="$save_LIBS" | |
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
631ef239 | 7060 | # Check whether --with-zlib-path was given. |
7083c021 | 7061 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
7062 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
7063 | fi | |
212380e3 | 7064 | |
7083c021 AC |
7065 | |
7066 | # Check whether --enable-zlib was given. | |
7067 | if test "${enable_zlib+set}" = set; then : | |
7068 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 7069 | else |
7083c021 | 7070 | zlib=yes |
212380e3 | 7071 | fi |
212380e3 | 7072 | |
212380e3 | 7073 | |
7083c021 AC |
7074 | if test "$zlib" = yes; then |
7075 | ||
7076 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 7077 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
7078 | |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
7080 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 7081 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 7082 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7083 | else |
7084 | ac_check_lib_save_LIBS=$LIBS | |
7085 | LIBS="-lz $LIBS" | |
7083c021 | 7086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7087 | /* end confdefs.h. */ |
7088 | ||
631ef239 AC |
7089 | /* Override any GCC internal prototype to avoid an error. |
7090 | Use char because int might match the return type of a GCC | |
7091 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7092 | #ifdef __cplusplus |
7093 | extern "C" | |
7094 | #endif | |
212380e3 AC |
7095 | char zlibVersion (); |
7096 | int | |
7097 | main () | |
7098 | { | |
631ef239 | 7099 | return zlibVersion (); |
212380e3 AC |
7100 | ; |
7101 | return 0; | |
7102 | } | |
7103 | _ACEOF | |
7083c021 | 7104 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7105 | ac_cv_lib_z_zlibVersion=yes |
7106 | else | |
7083c021 | 7107 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 7108 | fi |
7083c021 AC |
7109 | rm -f core conftest.err conftest.$ac_objext \ |
7110 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7111 | LIBS=$ac_check_lib_save_LIBS |
7112 | fi | |
7083c021 AC |
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
7114 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 7115 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
7116 | |
7117 | ZLIB_LD=-lz | |
7118 | ||
7119 | ||
7083c021 | 7120 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
7121 | |
7122 | ||
7123 | else | |
7124 | zlib=no | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | else | |
7129 | zlib=no | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | ||
7134 | fi | |
7135 | ||
7136 | ||
c1c5fdc4 | 7137 | # Check whether --enable-ports was given. |
7083c021 | 7138 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
7139 | enableval=$enable_ports; if test $enableval = yes; then |
7140 | SELECT_TYPE_EXPLICIT="ports" | |
7141 | else | |
7142 | use_ports=no | |
7143 | fi | |
7144 | ||
7145 | fi | |
7146 | ||
7147 | ||
631ef239 | 7148 | # Check whether --enable-poll was given. |
7083c021 | 7149 | if test "${enable_poll+set}" = set; then : |
631ef239 | 7150 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
7151 | SELECT_TYPE_EXPLICIT="poll" |
7152 | else | |
7153 | use_poll=no | |
7154 | fi | |
7155 | ||
631ef239 AC |
7156 | fi |
7157 | ||
212380e3 | 7158 | |
631ef239 | 7159 | # Check whether --enable-select was given. |
7083c021 | 7160 | if test "${enable_select+set}" = set; then : |
631ef239 | 7161 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
7162 | SELECT_TYPE_EXPLICIT="select" |
7163 | else | |
7164 | use_select=no | |
7165 | fi | |
7166 | ||
631ef239 AC |
7167 | fi |
7168 | ||
212380e3 | 7169 | |
631ef239 | 7170 | # Check whether --enable-kqueue was given. |
7083c021 | 7171 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 7172 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
7173 | SELECT_TYPE_EXPLICIT="kqueue" |
7174 | else | |
7175 | use_kqueue=no | |
7176 | fi | |
7177 | ||
631ef239 AC |
7178 | fi |
7179 | ||
212380e3 | 7180 | |
631ef239 | 7181 | # Check whether --enable-epoll was given. |
7083c021 | 7182 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 7183 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 7184 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
7185 | for ac_func in epoll_ctl |
7186 | do : | |
7187 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7188 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 7189 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7190 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
7191 | _ACEOF |
7192 | haveepoll=yes | |
7193 | else | |
7194 | haveepoll=no | |
7195 | fi | |
7196 | done | |
7197 | ||
212380e3 AC |
7198 | else |
7199 | use_epoll=no | |
7200 | fi | |
7201 | ||
631ef239 AC |
7202 | fi |
7203 | ||
212380e3 AC |
7204 | |
7205 | ||
7083c021 AC |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5 |
7207 | $as_echo_n "checking whether to modify confdir... " >&6; } | |
212380e3 | 7208 | |
631ef239 | 7209 | # Check whether --with-confdir was given. |
7083c021 | 7210 | if test "${with_confdir+set}" = set; then : |
631ef239 | 7211 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7213 | $as_echo "yes" >&6; } | |
212380e3 AC |
7214 | |
7215 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7216 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7217 | ac_define_dir=`eval echo $confdir` | |
7218 | ac_define_dir=`eval echo $ac_define_dir` | |
7219 | ETC_DIR="$ac_define_dir" | |
7220 | ||
7221 | ||
7222 | cat >>confdefs.h <<_ACEOF | |
7223 | #define ETC_DIR "$ac_define_dir" | |
7224 | _ACEOF | |
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | confdir=`( | |
7230 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7231 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7232 | eval echo \""$confdir"\" | |
7233 | )` | |
7234 | ||
7235 | ||
7236 | else | |
7237 | confdir='${prefix}/etc' | |
7083c021 AC |
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7239 | $as_echo "no" >&6; } | |
212380e3 AC |
7240 | |
7241 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7242 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7243 | ac_define_dir=`eval echo $confdir` | |
7244 | ac_define_dir=`eval echo $ac_define_dir` | |
7245 | ETC_DIR="$ac_define_dir" | |
7246 | ||
7247 | ||
7248 | cat >>confdefs.h <<_ACEOF | |
7249 | #define ETC_DIR "$ac_define_dir" | |
7250 | _ACEOF | |
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | confdir=`( | |
7256 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7257 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7258 | eval echo \""$confdir"\" | |
7259 | )` | |
7260 | ||
7261 | ||
7262 | ||
631ef239 AC |
7263 | fi |
7264 | ||
212380e3 AC |
7265 | |
7266 | ||
7083c021 AC |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
7268 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 7269 | |
631ef239 | 7270 | # Check whether --with-logdir was given. |
7083c021 | 7271 | if test "${with_logdir+set}" = set; then : |
631ef239 | 7272 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7274 | $as_echo "yes" >&6; } | |
212380e3 AC |
7275 | |
7276 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7278 | ac_define_dir=`eval echo $logdir` | |
7279 | ac_define_dir=`eval echo $ac_define_dir` | |
7280 | LOG_DIR="$ac_define_dir" | |
7281 | ||
7282 | ||
7283 | cat >>confdefs.h <<_ACEOF | |
7284 | #define LOG_DIR "$ac_define_dir" | |
7285 | _ACEOF | |
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | logdir=`( | |
7291 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7292 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7293 | eval echo \""$logdir"\" | |
7294 | )` | |
7295 | ||
7296 | ||
7297 | else | |
7298 | logdir='${prefix}/logs' | |
7083c021 AC |
7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7300 | $as_echo "no" >&6; } | |
212380e3 AC |
7301 | |
7302 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7303 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7304 | ac_define_dir=`eval echo $logdir` | |
7305 | ac_define_dir=`eval echo $ac_define_dir` | |
7306 | LOG_DIR="$ac_define_dir" | |
7307 | ||
7308 | ||
7309 | cat >>confdefs.h <<_ACEOF | |
7310 | #define LOG_DIR "$ac_define_dir" | |
7311 | _ACEOF | |
7312 | ||
7313 | ||
7314 | ||
7315 | ||
7316 | logdir=`( | |
7317 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7318 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7319 | eval echo \""$logdir"\" | |
7320 | )` | |
7321 | ||
7322 | ||
7323 | ||
631ef239 AC |
7324 | fi |
7325 | ||
212380e3 AC |
7326 | |
7327 | ||
7083c021 AC |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
7329 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 7330 | |
631ef239 | 7331 | # Check whether --with-helpdir was given. |
7083c021 | 7332 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 7333 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7335 | $as_echo "yes" >&6; } | |
212380e3 AC |
7336 | |
7337 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7338 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7339 | ac_define_dir=`eval echo $helpdir` | |
7340 | ac_define_dir=`eval echo $ac_define_dir` | |
7341 | HELP_DIR="$ac_define_dir" | |
7342 | ||
7343 | ||
7344 | cat >>confdefs.h <<_ACEOF | |
7345 | #define HELP_DIR "$ac_define_dir" | |
7346 | _ACEOF | |
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | helpdir=`( | |
7352 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7353 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7354 | eval echo \""$helpdir"\" | |
7355 | )` | |
7356 | ||
7357 | ||
7358 | else | |
7359 | helpdir='${prefix}/help' | |
7083c021 AC |
7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7361 | $as_echo "no" >&6; } | |
212380e3 AC |
7362 | |
7363 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7364 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7365 | ac_define_dir=`eval echo $helpdir` | |
7366 | ac_define_dir=`eval echo $ac_define_dir` | |
7367 | HELP_DIR="$ac_define_dir" | |
7368 | ||
7369 | ||
7370 | cat >>confdefs.h <<_ACEOF | |
7371 | #define HELP_DIR "$ac_define_dir" | |
7372 | _ACEOF | |
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | helpdir=`( | |
7378 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7379 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7380 | eval echo \""$helpdir"\" | |
7381 | )` | |
7382 | ||
7383 | ||
7384 | ||
631ef239 AC |
7385 | fi |
7386 | ||
212380e3 AC |
7387 | |
7388 | ||
7083c021 AC |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
7390 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 7391 | |
631ef239 | 7392 | # Check whether --with-moduledir was given. |
7083c021 | 7393 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 7394 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7396 | $as_echo "yes" >&6; } | |
212380e3 AC |
7397 | |
7398 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7399 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7400 | ac_define_dir=`eval echo $moduledir` | |
7401 | ac_define_dir=`eval echo $ac_define_dir` | |
7402 | MODULE_DIR="$ac_define_dir" | |
7403 | ||
7404 | ||
7405 | cat >>confdefs.h <<_ACEOF | |
7406 | #define MODULE_DIR "$ac_define_dir" | |
7407 | _ACEOF | |
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | moduledir=`( | |
7413 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7414 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7415 | eval echo \""$moduledir"\" | |
7416 | )` | |
7417 | ||
7418 | ||
7419 | else | |
7420 | moduledir='${prefix}/modules' | |
7083c021 AC |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7422 | $as_echo "no" >&6; } | |
212380e3 AC |
7423 | |
7424 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7425 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7426 | ac_define_dir=`eval echo $moduledir` | |
7427 | ac_define_dir=`eval echo $ac_define_dir` | |
7428 | MODULE_DIR="$ac_define_dir" | |
7429 | ||
7430 | ||
7431 | cat >>confdefs.h <<_ACEOF | |
7432 | #define MODULE_DIR "$ac_define_dir" | |
7433 | _ACEOF | |
7434 | ||
7435 | ||
7436 | ||
7437 | ||
7438 | moduledir=`( | |
7439 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7440 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7441 | eval echo \""$moduledir"\" | |
7442 | )` | |
7443 | ||
7444 | ||
7445 | ||
631ef239 AC |
7446 | fi |
7447 | ||
7083c021 | 7448 | |
b6d0720c AC |
7449 | |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
7451 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
7452 | ||
7453 | # Check whether --with-custom-branding was given. | |
7454 | if test "${with_custom_branding+set}" = set; then : | |
7455 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7457 | $as_echo "yes" >&6; } | |
7458 | else | |
7459 | BRANDING_NAME=$PACKAGE_NAME | |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7461 | $as_echo "no" >&6; } | |
7462 | ||
7463 | fi | |
7464 | ||
7465 | ||
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
7467 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
7468 | ||
7469 | # Check whether --with-custom-version was given. | |
7470 | if test "${with_custom_version+set}" = set; then : | |
7471 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7473 | $as_echo "yes" >&6; } | |
7474 | else | |
7475 | BRANDING_VERSION=$PACKAGE_VERSION | |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7477 | $as_echo "no" >&6; } | |
7478 | ||
7479 | fi | |
7480 | ||
7481 | ||
7482 | ||
7483 | cat >>confdefs.h <<_ACEOF | |
7484 | #define BRANDING_NAME "$BRANDING_NAME" | |
7485 | _ACEOF | |
7486 | ||
7487 | ||
7488 | cat >>confdefs.h <<_ACEOF | |
7489 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
7490 | _ACEOF | |
7491 | ||
7492 | ||
f5493691 AC |
7493 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
7494 | ||
7495 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
7496 | ||
7497 | fi | |
7498 | ||
7083c021 AC |
7499 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
7500 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
7501 | echo "Forcing $SELECT_TYPE to be enabled" | |
7502 | else | |
7503 | ||
7504 | if test ! "x$use_ports" = "xno"; then | |
7505 | for ac_func in port_getn | |
7506 | do : | |
7507 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 7508 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 7509 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7510 | #define HAVE_PORT_GETN 1 |
212380e3 | 7511 | _ACEOF |
7083c021 | 7512 | haveports=yes |
212380e3 | 7513 | else |
7083c021 | 7514 | haveports=no |
212380e3 AC |
7515 | fi |
7516 | done | |
7517 | ||
7083c021 AC |
7518 | if test "x$haveports" = "xyes" ; then |
7519 | SELECT_TYPE="ports" | |
212380e3 AC |
7520 | fi |
7521 | fi | |
7522 | ||
7083c021 AC |
7523 | if test ! "x$use_select" = "xno"; then |
7524 | for ac_func in select | |
7525 | do : | |
7526 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 7527 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
7528 | cat >>confdefs.h <<_ACEOF |
7529 | #define HAVE_SELECT 1 | |
212380e3 | 7530 | _ACEOF |
7083c021 AC |
7531 | haveselect=yes |
7532 | else | |
7533 | haveselect=no | |
7534 | fi | |
7535 | done | |
212380e3 | 7536 | |
7083c021 AC |
7537 | if test "x$haveselect" = "xyes" ; then |
7538 | SELECT_TYPE="select" | |
7539 | fi | |
7540 | fi | |
212380e3 | 7541 | |
7083c021 AC |
7542 | if test ! "x$use_poll" = "xno"; then |
7543 | for ac_func in poll | |
7544 | do : | |
7545 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 7546 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
7547 | cat >>confdefs.h <<_ACEOF |
7548 | #define HAVE_POLL 1 | |
212380e3 | 7549 | _ACEOF |
7083c021 | 7550 | havepoll=yes |
212380e3 | 7551 | else |
7083c021 | 7552 | havepoll=no |
212380e3 | 7553 | fi |
7083c021 | 7554 | done |
631ef239 | 7555 | |
7083c021 AC |
7556 | if test "x$havepoll" = "xyes" ; then |
7557 | SELECT_TYPE="poll" | |
7558 | fi | |
212380e3 | 7559 | fi |
7083c021 AC |
7560 | |
7561 | if test ! "x$use_kqueue" = "xno"; then | |
7562 | for ac_func in kevent | |
7563 | do : | |
7564 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 7565 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 7566 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7567 | #define HAVE_KEVENT 1 |
212380e3 AC |
7568 | _ACEOF |
7569 | havekqueue=yes | |
7570 | else | |
7571 | havekqueue=no | |
7572 | fi | |
7573 | done | |
7574 | ||
7575 | if test "x$havekqueue" = "xyes" ; then | |
7576 | SELECT_TYPE="kqueue" | |
7577 | fi | |
7578 | fi | |
7579 | ||
7580 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
7581 | for ac_func in epoll_ctl |
7582 | do : | |
7583 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7584 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 7585 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7586 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
7587 | _ACEOF |
7588 | haveepoll=yes | |
7589 | else | |
7590 | haveepoll=no | |
7591 | fi | |
7592 | done | |
7593 | ||
7594 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7595 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
7597 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
7598 | if test "$cross_compiling" = yes; then : | |
7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7600 | $as_echo "no" >&6; } | |
212380e3 | 7601 | else |
7083c021 | 7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7603 | /* end confdefs.h. */ |
7604 | #include <stdint.h> | |
7605 | #include <sys/param.h> | |
7606 | #include <sys/types.h> | |
7607 | #include <sys/epoll.h> | |
7608 | #include <sys/syscall.h> | |
7609 | #include <unistd.h> | |
7610 | ||
7611 | int | |
7612 | main(int argc, char **argv) | |
7613 | { | |
7614 | int epfd; | |
7615 | ||
7616 | epfd = epoll_create(256); | |
b676ea3b | 7617 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
7618 | } |
7619 | _ACEOF | |
7083c021 AC |
7620 | if ac_fn_c_try_run "$LINENO"; then : |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7622 | $as_echo "yes" >&6; } | |
212380e3 | 7623 | |
7083c021 | 7624 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7625 | |
7626 | SELECT_TYPE="epoll" | |
7627 | else | |
7083c021 AC |
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7629 | $as_echo "no" >&6; } | |
212380e3 | 7630 | fi |
7083c021 AC |
7631 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7632 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7633 | fi |
631ef239 | 7634 | |
212380e3 AC |
7635 | fi |
7636 | fi | |
7637 | ||
7638 | haveepollsyscall=no | |
7639 | ||
7640 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7641 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
7643 | $as_echo_n "checking for epoll system call... " >&6; } | |
7644 | if test "$cross_compiling" = yes; then : | |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7646 | $as_echo "no" >&6; } | |
212380e3 | 7647 | else |
7083c021 | 7648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7649 | /* end confdefs.h. */ |
7650 | #include <stdint.h> | |
7651 | #include <sys/param.h> | |
7652 | #include <sys/types.h> | |
7653 | #include <sys/epoll.h> | |
7654 | #include <sys/syscall.h> | |
7655 | #include <unistd.h> | |
7656 | ||
7657 | int | |
7658 | epoll_create(int size) | |
7659 | { | |
7660 | return (syscall(__NR_epoll_create, size)); | |
7661 | } | |
7662 | ||
7663 | int | |
7664 | main(int argc, char **argv) | |
7665 | { | |
7666 | int epfd; | |
7667 | ||
7668 | epfd = epoll_create(256); | |
7669 | exit (epfd == -1 ? 1 : 0); | |
7670 | } | |
7671 | _ACEOF | |
7083c021 AC |
7672 | if ac_fn_c_try_run "$LINENO"; then : |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7674 | $as_echo "yes" >&6; } | |
212380e3 | 7675 | |
7083c021 | 7676 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7677 | |
7678 | SELECT_TYPE="epoll" | |
7679 | else | |
7083c021 AC |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7681 | $as_echo "no" >&6; } | |
212380e3 | 7682 | fi |
7083c021 AC |
7683 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7684 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7685 | fi |
631ef239 | 7686 | |
212380e3 AC |
7687 | fi |
7688 | fi | |
7689 | ||
7690 | fi | |
7691 | ||
7692 | fi | |
7693 | ||
7694 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 7695 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
7696 | fi |
7697 | ||
7698 | echo "Using $SELECT_TYPE for select loop." | |
7699 | ||
7700 | ||
7701 | cat >>confdefs.h <<_ACEOF | |
7702 | #define SELECT_TYPE "$SELECT_TYPE" | |
7703 | _ACEOF | |
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
631ef239 | 7709 | # Check whether --enable-assert was given. |
7083c021 | 7710 | if test "${enable_assert+set}" = set; then : |
631ef239 | 7711 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
7712 | else |
7713 | assert=no | |
631ef239 AC |
7714 | fi |
7715 | ||
212380e3 AC |
7716 | |
7717 | if test "$assert" = no; then | |
7718 | ||
7083c021 | 7719 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
7720 | |
7721 | elif test "$assert" = soft; then | |
7722 | ||
7083c021 | 7723 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
7724 | |
7725 | ||
7083c021 | 7726 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
7727 | |
7728 | elif test "$assert" = yes; then | |
7729 | assert = "hard"; | |
7730 | fi | |
7731 | ||
7083c021 AC |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
7733 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 7734 | # Check whether --enable-iodebug was given. |
7083c021 | 7735 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 7736 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
7737 | else |
7738 | iodebug=no | |
631ef239 AC |
7739 | fi |
7740 | ||
212380e3 AC |
7741 | |
7742 | if test "$iodebug" = yes; then | |
7743 | ||
7083c021 | 7744 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 7745 | |
7083c021 AC |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7747 | $as_echo "yes" >&6; } | |
212380e3 | 7748 | else |
7083c021 AC |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7750 | $as_echo "no" >&6; } | |
212380e3 AC |
7751 | fi |
7752 | ||
7753 | ||
7083c021 AC |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
7755 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 7756 | # Check whether --enable-profile was given. |
7083c021 | 7757 | if test "${enable_profile+set}" = set; then : |
631ef239 | 7758 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
7759 | else |
7760 | profile=no | |
631ef239 AC |
7761 | fi |
7762 | ||
212380e3 AC |
7763 | |
7764 | if test "$profile" = yes; then | |
7765 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7766 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
7768 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 7769 | |
7083c021 | 7770 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
7771 | |
7772 | else | |
7083c021 AC |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
7774 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
7775 | fi |
7776 | else | |
7083c021 AC |
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7778 | $as_echo "no" >&6; } | |
212380e3 AC |
7779 | fi |
7780 | ||
631ef239 | 7781 | # Check whether --enable-balloc was given. |
7083c021 | 7782 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 7783 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
7784 | else |
7785 | balloc=yes | |
631ef239 AC |
7786 | fi |
7787 | ||
212380e3 AC |
7788 | |
7789 | if test "$balloc" = no; then | |
7790 | ||
7083c021 | 7791 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
7792 | |
7793 | fi | |
7794 | ||
631ef239 | 7795 | # Check whether --enable-small-net was given. |
7083c021 | 7796 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 7797 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
7798 | else |
7799 | small_net=no | |
631ef239 AC |
7800 | fi |
7801 | ||
212380e3 AC |
7802 | |
7803 | if test "$small_net" = yes; then | |
7804 | ||
7083c021 | 7805 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
7806 | |
7807 | ||
7083c021 | 7808 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7809 | |
7810 | ||
7083c021 | 7811 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7812 | |
7813 | ||
7083c021 | 7814 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7815 | |
7816 | ||
7083c021 | 7817 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7818 | |
7819 | ||
7083c021 | 7820 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
7821 | |
7822 | ||
7083c021 | 7823 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7824 | |
7825 | ||
7083c021 | 7826 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7827 | |
7828 | ||
7083c021 | 7829 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7830 | |
7831 | ||
7083c021 | 7832 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7833 | |
7834 | ||
7083c021 | 7835 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7836 | |
7837 | ||
7083c021 | 7838 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7839 | |
7840 | ||
7083c021 | 7841 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7842 | |
7843 | ||
7083c021 | 7844 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7845 | |
f589ec6f | 7846 | |
7083c021 | 7847 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
7848 | |
7849 | ||
7083c021 | 7850 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 7851 | |
212380e3 AC |
7852 | else |
7853 | ||
7083c021 | 7854 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
7855 | |
7856 | ||
7083c021 | 7857 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7858 | |
7859 | ||
7083c021 | 7860 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
7861 | |
7862 | ||
7083c021 | 7863 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7864 | |
7865 | ||
7083c021 | 7866 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
7867 | |
7868 | ||
7083c021 | 7869 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7870 | |
7871 | ||
7083c021 | 7872 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7873 | |
7874 | ||
7083c021 | 7875 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7876 | |
7877 | ||
7083c021 | 7878 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
7879 | |
7880 | ||
7083c021 | 7881 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
7882 | |
7883 | ||
7083c021 | 7884 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
7885 | |
7886 | ||
7083c021 | 7887 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
7888 | |
7889 | ||
7083c021 | 7890 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7891 | |
7892 | ||
7083c021 | 7893 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 7894 | |
f589ec6f | 7895 | |
7083c021 | 7896 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
7897 | |
7898 | ||
7083c021 | 7899 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 7900 | |
212380e3 AC |
7901 | fi |
7902 | ||
7903 | ||
631ef239 | 7904 | # Check whether --with-nicklen was given. |
7083c021 | 7905 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 7906 | withval=$with_nicklen; |
aa769893 | 7907 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 7908 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 7909 | fi |
212380e3 AC |
7910 | if test $withval -ge 50; then |
7911 | NICKLEN=50 | |
7083c021 AC |
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
7913 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
212380e3 AC |
7914 | else |
7915 | NICKLEN="$withval" | |
7916 | fi | |
7917 | ||
7918 | else | |
7919 | NICKLEN=15 | |
631ef239 | 7920 | fi |
212380e3 AC |
7921 | |
7922 | ||
212380e3 | 7923 | |
631ef239 | 7924 | # Check whether --with-topiclen was given. |
7083c021 | 7925 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 7926 | withval=$with_topiclen; |
212380e3 AC |
7927 | if test $withval -ge 390; then |
7928 | TOPICLEN=390 | |
7083c021 AC |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
7930 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
7931 | else |
7932 | TOPICLEN=$withval | |
7933 | fi | |
7934 | ||
7935 | else | |
7936 | TOPICLEN=390 | |
212380e3 AC |
7937 | fi |
7938 | ||
212380e3 AC |
7939 | |
7940 | ||
7941 | cat >>confdefs.h <<_ACEOF | |
7942 | #define TOPICLEN ${TOPICLEN} | |
7943 | _ACEOF | |
7944 | ||
7945 | ||
7946 | cat >>confdefs.h <<_ACEOF | |
7947 | #define NICKLEN (${NICKLEN}+1) | |
7948 | _ACEOF | |
7949 | ||
7950 | ||
b676ea3b | 7951 | shared_modules="yes" |
212380e3 | 7952 | if test "$shared_modules" = yes; then |
212380e3 | 7953 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
7083c021 AC |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
7955 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 AC |
7956 | shared_modules="no" |
7957 | fi | |
7958 | fi | |
7959 | ||
7960 | if test "$shared_modules" = yes; then | |
7083c021 AC |
7961 | DYNLINK_C=dynlink.c |
7962 | for ac_header in dlfcn.h | |
7963 | do : | |
7964 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b6d0720c | 7965 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 7966 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7967 | #define HAVE_DLFCN_H 1 |
212380e3 AC |
7968 | _ACEOF |
7969 | ||
7970 | fi | |
7971 | ||
7972 | done | |
7973 | ||
7083c021 AC |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
7975 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b6d0720c | 7976 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 7977 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7978 | else |
7979 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 7980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7981 | /* end confdefs.h. */ |
7982 | ||
631ef239 AC |
7983 | /* Override any GCC internal prototype to avoid an error. |
7984 | Use char because int might match the return type of a GCC | |
7985 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7986 | #ifdef __cplusplus |
7987 | extern "C" | |
7988 | #endif | |
212380e3 AC |
7989 | char shl_load (); |
7990 | int | |
7991 | main () | |
7992 | { | |
631ef239 | 7993 | return shl_load (); |
212380e3 AC |
7994 | ; |
7995 | return 0; | |
7996 | } | |
7997 | _ACEOF | |
631ef239 AC |
7998 | for ac_lib in '' dld; do |
7999 | if test -z "$ac_lib"; then | |
8000 | ac_res="none required" | |
8001 | else | |
8002 | ac_res=-l$ac_lib | |
8003 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8004 | fi | |
7083c021 | 8005 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8006 | ac_cv_search_shl_load=$ac_res |
631ef239 | 8007 | fi |
7083c021 AC |
8008 | rm -f core conftest.err conftest.$ac_objext \ |
8009 | conftest$ac_exeext | |
b6d0720c | 8010 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 8011 | break |
212380e3 | 8012 | fi |
631ef239 | 8013 | done |
b6d0720c | 8014 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8015 | |
631ef239 AC |
8016 | else |
8017 | ac_cv_search_shl_load=no | |
212380e3 | 8018 | fi |
631ef239 | 8019 | rm conftest.$ac_ext |
212380e3 AC |
8020 | LIBS=$ac_func_search_save_LIBS |
8021 | fi | |
7083c021 AC |
8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
8023 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 8024 | ac_res=$ac_cv_search_shl_load |
7083c021 | 8025 | if test "$ac_res" != no; then : |
631ef239 | 8026 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8027 | |
8028 | ||
7083c021 | 8029 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 AC |
8030 | |
8031 | SUFFIX=".sl" | |
8032 | MOD_TARGET=hpux_shared | |
8033 | SEDOBJ="s/\.o/.sl/g" | |
8034 | ||
8035 | else | |
8036 | ||
7083c021 AC |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8038 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b6d0720c | 8039 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8040 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8041 | else |
8042 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8044 | /* end confdefs.h. */ |
8045 | ||
631ef239 AC |
8046 | /* Override any GCC internal prototype to avoid an error. |
8047 | Use char because int might match the return type of a GCC | |
8048 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8049 | #ifdef __cplusplus |
8050 | extern "C" | |
8051 | #endif | |
212380e3 AC |
8052 | char dlopen (); |
8053 | int | |
8054 | main () | |
8055 | { | |
631ef239 | 8056 | return dlopen (); |
212380e3 AC |
8057 | ; |
8058 | return 0; | |
8059 | } | |
8060 | _ACEOF | |
631ef239 AC |
8061 | for ac_lib in '' dl c_r; do |
8062 | if test -z "$ac_lib"; then | |
8063 | ac_res="none required" | |
8064 | else | |
8065 | ac_res=-l$ac_lib | |
8066 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8067 | fi | |
7083c021 | 8068 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8069 | ac_cv_search_dlopen=$ac_res |
631ef239 | 8070 | fi |
7083c021 AC |
8071 | rm -f core conftest.err conftest.$ac_objext \ |
8072 | conftest$ac_exeext | |
b6d0720c | 8073 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 8074 | break |
212380e3 | 8075 | fi |
631ef239 | 8076 | done |
b6d0720c | 8077 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8078 | |
631ef239 AC |
8079 | else |
8080 | ac_cv_search_dlopen=no | |
212380e3 | 8081 | fi |
631ef239 | 8082 | rm conftest.$ac_ext |
212380e3 AC |
8083 | LIBS=$ac_func_search_save_LIBS |
8084 | fi | |
7083c021 AC |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8086 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 8087 | ac_res=$ac_cv_search_dlopen |
7083c021 | 8088 | if test "$ac_res" != no; then : |
631ef239 | 8089 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8090 | |
8091 | ||
7083c021 | 8092 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 AC |
8093 | |
8094 | SUFFIX=".so" | |
8095 | MOD_TARGET=shared_modules | |
8096 | SEDOBJ="s/\.o/.so/g" | |
8097 | if test "$AppleGCC" = yes; then | |
7083c021 AC |
8098 | for ac_header in mach-o/dyld.h |
8099 | do : | |
8100 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b6d0720c | 8101 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 8102 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8103 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 AC |
8104 | _ACEOF |
8105 | ||
8106 | fi | |
8107 | ||
8108 | done | |
8109 | ||
8110 | fi | |
7083c021 | 8111 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b6d0720c | 8112 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 8113 | |
212380e3 AC |
8114 | else |
8115 | ||
7083c021 AC |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
8117 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 AC |
8118 | shared_modules=no |
8119 | ||
8120 | fi | |
8121 | ||
7083c021 AC |
8122 | for ac_func in dlfunc |
8123 | do : | |
8124 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b6d0720c | 8125 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 8126 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8127 | #define HAVE_DLFUNC 1 |
212380e3 AC |
8128 | _ACEOF |
8129 | ||
8130 | fi | |
8131 | done | |
8132 | ||
8133 | ||
8134 | else | |
8135 | ||
8136 | shared_modules=no | |
8137 | ||
8138 | fi | |
8139 | ||
8140 | ||
8141 | fi | |
8142 | ||
8143 | fi | |
8144 | ||
8145 | ||
8146 | cat >>confdefs.h <<_ACEOF | |
8147 | #define SHARED_SUFFIX "$SUFFIX" | |
8148 | _ACEOF | |
8149 | ||
8150 | ||
8151 | if test "$shared_modules" = yes; then | |
8152 | # The GNU linker requires the -export-dynamic option to make | |
8153 | # all symbols visible in the dynamic symbol table. | |
8154 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
8156 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 8157 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
7083c021 | 8158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8159 | /* end confdefs.h. */ |
8160 | ||
8161 | int | |
8162 | main () | |
8163 | { | |
8164 | int i; | |
8165 | ; | |
8166 | return 0; | |
8167 | } | |
8168 | _ACEOF | |
7083c021 | 8169 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
8170 | found=yes |
8171 | else | |
7083c021 | 8172 | found=no |
212380e3 | 8173 | fi |
7083c021 AC |
8174 | rm -f core conftest.err conftest.$ac_objext \ |
8175 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
8176 | LDFLAGS=$hold_ldflags |
8177 | ||
8178 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
8179 | found="no, IRIX ld uses -B,dynamic" | |
8180 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
8181 | fi | |
8182 | ||
8183 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
8184 | found="no, AIX ld uses -G -brtl" | |
8185 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
8186 | fi | |
8187 | ||
7083c021 AC |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8189 | $as_echo "$found" >&6; } | |
212380e3 AC |
8190 | |
8191 | if test "$found" = yes; then | |
8192 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
8193 | fi | |
8194 | ||
7083c021 AC |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
8196 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 8197 | if test "$SGS" = "yes"; then |
7083c021 AC |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
8199 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
8200 | PICFLAGS="-KPIC -DPIC -G" |
8201 | fi | |
8202 | ||
8203 | if test "$AppleGCC" = "yes"; then | |
7083c021 AC |
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
8205 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
8206 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
8207 | fi | |
8208 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
7083c021 AC |
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
8210 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 8211 | PICFLAGS="+z -r -q -n -c" |
7083c021 AC |
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
8213 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 AC |
8214 | |
8215 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
7083c021 AC |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8217 | $as_echo "no" >&6; } | |
212380e3 | 8218 | else |
7083c021 AC |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8220 | $as_echo "yes" >&6; } | |
212380e3 AC |
8221 | PICFLAGS="$PICFLAGS +ESfic" |
8222 | fi | |
8223 | ||
8224 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
8225 | fi | |
8226 | if test "$Tru" = yes -a "$CC" != gcc; then | |
7083c021 AC |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
8228 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
8229 | PICFLAGS="-shared -expect_unresolved '*' " |
8230 | LDFLAGS="-call_shared" | |
8231 | fi | |
8232 | if test -z "$PICFLAGS"; then | |
8233 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
7083c021 AC |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
8235 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
8236 | PICFLAGS="-fPIC -DPIC -shared" |
8237 | else | |
7083c021 AC |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8239 | $as_echo "no" >&6; } | |
212380e3 AC |
8240 | shared_modules=no |
8241 | fi | |
8242 | fi | |
8243 | fi | |
8244 | ||
1a82970f JT |
8245 | # rpath, for finding libratbox.so at run time |
8246 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
8248 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 8249 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 8250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
8251 | /* end confdefs.h. */ |
8252 | ||
8253 | int | |
8254 | main () | |
8255 | { | |
8256 | int i; | |
8257 | ; | |
8258 | return 0; | |
8259 | } | |
8260 | _ACEOF | |
7083c021 | 8261 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
8262 | found=yes |
8263 | else | |
7083c021 | 8264 | found=no |
1a82970f | 8265 | fi |
7083c021 AC |
8266 | rm -f core conftest.err conftest.$ac_objext \ |
8267 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 8268 | LDFLAGS=$hold_ldflags |
7083c021 AC |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8270 | $as_echo "$found" >&6; } | |
1a82970f JT |
8271 | if test "$found" = yes; then |
8272 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
8273 | fi | |
8274 | ||
212380e3 AC |
8275 | # This must be down here, or it will mess up checks like the ones |
8276 | # for -Wl,-export-dynamic | |
8277 | # -- jilles | |
d2c5159a | 8278 | CWARNS="" |
631ef239 | 8279 | # Check whether --enable-warnings was given. |
7083c021 | 8280 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 8281 | enableval=$enable_warnings; |
212380e3 AC |
8282 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
8283 | CFLAGS="$IRC_CFLAGS" | |
8284 | ||
8285 | ||
7083c021 AC |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
8287 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
8288 | if test "${GCC-no}" = yes |
8289 | then | |
b6d0720c | 8290 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 8291 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8292 | else |
8293 | ||
8294 | oldcflags="${CFLAGS-}" | |
8295 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 8296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8297 | /* end confdefs.h. */ |
8298 | ||
8299 | #include <string.h> | |
8300 | #include <stdio.h> | |
8301 | int main(void); | |
8302 | ||
8303 | int | |
8304 | main () | |
8305 | { | |
8306 | ||
b1fc1658 | 8307 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8308 | |
8309 | ; | |
8310 | return 0; | |
8311 | } | |
8312 | _ACEOF | |
7083c021 | 8313 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8314 | charybdis_cv_c_gcc_w_all=yes |
8315 | else | |
7083c021 | 8316 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 8317 | fi |
631ef239 | 8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8319 | CFLAGS="${oldcflags}" |
8320 | fi | |
8321 | ||
8322 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
8323 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8325 | $as_echo "ok" >&6; } | |
212380e3 AC |
8326 | else |
8327 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8329 | $as_echo "no" >&6; } | |
212380e3 AC |
8330 | fi |
8331 | else | |
7083c021 AC |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8333 | $as_echo "no" >&6; } | |
212380e3 AC |
8334 | fi |
8335 | ||
8336 | ||
7083c021 AC |
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
8338 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
8339 | if test "${GCC-no}" = yes |
8340 | then | |
b6d0720c | 8341 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 8342 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8343 | else |
8344 | ||
8345 | oldcflags="${CFLAGS-}" | |
8346 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 8347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8348 | /* end confdefs.h. */ |
8349 | ||
8350 | #include <string.h> | |
8351 | #include <stdio.h> | |
8352 | int main(void); | |
8353 | ||
8354 | int | |
8355 | main () | |
8356 | { | |
8357 | ||
b1fc1658 | 8358 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8359 | |
8360 | ; | |
8361 | return 0; | |
8362 | } | |
8363 | _ACEOF | |
7083c021 | 8364 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8365 | charybdis_cv_c_gcc_w_pointer_arith=yes |
8366 | else | |
7083c021 | 8367 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 8368 | fi |
631ef239 | 8369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8370 | CFLAGS="${oldcflags}" |
8371 | fi | |
8372 | ||
8373 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
8374 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8376 | $as_echo "ok" >&6; } | |
212380e3 AC |
8377 | else |
8378 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8380 | $as_echo "no" >&6; } | |
212380e3 AC |
8381 | fi |
8382 | else | |
7083c021 AC |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8384 | $as_echo "no" >&6; } | |
212380e3 AC |
8385 | fi |
8386 | ||
8387 | ||
7083c021 AC |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
8389 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
8390 | if test "${GCC-no}" = yes |
8391 | then | |
b6d0720c | 8392 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 8393 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8394 | else |
8395 | ||
8396 | oldcflags="${CFLAGS-}" | |
8397 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 8398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8399 | /* end confdefs.h. */ |
8400 | ||
8401 | #include <string.h> | |
8402 | #include <stdio.h> | |
8403 | int main(void); | |
8404 | ||
8405 | int | |
8406 | main () | |
8407 | { | |
8408 | ||
b1fc1658 | 8409 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8410 | |
8411 | ; | |
8412 | return 0; | |
8413 | } | |
8414 | _ACEOF | |
7083c021 | 8415 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8416 | charybdis_cv_c_gcc_w_implicit=yes |
8417 | else | |
7083c021 | 8418 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 8419 | fi |
631ef239 | 8420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8421 | CFLAGS="${oldcflags}" |
8422 | fi | |
8423 | ||
8424 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
8425 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8427 | $as_echo "ok" >&6; } | |
212380e3 AC |
8428 | else |
8429 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8431 | $as_echo "no" >&6; } | |
212380e3 AC |
8432 | fi |
8433 | else | |
7083c021 AC |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8435 | $as_echo "no" >&6; } | |
212380e3 AC |
8436 | fi |
8437 | ||
8438 | ||
7083c021 AC |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
8440 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
8441 | if test "${GCC-no}" = yes |
8442 | then | |
b6d0720c | 8443 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 8444 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8445 | else |
8446 | ||
8447 | oldcflags="${CFLAGS-}" | |
8448 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 8449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8450 | /* end confdefs.h. */ |
8451 | ||
8452 | #include <string.h> | |
8453 | #include <stdio.h> | |
8454 | int main(void); | |
8455 | ||
8456 | int | |
8457 | main () | |
8458 | { | |
8459 | ||
b1fc1658 | 8460 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
8461 | |
8462 | ; | |
8463 | return 0; | |
8464 | } | |
8465 | _ACEOF | |
8466 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
8467 | charybdis_cv_c_gcc_w_cast_align=yes |
8468 | else | |
7083c021 | 8469 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 8470 | fi |
631ef239 | 8471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8472 | CFLAGS="${oldcflags}" |
8473 | fi | |
8474 | ||
8475 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
8476 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
8477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8478 | $as_echo "ok" >&6; } | |
212380e3 AC |
8479 | else |
8480 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8482 | $as_echo "no" >&6; } | |
212380e3 AC |
8483 | fi |
8484 | else | |
7083c021 AC |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8486 | $as_echo "no" >&6; } | |
212380e3 AC |
8487 | fi |
8488 | ||
8489 | ||
7083c021 AC |
8490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
8491 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
8492 | if test "${GCC-no}" = yes |
8493 | then | |
b6d0720c | 8494 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 8495 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8496 | else |
8497 | ||
8498 | oldcflags="${CFLAGS-}" | |
8499 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 8500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8501 | /* end confdefs.h. */ |
8502 | ||
8503 | #include <string.h> | |
8504 | #include <stdio.h> | |
8505 | int main(void); | |
8506 | ||
8507 | int | |
8508 | main () | |
8509 | { | |
8510 | ||
b1fc1658 | 8511 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8512 | |
8513 | ; | |
8514 | return 0; | |
8515 | } | |
8516 | _ACEOF | |
7083c021 | 8517 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8518 | charybdis_cv_c_gcc_w_cast_qual=yes |
8519 | else | |
7083c021 | 8520 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 8521 | fi |
631ef239 | 8522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8523 | CFLAGS="${oldcflags}" |
8524 | fi | |
8525 | ||
8526 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
8527 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
8528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8529 | $as_echo "ok" >&6; } | |
212380e3 AC |
8530 | else |
8531 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8533 | $as_echo "no" >&6; } | |
212380e3 AC |
8534 | fi |
8535 | else | |
7083c021 AC |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8537 | $as_echo "no" >&6; } | |
212380e3 AC |
8538 | fi |
8539 | ||
8540 | ||
7083c021 AC |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
8542 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
8543 | if test "${GCC-no}" = yes |
8544 | then | |
b6d0720c | 8545 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 8546 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
8547 | else |
8548 | ||
8549 | oldcflags="${CFLAGS-}" | |
8550 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 8551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
8552 | /* end confdefs.h. */ |
8553 | ||
8554 | #include <string.h> | |
8555 | #include <stdio.h> | |
8556 | int main(void); | |
8557 | ||
8558 | int | |
8559 | main () | |
8560 | { | |
8561 | ||
8562 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8563 | ||
8564 | ; | |
8565 | return 0; | |
8566 | } | |
8567 | _ACEOF | |
7083c021 | 8568 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 8569 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 8570 | else |
7083c021 | 8571 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 8572 | fi |
d2c5159a JT |
8573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8574 | CFLAGS="${oldcflags}" | |
8575 | fi | |
8576 | ||
bbe58888 | 8577 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 8578 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8580 | $as_echo "ok" >&6; } | |
d2c5159a | 8581 | else |
bbe58888 | 8582 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8584 | $as_echo "no" >&6; } | |
bbe58888 VY |
8585 | fi |
8586 | else | |
7083c021 AC |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8588 | $as_echo "no" >&6; } | |
bbe58888 VY |
8589 | fi |
8590 | ||
8591 | ||
7083c021 AC |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
8593 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
8594 | if test "${GCC-no}" = yes |
8595 | then | |
b6d0720c | 8596 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 8597 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
8598 | else |
8599 | ||
8600 | oldcflags="${CFLAGS-}" | |
8601 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 8602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
8603 | /* end confdefs.h. */ |
8604 | ||
8605 | #include <string.h> | |
8606 | #include <stdio.h> | |
8607 | int main(void); | |
8608 | ||
8609 | int | |
8610 | main () | |
8611 | { | |
8612 | ||
8613 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8614 | ||
8615 | ; | |
8616 | return 0; | |
8617 | } | |
8618 | _ACEOF | |
7083c021 | 8619 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
8620 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
8621 | else | |
7083c021 | 8622 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 8623 | fi |
bbe58888 VY |
8624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8625 | CFLAGS="${oldcflags}" | |
8626 | fi | |
8627 | ||
8628 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
8629 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8631 | $as_echo "ok" >&6; } | |
bbe58888 VY |
8632 | else |
8633 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8635 | $as_echo "no" >&6; } | |
d2c5159a JT |
8636 | fi |
8637 | else | |
7083c021 AC |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8639 | $as_echo "no" >&6; } | |
d2c5159a JT |
8640 | fi |
8641 | ||
8642 | ||
7083c021 AC |
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
8644 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
8645 | if test "${GCC-no}" = yes |
8646 | then | |
b6d0720c | 8647 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 8648 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8649 | else |
8650 | ||
8651 | oldcflags="${CFLAGS-}" | |
8652 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 8653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8654 | /* end confdefs.h. */ |
8655 | ||
8656 | #include <string.h> | |
8657 | #include <stdio.h> | |
8658 | int main(void); | |
8659 | ||
8660 | int | |
8661 | main () | |
8662 | { | |
8663 | ||
b1fc1658 | 8664 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8665 | |
8666 | ; | |
8667 | return 0; | |
8668 | } | |
8669 | _ACEOF | |
7083c021 | 8670 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8671 | charybdis_cv_c_gcc_prototypes=yes |
8672 | else | |
7083c021 | 8673 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 8674 | fi |
631ef239 | 8675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8676 | CFLAGS="${oldcflags}" |
8677 | fi | |
8678 | ||
8679 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
8680 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8682 | $as_echo "ok" >&6; } | |
212380e3 AC |
8683 | else |
8684 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8686 | $as_echo "no" >&6; } | |
212380e3 AC |
8687 | fi |
8688 | else | |
7083c021 AC |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8690 | $as_echo "no" >&6; } | |
212380e3 AC |
8691 | fi |
8692 | ||
8693 | ||
7083c021 AC |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
8695 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
8696 | if test "${GCC-no}" = yes |
8697 | then | |
b6d0720c | 8698 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 8699 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8700 | else |
8701 | ||
8702 | oldcflags="${CFLAGS-}" | |
8703 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 8704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8705 | /* end confdefs.h. */ |
8706 | ||
8707 | #include <string.h> | |
8708 | #include <stdio.h> | |
8709 | int main(void); | |
8710 | ||
8711 | int | |
8712 | main () | |
8713 | { | |
8714 | ||
b1fc1658 | 8715 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8716 | |
8717 | ; | |
8718 | return 0; | |
8719 | } | |
8720 | _ACEOF | |
7083c021 | 8721 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8722 | charybdis_cv_c_gcc_parenthesis=yes |
8723 | else | |
7083c021 | 8724 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 8725 | fi |
631ef239 | 8726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8727 | CFLAGS="${oldcflags}" |
8728 | fi | |
8729 | ||
8730 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
8731 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8733 | $as_echo "ok" >&6; } | |
212380e3 AC |
8734 | else |
8735 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8737 | $as_echo "no" >&6; } | |
212380e3 AC |
8738 | fi |
8739 | else | |
7083c021 AC |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8741 | $as_echo "no" >&6; } | |
212380e3 AC |
8742 | fi |
8743 | ||
8744 | ||
7083c021 AC |
8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
8746 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
8747 | if test "${GCC-no}" = yes |
8748 | then | |
b6d0720c | 8749 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 8750 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8751 | else |
8752 | ||
8753 | oldcflags="${CFLAGS-}" | |
8754 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 8755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8756 | /* end confdefs.h. */ |
8757 | ||
8758 | #include <string.h> | |
8759 | #include <stdio.h> | |
8760 | int main(void); | |
8761 | ||
8762 | int | |
8763 | main () | |
8764 | { | |
8765 | ||
b1fc1658 | 8766 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8767 | |
8768 | ; | |
8769 | return 0; | |
8770 | } | |
8771 | _ACEOF | |
7083c021 | 8772 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8773 | charybdis_cv_c_gcc_w=yes |
8774 | else | |
7083c021 | 8775 | charybdis_cv_c_gcc_w=no |
212380e3 | 8776 | fi |
631ef239 | 8777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8778 | CFLAGS="${oldcflags}" |
8779 | fi | |
8780 | ||
8781 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
8782 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8784 | $as_echo "ok" >&6; } | |
212380e3 AC |
8785 | else |
8786 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8788 | $as_echo "no" >&6; } | |
212380e3 AC |
8789 | fi |
8790 | else | |
7083c021 AC |
8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8792 | $as_echo "no" >&6; } | |
212380e3 AC |
8793 | fi |
8794 | ||
8795 | ||
7083c021 AC |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
8797 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
8798 | if test "${GCC-no}" = yes |
8799 | then | |
b6d0720c | 8800 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 8801 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8802 | else |
8803 | ||
8804 | oldcflags="${CFLAGS-}" | |
8805 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 8806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8807 | /* end confdefs.h. */ |
8808 | ||
8809 | #include <string.h> | |
8810 | #include <stdio.h> | |
8811 | int main(void); | |
8812 | ||
8813 | int | |
8814 | main () | |
8815 | { | |
8816 | ||
b1fc1658 | 8817 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8818 | |
8819 | ; | |
8820 | return 0; | |
8821 | } | |
8822 | _ACEOF | |
7083c021 | 8823 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8824 | charybdis_cv_c_gcc_w_extra=yes |
8825 | else | |
7083c021 | 8826 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 8827 | fi |
631ef239 | 8828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8829 | CFLAGS="${oldcflags}" |
8830 | fi | |
8831 | ||
8832 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
8833 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8835 | $as_echo "ok" >&6; } | |
212380e3 AC |
8836 | else |
8837 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8839 | $as_echo "no" >&6; } | |
212380e3 AC |
8840 | fi |
8841 | else | |
7083c021 AC |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8843 | $as_echo "no" >&6; } | |
212380e3 AC |
8844 | fi |
8845 | ||
8846 | ||
7083c021 AC |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
8848 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
8849 | if test "${GCC-no}" = yes |
8850 | then | |
b6d0720c | 8851 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 8852 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8853 | else |
8854 | ||
8855 | oldcflags="${CFLAGS-}" | |
8856 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 8857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8858 | /* end confdefs.h. */ |
8859 | ||
8860 | #include <string.h> | |
8861 | #include <stdio.h> | |
8862 | int main(void); | |
8863 | ||
8864 | int | |
8865 | main () | |
8866 | { | |
8867 | ||
b1fc1658 | 8868 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8869 | |
8870 | ; | |
8871 | return 0; | |
8872 | } | |
8873 | _ACEOF | |
7083c021 | 8874 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8875 | charybdis_cv_c_gcc_w_shadow=yes |
8876 | else | |
7083c021 | 8877 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 8878 | fi |
631ef239 | 8879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8880 | CFLAGS="${oldcflags}" |
8881 | fi | |
8882 | ||
8883 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
8884 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8886 | $as_echo "ok" >&6; } | |
212380e3 AC |
8887 | else |
8888 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8890 | $as_echo "no" >&6; } | |
212380e3 AC |
8891 | fi |
8892 | else | |
7083c021 AC |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8894 | $as_echo "no" >&6; } | |
212380e3 AC |
8895 | fi |
8896 | ||
8897 | ||
7083c021 AC |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
8899 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
8900 | if test "${GCC-no}" = yes |
8901 | then | |
b6d0720c | 8902 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 8903 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8904 | else |
8905 | ||
8906 | oldcflags="${CFLAGS-}" | |
8907 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 8908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8909 | /* end confdefs.h. */ |
8910 | ||
8911 | #include <string.h> | |
8912 | #include <stdio.h> | |
8913 | int main(void); | |
8914 | ||
8915 | int | |
8916 | main () | |
8917 | { | |
8918 | ||
b1fc1658 | 8919 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8920 | |
8921 | ; | |
8922 | return 0; | |
8923 | } | |
8924 | _ACEOF | |
7083c021 | 8925 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8926 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
8927 | else | |
7083c021 | 8928 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 8929 | fi |
631ef239 | 8930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8931 | CFLAGS="${oldcflags}" |
8932 | fi | |
8933 | ||
8934 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
8935 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8937 | $as_echo "ok" >&6; } | |
212380e3 AC |
8938 | else |
8939 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8941 | $as_echo "no" >&6; } | |
212380e3 AC |
8942 | fi |
8943 | else | |
7083c021 AC |
8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8945 | $as_echo "no" >&6; } | |
212380e3 AC |
8946 | fi |
8947 | ||
8948 | ||
7083c021 AC |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
8950 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
8951 | if test "${GCC-no}" = yes |
8952 | then | |
b6d0720c | 8953 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 8954 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8955 | else |
8956 | ||
8957 | oldcflags="${CFLAGS-}" | |
8958 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 8959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8960 | /* end confdefs.h. */ |
8961 | ||
8962 | #include <string.h> | |
8963 | #include <stdio.h> | |
8964 | int main(void); | |
8965 | ||
8966 | int | |
8967 | main () | |
8968 | { | |
8969 | ||
b1fc1658 | 8970 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8971 | |
8972 | ; | |
8973 | return 0; | |
8974 | } | |
8975 | _ACEOF | |
7083c021 | 8976 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8977 | charybdis_cv_c_gcc_w_undef=yes |
8978 | else | |
7083c021 | 8979 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 8980 | fi |
631ef239 | 8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8982 | CFLAGS="${oldcflags}" |
8983 | fi | |
8984 | ||
8985 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
8986 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8988 | $as_echo "ok" >&6; } | |
212380e3 AC |
8989 | else |
8990 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
212380e3 AC |
8993 | fi |
8994 | else | |
7083c021 AC |
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8996 | $as_echo "no" >&6; } | |
212380e3 AC |
8997 | fi |
8998 | ||
8999 | ||
7083c021 AC |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
9001 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
9002 | if test "${GCC-no}" = yes |
9003 | then | |
b6d0720c | 9004 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 9005 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9006 | else |
9007 | ||
9008 | oldcflags="${CFLAGS-}" | |
9009 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 9010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9011 | /* end confdefs.h. */ |
9012 | ||
9013 | #include <string.h> | |
9014 | #include <stdio.h> | |
9015 | int main(void); | |
9016 | ||
9017 | int | |
9018 | main () | |
9019 | { | |
9020 | ||
b1fc1658 | 9021 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9022 | |
9023 | ; | |
9024 | return 0; | |
9025 | } | |
9026 | _ACEOF | |
7083c021 | 9027 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9028 | charybdis_cv_c_gcc_w_packed=yes |
9029 | else | |
7083c021 | 9030 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 9031 | fi |
631ef239 | 9032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9033 | CFLAGS="${oldcflags}" |
9034 | fi | |
9035 | ||
9036 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
9037 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9039 | $as_echo "ok" >&6; } | |
212380e3 AC |
9040 | else |
9041 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9043 | $as_echo "no" >&6; } | |
212380e3 AC |
9044 | fi |
9045 | else | |
7083c021 AC |
9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9047 | $as_echo "no" >&6; } | |
212380e3 AC |
9048 | fi |
9049 | ||
9050 | ||
7083c021 AC |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
9052 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
9053 | if test "${GCC-no}" = yes |
9054 | then | |
b6d0720c | 9055 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 9056 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9057 | else |
9058 | ||
9059 | oldcflags="${CFLAGS-}" | |
9060 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 9061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9062 | /* end confdefs.h. */ |
9063 | ||
9064 | #include <string.h> | |
9065 | #include <stdio.h> | |
9066 | int main(void); | |
9067 | ||
9068 | int | |
9069 | main () | |
9070 | { | |
9071 | ||
b1fc1658 | 9072 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9073 | |
9074 | ; | |
9075 | return 0; | |
9076 | } | |
9077 | _ACEOF | |
7083c021 | 9078 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9079 | charybdis_cv_c_gcc_w_nested_externs=yes |
9080 | else | |
7083c021 | 9081 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 9082 | fi |
631ef239 | 9083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9084 | CFLAGS="${oldcflags}" |
9085 | fi | |
9086 | ||
9087 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
9088 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9090 | $as_echo "ok" >&6; } | |
212380e3 AC |
9091 | else |
9092 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9094 | $as_echo "no" >&6; } | |
212380e3 AC |
9095 | fi |
9096 | else | |
7083c021 AC |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9098 | $as_echo "no" >&6; } | |
212380e3 AC |
9099 | fi |
9100 | ||
9101 | ||
7083c021 AC |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
9103 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
9104 | if test "${GCC-no}" = yes |
9105 | then | |
b6d0720c | 9106 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 9107 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9108 | else |
9109 | ||
9110 | oldcflags="${CFLAGS-}" | |
9111 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 9112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9113 | /* end confdefs.h. */ |
9114 | ||
9115 | #include <string.h> | |
9116 | #include <stdio.h> | |
9117 | int main(void); | |
9118 | ||
9119 | int | |
9120 | main () | |
9121 | { | |
9122 | ||
b1fc1658 | 9123 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9124 | |
9125 | ; | |
9126 | return 0; | |
9127 | } | |
9128 | _ACEOF | |
7083c021 | 9129 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9130 | charybdis_cv_c_gcc_w_unused=yes |
9131 | else | |
7083c021 | 9132 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 9133 | fi |
631ef239 | 9134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9135 | CFLAGS="${oldcflags}" |
9136 | fi | |
9137 | ||
9138 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
9139 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9141 | $as_echo "ok" >&6; } | |
212380e3 AC |
9142 | else |
9143 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9145 | $as_echo "no" >&6; } | |
212380e3 AC |
9146 | fi |
9147 | else | |
7083c021 AC |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9149 | $as_echo "no" >&6; } | |
212380e3 AC |
9150 | fi |
9151 | ||
9152 | ||
7083c021 AC |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
9154 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
9155 | if test "${GCC-no}" = yes |
9156 | then | |
b6d0720c | 9157 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 9158 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9159 | else |
9160 | ||
9161 | oldcflags="${CFLAGS-}" | |
9162 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 9163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9164 | /* end confdefs.h. */ |
9165 | ||
9166 | #include <string.h> | |
9167 | #include <stdio.h> | |
9168 | int main(void); | |
9169 | ||
9170 | int | |
9171 | main () | |
9172 | { | |
9173 | ||
b1fc1658 | 9174 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9175 | |
9176 | ; | |
9177 | return 0; | |
9178 | } | |
9179 | _ACEOF | |
7083c021 | 9180 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9181 | charybdis_cv_c_gcc_w_redundant_decls=yes |
9182 | else | |
7083c021 | 9183 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 9184 | fi |
631ef239 | 9185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9186 | CFLAGS="${oldcflags}" |
9187 | fi | |
9188 | ||
9189 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
9190 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9192 | $as_echo "ok" >&6; } | |
212380e3 AC |
9193 | else |
9194 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9196 | $as_echo "no" >&6; } | |
212380e3 AC |
9197 | fi |
9198 | else | |
7083c021 AC |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9200 | $as_echo "no" >&6; } | |
212380e3 AC |
9201 | fi |
9202 | ||
9203 | ||
7083c021 AC |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
9205 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
9206 | if test "${GCC-no}" = yes |
9207 | then | |
b6d0720c | 9208 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 9209 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9210 | else |
9211 | ||
9212 | oldcflags="${CFLAGS-}" | |
9213 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 9214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9215 | /* end confdefs.h. */ |
9216 | ||
9217 | #include <string.h> | |
9218 | #include <stdio.h> | |
9219 | int main(void); | |
9220 | ||
9221 | int | |
9222 | main () | |
9223 | { | |
9224 | ||
b1fc1658 | 9225 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9226 | |
9227 | ; | |
9228 | return 0; | |
9229 | } | |
9230 | _ACEOF | |
7083c021 | 9231 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9232 | charybdis_cv_c_gcc_w_float_equal=yes |
9233 | else | |
7083c021 | 9234 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 9235 | fi |
631ef239 | 9236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9237 | CFLAGS="${oldcflags}" |
9238 | fi | |
9239 | ||
9240 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
9241 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9243 | $as_echo "ok" >&6; } | |
212380e3 AC |
9244 | else |
9245 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9247 | $as_echo "no" >&6; } | |
212380e3 AC |
9248 | fi |
9249 | else | |
7083c021 AC |
9250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9251 | $as_echo "no" >&6; } | |
212380e3 AC |
9252 | fi |
9253 | ||
9254 | ||
7083c021 AC |
9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
9256 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
9257 | if test "${GCC-no}" = yes |
9258 | then | |
b6d0720c | 9259 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 9260 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9261 | else |
9262 | ||
9263 | oldcflags="${CFLAGS-}" | |
4a584d41 | 9264 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 9265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9266 | /* end confdefs.h. */ |
9267 | ||
9268 | #include <string.h> | |
9269 | #include <stdio.h> | |
9270 | int main(void); | |
9271 | ||
9272 | int | |
9273 | main () | |
9274 | { | |
7083c021 AC |
9275 | |
9276 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
9277 | ||
212380e3 AC |
9278 | ; |
9279 | return 0; | |
9280 | } | |
9281 | _ACEOF | |
7083c021 AC |
9282 | if ac_fn_c_try_compile "$LINENO"; then : |
9283 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 9284 | else |
7083c021 AC |
9285 | charybdis_cv_c_gcc_w_format=no |
9286 | fi | |
9287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9288 | CFLAGS="${oldcflags}" | |
9289 | fi | |
9290 | ||
9291 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
9292 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
9294 | $as_echo "ok" >&6; } | |
9295 | else | |
9296 | charybdis_cv_c_gcc_w_format='' | |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9298 | $as_echo "no" >&6; } | |
9299 | fi | |
9300 | else | |
9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9302 | $as_echo "no" >&6; } | |
9303 | fi | |
9304 | ||
9305 | ||
9306 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 9307 | |
212380e3 | 9308 | fi |
631ef239 | 9309 | |
7083c021 AC |
9310 | |
9311 | if test "$shared_modules" = no; then | |
9312 | DYNLINK_C="" | |
9313 | MOD_TARGET="libmodules.a" | |
9314 | MODULES_LIBS="../modules/libmodules.a" | |
9315 | SEDOBJ="" | |
9316 | ||
9317 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
9318 | ||
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
9320 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 9321 | fi |
7083c021 AC |
9322 | |
9323 | if test "$shared_modules" = yes; then | |
9324 | ||
9325 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b6d0720c | 9326 | if test "x$ac_cv_func_nlist" = xyes; then : |
7083c021 | 9327 | |
212380e3 | 9328 | else |
7083c021 AC |
9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
9330 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b6d0720c | 9331 | if ${ac_cv_lib_dl_nlist+:} false; then : |
7083c021 | 9332 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9333 | else |
9334 | ac_check_lib_save_LIBS=$LIBS | |
9335 | LIBS="-ldl $LIBS" | |
7083c021 | 9336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9337 | /* end confdefs.h. */ |
9338 | ||
631ef239 AC |
9339 | /* Override any GCC internal prototype to avoid an error. |
9340 | Use char because int might match the return type of a GCC | |
9341 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9342 | #ifdef __cplusplus |
9343 | extern "C" | |
9344 | #endif | |
212380e3 AC |
9345 | char nlist (); |
9346 | int | |
9347 | main () | |
9348 | { | |
631ef239 | 9349 | return nlist (); |
212380e3 AC |
9350 | ; |
9351 | return 0; | |
9352 | } | |
9353 | _ACEOF | |
7083c021 | 9354 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9355 | ac_cv_lib_dl_nlist=yes |
9356 | else | |
7083c021 | 9357 | ac_cv_lib_dl_nlist=no |
212380e3 | 9358 | fi |
7083c021 AC |
9359 | rm -f core conftest.err conftest.$ac_objext \ |
9360 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9361 | LIBS=$ac_check_lib_save_LIBS |
9362 | fi | |
7083c021 AC |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
9364 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b6d0720c | 9365 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 AC |
9366 | nlist_lib="-ldl" |
9367 | else | |
7083c021 AC |
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
9369 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b6d0720c | 9370 | if ${ac_cv_lib_elf_nlist+:} false; then : |
7083c021 | 9371 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9372 | else |
9373 | ac_check_lib_save_LIBS=$LIBS | |
9374 | LIBS="-lelf $LIBS" | |
7083c021 | 9375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9376 | /* end confdefs.h. */ |
9377 | ||
631ef239 AC |
9378 | /* Override any GCC internal prototype to avoid an error. |
9379 | Use char because int might match the return type of a GCC | |
9380 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9381 | #ifdef __cplusplus |
9382 | extern "C" | |
9383 | #endif | |
212380e3 AC |
9384 | char nlist (); |
9385 | int | |
9386 | main () | |
9387 | { | |
631ef239 | 9388 | return nlist (); |
212380e3 AC |
9389 | ; |
9390 | return 0; | |
9391 | } | |
9392 | _ACEOF | |
7083c021 | 9393 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9394 | ac_cv_lib_elf_nlist=yes |
9395 | else | |
7083c021 | 9396 | ac_cv_lib_elf_nlist=no |
212380e3 | 9397 | fi |
7083c021 AC |
9398 | rm -f core conftest.err conftest.$ac_objext \ |
9399 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9400 | LIBS=$ac_check_lib_save_LIBS |
9401 | fi | |
7083c021 AC |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
9403 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b6d0720c | 9404 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 AC |
9405 | nlist_lib="-lelf" |
9406 | fi | |
9407 | ||
9408 | ||
9409 | fi | |
9410 | ||
9411 | ||
9412 | fi | |
9413 | ||
9414 | ||
7083c021 | 9415 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b6d0720c | 9416 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 AC |
9417 | nlist_h="libelf/nlist.h" |
9418 | fi | |
9419 | ||
9420 | ||
7083c021 | 9421 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b6d0720c | 9422 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 AC |
9423 | nlist_h="elf/nlist.h" |
9424 | fi | |
9425 | ||
9426 | ||
7083c021 | 9427 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b6d0720c | 9428 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 AC |
9429 | nlist_h="nlist.h" |
9430 | fi | |
9431 | ||
9432 | ||
9433 | if test x"$nlist_h" = "x"; then | |
9434 | ||
9435 | cat >>confdefs.h <<_ACEOF | |
9436 | #define SYMBOL_PREFIX "" | |
9437 | _ACEOF | |
9438 | ||
9439 | else | |
7083c021 AC |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
9441 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b6d0720c | 9442 | if ${symbol_underscores+:} false; then : |
7083c021 | 9443 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9444 | else |
9445 | ||
9446 | cat << EOF > conftest.c | |
9447 | #include <$nlist_h> | |
9448 | #include <stdio.h> | |
9449 | #include <stdlib.h> | |
9450 | void _modinit(void); | |
9451 | int main(int argc, char *argv[]) { | |
9452 | int i; | |
9453 | struct nlist nl[5]; | |
9454 | ||
9455 | /* fill the names in this way, so it'll work almost everywhere */ | |
9456 | nl[0].n_name = "_modinit"; | |
9457 | nl[1].n_name = "__modinit"; | |
9458 | nl[2].n_name = "___modinit"; | |
9459 | nl[3].n_name = "____modinit"; | |
9460 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
9461 | ||
9462 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
9463 | for(i = 0; i < 4; i++) { | |
9464 | if(nl[i].n_value != NULL) | |
9465 | { | |
9466 | int j; | |
9467 | for(j = 0; j < i; j++) | |
9468 | printf("_"); | |
9469 | exit(i); | |
9470 | } | |
9471 | } | |
9472 | exit(-1); | |
9473 | } | |
9474 | void _modinit(void) { return; } | |
9475 | EOF | |
9476 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
9477 | symbol_underscores=`./conftest conftest` | |
7083c021 AC |
9478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
9479 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 AC |
9480 | $RM -f conftest conftest.c |
9481 | ||
9482 | fi | |
9483 | ||
9484 | ||
9485 | cat >>confdefs.h <<_ACEOF | |
9486 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
9487 | _ACEOF | |
9488 | ||
9489 | fi | |
9490 | fi | |
9491 | ||
d2c5159a JT |
9492 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
9493 | ||
212380e3 AC |
9494 | |
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | ||
9507 | if test "$prefix" = "NONE"; then | |
9508 | ||
9509 | cat >>confdefs.h <<_ACEOF | |
9510 | #define IRCD_PREFIX "$ac_default_prefix" | |
9511 | _ACEOF | |
9512 | ||
9513 | ||
9514 | else | |
9515 | ||
9516 | ||
9517 | prefix=`echo $prefix | sed 's/\/$//'` | |
9518 | ||
9519 | cat >>confdefs.h <<_ACEOF | |
9520 | #define IRCD_PREFIX "$prefix" | |
9521 | _ACEOF | |
9522 | ||
9523 | ||
9524 | fi | |
9525 | ||
6fb6bd15 | 9526 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
9527 | |
9528 | ||
9529 | cat >confcache <<\_ACEOF | |
9530 | # This file is a shell script that caches the results of configure | |
9531 | # tests run on this system so they can be shared between configure | |
9532 | # scripts and configure runs, see configure's option --config-cache. | |
9533 | # It is not useful on other systems. If it contains results you don't | |
9534 | # want to keep, you may remove or edit it. | |
9535 | # | |
9536 | # config.status only pays attention to the cache file if you give it | |
9537 | # the --recheck option to rerun configure. | |
9538 | # | |
9539 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9540 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9541 | # following values. | |
9542 | ||
9543 | _ACEOF | |
9544 | ||
9545 | # The following way of writing the cache mishandles newlines in values, | |
9546 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 9547 | # So, we kill variables containing newlines. |
212380e3 AC |
9548 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9549 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
9550 | ( |
9551 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9552 | eval ac_val=\$$ac_var | |
9553 | case $ac_val in #( | |
9554 | *${as_nl}*) | |
9555 | case $ac_var in #( | |
7083c021 AC |
9556 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9557 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
9558 | esac |
9559 | case $ac_var in #( | |
9560 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
9561 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9562 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
9563 | esac ;; |
9564 | esac | |
9565 | done | |
9566 | ||
212380e3 | 9567 | (set) 2>&1 | |
631ef239 AC |
9568 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9569 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
9570 | # `set' does not quote correctly, so add quotes: double-quote |
9571 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
9572 | sed -n \ |
9573 | "s/'/'\\\\''/g; | |
9574 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 9575 | ;; #( |
212380e3 AC |
9576 | *) |
9577 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 9578 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 9579 | ;; |
631ef239 AC |
9580 | esac | |
9581 | sort | |
9582 | ) | | |
212380e3 | 9583 | sed ' |
631ef239 | 9584 | /^ac_cv_env_/b end |
212380e3 | 9585 | t clear |
631ef239 | 9586 | :clear |
212380e3 AC |
9587 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9588 | t end | |
631ef239 AC |
9589 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9590 | :end' >>confcache | |
9591 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9592 | if test -w "$cache_file"; then | |
b6d0720c | 9593 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9595 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
9596 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
9597 | cat confcache >"$cache_file" | |
9598 | else | |
9599 | case $cache_file in #( | |
9600 | */* | ?:*) | |
9601 | mv -f confcache "$cache_file"$$ && | |
9602 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9603 | *) | |
9604 | mv -f confcache "$cache_file" ;; | |
9605 | esac | |
9606 | fi | |
9607 | fi | |
212380e3 | 9608 | else |
7083c021 AC |
9609 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9610 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
9611 | fi |
9612 | fi | |
9613 | rm -f confcache | |
9614 | ||
9615 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9616 | # Let make expand exec_prefix. | |
9617 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9618 | ||
212380e3 AC |
9619 | DEFS=-DHAVE_CONFIG_H |
9620 | ||
9621 | ac_libobjs= | |
9622 | ac_ltlibobjs= | |
b6d0720c | 9623 | U= |
212380e3 AC |
9624 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9625 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 9626 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 9627 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
9628 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9629 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
9630 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9631 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
9632 | done |
9633 | LIBOBJS=$ac_libobjs | |
9634 | ||
9635 | LTLIBOBJS=$ac_ltlibobjs | |
9636 | ||
9637 | ||
9638 | ||
7083c021 AC |
9639 | |
9640 | ||
b6d0720c | 9641 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 9642 | ac_write_fail=0 |
212380e3 AC |
9643 | ac_clean_files_save=$ac_clean_files |
9644 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
9646 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9647 | as_write_fail=0 | |
9648 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
9649 | #! $SHELL |
9650 | # Generated by $as_me. | |
9651 | # Run this file to recreate the current configuration. | |
9652 | # Compiler output produced by configure, useful for debugging | |
9653 | # configure, is in config.log if it exists. | |
9654 | ||
9655 | debug=false | |
9656 | ac_cs_recheck=false | |
9657 | ac_cs_silent=false | |
212380e3 | 9658 | |
7083c021 AC |
9659 | SHELL=\${CONFIG_SHELL-$SHELL} |
9660 | export SHELL | |
9661 | _ASEOF | |
9662 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
9663 | ## -------------------- ## | |
9664 | ## M4sh Initialization. ## | |
9665 | ## -------------------- ## | |
212380e3 | 9666 | |
631ef239 AC |
9667 | # Be more Bourne compatible |
9668 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 9669 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
9670 | emulate sh |
9671 | NULLCMD=: | |
7083c021 | 9672 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
9673 | # is contrary to our usage. Disable this feature. |
9674 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 9675 | setopt NO_GLOB_SUBST |
212380e3 | 9676 | else |
7083c021 AC |
9677 | case `(set -o) 2>/dev/null` in #( |
9678 | *posix*) : | |
9679 | set -o posix ;; #( | |
9680 | *) : | |
9681 | ;; | |
631ef239 | 9682 | esac |
212380e3 AC |
9683 | fi |
9684 | ||
9685 | ||
7083c021 AC |
9686 | as_nl=' |
9687 | ' | |
9688 | export as_nl | |
9689 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
9690 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
9691 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
9692 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
9693 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
9694 | # but without wasting forks for bash or zsh. | |
9695 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
9696 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9697 | as_echo='print -r --' | |
9698 | as_echo_n='print -rn --' | |
9699 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9700 | as_echo='printf %s\n' | |
9701 | as_echo_n='printf %s' | |
9702 | else | |
9703 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
9704 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
9705 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 9706 | else |
7083c021 AC |
9707 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
9708 | as_echo_n_body='eval | |
9709 | arg=$1; | |
9710 | case $arg in #( | |
9711 | *"$as_nl"*) | |
9712 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
9713 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
9714 | esac; | |
9715 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
9716 | ' | |
9717 | export as_echo_n_body | |
9718 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 9719 | fi |
7083c021 AC |
9720 | export as_echo_body |
9721 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
9722 | fi |
9723 | ||
7083c021 AC |
9724 | # The user is always right. |
9725 | if test "${PATH_SEPARATOR+set}" != set; then | |
9726 | PATH_SEPARATOR=: | |
9727 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9728 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9729 | PATH_SEPARATOR=';' | |
9730 | } | |
631ef239 AC |
9731 | fi |
9732 | ||
9733 | ||
9734 | # IFS | |
9735 | # We need space, tab and new line, in precisely that order. Quoting is | |
9736 | # there to prevent editors from complaining about space-tab. | |
9737 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9738 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
9739 | IFS=" "" $as_nl" |
9740 | ||
9741 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 9742 | as_myself= |
7083c021 | 9743 | case $0 in #(( |
631ef239 AC |
9744 | *[\\/]* ) as_myself=$0 ;; |
9745 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9746 | for as_dir in $PATH | |
9747 | do | |
9748 | IFS=$as_save_IFS | |
9749 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
9750 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9751 | done | |
631ef239 AC |
9752 | IFS=$as_save_IFS |
9753 | ||
9754 | ;; | |
9755 | esac | |
9756 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9757 | # in which case we are not to be found in the path. | |
9758 | if test "x$as_myself" = x; then | |
9759 | as_myself=$0 | |
9760 | fi | |
9761 | if test ! -f "$as_myself"; then | |
7083c021 AC |
9762 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
9763 | exit 1 | |
631ef239 AC |
9764 | fi |
9765 | ||
7083c021 AC |
9766 | # Unset variables that we do not need and which cause bugs (e.g. in |
9767 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
9768 | # suppresses any "Segmentation fault" message there. '((' could | |
9769 | # trigger a bug in pdksh 5.2.14. | |
9770 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
9771 | do eval test x\${$as_var+set} = xset \ | |
9772 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 9773 | done |
212380e3 AC |
9774 | PS1='$ ' |
9775 | PS2='> ' | |
9776 | PS4='+ ' | |
9777 | ||
7083c021 AC |
9778 | # NLS nuisances. |
9779 | LC_ALL=C | |
9780 | export LC_ALL | |
9781 | LANGUAGE=C | |
9782 | export LANGUAGE | |
9783 | ||
9784 | # CDPATH. | |
9785 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9786 | ||
9787 | ||
b6d0720c AC |
9788 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
9789 | # ---------------------------------------- | |
7083c021 AC |
9790 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9791 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 9792 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
9793 | as_fn_error () |
9794 | { | |
b6d0720c AC |
9795 | as_status=$1; test $as_status -eq 0 && as_status=1 |
9796 | if test "$4"; then | |
9797 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9798 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 9799 | fi |
b6d0720c | 9800 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
9801 | as_fn_exit $as_status |
9802 | } # as_fn_error | |
9803 | ||
9804 | ||
9805 | # as_fn_set_status STATUS | |
9806 | # ----------------------- | |
9807 | # Set $? to STATUS, without forking. | |
9808 | as_fn_set_status () | |
9809 | { | |
9810 | return $1 | |
9811 | } # as_fn_set_status | |
9812 | ||
9813 | # as_fn_exit STATUS | |
9814 | # ----------------- | |
9815 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
9816 | as_fn_exit () | |
9817 | { | |
9818 | set +e | |
9819 | as_fn_set_status $1 | |
9820 | exit $1 | |
9821 | } # as_fn_exit | |
9822 | ||
9823 | # as_fn_unset VAR | |
9824 | # --------------- | |
9825 | # Portably unset VAR. | |
9826 | as_fn_unset () | |
9827 | { | |
9828 | { eval $1=; unset $1;} | |
9829 | } | |
9830 | as_unset=as_fn_unset | |
9831 | # as_fn_append VAR VALUE | |
9832 | # ---------------------- | |
9833 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
9834 | # advantage of any shell optimizations that allow amortized linear growth over | |
9835 | # repeated appends, instead of the typical quadratic growth present in naive | |
9836 | # implementations. | |
9837 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
9838 | eval 'as_fn_append () | |
9839 | { | |
9840 | eval $1+=\$2 | |
9841 | }' | |
9842 | else | |
9843 | as_fn_append () | |
9844 | { | |
9845 | eval $1=\$$1\$2 | |
9846 | } | |
9847 | fi # as_fn_append | |
9848 | ||
9849 | # as_fn_arith ARG... | |
9850 | # ------------------ | |
9851 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
9852 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
9853 | # must be portable across $(()) and expr. | |
9854 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
9855 | eval 'as_fn_arith () | |
9856 | { | |
9857 | as_val=$(( $* )) | |
9858 | }' | |
9859 | else | |
9860 | as_fn_arith () | |
9861 | { | |
9862 | as_val=`expr "$@" || test $? -eq 1` | |
9863 | } | |
9864 | fi # as_fn_arith | |
9865 | ||
212380e3 | 9866 | |
631ef239 AC |
9867 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9868 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
9869 | as_expr=expr |
9870 | else | |
9871 | as_expr=false | |
9872 | fi | |
9873 | ||
631ef239 | 9874 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
9875 | as_basename=basename |
9876 | else | |
9877 | as_basename=false | |
9878 | fi | |
9879 | ||
7083c021 AC |
9880 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
9881 | as_dirname=dirname | |
9882 | else | |
9883 | as_dirname=false | |
9884 | fi | |
212380e3 | 9885 | |
631ef239 | 9886 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
9887 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9888 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 9889 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 9890 | $as_echo X/"$0" | |
631ef239 AC |
9891 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9892 | s//\1/ | |
9893 | q | |
9894 | } | |
9895 | /^X\/\(\/\/\)$/{ | |
9896 | s//\1/ | |
9897 | q | |
9898 | } | |
9899 | /^X\/\(\/\).*/{ | |
9900 | s//\1/ | |
9901 | q | |
9902 | } | |
9903 | s/.*/./; q'` | |
212380e3 | 9904 | |
7083c021 AC |
9905 | # Avoid depending upon Character Ranges. |
9906 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9907 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9908 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9909 | as_cr_digits='0123456789' | |
9910 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
9911 | |
9912 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 9913 | case `echo -n x` in #((((( |
631ef239 | 9914 | -n*) |
7083c021 | 9915 | case `echo 'xy\c'` in |
631ef239 | 9916 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
9917 | xy) ECHO_C='\c';; |
9918 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
9919 | ECHO_T=' ';; | |
631ef239 AC |
9920 | esac;; |
9921 | *) | |
9922 | ECHO_N='-n';; | |
212380e3 AC |
9923 | esac |
9924 | ||
212380e3 | 9925 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
9926 | if test -d conf$$.dir; then |
9927 | rm -f conf$$.dir/conf$$.file | |
9928 | else | |
9929 | rm -f conf$$.dir | |
7083c021 AC |
9930 | mkdir conf$$.dir 2>/dev/null |
9931 | fi | |
9932 | if (echo >conf$$.file) 2>/dev/null; then | |
9933 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9934 | as_ln_s='ln -s' | |
9935 | # ... but there are two gotchas: | |
9936 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9937 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9938 | # In both cases, we have to default to `cp -p'. | |
9939 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9940 | as_ln_s='cp -p' | |
9941 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9942 | as_ln_s=ln | |
9943 | else | |
212380e3 | 9944 | as_ln_s='cp -p' |
7083c021 | 9945 | fi |
212380e3 AC |
9946 | else |
9947 | as_ln_s='cp -p' | |
9948 | fi | |
631ef239 AC |
9949 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9950 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 9951 | |
7083c021 AC |
9952 | |
9953 | # as_fn_mkdir_p | |
9954 | # ------------- | |
9955 | # Create "$as_dir" as a directory, including parents if necessary. | |
9956 | as_fn_mkdir_p () | |
9957 | { | |
9958 | ||
9959 | case $as_dir in #( | |
9960 | -*) as_dir=./$as_dir;; | |
9961 | esac | |
9962 | test -d "$as_dir" || eval $as_mkdir_p || { | |
9963 | as_dirs= | |
9964 | while :; do | |
9965 | case $as_dir in #( | |
9966 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
9967 | *) as_qdir=$as_dir;; | |
9968 | esac | |
9969 | as_dirs="'$as_qdir' $as_dirs" | |
9970 | as_dir=`$as_dirname -- "$as_dir" || | |
9971 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9972 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9973 | X"$as_dir" : 'X\(//\)$' \| \ | |
9974 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
9975 | $as_echo X"$as_dir" | | |
9976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9977 | s//\1/ | |
9978 | q | |
9979 | } | |
9980 | /^X\(\/\/\)[^/].*/{ | |
9981 | s//\1/ | |
9982 | q | |
9983 | } | |
9984 | /^X\(\/\/\)$/{ | |
9985 | s//\1/ | |
9986 | q | |
9987 | } | |
9988 | /^X\(\/\).*/{ | |
9989 | s//\1/ | |
9990 | q | |
9991 | } | |
9992 | s/.*/./; q'` | |
9993 | test -d "$as_dir" && break | |
9994 | done | |
9995 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 9996 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
9997 | |
9998 | ||
9999 | } # as_fn_mkdir_p | |
212380e3 | 10000 | if mkdir -p . 2>/dev/null; then |
7083c021 | 10001 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
10002 | else |
10003 | test -d ./-p && rmdir ./-p | |
10004 | as_mkdir_p=false | |
10005 | fi | |
10006 | ||
631ef239 AC |
10007 | if test -x / >/dev/null 2>&1; then |
10008 | as_test_x='test -x' | |
10009 | else | |
10010 | if ls -dL / >/dev/null 2>&1; then | |
10011 | as_ls_L_option=L | |
10012 | else | |
10013 | as_ls_L_option= | |
10014 | fi | |
10015 | as_test_x=' | |
10016 | eval sh -c '\'' | |
10017 | if test -d "$1"; then | |
7083c021 | 10018 | test -d "$1/."; |
631ef239 | 10019 | else |
7083c021 AC |
10020 | case $1 in #( |
10021 | -*)set "./$1";; | |
631ef239 | 10022 | esac; |
7083c021 | 10023 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
631ef239 AC |
10024 | ???[sx]*):;;*)false;;esac;fi |
10025 | '\'' sh | |
10026 | ' | |
10027 | fi | |
10028 | as_executable_p=$as_test_x | |
212380e3 AC |
10029 | |
10030 | # Sed expression to map a string onto a valid CPP name. | |
10031 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10032 | ||
10033 | # Sed expression to map a string onto a valid variable name. | |
10034 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10035 | ||
10036 | ||
212380e3 | 10037 | exec 6>&1 |
7083c021 AC |
10038 | ## ----------------------------------- ## |
10039 | ## Main body of $CONFIG_STATUS script. ## | |
10040 | ## ----------------------------------- ## | |
10041 | _ASEOF | |
10042 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 10043 | |
7083c021 AC |
10044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10045 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 10046 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
10047 | # values after options handling. |
10048 | ac_log=" | |
5a241f54 | 10049 | This file was extended by charybdis $as_me 3.3.0, which was |
b6d0720c | 10050 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 AC |
10051 | |
10052 | CONFIG_FILES = $CONFIG_FILES | |
10053 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10054 | CONFIG_LINKS = $CONFIG_LINKS | |
10055 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10056 | $ $0 $@ | |
10057 | ||
631ef239 AC |
10058 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10059 | " | |
10060 | ||
212380e3 AC |
10061 | _ACEOF |
10062 | ||
7083c021 AC |
10063 | case $ac_config_files in *" |
10064 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10065 | esac | |
10066 | ||
10067 | case $ac_config_headers in *" | |
10068 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10069 | esac | |
10070 | ||
10071 | ||
10072 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 10073 | # Files that config.status was made for. |
631ef239 AC |
10074 | config_files="$ac_config_files" |
10075 | config_headers="$ac_config_headers" | |
212380e3 | 10076 | |
631ef239 | 10077 | _ACEOF |
212380e3 | 10078 | |
7083c021 | 10079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10080 | ac_cs_usage="\ |
7083c021 AC |
10081 | \`$as_me' instantiates files and other configuration actions |
10082 | from templates according to the current configuration. Unless the files | |
10083 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 10084 | |
7083c021 | 10085 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
10086 | |
10087 | -h, --help print this help, then exit | |
631ef239 | 10088 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 10089 | --config print configuration, then exit |
7083c021 AC |
10090 | -q, --quiet, --silent |
10091 | do not print progress messages | |
212380e3 AC |
10092 | -d, --debug don't remove temporary files |
10093 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
10094 | --file=FILE[:TEMPLATE] |
10095 | instantiate the configuration file FILE | |
10096 | --header=FILE[:TEMPLATE] | |
10097 | instantiate the configuration header FILE | |
212380e3 AC |
10098 | |
10099 | Configuration files: | |
10100 | $config_files | |
10101 | ||
10102 | Configuration headers: | |
10103 | $config_headers | |
10104 | ||
7083c021 | 10105 | Report bugs to the package provider." |
212380e3 | 10106 | |
631ef239 | 10107 | _ACEOF |
7083c021 | 10108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 10109 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 10110 | ac_cs_version="\\ |
5a241f54 | 10111 | charybdis config.status 3.3.0 |
b6d0720c | 10112 | configured by $0, generated by GNU Autoconf 2.68, |
6fb6bd15 | 10113 | with options \\"\$ac_cs_config\\" |
212380e3 | 10114 | |
b6d0720c | 10115 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 AC |
10116 | This config.status script is free software; the Free Software Foundation |
10117 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
10118 | |
10119 | ac_pwd='$ac_pwd' | |
10120 | srcdir='$srcdir' | |
10121 | INSTALL='$INSTALL' | |
7083c021 | 10122 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
10123 | _ACEOF |
10124 | ||
7083c021 AC |
10125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10126 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
10127 | ac_need_defaults=: |
10128 | while test $# != 0 | |
10129 | do | |
10130 | case $1 in | |
b6d0720c | 10131 | --*=?*) |
631ef239 AC |
10132 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10133 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
10134 | ac_shift=: |
10135 | ;; | |
b6d0720c AC |
10136 | --*=) |
10137 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10138 | ac_optarg= | |
10139 | ac_shift=: | |
10140 | ;; | |
631ef239 | 10141 | *) |
212380e3 AC |
10142 | ac_option=$1 |
10143 | ac_optarg=$2 | |
10144 | ac_shift=shift | |
10145 | ;; | |
212380e3 AC |
10146 | esac |
10147 | ||
10148 | case $ac_option in | |
10149 | # Handling of the options. | |
212380e3 AC |
10150 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10151 | ac_cs_recheck=: ;; | |
631ef239 | 10152 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 10153 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
10154 | --config | --confi | --conf | --con | --co | --c ) |
10155 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 10156 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
10157 | debug=: ;; |
10158 | --file | --fil | --fi | --f ) | |
10159 | $ac_shift | |
7083c021 AC |
10160 | case $ac_optarg in |
10161 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 10162 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
10163 | esac |
10164 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
10165 | ac_need_defaults=false;; |
10166 | --header | --heade | --head | --hea ) | |
10167 | $ac_shift | |
7083c021 AC |
10168 | case $ac_optarg in |
10169 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10170 | esac | |
10171 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 10172 | ac_need_defaults=false;; |
631ef239 AC |
10173 | --he | --h) |
10174 | # Conflict between --help and --header | |
b6d0720c | 10175 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 10176 | Try \`$0 --help' for more information.";; |
631ef239 | 10177 | --help | --hel | -h ) |
7083c021 | 10178 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
10179 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10180 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10181 | ac_cs_silent=: ;; | |
10182 | ||
10183 | # This is an error. | |
b6d0720c | 10184 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 10185 | Try \`$0 --help' for more information." ;; |
212380e3 | 10186 | |
7083c021 | 10187 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 10188 | ac_need_defaults=false ;; |
212380e3 AC |
10189 | |
10190 | esac | |
10191 | shift | |
10192 | done | |
10193 | ||
10194 | ac_configure_extra_args= | |
10195 | ||
10196 | if $ac_cs_silent; then | |
10197 | exec 6>/dev/null | |
10198 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10199 | fi | |
10200 | ||
10201 | _ACEOF | |
7083c021 | 10202 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 10203 | if \$ac_cs_recheck; then |
7083c021 AC |
10204 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10205 | shift | |
10206 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10207 | CONFIG_SHELL='$SHELL' | |
631ef239 | 10208 | export CONFIG_SHELL |
7083c021 | 10209 | exec "\$@" |
212380e3 AC |
10210 | fi |
10211 | ||
10212 | _ACEOF | |
7083c021 | 10213 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10214 | exec 5>>config.log |
10215 | { | |
10216 | echo | |
10217 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10218 | ## Running $as_me. ## | |
10219 | _ASBOX | |
7083c021 | 10220 | $as_echo "$ac_log" |
631ef239 | 10221 | } >&5 |
212380e3 | 10222 | |
631ef239 | 10223 | _ACEOF |
7083c021 | 10224 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10225 | _ACEOF |
212380e3 | 10226 | |
7083c021 | 10227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10228 | |
10229 | # Handling of arguments. | |
212380e3 AC |
10230 | for ac_config_target in $ac_config_targets |
10231 | do | |
631ef239 AC |
10232 | case $ac_config_target in |
10233 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
10234 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7083c021 | 10235 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 10236 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 10237 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
631ef239 AC |
10238 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
10239 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
10240 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
10241 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
10242 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
10243 | ||
b6d0720c | 10244 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
10245 | esac |
10246 | done | |
10247 | ||
631ef239 | 10248 | |
212380e3 AC |
10249 | # If the user did not use the arguments to specify the items to instantiate, |
10250 | # then the envvar interface is used. Set only those that are not. | |
10251 | # We use the long form for the default assignment because of an extremely | |
10252 | # bizarre bug on SunOS 4.1.3. | |
10253 | if $ac_need_defaults; then | |
10254 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10255 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10256 | fi | |
10257 | ||
10258 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 10259 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 10260 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
10261 | # Hook for its removal unless debugging. |
10262 | # Note that there is a small window in which the directory will not be cleaned: | |
10263 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
10264 | $debug || |
10265 | { | |
b6d0720c | 10266 | tmp= ac_tmp= |
631ef239 | 10267 | trap 'exit_status=$? |
b6d0720c AC |
10268 | : "${ac_tmp:=$tmp}" |
10269 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 10270 | ' 0 |
7083c021 | 10271 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 10272 | } |
212380e3 AC |
10273 | # Create a (secure) tmp directory for tmp files. |
10274 | ||
10275 | { | |
631ef239 | 10276 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 10277 | test -d "$tmp" |
212380e3 AC |
10278 | } || |
10279 | { | |
631ef239 AC |
10280 | tmp=./conf$$-$RANDOM |
10281 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
10282 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10283 | ac_tmp=$tmp | |
212380e3 | 10284 | |
7083c021 AC |
10285 | # Set up the scripts for CONFIG_FILES section. |
10286 | # No need to generate them if there are no CONFIG_FILES. | |
10287 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
10288 | if test -n "$CONFIG_FILES"; then |
10289 | ||
631ef239 | 10290 | |
7083c021 AC |
10291 | ac_cr=`echo X | tr X '\015'` |
10292 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10293 | # But we know of no other shell where ac_cr would be empty at this | |
10294 | # point, so we can use a bashism as a fallback. | |
10295 | if test "x$ac_cr" = x; then | |
10296 | eval ac_cr=\$\'\\r\' | |
10297 | fi | |
10298 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10299 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 10300 | ac_cs_awk_cr='\\r' |
7083c021 AC |
10301 | else |
10302 | ac_cs_awk_cr=$ac_cr | |
10303 | fi | |
10304 | ||
b6d0720c | 10305 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 10306 | _ACEOF |
631ef239 AC |
10307 | |
10308 | ||
7083c021 AC |
10309 | { |
10310 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10311 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10312 | echo "_ACEOF" | |
10313 | } >conf$$subs.sh || | |
b6d0720c AC |
10314 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10315 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
10316 | ac_delim='%!_!# ' |
10317 | for ac_last_try in false false false false false :; do | |
7083c021 | 10318 | . ./conf$$subs.sh || |
b6d0720c | 10319 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
10320 | |
10321 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10322 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
10323 | break |
10324 | elif $ac_last_try; then | |
b6d0720c | 10325 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
10326 | else |
10327 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 10328 | fi |
631ef239 | 10329 | done |
7083c021 AC |
10330 | rm -f conf$$subs.sh |
10331 | ||
10332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 10333 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
10334 | _ACEOF |
10335 | sed -n ' | |
10336 | h | |
10337 | s/^/S["/; s/!.*/"]=/ | |
10338 | p | |
10339 | g | |
10340 | s/^[^!]*!// | |
10341 | :repl | |
10342 | t repl | |
10343 | s/'"$ac_delim"'$// | |
10344 | t delim | |
10345 | :nl | |
10346 | h | |
6fb6bd15 | 10347 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10348 | t more1 |
10349 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10350 | p | |
10351 | n | |
10352 | b repl | |
10353 | :more1 | |
10354 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10355 | p | |
10356 | g | |
10357 | s/.\{148\}// | |
10358 | t nl | |
10359 | :delim | |
10360 | h | |
6fb6bd15 | 10361 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10362 | t more2 |
10363 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10364 | p | |
10365 | b | |
10366 | :more2 | |
10367 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10368 | p | |
10369 | g | |
10370 | s/.\{148\}// | |
10371 | t delim | |
10372 | ' <conf$$subs.awk | sed ' | |
10373 | /^[^""]/{ | |
10374 | N | |
10375 | s/\n// | |
10376 | } | |
10377 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10378 | rm -f conf$$subs.awk | |
10379 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10380 | _ACAWK | |
b6d0720c | 10381 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
10382 | for (key in S) S_is_set[key] = 1 |
10383 | FS = "\a" | |
212380e3 | 10384 | |
7083c021 AC |
10385 | } |
10386 | { | |
10387 | line = $ 0 | |
10388 | nfields = split(line, field, "@") | |
10389 | substed = 0 | |
10390 | len = length(field[1]) | |
10391 | for (i = 2; i < nfields; i++) { | |
10392 | key = field[i] | |
10393 | keylen = length(key) | |
10394 | if (S_is_set[key]) { | |
10395 | value = S[key] | |
10396 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10397 | len += length(value) + length(field[++i]) | |
10398 | substed = 1 | |
10399 | } else | |
10400 | len += 1 + keylen | |
10401 | } | |
631ef239 | 10402 | |
7083c021 AC |
10403 | print line |
10404 | } | |
10405 | ||
10406 | _ACAWK | |
631ef239 | 10407 | _ACEOF |
7083c021 AC |
10408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10409 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10410 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10411 | else | |
10412 | cat | |
b6d0720c AC |
10413 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10414 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 10415 | _ACEOF |
631ef239 | 10416 | |
b6d0720c AC |
10417 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10418 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
10419 | # trailing colons and then remove the whole line if VPATH becomes empty |
10420 | # (actually we leave an empty line to preserve line numbers). | |
10421 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
10422 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10423 | h | |
10424 | s/// | |
10425 | s/^/:/ | |
10426 | s/[ ]*$/:/ | |
10427 | s/:\$(srcdir):/:/g | |
10428 | s/:\${srcdir}:/:/g | |
10429 | s/:@srcdir@:/:/g | |
10430 | s/^:*// | |
631ef239 | 10431 | s/:*$// |
b6d0720c AC |
10432 | x |
10433 | s/\(=[ ]*\).*/\1/ | |
10434 | G | |
10435 | s/\n// | |
631ef239 AC |
10436 | s/^[^=]*=[ ]*$// |
10437 | }' | |
10438 | fi | |
10439 | ||
7083c021 | 10440 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10441 | fi # test -n "$CONFIG_FILES" |
10442 | ||
7083c021 AC |
10443 | # Set up the scripts for CONFIG_HEADERS section. |
10444 | # No need to generate them if there are no CONFIG_HEADERS. | |
10445 | # This happens for instance with `./config.status Makefile'. | |
10446 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 10447 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
10448 | BEGIN { |
10449 | _ACEOF | |
10450 | ||
10451 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10452 | # here-document in config.status, that substitutes the proper values into | |
10453 | # config.h.in to produce config.h. | |
10454 | ||
10455 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10456 | # handling of long lines. | |
10457 | ac_delim='%!_!# ' | |
10458 | for ac_last_try in false false :; do | |
b6d0720c AC |
10459 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10460 | if test -z "$ac_tt"; then | |
7083c021 AC |
10461 | break |
10462 | elif $ac_last_try; then | |
b6d0720c | 10463 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
10464 | else |
10465 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10466 | fi | |
10467 | done | |
10468 | ||
10469 | # For the awk script, D is an array of macro values keyed by name, | |
10470 | # likewise P contains macro parameters if any. Preserve backslash | |
10471 | # newline sequences. | |
10472 | ||
10473 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10474 | sed -n ' | |
10475 | s/.\{148\}/&'"$ac_delim"'/g | |
10476 | t rset | |
10477 | :rset | |
10478 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10479 | t def | |
10480 | d | |
10481 | :def | |
10482 | s/\\$// | |
10483 | t bsnl | |
10484 | s/["\\]/\\&/g | |
10485 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10486 | D["\1"]=" \3"/p | |
10487 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10488 | d | |
10489 | :bsnl | |
10490 | s/["\\]/\\&/g | |
10491 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10492 | D["\1"]=" \3\\\\\\n"\\/p | |
10493 | t cont | |
10494 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10495 | t cont | |
10496 | d | |
10497 | :cont | |
10498 | n | |
10499 | s/.\{148\}/&'"$ac_delim"'/g | |
10500 | t clear | |
10501 | :clear | |
10502 | s/\\$// | |
10503 | t bsnlc | |
10504 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10505 | d | |
10506 | :bsnlc | |
10507 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10508 | b cont | |
10509 | ' <confdefs.h | sed ' | |
10510 | s/'"$ac_delim"'/"\\\ | |
10511 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10512 | ||
10513 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10514 | for (key in D) D_is_set[key] = 1 | |
10515 | FS = "\a" | |
10516 | } | |
10517 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10518 | line = \$ 0 | |
10519 | split(line, arg, " ") | |
10520 | if (arg[1] == "#") { | |
10521 | defundef = arg[2] | |
10522 | mac1 = arg[3] | |
10523 | } else { | |
10524 | defundef = substr(arg[1], 2) | |
10525 | mac1 = arg[2] | |
10526 | } | |
10527 | split(mac1, mac2, "(") #) | |
10528 | macro = mac2[1] | |
10529 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10530 | if (D_is_set[macro]) { | |
10531 | # Preserve the white space surrounding the "#". | |
10532 | print prefix "define", macro P[macro] D[macro] | |
10533 | next | |
10534 | } else { | |
10535 | # Replace #undef with comments. This is necessary, for example, | |
10536 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10537 | # on some systems where configure will not decide to define it. | |
10538 | if (defundef == "undef") { | |
10539 | print "/*", prefix defundef, macro, "*/" | |
10540 | next | |
10541 | } | |
10542 | } | |
10543 | } | |
10544 | { print } | |
10545 | _ACAWK | |
10546 | _ACEOF | |
10547 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 10548 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
10549 | fi # test -n "$CONFIG_HEADERS" |
10550 | ||
631ef239 | 10551 | |
7083c021 AC |
10552 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
10553 | shift | |
10554 | for ac_tag | |
631ef239 AC |
10555 | do |
10556 | case $ac_tag in | |
10557 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10558 | esac | |
10559 | case $ac_mode$ac_tag in | |
10560 | :[FHL]*:*);; | |
b6d0720c | 10561 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
10562 | :[FH]-) ac_tag=-:-;; |
10563 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 10564 | esac |
631ef239 AC |
10565 | ac_save_IFS=$IFS |
10566 | IFS=: | |
10567 | set x $ac_tag | |
10568 | IFS=$ac_save_IFS | |
10569 | shift | |
10570 | ac_file=$1 | |
10571 | shift | |
212380e3 | 10572 | |
631ef239 AC |
10573 | case $ac_mode in |
10574 | :L) ac_source=$1;; | |
10575 | :[FH]) | |
10576 | ac_file_inputs= | |
10577 | for ac_f | |
10578 | do | |
10579 | case $ac_f in | |
b6d0720c | 10580 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
10581 | *) # Look for the file first in the build tree, then in the source tree |
10582 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10583 | # because $ac_f cannot contain `:'. | |
10584 | test -f "$ac_f" || | |
10585 | case $ac_f in | |
10586 | [\\/$]*) false;; | |
10587 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10588 | esac || | |
b6d0720c | 10589 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 10590 | esac |
7083c021 AC |
10591 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10592 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
10593 | done |
10594 | ||
10595 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10596 | # use $as_me), people would be surprised to read: | |
10597 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
10598 | configure_input='Generated from '` |
10599 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10600 | `' by configure.' | |
631ef239 AC |
10601 | if test x"$ac_file" != x-; then |
10602 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10604 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 10605 | fi |
7083c021 AC |
10606 | # Neutralize special characters interpreted by sed in replacement strings. |
10607 | case $configure_input in #( | |
10608 | *\&* | *\|* | *\\* ) | |
10609 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10610 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10611 | *) ac_sed_conf_input=$configure_input;; | |
10612 | esac | |
631ef239 AC |
10613 | |
10614 | case $ac_tag in | |
b6d0720c AC |
10615 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10616 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
10617 | esac |
10618 | ;; | |
10619 | esac | |
10620 | ||
10621 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
10622 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10623 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10624 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 10625 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10626 | $as_echo X"$ac_file" | |
631ef239 AC |
10627 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10628 | s//\1/ | |
10629 | q | |
10630 | } | |
10631 | /^X\(\/\/\)[^/].*/{ | |
10632 | s//\1/ | |
10633 | q | |
10634 | } | |
10635 | /^X\(\/\/\)$/{ | |
10636 | s//\1/ | |
10637 | q | |
10638 | } | |
10639 | /^X\(\/\).*/{ | |
10640 | s//\1/ | |
10641 | q | |
10642 | } | |
10643 | s/.*/./; q'` | |
7083c021 | 10644 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
10645 | ac_builddir=. |
10646 | ||
631ef239 AC |
10647 | case "$ac_dir" in |
10648 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10649 | *) | |
7083c021 | 10650 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 10651 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 10652 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
10653 | case $ac_top_builddir_sub in |
10654 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10655 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10656 | esac ;; | |
10657 | esac | |
10658 | ac_abs_top_builddir=$ac_pwd | |
10659 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10660 | # for backward compatibility: | |
10661 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
10662 | |
10663 | case $srcdir in | |
631ef239 | 10664 | .) # We are building in place. |
212380e3 | 10665 | ac_srcdir=. |
631ef239 AC |
10666 | ac_top_srcdir=$ac_top_builddir_sub |
10667 | ac_abs_top_srcdir=$ac_pwd ;; | |
10668 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 10669 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
10670 | ac_top_srcdir=$srcdir |
10671 | ac_abs_top_srcdir=$srcdir ;; | |
10672 | *) # Relative name. | |
10673 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10674 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10675 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 10676 | esac |
631ef239 | 10677 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 10678 | |
212380e3 | 10679 | |
631ef239 AC |
10680 | case $ac_mode in |
10681 | :F) | |
10682 | # | |
10683 | # CONFIG_FILE | |
10684 | # | |
212380e3 AC |
10685 | |
10686 | case $INSTALL in | |
10687 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 10688 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 10689 | esac |
631ef239 | 10690 | _ACEOF |
212380e3 | 10691 | |
7083c021 | 10692 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10693 | # If the template does not know about datarootdir, expand it. |
10694 | # FIXME: This hack should be removed a few years after 2.60. | |
10695 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
10696 | ac_sed_dataroot=' |
10697 | /datarootdir/ { | |
631ef239 AC |
10698 | p |
10699 | q | |
10700 | } | |
10701 | /@datadir@/p | |
10702 | /@docdir@/p | |
10703 | /@infodir@/p | |
10704 | /@localedir@/p | |
7083c021 AC |
10705 | /@mandir@/p' |
10706 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
10707 | *datarootdir*) ac_datarootdir_seen=yes;; |
10708 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10710 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 10711 | _ACEOF |
7083c021 | 10712 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
10713 | ac_datarootdir_hack=' |
10714 | s&@datadir@&$datadir&g | |
10715 | s&@docdir@&$docdir&g | |
10716 | s&@infodir@&$infodir&g | |
10717 | s&@localedir@&$localedir&g | |
10718 | s&@mandir@&$mandir&g | |
7083c021 | 10719 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 10720 | esac |
212380e3 | 10721 | _ACEOF |
631ef239 AC |
10722 | |
10723 | # Neutralize VPATH when `$srcdir' = `.'. | |
10724 | # Shell code in configure.ac might set extrasub. | |
10725 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
10726 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10727 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
10728 | $extrasub |
10729 | _ACEOF | |
7083c021 | 10730 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
10731 | :t |
10732 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 10733 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 10734 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 10735 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
10736 | s&@srcdir@&$ac_srcdir&;t t |
10737 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10738 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10739 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10740 | s&@builddir@&$ac_builddir&;t t | |
10741 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10742 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10743 | s&@INSTALL@&$ac_INSTALL&;t t | |
10744 | $ac_datarootdir_hack | |
7083c021 | 10745 | " |
b6d0720c AC |
10746 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
10747 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
10748 | |
10749 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
10750 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
10751 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
10752 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 10754 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 10755 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 10756 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 10757 | |
b6d0720c | 10758 | rm -f "$ac_tmp/stdin" |
212380e3 | 10759 | case $ac_file in |
b6d0720c AC |
10760 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10761 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 10762 | esac \ |
b6d0720c | 10763 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
10764 | ;; |
10765 | :H) | |
10766 | # | |
10767 | # CONFIG_HEADER | |
10768 | # | |
212380e3 | 10769 | if test x"$ac_file" != x-; then |
7083c021 AC |
10770 | { |
10771 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
10772 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10773 | } >"$ac_tmp/config.h" \ | |
10774 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10775 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
10777 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 10778 | else |
7083c021 | 10779 | rm -f "$ac_file" |
b6d0720c AC |
10780 | mv "$ac_tmp/config.h" "$ac_file" \ |
10781 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
10782 | fi |
10783 | else | |
7083c021 | 10784 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
10785 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
10786 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 10787 | fi |
631ef239 AC |
10788 | ;; |
10789 | ||
10790 | ||
10791 | esac | |
10792 | ||
10793 | done # for ac_tag | |
212380e3 | 10794 | |
212380e3 | 10795 | |
7083c021 | 10796 | as_fn_exit 0 |
212380e3 | 10797 | _ACEOF |
212380e3 AC |
10798 | ac_clean_files=$ac_clean_files_save |
10799 | ||
7083c021 | 10800 | test $ac_write_fail = 0 || |
b6d0720c | 10801 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 10802 | |
212380e3 AC |
10803 | |
10804 | # configure is writing to config.log, and then calls config.status. | |
10805 | # config.status does its own redirection, appending to config.log. | |
10806 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10807 | # by configure, so config.status won't be able to write to it; its | |
10808 | # output is simply discarded. So we exec the FD to /dev/null, | |
10809 | # effectively closing config.log, so it can be properly (re)opened and | |
10810 | # appended to by config.status. When coming back to configure, we | |
10811 | # need to make the FD available again. | |
10812 | if test "$no_create" != yes; then | |
10813 | ac_cs_success=: | |
10814 | ac_config_status_args= | |
10815 | test "$silent" = yes && | |
10816 | ac_config_status_args="$ac_config_status_args --quiet" | |
10817 | exec 5>/dev/null | |
10818 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10819 | exec 5>>config.log | |
10820 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10821 | # would make configure fail if this is the last instruction. | |
b6d0720c | 10822 | $ac_cs_success || as_fn_exit 1 |
212380e3 AC |
10823 | fi |
10824 | ||
b676ea3b AC |
10825 | # |
10826 | # CONFIG_SUBDIRS section. | |
10827 | # | |
10828 | if test "$no_recursion" != yes; then | |
10829 | ||
7083c021 AC |
10830 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10831 | # so they do not pile up. | |
b676ea3b AC |
10832 | ac_sub_configure_args= |
10833 | ac_prev= | |
10834 | eval "set x $ac_configure_args" | |
10835 | shift | |
10836 | for ac_arg | |
10837 | do | |
10838 | if test -n "$ac_prev"; then | |
10839 | ac_prev= | |
10840 | continue | |
10841 | fi | |
10842 | case $ac_arg in | |
10843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10845 | ac_prev=cache_file ;; | |
10846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10848 | | --c=*) | |
10849 | ;; | |
10850 | --config-cache | -C) | |
10851 | ;; | |
10852 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10853 | ac_prev=srcdir ;; | |
10854 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10855 | ;; | |
10856 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10857 | ac_prev=prefix ;; | |
10858 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10859 | ;; | |
7083c021 AC |
10860 | --disable-option-checking) |
10861 | ;; | |
b676ea3b AC |
10862 | *) |
10863 | case $ac_arg in | |
7083c021 | 10864 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b676ea3b | 10865 | esac |
7083c021 | 10866 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
b676ea3b AC |
10867 | esac |
10868 | done | |
10869 | ||
10870 | # Always prepend --prefix to ensure using the same prefix | |
10871 | # in subdir configurations. | |
10872 | ac_arg="--prefix=$prefix" | |
10873 | case $ac_arg in | |
7083c021 | 10874 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b676ea3b AC |
10875 | esac |
10876 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10877 | ||
10878 | # Pass --silent | |
10879 | if test "$silent" = yes; then | |
10880 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10881 | fi | |
10882 | ||
7083c021 AC |
10883 | # Always prepend --disable-option-checking to silence warnings, since |
10884 | # different subdirs can have different --enable and --with options. | |
10885 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
10886 | ||
b676ea3b AC |
10887 | ac_popdir=`pwd` |
10888 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
10889 | ||
10890 | # Do not complain, so a configure script can configure whichever | |
10891 | # parts of a large source tree are present. | |
10892 | test -d "$srcdir/$ac_dir" || continue | |
10893 | ||
10894 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
7083c021 AC |
10895 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
10896 | $as_echo "$ac_msg" >&6 | |
10897 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b676ea3b AC |
10898 | ac_builddir=. |
10899 | ||
10900 | case "$ac_dir" in | |
10901 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10902 | *) | |
7083c021 | 10903 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
b676ea3b | 10904 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 10905 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
b676ea3b AC |
10906 | case $ac_top_builddir_sub in |
10907 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10908 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10909 | esac ;; | |
10910 | esac | |
10911 | ac_abs_top_builddir=$ac_pwd | |
10912 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10913 | # for backward compatibility: | |
10914 | ac_top_builddir=$ac_top_build_prefix | |
10915 | ||
10916 | case $srcdir in | |
10917 | .) # We are building in place. | |
10918 | ac_srcdir=. | |
10919 | ac_top_srcdir=$ac_top_builddir_sub | |
10920 | ac_abs_top_srcdir=$ac_pwd ;; | |
10921 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10922 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10923 | ac_top_srcdir=$srcdir | |
10924 | ac_abs_top_srcdir=$srcdir ;; | |
10925 | *) # Relative name. | |
10926 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10927 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10928 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10929 | esac | |
10930 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10931 | ||
10932 | ||
10933 | cd "$ac_dir" | |
10934 | ||
10935 | # Check for guested configure; otherwise get Cygnus style configure. | |
10936 | if test -f "$ac_srcdir/configure.gnu"; then | |
10937 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10938 | elif test -f "$ac_srcdir/configure"; then | |
10939 | ac_sub_configure=$ac_srcdir/configure | |
10940 | elif test -f "$ac_srcdir/configure.in"; then | |
10941 | # This should be Cygnus configure. | |
10942 | ac_sub_configure=$ac_aux_dir/configure | |
10943 | else | |
7083c021 AC |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
10945 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
b676ea3b AC |
10946 | ac_sub_configure= |
10947 | fi | |
10948 | ||
10949 | # The recursion is here. | |
10950 | if test -n "$ac_sub_configure"; then | |
10951 | # Make the cache file name correct relative to the subdirectory. | |
10952 | case $cache_file in | |
10953 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
10954 | *) # Relative name. | |
10955 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
10956 | esac | |
10957 | ||
7083c021 AC |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
10959 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
b676ea3b AC |
10960 | # The eval makes quoting arguments work. |
10961 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
10962 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
b6d0720c | 10963 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
b676ea3b AC |
10964 | fi |
10965 | ||
10966 | cd "$ac_popdir" | |
10967 | done | |
10968 | fi | |
7083c021 AC |
10969 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
10971 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
10972 | fi | |
b676ea3b | 10973 | |
212380e3 AC |
10974 | |
10975 | if test "$cf_openssl_version_ok" = yes; then | |
10976 | openssl="yes" | |
10977 | else | |
10978 | openssl="no" | |
10979 | fi | |
10980 | ||
10981 | if test "$shared_modules" = yes; then | |
10982 | modules=shared | |
10983 | else | |
10984 | modules=static | |
10985 | fi | |
10986 | ||
10987 | echo " | |
b6d0720c | 10988 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
10989 | Install directory : $prefix |
10990 | ||
10991 | Ziplinks : $zlib | |
10992 | OpenSSL : $openssl | |
212380e3 AC |
10993 | Socket Engine : $SELECT_TYPE |
10994 | Small network : $small_net | |
10995 | Block allocator : $balloc | |
212380e3 AC |
10996 | |
10997 | Nickname length : $NICKLEN | |
10998 | Topic length : $TOPICLEN | |
10999 | ||
b6d0720c | 11000 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 11001 | " |