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