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