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