]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1ce62709 | 3 | # Generated by GNU Autoconf 2.69 for charybdis 3.5.0. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
6fb6bd15 | 7 | # |
2eff3833 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6fb6bd15 | 9 | # |
7083c021 | 10 | # |
212380e3 AC |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
212380e3 | 16 | |
631ef239 AC |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
20 | emulate sh |
21 | NULLCMD=: | |
7083c021 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
25 | setopt NO_GLOB_SUBST |
26 | else | |
7083c021 AC |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
631ef239 | 32 | esac |
631ef239 AC |
33 | fi |
34 | ||
35 | ||
7083c021 AC |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 56 | else |
7083c021 AC |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 69 | fi |
7083c021 AC |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 72 | fi |
212380e3 | 73 | |
7083c021 AC |
74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
212380e3 AC |
81 | fi |
82 | ||
83 | ||
631ef239 AC |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 92 | as_myself= |
7083c021 | 93 | case $0 in #(( |
631ef239 AC |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
631ef239 AC |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
7083c021 AC |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | |
631ef239 AC |
114 | fi |
115 | ||
7083c021 AC |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 123 | done |
212380e3 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
7083c021 AC |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
2eff3833 JT |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
7083c021 AC |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
2eff3833 JT |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
7083c021 AC |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212380e3 | 213 | do |
7083c021 AC |
214 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
2eff3833 JT |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
7083c021 AC |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
212380e3 | 268 | else |
7083c021 AC |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
270 | $0: including any error possibly output before this | |
271 | $0: message. Then install a modern shell, or manually run | |
272 | $0: the script under such a shell if you do have one." | |
212380e3 | 273 | fi |
7083c021 AC |
274 | exit 1 |
275 | fi | |
276 | fi | |
277 | fi | |
278 | SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | export SHELL | |
280 | # Unset more variables known to interfere with behavior of common tools. | |
281 | CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | ||
284 | ## --------------------- ## | |
285 | ## M4sh Shell Functions. ## | |
286 | ## --------------------- ## | |
287 | # as_fn_unset VAR | |
288 | # --------------- | |
289 | # Portably unset VAR. | |
290 | as_fn_unset () | |
291 | { | |
292 | { eval $1=; unset $1;} | |
293 | } | |
294 | as_unset=as_fn_unset | |
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | ||
314 | # as_fn_mkdir_p | |
315 | # ------------- | |
316 | # Create "$as_dir" as a directory, including parents if necessary. | |
317 | as_fn_mkdir_p () | |
318 | { | |
319 | ||
320 | case $as_dir in #( | |
321 | -*) as_dir=./$as_dir;; | |
322 | esac | |
323 | test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | as_dirs= | |
325 | while :; do | |
326 | case $as_dir in #( | |
327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | *) as_qdir=$as_dir;; | |
329 | esac | |
330 | as_dirs="'$as_qdir' $as_dirs" | |
331 | as_dir=`$as_dirname -- "$as_dir" || | |
332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | X"$as_dir" : 'X\(//\)$' \| \ | |
335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | $as_echo X"$as_dir" | | |
337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | s//\1/ | |
339 | q | |
340 | } | |
341 | /^X\(\/\/\)[^/].*/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\).*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | s/.*/./; q'` | |
354 | test -d "$as_dir" && break | |
355 | done | |
356 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
358 | |
359 | ||
360 | } # as_fn_mkdir_p | |
2eff3833 JT |
361 | |
362 | # as_fn_executable_p FILE | |
363 | # ----------------------- | |
364 | # Test if FILE is an executable regular file. | |
365 | as_fn_executable_p () | |
366 | { | |
367 | test -f "$1" && test -x "$1" | |
368 | } # as_fn_executable_p | |
7083c021 AC |
369 | # as_fn_append VAR VALUE |
370 | # ---------------------- | |
371 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | # advantage of any shell optimizations that allow amortized linear growth over | |
373 | # repeated appends, instead of the typical quadratic growth present in naive | |
374 | # implementations. | |
375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | eval 'as_fn_append () | |
377 | { | |
378 | eval $1+=\$2 | |
379 | }' | |
380 | else | |
381 | as_fn_append () | |
382 | { | |
383 | eval $1=\$$1\$2 | |
384 | } | |
385 | fi # as_fn_append | |
386 | ||
387 | # as_fn_arith ARG... | |
388 | # ------------------ | |
389 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | # must be portable across $(()) and expr. | |
392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | eval 'as_fn_arith () | |
394 | { | |
395 | as_val=$(( $* )) | |
396 | }' | |
397 | else | |
398 | as_fn_arith () | |
399 | { | |
400 | as_val=`expr "$@" || test $? -eq 1` | |
401 | } | |
402 | fi # as_fn_arith | |
403 | ||
404 | ||
b6d0720c AC |
405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
406 | # ---------------------------------------- | |
7083c021 AC |
407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 409 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
410 | as_fn_error () |
411 | { | |
b6d0720c AC |
412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
413 | if test "$4"; then | |
414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 416 | fi |
b6d0720c | 417 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
418 | as_fn_exit $as_status |
419 | } # as_fn_error | |
212380e3 | 420 | |
631ef239 AC |
421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
423 | as_expr=expr |
424 | else | |
425 | as_expr=false | |
426 | fi | |
427 | ||
631ef239 | 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
429 | as_basename=basename |
430 | else | |
431 | as_basename=false | |
432 | fi | |
433 | ||
7083c021 AC |
434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
435 | as_dirname=dirname | |
436 | else | |
437 | as_dirname=false | |
438 | fi | |
212380e3 | 439 | |
631ef239 | 440 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
442 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 444 | $as_echo X/"$0" | |
631ef239 AC |
445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
446 | s//\1/ | |
447 | q | |
448 | } | |
449 | /^X\/\(\/\/\)$/{ | |
450 | s//\1/ | |
451 | q | |
452 | } | |
453 | /^X\/\(\/\).*/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | s/.*/./; q'` | |
212380e3 | 458 | |
7083c021 AC |
459 | # Avoid depending upon Character Ranges. |
460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | as_cr_digits='0123456789' | |
464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
212380e3 | 465 | |
212380e3 | 466 | |
7083c021 AC |
467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | sed -n ' | |
473 | p | |
474 | /[$]LINENO/= | |
475 | ' <$as_myself | | |
476 | sed ' | |
477 | s/[$]LINENO.*/&-/ | |
478 | t lineno | |
479 | b | |
480 | :lineno | |
481 | N | |
482 | :loop | |
483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | t loop | |
485 | s/-\n.*// | |
486 | ' >$as_me.lineno && | |
487 | chmod +x "$as_me.lineno" || | |
488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
212380e3 | 489 | |
2eff3833 JT |
490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
491 | # already done that, so ensure we don't try to do so again and fall | |
492 | # in an infinite loop. This has already happened in practice. | |
493 | _as_can_reexec=no; export _as_can_reexec | |
7083c021 AC |
494 | # Don't try to exec as it changes $[0], causing all sort of problems |
495 | # (the dirname of $[0] is not the place where we might find the | |
496 | # original and so on. Autoconf is especially sensitive to this). | |
497 | . "./$as_me.lineno" | |
498 | # Exit status is that of the last command. | |
499 | exit | |
631ef239 | 500 | } |
212380e3 | 501 | |
7083c021 AC |
502 | ECHO_C= ECHO_N= ECHO_T= |
503 | case `echo -n x` in #((((( | |
504 | -n*) | |
505 | case `echo 'xy\c'` in | |
506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | xy) ECHO_C='\c';; | |
508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | ECHO_T=' ';; | |
510 | esac;; | |
511 | *) | |
512 | ECHO_N='-n';; | |
513 | esac | |
631ef239 | 514 | |
7083c021 AC |
515 | rm -f conf$$ conf$$.exe conf$$.file |
516 | if test -d conf$$.dir; then | |
517 | rm -f conf$$.dir/conf$$.file | |
518 | else | |
519 | rm -f conf$$.dir | |
520 | mkdir conf$$.dir 2>/dev/null | |
521 | fi | |
522 | if (echo >conf$$.file) 2>/dev/null; then | |
523 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | as_ln_s='ln -s' | |
525 | # ... but there are two gotchas: | |
526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 528 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 530 | as_ln_s='cp -pR' |
7083c021 AC |
531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
532 | as_ln_s=ln | |
533 | else | |
2eff3833 | 534 | as_ln_s='cp -pR' |
7083c021 | 535 | fi |
631ef239 | 536 | else |
2eff3833 | 537 | as_ln_s='cp -pR' |
631ef239 | 538 | fi |
7083c021 AC |
539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
540 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 541 | |
7083c021 AC |
542 | if mkdir -p . 2>/dev/null; then |
543 | as_mkdir_p='mkdir -p "$as_dir"' | |
544 | else | |
545 | test -d ./-p && rmdir ./-p | |
546 | as_mkdir_p=false | |
631ef239 AC |
547 | fi |
548 | ||
2eff3833 JT |
549 | as_test_x='test -x' |
550 | as_executable_p=as_fn_executable_p | |
631ef239 | 551 | |
7083c021 AC |
552 | # Sed expression to map a string onto a valid CPP name. |
553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 554 | |
7083c021 AC |
555 | # Sed expression to map a string onto a valid variable name. |
556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 AC |
557 | |
558 | ||
6fb6bd15 AC |
559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
560 | exec 6>&1 | |
631ef239 | 561 | |
7083c021 | 562 | # Name of the host. |
b6d0720c | 563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
564 | # so uname gets run too. |
565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 566 | |
7083c021 AC |
567 | # |
568 | # Initializations. | |
569 | # | |
570 | ac_default_prefix=/usr/local | |
571 | ac_clean_files= | |
572 | ac_config_libobj_dir=. | |
573 | LIBOBJS= | |
574 | cross_compiling=no | |
575 | subdirs= | |
576 | MFLAGS= | |
577 | MAKEFLAGS= | |
212380e3 | 578 | |
212380e3 AC |
579 | # Identity of this package. |
580 | PACKAGE_NAME='charybdis' | |
581 | PACKAGE_TARNAME='charybdis' | |
1ce62709 AC |
582 | PACKAGE_VERSION='3.5.0' |
583 | PACKAGE_STRING='charybdis 3.5.0' | |
212380e3 | 584 | PACKAGE_BUGREPORT='' |
7083c021 | 585 | PACKAGE_URL='' |
212380e3 AC |
586 | |
587 | ac_default_prefix=$HOME/ircd | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
631ef239 | 591 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
592 | # include <sys/types.h> |
593 | #endif | |
631ef239 | 594 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
595 | # include <sys/stat.h> |
596 | #endif | |
631ef239 | 597 | #ifdef STDC_HEADERS |
212380e3 AC |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
631ef239 | 601 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
631ef239 AC |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
631ef239 | 611 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
612 | # include <strings.h> |
613 | #endif | |
631ef239 | 614 | #ifdef HAVE_INTTYPES_H |
212380e3 | 615 | # include <inttypes.h> |
212380e3 | 616 | #endif |
631ef239 AC |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
1db8e007 | 624 | enable_option_checking=no |
7083c021 | 625 | ac_subst_vars='LTLIBOBJS |
631ef239 | 626 | LIBOBJS |
7083c021 AC |
627 | SEDOBJ |
628 | IRC_CFLAGS | |
629 | PICFLAGS | |
630 | SSL_LIBS | |
631 | SSL_INCLUDES | |
632 | SSL_SRCS_ENABLE | |
633 | MOD_TARGET | |
634 | MODULES_LIBS | |
635 | SELECT_TYPE | |
9f9b7042 NPB |
636 | PROGRAM_PREFIX |
637 | PKGRUNDIR | |
7083c021 AC |
638 | moduledir |
639 | MODULE_DIR | |
640 | helpdir | |
641 | HELP_DIR | |
642 | logdir | |
643 | LOG_DIR | |
7083c021 | 644 | ETC_DIR |
74ab6be0 | 645 | SQLITE_SRC |
a5471f24 | 646 | SQLITE_INCLUDES |
497e30a0 | 647 | SQLITE_LD |
a5471f24 LS |
648 | SQLITE_LIBS |
649 | SQLITE_CFLAGS | |
650 | PKG_CONFIG_LIBDIR | |
651 | PKG_CONFIG_PATH | |
652 | PKG_CONFIG | |
7083c021 AC |
653 | ZLIB_LD |
654 | ENCSPEED | |
655 | ALLOCA | |
656 | VICONF | |
657 | CRYPT_LIB | |
9f9b7042 NPB |
658 | PKGLIBEXECDIR |
659 | pkglibexecdir | |
660 | PKGLOCALSTATEDIR | |
661 | pkglocalstatedir | |
662 | pkgrundir | |
663 | rundir | |
664 | pkglibdir | |
7083c021 AC |
665 | LEXLIB |
666 | LEX_OUTPUT_ROOT | |
667 | LEX | |
668 | YFLAGS | |
669 | YACC | |
670 | TOUCH | |
671 | RANLIB | |
672 | LD | |
673 | AR | |
674 | SED | |
675 | LN | |
676 | MV | |
677 | CP | |
678 | RM | |
679 | INSTALL_DATA | |
680 | INSTALL_SCRIPT | |
681 | INSTALL_PROGRAM | |
682 | SET_MAKE | |
683 | STDOUT | |
684 | MAKEDEPEND | |
685 | MKDEP | |
1db8e007 | 686 | subdirs |
7083c021 AC |
687 | EGREP |
688 | GREP | |
689 | CPP | |
690 | OBJEXT | |
691 | EXEEXT | |
692 | ac_ct_CC | |
693 | CPPFLAGS | |
694 | LDFLAGS | |
695 | CFLAGS | |
696 | CC | |
697 | target_alias | |
698 | host_alias | |
699 | build_alias | |
700 | LIBS | |
701 | ECHO_T | |
702 | ECHO_N | |
703 | ECHO_C | |
704 | DEFS | |
705 | mandir | |
706 | localedir | |
707 | libdir | |
708 | psdir | |
709 | pdfdir | |
710 | dvidir | |
711 | htmldir | |
712 | infodir | |
713 | docdir | |
714 | oldincludedir | |
715 | includedir | |
716 | localstatedir | |
717 | sharedstatedir | |
718 | sysconfdir | |
719 | datadir | |
720 | datarootdir | |
721 | libexecdir | |
722 | sbindir | |
723 | bindir | |
724 | program_transform_name | |
725 | prefix | |
726 | exec_prefix | |
727 | PACKAGE_URL | |
728 | PACKAGE_BUGREPORT | |
729 | PACKAGE_STRING | |
730 | PACKAGE_VERSION | |
731 | PACKAGE_TARNAME | |
732 | PACKAGE_NAME | |
733 | PATH_SEPARATOR | |
734 | SHELL' | |
212380e3 | 735 | ac_subst_files='' |
7083c021 AC |
736 | ac_user_opts=' |
737 | enable_option_checking | |
9f9b7042 | 738 | enable_fhs_paths |
7083c021 AC |
739 | enable_ipv6 |
740 | enable_openssl | |
741 | with_zlib_path | |
742 | enable_zlib | |
a6ef3156 | 743 | with_shared_sqlite |
7083c021 AC |
744 | enable_ports |
745 | enable_poll | |
746 | enable_select | |
747 | enable_kqueue | |
748 | enable_epoll | |
749 | with_confdir | |
750 | with_logdir | |
751 | with_helpdir | |
752 | with_moduledir | |
9f9b7042 NPB |
753 | with_rundir |
754 | with_program_prefix | |
b6d0720c AC |
755 | with_custom_branding |
756 | with_custom_version | |
7083c021 AC |
757 | enable_assert |
758 | enable_iodebug | |
759 | enable_profile | |
760 | enable_balloc | |
761 | enable_small_net | |
762 | with_nicklen | |
763 | with_topiclen | |
764 | enable_warnings | |
765 | ' | |
631ef239 AC |
766 | ac_precious_vars='build_alias |
767 | host_alias | |
768 | target_alias | |
769 | CC | |
770 | CFLAGS | |
771 | LDFLAGS | |
772 | LIBS | |
773 | CPPFLAGS | |
774 | CPP | |
775 | YACC | |
a5471f24 LS |
776 | YFLAGS |
777 | PKG_CONFIG | |
778 | PKG_CONFIG_PATH | |
779 | PKG_CONFIG_LIBDIR | |
780 | SQLITE_CFLAGS | |
781 | SQLITE_LIBS' | |
1db8e007 | 782 | ac_subdirs_all='libratbox' |
212380e3 AC |
783 | |
784 | # Initialize some variables set by options. | |
785 | ac_init_help= | |
786 | ac_init_version=false | |
7083c021 AC |
787 | ac_unrecognized_opts= |
788 | ac_unrecognized_sep= | |
212380e3 AC |
789 | # The variables have the same names as the options, with |
790 | # dashes changed to underlines. | |
791 | cache_file=/dev/null | |
792 | exec_prefix=NONE | |
793 | no_create= | |
794 | no_recursion= | |
795 | prefix=NONE | |
796 | program_prefix=NONE | |
797 | program_suffix=NONE | |
798 | program_transform_name=s,x,x, | |
799 | silent= | |
800 | site= | |
801 | srcdir= | |
802 | verbose= | |
803 | x_includes=NONE | |
804 | x_libraries=NONE | |
805 | ||
806 | # Installation directory options. | |
807 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
808 | # and all the variables that are supposed to be based on exec_prefix | |
809 | # by default will actually change. | |
810 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 811 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
812 | bindir='${exec_prefix}/bin' |
813 | sbindir='${exec_prefix}/sbin' | |
814 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
815 | datarootdir='${prefix}/share' |
816 | datadir='${datarootdir}' | |
212380e3 AC |
817 | sysconfdir='${prefix}/etc' |
818 | sharedstatedir='${prefix}/com' | |
819 | localstatedir='${prefix}/var' | |
212380e3 AC |
820 | includedir='${prefix}/include' |
821 | oldincludedir='/usr/include' | |
631ef239 AC |
822 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
823 | infodir='${datarootdir}/info' | |
824 | htmldir='${docdir}' | |
825 | dvidir='${docdir}' | |
826 | pdfdir='${docdir}' | |
827 | psdir='${docdir}' | |
828 | libdir='${exec_prefix}/lib' | |
829 | localedir='${datarootdir}/locale' | |
830 | mandir='${datarootdir}/man' | |
212380e3 AC |
831 | |
832 | ac_prev= | |
631ef239 | 833 | ac_dashdash= |
212380e3 AC |
834 | for ac_option |
835 | do | |
836 | # If the previous option needs an argument, assign it. | |
837 | if test -n "$ac_prev"; then | |
631ef239 | 838 | eval $ac_prev=\$ac_option |
212380e3 AC |
839 | ac_prev= |
840 | continue | |
841 | fi | |
842 | ||
631ef239 | 843 | case $ac_option in |
b6d0720c AC |
844 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
845 | *=) ac_optarg= ;; | |
846 | *) ac_optarg=yes ;; | |
631ef239 | 847 | esac |
212380e3 AC |
848 | |
849 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
850 | ||
631ef239 AC |
851 | case $ac_dashdash$ac_option in |
852 | --) | |
853 | ac_dashdash=yes ;; | |
212380e3 AC |
854 | |
855 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
856 | ac_prev=bindir ;; | |
857 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
858 | bindir=$ac_optarg ;; | |
859 | ||
860 | -build | --build | --buil | --bui | --bu) | |
861 | ac_prev=build_alias ;; | |
862 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
863 | build_alias=$ac_optarg ;; | |
864 | ||
865 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
866 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
867 | ac_prev=cache_file ;; | |
868 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
869 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
870 | cache_file=$ac_optarg ;; | |
871 | ||
872 | --config-cache | -C) | |
873 | cache_file=config.cache ;; | |
874 | ||
631ef239 | 875 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 876 | ac_prev=datadir ;; |
631ef239 | 877 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
878 | datadir=$ac_optarg ;; |
879 | ||
631ef239 AC |
880 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
881 | | --dataroo | --dataro | --datar) | |
882 | ac_prev=datarootdir ;; | |
883 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
884 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
885 | datarootdir=$ac_optarg ;; | |
886 | ||
212380e3 | 887 | -disable-* | --disable-*) |
7083c021 | 888 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 889 | # Reject names that are not valid shell variable names. |
7083c021 | 890 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 891 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
892 | ac_useropt_orig=$ac_useropt |
893 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
894 | case $ac_user_opts in | |
895 | *" | |
896 | "enable_$ac_useropt" | |
897 | "*) ;; | |
898 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
899 | ac_unrecognized_sep=', ';; | |
900 | esac | |
901 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
902 | |
903 | -docdir | --docdir | --docdi | --doc | --do) | |
904 | ac_prev=docdir ;; | |
905 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
906 | docdir=$ac_optarg ;; | |
907 | ||
908 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
909 | ac_prev=dvidir ;; | |
910 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
911 | dvidir=$ac_optarg ;; | |
212380e3 AC |
912 | |
913 | -enable-* | --enable-*) | |
7083c021 | 914 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 915 | # Reject names that are not valid shell variable names. |
7083c021 | 916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 917 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
918 | ac_useropt_orig=$ac_useropt |
919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
920 | case $ac_user_opts in | |
921 | *" | |
922 | "enable_$ac_useropt" | |
923 | "*) ;; | |
924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
925 | ac_unrecognized_sep=', ';; | |
926 | esac | |
927 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
928 | |
929 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
930 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
931 | | --exec | --exe | --ex) | |
932 | ac_prev=exec_prefix ;; | |
933 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
934 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
935 | | --exec=* | --exe=* | --ex=*) | |
936 | exec_prefix=$ac_optarg ;; | |
937 | ||
938 | -gas | --gas | --ga | --g) | |
939 | # Obsolete; use --with-gas. | |
940 | with_gas=yes ;; | |
941 | ||
942 | -help | --help | --hel | --he | -h) | |
943 | ac_init_help=long ;; | |
944 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
945 | ac_init_help=recursive ;; | |
946 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
947 | ac_init_help=short ;; | |
948 | ||
949 | -host | --host | --hos | --ho) | |
950 | ac_prev=host_alias ;; | |
951 | -host=* | --host=* | --hos=* | --ho=*) | |
952 | host_alias=$ac_optarg ;; | |
953 | ||
631ef239 AC |
954 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
955 | ac_prev=htmldir ;; | |
956 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
957 | | --ht=*) | |
958 | htmldir=$ac_optarg ;; | |
959 | ||
212380e3 AC |
960 | -includedir | --includedir | --includedi | --included | --include \ |
961 | | --includ | --inclu | --incl | --inc) | |
962 | ac_prev=includedir ;; | |
963 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
964 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
965 | includedir=$ac_optarg ;; | |
966 | ||
967 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
968 | ac_prev=infodir ;; | |
969 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
970 | infodir=$ac_optarg ;; | |
971 | ||
972 | -libdir | --libdir | --libdi | --libd) | |
973 | ac_prev=libdir ;; | |
974 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
975 | libdir=$ac_optarg ;; | |
976 | ||
977 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
978 | | --libexe | --libex | --libe) | |
979 | ac_prev=libexecdir ;; | |
980 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
981 | | --libexe=* | --libex=* | --libe=*) | |
982 | libexecdir=$ac_optarg ;; | |
983 | ||
631ef239 AC |
984 | -localedir | --localedir | --localedi | --localed | --locale) |
985 | ac_prev=localedir ;; | |
986 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
987 | localedir=$ac_optarg ;; | |
988 | ||
212380e3 | 989 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 990 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
991 | ac_prev=localstatedir ;; |
992 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 993 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
994 | localstatedir=$ac_optarg ;; |
995 | ||
996 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
997 | ac_prev=mandir ;; | |
998 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
999 | mandir=$ac_optarg ;; | |
1000 | ||
1001 | -nfp | --nfp | --nf) | |
1002 | # Obsolete; use --without-fp. | |
1003 | with_fp=no ;; | |
1004 | ||
1005 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1006 | | --no-cr | --no-c | -n) | |
1007 | no_create=yes ;; | |
1008 | ||
1009 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1010 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1011 | no_recursion=yes ;; | |
1012 | ||
1013 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1014 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1015 | | --oldin | --oldi | --old | --ol | --o) | |
1016 | ac_prev=oldincludedir ;; | |
1017 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1018 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1019 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1020 | oldincludedir=$ac_optarg ;; | |
1021 | ||
1022 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1023 | ac_prev=prefix ;; | |
1024 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1025 | prefix=$ac_optarg ;; | |
1026 | ||
1027 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1028 | | --program-pre | --program-pr | --program-p) | |
1029 | ac_prev=program_prefix ;; | |
1030 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1031 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1032 | program_prefix=$ac_optarg ;; | |
1033 | ||
1034 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1035 | | --program-suf | --program-su | --program-s) | |
1036 | ac_prev=program_suffix ;; | |
1037 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1038 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1039 | program_suffix=$ac_optarg ;; | |
1040 | ||
1041 | -program-transform-name | --program-transform-name \ | |
1042 | | --program-transform-nam | --program-transform-na \ | |
1043 | | --program-transform-n | --program-transform- \ | |
1044 | | --program-transform | --program-transfor \ | |
1045 | | --program-transfo | --program-transf \ | |
1046 | | --program-trans | --program-tran \ | |
1047 | | --progr-tra | --program-tr | --program-t) | |
1048 | ac_prev=program_transform_name ;; | |
1049 | -program-transform-name=* | --program-transform-name=* \ | |
1050 | | --program-transform-nam=* | --program-transform-na=* \ | |
1051 | | --program-transform-n=* | --program-transform-=* \ | |
1052 | | --program-transform=* | --program-transfor=* \ | |
1053 | | --program-transfo=* | --program-transf=* \ | |
1054 | | --program-trans=* | --program-tran=* \ | |
1055 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1056 | program_transform_name=$ac_optarg ;; | |
1057 | ||
631ef239 AC |
1058 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1059 | ac_prev=pdfdir ;; | |
1060 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1061 | pdfdir=$ac_optarg ;; | |
1062 | ||
1063 | -psdir | --psdir | --psdi | --psd | --ps) | |
1064 | ac_prev=psdir ;; | |
1065 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1066 | psdir=$ac_optarg ;; | |
1067 | ||
212380e3 AC |
1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1069 | | -silent | --silent | --silen | --sile | --sil) | |
1070 | silent=yes ;; | |
1071 | ||
1072 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1073 | ac_prev=sbindir ;; | |
1074 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1075 | | --sbi=* | --sb=*) | |
1076 | sbindir=$ac_optarg ;; | |
1077 | ||
1078 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1079 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1080 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1081 | | --sha | --sh) | |
1082 | ac_prev=sharedstatedir ;; | |
1083 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1084 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1085 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1086 | | --sha=* | --sh=*) | |
1087 | sharedstatedir=$ac_optarg ;; | |
1088 | ||
1089 | -site | --site | --sit) | |
1090 | ac_prev=site ;; | |
1091 | -site=* | --site=* | --sit=*) | |
1092 | site=$ac_optarg ;; | |
1093 | ||
1094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1095 | ac_prev=srcdir ;; | |
1096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1097 | srcdir=$ac_optarg ;; | |
1098 | ||
1099 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1100 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1101 | ac_prev=sysconfdir ;; | |
1102 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1103 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1104 | sysconfdir=$ac_optarg ;; | |
1105 | ||
1106 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1107 | ac_prev=target_alias ;; | |
1108 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1109 | target_alias=$ac_optarg ;; | |
1110 | ||
1111 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1112 | verbose=yes ;; | |
1113 | ||
1114 | -version | --version | --versio | --versi | --vers | -V) | |
1115 | ac_init_version=: ;; | |
1116 | ||
1117 | -with-* | --with-*) | |
7083c021 | 1118 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1119 | # Reject names that are not valid shell variable names. |
7083c021 | 1120 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1121 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1122 | ac_useropt_orig=$ac_useropt |
1123 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1124 | case $ac_user_opts in | |
1125 | *" | |
1126 | "with_$ac_useropt" | |
1127 | "*) ;; | |
1128 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1129 | ac_unrecognized_sep=', ';; | |
1130 | esac | |
1131 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1132 | |
1133 | -without-* | --without-*) | |
7083c021 | 1134 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1135 | # Reject names that are not valid shell variable names. |
7083c021 | 1136 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1137 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1138 | ac_useropt_orig=$ac_useropt |
1139 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1140 | case $ac_user_opts in | |
1141 | *" | |
1142 | "with_$ac_useropt" | |
1143 | "*) ;; | |
1144 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1145 | ac_unrecognized_sep=', ';; | |
1146 | esac | |
1147 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1148 | |
1149 | --x) | |
1150 | # Obsolete; use --with-x. | |
1151 | with_x=yes ;; | |
1152 | ||
1153 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1154 | | --x-incl | --x-inc | --x-in | --x-i) | |
1155 | ac_prev=x_includes ;; | |
1156 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1157 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1158 | x_includes=$ac_optarg ;; | |
1159 | ||
1160 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1161 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1162 | ac_prev=x_libraries ;; | |
1163 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1164 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1165 | x_libraries=$ac_optarg ;; | |
1166 | ||
b6d0720c AC |
1167 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1168 | Try \`$0 --help' for more information" | |
212380e3 AC |
1169 | ;; |
1170 | ||
1171 | *=*) | |
1172 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1173 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1174 | case $ac_envvar in #( |
1175 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1176 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1177 | esac |
631ef239 | 1178 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1179 | export $ac_envvar ;; |
1180 | ||
1181 | *) | |
1182 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1183 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1184 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1185 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1186 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1187 | ;; |
1188 | ||
1189 | esac | |
1190 | done | |
1191 | ||
1192 | if test -n "$ac_prev"; then | |
1193 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1194 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1195 | fi |
1196 | ||
7083c021 AC |
1197 | if test -n "$ac_unrecognized_opts"; then |
1198 | case $enable_option_checking in | |
1199 | no) ;; | |
b6d0720c | 1200 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1201 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1202 | esac | |
1203 | fi | |
1204 | ||
1205 | # Check all directory arguments for consistency. | |
631ef239 AC |
1206 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1207 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1208 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1209 | libdir localedir mandir | |
212380e3 | 1210 | do |
631ef239 | 1211 | eval ac_val=\$$ac_var |
7083c021 AC |
1212 | # Remove trailing slashes. |
1213 | case $ac_val in | |
1214 | */ ) | |
1215 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1216 | eval $ac_var=\$ac_val;; | |
1217 | esac | |
1218 | # Be sure to have absolute directory names. | |
212380e3 | 1219 | case $ac_val in |
631ef239 AC |
1220 | [\\/$]* | ?:[\\/]* ) continue;; |
1221 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1222 | esac |
b6d0720c | 1223 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1224 | done |
1225 | ||
1226 | # There might be people who depend on the old broken behavior: `$host' | |
1227 | # used to hold the argument of --host etc. | |
1228 | # FIXME: To remove some day. | |
1229 | build=$build_alias | |
1230 | host=$host_alias | |
1231 | target=$target_alias | |
1232 | ||
1233 | # FIXME: To remove some day. | |
1234 | if test "x$host_alias" != x; then | |
1235 | if test "x$build_alias" = x; then | |
1236 | cross_compiling=maybe | |
212380e3 AC |
1237 | elif test "x$build_alias" != "x$host_alias"; then |
1238 | cross_compiling=yes | |
1239 | fi | |
1240 | fi | |
1241 | ||
1242 | ac_tool_prefix= | |
1243 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1244 | ||
1245 | test "$silent" = yes && exec 6>/dev/null | |
1246 | ||
1247 | ||
631ef239 AC |
1248 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1249 | ac_ls_di=`ls -di .` && | |
1250 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1251 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1252 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1253 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1254 | |
1255 | ||
1256 | # Find the source files, if location was not specified. | |
1257 | if test -z "$srcdir"; then | |
212380e3 | 1258 | ac_srcdir_defaulted=yes |
631ef239 | 1259 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1260 | ac_confdir=`$as_dirname -- "$as_myself" || |
1261 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1262 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1263 | X"$as_myself" : 'X\(//\)$' \| \ | |
1264 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1265 | $as_echo X"$as_myself" | | |
631ef239 AC |
1266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1267 | s//\1/ | |
1268 | q | |
1269 | } | |
1270 | /^X\(\/\/\)[^/].*/{ | |
1271 | s//\1/ | |
1272 | q | |
1273 | } | |
1274 | /^X\(\/\/\)$/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\).*/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | s/.*/./; q'` | |
212380e3 | 1283 | srcdir=$ac_confdir |
631ef239 | 1284 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1285 | srcdir=.. |
1286 | fi | |
1287 | else | |
1288 | ac_srcdir_defaulted=no | |
1289 | fi | |
631ef239 AC |
1290 | if test ! -r "$srcdir/$ac_unique_file"; then |
1291 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1292 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1293 | fi |
631ef239 AC |
1294 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1295 | ac_abs_confdir=`( | |
b6d0720c | 1296 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1297 | pwd)` |
1298 | # When building in place, set srcdir=. | |
1299 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1300 | srcdir=. | |
1301 | fi | |
1302 | # Remove unnecessary trailing slashes from srcdir. | |
1303 | # Double slashes in file names in object file debugging info | |
1304 | # mess up M-x gdb in Emacs. | |
1305 | case $srcdir in | |
1306 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1307 | esac | |
1308 | for ac_var in $ac_precious_vars; do | |
1309 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1311 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1312 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1313 | done | |
212380e3 AC |
1314 | |
1315 | # | |
1316 | # Report the --help message. | |
1317 | # | |
1318 | if test "$ac_init_help" = "long"; then | |
1319 | # Omit some internal or obsolete options to make the list less imposing. | |
1320 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1321 | cat <<_ACEOF | |
1ce62709 | 1322 | \`configure' configures charybdis 3.5.0 to adapt to many kinds of systems. |
212380e3 AC |
1323 | |
1324 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1325 | ||
1326 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1327 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1328 | ||
1329 | Defaults for the options are specified in brackets. | |
1330 | ||
1331 | Configuration: | |
1332 | -h, --help display this help and exit | |
1333 | --help=short display options specific to this package | |
1334 | --help=recursive display the short help of all the included packages | |
1335 | -V, --version display version information and exit | |
b6d0720c | 1336 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1337 | --cache-file=FILE cache test results in FILE [disabled] |
1338 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1339 | -n, --no-create do not create output files | |
1340 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1341 | ||
212380e3 AC |
1342 | Installation directories: |
1343 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1344 | [$ac_default_prefix] |
212380e3 | 1345 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1346 | [PREFIX] |
212380e3 AC |
1347 | |
1348 | By default, \`make install' will install all the files in | |
1349 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1350 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1351 | for instance \`--prefix=\$HOME'. | |
1352 | ||
1353 | For better control, use the options below. | |
1354 | ||
1355 | Fine tuning of the installation directories: | |
7083c021 AC |
1356 | --bindir=DIR user executables [EPREFIX/bin] |
1357 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1358 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1359 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1360 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1361 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1362 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1363 | --includedir=DIR C header files [PREFIX/include] | |
1364 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1365 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1366 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1367 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1368 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1369 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1370 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1371 | --htmldir=DIR html documentation [DOCDIR] | |
1372 | --dvidir=DIR dvi documentation [DOCDIR] | |
1373 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1374 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1375 | _ACEOF |
1376 | ||
1377 | cat <<\_ACEOF | |
1378 | _ACEOF | |
1379 | fi | |
1380 | ||
1381 | if test -n "$ac_init_help"; then | |
1382 | case $ac_init_help in | |
1ce62709 | 1383 | short | recursive ) echo "Configuration of charybdis 3.5.0:";; |
212380e3 AC |
1384 | esac |
1385 | cat <<\_ACEOF | |
1386 | ||
1387 | Optional Features: | |
7083c021 | 1388 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1389 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1390 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6929cd01 | 1391 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1392 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1393 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1394 | --disable-openssl Disable OpenSSL support. |
1395 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1396 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1397 | --enable-poll Force poll() usage. |
1398 | --enable-select Force select() usage. | |
1399 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1400 | --enable-epoll Force sys_epoll usage (Linux only). |
1401 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1402 | hard(aborts the daemon) | |
1403 | --enable-iodebug Enable IO Debugging hooks | |
1404 | --enable-profile Enable profiling | |
1405 | --disable-balloc Disable the block allocator. | |
212380e3 | 1406 | --enable-small-net Enable small network support. |
212380e3 AC |
1407 | --enable-warnings Enable all sorts of warnings for debugging. |
1408 | ||
1409 | Optional Packages: | |
1410 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1411 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1412 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
a6ef3156 | 1413 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1414 | --with-confdir=DIR Directory to install config files [deprecated, use |
1415 | --sysconfdir instead]. | |
212380e3 AC |
1416 | --with-logdir=DIR Directory where to write logfiles. |
1417 | --with-helpdir=DIR Directory to install help files. | |
1418 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1419 | --with-rundir=DIR Directory in which to store pidfile. |
1420 | --with-program-prefix= If set, programs installed into PATH will be | |
1421 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1422 | --with-custom-branding=NAME |
1423 | Custom branding name. | |
1424 | --with-custom-version=NAME | |
1425 | Custom version branding. | |
b583faf9 | 1426 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1427 | 31, max 50) |
212380e3 AC |
1428 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1429 | 390) | |
212380e3 AC |
1430 | |
1431 | Some influential environment variables: | |
1432 | CC C compiler command | |
1433 | CFLAGS C compiler flags | |
1434 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1435 | nonstandard directory <lib dir> | |
631ef239 | 1436 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1437 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1438 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1439 | CPP C preprocessor |
b6d0720c AC |
1440 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1441 | Defaults to the first program found out of: `bison -y', `byacc', | |
1442 | `yacc'. | |
631ef239 AC |
1443 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1444 | This script will default YFLAGS to the empty string to avoid a | |
1445 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1446 | PKG_CONFIG path to pkg-config utility |
1447 | PKG_CONFIG_PATH | |
1448 | directories to add to pkg-config's search path | |
1449 | PKG_CONFIG_LIBDIR | |
1450 | path overriding pkg-config's built-in search path | |
1451 | SQLITE_CFLAGS | |
1452 | C compiler flags for SQLITE, overriding pkg-config | |
1453 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1454 | |
1455 | Use these variables to override the choices made by `configure' or to help | |
1456 | it to find libraries and programs with nonstandard names/locations. | |
1457 | ||
7083c021 | 1458 | Report bugs to the package provider. |
212380e3 | 1459 | _ACEOF |
631ef239 | 1460 | ac_status=$? |
212380e3 AC |
1461 | fi |
1462 | ||
1463 | if test "$ac_init_help" = "recursive"; then | |
1464 | # If there are subdirs, report their specific --help. | |
212380e3 | 1465 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1466 | test -d "$ac_dir" || |
1467 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1468 | continue | |
212380e3 AC |
1469 | ac_builddir=. |
1470 | ||
631ef239 AC |
1471 | case "$ac_dir" in |
1472 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1473 | *) | |
7083c021 | 1474 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1475 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1476 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1477 | case $ac_top_builddir_sub in |
1478 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1479 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1480 | esac ;; | |
1481 | esac | |
1482 | ac_abs_top_builddir=$ac_pwd | |
1483 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1484 | # for backward compatibility: | |
1485 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1486 | |
1487 | case $srcdir in | |
631ef239 | 1488 | .) # We are building in place. |
212380e3 | 1489 | ac_srcdir=. |
631ef239 AC |
1490 | ac_top_srcdir=$ac_top_builddir_sub |
1491 | ac_abs_top_srcdir=$ac_pwd ;; | |
1492 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1493 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1494 | ac_top_srcdir=$srcdir |
1495 | ac_abs_top_srcdir=$srcdir ;; | |
1496 | *) # Relative name. | |
1497 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1498 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1499 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1500 | esac |
631ef239 AC |
1501 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1502 | ||
1503 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1504 | # Check for guested configure. | |
1505 | if test -f "$ac_srcdir/configure.gnu"; then | |
1506 | echo && | |
1507 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1508 | elif test -f "$ac_srcdir/configure"; then | |
1509 | echo && | |
1510 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1511 | else |
7083c021 | 1512 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1513 | fi || ac_status=$? |
1514 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1515 | done |
1516 | fi | |
1517 | ||
631ef239 | 1518 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1519 | if $ac_init_version; then |
1520 | cat <<\_ACEOF | |
1ce62709 | 1521 | charybdis configure 3.5.0 |
2eff3833 | 1522 | generated by GNU Autoconf 2.69 |
212380e3 | 1523 | |
2eff3833 | 1524 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1525 | This configure script is free software; the Free Software Foundation |
1526 | gives unlimited permission to copy, distribute and modify it. | |
1527 | ||
b676ea3b | 1528 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1529 | _ACEOF |
631ef239 | 1530 | exit |
212380e3 | 1531 | fi |
212380e3 | 1532 | |
7083c021 AC |
1533 | ## ------------------------ ## |
1534 | ## Autoconf initialization. ## | |
1535 | ## ------------------------ ## | |
212380e3 | 1536 | |
7083c021 AC |
1537 | # ac_fn_c_try_compile LINENO |
1538 | # -------------------------- | |
1539 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1540 | ac_fn_c_try_compile () | |
1541 | { | |
1542 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1543 | rm -f conftest.$ac_objext | |
1544 | if { { ac_try="$ac_compile" | |
1545 | case "(($ac_try" in | |
1546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1547 | *) ac_try_echo=$ac_try;; | |
1548 | esac | |
1549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1550 | $as_echo "$ac_try_echo"; } >&5 | |
1551 | (eval "$ac_compile") 2>conftest.err | |
1552 | ac_status=$? | |
1553 | if test -s conftest.err; then | |
1554 | grep -v '^ *+' conftest.err >conftest.er1 | |
1555 | cat conftest.er1 >&5 | |
1556 | mv -f conftest.er1 conftest.err | |
1557 | fi | |
1558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1559 | test $ac_status = 0; } && { | |
1560 | test -z "$ac_c_werror_flag" || | |
1561 | test ! -s conftest.err | |
1562 | } && test -s conftest.$ac_objext; then : | |
1563 | ac_retval=0 | |
1564 | else | |
1565 | $as_echo "$as_me: failed program was:" >&5 | |
1566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1567 | |
7083c021 AC |
1568 | ac_retval=1 |
1569 | fi | |
b6d0720c | 1570 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1571 | as_fn_set_status $ac_retval |
7083c021 AC |
1572 | |
1573 | } # ac_fn_c_try_compile | |
1574 | ||
1575 | # ac_fn_c_try_cpp LINENO | |
1576 | # ---------------------- | |
1577 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1578 | ac_fn_c_try_cpp () | |
212380e3 | 1579 | { |
7083c021 AC |
1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1581 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1582 | case "(($ac_try" in | |
1583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1584 | *) ac_try_echo=$ac_try;; | |
1585 | esac | |
1586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1587 | $as_echo "$ac_try_echo"; } >&5 | |
1588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1589 | ac_status=$? | |
1590 | if test -s conftest.err; then | |
1591 | grep -v '^ *+' conftest.err >conftest.er1 | |
1592 | cat conftest.er1 >&5 | |
1593 | mv -f conftest.er1 conftest.err | |
1594 | fi | |
1595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b6d0720c | 1596 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1597 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1598 | test ! -s conftest.err | |
1599 | }; then : | |
1600 | ac_retval=0 | |
1601 | else | |
1602 | $as_echo "$as_me: failed program was:" >&5 | |
1603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1604 | |
7083c021 AC |
1605 | ac_retval=1 |
1606 | fi | |
b6d0720c | 1607 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1608 | as_fn_set_status $ac_retval |
212380e3 | 1609 | |
7083c021 | 1610 | } # ac_fn_c_try_cpp |
212380e3 | 1611 | |
7083c021 AC |
1612 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1613 | # ------------------------------------------------------- | |
1614 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1615 | # the include files in INCLUDES and setting the cache variable VAR | |
1616 | # accordingly. | |
1617 | ac_fn_c_check_header_mongrel () | |
1618 | { | |
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b6d0720c | 1620 | if eval \${$3+:} false; then : |
7083c021 AC |
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1622 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1623 | if eval \${$3+:} false; then : |
7083c021 AC |
1624 | $as_echo_n "(cached) " >&6 |
1625 | fi | |
1626 | eval ac_res=\$$3 | |
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1628 | $as_echo "$ac_res" >&6; } | |
1629 | else | |
1630 | # Is the header compilable? | |
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1632 | $as_echo_n "checking $2 usability... " >&6; } | |
1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1634 | /* end confdefs.h. */ | |
1635 | $4 | |
1636 | #include <$2> | |
1637 | _ACEOF | |
1638 | if ac_fn_c_try_compile "$LINENO"; then : | |
1639 | ac_header_compiler=yes | |
1640 | else | |
1641 | ac_header_compiler=no | |
1642 | fi | |
1643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1645 | $as_echo "$ac_header_compiler" >&6; } | |
212380e3 | 1646 | |
7083c021 AC |
1647 | # Is the header present? |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1649 | $as_echo_n "checking $2 presence... " >&6; } | |
1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1651 | /* end confdefs.h. */ | |
1652 | #include <$2> | |
1653 | _ACEOF | |
1654 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1655 | ac_header_preproc=yes | |
1656 | else | |
1657 | ac_header_preproc=no | |
1658 | fi | |
b6d0720c | 1659 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1661 | $as_echo "$ac_header_preproc" >&6; } | |
212380e3 | 1662 | |
7083c021 AC |
1663 | # So? What about this header? |
1664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1665 | yes:no: ) | |
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1667 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1669 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1670 | ;; | |
1671 | no:yes:* ) | |
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1673 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1675 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1677 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1679 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1681 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1682 | ;; | |
1683 | esac | |
1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1685 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1686 | if eval \${$3+:} false; then : |
7083c021 AC |
1687 | $as_echo_n "(cached) " >&6 |
1688 | else | |
1689 | eval "$3=\$ac_header_compiler" | |
1690 | fi | |
1691 | eval ac_res=\$$3 | |
1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1693 | $as_echo "$ac_res" >&6; } | |
1694 | fi | |
b6d0720c | 1695 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1696 | |
7083c021 | 1697 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1698 | |
7083c021 AC |
1699 | # ac_fn_c_try_run LINENO |
1700 | # ---------------------- | |
1701 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1702 | # that executables *can* be run. | |
1703 | ac_fn_c_try_run () | |
1704 | { | |
1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1706 | if { { ac_try="$ac_link" | |
1707 | case "(($ac_try" in | |
1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1709 | *) ac_try_echo=$ac_try;; | |
1710 | esac | |
1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1712 | $as_echo "$ac_try_echo"; } >&5 | |
1713 | (eval "$ac_link") 2>&5 | |
1714 | ac_status=$? | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1716 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1717 | { { case "(($ac_try" in | |
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1719 | *) ac_try_echo=$ac_try;; | |
1720 | esac | |
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1722 | $as_echo "$ac_try_echo"; } >&5 | |
1723 | (eval "$ac_try") 2>&5 | |
1724 | ac_status=$? | |
1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1726 | test $ac_status = 0; }; }; then : | |
1727 | ac_retval=0 | |
1728 | else | |
1729 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1730 | $as_echo "$as_me: failed program was:" >&5 | |
1731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1732 | |
7083c021 AC |
1733 | ac_retval=$ac_status |
1734 | fi | |
1735 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1737 | as_fn_set_status $ac_retval |
212380e3 | 1738 | |
7083c021 | 1739 | } # ac_fn_c_try_run |
212380e3 | 1740 | |
7083c021 AC |
1741 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1742 | # ------------------------------------------------------- | |
1743 | # Tests whether HEADER exists and can be compiled using the include files in | |
1744 | # INCLUDES, setting the cache variable VAR accordingly. | |
1745 | ac_fn_c_check_header_compile () | |
1746 | { | |
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1749 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1750 | if eval \${$3+:} false; then : |
7083c021 AC |
1751 | $as_echo_n "(cached) " >&6 |
1752 | else | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1754 | /* end confdefs.h. */ | |
1755 | $4 | |
1756 | #include <$2> | |
212380e3 | 1757 | _ACEOF |
7083c021 AC |
1758 | if ac_fn_c_try_compile "$LINENO"; then : |
1759 | eval "$3=yes" | |
1760 | else | |
1761 | eval "$3=no" | |
1762 | fi | |
1763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1764 | fi | |
1765 | eval ac_res=\$$3 | |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1767 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1768 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1769 | |
7083c021 | 1770 | } # ac_fn_c_check_header_compile |
212380e3 | 1771 | |
7083c021 AC |
1772 | # ac_fn_c_try_link LINENO |
1773 | # ----------------------- | |
1774 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1775 | ac_fn_c_try_link () | |
1776 | { | |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1779 | if { { ac_try="$ac_link" | |
1780 | case "(($ac_try" in | |
1781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1782 | *) ac_try_echo=$ac_try;; | |
1783 | esac | |
1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1785 | $as_echo "$ac_try_echo"; } >&5 | |
1786 | (eval "$ac_link") 2>conftest.err | |
1787 | ac_status=$? | |
1788 | if test -s conftest.err; then | |
1789 | grep -v '^ *+' conftest.err >conftest.er1 | |
1790 | cat conftest.er1 >&5 | |
1791 | mv -f conftest.er1 conftest.err | |
1792 | fi | |
1793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1794 | test $ac_status = 0; } && { | |
1795 | test -z "$ac_c_werror_flag" || | |
1796 | test ! -s conftest.err | |
1797 | } && test -s conftest$ac_exeext && { | |
1798 | test "$cross_compiling" = yes || | |
2eff3833 | 1799 | test -x conftest$ac_exeext |
7083c021 AC |
1800 | }; then : |
1801 | ac_retval=0 | |
212380e3 | 1802 | else |
7083c021 AC |
1803 | $as_echo "$as_me: failed program was:" >&5 |
1804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1805 | |
7083c021 | 1806 | ac_retval=1 |
212380e3 | 1807 | fi |
7083c021 AC |
1808 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1809 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1810 | # interfere with the next link command; also delete a directory that is | |
1811 | # left behind by Apple's compiler. We do this before executing the actions. | |
1812 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1814 | as_fn_set_status $ac_retval |
212380e3 | 1815 | |
7083c021 | 1816 | } # ac_fn_c_try_link |
212380e3 | 1817 | |
7083c021 AC |
1818 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1819 | # ------------------------------------------- | |
1820 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1821 | # variable VAR accordingly. | |
1822 | ac_fn_c_check_type () | |
1823 | { | |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1826 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1827 | if eval \${$3+:} false; then : |
7083c021 | 1828 | $as_echo_n "(cached) " >&6 |
212380e3 | 1829 | else |
7083c021 AC |
1830 | eval "$3=no" |
1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1832 | /* end confdefs.h. */ | |
1833 | $4 | |
1834 | int | |
1835 | main () | |
1836 | { | |
1837 | if (sizeof ($2)) | |
1838 | return 0; | |
1839 | ; | |
1840 | return 0; | |
1841 | } | |
212380e3 | 1842 | _ACEOF |
7083c021 AC |
1843 | if ac_fn_c_try_compile "$LINENO"; then : |
1844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1845 | /* end confdefs.h. */ |
7083c021 | 1846 | $4 |
212380e3 AC |
1847 | int |
1848 | main () | |
1849 | { | |
7083c021 AC |
1850 | if (sizeof (($2))) |
1851 | return 0; | |
212380e3 AC |
1852 | ; |
1853 | return 0; | |
1854 | } | |
1855 | _ACEOF | |
7083c021 | 1856 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 1857 | |
631ef239 | 1858 | else |
7083c021 | 1859 | eval "$3=yes" |
212380e3 | 1860 | fi |
7083c021 | 1861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1862 | fi |
7083c021 | 1863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1864 | fi |
7083c021 AC |
1865 | eval ac_res=\$$3 |
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1867 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1869 | |
7083c021 AC |
1870 | } # ac_fn_c_check_type |
1871 | ||
1872 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1873 | # -------------------------------------------- | |
1874 | # Tries to find the compile-time value of EXPR in a program that includes | |
1875 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1876 | # computed | |
1877 | ac_fn_c_compute_int () | |
1878 | { | |
1879 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1880 | if test "$cross_compiling" = yes; then | |
1881 | # Depending upon the size, compute the lo and hi bounds. | |
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) >= 0)]; | |
2eff3833 JT |
1889 | test_array [0] = 0; |
1890 | return test_array [0]; | |
7083c021 AC |
1891 | |
1892 | ; | |
1893 | return 0; | |
1894 | } | |
212380e3 | 1895 | _ACEOF |
7083c021 AC |
1896 | if ac_fn_c_try_compile "$LINENO"; then : |
1897 | ac_lo=0 ac_mid=0 | |
1898 | while :; do | |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1900 | /* end confdefs.h. */ |
7083c021 AC |
1901 | $4 |
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
1906 | test_array [0] = 0; |
1907 | return test_array [0]; | |
212380e3 | 1908 | |
7083c021 AC |
1909 | ; |
1910 | return 0; | |
1911 | } | |
212380e3 | 1912 | _ACEOF |
7083c021 AC |
1913 | if ac_fn_c_try_compile "$LINENO"; then : |
1914 | ac_hi=$ac_mid; break | |
212380e3 | 1915 | else |
7083c021 AC |
1916 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1917 | if test $ac_lo -le $ac_mid; then | |
1918 | ac_lo= ac_hi= | |
1919 | break | |
1920 | fi | |
1921 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 1922 | fi |
631ef239 | 1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
1924 | done |
1925 | else | |
1926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1927 | /* end confdefs.h. */ | |
1928 | $4 | |
1929 | int | |
1930 | main () | |
1931 | { | |
1932 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
1933 | test_array [0] = 0; |
1934 | return test_array [0]; | |
212380e3 | 1935 | |
7083c021 AC |
1936 | ; |
1937 | return 0; | |
1938 | } | |
212380e3 | 1939 | _ACEOF |
7083c021 AC |
1940 | if ac_fn_c_try_compile "$LINENO"; then : |
1941 | ac_hi=-1 ac_mid=-1 | |
1942 | while :; do | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | $4 | |
1946 | int | |
1947 | main () | |
1948 | { | |
1949 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
1950 | test_array [0] = 0; |
1951 | return test_array [0]; | |
212380e3 | 1952 | |
7083c021 AC |
1953 | ; |
1954 | return 0; | |
1955 | } | |
1956 | _ACEOF | |
1957 | if ac_fn_c_try_compile "$LINENO"; then : | |
1958 | ac_lo=$ac_mid; break | |
1959 | else | |
1960 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1961 | if test $ac_mid -le $ac_hi; then | |
1962 | ac_lo= ac_hi= | |
1963 | break | |
1964 | fi | |
1965 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 1966 | fi |
7083c021 AC |
1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1968 | done | |
212380e3 | 1969 | else |
7083c021 AC |
1970 | ac_lo= ac_hi= |
1971 | fi | |
1972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1973 | fi | |
1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1975 | # Binary search between lo and hi bounds. | |
1976 | while test "x$ac_lo" != "x$ac_hi"; do | |
1977 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1979 | /* end confdefs.h. */ |
7083c021 AC |
1980 | $4 |
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
1985 | test_array [0] = 0; |
1986 | return test_array [0]; | |
7083c021 AC |
1987 | |
1988 | ; | |
1989 | return 0; | |
1990 | } | |
212380e3 | 1991 | _ACEOF |
7083c021 AC |
1992 | if ac_fn_c_try_compile "$LINENO"; then : |
1993 | ac_hi=$ac_mid | |
212380e3 | 1994 | else |
7083c021 | 1995 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 1996 | fi |
7083c021 AC |
1997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1998 | done | |
1999 | case $ac_lo in #(( | |
2000 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2001 | '') ac_retval=1 ;; | |
2002 | esac | |
2003 | else | |
2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2005 | /* end confdefs.h. */ | |
2006 | $4 | |
2007 | static long int longval () { return $2; } | |
2008 | static unsigned long int ulongval () { return $2; } | |
2009 | #include <stdio.h> | |
2010 | #include <stdlib.h> | |
2011 | int | |
2012 | main () | |
2013 | { | |
631ef239 | 2014 | |
7083c021 AC |
2015 | FILE *f = fopen ("conftest.val", "w"); |
2016 | if (! f) | |
2017 | return 1; | |
2018 | if (($2) < 0) | |
2019 | { | |
2020 | long int i = longval (); | |
2021 | if (i != ($2)) | |
2022 | return 1; | |
2023 | fprintf (f, "%ld", i); | |
2024 | } | |
2025 | else | |
2026 | { | |
2027 | unsigned long int i = ulongval (); | |
2028 | if (i != ($2)) | |
2029 | return 1; | |
2030 | fprintf (f, "%lu", i); | |
2031 | } | |
2032 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2033 | on some platforms. */ | |
2034 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2035 | |
7083c021 AC |
2036 | ; |
2037 | return 0; | |
2038 | } | |
212380e3 | 2039 | _ACEOF |
7083c021 AC |
2040 | if ac_fn_c_try_run "$LINENO"; then : |
2041 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2042 | else |
7083c021 | 2043 | ac_retval=1 |
212380e3 | 2044 | fi |
7083c021 AC |
2045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2046 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2047 | rm -f conftest.val | |
631ef239 | 2048 | |
7083c021 | 2049 | fi |
b6d0720c | 2050 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2051 | as_fn_set_status $ac_retval |
212380e3 | 2052 | |
7083c021 | 2053 | } # ac_fn_c_compute_int |
212380e3 | 2054 | |
7083c021 AC |
2055 | # ac_fn_c_check_func LINENO FUNC VAR |
2056 | # ---------------------------------- | |
2057 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2058 | ac_fn_c_check_func () | |
2059 | { | |
2060 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2062 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2063 | if eval \${$3+:} false; then : |
7083c021 | 2064 | $as_echo_n "(cached) " >&6 |
212380e3 | 2065 | else |
7083c021 | 2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 2067 | /* end confdefs.h. */ |
7083c021 AC |
2068 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2070 | #define $2 innocuous_$2 | |
2071 | ||
2072 | /* System header to define __stub macros and hopefully few prototypes, | |
2073 | which can conflict with char $2 (); below. | |
2074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2075 | <limits.h> exists even on freestanding compilers. */ | |
2076 | ||
212380e3 AC |
2077 | #ifdef __STDC__ |
2078 | # include <limits.h> | |
2079 | #else | |
2080 | # include <assert.h> | |
2081 | #endif | |
212380e3 | 2082 | |
7083c021 | 2083 | #undef $2 |
631ef239 | 2084 | |
7083c021 AC |
2085 | /* Override any GCC internal prototype to avoid an error. |
2086 | Use char because int might match the return type of a GCC | |
2087 | builtin and then its argument prototype would still apply. */ | |
2088 | #ifdef __cplusplus | |
2089 | extern "C" | |
2090 | #endif | |
2091 | char $2 (); | |
2092 | /* The GNU C library defines this for functions which it implements | |
2093 | to always fail with ENOSYS. Some functions are actually named | |
2094 | something starting with __ and the normal name is an alias. */ | |
2095 | #if defined __stub_$2 || defined __stub___$2 | |
2096 | choke me | |
2097 | #endif | |
212380e3 | 2098 | |
7083c021 AC |
2099 | int |
2100 | main () | |
2101 | { | |
2102 | return $2 (); | |
2103 | ; | |
2104 | return 0; | |
2105 | } | |
212380e3 | 2106 | _ACEOF |
7083c021 AC |
2107 | if ac_fn_c_try_link "$LINENO"; then : |
2108 | eval "$3=yes" | |
212380e3 | 2109 | else |
7083c021 AC |
2110 | eval "$3=no" |
2111 | fi | |
2112 | rm -f core conftest.err conftest.$ac_objext \ | |
2113 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 2114 | fi |
7083c021 AC |
2115 | eval ac_res=\$$3 |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2117 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2118 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
631ef239 | 2119 | |
7083c021 AC |
2120 | } # ac_fn_c_check_func |
2121 | cat >config.log <<_ACEOF | |
2122 | This file contains any messages produced by compilers while | |
2123 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2124 | |
1ce62709 | 2125 | It was created by charybdis $as_me 3.5.0, which was |
2eff3833 | 2126 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2127 | |
7083c021 | 2128 | $ $0 $@ |
212380e3 | 2129 | |
7083c021 AC |
2130 | _ACEOF |
2131 | exec 5>>config.log | |
2132 | { | |
2133 | cat <<_ASUNAME | |
2134 | ## --------- ## | |
2135 | ## Platform. ## | |
2136 | ## --------- ## | |
2137 | ||
2138 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2139 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2140 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2141 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2142 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2143 | ||
2144 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2145 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2146 | ||
2147 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2148 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2149 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2150 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2151 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2152 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2153 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2154 | ||
2155 | _ASUNAME | |
212380e3 | 2156 | |
631ef239 | 2157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2158 | for as_dir in $PATH |
631ef239 AC |
2159 | do |
2160 | IFS=$as_save_IFS | |
2161 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2162 | $as_echo "PATH: $as_dir" |
631ef239 | 2163 | done |
631ef239 AC |
2164 | IFS=$as_save_IFS |
2165 | ||
7083c021 | 2166 | } >&5 |
631ef239 | 2167 | |
7083c021 | 2168 | cat >&5 <<_ACEOF |
631ef239 | 2169 | |
631ef239 | 2170 | |
7083c021 AC |
2171 | ## ----------- ## |
2172 | ## Core tests. ## | |
2173 | ## ----------- ## | |
631ef239 | 2174 | |
7083c021 | 2175 | _ACEOF |
631ef239 AC |
2176 | |
2177 | ||
7083c021 AC |
2178 | # Keep a trace of the command line. |
2179 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2180 | # Strip out --silent because we don't want to record it for future runs. | |
2181 | # Also quote any args containing shell meta-characters. | |
2182 | # Make two passes to allow for proper duplicate-argument suppression. | |
2183 | ac_configure_args= | |
2184 | ac_configure_args0= | |
2185 | ac_configure_args1= | |
2186 | ac_must_keep_next=false | |
2187 | for ac_pass in 1 2 | |
631ef239 | 2188 | do |
7083c021 | 2189 | for ac_arg |
631ef239 | 2190 | do |
7083c021 AC |
2191 | case $ac_arg in |
2192 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2193 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2194 | | -silent | --silent | --silen | --sile | --sil) | |
2195 | continue ;; | |
2196 | *\'*) | |
2197 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2198 | esac | |
2199 | case $ac_pass in | |
2200 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2201 | 2) | |
2202 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2203 | if test $ac_must_keep_next = true; then | |
2204 | ac_must_keep_next=false # Got value, back to normal. | |
2205 | else | |
2206 | case $ac_arg in | |
2207 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2208 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2209 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2210 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2211 | case "$ac_configure_args0 " in | |
2212 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2213 | esac | |
2214 | ;; | |
2215 | -* ) ac_must_keep_next=true ;; | |
2216 | esac | |
2217 | fi | |
2218 | as_fn_append ac_configure_args " '$ac_arg'" | |
2219 | ;; | |
2220 | esac | |
631ef239 AC |
2221 | done |
2222 | done | |
7083c021 AC |
2223 | { ac_configure_args0=; unset ac_configure_args0;} |
2224 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2225 | |
7083c021 AC |
2226 | # When interrupted or exit'd, cleanup temporary files, and complete |
2227 | # config.log. We remove comments because anyway the quotes in there | |
2228 | # would cause problems or look ugly. | |
2229 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2230 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2231 | trap 'exit_status=$? | |
2232 | # Save into config.log some information that might help in debugging. | |
2233 | { | |
2234 | echo | |
631ef239 | 2235 | |
b6d0720c | 2236 | $as_echo "## ---------------- ## |
7083c021 | 2237 | ## Cache variables. ## |
b6d0720c | 2238 | ## ---------------- ##" |
7083c021 AC |
2239 | echo |
2240 | # The following way of writing the cache mishandles newlines in values, | |
2241 | ( | |
2242 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2243 | eval ac_val=\$$ac_var | |
2244 | case $ac_val in #( | |
2245 | *${as_nl}*) | |
2246 | case $ac_var in #( | |
2247 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2248 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2249 | esac | |
2250 | case $ac_var in #( | |
2251 | _ | IFS | as_nl) ;; #( | |
2252 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2253 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2254 | esac ;; | |
2255 | esac | |
2256 | done | |
2257 | (set) 2>&1 | | |
2258 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2259 | *${as_nl}ac_space=\ *) | |
2260 | sed -n \ | |
2261 | "s/'\''/'\''\\\\'\'''\''/g; | |
2262 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2263 | ;; #( | |
2264 | *) | |
2265 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2266 | ;; | |
2267 | esac | | |
2268 | sort | |
2269 | ) | |
2270 | echo | |
631ef239 | 2271 | |
b6d0720c | 2272 | $as_echo "## ----------------- ## |
7083c021 | 2273 | ## Output variables. ## |
b6d0720c | 2274 | ## ----------------- ##" |
7083c021 AC |
2275 | echo |
2276 | for ac_var in $ac_subst_vars | |
2277 | do | |
2278 | eval ac_val=\$$ac_var | |
2279 | case $ac_val in | |
2280 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2281 | esac | |
2282 | $as_echo "$ac_var='\''$ac_val'\''" | |
2283 | done | sort | |
2284 | echo | |
631ef239 | 2285 | |
7083c021 | 2286 | if test -n "$ac_subst_files"; then |
b6d0720c | 2287 | $as_echo "## ------------------- ## |
7083c021 | 2288 | ## File substitutions. ## |
b6d0720c | 2289 | ## ------------------- ##" |
7083c021 AC |
2290 | echo |
2291 | for ac_var in $ac_subst_files | |
2292 | do | |
2293 | eval ac_val=\$$ac_var | |
2294 | case $ac_val in | |
2295 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2296 | esac | |
2297 | $as_echo "$ac_var='\''$ac_val'\''" | |
2298 | done | sort | |
2299 | echo | |
2300 | fi | |
631ef239 | 2301 | |
7083c021 | 2302 | if test -s confdefs.h; then |
b6d0720c | 2303 | $as_echo "## ----------- ## |
7083c021 | 2304 | ## confdefs.h. ## |
b6d0720c | 2305 | ## ----------- ##" |
7083c021 AC |
2306 | echo |
2307 | cat confdefs.h | |
2308 | echo | |
2309 | fi | |
2310 | test "$ac_signal" != 0 && | |
2311 | $as_echo "$as_me: caught signal $ac_signal" | |
2312 | $as_echo "$as_me: exit $exit_status" | |
2313 | } >&5 | |
2314 | rm -f core *.core core.conftest.* && | |
2315 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2316 | exit $exit_status | |
2317 | ' 0 | |
2318 | for ac_signal in 1 2 13 15; do | |
2319 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2320 | done | |
2321 | ac_signal=0 | |
631ef239 | 2322 | |
7083c021 AC |
2323 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2324 | rm -f -r conftest* confdefs.h | |
631ef239 | 2325 | |
7083c021 | 2326 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2327 | |
7083c021 | 2328 | # Predefined preprocessor variables. |
212380e3 | 2329 | |
7083c021 AC |
2330 | cat >>confdefs.h <<_ACEOF |
2331 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2332 | _ACEOF |
212380e3 | 2333 | |
7083c021 AC |
2334 | cat >>confdefs.h <<_ACEOF |
2335 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2336 | _ACEOF |
212380e3 | 2337 | |
7083c021 AC |
2338 | cat >>confdefs.h <<_ACEOF |
2339 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2340 | _ACEOF |
212380e3 | 2341 | |
7083c021 AC |
2342 | cat >>confdefs.h <<_ACEOF |
2343 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2344 | _ACEOF | |
212380e3 | 2345 | |
7083c021 AC |
2346 | cat >>confdefs.h <<_ACEOF |
2347 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2348 | _ACEOF | |
212380e3 | 2349 | |
7083c021 AC |
2350 | cat >>confdefs.h <<_ACEOF |
2351 | #define PACKAGE_URL "$PACKAGE_URL" | |
2352 | _ACEOF | |
212380e3 | 2353 | |
631ef239 | 2354 | |
7083c021 AC |
2355 | # Let the site file select an alternate cache file if it wants to. |
2356 | # Prefer an explicitly selected file to automatically selected ones. | |
2357 | ac_site_file1=NONE | |
2358 | ac_site_file2=NONE | |
2359 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2360 | # We do not want a PATH search for config.site. |
2361 | case $CONFIG_SITE in #(( | |
2362 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2363 | */*) ac_site_file1=$CONFIG_SITE;; | |
2364 | *) ac_site_file1=./$CONFIG_SITE;; | |
2365 | esac | |
7083c021 AC |
2366 | elif test "x$prefix" != xNONE; then |
2367 | ac_site_file1=$prefix/share/config.site | |
2368 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2369 | else |
7083c021 AC |
2370 | ac_site_file1=$ac_default_prefix/share/config.site |
2371 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2372 | fi | |
2373 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2374 | do |
7083c021 | 2375 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2376 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2378 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2379 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2380 | . "$ac_site_file" \ |
2381 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2382 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2383 | as_fn_error $? "failed to load site script $ac_site_file | |
2384 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2385 | fi |
2386 | done | |
212380e3 | 2387 | |
7083c021 | 2388 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2389 | # Some versions of bash will fail to source /dev/null (special files |
2390 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2391 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2393 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2394 | case $cache_file in | |
2395 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2396 | *) . "./$cache_file";; | |
2397 | esac | |
2398 | fi | |
212380e3 | 2399 | else |
7083c021 AC |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2401 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2402 | >$cache_file | |
212380e3 AC |
2403 | fi |
2404 | ||
7083c021 AC |
2405 | # Check that the precious variables saved in the cache have kept the same |
2406 | # value. | |
2407 | ac_cache_corrupted=false | |
2408 | for ac_var in $ac_precious_vars; do | |
2409 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2410 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2411 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2412 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2413 | case $ac_old_set,$ac_new_set in | |
2414 | set,) | |
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2416 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2417 | ac_cache_corrupted=: ;; | |
2418 | ,set) | |
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2420 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2421 | ac_cache_corrupted=: ;; | |
2422 | ,);; | |
2423 | *) | |
2424 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2425 | # differences in whitespace do not lead to failure. | |
2426 | ac_old_val_w=`echo x $ac_old_val` | |
2427 | ac_new_val_w=`echo x $ac_new_val` | |
2428 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2430 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2431 | ac_cache_corrupted=: | |
2432 | else | |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2434 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2435 | eval $ac_var=\$ac_old_val | |
2436 | fi | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2438 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2440 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2441 | fi;; | |
2442 | esac | |
2443 | # Pass precious variables to config.status. | |
2444 | if test "$ac_new_set" = set; then | |
2445 | case $ac_new_val in | |
2446 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2447 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2448 | esac | |
2449 | case " $ac_configure_args " in | |
2450 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2451 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2452 | esac | |
212380e3 AC |
2453 | fi |
2454 | done | |
7083c021 AC |
2455 | if $ac_cache_corrupted; then |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2457 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2459 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2460 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2461 | fi |
7083c021 AC |
2462 | ## -------------------- ## |
2463 | ## Main body of script. ## | |
2464 | ## -------------------- ## | |
212380e3 | 2465 | |
7083c021 AC |
2466 | ac_ext=c |
2467 | ac_cpp='$CPP $CPPFLAGS' | |
2468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2471 | |
212380e3 | 2472 | |
212380e3 | 2473 | |
a5471f24 | 2474 | |
7083c021 | 2475 | ac_config_headers="$ac_config_headers include/setup.h" |
631ef239 | 2476 | |
212380e3 | 2477 | |
212380e3 | 2478 | |
631ef239 | 2479 | |
7083c021 AC |
2480 | ac_ext=c |
2481 | ac_cpp='$CPP $CPPFLAGS' | |
2482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2485 | if test -n "$ac_tool_prefix"; then | |
2486 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2487 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2489 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2490 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2491 | $as_echo_n "(cached) " >&6 |
212380e3 | 2492 | else |
7083c021 AC |
2493 | if test -n "$CC"; then |
2494 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2495 | else | |
2496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2497 | for as_dir in $PATH |
2498 | do | |
2499 | IFS=$as_save_IFS | |
2500 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2501 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2503 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2505 | break 2 |
2506 | fi | |
2507 | done | |
7083c021 | 2508 | done |
631ef239 | 2509 | IFS=$as_save_IFS |
212380e3 | 2510 | |
212380e3 | 2511 | fi |
7083c021 AC |
2512 | fi |
2513 | CC=$ac_cv_prog_CC | |
2514 | if test -n "$CC"; then | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2516 | $as_echo "$CC" >&6; } | |
212380e3 | 2517 | else |
7083c021 AC |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2519 | $as_echo "no" >&6; } | |
212380e3 AC |
2520 | fi |
2521 | ||
631ef239 | 2522 | |
7083c021 AC |
2523 | fi |
2524 | if test -z "$ac_cv_prog_CC"; then | |
2525 | ac_ct_CC=$CC | |
2526 | # Extract the first word of "gcc", so it can be a program name with args. | |
2527 | set dummy gcc; ac_word=$2 | |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2529 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2530 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2531 | $as_echo_n "(cached) " >&6 |
212380e3 | 2532 | else |
7083c021 AC |
2533 | if test -n "$ac_ct_CC"; then |
2534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2535 | else | |
2536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2537 | for as_dir in $PATH |
2538 | do | |
2539 | IFS=$as_save_IFS | |
2540 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2541 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2543 | ac_cv_prog_ac_ct_CC="gcc" |
2544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2545 | break 2 |
2546 | fi | |
2547 | done | |
7083c021 | 2548 | done |
631ef239 | 2549 | IFS=$as_save_IFS |
212380e3 | 2550 | |
212380e3 | 2551 | fi |
7083c021 AC |
2552 | fi |
2553 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2554 | if test -n "$ac_ct_CC"; then | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2556 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2557 | else |
7083c021 AC |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2559 | $as_echo "no" >&6; } | |
212380e3 AC |
2560 | fi |
2561 | ||
7083c021 AC |
2562 | if test "x$ac_ct_CC" = x; then |
2563 | CC="" | |
2564 | else | |
2565 | case $cross_compiling:$ac_tool_warned in | |
2566 | yes:) | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2568 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2569 | ac_tool_warned=yes ;; | |
2570 | esac | |
2571 | CC=$ac_ct_CC | |
2572 | fi | |
2573 | else | |
2574 | CC="$ac_cv_prog_CC" | |
2575 | fi | |
631ef239 | 2576 | |
7083c021 AC |
2577 | if test -z "$CC"; then |
2578 | if test -n "$ac_tool_prefix"; then | |
2579 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2580 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2582 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2583 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2584 | $as_echo_n "(cached) " >&6 |
212380e3 | 2585 | else |
7083c021 AC |
2586 | if test -n "$CC"; then |
2587 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2588 | else | |
2589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2590 | for as_dir in $PATH |
2591 | do | |
2592 | IFS=$as_save_IFS | |
2593 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2594 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2596 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2598 | break 2 |
2599 | fi | |
2600 | done | |
7083c021 | 2601 | done |
631ef239 | 2602 | IFS=$as_save_IFS |
7083c021 | 2603 | |
212380e3 | 2604 | fi |
7083c021 AC |
2605 | fi |
2606 | CC=$ac_cv_prog_CC | |
2607 | if test -n "$CC"; then | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2609 | $as_echo "$CC" >&6; } | |
212380e3 | 2610 | else |
7083c021 AC |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2612 | $as_echo "no" >&6; } | |
212380e3 AC |
2613 | fi |
2614 | ||
631ef239 | 2615 | |
7083c021 AC |
2616 | fi |
2617 | fi | |
2618 | if test -z "$CC"; then | |
2619 | # Extract the first word of "cc", so it can be a program name with args. | |
2620 | set dummy cc; ac_word=$2 | |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2622 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2623 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2624 | $as_echo_n "(cached) " >&6 |
212380e3 | 2625 | else |
7083c021 AC |
2626 | if test -n "$CC"; then |
2627 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2628 | else | |
2629 | ac_prog_rejected=no | |
2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2631 | for as_dir in $PATH |
2632 | do | |
2633 | IFS=$as_save_IFS | |
2634 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2635 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2637 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2638 | ac_prog_rejected=yes | |
2639 | continue | |
2640 | fi | |
2641 | ac_cv_prog_CC="cc" | |
2642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2643 | break 2 |
2644 | fi | |
2645 | done | |
7083c021 | 2646 | done |
631ef239 | 2647 | IFS=$as_save_IFS |
212380e3 | 2648 | |
7083c021 AC |
2649 | if test $ac_prog_rejected = yes; then |
2650 | # We found a bogon in the path, so make sure we never use it. | |
2651 | set dummy $ac_cv_prog_CC | |
2652 | shift | |
2653 | if test $# != 0; then | |
2654 | # We chose a different compiler from the bogus one. | |
2655 | # However, it has the same basename, so the bogon will be chosen | |
2656 | # first if we set CC to just the basename; use the full file name. | |
2657 | shift | |
2658 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2659 | fi | |
212380e3 | 2660 | fi |
7083c021 AC |
2661 | fi |
2662 | fi | |
2663 | CC=$ac_cv_prog_CC | |
2664 | if test -n "$CC"; then | |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2666 | $as_echo "$CC" >&6; } | |
212380e3 | 2667 | else |
7083c021 AC |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2669 | $as_echo "no" >&6; } | |
212380e3 AC |
2670 | fi |
2671 | ||
2672 | ||
7083c021 AC |
2673 | fi |
2674 | if test -z "$CC"; then | |
2675 | if test -n "$ac_tool_prefix"; then | |
2676 | for ac_prog in cl.exe | |
2677 | do | |
2678 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2679 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2681 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2682 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2683 | $as_echo_n "(cached) " >&6 |
212380e3 | 2684 | else |
7083c021 AC |
2685 | if test -n "$CC"; then |
2686 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2687 | else |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | for as_dir in $PATH | |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2695 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2697 | break 2 |
2698 | fi | |
2699 | done | |
7083c021 | 2700 | done |
631ef239 | 2701 | IFS=$as_save_IFS |
212380e3 AC |
2702 | |
2703 | fi | |
2704 | fi | |
7083c021 AC |
2705 | CC=$ac_cv_prog_CC |
2706 | if test -n "$CC"; then | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2708 | $as_echo "$CC" >&6; } | |
212380e3 | 2709 | else |
7083c021 AC |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2711 | $as_echo "no" >&6; } | |
212380e3 AC |
2712 | fi |
2713 | ||
631ef239 | 2714 | |
7083c021 AC |
2715 | test -n "$CC" && break |
2716 | done | |
212380e3 | 2717 | fi |
7083c021 AC |
2718 | if test -z "$CC"; then |
2719 | ac_ct_CC=$CC | |
2720 | for ac_prog in cl.exe | |
212380e3 AC |
2721 | do |
2722 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2723 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2725 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2726 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2727 | $as_echo_n "(cached) " >&6 |
212380e3 | 2728 | else |
7083c021 AC |
2729 | if test -n "$ac_ct_CC"; then |
2730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 AC |
2731 | else |
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2733 | for as_dir in $PATH | |
2734 | do | |
2735 | IFS=$as_save_IFS | |
2736 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2737 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2739 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2741 | break 2 |
2742 | fi | |
2743 | done | |
7083c021 | 2744 | done |
631ef239 | 2745 | IFS=$as_save_IFS |
212380e3 AC |
2746 | |
2747 | fi | |
2748 | fi | |
7083c021 AC |
2749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2750 | if test -n "$ac_ct_CC"; then | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2752 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2753 | else |
7083c021 AC |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2755 | $as_echo "no" >&6; } | |
212380e3 AC |
2756 | fi |
2757 | ||
631ef239 | 2758 | |
7083c021 | 2759 | test -n "$ac_ct_CC" && break |
212380e3 | 2760 | done |
212380e3 | 2761 | |
7083c021 AC |
2762 | if test "x$ac_ct_CC" = x; then |
2763 | CC="" | |
2764 | else | |
2765 | case $cross_compiling:$ac_tool_warned in | |
2766 | yes:) | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2768 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2769 | ac_tool_warned=yes ;; | |
2770 | esac | |
2771 | CC=$ac_ct_CC | |
2772 | fi | |
2773 | fi | |
2774 | ||
2775 | fi | |
2776 | ||
2777 | ||
2778 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2779 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2780 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2781 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2782 | |
2783 | # Provide some information about the compiler. | |
2784 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2785 | set X $ac_compile | |
2786 | ac_compiler=$2 | |
2787 | for ac_option in --version -v -V -qversion; do | |
2788 | { { ac_try="$ac_compiler $ac_option >&5" | |
2789 | case "(($ac_try" in | |
2790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2791 | *) ac_try_echo=$ac_try;; | |
2792 | esac | |
2793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2794 | $as_echo "$ac_try_echo"; } >&5 | |
2795 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2796 | ac_status=$? | |
2797 | if test -s conftest.err; then | |
2798 | sed '10a\ | |
2799 | ... rest of stderr output deleted ... | |
2800 | 10q' conftest.err >conftest.er1 | |
2801 | cat conftest.er1 >&5 | |
7083c021 | 2802 | fi |
6fb6bd15 | 2803 | rm -f conftest.er1 conftest.err |
7083c021 AC |
2804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2805 | test $ac_status = 0; } | |
2806 | done | |
2807 | ||
2808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2809 | /* end confdefs.h. */ | |
6fb6bd15 | 2810 | |
212380e3 | 2811 | int |
7083c021 | 2812 | main () |
212380e3 | 2813 | { |
7083c021 AC |
2814 | |
2815 | ; | |
2816 | return 0; | |
212380e3 AC |
2817 | } |
2818 | _ACEOF | |
7083c021 | 2819 | ac_clean_files_save=$ac_clean_files |
6fb6bd15 | 2820 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
7083c021 AC |
2821 | # Try to create an executable without -o first, disregard a.out. |
2822 | # It will help us diagnose broken compilers, and finding out an intuition | |
2823 | # of exeext. | |
6fb6bd15 AC |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2825 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
7083c021 AC |
2826 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2827 | ||
2828 | # The possible output files: | |
2829 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2830 | ||
2831 | ac_rmfiles= | |
2832 | for ac_file in $ac_files | |
2833 | do | |
2834 | case $ac_file in | |
2835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2836 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2837 | esac | |
2838 | done | |
2839 | rm -f $ac_rmfiles | |
2840 | ||
2841 | if { { ac_try="$ac_link_default" | |
631ef239 AC |
2842 | case "(($ac_try" in |
2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2844 | *) ac_try_echo=$ac_try;; | |
2845 | esac | |
7083c021 AC |
2846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2847 | $as_echo "$ac_try_echo"; } >&5 | |
2848 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2849 | ac_status=$? |
7083c021 AC |
2850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2851 | test $ac_status = 0; }; then : | |
2852 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2853 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2854 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2855 | # so that the user can short-circuit this test for compilers unknown to | |
2856 | # Autoconf. | |
2857 | for ac_file in $ac_files '' | |
2858 | do | |
2859 | test -f "$ac_file" || continue | |
2860 | case $ac_file in | |
2861 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2862 | ;; | |
2863 | [ab].out ) | |
2864 | # We found the default executable, but exeext='' is most | |
2865 | # certainly right. | |
2866 | break;; | |
2867 | *.* ) | |
2868 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2869 | then :; else | |
2870 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2871 | fi | |
2872 | # We set ac_cv_exeext here because the later test for it is not | |
2873 | # safe: cross compilers may not add the suffix if given an `-o' | |
2874 | # argument, so we may need to know it at that point already. | |
2875 | # Even if this section looks crufty: it has the advantage of | |
2876 | # actually working. | |
2877 | break;; | |
2878 | * ) | |
2879 | break;; | |
2880 | esac | |
2881 | done | |
2882 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
212380e3 | 2883 | |
212380e3 | 2884 | else |
7083c021 | 2885 | ac_file='' |
631ef239 | 2886 | fi |
7083c021 | 2887 | if test -z "$ac_file"; then : |
6fb6bd15 AC |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2889 | $as_echo "no" >&6; } | |
2890 | $as_echo "$as_me: failed program was:" >&5 | |
7083c021 AC |
2891 | sed 's/^/| /' conftest.$ac_ext >&5 |
2892 | ||
2893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2895 | as_fn_error 77 "C compiler cannot create executables |
2896 | See \`config.log' for more details" "$LINENO" 5; } | |
6fb6bd15 AC |
2897 | else |
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2899 | $as_echo "yes" >&6; } | |
631ef239 | 2900 | fi |
6fb6bd15 AC |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2902 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2904 | $as_echo "$ac_file" >&6; } | |
7083c021 | 2905 | ac_exeext=$ac_cv_exeext |
631ef239 | 2906 | |
6fb6bd15 | 2907 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
7083c021 | 2908 | ac_clean_files=$ac_clean_files_save |
7083c021 AC |
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2910 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2911 | if { { ac_try="$ac_link" | |
2912 | case "(($ac_try" in | |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2914 | *) ac_try_echo=$ac_try;; | |
2915 | esac | |
2916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2917 | $as_echo "$ac_try_echo"; } >&5 | |
2918 | (eval "$ac_link") 2>&5 | |
2919 | ac_status=$? | |
2920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2921 | test $ac_status = 0; }; then : | |
2922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2924 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2925 | # `rm'. | |
2926 | for ac_file in conftest.exe conftest conftest.*; do | |
2927 | test -f "$ac_file" || continue | |
2928 | case $ac_file in | |
2929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2931 | break;; | |
2932 | * ) break;; | |
2933 | esac | |
2934 | done | |
212380e3 | 2935 | else |
7083c021 AC |
2936 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2938 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2939 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 2940 | fi |
6fb6bd15 | 2941 | rm -f conftest conftest$ac_cv_exeext |
7083c021 AC |
2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2943 | $as_echo "$ac_cv_exeext" >&6; } | |
2944 | ||
2945 | rm -f conftest.$ac_ext | |
2946 | EXEEXT=$ac_cv_exeext | |
2947 | ac_exeext=$EXEEXT | |
6fb6bd15 AC |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2949 | /* end confdefs.h. */ | |
2950 | #include <stdio.h> | |
2951 | int | |
2952 | main () | |
2953 | { | |
2954 | FILE *f = fopen ("conftest.out", "w"); | |
2955 | return ferror (f) || fclose (f) != 0; | |
2956 | ||
2957 | ; | |
2958 | return 0; | |
2959 | } | |
2960 | _ACEOF | |
2961 | ac_clean_files="$ac_clean_files conftest.out" | |
2962 | # Check that the compiler produces executables we can run. If not, either | |
2963 | # the compiler is broken, or we cross compile. | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2965 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2966 | if test "$cross_compiling" != yes; then | |
2967 | { { ac_try="$ac_link" | |
2968 | case "(($ac_try" in | |
2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2970 | *) ac_try_echo=$ac_try;; | |
2971 | esac | |
2972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2973 | $as_echo "$ac_try_echo"; } >&5 | |
2974 | (eval "$ac_link") 2>&5 | |
2975 | ac_status=$? | |
2976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2977 | test $ac_status = 0; } | |
2978 | if { ac_try='./conftest$ac_cv_exeext' | |
2979 | { { case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
2983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2984 | $as_echo "$ac_try_echo"; } >&5 | |
2985 | (eval "$ac_try") 2>&5 | |
2986 | ac_status=$? | |
2987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2988 | test $ac_status = 0; }; }; then | |
2989 | cross_compiling=no | |
2990 | else | |
2991 | if test "$cross_compiling" = maybe; then | |
2992 | cross_compiling=yes | |
2993 | else | |
2994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c | 2996 | as_fn_error $? "cannot run C compiled programs. |
6fb6bd15 | 2997 | If you meant to cross compile, use \`--host'. |
b6d0720c | 2998 | See \`config.log' for more details" "$LINENO" 5; } |
6fb6bd15 AC |
2999 | fi |
3000 | fi | |
3001 | fi | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3003 | $as_echo "$cross_compiling" >&6; } | |
3004 | ||
3005 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3006 | ac_clean_files=$ac_clean_files_save | |
7083c021 AC |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3008 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b6d0720c | 3009 | if ${ac_cv_objext+:} false; then : |
7083c021 AC |
3010 | $as_echo_n "(cached) " >&6 |
3011 | else | |
3012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3013 | /* end confdefs.h. */ | |
212380e3 | 3014 | |
7083c021 AC |
3015 | int |
3016 | main () | |
3017 | { | |
3018 | ||
3019 | ; | |
3020 | return 0; | |
3021 | } | |
212380e3 | 3022 | _ACEOF |
7083c021 AC |
3023 | rm -f conftest.o conftest.obj |
3024 | if { { ac_try="$ac_compile" | |
631ef239 AC |
3025 | case "(($ac_try" in |
3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3027 | *) ac_try_echo=$ac_try;; | |
3028 | esac | |
7083c021 AC |
3029 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3030 | $as_echo "$ac_try_echo"; } >&5 | |
3031 | (eval "$ac_compile") 2>&5 | |
212380e3 | 3032 | ac_status=$? |
7083c021 AC |
3033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3034 | test $ac_status = 0; }; then : | |
3035 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3036 | test -f "$ac_file" || continue; | |
3037 | case $ac_file in | |
3038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3040 | break;; | |
3041 | esac | |
3042 | done | |
212380e3 | 3043 | else |
7083c021 | 3044 | $as_echo "$as_me: failed program was:" >&5 |
212380e3 AC |
3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
3046 | ||
7083c021 AC |
3047 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3048 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3049 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3050 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
3051 | fi |
3052 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
212380e3 | 3053 | fi |
7083c021 AC |
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3055 | $as_echo "$ac_cv_objext" >&6; } | |
3056 | OBJEXT=$ac_cv_objext | |
3057 | ac_objext=$OBJEXT | |
3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3059 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 3060 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 AC |
3061 | $as_echo_n "(cached) " >&6 |
3062 | else | |
3063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3064 | /* end confdefs.h. */ | |
212380e3 | 3065 | |
7083c021 AC |
3066 | int |
3067 | main () | |
3068 | { | |
3069 | #ifndef __GNUC__ | |
3070 | choke me | |
3071 | #endif | |
212380e3 | 3072 | |
7083c021 AC |
3073 | ; |
3074 | return 0; | |
3075 | } | |
3076 | _ACEOF | |
3077 | if ac_fn_c_try_compile "$LINENO"; then : | |
3078 | ac_compiler_gnu=yes | |
3079 | else | |
3080 | ac_compiler_gnu=no | |
212380e3 | 3081 | fi |
7083c021 AC |
3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3084 | ||
3085 | fi | |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3087 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3088 | if test $ac_compiler_gnu = yes; then | |
3089 | GCC=yes | |
3090 | else | |
3091 | GCC= | |
212380e3 | 3092 | fi |
7083c021 AC |
3093 | ac_test_CFLAGS=${CFLAGS+set} |
3094 | ac_save_CFLAGS=$CFLAGS | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3096 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 3097 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
3098 | $as_echo_n "(cached) " >&6 |
3099 | else | |
3100 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3101 | ac_c_werror_flag=yes | |
3102 | ac_cv_prog_cc_g=no | |
3103 | CFLAGS="-g" | |
3104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3105 | /* end confdefs.h. */ | |
212380e3 | 3106 | |
7083c021 AC |
3107 | int |
3108 | main () | |
3109 | { | |
631ef239 | 3110 | |
7083c021 AC |
3111 | ; |
3112 | return 0; | |
3113 | } | |
212380e3 | 3114 | _ACEOF |
7083c021 AC |
3115 | if ac_fn_c_try_compile "$LINENO"; then : |
3116 | ac_cv_prog_cc_g=yes | |
212380e3 | 3117 | else |
7083c021 AC |
3118 | CFLAGS="" |
3119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3120 | /* end confdefs.h. */ | |
212380e3 | 3121 | |
7083c021 AC |
3122 | int |
3123 | main () | |
3124 | { | |
631ef239 | 3125 | |
7083c021 AC |
3126 | ; |
3127 | return 0; | |
3128 | } | |
3129 | _ACEOF | |
3130 | if ac_fn_c_try_compile "$LINENO"; then : | |
631ef239 | 3131 | |
7083c021 AC |
3132 | else |
3133 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3134 | CFLAGS="-g" | |
3135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3136 | /* end confdefs.h. */ | |
212380e3 | 3137 | |
7083c021 AC |
3138 | int |
3139 | main () | |
3140 | { | |
212380e3 | 3141 | |
7083c021 AC |
3142 | ; |
3143 | return 0; | |
3144 | } | |
212380e3 | 3145 | _ACEOF |
7083c021 AC |
3146 | if ac_fn_c_try_compile "$LINENO"; then : |
3147 | ac_cv_prog_cc_g=yes | |
212380e3 | 3148 | fi |
7083c021 | 3149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3150 | fi |
7083c021 | 3151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3152 | fi |
7083c021 AC |
3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3154 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 3155 | fi |
7083c021 AC |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3157 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3158 | if test "$ac_test_CFLAGS" = set; then | |
3159 | CFLAGS=$ac_save_CFLAGS | |
3160 | elif test $ac_cv_prog_cc_g = yes; then | |
3161 | if test "$GCC" = yes; then | |
3162 | CFLAGS="-g -O2" | |
3163 | else | |
3164 | CFLAGS="-g" | |
3165 | fi | |
212380e3 | 3166 | else |
7083c021 AC |
3167 | if test "$GCC" = yes; then |
3168 | CFLAGS="-O2" | |
3169 | else | |
3170 | CFLAGS= | |
3171 | fi | |
3172 | fi | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3174 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 3175 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
3176 | $as_echo_n "(cached) " >&6 |
3177 | else | |
3178 | ac_cv_prog_cc_c89=no | |
3179 | ac_save_CC=$CC | |
3180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3181 | /* end confdefs.h. */ |
212380e3 | 3182 | #include <stdarg.h> |
7083c021 | 3183 | #include <stdio.h> |
2eff3833 | 3184 | struct stat; |
7083c021 AC |
3185 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3186 | struct buf { int x; }; | |
3187 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3188 | static char *e (p, i) | |
3189 | char **p; | |
3190 | int i; | |
3191 | { | |
3192 | return p[i]; | |
3193 | } | |
3194 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3195 | { | |
3196 | char *s; | |
3197 | va_list v; | |
3198 | va_start (v,p); | |
3199 | s = g (p, va_arg (v,int)); | |
3200 | va_end (v); | |
3201 | return s; | |
3202 | } | |
3203 | ||
3204 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3205 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3206 | These don't provoke an error unfortunately, instead are silently treated | |
3207 | as 'x'. The following induces an error, until -std is added to get | |
3208 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3209 | array size at least. It's necessary to write '\x00'==0 to get something | |
3210 | that's true only with -std. */ | |
3211 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3212 | ||
3213 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3214 | inside strings and character constants. */ | |
3215 | #define FOO(x) 'x' | |
3216 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
212380e3 | 3217 | |
7083c021 AC |
3218 | int test (int i, double x); |
3219 | struct s1 {int (*f) (int a);}; | |
3220 | struct s2 {int (*f) (double a);}; | |
3221 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3222 | int argc; | |
3223 | char **argv; | |
212380e3 AC |
3224 | int |
3225 | main () | |
3226 | { | |
7083c021 | 3227 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
3228 | ; |
3229 | return 0; | |
3230 | } | |
3231 | _ACEOF | |
7083c021 AC |
3232 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3233 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3234 | do | |
3235 | CC="$ac_save_CC $ac_arg" | |
3236 | if ac_fn_c_try_compile "$LINENO"; then : | |
3237 | ac_cv_prog_cc_c89=$ac_arg | |
3238 | fi | |
3239 | rm -f core conftest.err conftest.$ac_objext | |
3240 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3241 | done | |
3242 | rm -f conftest.$ac_ext | |
3243 | CC=$ac_save_CC | |
3244 | ||
3245 | fi | |
3246 | # AC_CACHE_VAL | |
3247 | case "x$ac_cv_prog_cc_c89" in | |
3248 | x) | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3250 | $as_echo "none needed" >&6; } ;; | |
3251 | xno) | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3253 | $as_echo "unsupported" >&6; } ;; | |
3254 | *) | |
3255 | CC="$CC $ac_cv_prog_cc_c89" | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3257 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 3258 | esac |
7083c021 | 3259 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 3260 | |
212380e3 | 3261 | fi |
631ef239 | 3262 | |
7083c021 AC |
3263 | ac_ext=c |
3264 | ac_cpp='$CPP $CPPFLAGS' | |
3265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3268 | |
212380e3 | 3269 | |
7083c021 AC |
3270 | ac_ext=c |
3271 | ac_cpp='$CPP $CPPFLAGS' | |
3272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3276 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3277 | # On Suns, sometimes $CPP names a directory. | |
3278 | if test -n "$CPP" && test -d "$CPP"; then | |
3279 | CPP= | |
3280 | fi | |
3281 | if test -z "$CPP"; then | |
b6d0720c | 3282 | if ${ac_cv_prog_CPP+:} false; then : |
7083c021 AC |
3283 | $as_echo_n "(cached) " >&6 |
3284 | else | |
3285 | # Double quotes because CPP needs to be expanded | |
3286 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3287 | do | |
3288 | ac_preproc_ok=false | |
3289 | for ac_c_preproc_warn_flag in '' yes | |
3290 | do | |
3291 | # Use a header file that comes with gcc, so configuring glibc | |
3292 | # with a fresh cross-compiler works. | |
3293 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3294 | # <limits.h> exists even on freestanding compilers. | |
3295 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3296 | # not just through cpp. "Syntax error" is here to catch this case. | |
3297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3298 | /* end confdefs.h. */ | |
3299 | #ifdef __STDC__ | |
3300 | # include <limits.h> | |
3301 | #else | |
3302 | # include <assert.h> | |
3303 | #endif | |
3304 | Syntax error | |
212380e3 | 3305 | _ACEOF |
7083c021 | 3306 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3307 | |
7083c021 AC |
3308 | else |
3309 | # Broken: fails on valid input. | |
3310 | continue | |
212380e3 | 3311 | fi |
b6d0720c | 3312 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3313 | |
7083c021 AC |
3314 | # OK, works on sane cases. Now check whether nonexistent headers |
3315 | # can be detected and how. | |
3316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3317 | /* end confdefs.h. */ |
7083c021 | 3318 | #include <ac_nonexistent.h> |
212380e3 | 3319 | _ACEOF |
7083c021 AC |
3320 | if ac_fn_c_try_cpp "$LINENO"; then : |
3321 | # Broken: success on invalid input. | |
3322 | continue | |
212380e3 | 3323 | else |
7083c021 AC |
3324 | # Passes both tests. |
3325 | ac_preproc_ok=: | |
3326 | break | |
212380e3 | 3327 | fi |
b6d0720c | 3328 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3329 | |
7083c021 AC |
3330 | done |
3331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b6d0720c | 3332 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
3333 | if $ac_preproc_ok; then : |
3334 | break | |
212380e3 AC |
3335 | fi |
3336 | ||
7083c021 AC |
3337 | done |
3338 | ac_cv_prog_CPP=$CPP | |
3339 | ||
3340 | fi | |
3341 | CPP=$ac_cv_prog_CPP | |
212380e3 | 3342 | else |
7083c021 AC |
3343 | ac_cv_prog_CPP=$CPP |
3344 | fi | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3346 | $as_echo "$CPP" >&6; } | |
3347 | ac_preproc_ok=false | |
3348 | for ac_c_preproc_warn_flag in '' yes | |
3349 | do | |
3350 | # Use a header file that comes with gcc, so configuring glibc | |
3351 | # with a fresh cross-compiler works. | |
3352 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3353 | # <limits.h> exists even on freestanding compilers. | |
3354 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3355 | # not just through cpp. "Syntax error" is here to catch this case. | |
3356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3357 | /* end confdefs.h. */ |
7083c021 AC |
3358 | #ifdef __STDC__ |
3359 | # include <limits.h> | |
212380e3 | 3360 | #else |
7083c021 | 3361 | # include <assert.h> |
212380e3 | 3362 | #endif |
7083c021 | 3363 | Syntax error |
212380e3 | 3364 | _ACEOF |
7083c021 | 3365 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3366 | |
7083c021 AC |
3367 | else |
3368 | # Broken: fails on valid input. | |
3369 | continue | |
212380e3 | 3370 | fi |
b6d0720c | 3371 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3372 | |
7083c021 AC |
3373 | # OK, works on sane cases. Now check whether nonexistent headers |
3374 | # can be detected and how. | |
3375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3376 | /* end confdefs.h. */ |
7083c021 | 3377 | #include <ac_nonexistent.h> |
212380e3 | 3378 | _ACEOF |
7083c021 AC |
3379 | if ac_fn_c_try_cpp "$LINENO"; then : |
3380 | # Broken: success on invalid input. | |
3381 | continue | |
212380e3 | 3382 | else |
7083c021 AC |
3383 | # Passes both tests. |
3384 | ac_preproc_ok=: | |
3385 | break | |
212380e3 | 3386 | fi |
b6d0720c | 3387 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 AC |
3388 | |
3389 | done | |
7083c021 | 3390 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b6d0720c | 3391 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 3392 | if $ac_preproc_ok; then : |
212380e3 | 3393 | |
7083c021 AC |
3394 | else |
3395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3397 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3398 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 3399 | fi |
212380e3 | 3400 | |
7083c021 AC |
3401 | ac_ext=c |
3402 | ac_cpp='$CPP $CPPFLAGS' | |
3403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
3406 | |
3407 | ||
7083c021 AC |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3409 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
b6d0720c | 3410 | if ${ac_cv_path_GREP+:} false; then : |
7083c021 | 3411 | $as_echo_n "(cached) " >&6 |
212380e3 | 3412 | else |
7083c021 AC |
3413 | if test -z "$GREP"; then |
3414 | ac_path_GREP_found=false | |
3415 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3417 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3418 | do | |
3419 | IFS=$as_save_IFS | |
3420 | test -z "$as_dir" && as_dir=. | |
3421 | for ac_prog in grep ggrep; do | |
3422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3423 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
2eff3833 | 3424 | as_fn_executable_p "$ac_path_GREP" || continue |
7083c021 AC |
3425 | # Check for GNU ac_path_GREP and select it if it is found. |
3426 | # Check for GNU $ac_path_GREP | |
3427 | case `"$ac_path_GREP" --version 2>&1` in | |
3428 | *GNU*) | |
3429 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3430 | *) | |
3431 | ac_count=0 | |
3432 | $as_echo_n 0123456789 >"conftest.in" | |
3433 | while : | |
3434 | do | |
3435 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3436 | mv "conftest.tmp" "conftest.in" | |
3437 | cp "conftest.in" "conftest.nl" | |
3438 | $as_echo 'GREP' >> "conftest.nl" | |
3439 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3440 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3441 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3442 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3443 | # Best one so far, save it but keep looking for a better one | |
3444 | ac_cv_path_GREP="$ac_path_GREP" | |
3445 | ac_path_GREP_max=$ac_count | |
3446 | fi | |
3447 | # 10*(2^10) chars as input seems more than enough | |
3448 | test $ac_count -gt 10 && break | |
3449 | done | |
3450 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3451 | esac |
7083c021 AC |
3452 | |
3453 | $ac_path_GREP_found && break 3 | |
3454 | done | |
3455 | done | |
3456 | done | |
3457 | IFS=$as_save_IFS | |
3458 | if test -z "$ac_cv_path_GREP"; then | |
b6d0720c | 3459 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3460 | fi |
212380e3 | 3461 | else |
7083c021 AC |
3462 | ac_cv_path_GREP=$GREP |
3463 | fi | |
212380e3 | 3464 | |
212380e3 | 3465 | fi |
7083c021 AC |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3467 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3468 | GREP="$ac_cv_path_GREP" | |
631ef239 | 3469 | |
212380e3 | 3470 | |
7083c021 AC |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3472 | $as_echo_n "checking for egrep... " >&6; } | |
b6d0720c | 3473 | if ${ac_cv_path_EGREP+:} false; then : |
7083c021 AC |
3474 | $as_echo_n "(cached) " >&6 |
3475 | else | |
3476 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3477 | then ac_cv_path_EGREP="$GREP -E" | |
3478 | else | |
3479 | if test -z "$EGREP"; then | |
3480 | ac_path_EGREP_found=false | |
3481 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3483 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3484 | do | |
3485 | IFS=$as_save_IFS | |
3486 | test -z "$as_dir" && as_dir=. | |
3487 | for ac_prog in egrep; do | |
3488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3489 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
2eff3833 | 3490 | as_fn_executable_p "$ac_path_EGREP" || continue |
7083c021 AC |
3491 | # Check for GNU ac_path_EGREP and select it if it is found. |
3492 | # Check for GNU $ac_path_EGREP | |
3493 | case `"$ac_path_EGREP" --version 2>&1` in | |
3494 | *GNU*) | |
3495 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3496 | *) | |
3497 | ac_count=0 | |
3498 | $as_echo_n 0123456789 >"conftest.in" | |
3499 | while : | |
3500 | do | |
3501 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3502 | mv "conftest.tmp" "conftest.in" | |
3503 | cp "conftest.in" "conftest.nl" | |
3504 | $as_echo 'EGREP' >> "conftest.nl" | |
3505 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3506 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3507 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3508 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3509 | # Best one so far, save it but keep looking for a better one | |
3510 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3511 | ac_path_EGREP_max=$ac_count | |
3512 | fi | |
3513 | # 10*(2^10) chars as input seems more than enough | |
3514 | test $ac_count -gt 10 && break | |
3515 | done | |
3516 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3517 | esac |
212380e3 | 3518 | |
7083c021 AC |
3519 | $ac_path_EGREP_found && break 3 |
3520 | done | |
3521 | done | |
3522 | done | |
3523 | IFS=$as_save_IFS | |
3524 | if test -z "$ac_cv_path_EGREP"; then | |
b6d0720c | 3525 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3526 | fi |
212380e3 | 3527 | else |
7083c021 | 3528 | ac_cv_path_EGREP=$EGREP |
212380e3 | 3529 | fi |
212380e3 | 3530 | |
7083c021 | 3531 | fi |
212380e3 | 3532 | fi |
7083c021 AC |
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3534 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3535 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3536 | |
3537 | ||
7083c021 AC |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3539 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 3540 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 3541 | $as_echo_n "(cached) " >&6 |
212380e3 | 3542 | else |
7083c021 | 3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3544 | /* end confdefs.h. */ |
7083c021 AC |
3545 | #include <stdlib.h> |
3546 | #include <stdarg.h> | |
3547 | #include <string.h> | |
3548 | #include <float.h> | |
212380e3 AC |
3549 | |
3550 | int | |
3551 | main () | |
3552 | { | |
212380e3 AC |
3553 | |
3554 | ; | |
3555 | return 0; | |
3556 | } | |
3557 | _ACEOF | |
7083c021 AC |
3558 | if ac_fn_c_try_compile "$LINENO"; then : |
3559 | ac_cv_header_stdc=yes | |
212380e3 | 3560 | else |
7083c021 | 3561 | ac_cv_header_stdc=no |
212380e3 | 3562 | fi |
631ef239 | 3563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3564 | |
7083c021 AC |
3565 | if test $ac_cv_header_stdc = yes; then |
3566 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3568 | /* end confdefs.h. */ | |
3569 | #include <string.h> | |
212380e3 | 3570 | |
7083c021 AC |
3571 | _ACEOF |
3572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3573 | $EGREP "memchr" >/dev/null 2>&1; then : | |
212380e3 | 3574 | |
212380e3 | 3575 | else |
7083c021 AC |
3576 | ac_cv_header_stdc=no |
3577 | fi | |
3578 | rm -f conftest* | |
212380e3 | 3579 | |
7083c021 | 3580 | fi |
212380e3 | 3581 | |
7083c021 AC |
3582 | if test $ac_cv_header_stdc = yes; then |
3583 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3585 | /* end confdefs.h. */ |
7083c021 | 3586 | #include <stdlib.h> |
212380e3 | 3587 | |
212380e3 | 3588 | _ACEOF |
7083c021 AC |
3589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3590 | $EGREP "free" >/dev/null 2>&1; then : | |
3591 | ||
212380e3 | 3592 | else |
7083c021 AC |
3593 | ac_cv_header_stdc=no |
3594 | fi | |
3595 | rm -f conftest* | |
212380e3 | 3596 | |
212380e3 | 3597 | fi |
631ef239 | 3598 | |
7083c021 AC |
3599 | if test $ac_cv_header_stdc = yes; then |
3600 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3601 | if test "$cross_compiling" = yes; then : | |
3602 | : | |
212380e3 | 3603 | else |
7083c021 | 3604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3605 | /* end confdefs.h. */ |
7083c021 AC |
3606 | #include <ctype.h> |
3607 | #include <stdlib.h> | |
3608 | #if ((' ' & 0x0FF) == 0x020) | |
3609 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3610 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3611 | #else | |
3612 | # define ISLOWER(c) \ | |
3613 | (('a' <= (c) && (c) <= 'i') \ | |
3614 | || ('j' <= (c) && (c) <= 'r') \ | |
3615 | || ('s' <= (c) && (c) <= 'z')) | |
3616 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3617 | #endif | |
3618 | ||
3619 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
3620 | int |
3621 | main () | |
3622 | { | |
7083c021 AC |
3623 | int i; |
3624 | for (i = 0; i < 256; i++) | |
3625 | if (XOR (islower (i), ISLOWER (i)) | |
3626 | || toupper (i) != TOUPPER (i)) | |
3627 | return 2; | |
212380e3 AC |
3628 | return 0; |
3629 | } | |
3630 | _ACEOF | |
7083c021 AC |
3631 | if ac_fn_c_try_run "$LINENO"; then : |
3632 | ||
3633 | else | |
3634 | ac_cv_header_stdc=no | |
212380e3 | 3635 | fi |
7083c021 AC |
3636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3637 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 3638 | fi |
212380e3 | 3639 | |
7083c021 AC |
3640 | fi |
3641 | fi | |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3643 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3644 | if test $ac_cv_header_stdc = yes; then | |
3645 | ||
3646 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
631ef239 | 3647 | |
212380e3 | 3648 | fi |
631ef239 | 3649 | |
7083c021 AC |
3650 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3651 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3652 | inttypes.h stdint.h unistd.h | |
3653 | do : | |
3654 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3655 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3656 | " | |
b6d0720c | 3657 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
3658 | cat >>confdefs.h <<_ACEOF |
3659 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 3660 | _ACEOF |
631ef239 | 3661 | |
7083c021 | 3662 | fi |
631ef239 | 3663 | |
7083c021 AC |
3664 | done |
3665 | ||
3666 | ||
3667 | ||
3668 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b6d0720c | 3669 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 | 3670 | MINIX=yes |
212380e3 | 3671 | else |
7083c021 AC |
3672 | MINIX= |
3673 | fi | |
3674 | ||
3675 | ||
3676 | if test "$MINIX" = yes; then | |
3677 | ||
3678 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3679 | ||
212380e3 | 3680 | |
7083c021 | 3681 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 AC |
3682 | |
3683 | ||
7083c021 | 3684 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 3685 | |
7083c021 | 3686 | fi |
212380e3 | 3687 | |
212380e3 | 3688 | |
7083c021 AC |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3690 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b6d0720c | 3691 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
7083c021 | 3692 | $as_echo_n "(cached) " >&6 |
212380e3 | 3693 | else |
7083c021 | 3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3695 | /* end confdefs.h. */ |
7083c021 | 3696 | |
2eff3833 JT |
3697 | # define __EXTENSIONS__ 1 |
3698 | $ac_includes_default | |
212380e3 AC |
3699 | int |
3700 | main () | |
3701 | { | |
7083c021 | 3702 | |
212380e3 AC |
3703 | ; |
3704 | return 0; | |
3705 | } | |
3706 | _ACEOF | |
7083c021 AC |
3707 | if ac_fn_c_try_compile "$LINENO"; then : |
3708 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 3709 | else |
7083c021 | 3710 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 3711 | fi |
631ef239 | 3712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3713 | fi |
7083c021 AC |
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3715 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3716 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3717 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 3718 | |
7083c021 | 3719 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 3720 | |
7083c021 AC |
3721 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3722 | ||
3723 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3724 | ||
3725 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 3726 | |
7083c021 AC |
3727 | |
3728 | ||
3729 | ||
3730 | OLD_CFLAGS="$CFLAGS" | |
3731 | ac_ext=c | |
3732 | ac_cpp='$CPP $CPPFLAGS' | |
3733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3736 | if test -n "$ac_tool_prefix"; then | |
3737 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3738 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3740 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3741 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3742 | $as_echo_n "(cached) " >&6 |
212380e3 | 3743 | else |
7083c021 AC |
3744 | if test -n "$CC"; then |
3745 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3746 | else |
7083c021 AC |
3747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3748 | for as_dir in $PATH | |
3749 | do | |
3750 | IFS=$as_save_IFS | |
3751 | test -z "$as_dir" && as_dir=. | |
3752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3754 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3756 | break 2 | |
3757 | fi | |
3758 | done | |
3759 | done | |
3760 | IFS=$as_save_IFS | |
212380e3 | 3761 | |
212380e3 | 3762 | fi |
212380e3 | 3763 | fi |
7083c021 AC |
3764 | CC=$ac_cv_prog_CC |
3765 | if test -n "$CC"; then | |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3767 | $as_echo "$CC" >&6; } | |
212380e3 | 3768 | else |
7083c021 AC |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3770 | $as_echo "no" >&6; } | |
3771 | fi | |
212380e3 | 3772 | |
212380e3 AC |
3773 | |
3774 | fi | |
7083c021 AC |
3775 | if test -z "$ac_cv_prog_CC"; then |
3776 | ac_ct_CC=$CC | |
3777 | # Extract the first word of "gcc", so it can be a program name with args. | |
3778 | set dummy gcc; ac_word=$2 | |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3780 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3781 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3782 | $as_echo_n "(cached) " >&6 |
212380e3 | 3783 | else |
7083c021 AC |
3784 | if test -n "$ac_ct_CC"; then |
3785 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 3786 | else |
7083c021 AC |
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3788 | for as_dir in $PATH | |
3789 | do | |
3790 | IFS=$as_save_IFS | |
3791 | test -z "$as_dir" && as_dir=. | |
3792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3794 | ac_cv_prog_ac_ct_CC="gcc" |
3795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3796 | break 2 | |
3797 | fi | |
3798 | done | |
3799 | done | |
3800 | IFS=$as_save_IFS | |
212380e3 | 3801 | |
212380e3 | 3802 | fi |
212380e3 | 3803 | fi |
7083c021 AC |
3804 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3805 | if test -n "$ac_ct_CC"; then | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3807 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 3808 | else |
7083c021 AC |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3810 | $as_echo "no" >&6; } | |
3811 | fi | |
212380e3 | 3812 | |
7083c021 AC |
3813 | if test "x$ac_ct_CC" = x; then |
3814 | CC="" | |
3815 | else | |
3816 | case $cross_compiling:$ac_tool_warned in | |
3817 | yes:) | |
3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3819 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3820 | ac_tool_warned=yes ;; | |
631ef239 | 3821 | esac |
7083c021 AC |
3822 | CC=$ac_ct_CC |
3823 | fi | |
212380e3 | 3824 | else |
7083c021 | 3825 | CC="$ac_cv_prog_CC" |
212380e3 | 3826 | fi |
631ef239 | 3827 | |
7083c021 AC |
3828 | if test -z "$CC"; then |
3829 | if test -n "$ac_tool_prefix"; then | |
3830 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3831 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3833 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3834 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3835 | $as_echo_n "(cached) " >&6 |
212380e3 | 3836 | else |
7083c021 AC |
3837 | if test -n "$CC"; then |
3838 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3839 | else |
7083c021 AC |
3840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3841 | for as_dir in $PATH | |
3842 | do | |
3843 | IFS=$as_save_IFS | |
3844 | test -z "$as_dir" && as_dir=. | |
3845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3847 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3849 | break 2 | |
3850 | fi | |
3851 | done | |
3852 | done | |
3853 | IFS=$as_save_IFS | |
212380e3 | 3854 | |
212380e3 | 3855 | fi |
7083c021 AC |
3856 | fi |
3857 | CC=$ac_cv_prog_CC | |
3858 | if test -n "$CC"; then | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3860 | $as_echo "$CC" >&6; } | |
212380e3 | 3861 | else |
7083c021 AC |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3863 | $as_echo "no" >&6; } | |
3864 | fi | |
3865 | ||
212380e3 | 3866 | |
7083c021 | 3867 | fi |
212380e3 | 3868 | fi |
7083c021 AC |
3869 | if test -z "$CC"; then |
3870 | # Extract the first word of "cc", so it can be a program name with args. | |
3871 | set dummy cc; ac_word=$2 | |
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3873 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3874 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 AC |
3875 | $as_echo_n "(cached) " >&6 |
3876 | else | |
3877 | if test -n "$CC"; then | |
3878 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3879 | else | |
3880 | ac_prog_rejected=no | |
3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3882 | for as_dir in $PATH | |
3883 | do | |
3884 | IFS=$as_save_IFS | |
3885 | test -z "$as_dir" && as_dir=. | |
3886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3888 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3889 | ac_prog_rejected=yes | |
3890 | continue | |
3891 | fi | |
3892 | ac_cv_prog_CC="cc" | |
3893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3894 | break 2 | |
3895 | fi | |
3896 | done | |
3897 | done | |
3898 | IFS=$as_save_IFS | |
631ef239 | 3899 | |
7083c021 AC |
3900 | if test $ac_prog_rejected = yes; then |
3901 | # We found a bogon in the path, so make sure we never use it. | |
3902 | set dummy $ac_cv_prog_CC | |
3903 | shift | |
3904 | if test $# != 0; then | |
3905 | # We chose a different compiler from the bogus one. | |
3906 | # However, it has the same basename, so the bogon will be chosen | |
3907 | # first if we set CC to just the basename; use the full file name. | |
3908 | shift | |
3909 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3910 | fi | |
3911 | fi | |
3912 | fi | |
3913 | fi | |
3914 | CC=$ac_cv_prog_CC | |
3915 | if test -n "$CC"; then | |
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3917 | $as_echo "$CC" >&6; } | |
3918 | else | |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3920 | $as_echo "no" >&6; } | |
212380e3 | 3921 | fi |
631ef239 | 3922 | |
212380e3 | 3923 | |
7083c021 AC |
3924 | fi |
3925 | if test -z "$CC"; then | |
3926 | if test -n "$ac_tool_prefix"; then | |
3927 | for ac_prog in cl.exe | |
3928 | do | |
3929 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3930 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3932 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3933 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3934 | $as_echo_n "(cached) " >&6 |
212380e3 | 3935 | else |
7083c021 AC |
3936 | if test -n "$CC"; then |
3937 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3938 | else | |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3946 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
3952 | IFS=$as_save_IFS | |
212380e3 | 3953 | |
212380e3 | 3954 | fi |
7083c021 AC |
3955 | fi |
3956 | CC=$ac_cv_prog_CC | |
3957 | if test -n "$CC"; then | |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3959 | $as_echo "$CC" >&6; } | |
212380e3 | 3960 | else |
7083c021 AC |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3962 | $as_echo "no" >&6; } | |
3963 | fi | |
212380e3 | 3964 | |
212380e3 | 3965 | |
7083c021 AC |
3966 | test -n "$CC" && break |
3967 | done | |
3968 | fi | |
3969 | if test -z "$CC"; then | |
3970 | ac_ct_CC=$CC | |
3971 | for ac_prog in cl.exe | |
3972 | do | |
3973 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3974 | set dummy $ac_prog; ac_word=$2 | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3976 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3977 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3978 | $as_echo_n "(cached) " >&6 |
212380e3 | 3979 | else |
7083c021 AC |
3980 | if test -n "$ac_ct_CC"; then |
3981 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3982 | else | |
3983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3984 | for as_dir in $PATH | |
3985 | do | |
3986 | IFS=$as_save_IFS | |
3987 | test -z "$as_dir" && as_dir=. | |
3988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3990 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3992 | break 2 | |
3993 | fi | |
3994 | done | |
3995 | done | |
3996 | IFS=$as_save_IFS | |
212380e3 | 3997 | |
212380e3 AC |
3998 | fi |
3999 | fi | |
7083c021 AC |
4000 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4001 | if test -n "$ac_ct_CC"; then | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4003 | $as_echo "$ac_ct_CC" >&6; } | |
4004 | else | |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4006 | $as_echo "no" >&6; } | |
212380e3 | 4007 | fi |
631ef239 AC |
4008 | |
4009 | ||
7083c021 AC |
4010 | test -n "$ac_ct_CC" && break |
4011 | done | |
631ef239 | 4012 | |
7083c021 AC |
4013 | if test "x$ac_ct_CC" = x; then |
4014 | CC="" | |
4015 | else | |
4016 | case $cross_compiling:$ac_tool_warned in | |
4017 | yes:) | |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4019 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4020 | ac_tool_warned=yes ;; | |
4021 | esac | |
4022 | CC=$ac_ct_CC | |
4023 | fi | |
4024 | fi | |
212380e3 | 4025 | |
7083c021 | 4026 | fi |
212380e3 | 4027 | |
7083c021 AC |
4028 | |
4029 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
4031 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4032 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
4033 | |
4034 | # Provide some information about the compiler. | |
4035 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4036 | set X $ac_compile | |
4037 | ac_compiler=$2 | |
4038 | for ac_option in --version -v -V -qversion; do | |
4039 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 AC |
4040 | case "(($ac_try" in |
4041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4042 | *) ac_try_echo=$ac_try;; | |
4043 | esac | |
7083c021 AC |
4044 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4045 | $as_echo "$ac_try_echo"; } >&5 | |
4046 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 4047 | ac_status=$? |
7083c021 AC |
4048 | if test -s conftest.err; then |
4049 | sed '10a\ | |
4050 | ... rest of stderr output deleted ... | |
4051 | 10q' conftest.err >conftest.er1 | |
4052 | cat conftest.er1 >&5 | |
7083c021 | 4053 | fi |
6fb6bd15 | 4054 | rm -f conftest.er1 conftest.err |
7083c021 AC |
4055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4056 | test $ac_status = 0; } | |
4057 | done | |
212380e3 | 4058 | |
7083c021 AC |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4060 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 4061 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 | 4062 | $as_echo_n "(cached) " >&6 |
212380e3 | 4063 | else |
7083c021 | 4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 4065 | /* end confdefs.h. */ |
7083c021 | 4066 | |
212380e3 AC |
4067 | int |
4068 | main () | |
4069 | { | |
7083c021 AC |
4070 | #ifndef __GNUC__ |
4071 | choke me | |
4072 | #endif | |
212380e3 AC |
4073 | |
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
7083c021 AC |
4078 | if ac_fn_c_try_compile "$LINENO"; then : |
4079 | ac_compiler_gnu=yes | |
4080 | else | |
4081 | ac_compiler_gnu=no | |
4082 | fi | |
4083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4084 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4085 | ||
4086 | fi | |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4088 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4089 | if test $ac_compiler_gnu = yes; then | |
4090 | GCC=yes | |
4091 | else | |
4092 | GCC= | |
4093 | fi | |
4094 | ac_test_CFLAGS=${CFLAGS+set} | |
4095 | ac_save_CFLAGS=$CFLAGS | |
4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4097 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 4098 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
4099 | $as_echo_n "(cached) " >&6 |
4100 | else | |
4101 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4102 | ac_c_werror_flag=yes | |
4103 | ac_cv_prog_cc_g=no | |
4104 | CFLAGS="-g" | |
4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4106 | /* end confdefs.h. */ |
7083c021 | 4107 | |
212380e3 AC |
4108 | int |
4109 | main () | |
4110 | { | |
212380e3 AC |
4111 | |
4112 | ; | |
4113 | return 0; | |
4114 | } | |
4115 | _ACEOF | |
7083c021 AC |
4116 | if ac_fn_c_try_compile "$LINENO"; then : |
4117 | ac_cv_prog_cc_g=yes | |
212380e3 | 4118 | else |
7083c021 AC |
4119 | CFLAGS="" |
4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4121 | /* end confdefs.h. */ |
7083c021 | 4122 | |
212380e3 AC |
4123 | int |
4124 | main () | |
4125 | { | |
212380e3 AC |
4126 | |
4127 | ; | |
4128 | return 0; | |
4129 | } | |
4130 | _ACEOF | |
7083c021 AC |
4131 | if ac_fn_c_try_compile "$LINENO"; then : |
4132 | ||
4133 | else | |
4134 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4135 | CFLAGS="-g" | |
4136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4137 | /* end confdefs.h. */ |
7083c021 | 4138 | |
212380e3 AC |
4139 | int |
4140 | main () | |
4141 | { | |
212380e3 AC |
4142 | |
4143 | ; | |
4144 | return 0; | |
4145 | } | |
4146 | _ACEOF | |
7083c021 AC |
4147 | if ac_fn_c_try_compile "$LINENO"; then : |
4148 | ac_cv_prog_cc_g=yes | |
212380e3 | 4149 | fi |
631ef239 | 4150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4151 | fi |
631ef239 | 4152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4153 | fi |
631ef239 | 4154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
4155 | ac_c_werror_flag=$ac_save_c_werror_flag |
4156 | fi | |
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4158 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4159 | if test "$ac_test_CFLAGS" = set; then | |
4160 | CFLAGS=$ac_save_CFLAGS | |
4161 | elif test $ac_cv_prog_cc_g = yes; then | |
4162 | if test "$GCC" = yes; then | |
4163 | CFLAGS="-g -O2" | |
4164 | else | |
4165 | CFLAGS="-g" | |
4166 | fi | |
4167 | else | |
4168 | if test "$GCC" = yes; then | |
4169 | CFLAGS="-O2" | |
4170 | else | |
4171 | CFLAGS= | |
4172 | fi | |
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4175 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 4176 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
4177 | $as_echo_n "(cached) " >&6 |
4178 | else | |
4179 | ac_cv_prog_cc_c89=no | |
4180 | ac_save_CC=$CC | |
4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4182 | /* end confdefs.h. */ |
7083c021 AC |
4183 | #include <stdarg.h> |
4184 | #include <stdio.h> | |
2eff3833 | 4185 | struct stat; |
7083c021 AC |
4186 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4187 | struct buf { int x; }; | |
4188 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4189 | static char *e (p, i) | |
4190 | char **p; | |
4191 | int i; | |
4192 | { | |
4193 | return p[i]; | |
4194 | } | |
4195 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4196 | { | |
4197 | char *s; | |
4198 | va_list v; | |
4199 | va_start (v,p); | |
4200 | s = g (p, va_arg (v,int)); | |
4201 | va_end (v); | |
4202 | return s; | |
4203 | } | |
4204 | ||
4205 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4206 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4207 | These don't provoke an error unfortunately, instead are silently treated | |
4208 | as 'x'. The following induces an error, until -std is added to get | |
4209 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4210 | array size at least. It's necessary to write '\x00'==0 to get something | |
4211 | that's true only with -std. */ | |
4212 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4213 | ||
4214 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4215 | inside strings and character constants. */ | |
4216 | #define FOO(x) 'x' | |
4217 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4218 | ||
4219 | int test (int i, double x); | |
4220 | struct s1 {int (*f) (int a);}; | |
4221 | struct s2 {int (*f) (double a);}; | |
4222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4223 | int argc; | |
4224 | char **argv; | |
212380e3 AC |
4225 | int |
4226 | main () | |
4227 | { | |
7083c021 | 4228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
4229 | ; |
4230 | return 0; | |
4231 | } | |
4232 | _ACEOF | |
7083c021 AC |
4233 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4234 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4235 | do | |
4236 | CC="$ac_save_CC $ac_arg" | |
4237 | if ac_fn_c_try_compile "$LINENO"; then : | |
4238 | ac_cv_prog_cc_c89=$ac_arg | |
4239 | fi | |
4240 | rm -f core conftest.err conftest.$ac_objext | |
4241 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4242 | done | |
4243 | rm -f conftest.$ac_ext | |
4244 | CC=$ac_save_CC | |
4245 | ||
4246 | fi | |
4247 | # AC_CACHE_VAL | |
4248 | case "x$ac_cv_prog_cc_c89" in | |
4249 | x) | |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4251 | $as_echo "none needed" >&6; } ;; | |
4252 | xno) | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4254 | $as_echo "unsupported" >&6; } ;; | |
4255 | *) | |
4256 | CC="$CC $ac_cv_prog_cc_c89" | |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4258 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 4259 | esac |
7083c021 | 4260 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 4261 | |
212380e3 | 4262 | fi |
631ef239 | 4263 | |
7083c021 AC |
4264 | ac_ext=c |
4265 | ac_cpp='$CPP $CPPFLAGS' | |
4266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4269 | ||
4270 | ac_ext=c | |
4271 | ac_cpp='$CPP $CPPFLAGS' | |
4272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4275 | ||
4276 | ||
4277 | CFLAGS="$OLD_CFLAGS" | |
4278 | ||
1db8e007 JT |
4279 | ac_aux_dir= |
4280 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
4281 | if test -f "$ac_dir/install-sh"; then | |
4282 | ac_aux_dir=$ac_dir | |
4283 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4284 | break | |
4285 | elif test -f "$ac_dir/install.sh"; then | |
4286 | ac_aux_dir=$ac_dir | |
4287 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4288 | break | |
4289 | elif test -f "$ac_dir/shtool"; then | |
4290 | ac_aux_dir=$ac_dir | |
4291 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4292 | break | |
4293 | fi | |
4294 | done | |
4295 | if test -z "$ac_aux_dir"; then | |
4296 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
4297 | fi | |
4298 | ||
4299 | # These three variables are undocumented and unsupported, | |
4300 | # and are intended to be withdrawn in a future Autoconf release. | |
4301 | # They can cause serious problems if a builder's source tree is in a directory | |
4302 | # whose full name contains unusual characters. | |
4303 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4304 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4305 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | subdirs="$subdirs libratbox" | |
4311 | ||
7083c021 AC |
4312 | |
4313 | ||
4314 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
4315 | ||
4316 | SGS=no | |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 | |
4318 | $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } | |
4319 | case `$CC -version 2>&1` in | |
4320 | *TenDRA*) | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 | |
4322 | $as_echo "yes, TenDRA" >&6; } | |
4323 | IRC_CFLAGS="" | |
4324 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
4325 | SGS=yes | |
4326 | TenDRA=yes | |
4327 | ;; | |
4328 | *MIPSpro*) | |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 | |
4330 | $as_echo "yes, MIPSpro" >&6; } | |
4331 | MIPSpro=yes | |
4332 | SGS=yes | |
4333 | ;; | |
4334 | *) | |
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4336 | $as_echo "no" >&6; } | |
4337 | TenDRA=no | |
4338 | MIPSpro=no | |
4339 | ;; | |
631ef239 | 4340 | esac |
7083c021 AC |
4341 | |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
4343 | $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } | |
4344 | case `$CC -V 2>&1` in | |
4345 | *Sun*WorkShop* | *Forte*Developer*) | |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 | |
4347 | $as_echo "Sun Workshop/Forte" >&6; } | |
4348 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
4349 | SunWorkShop=yes | |
4350 | SGS=yes | |
4351 | ;; | |
4352 | *Tru64*) | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 | |
4354 | $as_echo "Tru64 cc" >&6; } | |
4355 | IRC_CFLAGS="-O2" | |
4356 | CPPFLAGS="-I/usr/local/include" | |
4357 | Tru=yes | |
4358 | ;; | |
4359 | *HP*ANSI*) | |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 | |
4361 | $as_echo "HPUX cc" >&6; } | |
4362 | HPUX=yes | |
4363 | IRC_CFLAGS="+e" | |
4364 | ;; | |
4365 | *) | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4367 | $as_echo "no" >&6; } | |
4368 | ;; | |
631ef239 | 4369 | esac |
212380e3 | 4370 | |
212380e3 | 4371 | fi |
631ef239 | 4372 | |
cfa7b5fd AC |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX, HPUX or Darwin" >&5 |
4374 | $as_echo_n "checking uname -s for Solaris, AIX, HPUX or Darwin... " >&6; } | |
7083c021 AC |
4375 | OSNAME=`uname -s` |
4376 | case "$OSNAME" in | |
4377 | HP-UX*) | |
631ef239 | 4378 | |
7083c021 AC |
4379 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
4381 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
4382 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
4383 | HPUX=yes | |
4384 | else | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
4386 | $as_echo "already using newer HPUX" >&6; } | |
4387 | fi | |
4388 | ;; | |
4389 | SunOS*) | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
4391 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 4392 | |
7083c021 | 4393 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 4394 | |
7083c021 AC |
4395 | SUN=yes |
4396 | ;; | |
4397 | AIX*) | |
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
4399 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
4400 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
4401 | ;; | |
cfa7b5fd AC |
4402 | Darwin*) |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 | |
4404 | $as_echo "Darwin" >&6; } | |
7083c021 AC |
4405 | AppleGCC=yes |
4406 | ;; | |
4407 | *) | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4409 | $as_echo "no" >&6; } | |
7083c021 | 4410 | ;; |
cfa7b5fd | 4411 | esac |
7083c021 | 4412 | |
cfa7b5fd | 4413 | if test "$ac_cv_c_compiler_gnu" = yes; then |
7083c021 | 4414 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" |
212380e3 | 4415 | fi |
631ef239 | 4416 | |
7083c021 AC |
4417 | if test "$ac_cv_prog_cc_g" = yes; then |
4418 | if test "$Tru" = yes; then | |
4419 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
4420 | else | |
4421 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
4422 | fi | |
212380e3 | 4423 | fi |
212380e3 | 4424 | |
7083c021 AC |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
4426 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
4427 | if test "$SGS" = "yes"; then | |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4429 | $as_echo "yes" >&6; } | |
212380e3 | 4430 | else |
7083c021 AC |
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4432 | $as_echo "no" >&6; } | |
4433 | fi | |
212380e3 | 4434 | |
7083c021 AC |
4435 | # Extract the first word of "mkdep", so it can be a program name with args. |
4436 | set dummy mkdep; ac_word=$2 | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4438 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4439 | if ${ac_cv_path_MKDEP+:} false; then : |
7083c021 AC |
4440 | $as_echo_n "(cached) " >&6 |
4441 | else | |
4442 | case $MKDEP in | |
4443 | [\\/]* | ?:[\\/]*) | |
4444 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
4445 | ;; | |
4446 | *) | |
4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4448 | for as_dir in $PATH | |
4449 | do | |
4450 | IFS=$as_save_IFS | |
4451 | test -z "$as_dir" && as_dir=. | |
4452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4454 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
4455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4456 | break 2 | |
4457 | fi | |
4458 | done | |
4459 | done | |
4460 | IFS=$as_save_IFS | |
212380e3 | 4461 | |
7083c021 | 4462 | ;; |
631ef239 | 4463 | esac |
7083c021 AC |
4464 | fi |
4465 | MKDEP=$ac_cv_path_MKDEP | |
4466 | if test -n "$MKDEP"; then | |
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
4468 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 4469 | else |
7083c021 AC |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4471 | $as_echo "no" >&6; } | |
212380e3 | 4472 | fi |
631ef239 | 4473 | |
7083c021 AC |
4474 | |
4475 | # Extract the first word of "makedepend", so it can be a program name with args. | |
4476 | set dummy makedepend; ac_word=$2 | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4478 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4479 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
7083c021 AC |
4480 | $as_echo_n "(cached) " >&6 |
4481 | else | |
4482 | case $MAKEDEPEND in | |
4483 | [\\/]* | ?:[\\/]*) | |
4484 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
4485 | ;; | |
4486 | *) | |
4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4488 | for as_dir in $PATH | |
4489 | do | |
4490 | IFS=$as_save_IFS | |
4491 | test -z "$as_dir" && as_dir=. | |
4492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4494 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
4495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4496 | break 2 | |
4497 | fi | |
4498 | done | |
212380e3 | 4499 | done |
7083c021 AC |
4500 | IFS=$as_save_IFS |
4501 | ||
4502 | ;; | |
4503 | esac | |
4504 | fi | |
4505 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
4506 | if test -n "$MAKEDEPEND"; then | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
4508 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 4509 | else |
7083c021 AC |
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4511 | $as_echo "no" >&6; } | |
4512 | fi | |
212380e3 | 4513 | |
212380e3 | 4514 | |
212380e3 | 4515 | |
7083c021 AC |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
4517 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
4518 | ||
4519 | STDOUT="> .depend" | |
4520 | ||
4521 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
4523 | $as_echo "gcc -MM" >&6; } | |
4524 | MKDEP="$CC -MM" | |
4525 | elif test ! -z "$MKDEP"; then | |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
4527 | $as_echo "mkdep" >&6; } | |
4528 | ||
4529 | if test -z "$Tru"; then | |
4530 | STDOUT="" | |
4531 | else | |
4532 | STDOUT=" 2> /dev/null" | |
4533 | fi | |
4534 | elif test "$SunWorkShop" = yes; then | |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
4536 | $as_echo "$CC -xM" >&6; } | |
4537 | MKDEP="$CC -xM" | |
4538 | STDOUT="> .depend 2> /dev/null" | |
4539 | elif test ! -z "$MAKEDEPEND"; then | |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
4541 | $as_echo "makedepend" >&6; } | |
4542 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 4543 | else |
7083c021 AC |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
4545 | $as_echo "nothing suitable.. forget it!" >&6; } | |
4546 | MKDEP=":" | |
212380e3 | 4547 | fi |
631ef239 | 4548 | |
7083c021 AC |
4549 | |
4550 | ||
4551 | ||
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
4553 | $as_echo_n "checking for /dev/null... " >&6; } | |
4554 | if test -c /dev/null ; then | |
4555 | ||
4556 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
4557 | ||
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4559 | $as_echo "yes" >&6; } | |
212380e3 | 4560 | else |
212380e3 | 4561 | |
7083c021 AC |
4562 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
4563 | ||
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
4565 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 4566 | fi |
631ef239 | 4567 | |
7083c021 AC |
4568 | if test ! -z "$CFLAGS"; then |
4569 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 4570 | fi |
631ef239 | 4571 | |
7083c021 AC |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4573 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 4574 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4575 | $as_echo_n "(cached) " >&6 |
4576 | else | |
4577 | ac_func_search_save_LIBS=$LIBS | |
4578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4579 | /* end confdefs.h. */ |
7083c021 AC |
4580 | |
4581 | /* Override any GCC internal prototype to avoid an error. | |
4582 | Use char because int might match the return type of a GCC | |
4583 | builtin and then its argument prototype would still apply. */ | |
4584 | #ifdef __cplusplus | |
4585 | extern "C" | |
4586 | #endif | |
4587 | char strerror (); | |
212380e3 AC |
4588 | int |
4589 | main () | |
4590 | { | |
7083c021 | 4591 | return strerror (); |
212380e3 AC |
4592 | ; |
4593 | return 0; | |
4594 | } | |
4595 | _ACEOF | |
7083c021 AC |
4596 | for ac_lib in '' cposix; do |
4597 | if test -z "$ac_lib"; then | |
4598 | ac_res="none required" | |
4599 | else | |
4600 | ac_res=-l$ac_lib | |
4601 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4602 | fi | |
4603 | if ac_fn_c_try_link "$LINENO"; then : | |
4604 | ac_cv_search_strerror=$ac_res | |
4605 | fi | |
4606 | rm -f core conftest.err conftest.$ac_objext \ | |
4607 | conftest$ac_exeext | |
b6d0720c | 4608 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4609 | break |
4610 | fi | |
4611 | done | |
b6d0720c | 4612 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4613 | |
212380e3 | 4614 | else |
7083c021 AC |
4615 | ac_cv_search_strerror=no |
4616 | fi | |
4617 | rm conftest.$ac_ext | |
4618 | LIBS=$ac_func_search_save_LIBS | |
4619 | fi | |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
4621 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4622 | ac_res=$ac_cv_search_strerror | |
4623 | if test "$ac_res" != no; then : | |
4624 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 4625 | |
212380e3 | 4626 | fi |
631ef239 | 4627 | |
7083c021 AC |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4629 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 4630 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
4631 | $as_echo_n "(cached) " >&6 |
4632 | else | |
4633 | ac_cv_c_inline=no | |
4634 | for ac_kw in inline __inline__ __inline; do | |
4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4636 | /* end confdefs.h. */ | |
4637 | #ifndef __cplusplus | |
4638 | typedef int foo_t; | |
4639 | static $ac_kw foo_t static_foo () {return 0; } | |
4640 | $ac_kw foo_t foo () {return 0; } | |
4641 | #endif | |
4642 | ||
4643 | _ACEOF | |
4644 | if ac_fn_c_try_compile "$LINENO"; then : | |
4645 | ac_cv_c_inline=$ac_kw | |
4646 | fi | |
631ef239 | 4647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 4648 | test "$ac_cv_c_inline" != no && break |
212380e3 | 4649 | done |
7083c021 AC |
4650 | |
4651 | fi | |
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4653 | $as_echo "$ac_cv_c_inline" >&6; } | |
4654 | ||
4655 | case $ac_cv_c_inline in | |
4656 | inline | yes) ;; | |
4657 | *) | |
4658 | case $ac_cv_c_inline in | |
4659 | no) ac_val=;; | |
4660 | *) ac_val=$ac_cv_c_inline;; | |
4661 | esac | |
4662 | cat >>confdefs.h <<_ACEOF | |
4663 | #ifndef __cplusplus | |
4664 | #define inline $ac_val | |
4665 | #endif | |
4666 | _ACEOF | |
4667 | ;; | |
212380e3 | 4668 | esac |
7083c021 AC |
4669 | |
4670 | if test $ac_cv_c_compiler_gnu = yes; then | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4672 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b6d0720c | 4673 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
7083c021 | 4674 | $as_echo_n "(cached) " >&6 |
212380e3 | 4675 | else |
7083c021 AC |
4676 | ac_pattern="Autoconf.*'x'" |
4677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4678 | /* end confdefs.h. */ | |
4679 | #include <sgtty.h> | |
4680 | Autoconf TIOCGETP | |
212380e3 | 4681 | _ACEOF |
7083c021 AC |
4682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4683 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4684 | ac_cv_prog_gcc_traditional=yes | |
4685 | else | |
4686 | ac_cv_prog_gcc_traditional=no | |
4687 | fi | |
4688 | rm -f conftest* | |
4689 | ||
4690 | ||
4691 | if test $ac_cv_prog_gcc_traditional = no; then | |
4692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4693 | /* end confdefs.h. */ |
7083c021 AC |
4694 | #include <termio.h> |
4695 | Autoconf TCGETA | |
4696 | _ACEOF | |
4697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4698 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4699 | ac_cv_prog_gcc_traditional=yes | |
4700 | fi | |
4701 | rm -f conftest* | |
212380e3 | 4702 | |
7083c021 AC |
4703 | fi |
4704 | fi | |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4706 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4707 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4708 | CC="$CC -traditional" | |
4709 | fi | |
4710 | fi | |
212380e3 | 4711 | |
7083c021 AC |
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4713 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4714 | set x ${MAKE-make} | |
4715 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 4716 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
4717 | $as_echo_n "(cached) " >&6 |
4718 | else | |
4719 | cat >conftest.make <<\_ACEOF | |
4720 | SHELL = /bin/sh | |
4721 | all: | |
4722 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 4723 | _ACEOF |
b6d0720c | 4724 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
4725 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4726 | *@@@%%%=?*=@@@%%%*) | |
4727 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4728 | *) | |
4729 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 4730 | esac |
7083c021 AC |
4731 | rm -f conftest.make |
4732 | fi | |
4733 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4735 | $as_echo "yes" >&6; } | |
4736 | SET_MAKE= | |
4737 | else | |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4739 | $as_echo "no" >&6; } | |
4740 | SET_MAKE="MAKE=${MAKE-make}" | |
4741 | fi | |
4742 | ||
4743 | # Find a good install program. We prefer a C program (faster), | |
4744 | # so one script is as good as another. But avoid the broken or | |
4745 | # incompatible versions: | |
4746 | # SysV /etc/install, /usr/sbin/install | |
4747 | # SunOS /usr/etc/install | |
4748 | # IRIX /sbin/install | |
4749 | # AIX /bin/install | |
4750 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4751 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4752 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4753 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4754 | # OS/2's system install, which has a completely different semantic | |
4755 | # ./install, which can be erroneously created by make from ./install.sh. | |
4756 | # Reject install programs that cannot install multiple files. | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4758 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4759 | if test -z "$INSTALL"; then | |
b6d0720c | 4760 | if ${ac_cv_path_install+:} false; then : |
7083c021 AC |
4761 | $as_echo_n "(cached) " >&6 |
4762 | else | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
4768 | # Account for people who put trailing slashes in PATH elements. | |
4769 | case $as_dir/ in #(( | |
4770 | ./ | .// | /[cC]/* | \ | |
4771 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4772 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4773 | /usr/ucb/* ) ;; | |
4774 | *) | |
4775 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4776 | # Don't use installbsd from OSF since it installs stuff as root | |
4777 | # by default. | |
4778 | for ac_prog in ginstall scoinst install; do | |
4779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4780 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
7083c021 AC |
4781 | if test $ac_prog = install && |
4782 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4783 | # AIX install. It has an incompatible calling convention. | |
4784 | : | |
4785 | elif test $ac_prog = install && | |
4786 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4787 | # program-specific install script used by HP pwplus--don't use. | |
4788 | : | |
4789 | else | |
4790 | rm -rf conftest.one conftest.two conftest.dir | |
4791 | echo one > conftest.one | |
4792 | echo two > conftest.two | |
4793 | mkdir conftest.dir | |
4794 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4795 | test -s conftest.one && test -s conftest.two && | |
4796 | test -s conftest.dir/conftest.one && | |
4797 | test -s conftest.dir/conftest.two | |
4798 | then | |
4799 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4800 | break 3 | |
4801 | fi | |
4802 | fi | |
4803 | fi | |
4804 | done | |
4805 | done | |
4806 | ;; | |
631ef239 | 4807 | esac |
7083c021 AC |
4808 | |
4809 | done | |
4810 | IFS=$as_save_IFS | |
4811 | ||
4812 | rm -rf conftest.one conftest.two conftest.dir | |
4813 | ||
4814 | fi | |
4815 | if test "${ac_cv_path_install+set}" = set; then | |
4816 | INSTALL=$ac_cv_path_install | |
4817 | else | |
4818 | # As a last resort, use the slow shell script. Don't cache a | |
4819 | # value for INSTALL within a source directory, because that will | |
4820 | # break other packages using the cache if that directory is | |
4821 | # removed, or if the value is a relative name. | |
4822 | INSTALL=$ac_install_sh | |
4823 | fi | |
4824 | fi | |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4826 | $as_echo "$INSTALL" >&6; } | |
4827 | ||
4828 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4829 | # It thinks the first close brace ends the variable substitution. | |
4830 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4831 | ||
4832 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4833 | ||
4834 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4835 | ||
4836 | # Extract the first word of "rm", so it can be a program name with args. | |
4837 | set dummy rm; ac_word=$2 | |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4839 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4840 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 4841 | $as_echo_n "(cached) " >&6 |
212380e3 | 4842 | else |
7083c021 AC |
4843 | case $RM in |
4844 | [\\/]* | ?:[\\/]*) | |
4845 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4846 | ;; | |
4847 | *) | |
4848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4849 | for as_dir in $PATH | |
4850 | do | |
4851 | IFS=$as_save_IFS | |
4852 | test -z "$as_dir" && as_dir=. | |
4853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4855 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4857 | break 2 | |
4858 | fi | |
4859 | done | |
4860 | done | |
4861 | IFS=$as_save_IFS | |
212380e3 | 4862 | |
7083c021 AC |
4863 | ;; |
4864 | esac | |
212380e3 | 4865 | fi |
7083c021 AC |
4866 | RM=$ac_cv_path_RM |
4867 | if test -n "$RM"; then | |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4869 | $as_echo "$RM" >&6; } | |
4870 | else | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4872 | $as_echo "no" >&6; } | |
212380e3 | 4873 | fi |
631ef239 AC |
4874 | |
4875 | ||
7083c021 AC |
4876 | # Extract the first word of "cp", so it can be a program name with args. |
4877 | set dummy cp; ac_word=$2 | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4879 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4880 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
4881 | $as_echo_n "(cached) " >&6 |
4882 | else | |
4883 | case $CP in | |
4884 | [\\/]* | ?:[\\/]*) | |
4885 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4886 | ;; | |
4887 | *) | |
4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4889 | for as_dir in $PATH | |
4890 | do | |
4891 | IFS=$as_save_IFS | |
4892 | test -z "$as_dir" && as_dir=. | |
4893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4895 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
4896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4897 | break 2 | |
4898 | fi | |
4899 | done | |
4900 | done | |
4901 | IFS=$as_save_IFS | |
631ef239 | 4902 | |
7083c021 AC |
4903 | ;; |
4904 | esac | |
4905 | fi | |
4906 | CP=$ac_cv_path_CP | |
4907 | if test -n "$CP"; then | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
4909 | $as_echo "$CP" >&6; } | |
4910 | else | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4912 | $as_echo "no" >&6; } | |
4913 | fi | |
212380e3 AC |
4914 | |
4915 | ||
7083c021 AC |
4916 | # Extract the first word of "mv", so it can be a program name with args. |
4917 | set dummy mv; ac_word=$2 | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4919 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4920 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 4921 | $as_echo_n "(cached) " >&6 |
212380e3 | 4922 | else |
7083c021 AC |
4923 | case $MV in |
4924 | [\\/]* | ?:[\\/]*) | |
4925 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4926 | ;; | |
4927 | *) | |
4928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4929 | for as_dir in $PATH | |
4930 | do | |
4931 | IFS=$as_save_IFS | |
4932 | test -z "$as_dir" && as_dir=. | |
4933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4935 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4937 | break 2 | |
4938 | fi | |
4939 | done | |
4940 | done | |
4941 | IFS=$as_save_IFS | |
4942 | ||
4943 | ;; | |
631ef239 | 4944 | esac |
7083c021 AC |
4945 | fi |
4946 | MV=$ac_cv_path_MV | |
4947 | if test -n "$MV"; then | |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4949 | $as_echo "$MV" >&6; } | |
212380e3 | 4950 | else |
7083c021 AC |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4952 | $as_echo "no" >&6; } | |
212380e3 | 4953 | fi |
631ef239 | 4954 | |
212380e3 | 4955 | |
7083c021 AC |
4956 | # Extract the first word of "ln", so it can be a program name with args. |
4957 | set dummy ln; ac_word=$2 | |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4959 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4960 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 4961 | $as_echo_n "(cached) " >&6 |
212380e3 | 4962 | else |
7083c021 AC |
4963 | case $LN in |
4964 | [\\/]* | ?:[\\/]*) | |
4965 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4966 | ;; | |
4967 | *) | |
4968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4969 | for as_dir in $PATH | |
4970 | do | |
4971 | IFS=$as_save_IFS | |
4972 | test -z "$as_dir" && as_dir=. | |
4973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4975 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
4976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4977 | break 2 | |
4978 | fi | |
4979 | done | |
4980 | done | |
4981 | IFS=$as_save_IFS | |
212380e3 | 4982 | |
7083c021 | 4983 | ;; |
631ef239 | 4984 | esac |
7083c021 AC |
4985 | fi |
4986 | LN=$ac_cv_path_LN | |
4987 | if test -n "$LN"; then | |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4989 | $as_echo "$LN" >&6; } | |
212380e3 | 4990 | else |
7083c021 AC |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4992 | $as_echo "no" >&6; } | |
212380e3 | 4993 | fi |
631ef239 | 4994 | |
7083c021 AC |
4995 | |
4996 | # Extract the first word of "sed", so it can be a program name with args. | |
4997 | set dummy sed; ac_word=$2 | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4999 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5000 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
5001 | $as_echo_n "(cached) " >&6 |
5002 | else | |
5003 | case $SED in | |
5004 | [\\/]* | ?:[\\/]*) | |
5005 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
5006 | ;; | |
5007 | *) | |
5008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5009 | for as_dir in $PATH | |
5010 | do | |
5011 | IFS=$as_save_IFS | |
5012 | test -z "$as_dir" && as_dir=. | |
5013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5015 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
5016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5017 | break 2 | |
5018 | fi | |
5019 | done | |
212380e3 | 5020 | done |
7083c021 AC |
5021 | IFS=$as_save_IFS |
5022 | ||
5023 | ;; | |
5024 | esac | |
5025 | fi | |
5026 | SED=$ac_cv_path_SED | |
5027 | if test -n "$SED"; then | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
5029 | $as_echo "$SED" >&6; } | |
212380e3 | 5030 | else |
7083c021 AC |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5032 | $as_echo "no" >&6; } | |
5033 | fi | |
212380e3 | 5034 | |
212380e3 | 5035 | |
7083c021 AC |
5036 | # Extract the first word of "ar", so it can be a program name with args. |
5037 | set dummy ar; ac_word=$2 | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5039 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5040 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
5041 | $as_echo_n "(cached) " >&6 |
5042 | else | |
5043 | case $AR in | |
5044 | [\\/]* | ?:[\\/]*) | |
5045 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
5046 | ;; | |
5047 | *) | |
5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5049 | for as_dir in $PATH | |
5050 | do | |
5051 | IFS=$as_save_IFS | |
5052 | test -z "$as_dir" && as_dir=. | |
5053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5055 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
5056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5057 | break 2 | |
5058 | fi | |
5059 | done | |
5060 | done | |
5061 | IFS=$as_save_IFS | |
212380e3 | 5062 | |
7083c021 | 5063 | ;; |
631ef239 | 5064 | esac |
7083c021 AC |
5065 | fi |
5066 | AR=$ac_cv_path_AR | |
5067 | if test -n "$AR"; then | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5069 | $as_echo "$AR" >&6; } | |
212380e3 | 5070 | else |
7083c021 AC |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5072 | $as_echo "no" >&6; } | |
212380e3 | 5073 | fi |
631ef239 | 5074 | |
7083c021 AC |
5075 | |
5076 | # Extract the first word of "ld", so it can be a program name with args. | |
5077 | set dummy ld; ac_word=$2 | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5079 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5080 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 5081 | $as_echo_n "(cached) " >&6 |
212380e3 | 5082 | else |
7083c021 AC |
5083 | case $LD in |
5084 | [\\/]* | ?:[\\/]*) | |
5085 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
5086 | ;; | |
5087 | *) | |
5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5089 | for as_dir in $PATH | |
5090 | do | |
5091 | IFS=$as_save_IFS | |
5092 | test -z "$as_dir" && as_dir=. | |
5093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5095 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
5096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5097 | break 2 | |
5098 | fi | |
5099 | done | |
5100 | done | |
5101 | IFS=$as_save_IFS | |
212380e3 | 5102 | |
7083c021 AC |
5103 | ;; |
5104 | esac | |
212380e3 | 5105 | fi |
7083c021 AC |
5106 | LD=$ac_cv_path_LD |
5107 | if test -n "$LD"; then | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5109 | $as_echo "$LD" >&6; } | |
5110 | else | |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5112 | $as_echo "no" >&6; } | |
212380e3 | 5113 | fi |
631ef239 | 5114 | |
212380e3 | 5115 | |
7083c021 AC |
5116 | # Extract the first word of "ranlib", so it can be a program name with args. |
5117 | set dummy ranlib; ac_word=$2 | |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5119 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5120 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 5121 | $as_echo_n "(cached) " >&6 |
212380e3 | 5122 | else |
7083c021 AC |
5123 | case $RANLIB in |
5124 | [\\/]* | ?:[\\/]*) | |
5125 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
5126 | ;; | |
5127 | *) | |
5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5129 | for as_dir in $PATH | |
5130 | do | |
5131 | IFS=$as_save_IFS | |
5132 | test -z "$as_dir" && as_dir=. | |
5133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5135 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5137 | break 2 | |
5138 | fi | |
5139 | done | |
5140 | done | |
5141 | IFS=$as_save_IFS | |
212380e3 | 5142 | |
7083c021 AC |
5143 | ;; |
5144 | esac | |
5145 | fi | |
5146 | RANLIB=$ac_cv_path_RANLIB | |
5147 | if test -n "$RANLIB"; then | |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5149 | $as_echo "$RANLIB" >&6; } | |
5150 | else | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5152 | $as_echo "no" >&6; } | |
212380e3 | 5153 | fi |
631ef239 | 5154 | |
7083c021 AC |
5155 | |
5156 | # Extract the first word of "touch", so it can be a program name with args. | |
5157 | set dummy touch; ac_word=$2 | |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5159 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5160 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
5161 | $as_echo_n "(cached) " >&6 |
5162 | else | |
5163 | case $TOUCH in | |
5164 | [\\/]* | ?:[\\/]*) | |
5165 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5166 | ;; | |
5167 | *) | |
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5169 | for as_dir in $PATH | |
5170 | do | |
5171 | IFS=$as_save_IFS | |
5172 | test -z "$as_dir" && as_dir=. | |
5173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5175 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
5176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5177 | break 2 | |
5178 | fi | |
212380e3 | 5179 | done |
7083c021 AC |
5180 | done |
5181 | IFS=$as_save_IFS | |
5182 | ||
5183 | ;; | |
212380e3 | 5184 | esac |
7083c021 AC |
5185 | fi |
5186 | TOUCH=$ac_cv_path_TOUCH | |
5187 | if test -n "$TOUCH"; then | |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
5189 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 5190 | else |
7083c021 AC |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5192 | $as_echo "no" >&6; } | |
5193 | fi | |
212380e3 | 5194 | |
212380e3 | 5195 | |
7083c021 AC |
5196 | |
5197 | for ac_prog in 'bison -y' byacc | |
5198 | do | |
5199 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5200 | set dummy $ac_prog; ac_word=$2 | |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5202 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5203 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 5204 | $as_echo_n "(cached) " >&6 |
212380e3 | 5205 | else |
7083c021 AC |
5206 | if test -n "$YACC"; then |
5207 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5208 | else | |
5209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5210 | for as_dir in $PATH | |
5211 | do | |
5212 | IFS=$as_save_IFS | |
5213 | test -z "$as_dir" && as_dir=. | |
5214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5216 | ac_cv_prog_YACC="$ac_prog" |
5217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5218 | break 2 | |
5219 | fi | |
5220 | done | |
5221 | done | |
5222 | IFS=$as_save_IFS | |
212380e3 | 5223 | |
212380e3 AC |
5224 | fi |
5225 | fi | |
7083c021 AC |
5226 | YACC=$ac_cv_prog_YACC |
5227 | if test -n "$YACC"; then | |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5229 | $as_echo "$YACC" >&6; } | |
5230 | else | |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5232 | $as_echo "no" >&6; } | |
212380e3 | 5233 | fi |
631ef239 AC |
5234 | |
5235 | ||
7083c021 AC |
5236 | test -n "$YACC" && break |
5237 | done | |
5238 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
5239 | |
5240 | ||
7083c021 | 5241 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 5242 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 5243 | fi |
212380e3 | 5244 | |
7083c021 AC |
5245 | for ac_prog in flex lex |
5246 | do | |
5247 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5248 | set dummy $ac_prog; ac_word=$2 | |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5250 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5251 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 5252 | $as_echo_n "(cached) " >&6 |
212380e3 | 5253 | else |
7083c021 AC |
5254 | if test -n "$LEX"; then |
5255 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 5256 | else |
7083c021 AC |
5257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5258 | for as_dir in $PATH | |
5259 | do | |
5260 | IFS=$as_save_IFS | |
5261 | test -z "$as_dir" && as_dir=. | |
5262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5264 | ac_cv_prog_LEX="$ac_prog" |
5265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5266 | break 2 | |
5267 | fi | |
631ef239 | 5268 | done |
7083c021 AC |
5269 | done |
5270 | IFS=$as_save_IFS | |
631ef239 | 5271 | |
7083c021 AC |
5272 | fi |
5273 | fi | |
5274 | LEX=$ac_cv_prog_LEX | |
5275 | if test -n "$LEX"; then | |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
5277 | $as_echo "$LEX" >&6; } | |
631ef239 | 5278 | else |
7083c021 AC |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5280 | $as_echo "no" >&6; } | |
631ef239 AC |
5281 | fi |
5282 | ||
5283 | ||
7083c021 AC |
5284 | test -n "$LEX" && break |
5285 | done | |
5286 | test -n "$LEX" || LEX=":" | |
212380e3 | 5287 | |
7083c021 AC |
5288 | if test "x$LEX" != "x:"; then |
5289 | cat >conftest.l <<_ACEOF | |
5290 | %% | |
5291 | a { ECHO; } | |
5292 | b { REJECT; } | |
5293 | c { yymore (); } | |
5294 | d { yyless (1); } | |
2eff3833 JT |
5295 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
5296 | yyless ((input () != 0)); } | |
7083c021 AC |
5297 | f { unput (yytext[0]); } |
5298 | . { BEGIN INITIAL; } | |
5299 | %% | |
5300 | #ifdef YYTEXT_POINTER | |
5301 | extern char *yytext; | |
212380e3 | 5302 | #endif |
212380e3 | 5303 | int |
7083c021 | 5304 | main (void) |
212380e3 | 5305 | { |
7083c021 | 5306 | return ! yylex () + ! yywrap (); |
212380e3 AC |
5307 | } |
5308 | _ACEOF | |
7083c021 | 5309 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
5310 | case "(($ac_try" in |
5311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5312 | *) ac_try_echo=$ac_try;; | |
5313 | esac | |
7083c021 AC |
5314 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5315 | $as_echo "$ac_try_echo"; } >&5 | |
5316 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 5317 | ac_status=$? |
7083c021 AC |
5318 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5319 | test $ac_status = 0; } | |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
5321 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 5322 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 5323 | $as_echo_n "(cached) " >&6 |
212380e3 | 5324 | else |
212380e3 | 5325 | |
7083c021 AC |
5326 | if test -f lex.yy.c; then |
5327 | ac_cv_prog_lex_root=lex.yy | |
5328 | elif test -f lexyy.c; then | |
5329 | ac_cv_prog_lex_root=lexyy | |
5330 | else | |
b6d0720c | 5331 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
5332 | fi |
5333 | fi | |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
5335 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
5336 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
5337 | ||
5338 | if test -z "${LEXLIB+set}"; then | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
5340 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 5341 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
5342 | $as_echo_n "(cached) " >&6 |
5343 | else | |
631ef239 | 5344 | |
7083c021 AC |
5345 | ac_save_LIBS=$LIBS |
5346 | ac_cv_lib_lex='none needed' | |
5347 | for ac_lib in '' -lfl -ll; do | |
5348 | LIBS="$ac_lib $ac_save_LIBS" | |
5349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5350 | /* end confdefs.h. */ | |
5351 | `cat $LEX_OUTPUT_ROOT.c` | |
5352 | _ACEOF | |
5353 | if ac_fn_c_try_link "$LINENO"; then : | |
5354 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 5355 | fi |
7083c021 AC |
5356 | rm -f core conftest.err conftest.$ac_objext \ |
5357 | conftest$ac_exeext conftest.$ac_ext | |
5358 | test "$ac_cv_lib_lex" != 'none needed' && break | |
5359 | done | |
5360 | LIBS=$ac_save_LIBS | |
631ef239 | 5361 | |
631ef239 | 5362 | fi |
7083c021 AC |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
5364 | $as_echo "$ac_cv_lib_lex" >&6; } | |
5365 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
5366 | fi | |
5367 | ||
5368 | ||
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
5370 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 5371 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 5372 | $as_echo_n "(cached) " >&6 |
631ef239 | 5373 | else |
7083c021 AC |
5374 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5375 | # default is implementation-dependent. Figure out which it is, since | |
5376 | # not all implementations provide the %pointer and %array declarations. | |
5377 | ac_cv_prog_lex_yytext_pointer=no | |
5378 | ac_save_LIBS=$LIBS | |
5379 | LIBS="$LEXLIB $ac_save_LIBS" | |
5380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5381 | /* end confdefs.h. */ | |
b6d0720c AC |
5382 | |
5383 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
5384 | `cat $LEX_OUTPUT_ROOT.c` |
5385 | _ACEOF | |
5386 | if ac_fn_c_try_link "$LINENO"; then : | |
5387 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 5388 | fi |
7083c021 AC |
5389 | rm -f core conftest.err conftest.$ac_objext \ |
5390 | conftest$ac_exeext conftest.$ac_ext | |
5391 | LIBS=$ac_save_LIBS | |
5392 | ||
212380e3 | 5393 | fi |
7083c021 AC |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5395 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
5396 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 5397 | |
7083c021 AC |
5398 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
5399 | ||
5400 | fi | |
5401 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
5402 | ||
5403 | fi | |
5404 | ||
5405 | if test "$LEX" = ":"; then | |
b6d0720c | 5406 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
5407 | fi |
5408 | ||
9f9b7042 NPB |
5409 | # Check whether --enable-fhs-paths was given. |
5410 | if test "${enable_fhs_paths+set}" = set; then : | |
5411 | enableval=$enable_fhs_paths; | |
5412 | else | |
5413 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
5414 | test "$localstatedir" = '${prefix}/var' && \ | |
5415 | test "$libdir" = '${exec_prefix}/lib'; then : | |
5416 | enable_fhs_paths=no | |
5417 | else | |
5418 | enable_fhs_paths=yes | |
5419 | fi | |
5420 | ||
5421 | fi | |
5422 | ||
5423 | if test "x$enable_fhs_paths" = "xyes"; then : | |
5424 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
5425 | rundir=${rundir-'${prefix}/run'} | |
5426 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
5427 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
5428 | else | |
5429 | libexecdir='${bindir}' | |
5430 | pkglibexecdir='${libexecdir}' | |
5431 | rundir='${sysconfdir}' | |
5432 | pkgrundir='${rundir}' | |
7083c021 | 5433 | localstatedir='${prefix}' |
9f9b7042 | 5434 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 5435 | fi |
9f9b7042 NPB |
5436 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5443 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5444 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
5445 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 5446 | ac_define_dir_counter=0 |
9f9b7042 NPB |
5447 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
5448 | last_ac_define_dir="$ac_define_dir" | |
5449 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
5450 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
5451 | if test "x$ac_define_dir_counter" = x128; then : | |
5452 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
5453 | break | |
5454 | fi | |
9f9b7042 NPB |
5455 | done |
5456 | PKGLOCALSTATEDIR="$ac_define_dir" | |
5457 | ||
5458 | ||
5459 | cat >>confdefs.h <<_ACEOF | |
5460 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
5461 | _ACEOF | |
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5467 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5468 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
5469 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 5470 | ac_define_dir_counter=0 |
9f9b7042 NPB |
5471 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
5472 | last_ac_define_dir="$ac_define_dir" | |
5473 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
5474 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
5475 | if test "x$ac_define_dir_counter" = x128; then : | |
5476 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
5477 | break | |
5478 | fi | |
9f9b7042 NPB |
5479 | done |
5480 | PKGLIBEXECDIR="$ac_define_dir" | |
5481 | ||
5482 | ||
5483 | cat >>confdefs.h <<_ACEOF | |
5484 | #define PKGLIBEXECDIR "$ac_define_dir" | |
5485 | _ACEOF | |
5486 | ||
5487 | ||
212380e3 | 5488 | |
7083c021 AC |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5490 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 5491 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 5492 | $as_echo_n "(cached) " >&6 |
212380e3 | 5493 | else |
7083c021 | 5494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5495 | /* end confdefs.h. */ |
7083c021 AC |
5496 | #include <stdlib.h> |
5497 | #include <stdarg.h> | |
5498 | #include <string.h> | |
5499 | #include <float.h> | |
212380e3 AC |
5500 | |
5501 | int | |
5502 | main () | |
5503 | { | |
7083c021 | 5504 | |
212380e3 AC |
5505 | ; |
5506 | return 0; | |
5507 | } | |
5508 | _ACEOF | |
7083c021 AC |
5509 | if ac_fn_c_try_compile "$LINENO"; then : |
5510 | ac_cv_header_stdc=yes | |
212380e3 | 5511 | else |
7083c021 | 5512 | ac_cv_header_stdc=no |
212380e3 | 5513 | fi |
631ef239 | 5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5515 | |
7083c021 AC |
5516 | if test $ac_cv_header_stdc = yes; then |
5517 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5519 | /* end confdefs.h. */ | |
5520 | #include <string.h> | |
5521 | ||
212380e3 | 5522 | _ACEOF |
7083c021 AC |
5523 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5524 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5525 | ||
5526 | else | |
5527 | ac_cv_header_stdc=no | |
5528 | fi | |
5529 | rm -f conftest* | |
212380e3 AC |
5530 | |
5531 | fi | |
5532 | ||
7083c021 AC |
5533 | if test $ac_cv_header_stdc = yes; then |
5534 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5536 | /* end confdefs.h. */ | |
5537 | #include <stdlib.h> | |
5538 | ||
5539 | _ACEOF | |
5540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5541 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 5542 | |
212380e3 | 5543 | else |
7083c021 | 5544 | ac_cv_header_stdc=no |
631ef239 | 5545 | fi |
7083c021 | 5546 | rm -f conftest* |
631ef239 | 5547 | |
7083c021 | 5548 | fi |
212380e3 | 5549 | |
7083c021 AC |
5550 | if test $ac_cv_header_stdc = yes; then |
5551 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5552 | if test "$cross_compiling" = yes; then : | |
5553 | : | |
212380e3 | 5554 | else |
7083c021 | 5555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5556 | /* end confdefs.h. */ |
7083c021 AC |
5557 | #include <ctype.h> |
5558 | #include <stdlib.h> | |
5559 | #if ((' ' & 0x0FF) == 0x020) | |
5560 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5561 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5562 | #else | |
5563 | # define ISLOWER(c) \ | |
5564 | (('a' <= (c) && (c) <= 'i') \ | |
5565 | || ('j' <= (c) && (c) <= 'r') \ | |
5566 | || ('s' <= (c) && (c) <= 'z')) | |
5567 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 5568 | #endif |
7083c021 AC |
5569 | |
5570 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
5571 | int |
5572 | main () | |
5573 | { | |
7083c021 AC |
5574 | int i; |
5575 | for (i = 0; i < 256; i++) | |
5576 | if (XOR (islower (i), ISLOWER (i)) | |
5577 | || toupper (i) != TOUPPER (i)) | |
5578 | return 2; | |
212380e3 AC |
5579 | return 0; |
5580 | } | |
5581 | _ACEOF | |
7083c021 | 5582 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5583 | |
7083c021 AC |
5584 | else |
5585 | ac_cv_header_stdc=no | |
631ef239 | 5586 | fi |
7083c021 AC |
5587 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5588 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5589 | fi |
7083c021 | 5590 | |
212380e3 | 5591 | fi |
212380e3 | 5592 | fi |
7083c021 AC |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5594 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5595 | if test $ac_cv_header_stdc = yes; then | |
5596 | ||
5597 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
5598 | |
5599 | fi | |
5600 | ||
5601 | ||
7083c021 AC |
5602 | 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 |
5603 | do : | |
5604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5605 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 5606 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
5607 | cat >>confdefs.h <<_ACEOF |
5608 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5609 | _ACEOF | |
212380e3 | 5610 | |
212380e3 AC |
5611 | fi |
5612 | ||
7083c021 | 5613 | done |
212380e3 AC |
5614 | |
5615 | ||
212380e3 | 5616 | |
7083c021 AC |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5618 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 5619 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
5620 | $as_echo_n "(cached) " >&6 |
5621 | else | |
5622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5623 | /* end confdefs.h. */ | |
212380e3 | 5624 | |
7083c021 AC |
5625 | int |
5626 | main () | |
5627 | { | |
2eff3833 | 5628 | |
7083c021 | 5629 | #ifndef __cplusplus |
2eff3833 | 5630 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 5631 | typedef int charset[2]; |
2eff3833 | 5632 | const charset cs = { 0, 0 }; |
7083c021 AC |
5633 | /* SunOS 4.1.1 cc rejects this. */ |
5634 | char const *const *pcpcc; | |
5635 | char **ppc; | |
5636 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5637 | struct point {int x, y;}; | |
5638 | static struct point const zero = {0,0}; | |
5639 | /* AIX XL C 1.02.0.0 rejects this. | |
5640 | It does not let you subtract one const X* pointer from another in | |
5641 | an arm of an if-expression whose if-part is not a constant | |
5642 | expression */ | |
5643 | const char *g = "string"; | |
5644 | pcpcc = &g + (g ? g-g : 0); | |
5645 | /* HPUX 7.0 cc rejects these. */ | |
5646 | ++pcpcc; | |
5647 | ppc = (char**) pcpcc; | |
5648 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
5649 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5650 | char tx; | |
5651 | char *t = &tx; | |
7083c021 | 5652 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 5653 | |
7083c021 AC |
5654 | *t++ = 0; |
5655 | if (s) return 0; | |
5656 | } | |
5657 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5658 | int x[] = {25, 17}; | |
5659 | const int *foo = &x[0]; | |
5660 | ++foo; | |
5661 | } | |
5662 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5663 | typedef const int *iptr; | |
5664 | iptr p = 0; | |
5665 | ++p; | |
5666 | } | |
2eff3833 | 5667 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 5668 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
5669 | struct s { int j; const int *ap[3]; } bx; |
5670 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
5671 | } |
5672 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5673 | const int foo = 10; | |
5674 | if (!foo) return 0; | |
5675 | } | |
5676 | return !cs[0] && !zero.x; | |
5677 | #endif | |
212380e3 | 5678 | |
7083c021 AC |
5679 | ; |
5680 | return 0; | |
5681 | } | |
212380e3 | 5682 | _ACEOF |
7083c021 AC |
5683 | if ac_fn_c_try_compile "$LINENO"; then : |
5684 | ac_cv_c_const=yes | |
212380e3 | 5685 | else |
7083c021 | 5686 | ac_cv_c_const=no |
212380e3 | 5687 | fi |
631ef239 | 5688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5689 | fi |
7083c021 AC |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5691 | $as_echo "$ac_cv_c_const" >&6; } | |
5692 | if test $ac_cv_c_const = no; then | |
212380e3 | 5693 | |
7083c021 | 5694 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
5695 | |
5696 | fi | |
5697 | ||
7083c021 AC |
5698 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5700 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 5701 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 5702 | $as_echo_n "(cached) " >&6 |
212380e3 | 5703 | else |
7083c021 AC |
5704 | ac_cv_c_bigendian=unknown |
5705 | # See if we're dealing with a universal compiler. | |
5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5707 | /* end confdefs.h. */ | |
5708 | #ifndef __APPLE_CC__ | |
5709 | not a universal capable compiler | |
5710 | #endif | |
5711 | typedef int dummy; | |
5712 | ||
5713 | _ACEOF | |
5714 | if ac_fn_c_try_compile "$LINENO"; then : | |
5715 | ||
5716 | # Check for potential -arch flags. It is not universal unless | |
5717 | # there are at least two -arch flags with different values. | |
5718 | ac_arch= | |
5719 | ac_prev= | |
5720 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5721 | if test -n "$ac_prev"; then | |
5722 | case $ac_word in | |
5723 | i?86 | x86_64 | ppc | ppc64) | |
5724 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5725 | ac_arch=$ac_word | |
5726 | else | |
5727 | ac_cv_c_bigendian=universal | |
5728 | break | |
5729 | fi | |
5730 | ;; | |
5731 | esac | |
5732 | ac_prev= | |
5733 | elif test "x$ac_word" = "x-arch"; then | |
5734 | ac_prev=arch | |
5735 | fi | |
5736 | done | |
5737 | fi | |
5738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5739 | if test $ac_cv_c_bigendian = unknown; then | |
5740 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
5742 | /* end confdefs.h. */ |
5743 | #include <sys/types.h> | |
7083c021 | 5744 | #include <sys/param.h> |
212380e3 AC |
5745 | |
5746 | int | |
5747 | main () | |
5748 | { | |
7083c021 AC |
5749 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5750 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5751 | && LITTLE_ENDIAN) | |
5752 | bogus endian macros | |
5753 | #endif | |
212380e3 AC |
5754 | |
5755 | ; | |
5756 | return 0; | |
5757 | } | |
5758 | _ACEOF | |
7083c021 | 5759 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5760 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 5761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
5762 | /* end confdefs.h. */ |
5763 | #include <sys/types.h> | |
7083c021 | 5764 | #include <sys/param.h> |
212380e3 AC |
5765 | |
5766 | int | |
5767 | main () | |
5768 | { | |
5769 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
5770 | not big endian |
5771 | #endif | |
212380e3 AC |
5772 | |
5773 | ; | |
5774 | return 0; | |
5775 | } | |
5776 | _ACEOF | |
7083c021 | 5777 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
5778 | ac_cv_c_bigendian=yes |
5779 | else | |
7083c021 | 5780 | ac_cv_c_bigendian=no |
212380e3 | 5781 | fi |
631ef239 | 5782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
5783 | fi |
5784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5785 | fi | |
5786 | if test $ac_cv_c_bigendian = unknown; then | |
5787 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5789 | /* end confdefs.h. */ | |
5790 | #include <limits.h> | |
212380e3 | 5791 | |
7083c021 AC |
5792 | int |
5793 | main () | |
5794 | { | |
5795 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5796 | bogus endian macros | |
5797 | #endif | |
5798 | ||
5799 | ; | |
5800 | return 0; | |
5801 | } | |
212380e3 | 5802 | _ACEOF |
7083c021 AC |
5803 | if ac_fn_c_try_compile "$LINENO"; then : |
5804 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5806 | /* end confdefs.h. */ |
7083c021 AC |
5807 | #include <limits.h> |
5808 | ||
212380e3 AC |
5809 | int |
5810 | main () | |
5811 | { | |
7083c021 AC |
5812 | #ifndef _BIG_ENDIAN |
5813 | not big endian | |
5814 | #endif | |
5815 | ||
212380e3 AC |
5816 | ; |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
7083c021 | 5820 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5821 | ac_cv_c_bigendian=yes |
7083c021 AC |
5822 | else |
5823 | ac_cv_c_bigendian=no | |
212380e3 | 5824 | fi |
7083c021 | 5825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5826 | fi |
7083c021 AC |
5827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5828 | fi | |
5829 | if test $ac_cv_c_bigendian = unknown; then | |
5830 | # Compile a test program. | |
5831 | if test "$cross_compiling" = yes; then : | |
5832 | # Try to guess by grepping values from an object file. | |
5833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5834 | /* end confdefs.h. */ | |
5835 | short int ascii_mm[] = | |
5836 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5837 | short int ascii_ii[] = | |
5838 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5839 | int use_ascii (int i) { | |
5840 | return ascii_mm[i] + ascii_ii[i]; | |
5841 | } | |
5842 | short int ebcdic_ii[] = | |
5843 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5844 | short int ebcdic_mm[] = | |
5845 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5846 | int use_ebcdic (int i) { | |
5847 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5848 | } | |
5849 | extern int foo; | |
631ef239 | 5850 | |
7083c021 AC |
5851 | int |
5852 | main () | |
5853 | { | |
5854 | return use_ascii (foo) == use_ebcdic (foo); | |
5855 | ; | |
5856 | return 0; | |
5857 | } | |
5858 | _ACEOF | |
5859 | if ac_fn_c_try_compile "$LINENO"; then : | |
5860 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5861 | ac_cv_c_bigendian=yes | |
5862 | fi | |
5863 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5864 | if test "$ac_cv_c_bigendian" = unknown; then | |
5865 | ac_cv_c_bigendian=no | |
5866 | else | |
5867 | # finding both strings is unlikely to happen, but who knows? | |
5868 | ac_cv_c_bigendian=unknown | |
5869 | fi | |
5870 | fi | |
212380e3 | 5871 | fi |
631ef239 | 5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5873 | else |
7083c021 | 5874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5875 | /* end confdefs.h. */ |
631ef239 | 5876 | $ac_includes_default |
212380e3 AC |
5877 | int |
5878 | main () | |
5879 | { | |
631ef239 | 5880 | |
7083c021 AC |
5881 | /* Are we little or big endian? From Harbison&Steele. */ |
5882 | union | |
5883 | { | |
5884 | long int l; | |
5885 | char c[sizeof (long int)]; | |
5886 | } u; | |
5887 | u.l = 1; | |
5888 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
5889 | |
5890 | ; | |
5891 | return 0; | |
212380e3 AC |
5892 | } |
5893 | _ACEOF | |
7083c021 | 5894 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
5895 | ac_cv_c_bigendian=no |
5896 | else | |
7083c021 | 5897 | ac_cv_c_bigendian=yes |
212380e3 | 5898 | fi |
7083c021 AC |
5899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5900 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5901 | fi |
631ef239 | 5902 | |
7083c021 | 5903 | fi |
212380e3 | 5904 | fi |
7083c021 AC |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5906 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5907 | case $ac_cv_c_bigendian in #( | |
5908 | yes) | |
5909 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5910 | ;; #( | |
5911 | no) | |
5912 | ;; #( | |
5913 | universal) | |
5914 | ||
5915 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5916 | ||
5917 | ;; #( | |
5918 | *) | |
b6d0720c | 5919 | as_fn_error $? "unknown endianness |
7083c021 AC |
5920 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5921 | esac | |
631ef239 | 5922 | |
212380e3 | 5923 | fi |
7083c021 | 5924 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 5925 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 5926 | |
7083c021 | 5927 | else |
212380e3 | 5928 | |
7083c021 AC |
5929 | cat >>confdefs.h <<_ACEOF |
5930 | #define pid_t int | |
5931 | _ACEOF | |
212380e3 | 5932 | |
212380e3 | 5933 | fi |
7083c021 AC |
5934 | |
5935 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 5936 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 5937 | |
212380e3 | 5938 | else |
7083c021 AC |
5939 | |
5940 | cat >>confdefs.h <<_ACEOF | |
5941 | #define size_t unsigned int | |
212380e3 | 5942 | _ACEOF |
7083c021 AC |
5943 | |
5944 | fi | |
5945 | ||
5946 | # The cast to long int works around a bug in the HP C Compiler | |
5947 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5948 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5949 | # This bug is HP SR number 8606223364. | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5951 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 5952 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 5953 | $as_echo_n "(cached) " >&6 |
212380e3 | 5954 | else |
7083c021 AC |
5955 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
5956 | ||
5957 | else | |
5958 | if test "$ac_cv_type_short" = yes; then | |
5959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5961 | as_fn_error 77 "cannot compute sizeof (short) |
5962 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5963 | else |
5964 | ac_cv_sizeof_short=0 | |
5965 | fi | |
5966 | fi | |
212380e3 | 5967 | |
212380e3 | 5968 | fi |
7083c021 AC |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
5970 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 5971 | |
212380e3 | 5972 | |
7083c021 AC |
5973 | |
5974 | cat >>confdefs.h <<_ACEOF | |
5975 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 5976 | _ACEOF |
7083c021 AC |
5977 | |
5978 | ||
5979 | # The cast to long int works around a bug in the HP C Compiler | |
5980 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5981 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5982 | # This bug is HP SR number 8606223364. | |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5984 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 5985 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
5986 | $as_echo_n "(cached) " >&6 |
5987 | else | |
5988 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5989 | ||
5990 | else | |
5991 | if test "$ac_cv_type_int" = yes; then | |
5992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5994 | as_fn_error 77 "cannot compute sizeof (int) |
5995 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5996 | else |
5997 | ac_cv_sizeof_int=0 | |
5998 | fi | |
5999 | fi | |
6000 | ||
6001 | fi | |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
6003 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
6004 | ||
6005 | ||
6006 | ||
6007 | cat >>confdefs.h <<_ACEOF | |
6008 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 6009 | _ACEOF |
7083c021 AC |
6010 | |
6011 | ||
6012 | # The cast to long int works around a bug in the HP C Compiler | |
6013 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6014 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6015 | # This bug is HP SR number 8606223364. | |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
6017 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 6018 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 6019 | $as_echo_n "(cached) " >&6 |
212380e3 | 6020 | else |
7083c021 | 6021 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 6022 | |
7083c021 AC |
6023 | else |
6024 | if test "$ac_cv_type_long" = yes; then | |
6025 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6026 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
6027 | as_fn_error 77 "cannot compute sizeof (long) |
6028 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
6029 | else |
6030 | ac_cv_sizeof_long=0 | |
6031 | fi | |
212380e3 | 6032 | fi |
631ef239 | 6033 | |
7083c021 AC |
6034 | fi |
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
6036 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 6037 | |
631ef239 | 6038 | |
7083c021 AC |
6039 | |
6040 | cat >>confdefs.h <<_ACEOF | |
6041 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6042 | _ACEOF | |
6043 | ||
6044 | ||
6045 | # The cast to long int works around a bug in the HP C Compiler | |
6046 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6047 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6048 | # This bug is HP SR number 8606223364. | |
6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
6050 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 6051 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
6052 | $as_echo_n "(cached) " >&6 |
6053 | else | |
6054 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
6055 | ||
212380e3 | 6056 | else |
7083c021 AC |
6057 | if test "$ac_cv_type_long_long" = yes; then |
6058 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6059 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
6060 | as_fn_error 77 "cannot compute sizeof (long long) |
6061 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
6062 | else |
6063 | ac_cv_sizeof_long_long=0 | |
6064 | fi | |
212380e3 | 6065 | fi |
212380e3 AC |
6066 | |
6067 | fi | |
7083c021 AC |
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
6069 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
6070 | |
6071 | ||
6072 | ||
7083c021 AC |
6073 | cat >>confdefs.h <<_ACEOF |
6074 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6075 | _ACEOF | |
212380e3 | 6076 | |
212380e3 | 6077 | |
212380e3 | 6078 | |
7083c021 AC |
6079 | |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6081 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 6082 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
6083 | $as_echo_n "(cached) " >&6 |
6084 | else | |
6085 | ac_func_search_save_LIBS=$LIBS | |
6086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6087 | /* end confdefs.h. */ |
7083c021 AC |
6088 | |
6089 | /* Override any GCC internal prototype to avoid an error. | |
6090 | Use char because int might match the return type of a GCC | |
6091 | builtin and then its argument prototype would still apply. */ | |
6092 | #ifdef __cplusplus | |
6093 | extern "C" | |
6094 | #endif | |
6095 | char socket (); | |
212380e3 AC |
6096 | int |
6097 | main () | |
6098 | { | |
7083c021 | 6099 | return socket (); |
212380e3 AC |
6100 | ; |
6101 | return 0; | |
6102 | } | |
6103 | _ACEOF | |
7083c021 AC |
6104 | for ac_lib in '' socket; do |
6105 | if test -z "$ac_lib"; then | |
6106 | ac_res="none required" | |
6107 | else | |
6108 | ac_res=-l$ac_lib | |
6109 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6110 | fi | |
6111 | if ac_fn_c_try_link "$LINENO"; then : | |
6112 | ac_cv_search_socket=$ac_res | |
6113 | fi | |
6114 | rm -f core conftest.err conftest.$ac_objext \ | |
6115 | conftest$ac_exeext | |
b6d0720c | 6116 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
6117 | break |
6118 | fi | |
6119 | done | |
b6d0720c | 6120 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
6121 | |
6122 | else | |
7083c021 AC |
6123 | ac_cv_search_socket=no |
6124 | fi | |
6125 | rm conftest.$ac_ext | |
6126 | LIBS=$ac_func_search_save_LIBS | |
6127 | fi | |
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6129 | $as_echo "$ac_cv_search_socket" >&6; } | |
6130 | ac_res=$ac_cv_search_socket | |
6131 | if test "$ac_res" != no; then : | |
6132 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6133 | |
7083c021 | 6134 | else |
b6d0720c | 6135 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 6136 | fi |
631ef239 | 6137 | |
212380e3 | 6138 | |
7083c021 AC |
6139 | if test x"$SUN" = xyes; then |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
6141 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 6142 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6143 | $as_echo_n "(cached) " >&6 |
6144 | else | |
6145 | ac_func_search_save_LIBS=$LIBS | |
6146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6147 | /* end confdefs.h. */ |
7083c021 AC |
6148 | |
6149 | /* Override any GCC internal prototype to avoid an error. | |
6150 | Use char because int might match the return type of a GCC | |
6151 | builtin and then its argument prototype would still apply. */ | |
6152 | #ifdef __cplusplus | |
6153 | extern "C" | |
6154 | #endif | |
6155 | char inet_ntoa (); | |
212380e3 AC |
6156 | int |
6157 | main () | |
6158 | { | |
7083c021 | 6159 | return inet_ntoa (); |
212380e3 AC |
6160 | ; |
6161 | return 0; | |
6162 | } | |
6163 | _ACEOF | |
7083c021 AC |
6164 | for ac_lib in '' nsl; do |
6165 | if test -z "$ac_lib"; then | |
6166 | ac_res="none required" | |
6167 | else | |
6168 | ac_res=-l$ac_lib | |
6169 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6170 | fi | |
6171 | if ac_fn_c_try_link "$LINENO"; then : | |
6172 | ac_cv_search_inet_ntoa=$ac_res | |
6173 | fi | |
6174 | rm -f core conftest.err conftest.$ac_objext \ | |
6175 | conftest$ac_exeext | |
b6d0720c | 6176 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6177 | break |
6178 | fi | |
6179 | done | |
b6d0720c | 6180 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
6181 | |
6182 | else | |
7083c021 AC |
6183 | ac_cv_search_inet_ntoa=no |
6184 | fi | |
6185 | rm conftest.$ac_ext | |
6186 | LIBS=$ac_func_search_save_LIBS | |
6187 | fi | |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6189 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6190 | ac_res=$ac_cv_search_inet_ntoa | |
6191 | if test "$ac_res" != no; then : | |
6192 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6193 | |
7083c021 | 6194 | else |
b6d0720c | 6195 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 6196 | fi |
631ef239 | 6197 | |
7083c021 | 6198 | fi |
212380e3 | 6199 | |
7083c021 AC |
6200 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6201 | #include <sys/socket.h> | |
6202 | " | |
b6d0720c | 6203 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
6204 | |
6205 | else | |
6206 | ||
7083c021 | 6207 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 6208 | |
7083c021 | 6209 | fi |
212380e3 AC |
6210 | |
6211 | ||
7083c021 AC |
6212 | # Check whether --enable-ipv6 was given. |
6213 | if test "${enable_ipv6+set}" = set; then : | |
6214 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 6215 | else |
7083c021 AC |
6216 | ipv6=no |
6217 | fi | |
212380e3 | 6218 | |
212380e3 | 6219 | |
7083c021 AC |
6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
6221 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 6222 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6223 | $as_echo_n "(cached) " >&6 |
6224 | else | |
6225 | ac_func_search_save_LIBS=$LIBS | |
6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6227 | /* end confdefs.h. */ | |
212380e3 | 6228 | |
631ef239 AC |
6229 | /* Override any GCC internal prototype to avoid an error. |
6230 | Use char because int might match the return type of a GCC | |
6231 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6232 | #ifdef __cplusplus |
6233 | extern "C" | |
212380e3 | 6234 | #endif |
7083c021 | 6235 | char crypt (); |
212380e3 AC |
6236 | int |
6237 | main () | |
6238 | { | |
7083c021 | 6239 | return crypt (); |
212380e3 AC |
6240 | ; |
6241 | return 0; | |
6242 | } | |
6243 | _ACEOF | |
7083c021 AC |
6244 | for ac_lib in '' crypt descrypt; do |
6245 | if test -z "$ac_lib"; then | |
6246 | ac_res="none required" | |
6247 | else | |
6248 | ac_res=-l$ac_lib | |
6249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6250 | fi | |
6251 | if ac_fn_c_try_link "$LINENO"; then : | |
6252 | ac_cv_search_crypt=$ac_res | |
6253 | fi | |
6254 | rm -f core conftest.err conftest.$ac_objext \ | |
6255 | conftest$ac_exeext | |
b6d0720c | 6256 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6257 | break |
6258 | fi | |
6259 | done | |
b6d0720c | 6260 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 6261 | |
212380e3 | 6262 | else |
7083c021 AC |
6263 | ac_cv_search_crypt=no |
6264 | fi | |
6265 | rm conftest.$ac_ext | |
6266 | LIBS=$ac_func_search_save_LIBS | |
6267 | fi | |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
6269 | $as_echo "$ac_cv_search_crypt" >&6; } | |
6270 | ac_res=$ac_cv_search_crypt | |
6271 | if test "$ac_res" != no; then : | |
6272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6273 | |
212380e3 | 6274 | fi |
631ef239 | 6275 | |
7083c021 AC |
6276 | |
6277 | CRYPT_LIB=$ac_cv_search_crypt | |
6278 | ||
6279 | if test "$CRYPT_LIB" = "none required"; then | |
6280 | unset CRYPT_LIB | |
6281 | elif test "$CRYPT_LIB" = no; then | |
6282 | unset CRYPT_LIB | |
212380e3 | 6283 | fi |
7083c021 AC |
6284 | |
6285 | ||
6286 | ||
6287 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
6288 | VICONF=viconf | |
6289 | else | |
6290 | VICONF="" | |
6291 | fi | |
6292 | ||
6293 | ||
6294 | ||
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
6296 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 6297 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
6298 | $as_echo_n "(cached) " >&6 |
6299 | else | |
6300 | ||
6301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6302 | /* end confdefs.h. */ | |
6303 | #include <string.h> | |
6304 | #include <strings.h> | |
212380e3 | 6305 | _ACEOF |
7083c021 AC |
6306 | if ac_fn_c_try_compile "$LINENO"; then : |
6307 | gcc_cv_header_string=yes | |
6308 | else | |
6309 | gcc_cv_header_string=no | |
6310 | fi | |
6311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6312 | |
6313 | fi | |
7083c021 AC |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
6315 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 6316 | |
7083c021 AC |
6317 | if test "$gcc_cv_header_string" = "yes"; then |
6318 | ||
6319 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
6320 | ||
6321 | fi | |
212380e3 | 6322 | |
7083c021 AC |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6324 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 6325 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
6326 | $as_echo_n "(cached) " >&6 |
6327 | else | |
6328 | ac_cv_c_bigendian=unknown | |
6329 | # See if we're dealing with a universal compiler. | |
6330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6331 | /* end confdefs.h. */ | |
6332 | #ifndef __APPLE_CC__ | |
6333 | not a universal capable compiler | |
6334 | #endif | |
6335 | typedef int dummy; | |
6336 | ||
6337 | _ACEOF | |
6338 | if ac_fn_c_try_compile "$LINENO"; then : | |
6339 | ||
6340 | # Check for potential -arch flags. It is not universal unless | |
6341 | # there are at least two -arch flags with different values. | |
6342 | ac_arch= | |
6343 | ac_prev= | |
6344 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6345 | if test -n "$ac_prev"; then | |
6346 | case $ac_word in | |
6347 | i?86 | x86_64 | ppc | ppc64) | |
6348 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6349 | ac_arch=$ac_word | |
6350 | else | |
6351 | ac_cv_c_bigendian=universal | |
6352 | break | |
6353 | fi | |
6354 | ;; | |
6355 | esac | |
6356 | ac_prev= | |
6357 | elif test "x$ac_word" = "x-arch"; then | |
6358 | ac_prev=arch | |
6359 | fi | |
6360 | done | |
212380e3 | 6361 | fi |
7083c021 AC |
6362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6363 | if test $ac_cv_c_bigendian = unknown; then | |
6364 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6366 | /* end confdefs.h. */ | |
6367 | #include <sys/types.h> | |
6368 | #include <sys/param.h> | |
6369 | ||
6370 | int | |
6371 | main () | |
6372 | { | |
6373 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6374 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6375 | && LITTLE_ENDIAN) | |
6376 | bogus endian macros | |
6377 | #endif | |
6378 | ||
6379 | ; | |
6380 | return 0; | |
6381 | } | |
6382 | _ACEOF | |
6383 | if ac_fn_c_try_compile "$LINENO"; then : | |
6384 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6386 | /* end confdefs.h. */ | |
6387 | #include <sys/types.h> | |
6388 | #include <sys/param.h> | |
6389 | ||
6390 | int | |
6391 | main () | |
6392 | { | |
6393 | #if BYTE_ORDER != BIG_ENDIAN | |
6394 | not big endian | |
6395 | #endif | |
212380e3 | 6396 | |
7083c021 AC |
6397 | ; |
6398 | return 0; | |
6399 | } | |
6400 | _ACEOF | |
6401 | if ac_fn_c_try_compile "$LINENO"; then : | |
6402 | ac_cv_c_bigendian=yes | |
212380e3 | 6403 | else |
7083c021 AC |
6404 | ac_cv_c_bigendian=no |
6405 | fi | |
6406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6407 | fi | |
6408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6409 | fi | |
6410 | if test $ac_cv_c_bigendian = unknown; then | |
6411 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6413 | /* end confdefs.h. */ | |
6414 | #include <limits.h> | |
6415 | ||
6416 | int | |
6417 | main () | |
6418 | { | |
6419 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6420 | bogus endian macros | |
6421 | #endif | |
6422 | ||
6423 | ; | |
6424 | return 0; | |
6425 | } | |
212380e3 | 6426 | _ACEOF |
7083c021 AC |
6427 | if ac_fn_c_try_compile "$LINENO"; then : |
6428 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6430 | /* end confdefs.h. */ |
7083c021 AC |
6431 | #include <limits.h> |
6432 | ||
212380e3 AC |
6433 | int |
6434 | main () | |
6435 | { | |
7083c021 AC |
6436 | #ifndef _BIG_ENDIAN |
6437 | not big endian | |
6438 | #endif | |
6439 | ||
212380e3 AC |
6440 | ; |
6441 | return 0; | |
6442 | } | |
6443 | _ACEOF | |
7083c021 AC |
6444 | if ac_fn_c_try_compile "$LINENO"; then : |
6445 | ac_cv_c_bigendian=yes | |
212380e3 | 6446 | else |
7083c021 | 6447 | ac_cv_c_bigendian=no |
212380e3 | 6448 | fi |
631ef239 | 6449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6450 | fi |
7083c021 AC |
6451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6452 | fi | |
6453 | if test $ac_cv_c_bigendian = unknown; then | |
6454 | # Compile a test program. | |
6455 | if test "$cross_compiling" = yes; then : | |
6456 | # Try to guess by grepping values from an object file. | |
6457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6458 | /* end confdefs.h. */ | |
6459 | short int ascii_mm[] = | |
6460 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6461 | short int ascii_ii[] = | |
6462 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6463 | int use_ascii (int i) { | |
6464 | return ascii_mm[i] + ascii_ii[i]; | |
6465 | } | |
6466 | short int ebcdic_ii[] = | |
6467 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6468 | short int ebcdic_mm[] = | |
6469 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6470 | int use_ebcdic (int i) { | |
6471 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6472 | } | |
6473 | extern int foo; | |
212380e3 | 6474 | |
7083c021 AC |
6475 | int |
6476 | main () | |
6477 | { | |
6478 | return use_ascii (foo) == use_ebcdic (foo); | |
6479 | ; | |
6480 | return 0; | |
6481 | } | |
212380e3 | 6482 | _ACEOF |
7083c021 AC |
6483 | if ac_fn_c_try_compile "$LINENO"; then : |
6484 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6485 | ac_cv_c_bigendian=yes | |
6486 | fi | |
6487 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6488 | if test "$ac_cv_c_bigendian" = unknown; then | |
6489 | ac_cv_c_bigendian=no | |
6490 | else | |
6491 | # finding both strings is unlikely to happen, but who knows? | |
6492 | ac_cv_c_bigendian=unknown | |
6493 | fi | |
6494 | fi | |
6495 | fi | |
6496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6497 | else | |
6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
6499 | /* end confdefs.h. */ |
6500 | $ac_includes_default | |
6501 | int | |
6502 | main () | |
6503 | { | |
7083c021 AC |
6504 | |
6505 | /* Are we little or big endian? From Harbison&Steele. */ | |
6506 | union | |
6507 | { | |
6508 | long int l; | |
6509 | char c[sizeof (long int)]; | |
6510 | } u; | |
6511 | u.l = 1; | |
6512 | return u.c[sizeof (long int) - 1] == 1; | |
6513 | ||
212380e3 AC |
6514 | ; |
6515 | return 0; | |
6516 | } | |
6517 | _ACEOF | |
7083c021 AC |
6518 | if ac_fn_c_try_run "$LINENO"; then : |
6519 | ac_cv_c_bigendian=no | |
212380e3 | 6520 | else |
7083c021 | 6521 | ac_cv_c_bigendian=yes |
212380e3 | 6522 | fi |
7083c021 AC |
6523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6524 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6525 | fi |
212380e3 | 6526 | |
7083c021 AC |
6527 | fi |
6528 | fi | |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6530 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6531 | case $ac_cv_c_bigendian in #( | |
6532 | yes) | |
6533 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6534 | ;; #( | |
6535 | no) | |
6536 | ;; #( | |
6537 | universal) | |
212380e3 | 6538 | |
7083c021 | 6539 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 6540 | |
7083c021 AC |
6541 | ;; #( |
6542 | *) | |
b6d0720c | 6543 | as_fn_error $? "unknown endianness |
7083c021 AC |
6544 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6545 | esac | |
212380e3 | 6546 | |
212380e3 | 6547 | |
7083c021 | 6548 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 6549 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 6550 | |
7083c021 | 6551 | else |
b6d0720c | 6552 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 6553 | fi |
212380e3 AC |
6554 | |
6555 | ||
212380e3 AC |
6556 | |
6557 | ||
7083c021 | 6558 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 6559 | |
7083c021 AC |
6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
6561 | $as_echo_n "checking for strlcpy... " >&6; } | |
6562 | save_CFLAGS=$CFLAGS | |
6563 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 6564 | |
7083c021 | 6565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6566 | /* end confdefs.h. */ |
7083c021 AC |
6567 | #include <string.h> |
6568 | #include <stdlib.h> | |
212380e3 AC |
6569 | int |
6570 | main () | |
6571 | { | |
7083c021 AC |
6572 | char *a = malloc(6); |
6573 | strlcpy(a, "hello", 6); | |
6574 | ||
212380e3 AC |
6575 | ; |
6576 | return 0; | |
6577 | } | |
6578 | _ACEOF | |
7083c021 AC |
6579 | if ac_fn_c_try_link "$LINENO"; then : |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6581 | $as_echo "yes" >&6; } | |
212380e3 | 6582 | |
7083c021 | 6583 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 6584 | |
212380e3 | 6585 | else |
7083c021 AC |
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6587 | $as_echo "no" >&6; } | |
212380e3 | 6588 | |
7083c021 AC |
6589 | fi |
6590 | rm -f core conftest.err conftest.$ac_objext \ | |
6591 | conftest$ac_exeext conftest.$ac_ext | |
6592 | ||
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
6594 | $as_echo_n "checking for strlcat... " >&6; } | |
6595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6596 | /* end confdefs.h. */ |
7083c021 AC |
6597 | #include <string.h> |
6598 | #include <stdlib.h> | |
212380e3 AC |
6599 | int |
6600 | main () | |
6601 | { | |
7083c021 AC |
6602 | char *a = malloc(6); |
6603 | a[0] = '\0'; | |
6604 | strlcat(a, "hello", 6); | |
6605 | ||
212380e3 AC |
6606 | ; |
6607 | return 0; | |
6608 | } | |
6609 | _ACEOF | |
7083c021 AC |
6610 | if ac_fn_c_try_link "$LINENO"; then : |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6612 | $as_echo "yes" >&6; } | |
631ef239 | 6613 | |
7083c021 | 6614 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 6615 | |
7083c021 AC |
6616 | else |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6618 | $as_echo "no" >&6; } | |
212380e3 | 6619 | |
7083c021 AC |
6620 | fi |
6621 | rm -f core conftest.err conftest.$ac_objext \ | |
6622 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6623 | |
7083c021 | 6624 | CFLAGS=$save_CFLAGS |
212380e3 AC |
6625 | |
6626 | else | |
6627 | ||
212380e3 | 6628 | |
7083c021 AC |
6629 | for ac_func in strlcat strlcpy |
6630 | do : | |
6631 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6632 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6633 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
6634 | cat >>confdefs.h <<_ACEOF |
6635 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
6636 | _ACEOF |
6637 | ||
212380e3 | 6638 | fi |
7083c021 | 6639 | done |
212380e3 AC |
6640 | |
6641 | ||
6642 | fi | |
6643 | ||
7083c021 | 6644 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 6645 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 6646 | |
212380e3 | 6647 | else |
212380e3 | 6648 | |
7083c021 | 6649 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 6650 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 6651 | |
631ef239 | 6652 | |
7083c021 | 6653 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 6654 | |
212380e3 | 6655 | |
7083c021 | 6656 | else |
212380e3 | 6657 | |
7083c021 AC |
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
6659 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 6660 | |
7083c021 | 6661 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 6662 | |
212380e3 | 6663 | |
212380e3 | 6664 | fi |
631ef239 | 6665 | |
7083c021 | 6666 | |
212380e3 | 6667 | fi |
7083c021 AC |
6668 | |
6669 | ||
6670 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 6671 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 6672 | |
212380e3 AC |
6673 | else |
6674 | ||
7083c021 | 6675 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 6676 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 6677 | |
7083c021 AC |
6678 | |
6679 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
6680 | |
6681 | ||
212380e3 | 6682 | else |
212380e3 | 6683 | |
7083c021 AC |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
6685 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 6686 | |
7083c021 | 6687 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 6688 | |
7083c021 AC |
6689 | |
6690 | fi | |
212380e3 AC |
6691 | |
6692 | ||
6693 | fi | |
6694 | ||
6695 | ||
7083c021 AC |
6696 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
6697 | #include <netinet/in.h> | |
6698 | " | |
b6d0720c | 6699 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 6700 | |
7083c021 | 6701 | else |
212380e3 | 6702 | |
7083c021 | 6703 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 6704 | |
7083c021 | 6705 | fi |
212380e3 AC |
6706 | |
6707 | ||
7083c021 AC |
6708 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
6709 | #include <sys/socket.h> | |
6710 | " | |
b6d0720c | 6711 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 6712 | |
212380e3 | 6713 | else |
212380e3 | 6714 | |
7083c021 | 6715 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 6716 | |
7083c021 | 6717 | fi |
212380e3 | 6718 | |
212380e3 | 6719 | |
7083c021 | 6720 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 6721 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 6722 | |
7083c021 AC |
6723 | cat >>confdefs.h <<_ACEOF |
6724 | #define HAVE_UINTPTR_T 1 | |
6725 | _ACEOF | |
212380e3 | 6726 | |
631ef239 | 6727 | |
212380e3 | 6728 | fi |
7083c021 AC |
6729 | |
6730 | ||
6731 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
6732 | do : | |
6733 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6734 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6735 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6736 | cat >>confdefs.h <<_ACEOF |
7083c021 | 6737 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
6738 | _ACEOF |
6739 | ||
6740 | fi | |
6741 | done | |
6742 | ||
6743 | ||
6744 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6745 | # for constant arguments. Useless! | |
7083c021 AC |
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6747 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 6748 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 6749 | $as_echo_n "(cached) " >&6 |
212380e3 | 6750 | else |
7083c021 | 6751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6752 | /* end confdefs.h. */ |
6753 | #include <alloca.h> | |
6754 | int | |
6755 | main () | |
6756 | { | |
6757 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 6758 | if (p) return 0; |
212380e3 AC |
6759 | ; |
6760 | return 0; | |
6761 | } | |
6762 | _ACEOF | |
7083c021 | 6763 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6764 | ac_cv_working_alloca_h=yes |
6765 | else | |
7083c021 | 6766 | ac_cv_working_alloca_h=no |
212380e3 | 6767 | fi |
7083c021 AC |
6768 | rm -f core conftest.err conftest.$ac_objext \ |
6769 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6770 | fi |
7083c021 AC |
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6772 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
6773 | if test $ac_cv_working_alloca_h = yes; then |
6774 | ||
7083c021 | 6775 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
6776 | |
6777 | fi | |
6778 | ||
7083c021 AC |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6780 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 6781 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 6782 | $as_echo_n "(cached) " >&6 |
212380e3 | 6783 | else |
7083c021 | 6784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6785 | /* end confdefs.h. */ |
6786 | #ifdef __GNUC__ | |
6787 | # define alloca __builtin_alloca | |
6788 | #else | |
6789 | # ifdef _MSC_VER | |
6790 | # include <malloc.h> | |
6791 | # define alloca _alloca | |
6792 | # else | |
631ef239 | 6793 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
6794 | # include <alloca.h> |
6795 | # else | |
6796 | # ifdef _AIX | |
6797 | #pragma alloca | |
6798 | # else | |
6799 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 6800 | void *alloca (size_t); |
212380e3 AC |
6801 | # endif |
6802 | # endif | |
6803 | # endif | |
6804 | # endif | |
6805 | #endif | |
6806 | ||
6807 | int | |
6808 | main () | |
6809 | { | |
6810 | char *p = (char *) alloca (1); | |
631ef239 | 6811 | if (p) return 0; |
212380e3 AC |
6812 | ; |
6813 | return 0; | |
6814 | } | |
6815 | _ACEOF | |
7083c021 | 6816 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6817 | ac_cv_func_alloca_works=yes |
6818 | else | |
7083c021 | 6819 | ac_cv_func_alloca_works=no |
212380e3 | 6820 | fi |
7083c021 AC |
6821 | rm -f core conftest.err conftest.$ac_objext \ |
6822 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6823 | fi |
7083c021 AC |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6825 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
6826 | |
6827 | if test $ac_cv_func_alloca_works = yes; then | |
6828 | ||
7083c021 | 6829 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6830 | |
6831 | else | |
6832 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6833 | # that cause trouble. Some versions do not even contain alloca or | |
6834 | # contain a buggy version. If you still want to use their alloca, | |
6835 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6836 | ||
631ef239 | 6837 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 6838 | |
7083c021 | 6839 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6840 | |
6841 | ||
7083c021 AC |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6843 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 6844 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 6845 | $as_echo_n "(cached) " >&6 |
212380e3 | 6846 | else |
7083c021 | 6847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6848 | /* end confdefs.h. */ |
631ef239 | 6849 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
6850 | webecray |
6851 | #else | |
6852 | wenotbecray | |
6853 | #endif | |
6854 | ||
6855 | _ACEOF | |
6856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 6857 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
6858 | ac_cv_os_cray=yes |
6859 | else | |
6860 | ac_cv_os_cray=no | |
6861 | fi | |
6862 | rm -f conftest* | |
6863 | ||
6864 | fi | |
7083c021 AC |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6866 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
6867 | if test $ac_cv_os_cray = yes; then |
6868 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
6869 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6870 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6871 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
6872 | |
6873 | cat >>confdefs.h <<_ACEOF | |
6874 | #define CRAY_STACKSEG_END $ac_func | |
6875 | _ACEOF | |
6876 | ||
6877 | break | |
6878 | fi | |
6879 | ||
6880 | done | |
6881 | fi | |
6882 | ||
7083c021 AC |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6884 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 6885 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 6886 | $as_echo_n "(cached) " >&6 |
212380e3 | 6887 | else |
7083c021 | 6888 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
6889 | ac_cv_c_stack_direction=0 |
6890 | else | |
7083c021 | 6891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6892 | /* end confdefs.h. */ |
631ef239 | 6893 | $ac_includes_default |
212380e3 | 6894 | int |
2eff3833 | 6895 | find_stack_direction (int *addr, int depth) |
212380e3 | 6896 | { |
2eff3833 JT |
6897 | int dir, dummy = 0; |
6898 | if (! addr) | |
6899 | addr = &dummy; | |
6900 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
6901 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
6902 | return dir + dummy; | |
212380e3 AC |
6903 | } |
6904 | ||
6905 | int | |
2eff3833 | 6906 | main (int argc, char **argv) |
212380e3 | 6907 | { |
2eff3833 | 6908 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
6909 | } |
6910 | _ACEOF | |
7083c021 | 6911 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6912 | ac_cv_c_stack_direction=1 |
6913 | else | |
7083c021 | 6914 | ac_cv_c_stack_direction=-1 |
212380e3 | 6915 | fi |
7083c021 AC |
6916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6917 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6918 | fi |
631ef239 | 6919 | |
212380e3 | 6920 | fi |
7083c021 AC |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
6922 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
6923 | cat >>confdefs.h <<_ACEOF |
6924 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6925 | _ACEOF | |
6926 | ||
6927 | ||
6928 | fi | |
6929 | ||
6930 | ||
6931 | ||
7083c021 | 6932 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 6933 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 6934 | |
212380e3 | 6935 | else |
7083c021 AC |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
6937 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 6938 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 6939 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6940 | else |
6941 | ac_check_lib_save_LIBS=$LIBS | |
6942 | LIBS="-lrt $LIBS" | |
7083c021 | 6943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6944 | /* end confdefs.h. */ |
6945 | ||
631ef239 AC |
6946 | /* Override any GCC internal prototype to avoid an error. |
6947 | Use char because int might match the return type of a GCC | |
6948 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6949 | #ifdef __cplusplus |
6950 | extern "C" | |
6951 | #endif | |
212380e3 AC |
6952 | char nanosleep (); |
6953 | int | |
6954 | main () | |
6955 | { | |
631ef239 | 6956 | return nanosleep (); |
212380e3 AC |
6957 | ; |
6958 | return 0; | |
6959 | } | |
6960 | _ACEOF | |
7083c021 | 6961 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6962 | ac_cv_lib_rt_nanosleep=yes |
6963 | else | |
7083c021 | 6964 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 6965 | fi |
7083c021 AC |
6966 | rm -f core conftest.err conftest.$ac_objext \ |
6967 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6968 | LIBS=$ac_check_lib_save_LIBS |
6969 | fi | |
7083c021 AC |
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
6971 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 6972 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
6973 | LIBS="${LIBS} -lrt" |
6974 | else | |
7083c021 AC |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
6976 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 6977 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 6978 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6979 | else |
6980 | ac_check_lib_save_LIBS=$LIBS | |
6981 | LIBS="-lposix4 $LIBS" | |
7083c021 | 6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6983 | /* end confdefs.h. */ |
6984 | ||
631ef239 AC |
6985 | /* Override any GCC internal prototype to avoid an error. |
6986 | Use char because int might match the return type of a GCC | |
6987 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6988 | #ifdef __cplusplus |
6989 | extern "C" | |
6990 | #endif | |
212380e3 AC |
6991 | char nanosleep (); |
6992 | int | |
6993 | main () | |
6994 | { | |
631ef239 | 6995 | return nanosleep (); |
212380e3 AC |
6996 | ; |
6997 | return 0; | |
6998 | } | |
6999 | _ACEOF | |
7083c021 | 7000 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7001 | ac_cv_lib_posix4_nanosleep=yes |
7002 | else | |
7083c021 | 7003 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 7004 | fi |
7083c021 AC |
7005 | rm -f core conftest.err conftest.$ac_objext \ |
7006 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7007 | LIBS=$ac_check_lib_save_LIBS |
7008 | fi | |
7083c021 AC |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
7010 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 7011 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
7012 | LIBS="${LIBS} -lposix4" |
7013 | ||
7014 | fi | |
7015 | ||
7016 | fi | |
7017 | ||
7018 | fi | |
7019 | ||
7020 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
7021 | then | |
7083c021 AC |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
7023 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
7024 | else |
7025 | ||
7083c021 | 7026 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
7027 | |
7028 | fi | |
7029 | ||
7083c021 AC |
7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
7031 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 7032 | # Check whether --enable-openssl was given. |
7083c021 | 7033 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 7034 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
7035 | else |
7036 | cf_enable_openssl="auto" | |
631ef239 AC |
7037 | fi |
7038 | ||
212380e3 AC |
7039 | |
7040 | if test "$cf_enable_openssl" != "no" ; then | |
7041 | cf_openssl_basedir="" | |
7042 | if test "$cf_enable_openssl" != "auto" && | |
7043 | test "$cf_enable_openssl" != "yes" ; then | |
7044 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
7045 | else | |
7046 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
7047 | /usr/local/openssl ; do | |
7048 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
7049 | cf_openssl_basedir="${dirs}" | |
7050 | break | |
7051 | fi | |
7052 | done | |
7053 | unset dirs | |
7054 | fi | |
7055 | if test ! -z "$cf_openssl_basedir"; then | |
7056 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
7057 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
7058 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
7059 | else | |
7060 | cf_openssl_basedir="" | |
7061 | fi | |
7062 | else | |
7063 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
7064 | cf_openssl_basedir="/usr" | |
7065 | fi | |
7066 | fi | |
7067 | ||
7068 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
7070 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
7071 | cf_enable_openssl="yes" |
7072 | else | |
7083c021 AC |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
7074 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
7075 | cf_enable_openssl="no" |
7076 | fi | |
7077 | unset cf_openssl_basedir | |
7078 | else | |
7083c021 AC |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
7080 | $as_echo "disabled" >&6; } | |
212380e3 AC |
7081 | fi |
7082 | ||
7083 | save_CPPFLAGS="$CPPFLAGS" | |
7084 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
7085 | save_LIBS="$LIBS" | |
7086 | LIBS="$LIBS $SSL_LIBS" | |
7087 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
7089 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
7090 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
7091 | cf_openssl_version_ok=no |
7092 | else | |
7083c021 | 7093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7094 | /* end confdefs.h. */ |
7095 | #include <openssl/opensslv.h> | |
7096 | #include <stdlib.h> | |
7097 | int | |
7098 | main () | |
7099 | { | |
7100 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
7101 | exit(0); else exit(1); | |
7102 | ; | |
7103 | return 0; | |
7104 | } | |
7105 | _ACEOF | |
7083c021 | 7106 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
7107 | cf_openssl_version_ok=yes |
7108 | else | |
7083c021 | 7109 | cf_openssl_version_ok=no |
212380e3 | 7110 | fi |
7083c021 AC |
7111 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7112 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
7113 | fi |
7114 | ||
631ef239 | 7115 | |
212380e3 | 7116 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
7118 | $as_echo "found" >&6; } | |
212380e3 AC |
7119 | |
7120 | ENCSPEED=encspeed | |
7121 | ||
7122 | ||
7123 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
7125 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 7126 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 7127 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7128 | else |
7129 | ac_check_lib_save_LIBS=$LIBS | |
7130 | LIBS="-lcrypto $LIBS" | |
7083c021 | 7131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7132 | /* end confdefs.h. */ |
7133 | ||
631ef239 AC |
7134 | /* Override any GCC internal prototype to avoid an error. |
7135 | Use char because int might match the return type of a GCC | |
7136 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7137 | #ifdef __cplusplus |
7138 | extern "C" | |
7139 | #endif | |
212380e3 AC |
7140 | char RSA_free (); |
7141 | int | |
7142 | main () | |
7143 | { | |
631ef239 | 7144 | return RSA_free (); |
212380e3 AC |
7145 | ; |
7146 | return 0; | |
7147 | } | |
7148 | _ACEOF | |
7083c021 | 7149 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7150 | ac_cv_lib_crypto_RSA_free=yes |
7151 | else | |
7083c021 | 7152 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 7153 | fi |
7083c021 AC |
7154 | rm -f core conftest.err conftest.$ac_objext \ |
7155 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7156 | LIBS=$ac_check_lib_save_LIBS |
7157 | fi | |
7083c021 AC |
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7159 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 7160 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
7161 | cat >>confdefs.h <<_ACEOF |
7162 | #define HAVE_LIBCRYPTO 1 | |
7163 | _ACEOF | |
7164 | ||
7165 | LIBS="-lcrypto $LIBS" | |
7166 | ||
7167 | fi | |
7168 | ||
7169 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
7170 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
7171 | else | |
7083c021 AC |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
7173 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
7174 | fi |
7175 | fi | |
7176 | ||
7177 | CPPFLAGS="$save_CPPFLAGS" | |
7178 | LIBS="$save_LIBS" | |
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
631ef239 | 7184 | # Check whether --with-zlib-path was given. |
7083c021 | 7185 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
7186 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
7187 | fi | |
212380e3 | 7188 | |
7083c021 AC |
7189 | |
7190 | # Check whether --enable-zlib was given. | |
7191 | if test "${enable_zlib+set}" = set; then : | |
7192 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 7193 | else |
7083c021 | 7194 | zlib=yes |
212380e3 | 7195 | fi |
212380e3 | 7196 | |
212380e3 | 7197 | |
7083c021 AC |
7198 | if test "$zlib" = yes; then |
7199 | ||
7200 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 7201 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
7202 | |
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
7204 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 7205 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 7206 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7207 | else |
7208 | ac_check_lib_save_LIBS=$LIBS | |
7209 | LIBS="-lz $LIBS" | |
7083c021 | 7210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7211 | /* end confdefs.h. */ |
7212 | ||
631ef239 AC |
7213 | /* Override any GCC internal prototype to avoid an error. |
7214 | Use char because int might match the return type of a GCC | |
7215 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7216 | #ifdef __cplusplus |
7217 | extern "C" | |
7218 | #endif | |
212380e3 AC |
7219 | char zlibVersion (); |
7220 | int | |
7221 | main () | |
7222 | { | |
631ef239 | 7223 | return zlibVersion (); |
212380e3 AC |
7224 | ; |
7225 | return 0; | |
7226 | } | |
7227 | _ACEOF | |
7083c021 | 7228 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7229 | ac_cv_lib_z_zlibVersion=yes |
7230 | else | |
7083c021 | 7231 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 7232 | fi |
7083c021 AC |
7233 | rm -f core conftest.err conftest.$ac_objext \ |
7234 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7235 | LIBS=$ac_check_lib_save_LIBS |
7236 | fi | |
7083c021 AC |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
7238 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 7239 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
7240 | |
7241 | ZLIB_LD=-lz | |
7242 | ||
7243 | ||
7083c021 | 7244 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
7245 | |
7246 | ||
7247 | else | |
7248 | zlib=no | |
7249 | fi | |
7250 | ||
7251 | ||
7252 | else | |
7253 | zlib=no | |
7254 | fi | |
7255 | ||
7256 | ||
7257 | ||
497e30a0 LS |
7258 | fi |
7259 | ||
a6ef3156 LS |
7260 | |
7261 | # Check whether --with-shared-sqlite was given. | |
7262 | if test "${with_shared_sqlite+set}" = set; then : | |
7263 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
7264 | else |
7265 | shared_sqlite=no | |
7266 | fi | |
7267 | ||
7268 | ||
7269 | if test "$shared_sqlite" = yes; then | |
7270 | ||
cf1001a7 | 7271 | |
a5471f24 LS |
7272 | |
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7278 | if test -n "$ac_tool_prefix"; then | |
7279 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7280 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7282 | $as_echo_n "checking for $ac_word... " >&6; } | |
7283 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
7284 | $as_echo_n "(cached) " >&6 | |
7285 | else | |
7286 | case $PKG_CONFIG in | |
7287 | [\\/]* | ?:[\\/]*) | |
7288 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7289 | ;; | |
7290 | *) | |
7291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7292 | for as_dir in $PATH | |
7293 | do | |
7294 | IFS=$as_save_IFS | |
7295 | test -z "$as_dir" && as_dir=. | |
7296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7298 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7300 | break 2 | |
7301 | fi | |
7302 | done | |
7303 | done | |
7304 | IFS=$as_save_IFS | |
7305 | ||
7306 | ;; | |
cf1001a7 | 7307 | esac |
a5471f24 LS |
7308 | fi |
7309 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7310 | if test -n "$PKG_CONFIG"; then | |
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7312 | $as_echo "$PKG_CONFIG" >&6; } | |
7313 | else | |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7315 | $as_echo "no" >&6; } | |
7316 | fi | |
cf1001a7 | 7317 | |
497e30a0 | 7318 | |
a5471f24 LS |
7319 | fi |
7320 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7321 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7322 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7323 | set dummy pkg-config; ac_word=$2 | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7325 | $as_echo_n "checking for $ac_word... " >&6; } | |
7326 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
7327 | $as_echo_n "(cached) " >&6 |
7328 | else | |
a5471f24 LS |
7329 | case $ac_pt_PKG_CONFIG in |
7330 | [\\/]* | ?:[\\/]*) | |
7331 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
7332 | ;; | |
7333 | *) | |
7334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7335 | for as_dir in $PATH | |
7336 | do | |
7337 | IFS=$as_save_IFS | |
7338 | test -z "$as_dir" && as_dir=. | |
7339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7341 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7343 | break 2 | |
7344 | fi | |
7345 | done | |
7346 | done | |
7347 | IFS=$as_save_IFS | |
497e30a0 | 7348 | |
a5471f24 LS |
7349 | ;; |
7350 | esac | |
7351 | fi | |
7352 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7353 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7355 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 7356 | else |
a5471f24 LS |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7358 | $as_echo "no" >&6; } | |
497e30a0 | 7359 | fi |
a5471f24 LS |
7360 | |
7361 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7362 | PKG_CONFIG="" | |
7363 | else | |
7364 | case $cross_compiling:$ac_tool_warned in | |
7365 | yes:) | |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7367 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7368 | ac_tool_warned=yes ;; | |
7369 | esac | |
7370 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7371 | fi | |
7372 | else | |
7373 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 7374 | fi |
497e30a0 | 7375 | |
a5471f24 LS |
7376 | fi |
7377 | if test -n "$PKG_CONFIG"; then | |
7378 | _pkg_min_version=0.9.0 | |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7380 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7381 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7383 | $as_echo "yes" >&6; } | |
7384 | else | |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7386 | $as_echo "no" >&6; } | |
7387 | PKG_CONFIG="" | |
7388 | fi | |
7389 | fi | |
7390 | ||
7391 | pkg_failed=no | |
7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
7393 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 7394 | |
a5471f24 LS |
7395 | if test -n "$SQLITE_CFLAGS"; then |
7396 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
7397 | elif test -n "$PKG_CONFIG"; then | |
7398 | if test -n "$PKG_CONFIG" && \ | |
7399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
7400 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
7401 | ac_status=$? | |
7402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7403 | test $ac_status = 0; }; then | |
7404 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
7405 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 7406 | else |
a5471f24 LS |
7407 | pkg_failed=yes |
7408 | fi | |
7409 | else | |
7410 | pkg_failed=untried | |
7411 | fi | |
7412 | if test -n "$SQLITE_LIBS"; then | |
7413 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
7414 | elif test -n "$PKG_CONFIG"; then | |
7415 | if test -n "$PKG_CONFIG" && \ | |
7416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
7417 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
7418 | ac_status=$? | |
7419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7420 | test $ac_status = 0; }; then | |
7421 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
7422 | test "x$?" != "x0" && pkg_failed=yes | |
7423 | else | |
7424 | pkg_failed=yes | |
7425 | fi | |
7426 | else | |
7427 | pkg_failed=untried | |
497e30a0 LS |
7428 | fi |
7429 | ||
7430 | ||
a5471f24 LS |
7431 | |
7432 | if test $pkg_failed = yes; then | |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7434 | $as_echo "no" >&6; } | |
7435 | ||
7436 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7437 | _pkg_short_errors_supported=yes | |
497e30a0 | 7438 | else |
a5471f24 | 7439 | _pkg_short_errors_supported=no |
497e30a0 | 7440 | fi |
a5471f24 LS |
7441 | if test $_pkg_short_errors_supported = yes; then |
7442 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
7443 | else | |
7444 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
7445 | fi | |
7446 | # Put the nasty error message in config.log where it belongs | |
7447 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 7448 | |
a5471f24 LS |
7449 | shared_sqlite=no |
7450 | elif test $pkg_failed = untried; then | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7452 | $as_echo "no" >&6; } | |
7453 | shared_sqlite=no | |
7454 | else | |
7455 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
7456 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7458 | $as_echo "yes" >&6; } | |
497e30a0 | 7459 | |
a5471f24 | 7460 | shared_sqlite=yes |
497e30a0 | 7461 | |
74ab6be0 | 7462 | fi |
a5471f24 | 7463 | fi |
74ab6be0 LS |
7464 | |
7465 | if test "$shared_sqlite" = no; then | |
cf1001a7 | 7466 | SQLITE_SRC="sqlite3.c" |
212380e3 AC |
7467 | fi |
7468 | ||
a5471f24 | 7469 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 7470 | |
a5471f24 | 7471 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
7472 | |
7473 | ||
cf1001a7 LS |
7474 | |
7475 | ||
c1c5fdc4 | 7476 | # Check whether --enable-ports was given. |
7083c021 | 7477 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
7478 | enableval=$enable_ports; if test $enableval = yes; then |
7479 | SELECT_TYPE_EXPLICIT="ports" | |
7480 | else | |
7481 | use_ports=no | |
7482 | fi | |
7483 | ||
7484 | fi | |
7485 | ||
7486 | ||
631ef239 | 7487 | # Check whether --enable-poll was given. |
7083c021 | 7488 | if test "${enable_poll+set}" = set; then : |
631ef239 | 7489 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
7490 | SELECT_TYPE_EXPLICIT="poll" |
7491 | else | |
7492 | use_poll=no | |
7493 | fi | |
7494 | ||
631ef239 AC |
7495 | fi |
7496 | ||
212380e3 | 7497 | |
631ef239 | 7498 | # Check whether --enable-select was given. |
7083c021 | 7499 | if test "${enable_select+set}" = set; then : |
631ef239 | 7500 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
7501 | SELECT_TYPE_EXPLICIT="select" |
7502 | else | |
7503 | use_select=no | |
7504 | fi | |
7505 | ||
631ef239 AC |
7506 | fi |
7507 | ||
212380e3 | 7508 | |
631ef239 | 7509 | # Check whether --enable-kqueue was given. |
7083c021 | 7510 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 7511 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
7512 | SELECT_TYPE_EXPLICIT="kqueue" |
7513 | else | |
7514 | use_kqueue=no | |
7515 | fi | |
7516 | ||
631ef239 AC |
7517 | fi |
7518 | ||
212380e3 | 7519 | |
631ef239 | 7520 | # Check whether --enable-epoll was given. |
7083c021 | 7521 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 7522 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 7523 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
7524 | for ac_func in epoll_ctl |
7525 | do : | |
7526 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7527 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 7528 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7529 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
7530 | _ACEOF |
7531 | haveepoll=yes | |
7532 | else | |
7533 | haveepoll=no | |
7534 | fi | |
7535 | done | |
7536 | ||
212380e3 AC |
7537 | else |
7538 | use_epoll=no | |
7539 | fi | |
7540 | ||
631ef239 AC |
7541 | fi |
7542 | ||
212380e3 AC |
7543 | |
7544 | ||
212380e3 | 7545 | |
631ef239 | 7546 | # Check whether --with-confdir was given. |
7083c021 | 7547 | if test "${with_confdir+set}" = set; then : |
634d4aad | 7548 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 7549 | else |
9f9b7042 | 7550 | confdir='${sysconfdir}' |
634d4aad NPB |
7551 | fi |
7552 | ||
212380e3 AC |
7553 | |
7554 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7555 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 7556 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 7557 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 7558 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7559 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7560 | last_ac_define_dir="$ac_define_dir" | |
7561 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7562 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7563 | if test "x$ac_define_dir_counter" = x128; then : | |
7564 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
7565 | break | |
7566 | fi | |
9f9b7042 | 7567 | done |
212380e3 AC |
7568 | ETC_DIR="$ac_define_dir" |
7569 | ||
7570 | ||
7571 | cat >>confdefs.h <<_ACEOF | |
7572 | #define ETC_DIR "$ac_define_dir" | |
7573 | _ACEOF | |
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7083c021 AC |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
7579 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 7580 | |
631ef239 | 7581 | # Check whether --with-logdir was given. |
7083c021 | 7582 | if test "${with_logdir+set}" = set; then : |
631ef239 | 7583 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7585 | $as_echo "yes" >&6; } | |
212380e3 | 7586 | else |
9f9b7042 NPB |
7587 | if test "x$enable_fhs_paths" = "xyes"; then : |
7588 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
7589 | else | |
7590 | logdir='${prefix}/logs' | |
7591 | fi | |
7083c021 AC |
7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7593 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
7594 | fi |
7595 | ||
212380e3 AC |
7596 | |
7597 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7598 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7599 | last_ac_define_dir=`eval echo $logdir` |
7600 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7601 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7602 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7603 | last_ac_define_dir="$ac_define_dir" | |
7604 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7605 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7606 | if test "x$ac_define_dir_counter" = x128; then : | |
7607 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
7608 | break | |
7609 | fi | |
9f9b7042 | 7610 | done |
212380e3 AC |
7611 | LOG_DIR="$ac_define_dir" |
7612 | ||
7613 | ||
7614 | cat >>confdefs.h <<_ACEOF | |
7615 | #define LOG_DIR "$ac_define_dir" | |
7616 | _ACEOF | |
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | logdir=`( | |
7622 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7623 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7624 | eval echo \""$logdir"\" | |
7625 | )` | |
7626 | ||
7627 | ||
7628 | ||
212380e3 | 7629 | |
7083c021 AC |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
7631 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 7632 | |
631ef239 | 7633 | # Check whether --with-helpdir was given. |
7083c021 | 7634 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 7635 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7637 | $as_echo "yes" >&6; } | |
212380e3 | 7638 | else |
9f9b7042 NPB |
7639 | if test "x$enable_fhs_paths" = "xyes"; then : |
7640 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
7641 | else | |
7642 | helpdir='${prefix}/help' | |
7643 | fi | |
7083c021 AC |
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7645 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
7646 | fi |
7647 | ||
212380e3 AC |
7648 | |
7649 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7650 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7651 | last_ac_define_dir=`eval echo $helpdir` |
7652 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7653 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7654 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7655 | last_ac_define_dir="$ac_define_dir" | |
7656 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7657 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7658 | if test "x$ac_define_dir_counter" = x128; then : | |
7659 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
7660 | break | |
7661 | fi | |
9f9b7042 | 7662 | done |
212380e3 AC |
7663 | HELP_DIR="$ac_define_dir" |
7664 | ||
7665 | ||
7666 | cat >>confdefs.h <<_ACEOF | |
7667 | #define HELP_DIR "$ac_define_dir" | |
7668 | _ACEOF | |
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7673 | helpdir=`( | |
7674 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7675 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7676 | eval echo \""$helpdir"\" | |
7677 | )` | |
7678 | ||
7679 | ||
7680 | ||
212380e3 | 7681 | |
7083c021 AC |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
7683 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 7684 | |
631ef239 | 7685 | # Check whether --with-moduledir was given. |
7083c021 | 7686 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 7687 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7689 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
7690 | else |
7691 | if test "x$enable_fhs_paths" = "xyes"; then : | |
7692 | moduledir='${pkglibdir}/modules' | |
7693 | else | |
7694 | moduledir='${prefix}/modules' | |
7695 | fi | |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7697 | $as_echo "no" >&6; } | |
7698 | ||
7699 | fi | |
7700 | ||
212380e3 AC |
7701 | |
7702 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7703 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7704 | last_ac_define_dir=`eval echo $moduledir` |
7705 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7706 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7707 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7708 | last_ac_define_dir="$ac_define_dir" | |
7709 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7710 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7711 | if test "x$ac_define_dir_counter" = x128; then : | |
7712 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
7713 | break | |
7714 | fi | |
9f9b7042 | 7715 | done |
212380e3 AC |
7716 | MODULE_DIR="$ac_define_dir" |
7717 | ||
7718 | ||
7719 | cat >>confdefs.h <<_ACEOF | |
7720 | #define MODULE_DIR "$ac_define_dir" | |
7721 | _ACEOF | |
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | moduledir=`( | |
7727 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7728 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7729 | eval echo \""$moduledir"\" | |
7730 | )` | |
7731 | ||
7732 | ||
9f9b7042 NPB |
7733 | |
7734 | ||
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
7736 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
7737 | ||
7738 | # Check whether --with-rundir was given. | |
7739 | if test "${with_rundir+set}" = set; then : | |
7740 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7741 | $as_echo "yes" >&6; } | |
7742 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 7743 | else |
9f9b7042 | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 7745 | $as_echo "no" >&6; } |
9f9b7042 NPB |
7746 | if test "x$enable_fhs_paths" = "xyes"; then : |
7747 | rundir='${prefix}/run' | |
7748 | else | |
7749 | rundir='${sysconfdir}' | |
7750 | fi | |
7751 | fi | |
7752 | ||
7753 | ||
212380e3 AC |
7754 | |
7755 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7756 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7757 | last_ac_define_dir=`eval echo $pkgrundir` |
7758 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7759 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7760 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7761 | last_ac_define_dir="$ac_define_dir" | |
7762 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7763 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7764 | if test "x$ac_define_dir_counter" = x128; then : | |
7765 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
7766 | break | |
7767 | fi | |
9f9b7042 NPB |
7768 | done |
7769 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
7770 | |
7771 | ||
7772 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 7773 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
7774 | _ACEOF |
7775 | ||
7776 | ||
7777 | ||
9f9b7042 NPB |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
7779 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 7780 | |
9f9b7042 NPB |
7781 | # Check whether --with-program-prefix was given. |
7782 | if test "${with_program_prefix+set}" = set; then : | |
7783 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
7784 | else | |
7785 | with_program_prefix= | |
7786 | fi | |
212380e3 | 7787 | |
9f9b7042 NPB |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
7789 | $as_echo "\"$with_program_prefix\"" >&6; } | |
7790 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
7791 | |
7792 | ||
9f9b7042 NPB |
7793 | cat >>confdefs.h <<_ACEOF |
7794 | #define PROGRAM_PREFIX "$with_program_prefix" | |
7795 | _ACEOF | |
631ef239 | 7796 | |
7083c021 | 7797 | |
b6d0720c AC |
7798 | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
7800 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
7801 | ||
7802 | # Check whether --with-custom-branding was given. | |
7803 | if test "${with_custom_branding+set}" = set; then : | |
7804 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7806 | $as_echo "yes" >&6; } | |
7807 | else | |
7808 | BRANDING_NAME=$PACKAGE_NAME | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7810 | $as_echo "no" >&6; } | |
7811 | ||
7812 | fi | |
7813 | ||
7814 | ||
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
7816 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
7817 | ||
7818 | # Check whether --with-custom-version was given. | |
7819 | if test "${with_custom_version+set}" = set; then : | |
7820 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7822 | $as_echo "yes" >&6; } | |
7823 | else | |
7824 | BRANDING_VERSION=$PACKAGE_VERSION | |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7826 | $as_echo "no" >&6; } | |
7827 | ||
7828 | fi | |
7829 | ||
7830 | ||
7831 | ||
7832 | cat >>confdefs.h <<_ACEOF | |
7833 | #define BRANDING_NAME "$BRANDING_NAME" | |
7834 | _ACEOF | |
7835 | ||
7836 | ||
7837 | cat >>confdefs.h <<_ACEOF | |
7838 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
7839 | _ACEOF | |
7840 | ||
7841 | ||
f5493691 AC |
7842 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
7843 | ||
7844 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
7845 | ||
7846 | fi | |
7847 | ||
7083c021 AC |
7848 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
7849 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
7850 | echo "Forcing $SELECT_TYPE to be enabled" | |
7851 | else | |
7852 | ||
7853 | if test ! "x$use_ports" = "xno"; then | |
7854 | for ac_func in port_getn | |
7855 | do : | |
7856 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 7857 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 7858 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7859 | #define HAVE_PORT_GETN 1 |
212380e3 | 7860 | _ACEOF |
7083c021 | 7861 | haveports=yes |
212380e3 | 7862 | else |
7083c021 | 7863 | haveports=no |
212380e3 AC |
7864 | fi |
7865 | done | |
7866 | ||
7083c021 AC |
7867 | if test "x$haveports" = "xyes" ; then |
7868 | SELECT_TYPE="ports" | |
212380e3 AC |
7869 | fi |
7870 | fi | |
7871 | ||
7083c021 AC |
7872 | if test ! "x$use_select" = "xno"; then |
7873 | for ac_func in select | |
7874 | do : | |
7875 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 7876 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
7877 | cat >>confdefs.h <<_ACEOF |
7878 | #define HAVE_SELECT 1 | |
212380e3 | 7879 | _ACEOF |
7083c021 AC |
7880 | haveselect=yes |
7881 | else | |
7882 | haveselect=no | |
7883 | fi | |
7884 | done | |
212380e3 | 7885 | |
7083c021 AC |
7886 | if test "x$haveselect" = "xyes" ; then |
7887 | SELECT_TYPE="select" | |
7888 | fi | |
7889 | fi | |
212380e3 | 7890 | |
7083c021 AC |
7891 | if test ! "x$use_poll" = "xno"; then |
7892 | for ac_func in poll | |
7893 | do : | |
7894 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 7895 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
7896 | cat >>confdefs.h <<_ACEOF |
7897 | #define HAVE_POLL 1 | |
212380e3 | 7898 | _ACEOF |
7083c021 | 7899 | havepoll=yes |
212380e3 | 7900 | else |
7083c021 | 7901 | havepoll=no |
212380e3 | 7902 | fi |
7083c021 | 7903 | done |
631ef239 | 7904 | |
7083c021 AC |
7905 | if test "x$havepoll" = "xyes" ; then |
7906 | SELECT_TYPE="poll" | |
7907 | fi | |
212380e3 | 7908 | fi |
7083c021 AC |
7909 | |
7910 | if test ! "x$use_kqueue" = "xno"; then | |
7911 | for ac_func in kevent | |
7912 | do : | |
7913 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 7914 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 7915 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7916 | #define HAVE_KEVENT 1 |
212380e3 AC |
7917 | _ACEOF |
7918 | havekqueue=yes | |
7919 | else | |
7920 | havekqueue=no | |
7921 | fi | |
7922 | done | |
7923 | ||
7924 | if test "x$havekqueue" = "xyes" ; then | |
7925 | SELECT_TYPE="kqueue" | |
7926 | fi | |
7927 | fi | |
7928 | ||
7929 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
7930 | for ac_func in epoll_ctl |
7931 | do : | |
7932 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7933 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 7934 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7935 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
7936 | _ACEOF |
7937 | haveepoll=yes | |
7938 | else | |
7939 | haveepoll=no | |
7940 | fi | |
7941 | done | |
7942 | ||
7943 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7944 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
7946 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
7947 | if test "$cross_compiling" = yes; then : | |
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7949 | $as_echo "no" >&6; } | |
212380e3 | 7950 | else |
7083c021 | 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7952 | /* end confdefs.h. */ |
7953 | #include <stdint.h> | |
7954 | #include <sys/param.h> | |
7955 | #include <sys/types.h> | |
7956 | #include <sys/epoll.h> | |
7957 | #include <sys/syscall.h> | |
7958 | #include <unistd.h> | |
7959 | ||
7960 | int | |
7961 | main(int argc, char **argv) | |
7962 | { | |
7963 | int epfd; | |
7964 | ||
7965 | epfd = epoll_create(256); | |
b676ea3b | 7966 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
7967 | } |
7968 | _ACEOF | |
7083c021 AC |
7969 | if ac_fn_c_try_run "$LINENO"; then : |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7971 | $as_echo "yes" >&6; } | |
212380e3 | 7972 | |
7083c021 | 7973 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7974 | |
7975 | SELECT_TYPE="epoll" | |
7976 | else | |
7083c021 AC |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7978 | $as_echo "no" >&6; } | |
212380e3 | 7979 | fi |
7083c021 AC |
7980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7981 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7982 | fi |
631ef239 | 7983 | |
212380e3 AC |
7984 | fi |
7985 | fi | |
7986 | ||
7987 | haveepollsyscall=no | |
7988 | ||
7989 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7990 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
7992 | $as_echo_n "checking for epoll system call... " >&6; } | |
7993 | if test "$cross_compiling" = yes; then : | |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7995 | $as_echo "no" >&6; } | |
212380e3 | 7996 | else |
7083c021 | 7997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7998 | /* end confdefs.h. */ |
7999 | #include <stdint.h> | |
8000 | #include <sys/param.h> | |
8001 | #include <sys/types.h> | |
8002 | #include <sys/epoll.h> | |
8003 | #include <sys/syscall.h> | |
8004 | #include <unistd.h> | |
8005 | ||
8006 | int | |
8007 | epoll_create(int size) | |
8008 | { | |
8009 | return (syscall(__NR_epoll_create, size)); | |
8010 | } | |
8011 | ||
8012 | int | |
8013 | main(int argc, char **argv) | |
8014 | { | |
8015 | int epfd; | |
8016 | ||
8017 | epfd = epoll_create(256); | |
8018 | exit (epfd == -1 ? 1 : 0); | |
8019 | } | |
8020 | _ACEOF | |
7083c021 AC |
8021 | if ac_fn_c_try_run "$LINENO"; then : |
8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8023 | $as_echo "yes" >&6; } | |
212380e3 | 8024 | |
7083c021 | 8025 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
8026 | |
8027 | SELECT_TYPE="epoll" | |
8028 | else | |
7083c021 AC |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8030 | $as_echo "no" >&6; } | |
212380e3 | 8031 | fi |
7083c021 AC |
8032 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8033 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 8034 | fi |
631ef239 | 8035 | |
212380e3 AC |
8036 | fi |
8037 | fi | |
8038 | ||
8039 | fi | |
8040 | ||
8041 | fi | |
8042 | ||
8043 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 8044 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
8045 | fi |
8046 | ||
8047 | echo "Using $SELECT_TYPE for select loop." | |
8048 | ||
8049 | ||
8050 | cat >>confdefs.h <<_ACEOF | |
8051 | #define SELECT_TYPE "$SELECT_TYPE" | |
8052 | _ACEOF | |
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
631ef239 | 8058 | # Check whether --enable-assert was given. |
7083c021 | 8059 | if test "${enable_assert+set}" = set; then : |
631ef239 | 8060 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
8061 | else |
8062 | assert=no | |
631ef239 AC |
8063 | fi |
8064 | ||
212380e3 AC |
8065 | |
8066 | if test "$assert" = no; then | |
8067 | ||
7083c021 | 8068 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
8069 | |
8070 | elif test "$assert" = soft; then | |
8071 | ||
7083c021 | 8072 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
8073 | |
8074 | ||
7083c021 | 8075 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
8076 | |
8077 | elif test "$assert" = yes; then | |
8078 | assert = "hard"; | |
8079 | fi | |
8080 | ||
7083c021 AC |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
8082 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 8083 | # Check whether --enable-iodebug was given. |
7083c021 | 8084 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 8085 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
8086 | else |
8087 | iodebug=no | |
631ef239 AC |
8088 | fi |
8089 | ||
212380e3 AC |
8090 | |
8091 | if test "$iodebug" = yes; then | |
8092 | ||
7083c021 | 8093 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 8094 | |
7083c021 AC |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8096 | $as_echo "yes" >&6; } | |
212380e3 | 8097 | else |
7083c021 AC |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8099 | $as_echo "no" >&6; } | |
212380e3 AC |
8100 | fi |
8101 | ||
8102 | ||
7083c021 AC |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
8104 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 8105 | # Check whether --enable-profile was given. |
7083c021 | 8106 | if test "${enable_profile+set}" = set; then : |
631ef239 | 8107 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
8108 | else |
8109 | profile=no | |
631ef239 AC |
8110 | fi |
8111 | ||
212380e3 AC |
8112 | |
8113 | if test "$profile" = yes; then | |
8114 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
8115 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
8117 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 8118 | |
7083c021 | 8119 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
8120 | |
8121 | else | |
7083c021 AC |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
8123 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
8124 | fi |
8125 | else | |
7083c021 AC |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8127 | $as_echo "no" >&6; } | |
212380e3 AC |
8128 | fi |
8129 | ||
631ef239 | 8130 | # Check whether --enable-balloc was given. |
7083c021 | 8131 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 8132 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
8133 | else |
8134 | balloc=yes | |
631ef239 AC |
8135 | fi |
8136 | ||
212380e3 AC |
8137 | |
8138 | if test "$balloc" = no; then | |
8139 | ||
7083c021 | 8140 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
8141 | |
8142 | fi | |
8143 | ||
631ef239 | 8144 | # Check whether --enable-small-net was given. |
7083c021 | 8145 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 8146 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
8147 | else |
8148 | small_net=no | |
631ef239 AC |
8149 | fi |
8150 | ||
212380e3 AC |
8151 | |
8152 | if test "$small_net" = yes; then | |
8153 | ||
7083c021 | 8154 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
8155 | |
8156 | ||
7083c021 | 8157 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8158 | |
8159 | ||
7083c021 | 8160 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8161 | |
8162 | ||
7083c021 | 8163 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8164 | |
8165 | ||
7083c021 | 8166 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8167 | |
8168 | ||
7083c021 | 8169 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
8170 | |
8171 | ||
7083c021 | 8172 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8173 | |
8174 | ||
7083c021 | 8175 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8176 | |
8177 | ||
7083c021 | 8178 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8179 | |
8180 | ||
7083c021 | 8181 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8182 | |
8183 | ||
7083c021 | 8184 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8185 | |
8186 | ||
7083c021 | 8187 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8188 | |
8189 | ||
7083c021 | 8190 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8191 | |
8192 | ||
7083c021 | 8193 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 8194 | |
f589ec6f | 8195 | |
7083c021 | 8196 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
8197 | |
8198 | ||
7083c021 | 8199 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 8200 | |
212380e3 AC |
8201 | else |
8202 | ||
7083c021 | 8203 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
8204 | |
8205 | ||
7083c021 | 8206 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8207 | |
8208 | ||
7083c021 | 8209 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
8210 | |
8211 | ||
7083c021 | 8212 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8213 | |
8214 | ||
7083c021 | 8215 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
8216 | |
8217 | ||
7083c021 | 8218 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8219 | |
8220 | ||
7083c021 | 8221 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8222 | |
8223 | ||
7083c021 | 8224 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8225 | |
8226 | ||
7083c021 | 8227 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
8228 | |
8229 | ||
7083c021 | 8230 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
8231 | |
8232 | ||
7083c021 | 8233 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
8234 | |
8235 | ||
7083c021 | 8236 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
8237 | |
8238 | ||
7083c021 | 8239 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8240 | |
8241 | ||
7083c021 | 8242 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 8243 | |
f589ec6f | 8244 | |
7083c021 | 8245 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
8246 | |
8247 | ||
7083c021 | 8248 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 8249 | |
212380e3 AC |
8250 | fi |
8251 | ||
8252 | ||
631ef239 | 8253 | # Check whether --with-nicklen was given. |
7083c021 | 8254 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 8255 | withval=$with_nicklen; |
aa769893 | 8256 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 8257 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 8258 | fi |
cf533739 | 8259 | if test $withval -gt 50; then |
212380e3 | 8260 | NICKLEN=50 |
7083c021 AC |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
8262 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
8263 | elif test $withval -lt 9; then |
8264 | NICKLEN=9 | |
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
8266 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
8267 | else |
8268 | NICKLEN="$withval" | |
8269 | fi | |
8270 | ||
8271 | else | |
cf533739 | 8272 | NICKLEN=31 |
631ef239 | 8273 | fi |
212380e3 AC |
8274 | |
8275 | ||
212380e3 | 8276 | |
631ef239 | 8277 | # Check whether --with-topiclen was given. |
7083c021 | 8278 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 8279 | withval=$with_topiclen; |
212380e3 AC |
8280 | if test $withval -ge 390; then |
8281 | TOPICLEN=390 | |
7083c021 AC |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
8283 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
8284 | else |
8285 | TOPICLEN=$withval | |
8286 | fi | |
8287 | ||
8288 | else | |
8289 | TOPICLEN=390 | |
212380e3 AC |
8290 | fi |
8291 | ||
212380e3 AC |
8292 | |
8293 | ||
8294 | cat >>confdefs.h <<_ACEOF | |
8295 | #define TOPICLEN ${TOPICLEN} | |
8296 | _ACEOF | |
8297 | ||
8298 | ||
8299 | cat >>confdefs.h <<_ACEOF | |
8300 | #define NICKLEN (${NICKLEN}+1) | |
8301 | _ACEOF | |
8302 | ||
8303 | ||
b676ea3b | 8304 | shared_modules="yes" |
212380e3 | 8305 | if test "$shared_modules" = yes; then |
212380e3 | 8306 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
7083c021 AC |
8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
8308 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 AC |
8309 | shared_modules="no" |
8310 | fi | |
8311 | fi | |
8312 | ||
8313 | if test "$shared_modules" = yes; then | |
7083c021 AC |
8314 | DYNLINK_C=dynlink.c |
8315 | for ac_header in dlfcn.h | |
8316 | do : | |
8317 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b6d0720c | 8318 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 8319 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8320 | #define HAVE_DLFCN_H 1 |
212380e3 AC |
8321 | _ACEOF |
8322 | ||
8323 | fi | |
8324 | ||
8325 | done | |
8326 | ||
7083c021 AC |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
8328 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b6d0720c | 8329 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8330 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8331 | else |
8332 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8334 | /* end confdefs.h. */ |
8335 | ||
631ef239 AC |
8336 | /* Override any GCC internal prototype to avoid an error. |
8337 | Use char because int might match the return type of a GCC | |
8338 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8339 | #ifdef __cplusplus |
8340 | extern "C" | |
8341 | #endif | |
212380e3 AC |
8342 | char shl_load (); |
8343 | int | |
8344 | main () | |
8345 | { | |
631ef239 | 8346 | return shl_load (); |
212380e3 AC |
8347 | ; |
8348 | return 0; | |
8349 | } | |
8350 | _ACEOF | |
631ef239 AC |
8351 | for ac_lib in '' dld; do |
8352 | if test -z "$ac_lib"; then | |
8353 | ac_res="none required" | |
8354 | else | |
8355 | ac_res=-l$ac_lib | |
8356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8357 | fi | |
7083c021 | 8358 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8359 | ac_cv_search_shl_load=$ac_res |
631ef239 | 8360 | fi |
7083c021 AC |
8361 | rm -f core conftest.err conftest.$ac_objext \ |
8362 | conftest$ac_exeext | |
b6d0720c | 8363 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 8364 | break |
212380e3 | 8365 | fi |
631ef239 | 8366 | done |
b6d0720c | 8367 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8368 | |
631ef239 AC |
8369 | else |
8370 | ac_cv_search_shl_load=no | |
212380e3 | 8371 | fi |
631ef239 | 8372 | rm conftest.$ac_ext |
212380e3 AC |
8373 | LIBS=$ac_func_search_save_LIBS |
8374 | fi | |
7083c021 AC |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
8376 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 8377 | ac_res=$ac_cv_search_shl_load |
7083c021 | 8378 | if test "$ac_res" != no; then : |
631ef239 | 8379 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8380 | |
8381 | ||
7083c021 | 8382 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 AC |
8383 | |
8384 | SUFFIX=".sl" | |
8385 | MOD_TARGET=hpux_shared | |
8386 | SEDOBJ="s/\.o/.sl/g" | |
8387 | ||
8388 | else | |
8389 | ||
7083c021 AC |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8391 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b6d0720c | 8392 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8393 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8394 | else |
8395 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8397 | /* end confdefs.h. */ |
8398 | ||
631ef239 AC |
8399 | /* Override any GCC internal prototype to avoid an error. |
8400 | Use char because int might match the return type of a GCC | |
8401 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8402 | #ifdef __cplusplus |
8403 | extern "C" | |
8404 | #endif | |
212380e3 AC |
8405 | char dlopen (); |
8406 | int | |
8407 | main () | |
8408 | { | |
631ef239 | 8409 | return dlopen (); |
212380e3 AC |
8410 | ; |
8411 | return 0; | |
8412 | } | |
8413 | _ACEOF | |
631ef239 AC |
8414 | for ac_lib in '' dl c_r; do |
8415 | if test -z "$ac_lib"; then | |
8416 | ac_res="none required" | |
8417 | else | |
8418 | ac_res=-l$ac_lib | |
8419 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8420 | fi | |
7083c021 | 8421 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8422 | ac_cv_search_dlopen=$ac_res |
631ef239 | 8423 | fi |
7083c021 AC |
8424 | rm -f core conftest.err conftest.$ac_objext \ |
8425 | conftest$ac_exeext | |
b6d0720c | 8426 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 8427 | break |
212380e3 | 8428 | fi |
631ef239 | 8429 | done |
b6d0720c | 8430 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8431 | |
631ef239 AC |
8432 | else |
8433 | ac_cv_search_dlopen=no | |
212380e3 | 8434 | fi |
631ef239 | 8435 | rm conftest.$ac_ext |
212380e3 AC |
8436 | LIBS=$ac_func_search_save_LIBS |
8437 | fi | |
7083c021 AC |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8439 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 8440 | ac_res=$ac_cv_search_dlopen |
7083c021 | 8441 | if test "$ac_res" != no; then : |
631ef239 | 8442 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8443 | |
8444 | ||
7083c021 | 8445 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 AC |
8446 | |
8447 | SUFFIX=".so" | |
8448 | MOD_TARGET=shared_modules | |
8449 | SEDOBJ="s/\.o/.so/g" | |
8450 | if test "$AppleGCC" = yes; then | |
7083c021 AC |
8451 | for ac_header in mach-o/dyld.h |
8452 | do : | |
8453 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b6d0720c | 8454 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 8455 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8456 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 AC |
8457 | _ACEOF |
8458 | ||
8459 | fi | |
8460 | ||
8461 | done | |
8462 | ||
8463 | fi | |
7083c021 | 8464 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b6d0720c | 8465 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 8466 | |
212380e3 AC |
8467 | else |
8468 | ||
7083c021 AC |
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
8470 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 AC |
8471 | shared_modules=no |
8472 | ||
8473 | fi | |
8474 | ||
7083c021 AC |
8475 | for ac_func in dlfunc |
8476 | do : | |
8477 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b6d0720c | 8478 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 8479 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8480 | #define HAVE_DLFUNC 1 |
212380e3 AC |
8481 | _ACEOF |
8482 | ||
8483 | fi | |
8484 | done | |
8485 | ||
8486 | ||
8487 | else | |
8488 | ||
8489 | shared_modules=no | |
8490 | ||
8491 | fi | |
8492 | ||
8493 | ||
8494 | fi | |
8495 | ||
8496 | fi | |
8497 | ||
8498 | ||
8499 | cat >>confdefs.h <<_ACEOF | |
8500 | #define SHARED_SUFFIX "$SUFFIX" | |
8501 | _ACEOF | |
8502 | ||
8503 | ||
8504 | if test "$shared_modules" = yes; then | |
8505 | # The GNU linker requires the -export-dynamic option to make | |
8506 | # all symbols visible in the dynamic symbol table. | |
8507 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
8509 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 8510 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
7083c021 | 8511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8512 | /* end confdefs.h. */ |
8513 | ||
8514 | int | |
8515 | main () | |
8516 | { | |
8517 | int i; | |
8518 | ; | |
8519 | return 0; | |
8520 | } | |
8521 | _ACEOF | |
7083c021 | 8522 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
8523 | found=yes |
8524 | else | |
7083c021 | 8525 | found=no |
212380e3 | 8526 | fi |
7083c021 AC |
8527 | rm -f core conftest.err conftest.$ac_objext \ |
8528 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
8529 | LDFLAGS=$hold_ldflags |
8530 | ||
8531 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
8532 | found="no, IRIX ld uses -B,dynamic" | |
8533 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
8534 | fi | |
8535 | ||
8536 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
8537 | found="no, AIX ld uses -G -brtl" | |
8538 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
8539 | fi | |
8540 | ||
7083c021 AC |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8542 | $as_echo "$found" >&6; } | |
212380e3 AC |
8543 | |
8544 | if test "$found" = yes; then | |
8545 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
8546 | fi | |
8547 | ||
7083c021 AC |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
8549 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 8550 | if test "$SGS" = "yes"; then |
7083c021 AC |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
8552 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
8553 | PICFLAGS="-KPIC -DPIC -G" |
8554 | fi | |
8555 | ||
8556 | if test "$AppleGCC" = "yes"; then | |
7083c021 AC |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
8558 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
8559 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
8560 | fi | |
8561 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
7083c021 AC |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
8563 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 8564 | PICFLAGS="+z -r -q -n -c" |
7083c021 AC |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
8566 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 AC |
8567 | |
8568 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
7083c021 AC |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8570 | $as_echo "no" >&6; } | |
212380e3 | 8571 | else |
7083c021 AC |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8573 | $as_echo "yes" >&6; } | |
212380e3 AC |
8574 | PICFLAGS="$PICFLAGS +ESfic" |
8575 | fi | |
8576 | ||
8577 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
8578 | fi | |
8579 | if test "$Tru" = yes -a "$CC" != gcc; then | |
7083c021 AC |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
8581 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
8582 | PICFLAGS="-shared -expect_unresolved '*' " |
8583 | LDFLAGS="-call_shared" | |
8584 | fi | |
8585 | if test -z "$PICFLAGS"; then | |
8586 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
7083c021 AC |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
8588 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
8589 | PICFLAGS="-fPIC -DPIC -shared" |
8590 | else | |
7083c021 AC |
8591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8592 | $as_echo "no" >&6; } | |
212380e3 AC |
8593 | shared_modules=no |
8594 | fi | |
8595 | fi | |
8596 | fi | |
8597 | ||
1a82970f JT |
8598 | # rpath, for finding libratbox.so at run time |
8599 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
8601 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 8602 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 8603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
8604 | /* end confdefs.h. */ |
8605 | ||
8606 | int | |
8607 | main () | |
8608 | { | |
8609 | int i; | |
8610 | ; | |
8611 | return 0; | |
8612 | } | |
8613 | _ACEOF | |
7083c021 | 8614 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
8615 | found=yes |
8616 | else | |
7083c021 | 8617 | found=no |
1a82970f | 8618 | fi |
7083c021 AC |
8619 | rm -f core conftest.err conftest.$ac_objext \ |
8620 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 8621 | LDFLAGS=$hold_ldflags |
7083c021 AC |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8623 | $as_echo "$found" >&6; } | |
1a82970f JT |
8624 | if test "$found" = yes; then |
8625 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
8626 | fi | |
8627 | ||
212380e3 AC |
8628 | # This must be down here, or it will mess up checks like the ones |
8629 | # for -Wl,-export-dynamic | |
8630 | # -- jilles | |
d2c5159a | 8631 | CWARNS="" |
631ef239 | 8632 | # Check whether --enable-warnings was given. |
7083c021 | 8633 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 8634 | enableval=$enable_warnings; |
212380e3 AC |
8635 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
8636 | CFLAGS="$IRC_CFLAGS" | |
8637 | ||
8638 | ||
7083c021 AC |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
8640 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
8641 | if test "${GCC-no}" = yes |
8642 | then | |
b6d0720c | 8643 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 8644 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8645 | else |
8646 | ||
8647 | oldcflags="${CFLAGS-}" | |
8648 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8650 | /* end confdefs.h. */ |
8651 | ||
8652 | #include <string.h> | |
8653 | #include <stdio.h> | |
8654 | int main(void); | |
8655 | ||
8656 | int | |
8657 | main () | |
8658 | { | |
8659 | ||
b1fc1658 | 8660 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8661 | |
8662 | ; | |
8663 | return 0; | |
8664 | } | |
8665 | _ACEOF | |
7083c021 | 8666 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8667 | charybdis_cv_c_gcc_w_all=yes |
8668 | else | |
7083c021 | 8669 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 8670 | fi |
631ef239 | 8671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8672 | CFLAGS="${oldcflags}" |
8673 | fi | |
8674 | ||
8675 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
8676 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8678 | $as_echo "ok" >&6; } | |
212380e3 AC |
8679 | else |
8680 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8682 | $as_echo "no" >&6; } | |
212380e3 AC |
8683 | fi |
8684 | else | |
7083c021 AC |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8686 | $as_echo "no" >&6; } | |
212380e3 AC |
8687 | fi |
8688 | ||
8689 | ||
7083c021 AC |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
8691 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
8692 | if test "${GCC-no}" = yes |
8693 | then | |
b6d0720c | 8694 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 8695 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8696 | else |
8697 | ||
8698 | oldcflags="${CFLAGS-}" | |
8699 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 8700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8701 | /* end confdefs.h. */ |
8702 | ||
8703 | #include <string.h> | |
8704 | #include <stdio.h> | |
8705 | int main(void); | |
8706 | ||
8707 | int | |
8708 | main () | |
8709 | { | |
8710 | ||
b1fc1658 | 8711 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8712 | |
8713 | ; | |
8714 | return 0; | |
8715 | } | |
8716 | _ACEOF | |
7083c021 | 8717 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8718 | charybdis_cv_c_gcc_w_pointer_arith=yes |
8719 | else | |
7083c021 | 8720 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 8721 | fi |
631ef239 | 8722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8723 | CFLAGS="${oldcflags}" |
8724 | fi | |
8725 | ||
8726 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
8727 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8729 | $as_echo "ok" >&6; } | |
212380e3 AC |
8730 | else |
8731 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8733 | $as_echo "no" >&6; } | |
212380e3 AC |
8734 | fi |
8735 | else | |
7083c021 AC |
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8737 | $as_echo "no" >&6; } | |
212380e3 AC |
8738 | fi |
8739 | ||
8740 | ||
7083c021 AC |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
8742 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
8743 | if test "${GCC-no}" = yes |
8744 | then | |
b6d0720c | 8745 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 8746 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8747 | else |
8748 | ||
8749 | oldcflags="${CFLAGS-}" | |
8750 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 8751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8752 | /* end confdefs.h. */ |
8753 | ||
8754 | #include <string.h> | |
8755 | #include <stdio.h> | |
8756 | int main(void); | |
8757 | ||
8758 | int | |
8759 | main () | |
8760 | { | |
8761 | ||
b1fc1658 | 8762 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8763 | |
8764 | ; | |
8765 | return 0; | |
8766 | } | |
8767 | _ACEOF | |
7083c021 | 8768 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8769 | charybdis_cv_c_gcc_w_implicit=yes |
8770 | else | |
7083c021 | 8771 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 8772 | fi |
631ef239 | 8773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8774 | CFLAGS="${oldcflags}" |
8775 | fi | |
8776 | ||
8777 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
8778 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8780 | $as_echo "ok" >&6; } | |
212380e3 AC |
8781 | else |
8782 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8784 | $as_echo "no" >&6; } | |
212380e3 AC |
8785 | fi |
8786 | else | |
7083c021 AC |
8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8788 | $as_echo "no" >&6; } | |
212380e3 AC |
8789 | fi |
8790 | ||
8791 | ||
7083c021 AC |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
8793 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
8794 | if test "${GCC-no}" = yes |
8795 | then | |
b6d0720c | 8796 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 8797 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8798 | else |
8799 | ||
8800 | oldcflags="${CFLAGS-}" | |
8801 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 8802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8803 | /* end confdefs.h. */ |
8804 | ||
8805 | #include <string.h> | |
8806 | #include <stdio.h> | |
8807 | int main(void); | |
8808 | ||
8809 | int | |
8810 | main () | |
8811 | { | |
8812 | ||
b1fc1658 | 8813 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
8814 | |
8815 | ; | |
8816 | return 0; | |
8817 | } | |
8818 | _ACEOF | |
8819 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
8820 | charybdis_cv_c_gcc_w_cast_align=yes |
8821 | else | |
7083c021 | 8822 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 8823 | fi |
631ef239 | 8824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8825 | CFLAGS="${oldcflags}" |
8826 | fi | |
8827 | ||
8828 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
8829 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8831 | $as_echo "ok" >&6; } | |
212380e3 AC |
8832 | else |
8833 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8835 | $as_echo "no" >&6; } | |
212380e3 AC |
8836 | fi |
8837 | else | |
7083c021 AC |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8839 | $as_echo "no" >&6; } | |
212380e3 AC |
8840 | fi |
8841 | ||
8842 | ||
7083c021 AC |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
8844 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
8845 | if test "${GCC-no}" = yes |
8846 | then | |
b6d0720c | 8847 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 8848 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8849 | else |
8850 | ||
8851 | oldcflags="${CFLAGS-}" | |
8852 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 8853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8854 | /* end confdefs.h. */ |
8855 | ||
8856 | #include <string.h> | |
8857 | #include <stdio.h> | |
8858 | int main(void); | |
8859 | ||
8860 | int | |
8861 | main () | |
8862 | { | |
8863 | ||
b1fc1658 | 8864 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8865 | |
8866 | ; | |
8867 | return 0; | |
8868 | } | |
8869 | _ACEOF | |
7083c021 | 8870 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8871 | charybdis_cv_c_gcc_w_cast_qual=yes |
8872 | else | |
7083c021 | 8873 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 8874 | fi |
631ef239 | 8875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8876 | CFLAGS="${oldcflags}" |
8877 | fi | |
8878 | ||
8879 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
8880 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8882 | $as_echo "ok" >&6; } | |
212380e3 AC |
8883 | else |
8884 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8886 | $as_echo "no" >&6; } | |
212380e3 AC |
8887 | fi |
8888 | else | |
7083c021 AC |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8890 | $as_echo "no" >&6; } | |
212380e3 AC |
8891 | fi |
8892 | ||
8893 | ||
7083c021 AC |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
8895 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
8896 | if test "${GCC-no}" = yes |
8897 | then | |
b6d0720c | 8898 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 8899 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
8900 | else |
8901 | ||
8902 | oldcflags="${CFLAGS-}" | |
8903 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 8904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
8905 | /* end confdefs.h. */ |
8906 | ||
8907 | #include <string.h> | |
8908 | #include <stdio.h> | |
8909 | int main(void); | |
8910 | ||
8911 | int | |
8912 | main () | |
8913 | { | |
8914 | ||
8915 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8916 | ||
8917 | ; | |
8918 | return 0; | |
8919 | } | |
8920 | _ACEOF | |
7083c021 | 8921 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 8922 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 8923 | else |
7083c021 | 8924 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 8925 | fi |
d2c5159a JT |
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8927 | CFLAGS="${oldcflags}" | |
8928 | fi | |
8929 | ||
bbe58888 | 8930 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 8931 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8933 | $as_echo "ok" >&6; } | |
d2c5159a | 8934 | else |
bbe58888 | 8935 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8937 | $as_echo "no" >&6; } | |
bbe58888 VY |
8938 | fi |
8939 | else | |
7083c021 AC |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8941 | $as_echo "no" >&6; } | |
bbe58888 VY |
8942 | fi |
8943 | ||
8944 | ||
7083c021 AC |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
8946 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
8947 | if test "${GCC-no}" = yes |
8948 | then | |
b6d0720c | 8949 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 8950 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
8951 | else |
8952 | ||
8953 | oldcflags="${CFLAGS-}" | |
8954 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 8955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
8956 | /* end confdefs.h. */ |
8957 | ||
8958 | #include <string.h> | |
8959 | #include <stdio.h> | |
8960 | int main(void); | |
8961 | ||
8962 | int | |
8963 | main () | |
8964 | { | |
8965 | ||
8966 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8967 | ||
8968 | ; | |
8969 | return 0; | |
8970 | } | |
8971 | _ACEOF | |
7083c021 | 8972 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
8973 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
8974 | else | |
7083c021 | 8975 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 8976 | fi |
bbe58888 VY |
8977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8978 | CFLAGS="${oldcflags}" | |
8979 | fi | |
8980 | ||
8981 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
8982 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8984 | $as_echo "ok" >&6; } | |
bbe58888 VY |
8985 | else |
8986 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8988 | $as_echo "no" >&6; } | |
d2c5159a JT |
8989 | fi |
8990 | else | |
7083c021 AC |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
d2c5159a JT |
8993 | fi |
8994 | ||
8995 | ||
7083c021 AC |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
8997 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
8998 | if test "${GCC-no}" = yes |
8999 | then | |
b6d0720c | 9000 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 9001 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9002 | else |
9003 | ||
9004 | oldcflags="${CFLAGS-}" | |
9005 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 9006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9007 | /* end confdefs.h. */ |
9008 | ||
9009 | #include <string.h> | |
9010 | #include <stdio.h> | |
9011 | int main(void); | |
9012 | ||
9013 | int | |
9014 | main () | |
9015 | { | |
9016 | ||
b1fc1658 | 9017 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9018 | |
9019 | ; | |
9020 | return 0; | |
9021 | } | |
9022 | _ACEOF | |
7083c021 | 9023 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9024 | charybdis_cv_c_gcc_prototypes=yes |
9025 | else | |
7083c021 | 9026 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 9027 | fi |
631ef239 | 9028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9029 | CFLAGS="${oldcflags}" |
9030 | fi | |
9031 | ||
9032 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
9033 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9035 | $as_echo "ok" >&6; } | |
212380e3 AC |
9036 | else |
9037 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9039 | $as_echo "no" >&6; } | |
212380e3 AC |
9040 | fi |
9041 | else | |
7083c021 AC |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9043 | $as_echo "no" >&6; } | |
212380e3 AC |
9044 | fi |
9045 | ||
9046 | ||
7083c021 AC |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
9048 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
9049 | if test "${GCC-no}" = yes |
9050 | then | |
b6d0720c | 9051 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 9052 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9053 | else |
9054 | ||
9055 | oldcflags="${CFLAGS-}" | |
9056 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 9057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9058 | /* end confdefs.h. */ |
9059 | ||
9060 | #include <string.h> | |
9061 | #include <stdio.h> | |
9062 | int main(void); | |
9063 | ||
9064 | int | |
9065 | main () | |
9066 | { | |
9067 | ||
b1fc1658 | 9068 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9069 | |
9070 | ; | |
9071 | return 0; | |
9072 | } | |
9073 | _ACEOF | |
7083c021 | 9074 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9075 | charybdis_cv_c_gcc_parenthesis=yes |
9076 | else | |
7083c021 | 9077 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 9078 | fi |
631ef239 | 9079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9080 | CFLAGS="${oldcflags}" |
9081 | fi | |
9082 | ||
9083 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
9084 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9086 | $as_echo "ok" >&6; } | |
212380e3 AC |
9087 | else |
9088 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9090 | $as_echo "no" >&6; } | |
212380e3 AC |
9091 | fi |
9092 | else | |
7083c021 AC |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9094 | $as_echo "no" >&6; } | |
212380e3 AC |
9095 | fi |
9096 | ||
9097 | ||
7083c021 AC |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
9099 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
9100 | if test "${GCC-no}" = yes |
9101 | then | |
b6d0720c | 9102 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 9103 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9104 | else |
9105 | ||
9106 | oldcflags="${CFLAGS-}" | |
9107 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 9108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9109 | /* end confdefs.h. */ |
9110 | ||
9111 | #include <string.h> | |
9112 | #include <stdio.h> | |
9113 | int main(void); | |
9114 | ||
9115 | int | |
9116 | main () | |
9117 | { | |
9118 | ||
b1fc1658 | 9119 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9120 | |
9121 | ; | |
9122 | return 0; | |
9123 | } | |
9124 | _ACEOF | |
7083c021 | 9125 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9126 | charybdis_cv_c_gcc_w=yes |
9127 | else | |
7083c021 | 9128 | charybdis_cv_c_gcc_w=no |
212380e3 | 9129 | fi |
631ef239 | 9130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9131 | CFLAGS="${oldcflags}" |
9132 | fi | |
9133 | ||
9134 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
9135 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9137 | $as_echo "ok" >&6; } | |
212380e3 AC |
9138 | else |
9139 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9141 | $as_echo "no" >&6; } | |
212380e3 AC |
9142 | fi |
9143 | else | |
7083c021 AC |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9145 | $as_echo "no" >&6; } | |
212380e3 AC |
9146 | fi |
9147 | ||
9148 | ||
7083c021 AC |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
9150 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
9151 | if test "${GCC-no}" = yes |
9152 | then | |
b6d0720c | 9153 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 9154 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9155 | else |
9156 | ||
9157 | oldcflags="${CFLAGS-}" | |
9158 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 9159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9160 | /* end confdefs.h. */ |
9161 | ||
9162 | #include <string.h> | |
9163 | #include <stdio.h> | |
9164 | int main(void); | |
9165 | ||
9166 | int | |
9167 | main () | |
9168 | { | |
9169 | ||
b1fc1658 | 9170 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9171 | |
9172 | ; | |
9173 | return 0; | |
9174 | } | |
9175 | _ACEOF | |
7083c021 | 9176 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9177 | charybdis_cv_c_gcc_w_extra=yes |
9178 | else | |
7083c021 | 9179 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 9180 | fi |
631ef239 | 9181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9182 | CFLAGS="${oldcflags}" |
9183 | fi | |
9184 | ||
9185 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
9186 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9188 | $as_echo "ok" >&6; } | |
212380e3 AC |
9189 | else |
9190 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9192 | $as_echo "no" >&6; } | |
212380e3 AC |
9193 | fi |
9194 | else | |
7083c021 AC |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9196 | $as_echo "no" >&6; } | |
212380e3 AC |
9197 | fi |
9198 | ||
9199 | ||
7083c021 AC |
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
9201 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
9202 | if test "${GCC-no}" = yes |
9203 | then | |
b6d0720c | 9204 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 9205 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9206 | else |
9207 | ||
9208 | oldcflags="${CFLAGS-}" | |
9209 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 9210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9211 | /* end confdefs.h. */ |
9212 | ||
9213 | #include <string.h> | |
9214 | #include <stdio.h> | |
9215 | int main(void); | |
9216 | ||
9217 | int | |
9218 | main () | |
9219 | { | |
9220 | ||
b1fc1658 | 9221 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9222 | |
9223 | ; | |
9224 | return 0; | |
9225 | } | |
9226 | _ACEOF | |
7083c021 | 9227 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9228 | charybdis_cv_c_gcc_w_shadow=yes |
9229 | else | |
7083c021 | 9230 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 9231 | fi |
631ef239 | 9232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9233 | CFLAGS="${oldcflags}" |
9234 | fi | |
9235 | ||
9236 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
9237 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9239 | $as_echo "ok" >&6; } | |
212380e3 AC |
9240 | else |
9241 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9243 | $as_echo "no" >&6; } | |
212380e3 AC |
9244 | fi |
9245 | else | |
7083c021 AC |
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9247 | $as_echo "no" >&6; } | |
212380e3 AC |
9248 | fi |
9249 | ||
9250 | ||
7083c021 AC |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
9252 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
9253 | if test "${GCC-no}" = yes |
9254 | then | |
b6d0720c | 9255 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 9256 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9257 | else |
9258 | ||
9259 | oldcflags="${CFLAGS-}" | |
9260 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 9261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9262 | /* end confdefs.h. */ |
9263 | ||
9264 | #include <string.h> | |
9265 | #include <stdio.h> | |
9266 | int main(void); | |
9267 | ||
9268 | int | |
9269 | main () | |
9270 | { | |
9271 | ||
b1fc1658 | 9272 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9273 | |
9274 | ; | |
9275 | return 0; | |
9276 | } | |
9277 | _ACEOF | |
7083c021 | 9278 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9279 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
9280 | else | |
7083c021 | 9281 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 9282 | fi |
631ef239 | 9283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9284 | CFLAGS="${oldcflags}" |
9285 | fi | |
9286 | ||
9287 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
9288 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9290 | $as_echo "ok" >&6; } | |
212380e3 AC |
9291 | else |
9292 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9294 | $as_echo "no" >&6; } | |
212380e3 AC |
9295 | fi |
9296 | else | |
7083c021 AC |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9298 | $as_echo "no" >&6; } | |
212380e3 AC |
9299 | fi |
9300 | ||
9301 | ||
7083c021 AC |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
9303 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
9304 | if test "${GCC-no}" = yes |
9305 | then | |
b6d0720c | 9306 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 9307 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9308 | else |
9309 | ||
9310 | oldcflags="${CFLAGS-}" | |
9311 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 9312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9313 | /* end confdefs.h. */ |
9314 | ||
9315 | #include <string.h> | |
9316 | #include <stdio.h> | |
9317 | int main(void); | |
9318 | ||
9319 | int | |
9320 | main () | |
9321 | { | |
9322 | ||
b1fc1658 | 9323 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9324 | |
9325 | ; | |
9326 | return 0; | |
9327 | } | |
9328 | _ACEOF | |
7083c021 | 9329 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9330 | charybdis_cv_c_gcc_w_undef=yes |
9331 | else | |
7083c021 | 9332 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 9333 | fi |
631ef239 | 9334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9335 | CFLAGS="${oldcflags}" |
9336 | fi | |
9337 | ||
9338 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
9339 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9341 | $as_echo "ok" >&6; } | |
212380e3 AC |
9342 | else |
9343 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9345 | $as_echo "no" >&6; } | |
212380e3 AC |
9346 | fi |
9347 | else | |
7083c021 AC |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9349 | $as_echo "no" >&6; } | |
212380e3 AC |
9350 | fi |
9351 | ||
9352 | ||
7083c021 AC |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
9354 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
9355 | if test "${GCC-no}" = yes |
9356 | then | |
b6d0720c | 9357 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 9358 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9359 | else |
9360 | ||
9361 | oldcflags="${CFLAGS-}" | |
9362 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 9363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9364 | /* end confdefs.h. */ |
9365 | ||
9366 | #include <string.h> | |
9367 | #include <stdio.h> | |
9368 | int main(void); | |
9369 | ||
9370 | int | |
9371 | main () | |
9372 | { | |
9373 | ||
b1fc1658 | 9374 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9375 | |
9376 | ; | |
9377 | return 0; | |
9378 | } | |
9379 | _ACEOF | |
7083c021 | 9380 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9381 | charybdis_cv_c_gcc_w_packed=yes |
9382 | else | |
7083c021 | 9383 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 9384 | fi |
631ef239 | 9385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9386 | CFLAGS="${oldcflags}" |
9387 | fi | |
9388 | ||
9389 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
9390 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9392 | $as_echo "ok" >&6; } | |
212380e3 AC |
9393 | else |
9394 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9396 | $as_echo "no" >&6; } | |
212380e3 AC |
9397 | fi |
9398 | else | |
7083c021 AC |
9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9400 | $as_echo "no" >&6; } | |
212380e3 AC |
9401 | fi |
9402 | ||
9403 | ||
7083c021 AC |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
9405 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
9406 | if test "${GCC-no}" = yes |
9407 | then | |
b6d0720c | 9408 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 9409 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9410 | else |
9411 | ||
9412 | oldcflags="${CFLAGS-}" | |
9413 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 9414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9415 | /* end confdefs.h. */ |
9416 | ||
9417 | #include <string.h> | |
9418 | #include <stdio.h> | |
9419 | int main(void); | |
9420 | ||
9421 | int | |
9422 | main () | |
9423 | { | |
9424 | ||
b1fc1658 | 9425 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9426 | |
9427 | ; | |
9428 | return 0; | |
9429 | } | |
9430 | _ACEOF | |
7083c021 | 9431 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9432 | charybdis_cv_c_gcc_w_nested_externs=yes |
9433 | else | |
7083c021 | 9434 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 9435 | fi |
631ef239 | 9436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9437 | CFLAGS="${oldcflags}" |
9438 | fi | |
9439 | ||
9440 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
9441 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9443 | $as_echo "ok" >&6; } | |
212380e3 AC |
9444 | else |
9445 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9447 | $as_echo "no" >&6; } | |
212380e3 AC |
9448 | fi |
9449 | else | |
7083c021 AC |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9451 | $as_echo "no" >&6; } | |
212380e3 AC |
9452 | fi |
9453 | ||
9454 | ||
7083c021 AC |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
9456 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
9457 | if test "${GCC-no}" = yes |
9458 | then | |
b6d0720c | 9459 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 9460 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9461 | else |
9462 | ||
9463 | oldcflags="${CFLAGS-}" | |
9464 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 9465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9466 | /* end confdefs.h. */ |
9467 | ||
9468 | #include <string.h> | |
9469 | #include <stdio.h> | |
9470 | int main(void); | |
9471 | ||
9472 | int | |
9473 | main () | |
9474 | { | |
9475 | ||
b1fc1658 | 9476 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9477 | |
9478 | ; | |
9479 | return 0; | |
9480 | } | |
9481 | _ACEOF | |
7083c021 | 9482 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9483 | charybdis_cv_c_gcc_w_unused=yes |
9484 | else | |
7083c021 | 9485 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 9486 | fi |
631ef239 | 9487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9488 | CFLAGS="${oldcflags}" |
9489 | fi | |
9490 | ||
9491 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
9492 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9494 | $as_echo "ok" >&6; } | |
212380e3 AC |
9495 | else |
9496 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
9497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9498 | $as_echo "no" >&6; } | |
212380e3 AC |
9499 | fi |
9500 | else | |
7083c021 AC |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9502 | $as_echo "no" >&6; } | |
212380e3 AC |
9503 | fi |
9504 | ||
9505 | ||
7083c021 AC |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
9507 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
9508 | if test "${GCC-no}" = yes |
9509 | then | |
b6d0720c | 9510 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 9511 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9512 | else |
9513 | ||
9514 | oldcflags="${CFLAGS-}" | |
9515 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 9516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9517 | /* end confdefs.h. */ |
9518 | ||
9519 | #include <string.h> | |
9520 | #include <stdio.h> | |
9521 | int main(void); | |
9522 | ||
9523 | int | |
9524 | main () | |
9525 | { | |
9526 | ||
b1fc1658 | 9527 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9528 | |
9529 | ; | |
9530 | return 0; | |
9531 | } | |
9532 | _ACEOF | |
7083c021 | 9533 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9534 | charybdis_cv_c_gcc_w_redundant_decls=yes |
9535 | else | |
7083c021 | 9536 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 9537 | fi |
631ef239 | 9538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9539 | CFLAGS="${oldcflags}" |
9540 | fi | |
9541 | ||
9542 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
9543 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9545 | $as_echo "ok" >&6; } | |
212380e3 AC |
9546 | else |
9547 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9549 | $as_echo "no" >&6; } | |
212380e3 AC |
9550 | fi |
9551 | else | |
7083c021 AC |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9553 | $as_echo "no" >&6; } | |
212380e3 AC |
9554 | fi |
9555 | ||
9556 | ||
7083c021 AC |
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
9558 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
9559 | if test "${GCC-no}" = yes |
9560 | then | |
b6d0720c | 9561 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 9562 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9563 | else |
9564 | ||
9565 | oldcflags="${CFLAGS-}" | |
9566 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 9567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9568 | /* end confdefs.h. */ |
9569 | ||
9570 | #include <string.h> | |
9571 | #include <stdio.h> | |
9572 | int main(void); | |
9573 | ||
9574 | int | |
9575 | main () | |
9576 | { | |
9577 | ||
b1fc1658 | 9578 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9579 | |
9580 | ; | |
9581 | return 0; | |
9582 | } | |
9583 | _ACEOF | |
7083c021 | 9584 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9585 | charybdis_cv_c_gcc_w_float_equal=yes |
9586 | else | |
7083c021 | 9587 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 9588 | fi |
631ef239 | 9589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9590 | CFLAGS="${oldcflags}" |
9591 | fi | |
9592 | ||
9593 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
9594 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9596 | $as_echo "ok" >&6; } | |
212380e3 AC |
9597 | else |
9598 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9600 | $as_echo "no" >&6; } | |
212380e3 AC |
9601 | fi |
9602 | else | |
7083c021 AC |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9604 | $as_echo "no" >&6; } | |
212380e3 AC |
9605 | fi |
9606 | ||
9607 | ||
7083c021 AC |
9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
9609 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
9610 | if test "${GCC-no}" = yes |
9611 | then | |
b6d0720c | 9612 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 9613 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9614 | else |
9615 | ||
9616 | oldcflags="${CFLAGS-}" | |
4a584d41 | 9617 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 9618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9619 | /* end confdefs.h. */ |
9620 | ||
9621 | #include <string.h> | |
9622 | #include <stdio.h> | |
9623 | int main(void); | |
9624 | ||
9625 | int | |
9626 | main () | |
9627 | { | |
7083c021 AC |
9628 | |
9629 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
9630 | ||
212380e3 AC |
9631 | ; |
9632 | return 0; | |
9633 | } | |
9634 | _ACEOF | |
7083c021 AC |
9635 | if ac_fn_c_try_compile "$LINENO"; then : |
9636 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 9637 | else |
7083c021 AC |
9638 | charybdis_cv_c_gcc_w_format=no |
9639 | fi | |
9640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9641 | CFLAGS="${oldcflags}" | |
9642 | fi | |
9643 | ||
9644 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
9645 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
9647 | $as_echo "ok" >&6; } | |
9648 | else | |
9649 | charybdis_cv_c_gcc_w_format='' | |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9651 | $as_echo "no" >&6; } | |
9652 | fi | |
9653 | else | |
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9655 | $as_echo "no" >&6; } | |
9656 | fi | |
9657 | ||
9658 | ||
9659 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 9660 | |
212380e3 | 9661 | fi |
631ef239 | 9662 | |
7083c021 AC |
9663 | |
9664 | if test "$shared_modules" = no; then | |
9665 | DYNLINK_C="" | |
9666 | MOD_TARGET="libmodules.a" | |
9667 | MODULES_LIBS="../modules/libmodules.a" | |
9668 | SEDOBJ="" | |
9669 | ||
9670 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
9671 | ||
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
9673 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 9674 | fi |
7083c021 AC |
9675 | |
9676 | if test "$shared_modules" = yes; then | |
9677 | ||
9678 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b6d0720c | 9679 | if test "x$ac_cv_func_nlist" = xyes; then : |
7083c021 | 9680 | |
212380e3 | 9681 | else |
7083c021 AC |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
9683 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b6d0720c | 9684 | if ${ac_cv_lib_dl_nlist+:} false; then : |
7083c021 | 9685 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9686 | else |
9687 | ac_check_lib_save_LIBS=$LIBS | |
9688 | LIBS="-ldl $LIBS" | |
7083c021 | 9689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9690 | /* end confdefs.h. */ |
9691 | ||
631ef239 AC |
9692 | /* Override any GCC internal prototype to avoid an error. |
9693 | Use char because int might match the return type of a GCC | |
9694 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9695 | #ifdef __cplusplus |
9696 | extern "C" | |
9697 | #endif | |
212380e3 AC |
9698 | char nlist (); |
9699 | int | |
9700 | main () | |
9701 | { | |
631ef239 | 9702 | return nlist (); |
212380e3 AC |
9703 | ; |
9704 | return 0; | |
9705 | } | |
9706 | _ACEOF | |
7083c021 | 9707 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9708 | ac_cv_lib_dl_nlist=yes |
9709 | else | |
7083c021 | 9710 | ac_cv_lib_dl_nlist=no |
212380e3 | 9711 | fi |
7083c021 AC |
9712 | rm -f core conftest.err conftest.$ac_objext \ |
9713 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9714 | LIBS=$ac_check_lib_save_LIBS |
9715 | fi | |
7083c021 AC |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
9717 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b6d0720c | 9718 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 AC |
9719 | nlist_lib="-ldl" |
9720 | else | |
7083c021 AC |
9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
9722 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b6d0720c | 9723 | if ${ac_cv_lib_elf_nlist+:} false; then : |
7083c021 | 9724 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9725 | else |
9726 | ac_check_lib_save_LIBS=$LIBS | |
9727 | LIBS="-lelf $LIBS" | |
7083c021 | 9728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9729 | /* end confdefs.h. */ |
9730 | ||
631ef239 AC |
9731 | /* Override any GCC internal prototype to avoid an error. |
9732 | Use char because int might match the return type of a GCC | |
9733 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9734 | #ifdef __cplusplus |
9735 | extern "C" | |
9736 | #endif | |
212380e3 AC |
9737 | char nlist (); |
9738 | int | |
9739 | main () | |
9740 | { | |
631ef239 | 9741 | return nlist (); |
212380e3 AC |
9742 | ; |
9743 | return 0; | |
9744 | } | |
9745 | _ACEOF | |
7083c021 | 9746 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9747 | ac_cv_lib_elf_nlist=yes |
9748 | else | |
7083c021 | 9749 | ac_cv_lib_elf_nlist=no |
212380e3 | 9750 | fi |
7083c021 AC |
9751 | rm -f core conftest.err conftest.$ac_objext \ |
9752 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9753 | LIBS=$ac_check_lib_save_LIBS |
9754 | fi | |
7083c021 AC |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
9756 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b6d0720c | 9757 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 AC |
9758 | nlist_lib="-lelf" |
9759 | fi | |
9760 | ||
9761 | ||
9762 | fi | |
9763 | ||
9764 | ||
9765 | fi | |
9766 | ||
9767 | ||
7083c021 | 9768 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b6d0720c | 9769 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 AC |
9770 | nlist_h="libelf/nlist.h" |
9771 | fi | |
9772 | ||
9773 | ||
7083c021 | 9774 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b6d0720c | 9775 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 AC |
9776 | nlist_h="elf/nlist.h" |
9777 | fi | |
9778 | ||
9779 | ||
7083c021 | 9780 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b6d0720c | 9781 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 AC |
9782 | nlist_h="nlist.h" |
9783 | fi | |
9784 | ||
9785 | ||
9786 | if test x"$nlist_h" = "x"; then | |
9787 | ||
9788 | cat >>confdefs.h <<_ACEOF | |
9789 | #define SYMBOL_PREFIX "" | |
9790 | _ACEOF | |
9791 | ||
9792 | else | |
7083c021 AC |
9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
9794 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b6d0720c | 9795 | if ${symbol_underscores+:} false; then : |
7083c021 | 9796 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9797 | else |
9798 | ||
9799 | cat << EOF > conftest.c | |
9800 | #include <$nlist_h> | |
9801 | #include <stdio.h> | |
9802 | #include <stdlib.h> | |
9803 | void _modinit(void); | |
9804 | int main(int argc, char *argv[]) { | |
9805 | int i; | |
9806 | struct nlist nl[5]; | |
9807 | ||
9808 | /* fill the names in this way, so it'll work almost everywhere */ | |
9809 | nl[0].n_name = "_modinit"; | |
9810 | nl[1].n_name = "__modinit"; | |
9811 | nl[2].n_name = "___modinit"; | |
9812 | nl[3].n_name = "____modinit"; | |
9813 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
9814 | ||
9815 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
9816 | for(i = 0; i < 4; i++) { | |
9817 | if(nl[i].n_value != NULL) | |
9818 | { | |
9819 | int j; | |
9820 | for(j = 0; j < i; j++) | |
9821 | printf("_"); | |
9822 | exit(i); | |
9823 | } | |
9824 | } | |
9825 | exit(-1); | |
9826 | } | |
9827 | void _modinit(void) { return; } | |
9828 | EOF | |
9829 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
9830 | symbol_underscores=`./conftest conftest` | |
7083c021 AC |
9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
9832 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 AC |
9833 | $RM -f conftest conftest.c |
9834 | ||
9835 | fi | |
9836 | ||
9837 | ||
9838 | cat >>confdefs.h <<_ACEOF | |
9839 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
9840 | _ACEOF | |
9841 | ||
9842 | fi | |
9843 | fi | |
9844 | ||
d2c5159a JT |
9845 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
9846 | ||
212380e3 AC |
9847 | |
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | if test "$prefix" = "NONE"; then | |
9861 | ||
9862 | cat >>confdefs.h <<_ACEOF | |
9863 | #define IRCD_PREFIX "$ac_default_prefix" | |
9864 | _ACEOF | |
9865 | ||
9866 | ||
9867 | else | |
9868 | ||
9869 | ||
9870 | prefix=`echo $prefix | sed 's/\/$//'` | |
9871 | ||
9872 | cat >>confdefs.h <<_ACEOF | |
9873 | #define IRCD_PREFIX "$prefix" | |
9874 | _ACEOF | |
9875 | ||
9876 | ||
9877 | fi | |
9878 | ||
2eff3833 | 9879 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" |
9f9b7042 | 9880 | |
2eff3833 | 9881 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
9882 | |
9883 | ||
9884 | cat >confcache <<\_ACEOF | |
9885 | # This file is a shell script that caches the results of configure | |
9886 | # tests run on this system so they can be shared between configure | |
9887 | # scripts and configure runs, see configure's option --config-cache. | |
9888 | # It is not useful on other systems. If it contains results you don't | |
9889 | # want to keep, you may remove or edit it. | |
9890 | # | |
9891 | # config.status only pays attention to the cache file if you give it | |
9892 | # the --recheck option to rerun configure. | |
9893 | # | |
9894 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9895 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9896 | # following values. | |
9897 | ||
9898 | _ACEOF | |
9899 | ||
9900 | # The following way of writing the cache mishandles newlines in values, | |
9901 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 9902 | # So, we kill variables containing newlines. |
212380e3 AC |
9903 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9904 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
9905 | ( |
9906 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9907 | eval ac_val=\$$ac_var | |
9908 | case $ac_val in #( | |
9909 | *${as_nl}*) | |
9910 | case $ac_var in #( | |
7083c021 AC |
9911 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9912 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
9913 | esac |
9914 | case $ac_var in #( | |
9915 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
9916 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9917 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
9918 | esac ;; |
9919 | esac | |
9920 | done | |
9921 | ||
212380e3 | 9922 | (set) 2>&1 | |
631ef239 AC |
9923 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9924 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
9925 | # `set' does not quote correctly, so add quotes: double-quote |
9926 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
9927 | sed -n \ |
9928 | "s/'/'\\\\''/g; | |
9929 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 9930 | ;; #( |
212380e3 AC |
9931 | *) |
9932 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 9933 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 9934 | ;; |
631ef239 AC |
9935 | esac | |
9936 | sort | |
9937 | ) | | |
212380e3 | 9938 | sed ' |
631ef239 | 9939 | /^ac_cv_env_/b end |
212380e3 | 9940 | t clear |
631ef239 | 9941 | :clear |
212380e3 AC |
9942 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9943 | t end | |
631ef239 AC |
9944 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9945 | :end' >>confcache | |
9946 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9947 | if test -w "$cache_file"; then | |
b6d0720c | 9948 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9950 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
9951 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
9952 | cat confcache >"$cache_file" | |
9953 | else | |
9954 | case $cache_file in #( | |
9955 | */* | ?:*) | |
9956 | mv -f confcache "$cache_file"$$ && | |
9957 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9958 | *) | |
9959 | mv -f confcache "$cache_file" ;; | |
9960 | esac | |
9961 | fi | |
9962 | fi | |
212380e3 | 9963 | else |
7083c021 AC |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9965 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
9966 | fi |
9967 | fi | |
9968 | rm -f confcache | |
9969 | ||
9970 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9971 | # Let make expand exec_prefix. | |
9972 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9973 | ||
212380e3 AC |
9974 | DEFS=-DHAVE_CONFIG_H |
9975 | ||
9976 | ac_libobjs= | |
9977 | ac_ltlibobjs= | |
b6d0720c | 9978 | U= |
212380e3 AC |
9979 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9980 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 9981 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 9982 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
9983 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9984 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
9985 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9986 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
9987 | done |
9988 | LIBOBJS=$ac_libobjs | |
9989 | ||
9990 | LTLIBOBJS=$ac_ltlibobjs | |
9991 | ||
9992 | ||
9993 | ||
7083c021 AC |
9994 | |
9995 | ||
b6d0720c | 9996 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 9997 | ac_write_fail=0 |
212380e3 AC |
9998 | ac_clean_files_save=$ac_clean_files |
9999 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
10001 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10002 | as_write_fail=0 | |
10003 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
10004 | #! $SHELL |
10005 | # Generated by $as_me. | |
10006 | # Run this file to recreate the current configuration. | |
10007 | # Compiler output produced by configure, useful for debugging | |
10008 | # configure, is in config.log if it exists. | |
10009 | ||
10010 | debug=false | |
10011 | ac_cs_recheck=false | |
10012 | ac_cs_silent=false | |
212380e3 | 10013 | |
7083c021 AC |
10014 | SHELL=\${CONFIG_SHELL-$SHELL} |
10015 | export SHELL | |
10016 | _ASEOF | |
10017 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10018 | ## -------------------- ## | |
10019 | ## M4sh Initialization. ## | |
10020 | ## -------------------- ## | |
212380e3 | 10021 | |
631ef239 AC |
10022 | # Be more Bourne compatible |
10023 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 10024 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
10025 | emulate sh |
10026 | NULLCMD=: | |
7083c021 | 10027 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
10028 | # is contrary to our usage. Disable this feature. |
10029 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 10030 | setopt NO_GLOB_SUBST |
212380e3 | 10031 | else |
7083c021 AC |
10032 | case `(set -o) 2>/dev/null` in #( |
10033 | *posix*) : | |
10034 | set -o posix ;; #( | |
10035 | *) : | |
10036 | ;; | |
631ef239 | 10037 | esac |
212380e3 AC |
10038 | fi |
10039 | ||
10040 | ||
7083c021 AC |
10041 | as_nl=' |
10042 | ' | |
10043 | export as_nl | |
10044 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10045 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10046 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10047 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10048 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10049 | # but without wasting forks for bash or zsh. | |
10050 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10051 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10052 | as_echo='print -r --' | |
10053 | as_echo_n='print -rn --' | |
10054 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10055 | as_echo='printf %s\n' | |
10056 | as_echo_n='printf %s' | |
10057 | else | |
10058 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10059 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10060 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 10061 | else |
7083c021 AC |
10062 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10063 | as_echo_n_body='eval | |
10064 | arg=$1; | |
10065 | case $arg in #( | |
10066 | *"$as_nl"*) | |
10067 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10068 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10069 | esac; | |
10070 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10071 | ' | |
10072 | export as_echo_n_body | |
10073 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 10074 | fi |
7083c021 AC |
10075 | export as_echo_body |
10076 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
10077 | fi |
10078 | ||
7083c021 AC |
10079 | # The user is always right. |
10080 | if test "${PATH_SEPARATOR+set}" != set; then | |
10081 | PATH_SEPARATOR=: | |
10082 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10083 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10084 | PATH_SEPARATOR=';' | |
10085 | } | |
631ef239 AC |
10086 | fi |
10087 | ||
10088 | ||
10089 | # IFS | |
10090 | # We need space, tab and new line, in precisely that order. Quoting is | |
10091 | # there to prevent editors from complaining about space-tab. | |
10092 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10093 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
10094 | IFS=" "" $as_nl" |
10095 | ||
10096 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 10097 | as_myself= |
7083c021 | 10098 | case $0 in #(( |
631ef239 AC |
10099 | *[\\/]* ) as_myself=$0 ;; |
10100 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10101 | for as_dir in $PATH | |
10102 | do | |
10103 | IFS=$as_save_IFS | |
10104 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
10105 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10106 | done | |
631ef239 AC |
10107 | IFS=$as_save_IFS |
10108 | ||
10109 | ;; | |
10110 | esac | |
10111 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10112 | # in which case we are not to be found in the path. | |
10113 | if test "x$as_myself" = x; then | |
10114 | as_myself=$0 | |
10115 | fi | |
10116 | if test ! -f "$as_myself"; then | |
7083c021 AC |
10117 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
10118 | exit 1 | |
631ef239 AC |
10119 | fi |
10120 | ||
7083c021 AC |
10121 | # Unset variables that we do not need and which cause bugs (e.g. in |
10122 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10123 | # suppresses any "Segmentation fault" message there. '((' could | |
10124 | # trigger a bug in pdksh 5.2.14. | |
10125 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10126 | do eval test x\${$as_var+set} = xset \ | |
10127 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 10128 | done |
212380e3 AC |
10129 | PS1='$ ' |
10130 | PS2='> ' | |
10131 | PS4='+ ' | |
10132 | ||
7083c021 AC |
10133 | # NLS nuisances. |
10134 | LC_ALL=C | |
10135 | export LC_ALL | |
10136 | LANGUAGE=C | |
10137 | export LANGUAGE | |
10138 | ||
10139 | # CDPATH. | |
10140 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10141 | ||
10142 | ||
b6d0720c AC |
10143 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
10144 | # ---------------------------------------- | |
7083c021 AC |
10145 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
10146 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 10147 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
10148 | as_fn_error () |
10149 | { | |
b6d0720c AC |
10150 | as_status=$1; test $as_status -eq 0 && as_status=1 |
10151 | if test "$4"; then | |
10152 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10153 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 10154 | fi |
b6d0720c | 10155 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
10156 | as_fn_exit $as_status |
10157 | } # as_fn_error | |
10158 | ||
10159 | ||
10160 | # as_fn_set_status STATUS | |
10161 | # ----------------------- | |
10162 | # Set $? to STATUS, without forking. | |
10163 | as_fn_set_status () | |
10164 | { | |
10165 | return $1 | |
10166 | } # as_fn_set_status | |
10167 | ||
10168 | # as_fn_exit STATUS | |
10169 | # ----------------- | |
10170 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10171 | as_fn_exit () | |
10172 | { | |
10173 | set +e | |
10174 | as_fn_set_status $1 | |
10175 | exit $1 | |
10176 | } # as_fn_exit | |
10177 | ||
10178 | # as_fn_unset VAR | |
10179 | # --------------- | |
10180 | # Portably unset VAR. | |
10181 | as_fn_unset () | |
10182 | { | |
10183 | { eval $1=; unset $1;} | |
10184 | } | |
10185 | as_unset=as_fn_unset | |
10186 | # as_fn_append VAR VALUE | |
10187 | # ---------------------- | |
10188 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10189 | # advantage of any shell optimizations that allow amortized linear growth over | |
10190 | # repeated appends, instead of the typical quadratic growth present in naive | |
10191 | # implementations. | |
10192 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10193 | eval 'as_fn_append () | |
10194 | { | |
10195 | eval $1+=\$2 | |
10196 | }' | |
10197 | else | |
10198 | as_fn_append () | |
10199 | { | |
10200 | eval $1=\$$1\$2 | |
10201 | } | |
10202 | fi # as_fn_append | |
10203 | ||
10204 | # as_fn_arith ARG... | |
10205 | # ------------------ | |
10206 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10207 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10208 | # must be portable across $(()) and expr. | |
10209 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10210 | eval 'as_fn_arith () | |
10211 | { | |
10212 | as_val=$(( $* )) | |
10213 | }' | |
10214 | else | |
10215 | as_fn_arith () | |
10216 | { | |
10217 | as_val=`expr "$@" || test $? -eq 1` | |
10218 | } | |
10219 | fi # as_fn_arith | |
10220 | ||
212380e3 | 10221 | |
631ef239 AC |
10222 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10223 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
10224 | as_expr=expr |
10225 | else | |
10226 | as_expr=false | |
10227 | fi | |
10228 | ||
631ef239 | 10229 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
10230 | as_basename=basename |
10231 | else | |
10232 | as_basename=false | |
10233 | fi | |
10234 | ||
7083c021 AC |
10235 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10236 | as_dirname=dirname | |
10237 | else | |
10238 | as_dirname=false | |
10239 | fi | |
212380e3 | 10240 | |
631ef239 | 10241 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
10242 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10243 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 10244 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10245 | $as_echo X/"$0" | |
631ef239 AC |
10246 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10247 | s//\1/ | |
10248 | q | |
10249 | } | |
10250 | /^X\/\(\/\/\)$/{ | |
10251 | s//\1/ | |
10252 | q | |
10253 | } | |
10254 | /^X\/\(\/\).*/{ | |
10255 | s//\1/ | |
10256 | q | |
10257 | } | |
10258 | s/.*/./; q'` | |
212380e3 | 10259 | |
7083c021 AC |
10260 | # Avoid depending upon Character Ranges. |
10261 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10262 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10263 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10264 | as_cr_digits='0123456789' | |
10265 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
10266 | |
10267 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 10268 | case `echo -n x` in #((((( |
631ef239 | 10269 | -n*) |
7083c021 | 10270 | case `echo 'xy\c'` in |
631ef239 | 10271 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
10272 | xy) ECHO_C='\c';; |
10273 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10274 | ECHO_T=' ';; | |
631ef239 AC |
10275 | esac;; |
10276 | *) | |
10277 | ECHO_N='-n';; | |
212380e3 AC |
10278 | esac |
10279 | ||
212380e3 | 10280 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
10281 | if test -d conf$$.dir; then |
10282 | rm -f conf$$.dir/conf$$.file | |
10283 | else | |
10284 | rm -f conf$$.dir | |
7083c021 AC |
10285 | mkdir conf$$.dir 2>/dev/null |
10286 | fi | |
10287 | if (echo >conf$$.file) 2>/dev/null; then | |
10288 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10289 | as_ln_s='ln -s' | |
10290 | # ... but there are two gotchas: | |
10291 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10292 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 10293 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 10294 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 10295 | as_ln_s='cp -pR' |
7083c021 AC |
10296 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10297 | as_ln_s=ln | |
10298 | else | |
2eff3833 | 10299 | as_ln_s='cp -pR' |
7083c021 | 10300 | fi |
212380e3 | 10301 | else |
2eff3833 | 10302 | as_ln_s='cp -pR' |
212380e3 | 10303 | fi |
631ef239 AC |
10304 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10305 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 10306 | |
7083c021 AC |
10307 | |
10308 | # as_fn_mkdir_p | |
10309 | # ------------- | |
10310 | # Create "$as_dir" as a directory, including parents if necessary. | |
10311 | as_fn_mkdir_p () | |
10312 | { | |
10313 | ||
10314 | case $as_dir in #( | |
10315 | -*) as_dir=./$as_dir;; | |
10316 | esac | |
10317 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10318 | as_dirs= | |
10319 | while :; do | |
10320 | case $as_dir in #( | |
10321 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10322 | *) as_qdir=$as_dir;; | |
10323 | esac | |
10324 | as_dirs="'$as_qdir' $as_dirs" | |
10325 | as_dir=`$as_dirname -- "$as_dir" || | |
10326 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10327 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10328 | X"$as_dir" : 'X\(//\)$' \| \ | |
10329 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10330 | $as_echo X"$as_dir" | | |
10331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10332 | s//\1/ | |
10333 | q | |
10334 | } | |
10335 | /^X\(\/\/\)[^/].*/{ | |
10336 | s//\1/ | |
10337 | q | |
10338 | } | |
10339 | /^X\(\/\/\)$/{ | |
10340 | s//\1/ | |
10341 | q | |
10342 | } | |
10343 | /^X\(\/\).*/{ | |
10344 | s//\1/ | |
10345 | q | |
10346 | } | |
10347 | s/.*/./; q'` | |
10348 | test -d "$as_dir" && break | |
10349 | done | |
10350 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 10351 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
10352 | |
10353 | ||
10354 | } # as_fn_mkdir_p | |
212380e3 | 10355 | if mkdir -p . 2>/dev/null; then |
7083c021 | 10356 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
10357 | else |
10358 | test -d ./-p && rmdir ./-p | |
10359 | as_mkdir_p=false | |
10360 | fi | |
10361 | ||
2eff3833 JT |
10362 | |
10363 | # as_fn_executable_p FILE | |
10364 | # ----------------------- | |
10365 | # Test if FILE is an executable regular file. | |
10366 | as_fn_executable_p () | |
10367 | { | |
10368 | test -f "$1" && test -x "$1" | |
10369 | } # as_fn_executable_p | |
10370 | as_test_x='test -x' | |
10371 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
10372 | |
10373 | # Sed expression to map a string onto a valid CPP name. | |
10374 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10375 | ||
10376 | # Sed expression to map a string onto a valid variable name. | |
10377 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10378 | ||
10379 | ||
212380e3 | 10380 | exec 6>&1 |
7083c021 AC |
10381 | ## ----------------------------------- ## |
10382 | ## Main body of $CONFIG_STATUS script. ## | |
10383 | ## ----------------------------------- ## | |
10384 | _ASEOF | |
10385 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 10386 | |
7083c021 AC |
10387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10388 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 10389 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
10390 | # values after options handling. |
10391 | ac_log=" | |
1ce62709 | 10392 | This file was extended by charybdis $as_me 3.5.0, which was |
2eff3833 | 10393 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
10394 | |
10395 | CONFIG_FILES = $CONFIG_FILES | |
10396 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10397 | CONFIG_LINKS = $CONFIG_LINKS | |
10398 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10399 | $ $0 $@ | |
10400 | ||
631ef239 AC |
10401 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10402 | " | |
10403 | ||
212380e3 AC |
10404 | _ACEOF |
10405 | ||
7083c021 AC |
10406 | case $ac_config_files in *" |
10407 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10408 | esac | |
10409 | ||
10410 | case $ac_config_headers in *" | |
10411 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10412 | esac | |
10413 | ||
10414 | ||
10415 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 10416 | # Files that config.status was made for. |
631ef239 AC |
10417 | config_files="$ac_config_files" |
10418 | config_headers="$ac_config_headers" | |
9f9b7042 | 10419 | config_commands="$ac_config_commands" |
212380e3 | 10420 | |
631ef239 | 10421 | _ACEOF |
212380e3 | 10422 | |
7083c021 | 10423 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10424 | ac_cs_usage="\ |
7083c021 AC |
10425 | \`$as_me' instantiates files and other configuration actions |
10426 | from templates according to the current configuration. Unless the files | |
10427 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 10428 | |
7083c021 | 10429 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
10430 | |
10431 | -h, --help print this help, then exit | |
631ef239 | 10432 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 10433 | --config print configuration, then exit |
7083c021 AC |
10434 | -q, --quiet, --silent |
10435 | do not print progress messages | |
212380e3 AC |
10436 | -d, --debug don't remove temporary files |
10437 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
10438 | --file=FILE[:TEMPLATE] |
10439 | instantiate the configuration file FILE | |
10440 | --header=FILE[:TEMPLATE] | |
10441 | instantiate the configuration header FILE | |
212380e3 AC |
10442 | |
10443 | Configuration files: | |
10444 | $config_files | |
10445 | ||
10446 | Configuration headers: | |
10447 | $config_headers | |
10448 | ||
9f9b7042 NPB |
10449 | Configuration commands: |
10450 | $config_commands | |
10451 | ||
7083c021 | 10452 | Report bugs to the package provider." |
212380e3 | 10453 | |
631ef239 | 10454 | _ACEOF |
7083c021 | 10455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 10456 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 10457 | ac_cs_version="\\ |
1ce62709 | 10458 | charybdis config.status 3.5.0 |
2eff3833 | 10459 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 10460 | with options \\"\$ac_cs_config\\" |
212380e3 | 10461 | |
2eff3833 | 10462 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
10463 | This config.status script is free software; the Free Software Foundation |
10464 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
10465 | |
10466 | ac_pwd='$ac_pwd' | |
10467 | srcdir='$srcdir' | |
10468 | INSTALL='$INSTALL' | |
7083c021 | 10469 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
10470 | _ACEOF |
10471 | ||
7083c021 AC |
10472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10473 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
10474 | ac_need_defaults=: |
10475 | while test $# != 0 | |
10476 | do | |
10477 | case $1 in | |
b6d0720c | 10478 | --*=?*) |
631ef239 AC |
10479 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10480 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
10481 | ac_shift=: |
10482 | ;; | |
b6d0720c AC |
10483 | --*=) |
10484 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10485 | ac_optarg= | |
10486 | ac_shift=: | |
10487 | ;; | |
631ef239 | 10488 | *) |
212380e3 AC |
10489 | ac_option=$1 |
10490 | ac_optarg=$2 | |
10491 | ac_shift=shift | |
10492 | ;; | |
212380e3 AC |
10493 | esac |
10494 | ||
10495 | case $ac_option in | |
10496 | # Handling of the options. | |
212380e3 AC |
10497 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10498 | ac_cs_recheck=: ;; | |
631ef239 | 10499 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 10500 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
10501 | --config | --confi | --conf | --con | --co | --c ) |
10502 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 10503 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
10504 | debug=: ;; |
10505 | --file | --fil | --fi | --f ) | |
10506 | $ac_shift | |
7083c021 AC |
10507 | case $ac_optarg in |
10508 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 10509 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
10510 | esac |
10511 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
10512 | ac_need_defaults=false;; |
10513 | --header | --heade | --head | --hea ) | |
10514 | $ac_shift | |
7083c021 AC |
10515 | case $ac_optarg in |
10516 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10517 | esac | |
10518 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 10519 | ac_need_defaults=false;; |
631ef239 AC |
10520 | --he | --h) |
10521 | # Conflict between --help and --header | |
b6d0720c | 10522 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 10523 | Try \`$0 --help' for more information.";; |
631ef239 | 10524 | --help | --hel | -h ) |
7083c021 | 10525 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
10526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10527 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10528 | ac_cs_silent=: ;; | |
10529 | ||
10530 | # This is an error. | |
b6d0720c | 10531 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 10532 | Try \`$0 --help' for more information." ;; |
212380e3 | 10533 | |
7083c021 | 10534 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 10535 | ac_need_defaults=false ;; |
212380e3 AC |
10536 | |
10537 | esac | |
10538 | shift | |
10539 | done | |
10540 | ||
10541 | ac_configure_extra_args= | |
10542 | ||
10543 | if $ac_cs_silent; then | |
10544 | exec 6>/dev/null | |
10545 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10546 | fi | |
10547 | ||
10548 | _ACEOF | |
7083c021 | 10549 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 10550 | if \$ac_cs_recheck; then |
2eff3833 | 10551 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
10552 | shift |
10553 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10554 | CONFIG_SHELL='$SHELL' | |
631ef239 | 10555 | export CONFIG_SHELL |
7083c021 | 10556 | exec "\$@" |
212380e3 AC |
10557 | fi |
10558 | ||
10559 | _ACEOF | |
7083c021 | 10560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10561 | exec 5>>config.log |
10562 | { | |
10563 | echo | |
10564 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10565 | ## Running $as_me. ## | |
10566 | _ASBOX | |
7083c021 | 10567 | $as_echo "$ac_log" |
631ef239 | 10568 | } >&5 |
212380e3 | 10569 | |
631ef239 | 10570 | _ACEOF |
7083c021 | 10571 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10572 | _ACEOF |
212380e3 | 10573 | |
7083c021 | 10574 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10575 | |
10576 | # Handling of arguments. | |
212380e3 AC |
10577 | for ac_config_target in $ac_config_targets |
10578 | do | |
631ef239 AC |
10579 | case $ac_config_target in |
10580 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
10581 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7083c021 | 10582 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 10583 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 10584 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
631ef239 AC |
10585 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
10586 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
10587 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 10588 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
10589 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
10590 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 10591 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 10592 | |
b6d0720c | 10593 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
10594 | esac |
10595 | done | |
10596 | ||
631ef239 | 10597 | |
212380e3 AC |
10598 | # If the user did not use the arguments to specify the items to instantiate, |
10599 | # then the envvar interface is used. Set only those that are not. | |
10600 | # We use the long form for the default assignment because of an extremely | |
10601 | # bizarre bug on SunOS 4.1.3. | |
10602 | if $ac_need_defaults; then | |
10603 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10604 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 10605 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
10606 | fi |
10607 | ||
10608 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 10609 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 10610 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
10611 | # Hook for its removal unless debugging. |
10612 | # Note that there is a small window in which the directory will not be cleaned: | |
10613 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
10614 | $debug || |
10615 | { | |
b6d0720c | 10616 | tmp= ac_tmp= |
631ef239 | 10617 | trap 'exit_status=$? |
b6d0720c AC |
10618 | : "${ac_tmp:=$tmp}" |
10619 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 10620 | ' 0 |
7083c021 | 10621 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 10622 | } |
212380e3 AC |
10623 | # Create a (secure) tmp directory for tmp files. |
10624 | ||
10625 | { | |
631ef239 | 10626 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 10627 | test -d "$tmp" |
212380e3 AC |
10628 | } || |
10629 | { | |
631ef239 AC |
10630 | tmp=./conf$$-$RANDOM |
10631 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
10632 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10633 | ac_tmp=$tmp | |
212380e3 | 10634 | |
7083c021 AC |
10635 | # Set up the scripts for CONFIG_FILES section. |
10636 | # No need to generate them if there are no CONFIG_FILES. | |
10637 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
10638 | if test -n "$CONFIG_FILES"; then |
10639 | ||
631ef239 | 10640 | |
7083c021 AC |
10641 | ac_cr=`echo X | tr X '\015'` |
10642 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10643 | # But we know of no other shell where ac_cr would be empty at this | |
10644 | # point, so we can use a bashism as a fallback. | |
10645 | if test "x$ac_cr" = x; then | |
10646 | eval ac_cr=\$\'\\r\' | |
10647 | fi | |
10648 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10649 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 10650 | ac_cs_awk_cr='\\r' |
7083c021 AC |
10651 | else |
10652 | ac_cs_awk_cr=$ac_cr | |
10653 | fi | |
10654 | ||
b6d0720c | 10655 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 10656 | _ACEOF |
631ef239 AC |
10657 | |
10658 | ||
7083c021 AC |
10659 | { |
10660 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10661 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10662 | echo "_ACEOF" | |
10663 | } >conf$$subs.sh || | |
b6d0720c AC |
10664 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10665 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
10666 | ac_delim='%!_!# ' |
10667 | for ac_last_try in false false false false false :; do | |
7083c021 | 10668 | . ./conf$$subs.sh || |
b6d0720c | 10669 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
10670 | |
10671 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10672 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
10673 | break |
10674 | elif $ac_last_try; then | |
b6d0720c | 10675 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
10676 | else |
10677 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 10678 | fi |
631ef239 | 10679 | done |
7083c021 AC |
10680 | rm -f conf$$subs.sh |
10681 | ||
10682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 10683 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
10684 | _ACEOF |
10685 | sed -n ' | |
10686 | h | |
10687 | s/^/S["/; s/!.*/"]=/ | |
10688 | p | |
10689 | g | |
10690 | s/^[^!]*!// | |
10691 | :repl | |
10692 | t repl | |
10693 | s/'"$ac_delim"'$// | |
10694 | t delim | |
10695 | :nl | |
10696 | h | |
6fb6bd15 | 10697 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10698 | t more1 |
10699 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10700 | p | |
10701 | n | |
10702 | b repl | |
10703 | :more1 | |
10704 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10705 | p | |
10706 | g | |
10707 | s/.\{148\}// | |
10708 | t nl | |
10709 | :delim | |
10710 | h | |
6fb6bd15 | 10711 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10712 | t more2 |
10713 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10714 | p | |
10715 | b | |
10716 | :more2 | |
10717 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10718 | p | |
10719 | g | |
10720 | s/.\{148\}// | |
10721 | t delim | |
10722 | ' <conf$$subs.awk | sed ' | |
10723 | /^[^""]/{ | |
10724 | N | |
10725 | s/\n// | |
10726 | } | |
10727 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10728 | rm -f conf$$subs.awk | |
10729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10730 | _ACAWK | |
b6d0720c | 10731 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
10732 | for (key in S) S_is_set[key] = 1 |
10733 | FS = "\a" | |
212380e3 | 10734 | |
7083c021 AC |
10735 | } |
10736 | { | |
10737 | line = $ 0 | |
10738 | nfields = split(line, field, "@") | |
10739 | substed = 0 | |
10740 | len = length(field[1]) | |
10741 | for (i = 2; i < nfields; i++) { | |
10742 | key = field[i] | |
10743 | keylen = length(key) | |
10744 | if (S_is_set[key]) { | |
10745 | value = S[key] | |
10746 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10747 | len += length(value) + length(field[++i]) | |
10748 | substed = 1 | |
10749 | } else | |
10750 | len += 1 + keylen | |
10751 | } | |
631ef239 | 10752 | |
7083c021 AC |
10753 | print line |
10754 | } | |
10755 | ||
10756 | _ACAWK | |
631ef239 | 10757 | _ACEOF |
7083c021 AC |
10758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10759 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10760 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10761 | else | |
10762 | cat | |
b6d0720c AC |
10763 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10764 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 10765 | _ACEOF |
631ef239 | 10766 | |
b6d0720c AC |
10767 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10768 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
10769 | # trailing colons and then remove the whole line if VPATH becomes empty |
10770 | # (actually we leave an empty line to preserve line numbers). | |
10771 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
10772 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10773 | h | |
10774 | s/// | |
10775 | s/^/:/ | |
10776 | s/[ ]*$/:/ | |
10777 | s/:\$(srcdir):/:/g | |
10778 | s/:\${srcdir}:/:/g | |
10779 | s/:@srcdir@:/:/g | |
10780 | s/^:*// | |
631ef239 | 10781 | s/:*$// |
b6d0720c AC |
10782 | x |
10783 | s/\(=[ ]*\).*/\1/ | |
10784 | G | |
10785 | s/\n// | |
631ef239 AC |
10786 | s/^[^=]*=[ ]*$// |
10787 | }' | |
10788 | fi | |
10789 | ||
7083c021 | 10790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10791 | fi # test -n "$CONFIG_FILES" |
10792 | ||
7083c021 AC |
10793 | # Set up the scripts for CONFIG_HEADERS section. |
10794 | # No need to generate them if there are no CONFIG_HEADERS. | |
10795 | # This happens for instance with `./config.status Makefile'. | |
10796 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 10797 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
10798 | BEGIN { |
10799 | _ACEOF | |
10800 | ||
10801 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10802 | # here-document in config.status, that substitutes the proper values into | |
10803 | # config.h.in to produce config.h. | |
10804 | ||
10805 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10806 | # handling of long lines. | |
10807 | ac_delim='%!_!# ' | |
10808 | for ac_last_try in false false :; do | |
b6d0720c AC |
10809 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10810 | if test -z "$ac_tt"; then | |
7083c021 AC |
10811 | break |
10812 | elif $ac_last_try; then | |
b6d0720c | 10813 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
10814 | else |
10815 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10816 | fi | |
10817 | done | |
10818 | ||
10819 | # For the awk script, D is an array of macro values keyed by name, | |
10820 | # likewise P contains macro parameters if any. Preserve backslash | |
10821 | # newline sequences. | |
10822 | ||
10823 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10824 | sed -n ' | |
10825 | s/.\{148\}/&'"$ac_delim"'/g | |
10826 | t rset | |
10827 | :rset | |
10828 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10829 | t def | |
10830 | d | |
10831 | :def | |
10832 | s/\\$// | |
10833 | t bsnl | |
10834 | s/["\\]/\\&/g | |
10835 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10836 | D["\1"]=" \3"/p | |
10837 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10838 | d | |
10839 | :bsnl | |
10840 | s/["\\]/\\&/g | |
10841 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10842 | D["\1"]=" \3\\\\\\n"\\/p | |
10843 | t cont | |
10844 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10845 | t cont | |
10846 | d | |
10847 | :cont | |
10848 | n | |
10849 | s/.\{148\}/&'"$ac_delim"'/g | |
10850 | t clear | |
10851 | :clear | |
10852 | s/\\$// | |
10853 | t bsnlc | |
10854 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10855 | d | |
10856 | :bsnlc | |
10857 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10858 | b cont | |
10859 | ' <confdefs.h | sed ' | |
10860 | s/'"$ac_delim"'/"\\\ | |
10861 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10862 | ||
10863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10864 | for (key in D) D_is_set[key] = 1 | |
10865 | FS = "\a" | |
10866 | } | |
10867 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10868 | line = \$ 0 | |
10869 | split(line, arg, " ") | |
10870 | if (arg[1] == "#") { | |
10871 | defundef = arg[2] | |
10872 | mac1 = arg[3] | |
10873 | } else { | |
10874 | defundef = substr(arg[1], 2) | |
10875 | mac1 = arg[2] | |
10876 | } | |
10877 | split(mac1, mac2, "(") #) | |
10878 | macro = mac2[1] | |
10879 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10880 | if (D_is_set[macro]) { | |
10881 | # Preserve the white space surrounding the "#". | |
10882 | print prefix "define", macro P[macro] D[macro] | |
10883 | next | |
10884 | } else { | |
10885 | # Replace #undef with comments. This is necessary, for example, | |
10886 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10887 | # on some systems where configure will not decide to define it. | |
10888 | if (defundef == "undef") { | |
10889 | print "/*", prefix defundef, macro, "*/" | |
10890 | next | |
10891 | } | |
10892 | } | |
10893 | } | |
10894 | { print } | |
10895 | _ACAWK | |
10896 | _ACEOF | |
10897 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 10898 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
10899 | fi # test -n "$CONFIG_HEADERS" |
10900 | ||
631ef239 | 10901 | |
9f9b7042 | 10902 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
10903 | shift |
10904 | for ac_tag | |
631ef239 AC |
10905 | do |
10906 | case $ac_tag in | |
10907 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10908 | esac | |
10909 | case $ac_mode$ac_tag in | |
10910 | :[FHL]*:*);; | |
b6d0720c | 10911 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
10912 | :[FH]-) ac_tag=-:-;; |
10913 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 10914 | esac |
631ef239 AC |
10915 | ac_save_IFS=$IFS |
10916 | IFS=: | |
10917 | set x $ac_tag | |
10918 | IFS=$ac_save_IFS | |
10919 | shift | |
10920 | ac_file=$1 | |
10921 | shift | |
212380e3 | 10922 | |
631ef239 AC |
10923 | case $ac_mode in |
10924 | :L) ac_source=$1;; | |
10925 | :[FH]) | |
10926 | ac_file_inputs= | |
10927 | for ac_f | |
10928 | do | |
10929 | case $ac_f in | |
b6d0720c | 10930 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
10931 | *) # Look for the file first in the build tree, then in the source tree |
10932 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10933 | # because $ac_f cannot contain `:'. | |
10934 | test -f "$ac_f" || | |
10935 | case $ac_f in | |
10936 | [\\/$]*) false;; | |
10937 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10938 | esac || | |
b6d0720c | 10939 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 10940 | esac |
7083c021 AC |
10941 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10942 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
10943 | done |
10944 | ||
10945 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10946 | # use $as_me), people would be surprised to read: | |
10947 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
10948 | configure_input='Generated from '` |
10949 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10950 | `' by configure.' | |
631ef239 AC |
10951 | if test x"$ac_file" != x-; then |
10952 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10954 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 10955 | fi |
7083c021 AC |
10956 | # Neutralize special characters interpreted by sed in replacement strings. |
10957 | case $configure_input in #( | |
10958 | *\&* | *\|* | *\\* ) | |
10959 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10960 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10961 | *) ac_sed_conf_input=$configure_input;; | |
10962 | esac | |
631ef239 AC |
10963 | |
10964 | case $ac_tag in | |
b6d0720c AC |
10965 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10966 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
10967 | esac |
10968 | ;; | |
10969 | esac | |
10970 | ||
10971 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
10972 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10973 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10974 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 10975 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10976 | $as_echo X"$ac_file" | |
631ef239 AC |
10977 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10978 | s//\1/ | |
10979 | q | |
10980 | } | |
10981 | /^X\(\/\/\)[^/].*/{ | |
10982 | s//\1/ | |
10983 | q | |
10984 | } | |
10985 | /^X\(\/\/\)$/{ | |
10986 | s//\1/ | |
10987 | q | |
10988 | } | |
10989 | /^X\(\/\).*/{ | |
10990 | s//\1/ | |
10991 | q | |
10992 | } | |
10993 | s/.*/./; q'` | |
7083c021 | 10994 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
10995 | ac_builddir=. |
10996 | ||
631ef239 AC |
10997 | case "$ac_dir" in |
10998 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10999 | *) | |
7083c021 | 11000 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 11001 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 11002 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
11003 | case $ac_top_builddir_sub in |
11004 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11005 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11006 | esac ;; | |
11007 | esac | |
11008 | ac_abs_top_builddir=$ac_pwd | |
11009 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11010 | # for backward compatibility: | |
11011 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
11012 | |
11013 | case $srcdir in | |
631ef239 | 11014 | .) # We are building in place. |
212380e3 | 11015 | ac_srcdir=. |
631ef239 AC |
11016 | ac_top_srcdir=$ac_top_builddir_sub |
11017 | ac_abs_top_srcdir=$ac_pwd ;; | |
11018 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 11019 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
11020 | ac_top_srcdir=$srcdir |
11021 | ac_abs_top_srcdir=$srcdir ;; | |
11022 | *) # Relative name. | |
11023 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11024 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11025 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 11026 | esac |
631ef239 | 11027 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 11028 | |
212380e3 | 11029 | |
631ef239 AC |
11030 | case $ac_mode in |
11031 | :F) | |
11032 | # | |
11033 | # CONFIG_FILE | |
11034 | # | |
212380e3 AC |
11035 | |
11036 | case $INSTALL in | |
11037 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 11038 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 11039 | esac |
631ef239 | 11040 | _ACEOF |
212380e3 | 11041 | |
7083c021 | 11042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
11043 | # If the template does not know about datarootdir, expand it. |
11044 | # FIXME: This hack should be removed a few years after 2.60. | |
11045 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
11046 | ac_sed_dataroot=' |
11047 | /datarootdir/ { | |
631ef239 AC |
11048 | p |
11049 | q | |
11050 | } | |
11051 | /@datadir@/p | |
11052 | /@docdir@/p | |
11053 | /@infodir@/p | |
11054 | /@localedir@/p | |
7083c021 AC |
11055 | /@mandir@/p' |
11056 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
11057 | *datarootdir*) ac_datarootdir_seen=yes;; |
11058 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
11060 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 11061 | _ACEOF |
7083c021 | 11062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
11063 | ac_datarootdir_hack=' |
11064 | s&@datadir@&$datadir&g | |
11065 | s&@docdir@&$docdir&g | |
11066 | s&@infodir@&$infodir&g | |
11067 | s&@localedir@&$localedir&g | |
11068 | s&@mandir@&$mandir&g | |
7083c021 | 11069 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 11070 | esac |
212380e3 | 11071 | _ACEOF |
631ef239 AC |
11072 | |
11073 | # Neutralize VPATH when `$srcdir' = `.'. | |
11074 | # Shell code in configure.ac might set extrasub. | |
11075 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
11076 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11077 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
11078 | $extrasub |
11079 | _ACEOF | |
7083c021 | 11080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
11081 | :t |
11082 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 11083 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 11084 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 11085 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
11086 | s&@srcdir@&$ac_srcdir&;t t |
11087 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11088 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11089 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11090 | s&@builddir@&$ac_builddir&;t t | |
11091 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11092 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11093 | s&@INSTALL@&$ac_INSTALL&;t t | |
11094 | $ac_datarootdir_hack | |
7083c021 | 11095 | " |
b6d0720c AC |
11096 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
11097 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
11098 | |
11099 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
11100 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
11101 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11102 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 11104 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 11105 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 11106 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 11107 | |
b6d0720c | 11108 | rm -f "$ac_tmp/stdin" |
212380e3 | 11109 | case $ac_file in |
b6d0720c AC |
11110 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
11111 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 11112 | esac \ |
b6d0720c | 11113 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
11114 | ;; |
11115 | :H) | |
11116 | # | |
11117 | # CONFIG_HEADER | |
11118 | # | |
212380e3 | 11119 | if test x"$ac_file" != x-; then |
7083c021 AC |
11120 | { |
11121 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
11122 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
11123 | } >"$ac_tmp/config.h" \ | |
11124 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11125 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
11127 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 11128 | else |
7083c021 | 11129 | rm -f "$ac_file" |
b6d0720c AC |
11130 | mv "$ac_tmp/config.h" "$ac_file" \ |
11131 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
11132 | fi |
11133 | else | |
7083c021 | 11134 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
11135 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
11136 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 11137 | fi |
631ef239 AC |
11138 | ;; |
11139 | ||
9f9b7042 NPB |
11140 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
11141 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
11142 | ;; | |
631ef239 AC |
11143 | esac |
11144 | ||
9f9b7042 NPB |
11145 | |
11146 | case $ac_file$ac_mode in | |
2eff3833 | 11147 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
11148 | |
11149 | esac | |
631ef239 | 11150 | done # for ac_tag |
212380e3 | 11151 | |
212380e3 | 11152 | |
7083c021 | 11153 | as_fn_exit 0 |
212380e3 | 11154 | _ACEOF |
212380e3 AC |
11155 | ac_clean_files=$ac_clean_files_save |
11156 | ||
7083c021 | 11157 | test $ac_write_fail = 0 || |
b6d0720c | 11158 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 11159 | |
212380e3 AC |
11160 | |
11161 | # configure is writing to config.log, and then calls config.status. | |
11162 | # config.status does its own redirection, appending to config.log. | |
11163 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11164 | # by configure, so config.status won't be able to write to it; its | |
11165 | # output is simply discarded. So we exec the FD to /dev/null, | |
11166 | # effectively closing config.log, so it can be properly (re)opened and | |
11167 | # appended to by config.status. When coming back to configure, we | |
11168 | # need to make the FD available again. | |
11169 | if test "$no_create" != yes; then | |
11170 | ac_cs_success=: | |
11171 | ac_config_status_args= | |
11172 | test "$silent" = yes && | |
11173 | ac_config_status_args="$ac_config_status_args --quiet" | |
11174 | exec 5>/dev/null | |
11175 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11176 | exec 5>>config.log | |
11177 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11178 | # would make configure fail if this is the last instruction. | |
b6d0720c | 11179 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 11180 | fi |
1db8e007 JT |
11181 | |
11182 | # | |
11183 | # CONFIG_SUBDIRS section. | |
11184 | # | |
11185 | if test "$no_recursion" != yes; then | |
11186 | ||
11187 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
11188 | # so they do not pile up. | |
11189 | ac_sub_configure_args= | |
11190 | ac_prev= | |
11191 | eval "set x $ac_configure_args" | |
11192 | shift | |
11193 | for ac_arg | |
11194 | do | |
11195 | if test -n "$ac_prev"; then | |
11196 | ac_prev= | |
11197 | continue | |
11198 | fi | |
11199 | case $ac_arg in | |
11200 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
11201 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
11202 | ac_prev=cache_file ;; | |
11203 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
11204 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
11205 | | --c=*) | |
11206 | ;; | |
11207 | --config-cache | -C) | |
11208 | ;; | |
11209 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
11210 | ac_prev=srcdir ;; | |
11211 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
11212 | ;; | |
11213 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
11214 | ac_prev=prefix ;; | |
11215 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
11216 | ;; | |
11217 | --disable-option-checking) | |
11218 | ;; | |
11219 | *) | |
11220 | case $ac_arg in | |
11221 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11222 | esac | |
11223 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
11224 | esac | |
11225 | done | |
11226 | ||
11227 | # Always prepend --prefix to ensure using the same prefix | |
11228 | # in subdir configurations. | |
11229 | ac_arg="--prefix=$prefix" | |
11230 | case $ac_arg in | |
11231 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11232 | esac | |
11233 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
11234 | ||
11235 | # Pass --silent | |
11236 | if test "$silent" = yes; then | |
11237 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
11238 | fi | |
11239 | ||
11240 | # Always prepend --disable-option-checking to silence warnings, since | |
11241 | # different subdirs can have different --enable and --with options. | |
11242 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
11243 | ||
11244 | ac_popdir=`pwd` | |
11245 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
11246 | ||
11247 | # Do not complain, so a configure script can configure whichever | |
11248 | # parts of a large source tree are present. | |
11249 | test -d "$srcdir/$ac_dir" || continue | |
11250 | ||
11251 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
11252 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
11253 | $as_echo "$ac_msg" >&6 | |
11254 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11255 | ac_builddir=. | |
11256 | ||
11257 | case "$ac_dir" in | |
11258 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11259 | *) | |
11260 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11261 | # A ".." for each directory in $ac_dir_suffix. | |
11262 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11263 | case $ac_top_builddir_sub in | |
11264 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11265 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11266 | esac ;; | |
11267 | esac | |
11268 | ac_abs_top_builddir=$ac_pwd | |
11269 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11270 | # for backward compatibility: | |
11271 | ac_top_builddir=$ac_top_build_prefix | |
11272 | ||
11273 | case $srcdir in | |
11274 | .) # We are building in place. | |
11275 | ac_srcdir=. | |
11276 | ac_top_srcdir=$ac_top_builddir_sub | |
11277 | ac_abs_top_srcdir=$ac_pwd ;; | |
11278 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11279 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11280 | ac_top_srcdir=$srcdir | |
11281 | ac_abs_top_srcdir=$srcdir ;; | |
11282 | *) # Relative name. | |
11283 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11284 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11285 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11286 | esac | |
11287 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11288 | ||
11289 | ||
11290 | cd "$ac_dir" | |
11291 | ||
11292 | # Check for guested configure; otherwise get Cygnus style configure. | |
11293 | if test -f "$ac_srcdir/configure.gnu"; then | |
11294 | ac_sub_configure=$ac_srcdir/configure.gnu | |
11295 | elif test -f "$ac_srcdir/configure"; then | |
11296 | ac_sub_configure=$ac_srcdir/configure | |
11297 | elif test -f "$ac_srcdir/configure.in"; then | |
11298 | # This should be Cygnus configure. | |
11299 | ac_sub_configure=$ac_aux_dir/configure | |
11300 | else | |
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
11302 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
11303 | ac_sub_configure= | |
11304 | fi | |
11305 | ||
11306 | # The recursion is here. | |
11307 | if test -n "$ac_sub_configure"; then | |
11308 | # Make the cache file name correct relative to the subdirectory. | |
11309 | case $cache_file in | |
11310 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
11311 | *) # Relative name. | |
11312 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
11313 | esac | |
11314 | ||
11315 | { $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 | |
11316 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
11317 | # The eval makes quoting arguments work. | |
11318 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
11319 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
11320 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
11321 | fi | |
11322 | ||
11323 | cd "$ac_popdir" | |
11324 | done | |
11325 | fi | |
7083c021 AC |
11326 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11328 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11329 | fi | |
b676ea3b | 11330 | |
212380e3 AC |
11331 | |
11332 | if test "$cf_openssl_version_ok" = yes; then | |
11333 | openssl="yes" | |
11334 | else | |
11335 | openssl="no" | |
11336 | fi | |
11337 | ||
11338 | if test "$shared_modules" = yes; then | |
11339 | modules=shared | |
11340 | else | |
11341 | modules=static | |
11342 | fi | |
11343 | ||
11344 | echo " | |
b6d0720c | 11345 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
11346 | Install directory : $prefix |
11347 | ||
11348 | Ziplinks : $zlib | |
11349 | OpenSSL : $openssl | |
212380e3 AC |
11350 | Socket Engine : $SELECT_TYPE |
11351 | Small network : $small_net | |
11352 | Block allocator : $balloc | |
212380e3 AC |
11353 | |
11354 | Nickname length : $NICKLEN | |
11355 | Topic length : $TOPICLEN | |
11356 | ||
b6d0720c | 11357 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 11358 | " |