]> jfr.im git - irc/atheme/atheme-contrib-modules.git/blob - configure
dnsbl.c: add action to set a formatted vhost
[irc/atheme/atheme-contrib-modules.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Atheme IRC Services Contrib Modules 1.0.
4 #
5 # Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://github.com/atheme/atheme-contrib-modules/issues/
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Atheme IRC Services Contrib Modules'
582 PACKAGE_TARNAME='atheme-contrib-modules'
583 PACKAGE_VERSION='1.0'
584 PACKAGE_STRING='Atheme IRC Services Contrib Modules 1.0'
585 PACKAGE_BUGREPORT='https://github.com/atheme/atheme-contrib-modules/issues/'
586 PACKAGE_URL='https://atheme.github.io/'
587
588 ac_unique_file="src/atheme-compat.h"
589 ac_default_prefix=~/atheme
590 ac_subst_vars='LTLIBOBJS
591 LIBOBJS
592 VERSION
593 PACKAGE
594 PROG_IMPLIB_LDFLAGS
595 PROG_IMPLIB_NEEDED
596 CLEAN_LIB
597 UNINSTALL_LIB
598 INSTALL_LIB
599 PLUGIN_SUFFIX
600 PLUGIN_LDFLAGS
601 PLUGIN_CFLAGS
602 LDFLAGS_RPATH
603 LIB_SUFFIX
604 LIB_PREFIX
605 LIB_LDFLAGS
606 LIB_CFLAGS
607 host_os
608 host_vendor
609 host_cpu
610 host
611 build_os
612 build_vendor
613 build_cpu
614 build
615 TERM_SETAF6
616 TERM_SETAF4
617 TERM_SETAF3
618 TERM_SETAF2
619 TERM_SETAF1
620 TERM_BOLD
621 TERM_SGR0
622 TERM_EL
623 TPUT
624 TAR
625 RM
626 RANLIB
627 MV
628 MKDIR_P
629 SET_MAKE
630 LN_S
631 LN
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 CP
636 AR
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 target_alias
645 host_alias
646 build_alias
647 LIBS
648 ECHO_T
649 ECHO_N
650 ECHO_C
651 DEFS
652 mandir
653 localedir
654 libdir
655 psdir
656 pdfdir
657 dvidir
658 htmldir
659 infodir
660 docdir
661 oldincludedir
662 includedir
663 runstatedir
664 localstatedir
665 sharedstatedir
666 sysconfdir
667 datadir
668 datarootdir
669 libexecdir
670 sbindir
671 bindir
672 program_transform_name
673 prefix
674 exec_prefix
675 PACKAGE_URL
676 PACKAGE_BUGREPORT
677 PACKAGE_STRING
678 PACKAGE_VERSION
679 PACKAGE_TARNAME
680 PACKAGE_NAME
681 PATH_SEPARATOR
682 SHELL'
683 ac_subst_files=''
684 ac_user_opts='
685 enable_option_checking
686 '
687 ac_precious_vars='build_alias
688 host_alias
689 target_alias
690 CC
691 CFLAGS
692 LDFLAGS
693 LIBS
694 CPPFLAGS'
695
696
697 # Initialize some variables set by options.
698 ac_init_help=
699 ac_init_version=false
700 ac_unrecognized_opts=
701 ac_unrecognized_sep=
702 # The variables have the same names as the options, with
703 # dashes changed to underlines.
704 cache_file=/dev/null
705 exec_prefix=NONE
706 no_create=
707 no_recursion=
708 prefix=NONE
709 program_prefix=NONE
710 program_suffix=NONE
711 program_transform_name=s,x,x,
712 silent=
713 site=
714 srcdir=
715 verbose=
716 x_includes=NONE
717 x_libraries=NONE
718
719 # Installation directory options.
720 # These are left unexpanded so users can "make install exec_prefix=/foo"
721 # and all the variables that are supposed to be based on exec_prefix
722 # by default will actually change.
723 # Use braces instead of parens because sh, perl, etc. also accept them.
724 # (The list follows the same order as the GNU Coding Standards.)
725 bindir='${exec_prefix}/bin'
726 sbindir='${exec_prefix}/sbin'
727 libexecdir='${exec_prefix}/libexec'
728 datarootdir='${prefix}/share'
729 datadir='${datarootdir}'
730 sysconfdir='${prefix}/etc'
731 sharedstatedir='${prefix}/com'
732 localstatedir='${prefix}/var'
733 runstatedir='${localstatedir}/run'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
755 fi
756
757 case $ac_option in
758 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *=) ac_optarg= ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error $? "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
809 *"
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
816
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
821
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
826
827 -enable-* | --enable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error $? "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
835 *"
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=\$ac_optarg ;;
842
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
851
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
855
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
862
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
867
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
873
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
880
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
885
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
890
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
897
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
902
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir=$ac_optarg ;;
909
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
914
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
918
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
921 no_create=yes ;;
922
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
926
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
935
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
940
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
947
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
954
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
971
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
976
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
981
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
985
986 -runstatedir | --runstatedir | --runstatedi | --runstated \
987 | --runstate | --runstat | --runsta | --runst | --runs \
988 | --run | --ru | --r)
989 ac_prev=runstatedir ;;
990 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
991 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
992 | --run=* | --ru=* | --r=*)
993 runstatedir=$ac_optarg ;;
994
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996 ac_prev=sbindir ;;
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998 | --sbi=* | --sb=*)
999 sbindir=$ac_optarg ;;
1000
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1004 | --sha | --sh)
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009 | --sha=* | --sh=*)
1010 sharedstatedir=$ac_optarg ;;
1011
1012 -site | --site | --sit)
1013 ac_prev=site ;;
1014 -site=* | --site=* | --sit=*)
1015 site=$ac_optarg ;;
1016
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018 ac_prev=srcdir ;;
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1021
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1028
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1033
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 verbose=yes ;;
1036
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1039
1040 -with-* | --with-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid package name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "with_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval with_$ac_useropt=\$ac_optarg ;;
1055
1056 -without-* | --without-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval with_$ac_useropt=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information"
1092 ;;
1093
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1100 esac
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error $? "missing argument to $ac_option"
1118 fi
1119
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1122 no) ;;
1123 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1125 esac
1126 fi
1127
1128 # Check all directory arguments for consistency.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir runstatedir
1133 do
1134 eval ac_val=\$$ac_var
1135 # Remove trailing slashes.
1136 case $ac_val in
1137 */ )
1138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\$ac_val;;
1140 esac
1141 # Be sure to have absolute directory names.
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1162 fi
1163 fi
1164
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168 test "$silent" = yes && exec 6>/dev/null
1169
1170
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error $? "working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error $? "pwd does not report name of working directory"
1177
1178
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 $as_echo X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\).*/{
1202 s//\1/
1203 q
1204 }
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1209 fi
1210 else
1211 ac_srcdir_defaulted=no
1212 fi
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1216 fi
1217 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 ac_abs_confdir=`(
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures Atheme IRC Services Contrib Modules 1.0 to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking ...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1286 --libdir=DIR object code libraries [EPREFIX/lib]
1287 --includedir=DIR C header files [PREFIX/include]
1288 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1289 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1290 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1291 --infodir=DIR info documentation [DATAROOTDIR/info]
1292 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1293 --mandir=DIR man documentation [DATAROOTDIR/man]
1294 --docdir=DIR documentation root
1295 [DATAROOTDIR/doc/atheme-contrib-modules]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1301
1302 cat <<\_ACEOF
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of Atheme IRC Services Contrib Modules 1.0:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Some influential environment variables:
1317 CC C compiler command
1318 CFLAGS C compiler flags
1319 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1320 nonstandard directory <lib dir>
1321 LIBS libraries to pass to the linker, e.g. -l<library>
1322 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1323 you have headers in a nonstandard directory <include dir>
1324
1325 Use these variables to override the choices made by `configure' or to help
1326 it to find libraries and programs with nonstandard names/locations.
1327
1328 Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
1329 Atheme IRC Services Contrib Modules home page: <https://atheme.github.io/>.
1330 _ACEOF
1331 ac_status=$?
1332 fi
1333
1334 if test "$ac_init_help" = "recursive"; then
1335 # If there are subdirs, report their specific --help.
1336 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1337 test -d "$ac_dir" ||
1338 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1339 continue
1340 ac_builddir=.
1341
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *)
1345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1357
1358 case $srcdir in
1359 .) # We are building in place.
1360 ac_srcdir=.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1382 else
1383 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1386 done
1387 fi
1388
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391 cat <<\_ACEOF
1392 Atheme IRC Services Contrib Modules configure 1.0
1393 generated by GNU Autoconf 2.69
1394
1395 Copyright (C) 2012 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1398 _ACEOF
1399 exit
1400 fi
1401
1402 ## ------------------------ ##
1403 ## Autoconf initialization. ##
1404 ## ------------------------ ##
1405
1406 # ac_fn_c_try_compile LINENO
1407 # --------------------------
1408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1409 ac_fn_c_try_compile ()
1410 {
1411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1412 rm -f conftest.$ac_objext
1413 if { { ac_try="$ac_compile"
1414 case "(($ac_try" in
1415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1416 *) ac_try_echo=$ac_try;;
1417 esac
1418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1419 $as_echo "$ac_try_echo"; } >&5
1420 (eval "$ac_compile") 2>conftest.err
1421 ac_status=$?
1422 if test -s conftest.err; then
1423 grep -v '^ *+' conftest.err >conftest.er1
1424 cat conftest.er1 >&5
1425 mv -f conftest.er1 conftest.err
1426 fi
1427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1428 test $ac_status = 0; } && {
1429 test -z "$ac_c_werror_flag" ||
1430 test ! -s conftest.err
1431 } && test -s conftest.$ac_objext; then :
1432 ac_retval=0
1433 else
1434 $as_echo "$as_me: failed program was:" >&5
1435 sed 's/^/| /' conftest.$ac_ext >&5
1436
1437 ac_retval=1
1438 fi
1439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1440 as_fn_set_status $ac_retval
1441
1442 } # ac_fn_c_try_compile
1443
1444 # ac_fn_c_try_link LINENO
1445 # -----------------------
1446 # Try to link conftest.$ac_ext, and return whether this succeeded.
1447 ac_fn_c_try_link ()
1448 {
1449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1450 rm -f conftest.$ac_objext conftest$ac_exeext
1451 if { { ac_try="$ac_link"
1452 case "(($ac_try" in
1453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454 *) ac_try_echo=$ac_try;;
1455 esac
1456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_link") 2>conftest.err
1459 ac_status=$?
1460 if test -s conftest.err; then
1461 grep -v '^ *+' conftest.err >conftest.er1
1462 cat conftest.er1 >&5
1463 mv -f conftest.er1 conftest.err
1464 fi
1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466 test $ac_status = 0; } && {
1467 test -z "$ac_c_werror_flag" ||
1468 test ! -s conftest.err
1469 } && test -s conftest$ac_exeext && {
1470 test "$cross_compiling" = yes ||
1471 test -x conftest$ac_exeext
1472 }; then :
1473 ac_retval=0
1474 else
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1477
1478 ac_retval=1
1479 fi
1480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1482 # interfere with the next link command; also delete a directory that is
1483 # left behind by Apple's compiler. We do this before executing the actions.
1484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status $ac_retval
1487
1488 } # ac_fn_c_try_link
1489
1490 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1491 # -------------------------------------------------------
1492 # Tests whether HEADER exists and can be compiled using the include files in
1493 # INCLUDES, setting the cache variable VAR accordingly.
1494 ac_fn_c_check_header_compile ()
1495 {
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1498 $as_echo_n "checking for $2... " >&6; }
1499 if eval \${$3+:} false; then :
1500 $as_echo_n "(cached) " >&6
1501 else
1502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1503 /* end confdefs.h. */
1504 $4
1505 #include <$2>
1506 _ACEOF
1507 if ac_fn_c_try_compile "$LINENO"; then :
1508 eval "$3=yes"
1509 else
1510 eval "$3=no"
1511 fi
1512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1513 fi
1514 eval ac_res=\$$3
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518
1519 } # ac_fn_c_check_header_compile
1520 cat >config.log <<_ACEOF
1521 This file contains any messages produced by compilers while
1522 running configure, to aid debugging if configure makes a mistake.
1523
1524 It was created by Atheme IRC Services Contrib Modules $as_me 1.0, which was
1525 generated by GNU Autoconf 2.69. Invocation command line was
1526
1527 $ $0 $@
1528
1529 _ACEOF
1530 exec 5>>config.log
1531 {
1532 cat <<_ASUNAME
1533 ## --------- ##
1534 ## Platform. ##
1535 ## --------- ##
1536
1537 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1538 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1539 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1540 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1541 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1542
1543 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1544 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1545
1546 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1547 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1548 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1549 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1550 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1551 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1552 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1553
1554 _ASUNAME
1555
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 $as_echo "PATH: $as_dir"
1562 done
1563 IFS=$as_save_IFS
1564
1565 } >&5
1566
1567 cat >&5 <<_ACEOF
1568
1569
1570 ## ----------- ##
1571 ## Core tests. ##
1572 ## ----------- ##
1573
1574 _ACEOF
1575
1576
1577 # Keep a trace of the command line.
1578 # Strip out --no-create and --no-recursion so they do not pile up.
1579 # Strip out --silent because we don't want to record it for future runs.
1580 # Also quote any args containing shell meta-characters.
1581 # Make two passes to allow for proper duplicate-argument suppression.
1582 ac_configure_args=
1583 ac_configure_args0=
1584 ac_configure_args1=
1585 ac_must_keep_next=false
1586 for ac_pass in 1 2
1587 do
1588 for ac_arg
1589 do
1590 case $ac_arg in
1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1594 continue ;;
1595 *\'*)
1596 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1597 esac
1598 case $ac_pass in
1599 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1600 2)
1601 as_fn_append ac_configure_args1 " '$ac_arg'"
1602 if test $ac_must_keep_next = true; then
1603 ac_must_keep_next=false # Got value, back to normal.
1604 else
1605 case $ac_arg in
1606 *=* | --config-cache | -C | -disable-* | --disable-* \
1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609 | -with-* | --with-* | -without-* | --without-* | --x)
1610 case "$ac_configure_args0 " in
1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1612 esac
1613 ;;
1614 -* ) ac_must_keep_next=true ;;
1615 esac
1616 fi
1617 as_fn_append ac_configure_args " '$ac_arg'"
1618 ;;
1619 esac
1620 done
1621 done
1622 { ac_configure_args0=; unset ac_configure_args0;}
1623 { ac_configure_args1=; unset ac_configure_args1;}
1624
1625 # When interrupted or exit'd, cleanup temporary files, and complete
1626 # config.log. We remove comments because anyway the quotes in there
1627 # would cause problems or look ugly.
1628 # WARNING: Use '\'' to represent an apostrophe within the trap.
1629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1630 trap 'exit_status=$?
1631 # Save into config.log some information that might help in debugging.
1632 {
1633 echo
1634
1635 $as_echo "## ---------------- ##
1636 ## Cache variables. ##
1637 ## ---------------- ##"
1638 echo
1639 # The following way of writing the cache mishandles newlines in values,
1640 (
1641 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1642 eval ac_val=\$$ac_var
1643 case $ac_val in #(
1644 *${as_nl}*)
1645 case $ac_var in #(
1646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1648 esac
1649 case $ac_var in #(
1650 _ | IFS | as_nl) ;; #(
1651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1652 *) { eval $ac_var=; unset $ac_var;} ;;
1653 esac ;;
1654 esac
1655 done
1656 (set) 2>&1 |
1657 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1658 *${as_nl}ac_space=\ *)
1659 sed -n \
1660 "s/'\''/'\''\\\\'\'''\''/g;
1661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1662 ;; #(
1663 *)
1664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1665 ;;
1666 esac |
1667 sort
1668 )
1669 echo
1670
1671 $as_echo "## ----------------- ##
1672 ## Output variables. ##
1673 ## ----------------- ##"
1674 echo
1675 for ac_var in $ac_subst_vars
1676 do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 $as_echo "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1684
1685 if test -n "$ac_subst_files"; then
1686 $as_echo "## ------------------- ##
1687 ## File substitutions. ##
1688 ## ------------------- ##"
1689 echo
1690 for ac_var in $ac_subst_files
1691 do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in
1694 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 esac
1696 $as_echo "$ac_var='\''$ac_val'\''"
1697 done | sort
1698 echo
1699 fi
1700
1701 if test -s confdefs.h; then
1702 $as_echo "## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##"
1705 echo
1706 cat confdefs.h
1707 echo
1708 fi
1709 test "$ac_signal" != 0 &&
1710 $as_echo "$as_me: caught signal $ac_signal"
1711 $as_echo "$as_me: exit $exit_status"
1712 } >&5
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1715 exit $exit_status
1716 ' 0
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1719 done
1720 ac_signal=0
1721
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1724
1725 $as_echo "/* confdefs.h */" > confdefs.h
1726
1727 # Predefined preprocessor variables.
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_NAME "$PACKAGE_NAME"
1731 _ACEOF
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1739 _ACEOF
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_STRING "$PACKAGE_STRING"
1743 _ACEOF
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 _ACEOF
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_URL "$PACKAGE_URL"
1751 _ACEOF
1752
1753
1754 # Let the site file select an alternate cache file if it wants to.
1755 # Prefer an explicitly selected file to automatically selected ones.
1756 ac_site_file1=NONE
1757 ac_site_file2=NONE
1758 if test -n "$CONFIG_SITE"; then
1759 # We do not want a PATH search for config.site.
1760 case $CONFIG_SITE in #((
1761 -*) ac_site_file1=./$CONFIG_SITE;;
1762 */*) ac_site_file1=$CONFIG_SITE;;
1763 *) ac_site_file1=./$CONFIG_SITE;;
1764 esac
1765 elif test "x$prefix" != xNONE; then
1766 ac_site_file1=$prefix/share/config.site
1767 ac_site_file2=$prefix/etc/config.site
1768 else
1769 ac_site_file1=$ac_default_prefix/share/config.site
1770 ac_site_file2=$ac_default_prefix/etc/config.site
1771 fi
1772 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1773 do
1774 test "x$ac_site_file" = xNONE && continue
1775 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1777 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1779 . "$ac_site_file" \
1780 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1782 as_fn_error $? "failed to load site script $ac_site_file
1783 See \`config.log' for more details" "$LINENO" 5; }
1784 fi
1785 done
1786
1787 if test -r "$cache_file"; then
1788 # Some versions of bash will fail to source /dev/null (special files
1789 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1790 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1792 $as_echo "$as_me: loading cache $cache_file" >&6;}
1793 case $cache_file in
1794 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1795 *) . "./$cache_file";;
1796 esac
1797 fi
1798 else
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1800 $as_echo "$as_me: creating cache $cache_file" >&6;}
1801 >$cache_file
1802 fi
1803
1804 # Check that the precious variables saved in the cache have kept the same
1805 # value.
1806 ac_cache_corrupted=false
1807 for ac_var in $ac_precious_vars; do
1808 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1809 eval ac_new_set=\$ac_env_${ac_var}_set
1810 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1811 eval ac_new_val=\$ac_env_${ac_var}_value
1812 case $ac_old_set,$ac_new_set in
1813 set,)
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1815 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1817 ,set)
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1819 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1821 ,);;
1822 *)
1823 if test "x$ac_old_val" != "x$ac_new_val"; then
1824 # differences in whitespace do not lead to failure.
1825 ac_old_val_w=`echo x $ac_old_val`
1826 ac_new_val_w=`echo x $ac_new_val`
1827 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1829 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1830 ac_cache_corrupted=:
1831 else
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1833 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1834 eval $ac_var=\$ac_old_val
1835 fi
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1837 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1839 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1840 fi;;
1841 esac
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1844 case $ac_new_val in
1845 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 *) ac_arg=$ac_var=$ac_new_val ;;
1847 esac
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1850 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1851 esac
1852 fi
1853 done
1854 if $ac_cache_corrupted; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1858 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1859 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1860 fi
1861 ## -------------------- ##
1862 ## Main body of script. ##
1863 ## -------------------- ##
1864
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870
1871
1872
1873 ac_aux_dir=
1874 for ac_dir in build-aux "$srcdir"/build-aux; do
1875 if test -f "$ac_dir/install-sh"; then
1876 ac_aux_dir=$ac_dir
1877 ac_install_sh="$ac_aux_dir/install-sh -c"
1878 break
1879 elif test -f "$ac_dir/install.sh"; then
1880 ac_aux_dir=$ac_dir
1881 ac_install_sh="$ac_aux_dir/install.sh -c"
1882 break
1883 elif test -f "$ac_dir/shtool"; then
1884 ac_aux_dir=$ac_dir
1885 ac_install_sh="$ac_aux_dir/shtool install -c"
1886 break
1887 fi
1888 done
1889 if test -z "$ac_aux_dir"; then
1890 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1891 fi
1892
1893 # These three variables are undocumented and unsupported,
1894 # and are intended to be withdrawn in a future Autoconf release.
1895 # They can cause serious problems if a builder's source tree is in a directory
1896 # whose full name contains unusual characters.
1897 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1898 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1899 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900
1901
1902 ac_config_files="$ac_config_files buildsys.mk extra.mk"
1903
1904 ac_config_headers="$ac_config_headers src/contrib-sysconf.h"
1905
1906
1907
1908
1909 if test "x${prefix}" = "xNONE"; then :
1910 prefix="${ac_default_prefix}"
1911 fi
1912
1913 # Programs required by the build system
1914 ac_ext=c
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1923 $as_echo_n "checking for $ac_word... " >&6; }
1924 if ${ac_cv_prog_CC+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943 IFS=$as_save_IFS
1944
1945 fi
1946 fi
1947 CC=$ac_cv_prog_CC
1948 if test -n "$CC"; then
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1950 $as_echo "$CC" >&6; }
1951 else
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1953 $as_echo "no" >&6; }
1954 fi
1955
1956
1957 fi
1958 if test -z "$ac_cv_prog_CC"; then
1959 ac_ct_CC=$CC
1960 # Extract the first word of "gcc", so it can be a program name with args.
1961 set dummy gcc; ac_word=$2
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1963 $as_echo_n "checking for $ac_word... " >&6; }
1964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="gcc"
1978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1980 fi
1981 done
1982 done
1983 IFS=$as_save_IFS
1984
1985 fi
1986 fi
1987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988 if test -n "$ac_ct_CC"; then
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1990 $as_echo "$ac_ct_CC" >&6; }
1991 else
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1993 $as_echo "no" >&6; }
1994 fi
1995
1996 if test "x$ac_ct_CC" = x; then
1997 CC=""
1998 else
1999 case $cross_compiling:$ac_tool_warned in
2000 yes:)
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2003 ac_tool_warned=yes ;;
2004 esac
2005 CC=$ac_ct_CC
2006 fi
2007 else
2008 CC="$ac_cv_prog_CC"
2009 fi
2010
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if ${ac_cv_prog_CC+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2037
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2044 else
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2046 $as_echo "no" >&6; }
2047 fi
2048
2049
2050 fi
2051 fi
2052 if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054 set dummy cc; ac_word=$2
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2056 $as_echo_n "checking for $ac_word... " >&6; }
2057 if ${ac_cv_prog_CC+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 ac_prog_rejected=no
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072 ac_prog_rejected=yes
2073 continue
2074 fi
2075 ac_cv_prog_CC="cc"
2076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2078 fi
2079 done
2080 done
2081 IFS=$as_save_IFS
2082
2083 if test $ac_prog_rejected = yes; then
2084 # We found a bogon in the path, so make sure we never use it.
2085 set dummy $ac_cv_prog_CC
2086 shift
2087 if test $# != 0; then
2088 # We chose a different compiler from the bogus one.
2089 # However, it has the same basename, so the bogon will be chosen
2090 # first if we set CC to just the basename; use the full file name.
2091 shift
2092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2093 fi
2094 fi
2095 fi
2096 fi
2097 CC=$ac_cv_prog_CC
2098 if test -n "$CC"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2100 $as_echo "$CC" >&6; }
2101 else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2103 $as_echo "no" >&6; }
2104 fi
2105
2106
2107 fi
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 for ac_prog in cl.exe
2111 do
2112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if ${ac_cv_prog_CC+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2132 fi
2133 done
2134 done
2135 IFS=$as_save_IFS
2136
2137 fi
2138 fi
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2142 $as_echo "$CC" >&6; }
2143 else
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2145 $as_echo "no" >&6; }
2146 fi
2147
2148
2149 test -n "$CC" && break
2150 done
2151 fi
2152 if test -z "$CC"; then
2153 ac_ct_CC=$CC
2154 for ac_prog in cl.exe
2155 do
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2159 $as_echo_n "checking for $ac_word... " >&6; }
2160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 else
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_ac_ct_CC="$ac_prog"
2174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2176 fi
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 fi
2182 fi
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2186 $as_echo "$ac_ct_CC" >&6; }
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2189 $as_echo "no" >&6; }
2190 fi
2191
2192
2193 test -n "$ac_ct_CC" && break
2194 done
2195
2196 if test "x$ac_ct_CC" = x; then
2197 CC=""
2198 else
2199 case $cross_compiling:$ac_tool_warned in
2200 yes:)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2203 ac_tool_warned=yes ;;
2204 esac
2205 CC=$ac_ct_CC
2206 fi
2207 fi
2208
2209 fi
2210
2211
2212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details" "$LINENO" 5; }
2216
2217 # Provide some information about the compiler.
2218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2219 set X $ac_compile
2220 ac_compiler=$2
2221 for ac_option in --version -v -V -qversion; do
2222 { { ac_try="$ac_compiler $ac_option >&5"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2230 ac_status=$?
2231 if test -s conftest.err; then
2232 sed '10a\
2233 ... rest of stderr output deleted ...
2234 10q' conftest.err >conftest.er1
2235 cat conftest.er1 >&5
2236 fi
2237 rm -f conftest.er1 conftest.err
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; }
2240 done
2241
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244
2245 int
2246 main ()
2247 {
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 ac_clean_files_save=$ac_clean_files
2254 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2255 # Try to create an executable without -o first, disregard a.out.
2256 # It will help us diagnose broken compilers, and finding out an intuition
2257 # of exeext.
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2259 $as_echo_n "checking whether the C compiler works... " >&6; }
2260 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261
2262 # The possible output files:
2263 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2264
2265 ac_rmfiles=
2266 for ac_file in $ac_files
2267 do
2268 case $ac_file in
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2270 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2271 esac
2272 done
2273 rm -f $ac_rmfiles
2274
2275 if { { ac_try="$ac_link_default"
2276 case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link_default") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; then :
2286 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2288 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2289 # so that the user can short-circuit this test for compilers unknown to
2290 # Autoconf.
2291 for ac_file in $ac_files ''
2292 do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2296 ;;
2297 [ab].out )
2298 # We found the default executable, but exeext='' is most
2299 # certainly right.
2300 break;;
2301 *.* )
2302 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2303 then :; else
2304 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305 fi
2306 # We set ac_cv_exeext here because the later test for it is not
2307 # safe: cross compilers may not add the suffix if given an `-o'
2308 # argument, so we may need to know it at that point already.
2309 # Even if this section looks crufty: it has the advantage of
2310 # actually working.
2311 break;;
2312 * )
2313 break;;
2314 esac
2315 done
2316 test "$ac_cv_exeext" = no && ac_cv_exeext=
2317
2318 else
2319 ac_file=''
2320 fi
2321 if test -z "$ac_file"; then :
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error 77 "C compiler cannot create executables
2330 See \`config.log' for more details" "$LINENO" 5; }
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2333 $as_echo "yes" >&6; }
2334 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2336 $as_echo_n "checking for C compiler default output file name... " >&6; }
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2338 $as_echo "$ac_file" >&6; }
2339 ac_exeext=$ac_cv_exeext
2340
2341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2344 $as_echo_n "checking for suffix of executables... " >&6; }
2345 if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>&5
2353 ac_status=$?
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; }; then :
2356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe'), while it won't with
2359 # `rm'.
2360 for ac_file in conftest.exe conftest conftest.*; do
2361 test -f "$ac_file" || continue
2362 case $ac_file in
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365 break;;
2366 * ) break;;
2367 esac
2368 done
2369 else
2370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2373 See \`config.log' for more details" "$LINENO" 5; }
2374 fi
2375 rm -f conftest conftest$ac_cv_exeext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2377 $as_echo "$ac_cv_exeext" >&6; }
2378
2379 rm -f conftest.$ac_ext
2380 EXEEXT=$ac_cv_exeext
2381 ac_exeext=$EXEEXT
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2384 #include <stdio.h>
2385 int
2386 main ()
2387 {
2388 FILE *f = fopen ("conftest.out", "w");
2389 return ferror (f) || fclose (f) != 0;
2390
2391 ;
2392 return 0;
2393 }
2394 _ACEOF
2395 ac_clean_files="$ac_clean_files conftest.out"
2396 # Check that the compiler produces executables we can run. If not, either
2397 # the compiler is broken, or we cross compile.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2399 $as_echo_n "checking whether we are cross compiling... " >&6; }
2400 if test "$cross_compiling" != yes; then
2401 { { ac_try="$ac_link"
2402 case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_link") 2>&5
2409 ac_status=$?
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; }
2412 if { ac_try='./conftest$ac_cv_exeext'
2413 { { case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416 esac
2417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418 $as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_try") 2>&5
2420 ac_status=$?
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; }; }; then
2423 cross_compiling=no
2424 else
2425 if test "$cross_compiling" = maybe; then
2426 cross_compiling=yes
2427 else
2428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "cannot run C compiled programs.
2431 If you meant to cross compile, use \`--host'.
2432 See \`config.log' for more details" "$LINENO" 5; }
2433 fi
2434 fi
2435 fi
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2437 $as_echo "$cross_compiling" >&6; }
2438
2439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2440 ac_clean_files=$ac_clean_files_save
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2442 $as_echo_n "checking for suffix of object files... " >&6; }
2443 if ${ac_cv_objext+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2448
2449 int
2450 main ()
2451 {
2452
2453 ;
2454 return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.o conftest.obj
2458 if { { ac_try="$ac_compile"
2459 case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464 $as_echo "$ac_try_echo"; } >&5
2465 (eval "$ac_compile") 2>&5
2466 ac_status=$?
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; }; then :
2469 for ac_file in conftest.o conftest.obj conftest.*; do
2470 test -f "$ac_file" || continue;
2471 case $ac_file in
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2474 break;;
2475 esac
2476 done
2477 else
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details" "$LINENO" 5; }
2485 fi
2486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2489 $as_echo "$ac_cv_objext" >&6; }
2490 OBJEXT=$ac_cv_objext
2491 ac_objext=$OBJEXT
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2494 if ${ac_cv_c_compiler_gnu+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2499
2500 int
2501 main ()
2502 {
2503 #ifndef __GNUC__
2504 choke me
2505 #endif
2506
2507 ;
2508 return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512 ac_compiler_gnu=yes
2513 else
2514 ac_compiler_gnu=no
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2518
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2522 if test $ac_compiler_gnu = yes; then
2523 GCC=yes
2524 else
2525 GCC=
2526 fi
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2531 if ${ac_cv_prog_cc_g+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 ac_save_c_werror_flag=$ac_c_werror_flag
2535 ac_c_werror_flag=yes
2536 ac_cv_prog_cc_g=no
2537 CFLAGS="-g"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540
2541 int
2542 main ()
2543 {
2544
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 if ac_fn_c_try_compile "$LINENO"; then :
2550 ac_cv_prog_cc_g=yes
2551 else
2552 CFLAGS=""
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555
2556 int
2557 main ()
2558 {
2559
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565
2566 else
2567 ac_c_werror_flag=$ac_save_c_werror_flag
2568 CFLAGS="-g"
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571
2572 int
2573 main ()
2574 {
2575
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581 ac_cv_prog_cc_g=yes
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_c_werror_flag=$ac_save_c_werror_flag
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2591 $as_echo "$ac_cv_prog_cc_g" >&6; }
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2596 CFLAGS="-g -O2"
2597 else
2598 CFLAGS="-g"
2599 fi
2600 else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2605 fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2609 if ${ac_cv_prog_cc_c89+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 ac_cv_prog_cc_c89=no
2613 ac_save_CC=$CC
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 #include <stdarg.h>
2617 #include <stdio.h>
2618 struct stat;
2619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2620 struct buf { int x; };
2621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2622 static char *e (p, i)
2623 char **p;
2624 int i;
2625 {
2626 return p[i];
2627 }
2628 static char *f (char * (*g) (char **, int), char **p, ...)
2629 {
2630 char *s;
2631 va_list v;
2632 va_start (v,p);
2633 s = g (p, va_arg (v,int));
2634 va_end (v);
2635 return s;
2636 }
2637
2638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2639 function prototypes and stuff, but not '\xHH' hex character constants.
2640 These don't provoke an error unfortunately, instead are silently treated
2641 as 'x'. The following induces an error, until -std is added to get
2642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2643 array size at least. It's necessary to write '\x00'==0 to get something
2644 that's true only with -std. */
2645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2646
2647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2648 inside strings and character constants. */
2649 #define FOO(x) 'x'
2650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2651
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2656 int argc;
2657 char **argv;
2658 int
2659 main ()
2660 {
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 do
2669 CC="$ac_save_CC $ac_arg"
2670 if ac_fn_c_try_compile "$LINENO"; then :
2671 ac_cv_prog_cc_c89=$ac_arg
2672 fi
2673 rm -f core conftest.err conftest.$ac_objext
2674 test "x$ac_cv_prog_cc_c89" != "xno" && break
2675 done
2676 rm -f conftest.$ac_ext
2677 CC=$ac_save_CC
2678
2679 fi
2680 # AC_CACHE_VAL
2681 case "x$ac_cv_prog_cc_c89" in
2682 x)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2684 $as_echo "none needed" >&6; } ;;
2685 xno)
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2687 $as_echo "unsupported" >&6; } ;;
2688 *)
2689 CC="$CC $ac_cv_prog_cc_c89"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2692 esac
2693 if test "x$ac_cv_prog_cc_c89" != xno; then :
2694
2695 fi
2696
2697 ac_ext=c
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
2704 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
2705 if ${ac_cv_prog_cc_c99+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 ac_cv_prog_cc_c99=no
2709 ac_save_CC=$CC
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2712 #include <stdarg.h>
2713 #include <stdbool.h>
2714 #include <stdlib.h>
2715 #include <wchar.h>
2716 #include <stdio.h>
2717
2718 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2719 #define debug(...) fprintf (stderr, __VA_ARGS__)
2720 #define showlist(...) puts (#__VA_ARGS__)
2721 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2722 static void
2723 test_varargs_macros (void)
2724 {
2725 int x = 1234;
2726 int y = 5678;
2727 debug ("Flag");
2728 debug ("X = %d\n", x);
2729 showlist (The first, second, and third items.);
2730 report (x>y, "x is %d but y is %d", x, y);
2731 }
2732
2733 // Check long long types.
2734 #define BIG64 18446744073709551615ull
2735 #define BIG32 4294967295ul
2736 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2737 #if !BIG_OK
2738 your preprocessor is broken;
2739 #endif
2740 #if BIG_OK
2741 #else
2742 your preprocessor is broken;
2743 #endif
2744 static long long int bignum = -9223372036854775807LL;
2745 static unsigned long long int ubignum = BIG64;
2746
2747 struct incomplete_array
2748 {
2749 int datasize;
2750 double data[];
2751 };
2752
2753 struct named_init {
2754 int number;
2755 const wchar_t *name;
2756 double average;
2757 };
2758
2759 typedef const char *ccp;
2760
2761 static inline int
2762 test_restrict (ccp restrict text)
2763 {
2764 // See if C++-style comments work.
2765 // Iterate through items via the restricted pointer.
2766 // Also check for declarations in for loops.
2767 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2768 continue;
2769 return 0;
2770 }
2771
2772 // Check varargs and va_copy.
2773 static void
2774 test_varargs (const char *format, ...)
2775 {
2776 va_list args;
2777 va_start (args, format);
2778 va_list args_copy;
2779 va_copy (args_copy, args);
2780
2781 const char *str;
2782 int number;
2783 float fnumber;
2784
2785 while (*format)
2786 {
2787 switch (*format++)
2788 {
2789 case 's': // string
2790 str = va_arg (args_copy, const char *);
2791 break;
2792 case 'd': // int
2793 number = va_arg (args_copy, int);
2794 break;
2795 case 'f': // float
2796 fnumber = va_arg (args_copy, double);
2797 break;
2798 default:
2799 break;
2800 }
2801 }
2802 va_end (args_copy);
2803 va_end (args);
2804 }
2805
2806 int
2807 main ()
2808 {
2809
2810 // Check bool.
2811 _Bool success = false;
2812
2813 // Check restrict.
2814 if (test_restrict ("String literal") == 0)
2815 success = true;
2816 char *restrict newvar = "Another string";
2817
2818 // Check varargs.
2819 test_varargs ("s, d' f .", "string", 65, 34.234);
2820 test_varargs_macros ();
2821
2822 // Check flexible array members.
2823 struct incomplete_array *ia =
2824 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2825 ia->datasize = 10;
2826 for (int i = 0; i < ia->datasize; ++i)
2827 ia->data[i] = i * 1.234;
2828
2829 // Check named initializers.
2830 struct named_init ni = {
2831 .number = 34,
2832 .name = L"Test wide string",
2833 .average = 543.34343,
2834 };
2835
2836 ni.number = 58;
2837
2838 int dynamic_array[ni.number];
2839 dynamic_array[ni.number - 1] = 543;
2840
2841 // work around unused variable warnings
2842 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2843 || dynamic_array[ni.number - 1] != 543);
2844
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
2850 do
2851 CC="$ac_save_CC $ac_arg"
2852 if ac_fn_c_try_compile "$LINENO"; then :
2853 ac_cv_prog_cc_c99=$ac_arg
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext
2856 test "x$ac_cv_prog_cc_c99" != "xno" && break
2857 done
2858 rm -f conftest.$ac_ext
2859 CC=$ac_save_CC
2860
2861 fi
2862 # AC_CACHE_VAL
2863 case "x$ac_cv_prog_cc_c99" in
2864 x)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2866 $as_echo "none needed" >&6; } ;;
2867 xno)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2869 $as_echo "unsupported" >&6; } ;;
2870 *)
2871 CC="$CC $ac_cv_prog_cc_c99"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
2873 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
2874 esac
2875 if test "x$ac_cv_prog_cc_c99" != xno; then :
2876
2877 fi
2878
2879
2880 if test "x${ac_cv_prog_cc_c99}" = "xno"; then :
2881
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error $? "This program requires a C99 compiler
2885 See \`config.log' for more details" "$LINENO" 5; }
2886
2887 fi
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}ar; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AR+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$AR"; then
2897 ac_cv_prog_AR="$AR" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AR="${ac_tool_prefix}ar"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 AR=$ac_cv_prog_AR
2917 if test -n "$AR"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2919 $as_echo "$AR" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 if test -z "$ac_cv_prog_AR"; then
2928 ac_ct_AR=$AR
2929 # Extract the first word of "ar", so it can be a program name with args.
2930 set dummy ar; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_AR"; then
2937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_AR="ar"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2957 if test -n "$ac_ct_AR"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2959 $as_echo "$ac_ct_AR" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965 if test "x$ac_ct_AR" = x; then
2966 AR=""
2967 else
2968 case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974 AR=$ac_ct_AR
2975 fi
2976 else
2977 AR="$ac_cv_prog_AR"
2978 fi
2979
2980 # Extract the first word of "cp", so it can be a program name with args.
2981 set dummy cp; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_path_CP+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 case $CP in
2988 [\\/]* | ?:[\\/]*)
2989 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2990 ;;
2991 *)
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 ;;
3008 esac
3009 fi
3010 CP=$ac_cv_path_CP
3011 if test -n "$CP"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3013 $as_echo "$CP" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 # Find a good install program. We prefer a C program (faster),
3021 # so one script is as good as another. But avoid the broken or
3022 # incompatible versions:
3023 # SysV /etc/install, /usr/sbin/install
3024 # SunOS /usr/etc/install
3025 # IRIX /sbin/install
3026 # AIX /bin/install
3027 # AmigaOS /C/install, which installs bootblocks on floppy discs
3028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3031 # OS/2's system install, which has a completely different semantic
3032 # ./install, which can be erroneously created by make from ./install.sh.
3033 # Reject install programs that cannot install multiple files.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3035 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3036 if test -z "$INSTALL"; then
3037 if ${ac_cv_path_install+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 # Account for people who put trailing slashes in PATH elements.
3046 case $as_dir/ in #((
3047 ./ | .// | /[cC]/* | \
3048 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3049 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3050 /usr/ucb/* ) ;;
3051 *)
3052 # OSF1 and SCO ODT 3.0 have their own names for install.
3053 # Don't use installbsd from OSF since it installs stuff as root
3054 # by default.
3055 for ac_prog in ginstall scoinst install; do
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3058 if test $ac_prog = install &&
3059 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # AIX install. It has an incompatible calling convention.
3061 :
3062 elif test $ac_prog = install &&
3063 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3064 # program-specific install script used by HP pwplus--don't use.
3065 :
3066 else
3067 rm -rf conftest.one conftest.two conftest.dir
3068 echo one > conftest.one
3069 echo two > conftest.two
3070 mkdir conftest.dir
3071 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3072 test -s conftest.one && test -s conftest.two &&
3073 test -s conftest.dir/conftest.one &&
3074 test -s conftest.dir/conftest.two
3075 then
3076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3077 break 3
3078 fi
3079 fi
3080 fi
3081 done
3082 done
3083 ;;
3084 esac
3085
3086 done
3087 IFS=$as_save_IFS
3088
3089 rm -rf conftest.one conftest.two conftest.dir
3090
3091 fi
3092 if test "${ac_cv_path_install+set}" = set; then
3093 INSTALL=$ac_cv_path_install
3094 else
3095 # As a last resort, use the slow shell script. Don't cache a
3096 # value for INSTALL within a source directory, because that will
3097 # break other packages using the cache if that directory is
3098 # removed, or if the value is a relative name.
3099 INSTALL=$ac_install_sh
3100 fi
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3103 $as_echo "$INSTALL" >&6; }
3104
3105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3106 # It thinks the first close brace ends the variable substitution.
3107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3108
3109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3110
3111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3112
3113 # Extract the first word of "ln", so it can be a program name with args.
3114 set dummy ln; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_path_LN+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 case $LN in
3121 [\\/]* | ?:[\\/]*)
3122 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3123 ;;
3124 *)
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 ;;
3141 esac
3142 fi
3143 LN=$ac_cv_path_LN
3144 if test -n "$LN"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3146 $as_echo "$LN" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3154 $as_echo_n "checking whether ln -s works... " >&6; }
3155 LN_S=$as_ln_s
3156 if test "$LN_S" = "ln -s"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3161 $as_echo "no, using $LN_S" >&6; }
3162 fi
3163
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3165 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3166 set x ${MAKE-make}
3167 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3168 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 cat >conftest.make <<\_ACEOF
3172 SHELL = /bin/sh
3173 all:
3174 @echo '@@@%%%=$(MAKE)=@@@%%%'
3175 _ACEOF
3176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3177 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3178 *@@@%%%=?*=@@@%%%*)
3179 eval ac_cv_prog_make_${ac_make}_set=yes;;
3180 *)
3181 eval ac_cv_prog_make_${ac_make}_set=no;;
3182 esac
3183 rm -f conftest.make
3184 fi
3185 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3188 SET_MAKE=
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 SET_MAKE="MAKE=${MAKE-make}"
3193 fi
3194
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3196 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3197 if test -z "$MKDIR_P"; then
3198 if ${ac_cv_path_mkdir+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_prog in mkdir gmkdir; do
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3209 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3210 'mkdir (GNU coreutils) '* | \
3211 'mkdir (coreutils) '* | \
3212 'mkdir (fileutils) '4.1*)
3213 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3214 break 3;;
3215 esac
3216 done
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222
3223 test -d ./--version && rmdir ./--version
3224 if test "${ac_cv_path_mkdir+set}" = set; then
3225 MKDIR_P="$ac_cv_path_mkdir -p"
3226 else
3227 # As a last resort, use the slow shell script. Don't cache a
3228 # value for MKDIR_P within a source directory, because that will
3229 # break other packages using the cache if that directory is
3230 # removed, or if the value is a relative name.
3231 MKDIR_P="$ac_install_sh -d"
3232 fi
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3235 $as_echo "$MKDIR_P" >&6; }
3236
3237 # Extract the first word of "mv", so it can be a program name with args.
3238 set dummy mv; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_path_MV+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 case $MV in
3245 [\\/]* | ?:[\\/]*)
3246 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3247 ;;
3248 *)
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260 done
3261 done
3262 IFS=$as_save_IFS
3263
3264 ;;
3265 esac
3266 fi
3267 MV=$ac_cv_path_MV
3268 if test -n "$MV"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3270 $as_echo "$MV" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_RANLIB+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$RANLIB"; then
3286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 RANLIB=$ac_cv_prog_RANLIB
3306 if test -n "$RANLIB"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3308 $as_echo "$RANLIB" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$ac_cv_prog_RANLIB"; then
3317 ac_ct_RANLIB=$RANLIB
3318 # Extract the first word of "ranlib", so it can be a program name with args.
3319 set dummy ranlib; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$ac_ct_RANLIB"; then
3326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_RANLIB="ranlib"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3346 if test -n "$ac_ct_RANLIB"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3348 $as_echo "$ac_ct_RANLIB" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354 if test "x$ac_ct_RANLIB" = x; then
3355 RANLIB=":"
3356 else
3357 case $cross_compiling:$ac_tool_warned in
3358 yes:)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363 RANLIB=$ac_ct_RANLIB
3364 fi
3365 else
3366 RANLIB="$ac_cv_prog_RANLIB"
3367 fi
3368
3369 # Extract the first word of "rm", so it can be a program name with args.
3370 set dummy rm; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_path_RM+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 case $RM in
3377 [\\/]* | ?:[\\/]*)
3378 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3379 ;;
3380 *)
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 ;;
3397 esac
3398 fi
3399 RM=$ac_cv_path_RM
3400 if test -n "$RM"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3402 $as_echo "$RM" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 # Extract the first word of "tar", so it can be a program name with args.
3410 set dummy tar; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_path_TAR+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 case $TAR in
3417 [\\/]* | ?:[\\/]*)
3418 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3419 ;;
3420 *)
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 ;;
3437 esac
3438 fi
3439 TAR=$ac_cv_path_TAR
3440 if test -n "$TAR"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3442 $as_echo "$TAR" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449
3450 # Does what its name implies. The above block can't be put into this function
3451 # because of autotools black magic voodoo crap that no-one understands ...
3452 # Make sure we can run config.sub.
3453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3454 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3457 $as_echo_n "checking build system type... " >&6; }
3458 if ${ac_cv_build+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 ac_build_alias=$build_alias
3462 test "x$ac_build_alias" = x &&
3463 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3464 test "x$ac_build_alias" = x &&
3465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3466 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3471 $as_echo "$ac_cv_build" >&6; }
3472 case $ac_cv_build in
3473 *-*-*) ;;
3474 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3475 esac
3476 build=$ac_cv_build
3477 ac_save_IFS=$IFS; IFS='-'
3478 set x $ac_cv_build
3479 shift
3480 build_cpu=$1
3481 build_vendor=$2
3482 shift; shift
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3485 build_os=$*
3486 IFS=$ac_save_IFS
3487 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3488
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3491 $as_echo_n "checking host system type... " >&6; }
3492 if ${ac_cv_host+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test "x$host_alias" = x; then
3496 ac_cv_host=$ac_cv_build
3497 else
3498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3500 fi
3501
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3504 $as_echo "$ac_cv_host" >&6; }
3505 case $ac_cv_host in
3506 *-*-*) ;;
3507 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3508 esac
3509 host=$ac_cv_host
3510 ac_save_IFS=$IFS; IFS='-'
3511 set x $ac_cv_host
3512 shift
3513 host_cpu=$1
3514 host_vendor=$2
3515 shift; shift
3516 # Remember, the first character of IFS is used to create $*,
3517 # except with old shells:
3518 host_os=$*
3519 IFS=$ac_save_IFS
3520 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3521
3522
3523
3524
3525 # Initialise our build system
3526
3527 # Extract the first word of "tput", so it can be a program name with args.
3528 set dummy tput; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_path_TPUT+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 case $TPUT in
3535 [\\/]* | ?:[\\/]*)
3536 ac_cv_path_TPUT="$TPUT" # Let the user override the test with a path.
3537 ;;
3538 *)
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_path_TPUT="$as_dir/$ac_word$ac_exec_ext"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 ;;
3555 esac
3556 fi
3557 TPUT=$ac_cv_path_TPUT
3558 if test -n "$TPUT"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
3560 $as_echo "$TPUT" >&6; }
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567
3568 if test x"$TPUT" != x""; then :
3569
3570 if x=$($TPUT el 2>/dev/null); then
3571 TERM_EL="$x"
3572
3573 else
3574 TERM_EL="$($TPUT ce 2>/dev/null)"
3575
3576 fi
3577
3578 if x=$($TPUT sgr0 2>/dev/null); then
3579 TERM_SGR0="$x"
3580
3581 else
3582 TERM_SGR0="$($TPUT me 2>/dev/null)"
3583
3584 fi
3585
3586 if x=$($TPUT bold 2>/dev/null); then
3587 TERM_BOLD="$x"
3588
3589 else
3590 TERM_BOLD="$($TPUT md 2>/dev/null)"
3591
3592 fi
3593
3594 if x=$($TPUT setaf 1 2>/dev/null); then
3595 TERM_SETAF1="$x"
3596
3597 TERM_SETAF2="$($TPUT setaf 2 2>/dev/null)"
3598
3599 TERM_SETAF3="$($TPUT setaf 3 2>/dev/null)"
3600
3601 TERM_SETAF4="$($TPUT setaf 4 2>/dev/null)"
3602
3603 TERM_SETAF6="$($TPUT setaf 6 2>/dev/null)"
3604
3605 else
3606 TERM_SETAF1="$($TPUT AF 1 2>/dev/null)"
3607
3608 TERM_SETAF2="$($TPUT AF 2 2>/dev/null)"
3609
3610 TERM_SETAF3="$($TPUT AF 3 2>/dev/null)"
3611
3612 TERM_SETAF4="$($TPUT AF 4 2>/dev/null)"
3613
3614 TERM_SETAF6="$($TPUT AF 6 2>/dev/null)"
3615
3616 fi
3617
3618 else
3619
3620 TERM_EL='\033\133K'
3621
3622 TERM_SGR0='\033\133m'
3623
3624 TERM_BOLD='\033\1331m'
3625
3626 TERM_SETAF1='\033\13331m'
3627
3628 TERM_SETAF2='\033\13332m'
3629
3630 TERM_SETAF3='\033\13333m'
3631
3632 TERM_SETAF4='\033\13334m'
3633
3634 TERM_SETAF6='\033\13336m'
3635
3636
3637 fi
3638
3639
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
3642 $as_echo_n "checking for shared library system... " >&6; }
3643 case "$host_os" in
3644 darwin*)
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3646 $as_echo "Darwin" >&6; }
3647 LIB_CFLAGS='-fPIC -DPIC'
3648 LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name @rpath/${SHARED_LIB}'
3649 LIB_PREFIX='lib'
3650 LIB_SUFFIX='.dylib'
3651 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3652 PLUGIN_CFLAGS='-fPIC -DPIC'
3653 PLUGIN_LDFLAGS='-shared -undefined dynamic_lookup'
3654 PLUGIN_SUFFIX='.so'
3655 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
3656 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
3657 CLEAN_LIB=''
3658 ;;
3659 solaris*)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3661 $as_echo "Solaris" >&6; }
3662 LIB_CFLAGS='-fPIC -DPIC'
3663 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
3664 LIB_PREFIX='lib'
3665 LIB_SUFFIX='.so'
3666 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3667 PLUGIN_CFLAGS='-fPIC -DPIC'
3668 PLUGIN_LDFLAGS='-shared'
3669 PLUGIN_SUFFIX='.so'
3670 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
3671 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
3672 CLEAN_LIB=''
3673 ;;
3674 openbsd* | mirbsd*)
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
3676 $as_echo "OpenBSD" >&6; }
3677 LIB_CFLAGS='-fPIC -DPIC'
3678 LIB_LDFLAGS='-shared'
3679 LIB_PREFIX='lib'
3680 LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
3681 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3682 PLUGIN_CFLAGS='-fPIC -DPIC'
3683 PLUGIN_LDFLAGS='-shared'
3684 PLUGIN_SUFFIX='.so'
3685 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
3686 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i'
3687 CLEAN_LIB=''
3688 ;;
3689 cygwin* | mingw*)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
3691 $as_echo "Win32" >&6; }
3692 LIB_CFLAGS=''
3693 LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
3694 LIB_PREFIX='lib'
3695 LIB_SUFFIX='.dll'
3696 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3697 PLUGIN_CFLAGS=''
3698 PLUGIN_LDFLAGS='-shared'
3699 PLUGIN_SUFFIX='.dll'
3700 INSTALL_LIB='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
3701 UNINSTALL_LIB='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
3702 CLEAN_LIB='${SHARED_LIB}.a'
3703 ;;
3704 *)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
3706 $as_echo "GNU" >&6; }
3707 LIB_CFLAGS='-fPIC -DPIC'
3708 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
3709 LIB_PREFIX='lib'
3710 LIB_SUFFIX='.so'
3711 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3712 PLUGIN_CFLAGS='-fPIC -DPIC'
3713 PLUGIN_LDFLAGS='-shared'
3714 PLUGIN_SUFFIX='.so'
3715 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
3716 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
3717 CLEAN_LIB=''
3718 ;;
3719 esac
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
3736 $as_echo_n "checking whether we need an implib... " >&6; }
3737 case "$host_os" in
3738 cygwin* | mingw*)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3741 PROG_IMPLIB_NEEDED='yes'
3742 PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
3743 ;;
3744 *)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 PROG_IMPLIB_NEEDED='no'
3748 PROG_IMPLIB_LDFLAGS=''
3749 ;;
3750 esac
3751
3752
3753
3754
3755
3756
3757 # Automake compatibility. --nenolod
3758 PACKAGE=atheme-contrib-modules
3759
3760 VERSION=1.0
3761
3762
3763 cat >>confdefs.h <<_ACEOF
3764 #define PACKAGE "${PACKAGE}"
3765 _ACEOF
3766
3767
3768 cat >>confdefs.h <<_ACEOF
3769 #define VERSION "${VERSION}"
3770 _ACEOF
3771
3772
3773 # This should be before any library tests so that insufficient header
3774 # inclusions in those tests are caught before they become a runtime
3775 # problem
3776
3777
3778
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag(s) -Werror=implicit " >&5
3780 $as_echo_n "checking for C compiler flag(s) -Werror=implicit ... " >&6; }
3781
3782 CFLAGS_SAVED="${CFLAGS:-}"
3783 CFLAGS="${CFLAGS:-}${CFLAGS:+ }-Werror=implicit"
3784
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788
3789 #ifdef HAVE_STDDEF_H
3790 # include <stddef.h>
3791 #endif
3792 static int
3793 return_zero(void)
3794 {
3795 return 0;
3796 }
3797
3798 int
3799 main ()
3800 {
3801
3802 int zero = return_zero();
3803
3804 ;
3805 return 0;
3806 }
3807
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 ATHEME_CONTRIB_TEST_CC_FLAGS_RESULT="yes"
3814
3815 else
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 ATHEME_CONTRIB_TEST_CC_FLAGS_RESULT="no"
3820 CFLAGS="${CFLAGS_SAVED}"
3821
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824
3825 unset CFLAGS_SAVED
3826
3827
3828 # Some modules use platform-specific functionality and thus need checks that
3829 # the functionality is available
3830
3831
3832 LIBS_SAVED="${LIBS}"
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3835 $as_echo_n "checking for library containing gethostbyname... " >&6; }
3836 if ${ac_cv_search_gethostbyname+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_func_search_save_LIBS=$LIBS
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 /* Override any GCC internal prototype to avoid an error.
3844 Use char because int might match the return type of a GCC
3845 builtin and then its argument prototype would still apply. */
3846 #ifdef __cplusplus
3847 extern "C"
3848 #endif
3849 char gethostbyname ();
3850 int
3851 main ()
3852 {
3853 return gethostbyname ();
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 for ac_lib in '' nsl; do
3859 if test -z "$ac_lib"; then
3860 ac_res="none required"
3861 else
3862 ac_res=-l$ac_lib
3863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3864 fi
3865 if ac_fn_c_try_link "$LINENO"; then :
3866 ac_cv_search_gethostbyname=$ac_res
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext \
3869 conftest$ac_exeext
3870 if ${ac_cv_search_gethostbyname+:} false; then :
3871 break
3872 fi
3873 done
3874 if ${ac_cv_search_gethostbyname+:} false; then :
3875
3876 else
3877 ac_cv_search_gethostbyname=no
3878 fi
3879 rm conftest.$ac_ext
3880 LIBS=$ac_func_search_save_LIBS
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3883 $as_echo "$ac_cv_search_gethostbyname" >&6; }
3884 ac_res=$ac_cv_search_gethostbyname
3885 if test "$ac_res" != no; then :
3886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3887
3888
3889 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
3890 do :
3891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
3893 # include <sys/types.h>
3894 #endif
3895 #ifdef HAVE_NETINET_IN_H
3896 # include <netinet/in.h> /* inet_ functions / structs */
3897 #endif
3898 #ifdef HAVE_ARPA_NAMESER_H
3899 # include <arpa/nameser.h> /* DNS HEADER struct */
3900 #endif
3901 #ifdef HAVE_NETDB_H
3902 # include <netdb.h>
3903 #endif
3904 "
3905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3906 cat >>confdefs.h <<_ACEOF
3907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 _ACEOF
3909
3910 fi
3911
3912 done
3913
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking a program using res_query(3) works" >&5
3916 $as_echo_n "checking whether compiling and linking a program using res_query(3) works... " >&6; }
3917
3918
3919
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923
3924 #ifdef HAVE_STDDEF_H
3925 # include <stddef.h>
3926 #endif
3927 #ifdef HAVE_SYS_TYPES_H
3928 # include <sys/types.h>
3929 #endif
3930 #ifdef HAVE_NETINET_IN_H
3931 # include <netinet/in.h>
3932 #endif
3933 #ifdef HAVE_ARPA_NAMESER_H
3934 # include <arpa/nameser.h>
3935 #endif
3936 #ifdef HAVE_NETDB_H
3937 # include <netdb.h>
3938 #endif
3939 #ifdef HAVE_RESOLV_H
3940 # include <resolv.h>
3941 #endif
3942 #ifndef C_ANY
3943 # define C_ANY ns_c_any
3944 #endif
3945 #ifndef T_MX
3946 # define T_MX ns_t_mx
3947 #endif
3948 #ifndef S_AN
3949 # define S_AN ns_s_an
3950 #endif
3951
3952 int
3953 main ()
3954 {
3955
3956 ns_msg amsg;
3957 const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
3958 (void) ns_initparse(NULL, ret, &amsg);
3959 const int cnt = ns_msg_count(amsg, S_AN);
3960
3961 ;
3962 return 0;
3963 }
3964
3965 _ACEOF
3966 if ac_fn_c_try_link "$LINENO"; then :
3967
3968 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="yes"
3969
3970 else
3971
3972 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="no"
3973
3974 fi
3975 rm -f core conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3977
3978 if test "${ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT}" = "yes"; then :
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3982
3983
3984
3985 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
3986
3987
3988
3989 else
3990
3991 LIBS="-lresolv ${LIBS}"
3992
3993
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997
3998 #ifdef HAVE_STDDEF_H
3999 # include <stddef.h>
4000 #endif
4001 #ifdef HAVE_SYS_TYPES_H
4002 # include <sys/types.h>
4003 #endif
4004 #ifdef HAVE_NETINET_IN_H
4005 # include <netinet/in.h>
4006 #endif
4007 #ifdef HAVE_ARPA_NAMESER_H
4008 # include <arpa/nameser.h>
4009 #endif
4010 #ifdef HAVE_NETDB_H
4011 # include <netdb.h>
4012 #endif
4013 #ifdef HAVE_RESOLV_H
4014 # include <resolv.h>
4015 #endif
4016 #ifndef C_ANY
4017 # define C_ANY ns_c_any
4018 #endif
4019 #ifndef T_MX
4020 # define T_MX ns_t_mx
4021 #endif
4022 #ifndef S_AN
4023 # define S_AN ns_s_an
4024 #endif
4025
4026 int
4027 main ()
4028 {
4029
4030 ns_msg amsg;
4031 const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
4032 (void) ns_initparse(NULL, ret, &amsg);
4033 const int cnt = ns_msg_count(amsg, S_AN);
4034
4035 ;
4036 return 0;
4037 }
4038
4039 _ACEOF
4040 if ac_fn_c_try_link "$LINENO"; then :
4041
4042 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="yes"
4043
4044 else
4045
4046 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="no"
4047
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext \
4050 conftest$ac_exeext conftest.$ac_ext
4051
4052 if test "${ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT}" = "yes"; then :
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4056
4057
4058
4059 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
4060
4061
4062
4063 else
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&5
4070 $as_echo "$as_me: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&2;}
4071
4072 LIBS="${LIBS_SAVED}"
4073
4074 fi
4075
4076 fi
4077
4078 else
4079
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&5
4083 $as_echo "$as_me: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&2;}
4084
4085
4086 fi
4087
4088
4089 unset LIBS_SAVED
4090
4091
4092
4093
4094 cat >confcache <<\_ACEOF
4095 # This file is a shell script that caches the results of configure
4096 # tests run on this system so they can be shared between configure
4097 # scripts and configure runs, see configure's option --config-cache.
4098 # It is not useful on other systems. If it contains results you don't
4099 # want to keep, you may remove or edit it.
4100 #
4101 # config.status only pays attention to the cache file if you give it
4102 # the --recheck option to rerun configure.
4103 #
4104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4106 # following values.
4107
4108 _ACEOF
4109
4110 # The following way of writing the cache mishandles newlines in values,
4111 # but we know of no workaround that is simple, portable, and efficient.
4112 # So, we kill variables containing newlines.
4113 # Ultrix sh set writes to stderr and can't be redirected directly,
4114 # and sets the high bit in the cache file unless we assign to the vars.
4115 (
4116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4117 eval ac_val=\$$ac_var
4118 case $ac_val in #(
4119 *${as_nl}*)
4120 case $ac_var in #(
4121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4123 esac
4124 case $ac_var in #(
4125 _ | IFS | as_nl) ;; #(
4126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4127 *) { eval $ac_var=; unset $ac_var;} ;;
4128 esac ;;
4129 esac
4130 done
4131
4132 (set) 2>&1 |
4133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4134 *${as_nl}ac_space=\ *)
4135 # `set' does not quote correctly, so add quotes: double-quote
4136 # substitution turns \\\\ into \\, and sed turns \\ into \.
4137 sed -n \
4138 "s/'/'\\\\''/g;
4139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4140 ;; #(
4141 *)
4142 # `set' quotes correctly as required by POSIX, so do not add quotes.
4143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4144 ;;
4145 esac |
4146 sort
4147 ) |
4148 sed '
4149 /^ac_cv_env_/b end
4150 t clear
4151 :clear
4152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4153 t end
4154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4155 :end' >>confcache
4156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4157 if test -w "$cache_file"; then
4158 if test "x$cache_file" != "x/dev/null"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4160 $as_echo "$as_me: updating cache $cache_file" >&6;}
4161 if test ! -f "$cache_file" || test -h "$cache_file"; then
4162 cat confcache >"$cache_file"
4163 else
4164 case $cache_file in #(
4165 */* | ?:*)
4166 mv -f confcache "$cache_file"$$ &&
4167 mv -f "$cache_file"$$ "$cache_file" ;; #(
4168 *)
4169 mv -f confcache "$cache_file" ;;
4170 esac
4171 fi
4172 fi
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4176 fi
4177 fi
4178 rm -f confcache
4179
4180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4181 # Let make expand exec_prefix.
4182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4183
4184 DEFS=-DHAVE_CONFIG_H
4185
4186 ac_libobjs=
4187 ac_ltlibobjs=
4188 U=
4189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4190 # 1. Remove the extension, and $U if already installed.
4191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4192 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4194 # will be set to the directory where LIBOBJS objects are built.
4195 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4196 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4197 done
4198 LIBOBJS=$ac_libobjs
4199
4200 LTLIBOBJS=$ac_ltlibobjs
4201
4202
4203
4204 : "${CONFIG_STATUS=./config.status}"
4205 ac_write_fail=0
4206 ac_clean_files_save=$ac_clean_files
4207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4209 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4210 as_write_fail=0
4211 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4212 #! $SHELL
4213 # Generated by $as_me.
4214 # Run this file to recreate the current configuration.
4215 # Compiler output produced by configure, useful for debugging
4216 # configure, is in config.log if it exists.
4217
4218 debug=false
4219 ac_cs_recheck=false
4220 ac_cs_silent=false
4221
4222 SHELL=\${CONFIG_SHELL-$SHELL}
4223 export SHELL
4224 _ASEOF
4225 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4226 ## -------------------- ##
4227 ## M4sh Initialization. ##
4228 ## -------------------- ##
4229
4230 # Be more Bourne compatible
4231 DUALCASE=1; export DUALCASE # for MKS sh
4232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4233 emulate sh
4234 NULLCMD=:
4235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4236 # is contrary to our usage. Disable this feature.
4237 alias -g '${1+"$@"}'='"$@"'
4238 setopt NO_GLOB_SUBST
4239 else
4240 case `(set -o) 2>/dev/null` in #(
4241 *posix*) :
4242 set -o posix ;; #(
4243 *) :
4244 ;;
4245 esac
4246 fi
4247
4248
4249 as_nl='
4250 '
4251 export as_nl
4252 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4253 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4256 # Prefer a ksh shell builtin over an external printf program on Solaris,
4257 # but without wasting forks for bash or zsh.
4258 if test -z "$BASH_VERSION$ZSH_VERSION" \
4259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4260 as_echo='print -r --'
4261 as_echo_n='print -rn --'
4262 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4263 as_echo='printf %s\n'
4264 as_echo_n='printf %s'
4265 else
4266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4267 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4268 as_echo_n='/usr/ucb/echo -n'
4269 else
4270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4271 as_echo_n_body='eval
4272 arg=$1;
4273 case $arg in #(
4274 *"$as_nl"*)
4275 expr "X$arg" : "X\\(.*\\)$as_nl";
4276 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4277 esac;
4278 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4279 '
4280 export as_echo_n_body
4281 as_echo_n='sh -c $as_echo_n_body as_echo'
4282 fi
4283 export as_echo_body
4284 as_echo='sh -c $as_echo_body as_echo'
4285 fi
4286
4287 # The user is always right.
4288 if test "${PATH_SEPARATOR+set}" != set; then
4289 PATH_SEPARATOR=:
4290 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4291 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4292 PATH_SEPARATOR=';'
4293 }
4294 fi
4295
4296
4297 # IFS
4298 # We need space, tab and new line, in precisely that order. Quoting is
4299 # there to prevent editors from complaining about space-tab.
4300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4301 # splitting by setting IFS to empty value.)
4302 IFS=" "" $as_nl"
4303
4304 # Find who we are. Look in the path if we contain no directory separator.
4305 as_myself=
4306 case $0 in #((
4307 *[\\/]* ) as_myself=$0 ;;
4308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4314 done
4315 IFS=$as_save_IFS
4316
4317 ;;
4318 esac
4319 # We did not find ourselves, most probably we were run as `sh COMMAND'
4320 # in which case we are not to be found in the path.
4321 if test "x$as_myself" = x; then
4322 as_myself=$0
4323 fi
4324 if test ! -f "$as_myself"; then
4325 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4326 exit 1
4327 fi
4328
4329 # Unset variables that we do not need and which cause bugs (e.g. in
4330 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4331 # suppresses any "Segmentation fault" message there. '((' could
4332 # trigger a bug in pdksh 5.2.14.
4333 for as_var in BASH_ENV ENV MAIL MAILPATH
4334 do eval test x\${$as_var+set} = xset \
4335 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4336 done
4337 PS1='$ '
4338 PS2='> '
4339 PS4='+ '
4340
4341 # NLS nuisances.
4342 LC_ALL=C
4343 export LC_ALL
4344 LANGUAGE=C
4345 export LANGUAGE
4346
4347 # CDPATH.
4348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4349
4350
4351 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4352 # ----------------------------------------
4353 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4354 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4355 # script with STATUS, using 1 if that was 0.
4356 as_fn_error ()
4357 {
4358 as_status=$1; test $as_status -eq 0 && as_status=1
4359 if test "$4"; then
4360 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4361 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4362 fi
4363 $as_echo "$as_me: error: $2" >&2
4364 as_fn_exit $as_status
4365 } # as_fn_error
4366
4367
4368 # as_fn_set_status STATUS
4369 # -----------------------
4370 # Set $? to STATUS, without forking.
4371 as_fn_set_status ()
4372 {
4373 return $1
4374 } # as_fn_set_status
4375
4376 # as_fn_exit STATUS
4377 # -----------------
4378 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4379 as_fn_exit ()
4380 {
4381 set +e
4382 as_fn_set_status $1
4383 exit $1
4384 } # as_fn_exit
4385
4386 # as_fn_unset VAR
4387 # ---------------
4388 # Portably unset VAR.
4389 as_fn_unset ()
4390 {
4391 { eval $1=; unset $1;}
4392 }
4393 as_unset=as_fn_unset
4394 # as_fn_append VAR VALUE
4395 # ----------------------
4396 # Append the text in VALUE to the end of the definition contained in VAR. Take
4397 # advantage of any shell optimizations that allow amortized linear growth over
4398 # repeated appends, instead of the typical quadratic growth present in naive
4399 # implementations.
4400 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4401 eval 'as_fn_append ()
4402 {
4403 eval $1+=\$2
4404 }'
4405 else
4406 as_fn_append ()
4407 {
4408 eval $1=\$$1\$2
4409 }
4410 fi # as_fn_append
4411
4412 # as_fn_arith ARG...
4413 # ------------------
4414 # Perform arithmetic evaluation on the ARGs, and store the result in the
4415 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4416 # must be portable across $(()) and expr.
4417 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4418 eval 'as_fn_arith ()
4419 {
4420 as_val=$(( $* ))
4421 }'
4422 else
4423 as_fn_arith ()
4424 {
4425 as_val=`expr "$@" || test $? -eq 1`
4426 }
4427 fi # as_fn_arith
4428
4429
4430 if expr a : '\(a\)' >/dev/null 2>&1 &&
4431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4432 as_expr=expr
4433 else
4434 as_expr=false
4435 fi
4436
4437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4438 as_basename=basename
4439 else
4440 as_basename=false
4441 fi
4442
4443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4444 as_dirname=dirname
4445 else
4446 as_dirname=false
4447 fi
4448
4449 as_me=`$as_basename -- "$0" ||
4450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4451 X"$0" : 'X\(//\)$' \| \
4452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4453 $as_echo X/"$0" |
4454 sed '/^.*\/\([^/][^/]*\)\/*$/{
4455 s//\1/
4456 q
4457 }
4458 /^X\/\(\/\/\)$/{
4459 s//\1/
4460 q
4461 }
4462 /^X\/\(\/\).*/{
4463 s//\1/
4464 q
4465 }
4466 s/.*/./; q'`
4467
4468 # Avoid depending upon Character Ranges.
4469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4472 as_cr_digits='0123456789'
4473 as_cr_alnum=$as_cr_Letters$as_cr_digits
4474
4475 ECHO_C= ECHO_N= ECHO_T=
4476 case `echo -n x` in #(((((
4477 -n*)
4478 case `echo 'xy\c'` in
4479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4480 xy) ECHO_C='\c';;
4481 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4482 ECHO_T=' ';;
4483 esac;;
4484 *)
4485 ECHO_N='-n';;
4486 esac
4487
4488 rm -f conf$$ conf$$.exe conf$$.file
4489 if test -d conf$$.dir; then
4490 rm -f conf$$.dir/conf$$.file
4491 else
4492 rm -f conf$$.dir
4493 mkdir conf$$.dir 2>/dev/null
4494 fi
4495 if (echo >conf$$.file) 2>/dev/null; then
4496 if ln -s conf$$.file conf$$ 2>/dev/null; then
4497 as_ln_s='ln -s'
4498 # ... but there are two gotchas:
4499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4501 # In both cases, we have to default to `cp -pR'.
4502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4503 as_ln_s='cp -pR'
4504 elif ln conf$$.file conf$$ 2>/dev/null; then
4505 as_ln_s=ln
4506 else
4507 as_ln_s='cp -pR'
4508 fi
4509 else
4510 as_ln_s='cp -pR'
4511 fi
4512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4513 rmdir conf$$.dir 2>/dev/null
4514
4515
4516 # as_fn_mkdir_p
4517 # -------------
4518 # Create "$as_dir" as a directory, including parents if necessary.
4519 as_fn_mkdir_p ()
4520 {
4521
4522 case $as_dir in #(
4523 -*) as_dir=./$as_dir;;
4524 esac
4525 test -d "$as_dir" || eval $as_mkdir_p || {
4526 as_dirs=
4527 while :; do
4528 case $as_dir in #(
4529 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4530 *) as_qdir=$as_dir;;
4531 esac
4532 as_dirs="'$as_qdir' $as_dirs"
4533 as_dir=`$as_dirname -- "$as_dir" ||
4534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4535 X"$as_dir" : 'X\(//\)[^/]' \| \
4536 X"$as_dir" : 'X\(//\)$' \| \
4537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4538 $as_echo X"$as_dir" |
4539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4540 s//\1/
4541 q
4542 }
4543 /^X\(\/\/\)[^/].*/{
4544 s//\1/
4545 q
4546 }
4547 /^X\(\/\/\)$/{
4548 s//\1/
4549 q
4550 }
4551 /^X\(\/\).*/{
4552 s//\1/
4553 q
4554 }
4555 s/.*/./; q'`
4556 test -d "$as_dir" && break
4557 done
4558 test -z "$as_dirs" || eval "mkdir $as_dirs"
4559 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4560
4561
4562 } # as_fn_mkdir_p
4563 if mkdir -p . 2>/dev/null; then
4564 as_mkdir_p='mkdir -p "$as_dir"'
4565 else
4566 test -d ./-p && rmdir ./-p
4567 as_mkdir_p=false
4568 fi
4569
4570
4571 # as_fn_executable_p FILE
4572 # -----------------------
4573 # Test if FILE is an executable regular file.
4574 as_fn_executable_p ()
4575 {
4576 test -f "$1" && test -x "$1"
4577 } # as_fn_executable_p
4578 as_test_x='test -x'
4579 as_executable_p=as_fn_executable_p
4580
4581 # Sed expression to map a string onto a valid CPP name.
4582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4583
4584 # Sed expression to map a string onto a valid variable name.
4585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4586
4587
4588 exec 6>&1
4589 ## ----------------------------------- ##
4590 ## Main body of $CONFIG_STATUS script. ##
4591 ## ----------------------------------- ##
4592 _ASEOF
4593 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4594
4595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4596 # Save the log message, to keep $0 and so on meaningful, and to
4597 # report actual input values of CONFIG_FILES etc. instead of their
4598 # values after options handling.
4599 ac_log="
4600 This file was extended by Atheme IRC Services Contrib Modules $as_me 1.0, which was
4601 generated by GNU Autoconf 2.69. Invocation command line was
4602
4603 CONFIG_FILES = $CONFIG_FILES
4604 CONFIG_HEADERS = $CONFIG_HEADERS
4605 CONFIG_LINKS = $CONFIG_LINKS
4606 CONFIG_COMMANDS = $CONFIG_COMMANDS
4607 $ $0 $@
4608
4609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4610 "
4611
4612 _ACEOF
4613
4614 case $ac_config_files in *"
4615 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4616 esac
4617
4618 case $ac_config_headers in *"
4619 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4620 esac
4621
4622
4623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4624 # Files that config.status was made for.
4625 config_files="$ac_config_files"
4626 config_headers="$ac_config_headers"
4627
4628 _ACEOF
4629
4630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4631 ac_cs_usage="\
4632 \`$as_me' instantiates files and other configuration actions
4633 from templates according to the current configuration. Unless the files
4634 and actions are specified as TAGs, all are instantiated by default.
4635
4636 Usage: $0 [OPTION]... [TAG]...
4637
4638 -h, --help print this help, then exit
4639 -V, --version print version number and configuration settings, then exit
4640 --config print configuration, then exit
4641 -q, --quiet, --silent
4642 do not print progress messages
4643 -d, --debug don't remove temporary files
4644 --recheck update $as_me by reconfiguring in the same conditions
4645 --file=FILE[:TEMPLATE]
4646 instantiate the configuration file FILE
4647 --header=FILE[:TEMPLATE]
4648 instantiate the configuration header FILE
4649
4650 Configuration files:
4651 $config_files
4652
4653 Configuration headers:
4654 $config_headers
4655
4656 Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
4657 Atheme IRC Services Contrib Modules home page: <https://atheme.github.io/>."
4658
4659 _ACEOF
4660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4661 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4662 ac_cs_version="\\
4663 Atheme IRC Services Contrib Modules config.status 1.0
4664 configured by $0, generated by GNU Autoconf 2.69,
4665 with options \\"\$ac_cs_config\\"
4666
4667 Copyright (C) 2012 Free Software Foundation, Inc.
4668 This config.status script is free software; the Free Software Foundation
4669 gives unlimited permission to copy, distribute and modify it."
4670
4671 ac_pwd='$ac_pwd'
4672 srcdir='$srcdir'
4673 INSTALL='$INSTALL'
4674 MKDIR_P='$MKDIR_P'
4675 test -n "\$AWK" || AWK=awk
4676 _ACEOF
4677
4678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4679 # The default lists apply if the user does not specify any file.
4680 ac_need_defaults=:
4681 while test $# != 0
4682 do
4683 case $1 in
4684 --*=?*)
4685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4687 ac_shift=:
4688 ;;
4689 --*=)
4690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4691 ac_optarg=
4692 ac_shift=:
4693 ;;
4694 *)
4695 ac_option=$1
4696 ac_optarg=$2
4697 ac_shift=shift
4698 ;;
4699 esac
4700
4701 case $ac_option in
4702 # Handling of the options.
4703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4704 ac_cs_recheck=: ;;
4705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4706 $as_echo "$ac_cs_version"; exit ;;
4707 --config | --confi | --conf | --con | --co | --c )
4708 $as_echo "$ac_cs_config"; exit ;;
4709 --debug | --debu | --deb | --de | --d | -d )
4710 debug=: ;;
4711 --file | --fil | --fi | --f )
4712 $ac_shift
4713 case $ac_optarg in
4714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4715 '') as_fn_error $? "missing file argument" ;;
4716 esac
4717 as_fn_append CONFIG_FILES " '$ac_optarg'"
4718 ac_need_defaults=false;;
4719 --header | --heade | --head | --hea )
4720 $ac_shift
4721 case $ac_optarg in
4722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4723 esac
4724 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4725 ac_need_defaults=false;;
4726 --he | --h)
4727 # Conflict between --help and --header
4728 as_fn_error $? "ambiguous option: \`$1'
4729 Try \`$0 --help' for more information.";;
4730 --help | --hel | -h )
4731 $as_echo "$ac_cs_usage"; exit ;;
4732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4734 ac_cs_silent=: ;;
4735
4736 # This is an error.
4737 -*) as_fn_error $? "unrecognized option: \`$1'
4738 Try \`$0 --help' for more information." ;;
4739
4740 *) as_fn_append ac_config_targets " $1"
4741 ac_need_defaults=false ;;
4742
4743 esac
4744 shift
4745 done
4746
4747 ac_configure_extra_args=
4748
4749 if $ac_cs_silent; then
4750 exec 6>/dev/null
4751 ac_configure_extra_args="$ac_configure_extra_args --silent"
4752 fi
4753
4754 _ACEOF
4755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4756 if \$ac_cs_recheck; then
4757 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4758 shift
4759 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4760 CONFIG_SHELL='$SHELL'
4761 export CONFIG_SHELL
4762 exec "\$@"
4763 fi
4764
4765 _ACEOF
4766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4767 exec 5>>config.log
4768 {
4769 echo
4770 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4771 ## Running $as_me. ##
4772 _ASBOX
4773 $as_echo "$ac_log"
4774 } >&5
4775
4776 _ACEOF
4777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4778 _ACEOF
4779
4780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4781
4782 # Handling of arguments.
4783 for ac_config_target in $ac_config_targets
4784 do
4785 case $ac_config_target in
4786 "buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
4787 "extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
4788 "src/contrib-sysconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/contrib-sysconf.h" ;;
4789
4790 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4791 esac
4792 done
4793
4794
4795 # If the user did not use the arguments to specify the items to instantiate,
4796 # then the envvar interface is used. Set only those that are not.
4797 # We use the long form for the default assignment because of an extremely
4798 # bizarre bug on SunOS 4.1.3.
4799 if $ac_need_defaults; then
4800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4802 fi
4803
4804 # Have a temporary directory for convenience. Make it in the build tree
4805 # simply because there is no reason against having it here, and in addition,
4806 # creating and moving files from /tmp can sometimes cause problems.
4807 # Hook for its removal unless debugging.
4808 # Note that there is a small window in which the directory will not be cleaned:
4809 # after its creation but before its name has been assigned to `$tmp'.
4810 $debug ||
4811 {
4812 tmp= ac_tmp=
4813 trap 'exit_status=$?
4814 : "${ac_tmp:=$tmp}"
4815 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4816 ' 0
4817 trap 'as_fn_exit 1' 1 2 13 15
4818 }
4819 # Create a (secure) tmp directory for tmp files.
4820
4821 {
4822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4823 test -d "$tmp"
4824 } ||
4825 {
4826 tmp=./conf$$-$RANDOM
4827 (umask 077 && mkdir "$tmp")
4828 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4829 ac_tmp=$tmp
4830
4831 # Set up the scripts for CONFIG_FILES section.
4832 # No need to generate them if there are no CONFIG_FILES.
4833 # This happens for instance with `./config.status config.h'.
4834 if test -n "$CONFIG_FILES"; then
4835
4836
4837 ac_cr=`echo X | tr X '\015'`
4838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4839 # But we know of no other shell where ac_cr would be empty at this
4840 # point, so we can use a bashism as a fallback.
4841 if test "x$ac_cr" = x; then
4842 eval ac_cr=\$\'\\r\'
4843 fi
4844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4846 ac_cs_awk_cr='\\r'
4847 else
4848 ac_cs_awk_cr=$ac_cr
4849 fi
4850
4851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4852 _ACEOF
4853
4854
4855 {
4856 echo "cat >conf$$subs.awk <<_ACEOF" &&
4857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4858 echo "_ACEOF"
4859 } >conf$$subs.sh ||
4860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4862 ac_delim='%!_!# '
4863 for ac_last_try in false false false false false :; do
4864 . ./conf$$subs.sh ||
4865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4866
4867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4868 if test $ac_delim_n = $ac_delim_num; then
4869 break
4870 elif $ac_last_try; then
4871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4872 else
4873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4874 fi
4875 done
4876 rm -f conf$$subs.sh
4877
4878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4879 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4880 _ACEOF
4881 sed -n '
4882 h
4883 s/^/S["/; s/!.*/"]=/
4884 p
4885 g
4886 s/^[^!]*!//
4887 :repl
4888 t repl
4889 s/'"$ac_delim"'$//
4890 t delim
4891 :nl
4892 h
4893 s/\(.\{148\}\)..*/\1/
4894 t more1
4895 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4896 p
4897 n
4898 b repl
4899 :more1
4900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4901 p
4902 g
4903 s/.\{148\}//
4904 t nl
4905 :delim
4906 h
4907 s/\(.\{148\}\)..*/\1/
4908 t more2
4909 s/["\\]/\\&/g; s/^/"/; s/$/"/
4910 p
4911 b
4912 :more2
4913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4914 p
4915 g
4916 s/.\{148\}//
4917 t delim
4918 ' <conf$$subs.awk | sed '
4919 /^[^""]/{
4920 N
4921 s/\n//
4922 }
4923 ' >>$CONFIG_STATUS || ac_write_fail=1
4924 rm -f conf$$subs.awk
4925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4926 _ACAWK
4927 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4928 for (key in S) S_is_set[key] = 1
4929 FS = "\a"
4930
4931 }
4932 {
4933 line = $ 0
4934 nfields = split(line, field, "@")
4935 substed = 0
4936 len = length(field[1])
4937 for (i = 2; i < nfields; i++) {
4938 key = field[i]
4939 keylen = length(key)
4940 if (S_is_set[key]) {
4941 value = S[key]
4942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4943 len += length(value) + length(field[++i])
4944 substed = 1
4945 } else
4946 len += 1 + keylen
4947 }
4948
4949 print line
4950 }
4951
4952 _ACAWK
4953 _ACEOF
4954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4955 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4957 else
4958 cat
4959 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4960 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4961 _ACEOF
4962
4963 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4964 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4965 # trailing colons and then remove the whole line if VPATH becomes empty
4966 # (actually we leave an empty line to preserve line numbers).
4967 if test "x$srcdir" = x.; then
4968 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4969 h
4970 s///
4971 s/^/:/
4972 s/[ ]*$/:/
4973 s/:\$(srcdir):/:/g
4974 s/:\${srcdir}:/:/g
4975 s/:@srcdir@:/:/g
4976 s/^:*//
4977 s/:*$//
4978 x
4979 s/\(=[ ]*\).*/\1/
4980 G
4981 s/\n//
4982 s/^[^=]*=[ ]*$//
4983 }'
4984 fi
4985
4986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4987 fi # test -n "$CONFIG_FILES"
4988
4989 # Set up the scripts for CONFIG_HEADERS section.
4990 # No need to generate them if there are no CONFIG_HEADERS.
4991 # This happens for instance with `./config.status Makefile'.
4992 if test -n "$CONFIG_HEADERS"; then
4993 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4994 BEGIN {
4995 _ACEOF
4996
4997 # Transform confdefs.h into an awk script `defines.awk', embedded as
4998 # here-document in config.status, that substitutes the proper values into
4999 # config.h.in to produce config.h.
5000
5001 # Create a delimiter string that does not exist in confdefs.h, to ease
5002 # handling of long lines.
5003 ac_delim='%!_!# '
5004 for ac_last_try in false false :; do
5005 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5006 if test -z "$ac_tt"; then
5007 break
5008 elif $ac_last_try; then
5009 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5010 else
5011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5012 fi
5013 done
5014
5015 # For the awk script, D is an array of macro values keyed by name,
5016 # likewise P contains macro parameters if any. Preserve backslash
5017 # newline sequences.
5018
5019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5020 sed -n '
5021 s/.\{148\}/&'"$ac_delim"'/g
5022 t rset
5023 :rset
5024 s/^[ ]*#[ ]*define[ ][ ]*/ /
5025 t def
5026 d
5027 :def
5028 s/\\$//
5029 t bsnl
5030 s/["\\]/\\&/g
5031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5032 D["\1"]=" \3"/p
5033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5034 d
5035 :bsnl
5036 s/["\\]/\\&/g
5037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5038 D["\1"]=" \3\\\\\\n"\\/p
5039 t cont
5040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5041 t cont
5042 d
5043 :cont
5044 n
5045 s/.\{148\}/&'"$ac_delim"'/g
5046 t clear
5047 :clear
5048 s/\\$//
5049 t bsnlc
5050 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5051 d
5052 :bsnlc
5053 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5054 b cont
5055 ' <confdefs.h | sed '
5056 s/'"$ac_delim"'/"\\\
5057 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5058
5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5060 for (key in D) D_is_set[key] = 1
5061 FS = "\a"
5062 }
5063 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5064 line = \$ 0
5065 split(line, arg, " ")
5066 if (arg[1] == "#") {
5067 defundef = arg[2]
5068 mac1 = arg[3]
5069 } else {
5070 defundef = substr(arg[1], 2)
5071 mac1 = arg[2]
5072 }
5073 split(mac1, mac2, "(") #)
5074 macro = mac2[1]
5075 prefix = substr(line, 1, index(line, defundef) - 1)
5076 if (D_is_set[macro]) {
5077 # Preserve the white space surrounding the "#".
5078 print prefix "define", macro P[macro] D[macro]
5079 next
5080 } else {
5081 # Replace #undef with comments. This is necessary, for example,
5082 # in the case of _POSIX_SOURCE, which is predefined and required
5083 # on some systems where configure will not decide to define it.
5084 if (defundef == "undef") {
5085 print "/*", prefix defundef, macro, "*/"
5086 next
5087 }
5088 }
5089 }
5090 { print }
5091 _ACAWK
5092 _ACEOF
5093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5094 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5095 fi # test -n "$CONFIG_HEADERS"
5096
5097
5098 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5099 shift
5100 for ac_tag
5101 do
5102 case $ac_tag in
5103 :[FHLC]) ac_mode=$ac_tag; continue;;
5104 esac
5105 case $ac_mode$ac_tag in
5106 :[FHL]*:*);;
5107 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5108 :[FH]-) ac_tag=-:-;;
5109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5110 esac
5111 ac_save_IFS=$IFS
5112 IFS=:
5113 set x $ac_tag
5114 IFS=$ac_save_IFS
5115 shift
5116 ac_file=$1
5117 shift
5118
5119 case $ac_mode in
5120 :L) ac_source=$1;;
5121 :[FH])
5122 ac_file_inputs=
5123 for ac_f
5124 do
5125 case $ac_f in
5126 -) ac_f="$ac_tmp/stdin";;
5127 *) # Look for the file first in the build tree, then in the source tree
5128 # (if the path is not absolute). The absolute path cannot be DOS-style,
5129 # because $ac_f cannot contain `:'.
5130 test -f "$ac_f" ||
5131 case $ac_f in
5132 [\\/$]*) false;;
5133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5134 esac ||
5135 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5136 esac
5137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5138 as_fn_append ac_file_inputs " '$ac_f'"
5139 done
5140
5141 # Let's still pretend it is `configure' which instantiates (i.e., don't
5142 # use $as_me), people would be surprised to read:
5143 # /* config.h. Generated by config.status. */
5144 configure_input='Generated from '`
5145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5146 `' by configure.'
5147 if test x"$ac_file" != x-; then
5148 configure_input="$ac_file. $configure_input"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5150 $as_echo "$as_me: creating $ac_file" >&6;}
5151 fi
5152 # Neutralize special characters interpreted by sed in replacement strings.
5153 case $configure_input in #(
5154 *\&* | *\|* | *\\* )
5155 ac_sed_conf_input=`$as_echo "$configure_input" |
5156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5157 *) ac_sed_conf_input=$configure_input;;
5158 esac
5159
5160 case $ac_tag in
5161 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5163 esac
5164 ;;
5165 esac
5166
5167 ac_dir=`$as_dirname -- "$ac_file" ||
5168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5169 X"$ac_file" : 'X\(//\)[^/]' \| \
5170 X"$ac_file" : 'X\(//\)$' \| \
5171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5172 $as_echo X"$ac_file" |
5173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5174 s//\1/
5175 q
5176 }
5177 /^X\(\/\/\)[^/].*/{
5178 s//\1/
5179 q
5180 }
5181 /^X\(\/\/\)$/{
5182 s//\1/
5183 q
5184 }
5185 /^X\(\/\).*/{
5186 s//\1/
5187 q
5188 }
5189 s/.*/./; q'`
5190 as_dir="$ac_dir"; as_fn_mkdir_p
5191 ac_builddir=.
5192
5193 case "$ac_dir" in
5194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5195 *)
5196 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5197 # A ".." for each directory in $ac_dir_suffix.
5198 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5199 case $ac_top_builddir_sub in
5200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5202 esac ;;
5203 esac
5204 ac_abs_top_builddir=$ac_pwd
5205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5206 # for backward compatibility:
5207 ac_top_builddir=$ac_top_build_prefix
5208
5209 case $srcdir in
5210 .) # We are building in place.
5211 ac_srcdir=.
5212 ac_top_srcdir=$ac_top_builddir_sub
5213 ac_abs_top_srcdir=$ac_pwd ;;
5214 [\\/]* | ?:[\\/]* ) # Absolute name.
5215 ac_srcdir=$srcdir$ac_dir_suffix;
5216 ac_top_srcdir=$srcdir
5217 ac_abs_top_srcdir=$srcdir ;;
5218 *) # Relative name.
5219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5220 ac_top_srcdir=$ac_top_build_prefix$srcdir
5221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5222 esac
5223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5224
5225
5226 case $ac_mode in
5227 :F)
5228 #
5229 # CONFIG_FILE
5230 #
5231
5232 case $INSTALL in
5233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5235 esac
5236 ac_MKDIR_P=$MKDIR_P
5237 case $MKDIR_P in
5238 [\\/$]* | ?:[\\/]* ) ;;
5239 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5240 esac
5241 _ACEOF
5242
5243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5244 # If the template does not know about datarootdir, expand it.
5245 # FIXME: This hack should be removed a few years after 2.60.
5246 ac_datarootdir_hack=; ac_datarootdir_seen=
5247 ac_sed_dataroot='
5248 /datarootdir/ {
5249 p
5250 q
5251 }
5252 /@datadir@/p
5253 /@docdir@/p
5254 /@infodir@/p
5255 /@localedir@/p
5256 /@mandir@/p'
5257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5258 *datarootdir*) ac_datarootdir_seen=yes;;
5259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5262 _ACEOF
5263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5264 ac_datarootdir_hack='
5265 s&@datadir@&$datadir&g
5266 s&@docdir@&$docdir&g
5267 s&@infodir@&$infodir&g
5268 s&@localedir@&$localedir&g
5269 s&@mandir@&$mandir&g
5270 s&\\\${datarootdir}&$datarootdir&g' ;;
5271 esac
5272 _ACEOF
5273
5274 # Neutralize VPATH when `$srcdir' = `.'.
5275 # Shell code in configure.ac might set extrasub.
5276 # FIXME: do we really want to maintain this feature?
5277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5278 ac_sed_extra="$ac_vpsub
5279 $extrasub
5280 _ACEOF
5281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5282 :t
5283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5284 s|@configure_input@|$ac_sed_conf_input|;t t
5285 s&@top_builddir@&$ac_top_builddir_sub&;t t
5286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5287 s&@srcdir@&$ac_srcdir&;t t
5288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5289 s&@top_srcdir@&$ac_top_srcdir&;t t
5290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5291 s&@builddir@&$ac_builddir&;t t
5292 s&@abs_builddir@&$ac_abs_builddir&;t t
5293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5294 s&@INSTALL@&$ac_INSTALL&;t t
5295 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5296 $ac_datarootdir_hack
5297 "
5298 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5299 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5300
5301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5302 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5304 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5306 which seems to be undefined. Please make sure it is defined" >&5
5307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5308 which seems to be undefined. Please make sure it is defined" >&2;}
5309
5310 rm -f "$ac_tmp/stdin"
5311 case $ac_file in
5312 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5313 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5314 esac \
5315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5316 ;;
5317 :H)
5318 #
5319 # CONFIG_HEADER
5320 #
5321 if test x"$ac_file" != x-; then
5322 {
5323 $as_echo "/* $configure_input */" \
5324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5325 } >"$ac_tmp/config.h" \
5326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5327 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5330 else
5331 rm -f "$ac_file"
5332 mv "$ac_tmp/config.h" "$ac_file" \
5333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5334 fi
5335 else
5336 $as_echo "/* $configure_input */" \
5337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5338 || as_fn_error $? "could not create -" "$LINENO" 5
5339 fi
5340 ;;
5341
5342
5343 esac
5344
5345 done # for ac_tag
5346
5347
5348 as_fn_exit 0
5349 _ACEOF
5350 ac_clean_files=$ac_clean_files_save
5351
5352 test $ac_write_fail = 0 ||
5353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5354
5355
5356 # configure is writing to config.log, and then calls config.status.
5357 # config.status does its own redirection, appending to config.log.
5358 # Unfortunately, on DOS this fails, as config.log is still kept open
5359 # by configure, so config.status won't be able to write to it; its
5360 # output is simply discarded. So we exec the FD to /dev/null,
5361 # effectively closing config.log, so it can be properly (re)opened and
5362 # appended to by config.status. When coming back to configure, we
5363 # need to make the FD available again.
5364 if test "$no_create" != yes; then
5365 ac_cs_success=:
5366 ac_config_status_args=
5367 test "$silent" = yes &&
5368 ac_config_status_args="$ac_config_status_args --quiet"
5369 exec 5>/dev/null
5370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5371 exec 5>>config.log
5372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5373 # would make configure fail if this is the last instruction.
5374 $ac_cs_success || as_fn_exit 1
5375 fi
5376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5379 fi
5380
5381
5382 ${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
5383 for i in $(find . -name Makefile); do
5384 DEPSFILE="$(dirname $i)/.deps"
5385 test -f "$DEPSFILE" && rm "$DEPSFILE"
5386 touch -t 0001010000 "$DEPSFILE"
5387 done
5388