Annotation of embedaddon/mtr/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 mtr 0.85.
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='mtr'
559: PACKAGE_TARNAME='mtr'
560: PACKAGE_VERSION='0.85'
561: PACKAGE_STRING='mtr 0.85'
562: PACKAGE_BUGREPORT=''
563: PACKAGE_URL=''
564:
565: ac_unique_file="mtr.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='am__EXEEXT_FALSE
603: am__EXEEXT_TRUE
604: LTLIBOBJS
605: LIBOBJS
606: RESOLV_LIBS
607: GLIB_LIBS
608: GLIB_CFLAGS
609: PKG_CONFIG_LIBDIR
610: PKG_CONFIG_PATH
611: GTK_LIBS
612: GTK_CFLAGS
613: PKG_CONFIG
614: IPINFO_FALSE
615: IPINFO_TRUE
616: EGREP
617: GREP
618: CPP
619: am__fastdepCC_FALSE
620: am__fastdepCC_TRUE
621: CCDEPMODE
622: AMDEPBACKSLASH
623: AMDEP_FALSE
624: AMDEP_TRUE
625: am__quote
626: am__include
627: DEPDIR
628: OBJEXT
629: EXEEXT
630: ac_ct_CC
631: CPPFLAGS
632: LDFLAGS
633: CFLAGS
634: CC
635: CURSES_OBJ
636: GTK_OBJ
637: am__untar
638: am__tar
639: AMTAR
640: am__leading_dot
641: SET_MAKE
642: AWK
643: mkdir_p
644: MKDIR_P
645: INSTALL_STRIP_PROGRAM
646: STRIP
647: install_sh
648: MAKEINFO
649: AUTOHEADER
650: AUTOMAKE
651: AUTOCONF
652: ACLOCAL
653: VERSION
654: PACKAGE
655: CYGPATH_W
656: am__isrc
657: INSTALL_DATA
658: INSTALL_SCRIPT
659: INSTALL_PROGRAM
660: target_alias
661: host_alias
662: build_alias
663: LIBS
664: ECHO_T
665: ECHO_N
666: ECHO_C
667: DEFS
668: mandir
669: localedir
670: libdir
671: psdir
672: pdfdir
673: dvidir
674: htmldir
675: infodir
676: docdir
677: oldincludedir
678: includedir
679: localstatedir
680: sharedstatedir
681: sysconfdir
682: datadir
683: datarootdir
684: libexecdir
685: sbindir
686: bindir
687: program_transform_name
688: prefix
689: exec_prefix
690: PACKAGE_URL
691: PACKAGE_BUGREPORT
692: PACKAGE_STRING
693: PACKAGE_VERSION
694: PACKAGE_TARNAME
695: PACKAGE_NAME
696: PATH_SEPARATOR
697: SHELL'
698: ac_subst_files=''
699: ac_user_opts='
700: enable_option_checking
701: enable_dependency_tracking
702: with_gtk
703: with_glib
704: with_ipinfo
705: enable_ipv6
706: enable_gtktest
707: '
708: ac_precious_vars='build_alias
709: host_alias
710: target_alias
711: CC
712: CFLAGS
713: LDFLAGS
714: LIBS
715: CPPFLAGS
716: CPP
717: PKG_CONFIG
718: PKG_CONFIG_PATH
719: PKG_CONFIG_LIBDIR
720: GLIB_CFLAGS
721: GLIB_LIBS'
722:
723:
724: # Initialize some variables set by options.
725: ac_init_help=
726: ac_init_version=false
727: ac_unrecognized_opts=
728: ac_unrecognized_sep=
729: # The variables have the same names as the options, with
730: # dashes changed to underlines.
731: cache_file=/dev/null
732: exec_prefix=NONE
733: no_create=
734: no_recursion=
735: prefix=NONE
736: program_prefix=NONE
737: program_suffix=NONE
738: program_transform_name=s,x,x,
739: silent=
740: site=
741: srcdir=
742: verbose=
743: x_includes=NONE
744: x_libraries=NONE
745:
746: # Installation directory options.
747: # These are left unexpanded so users can "make install exec_prefix=/foo"
748: # and all the variables that are supposed to be based on exec_prefix
749: # by default will actually change.
750: # Use braces instead of parens because sh, perl, etc. also accept them.
751: # (The list follows the same order as the GNU Coding Standards.)
752: bindir='${exec_prefix}/bin'
753: sbindir='${exec_prefix}/sbin'
754: libexecdir='${exec_prefix}/libexec'
755: datarootdir='${prefix}/share'
756: datadir='${datarootdir}'
757: sysconfdir='${prefix}/etc'
758: sharedstatedir='${prefix}/com'
759: localstatedir='${prefix}/var'
760: includedir='${prefix}/include'
761: oldincludedir='/usr/include'
762: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763: infodir='${datarootdir}/info'
764: htmldir='${docdir}'
765: dvidir='${docdir}'
766: pdfdir='${docdir}'
767: psdir='${docdir}'
768: libdir='${exec_prefix}/lib'
769: localedir='${datarootdir}/locale'
770: mandir='${datarootdir}/man'
771:
772: ac_prev=
773: ac_dashdash=
774: for ac_option
775: do
776: # If the previous option needs an argument, assign it.
777: if test -n "$ac_prev"; then
778: eval $ac_prev=\$ac_option
779: ac_prev=
780: continue
781: fi
782:
783: case $ac_option in
784: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785: *=) ac_optarg= ;;
786: *) ac_optarg=yes ;;
787: esac
788:
789: # Accept the important Cygnus configure options, so we can diagnose typos.
790:
791: case $ac_dashdash$ac_option in
792: --)
793: ac_dashdash=yes ;;
794:
795: -bindir | --bindir | --bindi | --bind | --bin | --bi)
796: ac_prev=bindir ;;
797: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798: bindir=$ac_optarg ;;
799:
800: -build | --build | --buil | --bui | --bu)
801: ac_prev=build_alias ;;
802: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803: build_alias=$ac_optarg ;;
804:
805: -cache-file | --cache-file | --cache-fil | --cache-fi \
806: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807: ac_prev=cache_file ;;
808: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810: cache_file=$ac_optarg ;;
811:
812: --config-cache | -C)
813: cache_file=config.cache ;;
814:
815: -datadir | --datadir | --datadi | --datad)
816: ac_prev=datadir ;;
817: -datadir=* | --datadir=* | --datadi=* | --datad=*)
818: datadir=$ac_optarg ;;
819:
820: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821: | --dataroo | --dataro | --datar)
822: ac_prev=datarootdir ;;
823: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825: datarootdir=$ac_optarg ;;
826:
827: -disable-* | --disable-*)
828: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829: # Reject names that are not valid shell variable names.
830: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831: as_fn_error $? "invalid feature name: $ac_useropt"
832: ac_useropt_orig=$ac_useropt
833: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834: case $ac_user_opts in
835: *"
836: "enable_$ac_useropt"
837: "*) ;;
838: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839: ac_unrecognized_sep=', ';;
840: esac
841: eval enable_$ac_useropt=no ;;
842:
843: -docdir | --docdir | --docdi | --doc | --do)
844: ac_prev=docdir ;;
845: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846: docdir=$ac_optarg ;;
847:
848: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849: ac_prev=dvidir ;;
850: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851: dvidir=$ac_optarg ;;
852:
853: -enable-* | --enable-*)
854: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855: # Reject names that are not valid shell variable names.
856: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857: as_fn_error $? "invalid feature name: $ac_useropt"
858: ac_useropt_orig=$ac_useropt
859: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860: case $ac_user_opts in
861: *"
862: "enable_$ac_useropt"
863: "*) ;;
864: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865: ac_unrecognized_sep=', ';;
866: esac
867: eval enable_$ac_useropt=\$ac_optarg ;;
868:
869: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871: | --exec | --exe | --ex)
872: ac_prev=exec_prefix ;;
873: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875: | --exec=* | --exe=* | --ex=*)
876: exec_prefix=$ac_optarg ;;
877:
878: -gas | --gas | --ga | --g)
879: # Obsolete; use --with-gas.
880: with_gas=yes ;;
881:
882: -help | --help | --hel | --he | -h)
883: ac_init_help=long ;;
884: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885: ac_init_help=recursive ;;
886: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887: ac_init_help=short ;;
888:
889: -host | --host | --hos | --ho)
890: ac_prev=host_alias ;;
891: -host=* | --host=* | --hos=* | --ho=*)
892: host_alias=$ac_optarg ;;
893:
894: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895: ac_prev=htmldir ;;
896: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897: | --ht=*)
898: htmldir=$ac_optarg ;;
899:
900: -includedir | --includedir | --includedi | --included | --include \
901: | --includ | --inclu | --incl | --inc)
902: ac_prev=includedir ;;
903: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904: | --includ=* | --inclu=* | --incl=* | --inc=*)
905: includedir=$ac_optarg ;;
906:
907: -infodir | --infodir | --infodi | --infod | --info | --inf)
908: ac_prev=infodir ;;
909: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910: infodir=$ac_optarg ;;
911:
912: -libdir | --libdir | --libdi | --libd)
913: ac_prev=libdir ;;
914: -libdir=* | --libdir=* | --libdi=* | --libd=*)
915: libdir=$ac_optarg ;;
916:
917: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918: | --libexe | --libex | --libe)
919: ac_prev=libexecdir ;;
920: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921: | --libexe=* | --libex=* | --libe=*)
922: libexecdir=$ac_optarg ;;
923:
924: -localedir | --localedir | --localedi | --localed | --locale)
925: ac_prev=localedir ;;
926: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927: localedir=$ac_optarg ;;
928:
929: -localstatedir | --localstatedir | --localstatedi | --localstated \
930: | --localstate | --localstat | --localsta | --localst | --locals)
931: ac_prev=localstatedir ;;
932: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934: localstatedir=$ac_optarg ;;
935:
936: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937: ac_prev=mandir ;;
938: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939: mandir=$ac_optarg ;;
940:
941: -nfp | --nfp | --nf)
942: # Obsolete; use --without-fp.
943: with_fp=no ;;
944:
945: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946: | --no-cr | --no-c | -n)
947: no_create=yes ;;
948:
949: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951: no_recursion=yes ;;
952:
953: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955: | --oldin | --oldi | --old | --ol | --o)
956: ac_prev=oldincludedir ;;
957: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960: oldincludedir=$ac_optarg ;;
961:
962: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963: ac_prev=prefix ;;
964: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965: prefix=$ac_optarg ;;
966:
967: -program-prefix | --program-prefix | --program-prefi | --program-pref \
968: | --program-pre | --program-pr | --program-p)
969: ac_prev=program_prefix ;;
970: -program-prefix=* | --program-prefix=* | --program-prefi=* \
971: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972: program_prefix=$ac_optarg ;;
973:
974: -program-suffix | --program-suffix | --program-suffi | --program-suff \
975: | --program-suf | --program-su | --program-s)
976: ac_prev=program_suffix ;;
977: -program-suffix=* | --program-suffix=* | --program-suffi=* \
978: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979: program_suffix=$ac_optarg ;;
980:
981: -program-transform-name | --program-transform-name \
982: | --program-transform-nam | --program-transform-na \
983: | --program-transform-n | --program-transform- \
984: | --program-transform | --program-transfor \
985: | --program-transfo | --program-transf \
986: | --program-trans | --program-tran \
987: | --progr-tra | --program-tr | --program-t)
988: ac_prev=program_transform_name ;;
989: -program-transform-name=* | --program-transform-name=* \
990: | --program-transform-nam=* | --program-transform-na=* \
991: | --program-transform-n=* | --program-transform-=* \
992: | --program-transform=* | --program-transfor=* \
993: | --program-transfo=* | --program-transf=* \
994: | --program-trans=* | --program-tran=* \
995: | --progr-tra=* | --program-tr=* | --program-t=*)
996: program_transform_name=$ac_optarg ;;
997:
998: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999: ac_prev=pdfdir ;;
1000: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001: pdfdir=$ac_optarg ;;
1002:
1003: -psdir | --psdir | --psdi | --psd | --ps)
1004: ac_prev=psdir ;;
1005: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006: psdir=$ac_optarg ;;
1007:
1008: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009: | -silent | --silent | --silen | --sile | --sil)
1010: silent=yes ;;
1011:
1012: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013: ac_prev=sbindir ;;
1014: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015: | --sbi=* | --sb=*)
1016: sbindir=$ac_optarg ;;
1017:
1018: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020: | --sharedst | --shareds | --shared | --share | --shar \
1021: | --sha | --sh)
1022: ac_prev=sharedstatedir ;;
1023: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026: | --sha=* | --sh=*)
1027: sharedstatedir=$ac_optarg ;;
1028:
1029: -site | --site | --sit)
1030: ac_prev=site ;;
1031: -site=* | --site=* | --sit=*)
1032: site=$ac_optarg ;;
1033:
1034: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035: ac_prev=srcdir ;;
1036: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037: srcdir=$ac_optarg ;;
1038:
1039: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040: | --syscon | --sysco | --sysc | --sys | --sy)
1041: ac_prev=sysconfdir ;;
1042: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044: sysconfdir=$ac_optarg ;;
1045:
1046: -target | --target | --targe | --targ | --tar | --ta | --t)
1047: ac_prev=target_alias ;;
1048: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049: target_alias=$ac_optarg ;;
1050:
1051: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052: verbose=yes ;;
1053:
1054: -version | --version | --versio | --versi | --vers | -V)
1055: ac_init_version=: ;;
1056:
1057: -with-* | --with-*)
1058: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059: # Reject names that are not valid shell variable names.
1060: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061: as_fn_error $? "invalid package name: $ac_useropt"
1062: ac_useropt_orig=$ac_useropt
1063: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064: case $ac_user_opts in
1065: *"
1066: "with_$ac_useropt"
1067: "*) ;;
1068: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069: ac_unrecognized_sep=', ';;
1070: esac
1071: eval with_$ac_useropt=\$ac_optarg ;;
1072:
1073: -without-* | --without-*)
1074: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075: # Reject names that are not valid shell variable names.
1076: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077: as_fn_error $? "invalid package name: $ac_useropt"
1078: ac_useropt_orig=$ac_useropt
1079: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080: case $ac_user_opts in
1081: *"
1082: "with_$ac_useropt"
1083: "*) ;;
1084: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085: ac_unrecognized_sep=', ';;
1086: esac
1087: eval with_$ac_useropt=no ;;
1088:
1089: --x)
1090: # Obsolete; use --with-x.
1091: with_x=yes ;;
1092:
1093: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094: | --x-incl | --x-inc | --x-in | --x-i)
1095: ac_prev=x_includes ;;
1096: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098: x_includes=$ac_optarg ;;
1099:
1100: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102: ac_prev=x_libraries ;;
1103: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105: x_libraries=$ac_optarg ;;
1106:
1107: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1108: Try \`$0 --help' for more information"
1109: ;;
1110:
1111: *=*)
1112: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113: # Reject names that are not valid shell variable names.
1114: case $ac_envvar in #(
1115: '' | [0-9]* | *[!_$as_cr_alnum]* )
1116: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1117: esac
1118: eval $ac_envvar=\$ac_optarg
1119: export $ac_envvar ;;
1120:
1121: *)
1122: # FIXME: should be removed in autoconf 3.0.
1123: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127: ;;
1128:
1129: esac
1130: done
1131:
1132: if test -n "$ac_prev"; then
1133: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134: as_fn_error $? "missing argument to $ac_option"
1135: fi
1136:
1137: if test -n "$ac_unrecognized_opts"; then
1138: case $enable_option_checking in
1139: no) ;;
1140: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1141: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142: esac
1143: fi
1144:
1145: # Check all directory arguments for consistency.
1146: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147: datadir sysconfdir sharedstatedir localstatedir includedir \
1148: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149: libdir localedir mandir
1150: do
1151: eval ac_val=\$$ac_var
1152: # Remove trailing slashes.
1153: case $ac_val in
1154: */ )
1155: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156: eval $ac_var=\$ac_val;;
1157: esac
1158: # Be sure to have absolute directory names.
1159: case $ac_val in
1160: [\\/$]* | ?:[\\/]* ) continue;;
1161: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162: esac
1163: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1164: done
1165:
1166: # There might be people who depend on the old broken behavior: `$host'
1167: # used to hold the argument of --host etc.
1168: # FIXME: To remove some day.
1169: build=$build_alias
1170: host=$host_alias
1171: target=$target_alias
1172:
1173: # FIXME: To remove some day.
1174: if test "x$host_alias" != x; then
1175: if test "x$build_alias" = x; then
1176: cross_compiling=maybe
1177: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1178: If a cross compiler is detected then cross compile mode will be used" >&2
1179: elif test "x$build_alias" != "x$host_alias"; then
1180: cross_compiling=yes
1181: fi
1182: fi
1183:
1184: ac_tool_prefix=
1185: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186:
1187: test "$silent" = yes && exec 6>/dev/null
1188:
1189:
1190: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191: ac_ls_di=`ls -di .` &&
1192: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193: as_fn_error $? "working directory cannot be determined"
1194: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195: as_fn_error $? "pwd does not report name of working directory"
1196:
1197:
1198: # Find the source files, if location was not specified.
1199: if test -z "$srcdir"; then
1200: ac_srcdir_defaulted=yes
1201: # Try the directory containing this script, then the parent directory.
1202: ac_confdir=`$as_dirname -- "$as_myself" ||
1203: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204: X"$as_myself" : 'X\(//\)[^/]' \| \
1205: X"$as_myself" : 'X\(//\)$' \| \
1206: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207: $as_echo X"$as_myself" |
1208: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209: s//\1/
1210: q
1211: }
1212: /^X\(\/\/\)[^/].*/{
1213: s//\1/
1214: q
1215: }
1216: /^X\(\/\/\)$/{
1217: s//\1/
1218: q
1219: }
1220: /^X\(\/\).*/{
1221: s//\1/
1222: q
1223: }
1224: s/.*/./; q'`
1225: srcdir=$ac_confdir
1226: if test ! -r "$srcdir/$ac_unique_file"; then
1227: srcdir=..
1228: fi
1229: else
1230: ac_srcdir_defaulted=no
1231: fi
1232: if test ! -r "$srcdir/$ac_unique_file"; then
1233: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1235: fi
1236: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237: ac_abs_confdir=`(
1238: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1239: pwd)`
1240: # When building in place, set srcdir=.
1241: if test "$ac_abs_confdir" = "$ac_pwd"; then
1242: srcdir=.
1243: fi
1244: # Remove unnecessary trailing slashes from srcdir.
1245: # Double slashes in file names in object file debugging info
1246: # mess up M-x gdb in Emacs.
1247: case $srcdir in
1248: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249: esac
1250: for ac_var in $ac_precious_vars; do
1251: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252: eval ac_env_${ac_var}_value=\$${ac_var}
1253: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255: done
1256:
1257: #
1258: # Report the --help message.
1259: #
1260: if test "$ac_init_help" = "long"; then
1261: # Omit some internal or obsolete options to make the list less imposing.
1262: # This message is too long to be a string in the A/UX 3.1 sh.
1263: cat <<_ACEOF
1264: \`configure' configures mtr 0.85 to adapt to many kinds of systems.
1265:
1266: Usage: $0 [OPTION]... [VAR=VALUE]...
1267:
1268: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269: VAR=VALUE. See below for descriptions of some of the useful variables.
1270:
1271: Defaults for the options are specified in brackets.
1272:
1273: Configuration:
1274: -h, --help display this help and exit
1275: --help=short display options specific to this package
1276: --help=recursive display the short help of all the included packages
1277: -V, --version display version information and exit
1278: -q, --quiet, --silent do not print \`checking ...' messages
1279: --cache-file=FILE cache test results in FILE [disabled]
1280: -C, --config-cache alias for \`--cache-file=config.cache'
1281: -n, --no-create do not create output files
1282: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283:
1284: Installation directories:
1285: --prefix=PREFIX install architecture-independent files in PREFIX
1286: [$ac_default_prefix]
1287: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288: [PREFIX]
1289:
1290: By default, \`make install' will install all the files in
1291: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293: for instance \`--prefix=\$HOME'.
1294:
1295: For better control, use the options below.
1296:
1297: Fine tuning of the installation directories:
1298: --bindir=DIR user executables [EPREFIX/bin]
1299: --sbindir=DIR system admin executables [EPREFIX/sbin]
1300: --libexecdir=DIR program executables [EPREFIX/libexec]
1301: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304: --libdir=DIR object code libraries [EPREFIX/lib]
1305: --includedir=DIR C header files [PREFIX/include]
1306: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309: --infodir=DIR info documentation [DATAROOTDIR/info]
1310: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311: --mandir=DIR man documentation [DATAROOTDIR/man]
1312: --docdir=DIR documentation root [DATAROOTDIR/doc/mtr]
1313: --htmldir=DIR html documentation [DOCDIR]
1314: --dvidir=DIR dvi documentation [DOCDIR]
1315: --pdfdir=DIR pdf documentation [DOCDIR]
1316: --psdir=DIR ps documentation [DOCDIR]
1317: _ACEOF
1318:
1319: cat <<\_ACEOF
1320:
1321: Program names:
1322: --program-prefix=PREFIX prepend PREFIX to installed program names
1323: --program-suffix=SUFFIX append SUFFIX to installed program names
1324: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1325: _ACEOF
1326: fi
1327:
1328: if test -n "$ac_init_help"; then
1329: case $ac_init_help in
1330: short | recursive ) echo "Configuration of mtr 0.85:";;
1331: esac
1332: cat <<\_ACEOF
1333:
1334: Optional Features:
1335: --disable-option-checking ignore unrecognized --enable/--with options
1336: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338: --disable-dependency-tracking speeds up one-time build
1339: --enable-dependency-tracking do not reject slow dependency extractors
1340: --disable-ipv6 Do not enable IPv6
1341: --disable-gtktest do not try to compile and run a test GTK+ program
1342:
1343: Optional Packages:
1344: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1345: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1346: --without-gtk Do not try to use GTK+ at all
1347: --without-glib Do not try to use glib at all
1348: --without-ipinfo Do not try to use ipinfo lookup at all
1349:
1350: Some influential environment variables:
1351: CC C compiler command
1352: CFLAGS C compiler flags
1353: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354: nonstandard directory <lib dir>
1355: LIBS libraries to pass to the linker, e.g. -l<library>
1356: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357: you have headers in a nonstandard directory <include dir>
1358: CPP C preprocessor
1359: PKG_CONFIG path to pkg-config utility
1360: PKG_CONFIG_PATH
1361: directories to add to pkg-config's search path
1362: PKG_CONFIG_LIBDIR
1363: path overriding pkg-config's built-in search path
1364: GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1365: GLIB_LIBS linker flags for GLIB, overriding pkg-config
1366:
1367: Use these variables to override the choices made by `configure' or to help
1368: it to find libraries and programs with nonstandard names/locations.
1369:
1370: Report bugs to the package provider.
1371: _ACEOF
1372: ac_status=$?
1373: fi
1374:
1375: if test "$ac_init_help" = "recursive"; then
1376: # If there are subdirs, report their specific --help.
1377: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378: test -d "$ac_dir" ||
1379: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380: continue
1381: ac_builddir=.
1382:
1383: case "$ac_dir" in
1384: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385: *)
1386: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387: # A ".." for each directory in $ac_dir_suffix.
1388: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389: case $ac_top_builddir_sub in
1390: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392: esac ;;
1393: esac
1394: ac_abs_top_builddir=$ac_pwd
1395: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396: # for backward compatibility:
1397: ac_top_builddir=$ac_top_build_prefix
1398:
1399: case $srcdir in
1400: .) # We are building in place.
1401: ac_srcdir=.
1402: ac_top_srcdir=$ac_top_builddir_sub
1403: ac_abs_top_srcdir=$ac_pwd ;;
1404: [\\/]* | ?:[\\/]* ) # Absolute name.
1405: ac_srcdir=$srcdir$ac_dir_suffix;
1406: ac_top_srcdir=$srcdir
1407: ac_abs_top_srcdir=$srcdir ;;
1408: *) # Relative name.
1409: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410: ac_top_srcdir=$ac_top_build_prefix$srcdir
1411: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412: esac
1413: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414:
1415: cd "$ac_dir" || { ac_status=$?; continue; }
1416: # Check for guested configure.
1417: if test -f "$ac_srcdir/configure.gnu"; then
1418: echo &&
1419: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420: elif test -f "$ac_srcdir/configure"; then
1421: echo &&
1422: $SHELL "$ac_srcdir/configure" --help=recursive
1423: else
1424: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425: fi || ac_status=$?
1426: cd "$ac_pwd" || { ac_status=$?; break; }
1427: done
1428: fi
1429:
1430: test -n "$ac_init_help" && exit $ac_status
1431: if $ac_init_version; then
1432: cat <<\_ACEOF
1433: mtr configure 0.85
1434: generated by GNU Autoconf 2.68
1435:
1436: Copyright (C) 2010 Free Software Foundation, Inc.
1437: This configure script is free software; the Free Software Foundation
1438: gives unlimited permission to copy, distribute and modify it.
1439: _ACEOF
1440: exit
1441: fi
1442:
1443: ## ------------------------ ##
1444: ## Autoconf initialization. ##
1445: ## ------------------------ ##
1446:
1447: # ac_fn_c_try_compile LINENO
1448: # --------------------------
1449: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450: ac_fn_c_try_compile ()
1451: {
1452: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453: rm -f conftest.$ac_objext
1454: if { { ac_try="$ac_compile"
1455: case "(($ac_try" in
1456: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457: *) ac_try_echo=$ac_try;;
1458: esac
1459: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460: $as_echo "$ac_try_echo"; } >&5
1461: (eval "$ac_compile") 2>conftest.err
1462: ac_status=$?
1463: if test -s conftest.err; then
1464: grep -v '^ *+' conftest.err >conftest.er1
1465: cat conftest.er1 >&5
1466: mv -f conftest.er1 conftest.err
1467: fi
1468: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469: test $ac_status = 0; } && {
1470: test -z "$ac_c_werror_flag" ||
1471: test ! -s conftest.err
1472: } && test -s conftest.$ac_objext; then :
1473: ac_retval=0
1474: else
1475: $as_echo "$as_me: failed program was:" >&5
1476: sed 's/^/| /' conftest.$ac_ext >&5
1477:
1478: ac_retval=1
1479: fi
1480: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481: as_fn_set_status $ac_retval
1482:
1483: } # ac_fn_c_try_compile
1484:
1485: # ac_fn_c_try_run LINENO
1486: # ----------------------
1487: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1488: # that executables *can* be run.
1489: ac_fn_c_try_run ()
1490: {
1491: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492: if { { ac_try="$ac_link"
1493: case "(($ac_try" in
1494: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495: *) ac_try_echo=$ac_try;;
1496: esac
1497: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498: $as_echo "$ac_try_echo"; } >&5
1499: (eval "$ac_link") 2>&5
1500: ac_status=$?
1501: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1503: { { case "(($ac_try" in
1504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505: *) ac_try_echo=$ac_try;;
1506: esac
1507: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508: $as_echo "$ac_try_echo"; } >&5
1509: (eval "$ac_try") 2>&5
1510: ac_status=$?
1511: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512: test $ac_status = 0; }; }; then :
1513: ac_retval=0
1514: else
1515: $as_echo "$as_me: program exited with status $ac_status" >&5
1516: $as_echo "$as_me: failed program was:" >&5
1517: sed 's/^/| /' conftest.$ac_ext >&5
1518:
1519: ac_retval=$ac_status
1520: fi
1521: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1522: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523: as_fn_set_status $ac_retval
1524:
1525: } # ac_fn_c_try_run
1526:
1527: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1528: # --------------------------------------------
1529: # Tries to find the compile-time value of EXPR in a program that includes
1530: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1531: # computed
1532: ac_fn_c_compute_int ()
1533: {
1534: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535: if test "$cross_compiling" = yes; then
1536: # Depending upon the size, compute the lo and hi bounds.
1537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538: /* end confdefs.h. */
1539: $4
1540: int
1541: main ()
1542: {
1543: static int test_array [1 - 2 * !(($2) >= 0)];
1544: test_array [0] = 0
1545:
1546: ;
1547: return 0;
1548: }
1549: _ACEOF
1550: if ac_fn_c_try_compile "$LINENO"; then :
1551: ac_lo=0 ac_mid=0
1552: while :; do
1553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554: /* end confdefs.h. */
1555: $4
1556: int
1557: main ()
1558: {
1559: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1560: test_array [0] = 0
1561:
1562: ;
1563: return 0;
1564: }
1565: _ACEOF
1566: if ac_fn_c_try_compile "$LINENO"; then :
1567: ac_hi=$ac_mid; break
1568: else
1569: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1570: if test $ac_lo -le $ac_mid; then
1571: ac_lo= ac_hi=
1572: break
1573: fi
1574: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1575: fi
1576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1577: done
1578: else
1579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580: /* end confdefs.h. */
1581: $4
1582: int
1583: main ()
1584: {
1585: static int test_array [1 - 2 * !(($2) < 0)];
1586: test_array [0] = 0
1587:
1588: ;
1589: return 0;
1590: }
1591: _ACEOF
1592: if ac_fn_c_try_compile "$LINENO"; then :
1593: ac_hi=-1 ac_mid=-1
1594: while :; do
1595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596: /* end confdefs.h. */
1597: $4
1598: int
1599: main ()
1600: {
1601: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1602: test_array [0] = 0
1603:
1604: ;
1605: return 0;
1606: }
1607: _ACEOF
1608: if ac_fn_c_try_compile "$LINENO"; then :
1609: ac_lo=$ac_mid; break
1610: else
1611: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1612: if test $ac_mid -le $ac_hi; then
1613: ac_lo= ac_hi=
1614: break
1615: fi
1616: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1617: fi
1618: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619: done
1620: else
1621: ac_lo= ac_hi=
1622: fi
1623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624: fi
1625: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626: # Binary search between lo and hi bounds.
1627: while test "x$ac_lo" != "x$ac_hi"; do
1628: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630: /* end confdefs.h. */
1631: $4
1632: int
1633: main ()
1634: {
1635: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1636: test_array [0] = 0
1637:
1638: ;
1639: return 0;
1640: }
1641: _ACEOF
1642: if ac_fn_c_try_compile "$LINENO"; then :
1643: ac_hi=$ac_mid
1644: else
1645: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1646: fi
1647: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648: done
1649: case $ac_lo in #((
1650: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1651: '') ac_retval=1 ;;
1652: esac
1653: else
1654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655: /* end confdefs.h. */
1656: $4
1657: static long int longval () { return $2; }
1658: static unsigned long int ulongval () { return $2; }
1659: #include <stdio.h>
1660: #include <stdlib.h>
1661: int
1662: main ()
1663: {
1664:
1665: FILE *f = fopen ("conftest.val", "w");
1666: if (! f)
1667: return 1;
1668: if (($2) < 0)
1669: {
1670: long int i = longval ();
1671: if (i != ($2))
1672: return 1;
1673: fprintf (f, "%ld", i);
1674: }
1675: else
1676: {
1677: unsigned long int i = ulongval ();
1678: if (i != ($2))
1679: return 1;
1680: fprintf (f, "%lu", i);
1681: }
1682: /* Do not output a trailing newline, as this causes \r\n confusion
1683: on some platforms. */
1684: return ferror (f) || fclose (f) != 0;
1685:
1686: ;
1687: return 0;
1688: }
1689: _ACEOF
1690: if ac_fn_c_try_run "$LINENO"; then :
1691: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1692: else
1693: ac_retval=1
1694: fi
1695: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1696: conftest.$ac_objext conftest.beam conftest.$ac_ext
1697: rm -f conftest.val
1698:
1699: fi
1700: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701: as_fn_set_status $ac_retval
1702:
1703: } # ac_fn_c_compute_int
1704:
1705: # ac_fn_c_try_cpp LINENO
1706: # ----------------------
1707: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708: ac_fn_c_try_cpp ()
1709: {
1710: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711: if { { ac_try="$ac_cpp conftest.$ac_ext"
1712: case "(($ac_try" in
1713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714: *) ac_try_echo=$ac_try;;
1715: esac
1716: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717: $as_echo "$ac_try_echo"; } >&5
1718: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719: ac_status=$?
1720: if test -s conftest.err; then
1721: grep -v '^ *+' conftest.err >conftest.er1
1722: cat conftest.er1 >&5
1723: mv -f conftest.er1 conftest.err
1724: fi
1725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726: test $ac_status = 0; } > conftest.i && {
1727: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728: test ! -s conftest.err
1729: }; then :
1730: ac_retval=0
1731: else
1732: $as_echo "$as_me: failed program was:" >&5
1733: sed 's/^/| /' conftest.$ac_ext >&5
1734:
1735: ac_retval=1
1736: fi
1737: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738: as_fn_set_status $ac_retval
1739:
1740: } # ac_fn_c_try_cpp
1741:
1742: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743: # -------------------------------------------------------
1744: # Tests whether HEADER exists and can be compiled using the include files in
1745: # INCLUDES, setting the cache variable VAR accordingly.
1746: ac_fn_c_check_header_compile ()
1747: {
1748: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750: $as_echo_n "checking for $2... " >&6; }
1751: if eval \${$3+:} false; then :
1752: $as_echo_n "(cached) " >&6
1753: else
1754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755: /* end confdefs.h. */
1756: $4
1757: #include <$2>
1758: _ACEOF
1759: if ac_fn_c_try_compile "$LINENO"; then :
1760: eval "$3=yes"
1761: else
1762: eval "$3=no"
1763: fi
1764: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765: fi
1766: eval ac_res=\$$3
1767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768: $as_echo "$ac_res" >&6; }
1769: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770:
1771: } # ac_fn_c_check_header_compile
1772:
1773: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774: # -------------------------------------------------------
1775: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776: # the include files in INCLUDES and setting the cache variable VAR
1777: # accordingly.
1778: ac_fn_c_check_header_mongrel ()
1779: {
1780: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781: if eval \${$3+:} false; then :
1782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783: $as_echo_n "checking for $2... " >&6; }
1784: if eval \${$3+:} false; then :
1785: $as_echo_n "(cached) " >&6
1786: fi
1787: eval ac_res=\$$3
1788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789: $as_echo "$ac_res" >&6; }
1790: else
1791: # Is the header compilable?
1792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793: $as_echo_n "checking $2 usability... " >&6; }
1794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795: /* end confdefs.h. */
1796: $4
1797: #include <$2>
1798: _ACEOF
1799: if ac_fn_c_try_compile "$LINENO"; then :
1800: ac_header_compiler=yes
1801: else
1802: ac_header_compiler=no
1803: fi
1804: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806: $as_echo "$ac_header_compiler" >&6; }
1807:
1808: # Is the header present?
1809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810: $as_echo_n "checking $2 presence... " >&6; }
1811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812: /* end confdefs.h. */
1813: #include <$2>
1814: _ACEOF
1815: if ac_fn_c_try_cpp "$LINENO"; then :
1816: ac_header_preproc=yes
1817: else
1818: ac_header_preproc=no
1819: fi
1820: rm -f conftest.err conftest.i conftest.$ac_ext
1821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822: $as_echo "$ac_header_preproc" >&6; }
1823:
1824: # So? What about this header?
1825: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826: yes:no: )
1827: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831: ;;
1832: no:yes:* )
1833: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843: ;;
1844: esac
1845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846: $as_echo_n "checking for $2... " >&6; }
1847: if eval \${$3+:} false; then :
1848: $as_echo_n "(cached) " >&6
1849: else
1850: eval "$3=\$ac_header_compiler"
1851: fi
1852: eval ac_res=\$$3
1853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854: $as_echo "$ac_res" >&6; }
1855: fi
1856: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857:
1858: } # ac_fn_c_check_header_mongrel
1859:
1860: # ac_fn_c_try_link LINENO
1861: # -----------------------
1862: # Try to link conftest.$ac_ext, and return whether this succeeded.
1863: ac_fn_c_try_link ()
1864: {
1865: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866: rm -f conftest.$ac_objext conftest$ac_exeext
1867: if { { ac_try="$ac_link"
1868: case "(($ac_try" in
1869: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870: *) ac_try_echo=$ac_try;;
1871: esac
1872: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873: $as_echo "$ac_try_echo"; } >&5
1874: (eval "$ac_link") 2>conftest.err
1875: ac_status=$?
1876: if test -s conftest.err; then
1877: grep -v '^ *+' conftest.err >conftest.er1
1878: cat conftest.er1 >&5
1879: mv -f conftest.er1 conftest.err
1880: fi
1881: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882: test $ac_status = 0; } && {
1883: test -z "$ac_c_werror_flag" ||
1884: test ! -s conftest.err
1885: } && test -s conftest$ac_exeext && {
1886: test "$cross_compiling" = yes ||
1887: $as_test_x conftest$ac_exeext
1888: }; then :
1889: ac_retval=0
1890: else
1891: $as_echo "$as_me: failed program was:" >&5
1892: sed 's/^/| /' conftest.$ac_ext >&5
1893:
1894: ac_retval=1
1895: fi
1896: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898: # interfere with the next link command; also delete a directory that is
1899: # left behind by Apple's compiler. We do this before executing the actions.
1900: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902: as_fn_set_status $ac_retval
1903:
1904: } # ac_fn_c_try_link
1905:
1906: # ac_fn_c_check_func LINENO FUNC VAR
1907: # ----------------------------------
1908: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909: ac_fn_c_check_func ()
1910: {
1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913: $as_echo_n "checking for $2... " >&6; }
1914: if eval \${$3+:} false; then :
1915: $as_echo_n "(cached) " >&6
1916: else
1917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918: /* end confdefs.h. */
1919: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921: #define $2 innocuous_$2
1922:
1923: /* System header to define __stub macros and hopefully few prototypes,
1924: which can conflict with char $2 (); below.
1925: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926: <limits.h> exists even on freestanding compilers. */
1927:
1928: #ifdef __STDC__
1929: # include <limits.h>
1930: #else
1931: # include <assert.h>
1932: #endif
1933:
1934: #undef $2
1935:
1936: /* Override any GCC internal prototype to avoid an error.
1937: Use char because int might match the return type of a GCC
1938: builtin and then its argument prototype would still apply. */
1939: #ifdef __cplusplus
1940: extern "C"
1941: #endif
1942: char $2 ();
1943: /* The GNU C library defines this for functions which it implements
1944: to always fail with ENOSYS. Some functions are actually named
1945: something starting with __ and the normal name is an alias. */
1946: #if defined __stub_$2 || defined __stub___$2
1947: choke me
1948: #endif
1949:
1950: int
1951: main ()
1952: {
1953: return $2 ();
1954: ;
1955: return 0;
1956: }
1957: _ACEOF
1958: if ac_fn_c_try_link "$LINENO"; then :
1959: eval "$3=yes"
1960: else
1961: eval "$3=no"
1962: fi
1963: rm -f core conftest.err conftest.$ac_objext \
1964: conftest$ac_exeext conftest.$ac_ext
1965: fi
1966: eval ac_res=\$$3
1967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968: $as_echo "$ac_res" >&6; }
1969: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970:
1971: } # ac_fn_c_check_func
1972:
1973: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1974: # ---------------------------------------------
1975: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1976: # accordingly.
1977: ac_fn_c_check_decl ()
1978: {
1979: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980: as_decl_name=`echo $2|sed 's/ *(.*//'`
1981: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1983: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1984: if eval \${$3+:} false; then :
1985: $as_echo_n "(cached) " >&6
1986: else
1987: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988: /* end confdefs.h. */
1989: $4
1990: int
1991: main ()
1992: {
1993: #ifndef $as_decl_name
1994: #ifdef __cplusplus
1995: (void) $as_decl_use;
1996: #else
1997: (void) $as_decl_name;
1998: #endif
1999: #endif
2000:
2001: ;
2002: return 0;
2003: }
2004: _ACEOF
2005: if ac_fn_c_try_compile "$LINENO"; then :
2006: eval "$3=yes"
2007: else
2008: eval "$3=no"
2009: fi
2010: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011: fi
2012: eval ac_res=\$$3
2013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014: $as_echo "$ac_res" >&6; }
2015: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016:
2017: } # ac_fn_c_check_decl
2018:
2019: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020: # -------------------------------------------
2021: # Tests whether TYPE exists after having included INCLUDES, setting cache
2022: # variable VAR accordingly.
2023: ac_fn_c_check_type ()
2024: {
2025: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027: $as_echo_n "checking for $2... " >&6; }
2028: if eval \${$3+:} false; then :
2029: $as_echo_n "(cached) " >&6
2030: else
2031: eval "$3=no"
2032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033: /* end confdefs.h. */
2034: $4
2035: int
2036: main ()
2037: {
2038: if (sizeof ($2))
2039: return 0;
2040: ;
2041: return 0;
2042: }
2043: _ACEOF
2044: if ac_fn_c_try_compile "$LINENO"; then :
2045: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046: /* end confdefs.h. */
2047: $4
2048: int
2049: main ()
2050: {
2051: if (sizeof (($2)))
2052: return 0;
2053: ;
2054: return 0;
2055: }
2056: _ACEOF
2057: if ac_fn_c_try_compile "$LINENO"; then :
2058:
2059: else
2060: eval "$3=yes"
2061: fi
2062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063: fi
2064: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065: fi
2066: eval ac_res=\$$3
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068: $as_echo "$ac_res" >&6; }
2069: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070:
2071: } # ac_fn_c_check_type
2072: cat >config.log <<_ACEOF
2073: This file contains any messages produced by compilers while
2074: running configure, to aid debugging if configure makes a mistake.
2075:
2076: It was created by mtr $as_me 0.85, which was
2077: generated by GNU Autoconf 2.68. Invocation command line was
2078:
2079: $ $0 $@
2080:
2081: _ACEOF
2082: exec 5>>config.log
2083: {
2084: cat <<_ASUNAME
2085: ## --------- ##
2086: ## Platform. ##
2087: ## --------- ##
2088:
2089: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2090: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2091: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2092: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2093: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2094:
2095: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2096: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2097:
2098: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2099: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2100: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2101: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2102: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2103: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2104: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2105:
2106: _ASUNAME
2107:
2108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109: for as_dir in $PATH
2110: do
2111: IFS=$as_save_IFS
2112: test -z "$as_dir" && as_dir=.
2113: $as_echo "PATH: $as_dir"
2114: done
2115: IFS=$as_save_IFS
2116:
2117: } >&5
2118:
2119: cat >&5 <<_ACEOF
2120:
2121:
2122: ## ----------- ##
2123: ## Core tests. ##
2124: ## ----------- ##
2125:
2126: _ACEOF
2127:
2128:
2129: # Keep a trace of the command line.
2130: # Strip out --no-create and --no-recursion so they do not pile up.
2131: # Strip out --silent because we don't want to record it for future runs.
2132: # Also quote any args containing shell meta-characters.
2133: # Make two passes to allow for proper duplicate-argument suppression.
2134: ac_configure_args=
2135: ac_configure_args0=
2136: ac_configure_args1=
2137: ac_must_keep_next=false
2138: for ac_pass in 1 2
2139: do
2140: for ac_arg
2141: do
2142: case $ac_arg in
2143: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145: | -silent | --silent | --silen | --sile | --sil)
2146: continue ;;
2147: *\'*)
2148: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2149: esac
2150: case $ac_pass in
2151: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2152: 2)
2153: as_fn_append ac_configure_args1 " '$ac_arg'"
2154: if test $ac_must_keep_next = true; then
2155: ac_must_keep_next=false # Got value, back to normal.
2156: else
2157: case $ac_arg in
2158: *=* | --config-cache | -C | -disable-* | --disable-* \
2159: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161: | -with-* | --with-* | -without-* | --without-* | --x)
2162: case "$ac_configure_args0 " in
2163: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164: esac
2165: ;;
2166: -* ) ac_must_keep_next=true ;;
2167: esac
2168: fi
2169: as_fn_append ac_configure_args " '$ac_arg'"
2170: ;;
2171: esac
2172: done
2173: done
2174: { ac_configure_args0=; unset ac_configure_args0;}
2175: { ac_configure_args1=; unset ac_configure_args1;}
2176:
2177: # When interrupted or exit'd, cleanup temporary files, and complete
2178: # config.log. We remove comments because anyway the quotes in there
2179: # would cause problems or look ugly.
2180: # WARNING: Use '\'' to represent an apostrophe within the trap.
2181: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2182: trap 'exit_status=$?
2183: # Save into config.log some information that might help in debugging.
2184: {
2185: echo
2186:
2187: $as_echo "## ---------------- ##
2188: ## Cache variables. ##
2189: ## ---------------- ##"
2190: echo
2191: # The following way of writing the cache mishandles newlines in values,
2192: (
2193: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2194: eval ac_val=\$$ac_var
2195: case $ac_val in #(
2196: *${as_nl}*)
2197: case $ac_var in #(
2198: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200: esac
2201: case $ac_var in #(
2202: _ | IFS | as_nl) ;; #(
2203: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2204: *) { eval $ac_var=; unset $ac_var;} ;;
2205: esac ;;
2206: esac
2207: done
2208: (set) 2>&1 |
2209: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2210: *${as_nl}ac_space=\ *)
2211: sed -n \
2212: "s/'\''/'\''\\\\'\'''\''/g;
2213: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214: ;; #(
2215: *)
2216: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2217: ;;
2218: esac |
2219: sort
2220: )
2221: echo
2222:
2223: $as_echo "## ----------------- ##
2224: ## Output variables. ##
2225: ## ----------------- ##"
2226: echo
2227: for ac_var in $ac_subst_vars
2228: do
2229: eval ac_val=\$$ac_var
2230: case $ac_val in
2231: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232: esac
2233: $as_echo "$ac_var='\''$ac_val'\''"
2234: done | sort
2235: echo
2236:
2237: if test -n "$ac_subst_files"; then
2238: $as_echo "## ------------------- ##
2239: ## File substitutions. ##
2240: ## ------------------- ##"
2241: echo
2242: for ac_var in $ac_subst_files
2243: do
2244: eval ac_val=\$$ac_var
2245: case $ac_val in
2246: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247: esac
2248: $as_echo "$ac_var='\''$ac_val'\''"
2249: done | sort
2250: echo
2251: fi
2252:
2253: if test -s confdefs.h; then
2254: $as_echo "## ----------- ##
2255: ## confdefs.h. ##
2256: ## ----------- ##"
2257: echo
2258: cat confdefs.h
2259: echo
2260: fi
2261: test "$ac_signal" != 0 &&
2262: $as_echo "$as_me: caught signal $ac_signal"
2263: $as_echo "$as_me: exit $exit_status"
2264: } >&5
2265: rm -f core *.core core.conftest.* &&
2266: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267: exit $exit_status
2268: ' 0
2269: for ac_signal in 1 2 13 15; do
2270: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271: done
2272: ac_signal=0
2273:
2274: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2275: rm -f -r conftest* confdefs.h
2276:
2277: $as_echo "/* confdefs.h */" > confdefs.h
2278:
2279: # Predefined preprocessor variables.
2280:
2281: cat >>confdefs.h <<_ACEOF
2282: #define PACKAGE_NAME "$PACKAGE_NAME"
2283: _ACEOF
2284:
2285: cat >>confdefs.h <<_ACEOF
2286: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287: _ACEOF
2288:
2289: cat >>confdefs.h <<_ACEOF
2290: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2291: _ACEOF
2292:
2293: cat >>confdefs.h <<_ACEOF
2294: #define PACKAGE_STRING "$PACKAGE_STRING"
2295: _ACEOF
2296:
2297: cat >>confdefs.h <<_ACEOF
2298: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299: _ACEOF
2300:
2301: cat >>confdefs.h <<_ACEOF
2302: #define PACKAGE_URL "$PACKAGE_URL"
2303: _ACEOF
2304:
2305:
2306: # Let the site file select an alternate cache file if it wants to.
2307: # Prefer an explicitly selected file to automatically selected ones.
2308: ac_site_file1=NONE
2309: ac_site_file2=NONE
2310: if test -n "$CONFIG_SITE"; then
2311: # We do not want a PATH search for config.site.
2312: case $CONFIG_SITE in #((
2313: -*) ac_site_file1=./$CONFIG_SITE;;
2314: */*) ac_site_file1=$CONFIG_SITE;;
2315: *) ac_site_file1=./$CONFIG_SITE;;
2316: esac
2317: elif test "x$prefix" != xNONE; then
2318: ac_site_file1=$prefix/share/config.site
2319: ac_site_file2=$prefix/etc/config.site
2320: else
2321: ac_site_file1=$ac_default_prefix/share/config.site
2322: ac_site_file2=$ac_default_prefix/etc/config.site
2323: fi
2324: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2325: do
2326: test "x$ac_site_file" = xNONE && continue
2327: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2328: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2329: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2330: sed 's/^/| /' "$ac_site_file" >&5
2331: . "$ac_site_file" \
2332: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334: as_fn_error $? "failed to load site script $ac_site_file
2335: See \`config.log' for more details" "$LINENO" 5; }
2336: fi
2337: done
2338:
2339: if test -r "$cache_file"; then
2340: # Some versions of bash will fail to source /dev/null (special files
2341: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2344: $as_echo "$as_me: loading cache $cache_file" >&6;}
2345: case $cache_file in
2346: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347: *) . "./$cache_file";;
2348: esac
2349: fi
2350: else
2351: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2352: $as_echo "$as_me: creating cache $cache_file" >&6;}
2353: >$cache_file
2354: fi
2355:
2356: # Check that the precious variables saved in the cache have kept the same
2357: # value.
2358: ac_cache_corrupted=false
2359: for ac_var in $ac_precious_vars; do
2360: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2361: eval ac_new_set=\$ac_env_${ac_var}_set
2362: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2363: eval ac_new_val=\$ac_env_${ac_var}_value
2364: case $ac_old_set,$ac_new_set in
2365: set,)
2366: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2367: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2368: ac_cache_corrupted=: ;;
2369: ,set)
2370: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2371: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2372: ac_cache_corrupted=: ;;
2373: ,);;
2374: *)
2375: if test "x$ac_old_val" != "x$ac_new_val"; then
2376: # differences in whitespace do not lead to failure.
2377: ac_old_val_w=`echo x $ac_old_val`
2378: ac_new_val_w=`echo x $ac_new_val`
2379: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2380: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2381: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2382: ac_cache_corrupted=:
2383: else
2384: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2385: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2386: eval $ac_var=\$ac_old_val
2387: fi
2388: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2389: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2390: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2391: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2392: fi;;
2393: esac
2394: # Pass precious variables to config.status.
2395: if test "$ac_new_set" = set; then
2396: case $ac_new_val in
2397: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2398: *) ac_arg=$ac_var=$ac_new_val ;;
2399: esac
2400: case " $ac_configure_args " in
2401: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2402: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2403: esac
2404: fi
2405: done
2406: if $ac_cache_corrupted; then
2407: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2408: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2409: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2410: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2411: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2412: fi
2413: ## -------------------- ##
2414: ## Main body of script. ##
2415: ## -------------------- ##
2416:
2417: ac_ext=c
2418: ac_cpp='$CPP $CPPFLAGS'
2419: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422:
2423:
2424:
2425: am__api_version='1.11'
2426:
2427: ac_aux_dir=
2428: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2429: if test -f "$ac_dir/install-sh"; then
2430: ac_aux_dir=$ac_dir
2431: ac_install_sh="$ac_aux_dir/install-sh -c"
2432: break
2433: elif test -f "$ac_dir/install.sh"; then
2434: ac_aux_dir=$ac_dir
2435: ac_install_sh="$ac_aux_dir/install.sh -c"
2436: break
2437: elif test -f "$ac_dir/shtool"; then
2438: ac_aux_dir=$ac_dir
2439: ac_install_sh="$ac_aux_dir/shtool install -c"
2440: break
2441: fi
2442: done
2443: if test -z "$ac_aux_dir"; then
2444: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445: fi
2446:
2447: # These three variables are undocumented and unsupported,
2448: # and are intended to be withdrawn in a future Autoconf release.
2449: # They can cause serious problems if a builder's source tree is in a directory
2450: # whose full name contains unusual characters.
2451: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2452: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2453: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2454:
2455:
2456: # Find a good install program. We prefer a C program (faster),
2457: # so one script is as good as another. But avoid the broken or
2458: # incompatible versions:
2459: # SysV /etc/install, /usr/sbin/install
2460: # SunOS /usr/etc/install
2461: # IRIX /sbin/install
2462: # AIX /bin/install
2463: # AmigaOS /C/install, which installs bootblocks on floppy discs
2464: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467: # OS/2's system install, which has a completely different semantic
2468: # ./install, which can be erroneously created by make from ./install.sh.
2469: # Reject install programs that cannot install multiple files.
2470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2471: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2472: if test -z "$INSTALL"; then
2473: if ${ac_cv_path_install+:} false; then :
2474: $as_echo_n "(cached) " >&6
2475: else
2476: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477: for as_dir in $PATH
2478: do
2479: IFS=$as_save_IFS
2480: test -z "$as_dir" && as_dir=.
2481: # Account for people who put trailing slashes in PATH elements.
2482: case $as_dir/ in #((
2483: ./ | .// | /[cC]/* | \
2484: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2486: /usr/ucb/* ) ;;
2487: *)
2488: # OSF1 and SCO ODT 3.0 have their own names for install.
2489: # Don't use installbsd from OSF since it installs stuff as root
2490: # by default.
2491: for ac_prog in ginstall scoinst install; do
2492: for ac_exec_ext in '' $ac_executable_extensions; do
2493: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494: if test $ac_prog = install &&
2495: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496: # AIX install. It has an incompatible calling convention.
2497: :
2498: elif test $ac_prog = install &&
2499: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500: # program-specific install script used by HP pwplus--don't use.
2501: :
2502: else
2503: rm -rf conftest.one conftest.two conftest.dir
2504: echo one > conftest.one
2505: echo two > conftest.two
2506: mkdir conftest.dir
2507: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508: test -s conftest.one && test -s conftest.two &&
2509: test -s conftest.dir/conftest.one &&
2510: test -s conftest.dir/conftest.two
2511: then
2512: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513: break 3
2514: fi
2515: fi
2516: fi
2517: done
2518: done
2519: ;;
2520: esac
2521:
2522: done
2523: IFS=$as_save_IFS
2524:
2525: rm -rf conftest.one conftest.two conftest.dir
2526:
2527: fi
2528: if test "${ac_cv_path_install+set}" = set; then
2529: INSTALL=$ac_cv_path_install
2530: else
2531: # As a last resort, use the slow shell script. Don't cache a
2532: # value for INSTALL within a source directory, because that will
2533: # break other packages using the cache if that directory is
2534: # removed, or if the value is a relative name.
2535: INSTALL=$ac_install_sh
2536: fi
2537: fi
2538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2539: $as_echo "$INSTALL" >&6; }
2540:
2541: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542: # It thinks the first close brace ends the variable substitution.
2543: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544:
2545: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546:
2547: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548:
2549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2550: $as_echo_n "checking whether build environment is sane... " >&6; }
2551: # Just in case
2552: sleep 1
2553: echo timestamp > conftest.file
2554: # Reject unsafe characters in $srcdir or the absolute working directory
2555: # name. Accept space and tab only in the latter.
2556: am_lf='
2557: '
2558: case `pwd` in
2559: *[\\\"\#\$\&\'\`$am_lf]*)
2560: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2561: esac
2562: case $srcdir in
2563: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2564: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2565: esac
2566:
2567: # Do `set' in a subshell so we don't clobber the current shell's
2568: # arguments. Must try -L first in case configure is actually a
2569: # symlink; some systems play weird games with the mod time of symlinks
2570: # (eg FreeBSD returns the mod time of the symlink's containing
2571: # directory).
2572: if (
2573: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2574: if test "$*" = "X"; then
2575: # -L didn't work.
2576: set X `ls -t "$srcdir/configure" conftest.file`
2577: fi
2578: rm -f conftest.file
2579: if test "$*" != "X $srcdir/configure conftest.file" \
2580: && test "$*" != "X conftest.file $srcdir/configure"; then
2581:
2582: # If neither matched, then we have a broken ls. This can happen
2583: # if, for instance, CONFIG_SHELL is bash and it inherits a
2584: # broken ls alias from the environment. This has actually
2585: # happened. Such a system could not be considered "sane".
2586: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2587: alias in your environment" "$LINENO" 5
2588: fi
2589:
2590: test "$2" = conftest.file
2591: )
2592: then
2593: # Ok.
2594: :
2595: else
2596: as_fn_error $? "newly created file is older than distributed files!
2597: Check your system clock" "$LINENO" 5
2598: fi
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600: $as_echo "yes" >&6; }
2601: test "$program_prefix" != NONE &&
2602: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603: # Use a double $ so make ignores it.
2604: test "$program_suffix" != NONE &&
2605: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606: # Double any \ or $.
2607: # By default was `s,x,x', remove it if useless.
2608: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610:
2611: # expand $ac_aux_dir to an absolute path
2612: am_aux_dir=`cd $ac_aux_dir && pwd`
2613:
2614: if test x"${MISSING+set}" != xset; then
2615: case $am_aux_dir in
2616: *\ * | *\ *)
2617: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618: *)
2619: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620: esac
2621: fi
2622: # Use eval to expand $SHELL
2623: if eval "$MISSING --run true"; then
2624: am_missing_run="$MISSING --run "
2625: else
2626: am_missing_run=
2627: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2628: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629: fi
2630:
2631: if test x"${install_sh}" != xset; then
2632: case $am_aux_dir in
2633: *\ * | *\ *)
2634: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635: *)
2636: install_sh="\${SHELL} $am_aux_dir/install-sh"
2637: esac
2638: fi
2639:
2640: # Installed binaries are usually stripped using `strip' when the user
2641: # run `make install-strip'. However `strip' might not be the right
2642: # tool to use in cross-compilation environments, therefore Automake
2643: # will honor the `STRIP' environment variable to overrule this program.
2644: if test "$cross_compiling" != no; then
2645: if test -n "$ac_tool_prefix"; then
2646: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647: set dummy ${ac_tool_prefix}strip; ac_word=$2
2648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649: $as_echo_n "checking for $ac_word... " >&6; }
2650: if ${ac_cv_prog_STRIP+:} false; then :
2651: $as_echo_n "(cached) " >&6
2652: else
2653: if test -n "$STRIP"; then
2654: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655: else
2656: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657: for as_dir in $PATH
2658: do
2659: IFS=$as_save_IFS
2660: test -z "$as_dir" && as_dir=.
2661: for ac_exec_ext in '' $ac_executable_extensions; do
2662: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665: break 2
2666: fi
2667: done
2668: done
2669: IFS=$as_save_IFS
2670:
2671: fi
2672: fi
2673: STRIP=$ac_cv_prog_STRIP
2674: if test -n "$STRIP"; then
2675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676: $as_echo "$STRIP" >&6; }
2677: else
2678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679: $as_echo "no" >&6; }
2680: fi
2681:
2682:
2683: fi
2684: if test -z "$ac_cv_prog_STRIP"; then
2685: ac_ct_STRIP=$STRIP
2686: # Extract the first word of "strip", so it can be a program name with args.
2687: set dummy strip; ac_word=$2
2688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689: $as_echo_n "checking for $ac_word... " >&6; }
2690: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2691: $as_echo_n "(cached) " >&6
2692: else
2693: if test -n "$ac_ct_STRIP"; then
2694: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695: else
2696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697: for as_dir in $PATH
2698: do
2699: IFS=$as_save_IFS
2700: test -z "$as_dir" && as_dir=.
2701: for ac_exec_ext in '' $ac_executable_extensions; do
2702: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703: ac_cv_prog_ac_ct_STRIP="strip"
2704: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705: break 2
2706: fi
2707: done
2708: done
2709: IFS=$as_save_IFS
2710:
2711: fi
2712: fi
2713: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714: if test -n "$ac_ct_STRIP"; then
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716: $as_echo "$ac_ct_STRIP" >&6; }
2717: else
2718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719: $as_echo "no" >&6; }
2720: fi
2721:
2722: if test "x$ac_ct_STRIP" = x; then
2723: STRIP=":"
2724: else
2725: case $cross_compiling:$ac_tool_warned in
2726: yes:)
2727: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729: ac_tool_warned=yes ;;
2730: esac
2731: STRIP=$ac_ct_STRIP
2732: fi
2733: else
2734: STRIP="$ac_cv_prog_STRIP"
2735: fi
2736:
2737: fi
2738: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739:
2740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742: if test -z "$MKDIR_P"; then
2743: if ${ac_cv_path_mkdir+:} false; then :
2744: $as_echo_n "(cached) " >&6
2745: else
2746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748: do
2749: IFS=$as_save_IFS
2750: test -z "$as_dir" && as_dir=.
2751: for ac_prog in mkdir gmkdir; do
2752: for ac_exec_ext in '' $ac_executable_extensions; do
2753: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755: 'mkdir (GNU coreutils) '* | \
2756: 'mkdir (coreutils) '* | \
2757: 'mkdir (fileutils) '4.1*)
2758: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759: break 3;;
2760: esac
2761: done
2762: done
2763: done
2764: IFS=$as_save_IFS
2765:
2766: fi
2767:
2768: test -d ./--version && rmdir ./--version
2769: if test "${ac_cv_path_mkdir+set}" = set; then
2770: MKDIR_P="$ac_cv_path_mkdir -p"
2771: else
2772: # As a last resort, use the slow shell script. Don't cache a
2773: # value for MKDIR_P within a source directory, because that will
2774: # break other packages using the cache if that directory is
2775: # removed, or if the value is a relative name.
2776: MKDIR_P="$ac_install_sh -d"
2777: fi
2778: fi
2779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780: $as_echo "$MKDIR_P" >&6; }
2781:
2782: mkdir_p="$MKDIR_P"
2783: case $mkdir_p in
2784: [\\/$]* | ?:[\\/]*) ;;
2785: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2786: esac
2787:
2788: for ac_prog in gawk mawk nawk awk
2789: do
2790: # Extract the first word of "$ac_prog", so it can be a program name with args.
2791: set dummy $ac_prog; ac_word=$2
2792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793: $as_echo_n "checking for $ac_word... " >&6; }
2794: if ${ac_cv_prog_AWK+:} false; then :
2795: $as_echo_n "(cached) " >&6
2796: else
2797: if test -n "$AWK"; then
2798: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799: else
2800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801: for as_dir in $PATH
2802: do
2803: IFS=$as_save_IFS
2804: test -z "$as_dir" && as_dir=.
2805: for ac_exec_ext in '' $ac_executable_extensions; do
2806: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807: ac_cv_prog_AWK="$ac_prog"
2808: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809: break 2
2810: fi
2811: done
2812: done
2813: IFS=$as_save_IFS
2814:
2815: fi
2816: fi
2817: AWK=$ac_cv_prog_AWK
2818: if test -n "$AWK"; then
2819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820: $as_echo "$AWK" >&6; }
2821: else
2822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823: $as_echo "no" >&6; }
2824: fi
2825:
2826:
2827: test -n "$AWK" && break
2828: done
2829:
2830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832: set x ${MAKE-make}
2833: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2835: $as_echo_n "(cached) " >&6
2836: else
2837: cat >conftest.make <<\_ACEOF
2838: SHELL = /bin/sh
2839: all:
2840: @echo '@@@%%%=$(MAKE)=@@@%%%'
2841: _ACEOF
2842: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2843: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844: *@@@%%%=?*=@@@%%%*)
2845: eval ac_cv_prog_make_${ac_make}_set=yes;;
2846: *)
2847: eval ac_cv_prog_make_${ac_make}_set=no;;
2848: esac
2849: rm -f conftest.make
2850: fi
2851: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853: $as_echo "yes" >&6; }
2854: SET_MAKE=
2855: else
2856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857: $as_echo "no" >&6; }
2858: SET_MAKE="MAKE=${MAKE-make}"
2859: fi
2860:
2861: rm -rf .tst 2>/dev/null
2862: mkdir .tst 2>/dev/null
2863: if test -d .tst; then
2864: am__leading_dot=.
2865: else
2866: am__leading_dot=_
2867: fi
2868: rmdir .tst 2>/dev/null
2869:
2870: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872: # is not polluted with repeated "-I."
2873: am__isrc=' -I$(srcdir)'
2874: # test to see if srcdir already configured
2875: if test -f $srcdir/config.status; then
2876: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877: fi
2878: fi
2879:
2880: # test whether we have cygpath
2881: if test -z "$CYGPATH_W"; then
2882: if (cygpath --version) >/dev/null 2>/dev/null; then
2883: CYGPATH_W='cygpath -w'
2884: else
2885: CYGPATH_W=echo
2886: fi
2887: fi
2888:
2889:
2890: # Define the identity of the package.
2891: PACKAGE='mtr'
2892: VERSION='0.85'
2893:
2894:
2895: cat >>confdefs.h <<_ACEOF
2896: #define PACKAGE "$PACKAGE"
2897: _ACEOF
2898:
2899:
2900: cat >>confdefs.h <<_ACEOF
2901: #define VERSION "$VERSION"
2902: _ACEOF
2903:
2904: # Some tools Automake needs.
2905:
2906: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907:
2908:
2909: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910:
2911:
2912: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913:
2914:
2915: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916:
2917:
2918: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919:
2920: # We need awk for the "check" target. The system "awk" is bad on
2921: # some platforms.
2922: # Always define AMTAR for backward compatibility.
2923:
2924: AMTAR=${AMTAR-"${am_missing_run}tar"}
2925:
2926: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2927:
2928:
2929:
2930:
2931:
2932:
2933: ac_config_files="$ac_config_files version.h.tmp:version.h.in"
2934:
2935:
2936:
2937:
2938:
2939: GTK_OBJ=gtk.o
2940: CURSES_OBJ=curses.o
2941:
2942: ac_ext=c
2943: ac_cpp='$CPP $CPPFLAGS'
2944: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947: if test -n "$ac_tool_prefix"; then
2948: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2949: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951: $as_echo_n "checking for $ac_word... " >&6; }
2952: if ${ac_cv_prog_CC+:} false; then :
2953: $as_echo_n "(cached) " >&6
2954: else
2955: if test -n "$CC"; then
2956: ac_cv_prog_CC="$CC" # Let the user override the test.
2957: else
2958: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959: for as_dir in $PATH
2960: do
2961: IFS=$as_save_IFS
2962: test -z "$as_dir" && as_dir=.
2963: for ac_exec_ext in '' $ac_executable_extensions; do
2964: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2966: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967: break 2
2968: fi
2969: done
2970: done
2971: IFS=$as_save_IFS
2972:
2973: fi
2974: fi
2975: CC=$ac_cv_prog_CC
2976: if test -n "$CC"; then
2977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978: $as_echo "$CC" >&6; }
2979: else
2980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981: $as_echo "no" >&6; }
2982: fi
2983:
2984:
2985: fi
2986: if test -z "$ac_cv_prog_CC"; then
2987: ac_ct_CC=$CC
2988: # Extract the first word of "gcc", so it can be a program name with args.
2989: set dummy gcc; ac_word=$2
2990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991: $as_echo_n "checking for $ac_word... " >&6; }
2992: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2993: $as_echo_n "(cached) " >&6
2994: else
2995: if test -n "$ac_ct_CC"; then
2996: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997: else
2998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999: for as_dir in $PATH
3000: do
3001: IFS=$as_save_IFS
3002: test -z "$as_dir" && as_dir=.
3003: for ac_exec_ext in '' $ac_executable_extensions; do
3004: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005: ac_cv_prog_ac_ct_CC="gcc"
3006: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007: break 2
3008: fi
3009: done
3010: done
3011: IFS=$as_save_IFS
3012:
3013: fi
3014: fi
3015: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016: if test -n "$ac_ct_CC"; then
3017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018: $as_echo "$ac_ct_CC" >&6; }
3019: else
3020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021: $as_echo "no" >&6; }
3022: fi
3023:
3024: if test "x$ac_ct_CC" = x; then
3025: CC=""
3026: else
3027: case $cross_compiling:$ac_tool_warned in
3028: yes:)
3029: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031: ac_tool_warned=yes ;;
3032: esac
3033: CC=$ac_ct_CC
3034: fi
3035: else
3036: CC="$ac_cv_prog_CC"
3037: fi
3038:
3039: if test -z "$CC"; then
3040: if test -n "$ac_tool_prefix"; then
3041: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3042: set dummy ${ac_tool_prefix}cc; ac_word=$2
3043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044: $as_echo_n "checking for $ac_word... " >&6; }
3045: if ${ac_cv_prog_CC+:} false; then :
3046: $as_echo_n "(cached) " >&6
3047: else
3048: if test -n "$CC"; then
3049: ac_cv_prog_CC="$CC" # Let the user override the test.
3050: else
3051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052: for as_dir in $PATH
3053: do
3054: IFS=$as_save_IFS
3055: test -z "$as_dir" && as_dir=.
3056: for ac_exec_ext in '' $ac_executable_extensions; do
3057: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058: ac_cv_prog_CC="${ac_tool_prefix}cc"
3059: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060: break 2
3061: fi
3062: done
3063: done
3064: IFS=$as_save_IFS
3065:
3066: fi
3067: fi
3068: CC=$ac_cv_prog_CC
3069: if test -n "$CC"; then
3070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071: $as_echo "$CC" >&6; }
3072: else
3073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074: $as_echo "no" >&6; }
3075: fi
3076:
3077:
3078: fi
3079: fi
3080: if test -z "$CC"; then
3081: # Extract the first word of "cc", so it can be a program name with args.
3082: set dummy cc; ac_word=$2
3083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084: $as_echo_n "checking for $ac_word... " >&6; }
3085: if ${ac_cv_prog_CC+:} false; then :
3086: $as_echo_n "(cached) " >&6
3087: else
3088: if test -n "$CC"; then
3089: ac_cv_prog_CC="$CC" # Let the user override the test.
3090: else
3091: ac_prog_rejected=no
3092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093: for as_dir in $PATH
3094: do
3095: IFS=$as_save_IFS
3096: test -z "$as_dir" && as_dir=.
3097: for ac_exec_ext in '' $ac_executable_extensions; do
3098: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3100: ac_prog_rejected=yes
3101: continue
3102: fi
3103: ac_cv_prog_CC="cc"
3104: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105: break 2
3106: fi
3107: done
3108: done
3109: IFS=$as_save_IFS
3110:
3111: if test $ac_prog_rejected = yes; then
3112: # We found a bogon in the path, so make sure we never use it.
3113: set dummy $ac_cv_prog_CC
3114: shift
3115: if test $# != 0; then
3116: # We chose a different compiler from the bogus one.
3117: # However, it has the same basename, so the bogon will be chosen
3118: # first if we set CC to just the basename; use the full file name.
3119: shift
3120: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3121: fi
3122: fi
3123: fi
3124: fi
3125: CC=$ac_cv_prog_CC
3126: if test -n "$CC"; then
3127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128: $as_echo "$CC" >&6; }
3129: else
3130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131: $as_echo "no" >&6; }
3132: fi
3133:
3134:
3135: fi
3136: if test -z "$CC"; then
3137: if test -n "$ac_tool_prefix"; then
3138: for ac_prog in cl.exe
3139: do
3140: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3141: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143: $as_echo_n "checking for $ac_word... " >&6; }
3144: if ${ac_cv_prog_CC+:} false; then :
3145: $as_echo_n "(cached) " >&6
3146: else
3147: if test -n "$CC"; then
3148: ac_cv_prog_CC="$CC" # Let the user override the test.
3149: else
3150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151: for as_dir in $PATH
3152: do
3153: IFS=$as_save_IFS
3154: test -z "$as_dir" && as_dir=.
3155: for ac_exec_ext in '' $ac_executable_extensions; do
3156: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3158: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159: break 2
3160: fi
3161: done
3162: done
3163: IFS=$as_save_IFS
3164:
3165: fi
3166: fi
3167: CC=$ac_cv_prog_CC
3168: if test -n "$CC"; then
3169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170: $as_echo "$CC" >&6; }
3171: else
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173: $as_echo "no" >&6; }
3174: fi
3175:
3176:
3177: test -n "$CC" && break
3178: done
3179: fi
3180: if test -z "$CC"; then
3181: ac_ct_CC=$CC
3182: for ac_prog in cl.exe
3183: do
3184: # Extract the first word of "$ac_prog", so it can be a program name with args.
3185: set dummy $ac_prog; ac_word=$2
3186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187: $as_echo_n "checking for $ac_word... " >&6; }
3188: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3189: $as_echo_n "(cached) " >&6
3190: else
3191: if test -n "$ac_ct_CC"; then
3192: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193: else
3194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195: for as_dir in $PATH
3196: do
3197: IFS=$as_save_IFS
3198: test -z "$as_dir" && as_dir=.
3199: for ac_exec_ext in '' $ac_executable_extensions; do
3200: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201: ac_cv_prog_ac_ct_CC="$ac_prog"
3202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203: break 2
3204: fi
3205: done
3206: done
3207: IFS=$as_save_IFS
3208:
3209: fi
3210: fi
3211: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212: if test -n "$ac_ct_CC"; then
3213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214: $as_echo "$ac_ct_CC" >&6; }
3215: else
3216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217: $as_echo "no" >&6; }
3218: fi
3219:
3220:
3221: test -n "$ac_ct_CC" && break
3222: done
3223:
3224: if test "x$ac_ct_CC" = x; then
3225: CC=""
3226: else
3227: case $cross_compiling:$ac_tool_warned in
3228: yes:)
3229: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231: ac_tool_warned=yes ;;
3232: esac
3233: CC=$ac_ct_CC
3234: fi
3235: fi
3236:
3237: fi
3238:
3239:
3240: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242: as_fn_error $? "no acceptable C compiler found in \$PATH
3243: See \`config.log' for more details" "$LINENO" 5; }
3244:
3245: # Provide some information about the compiler.
3246: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3247: set X $ac_compile
3248: ac_compiler=$2
3249: for ac_option in --version -v -V -qversion; do
3250: { { ac_try="$ac_compiler $ac_option >&5"
3251: case "(($ac_try" in
3252: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253: *) ac_try_echo=$ac_try;;
3254: esac
3255: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256: $as_echo "$ac_try_echo"; } >&5
3257: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3258: ac_status=$?
3259: if test -s conftest.err; then
3260: sed '10a\
3261: ... rest of stderr output deleted ...
3262: 10q' conftest.err >conftest.er1
3263: cat conftest.er1 >&5
3264: fi
3265: rm -f conftest.er1 conftest.err
3266: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267: test $ac_status = 0; }
3268: done
3269:
3270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271: /* end confdefs.h. */
3272:
3273: int
3274: main ()
3275: {
3276:
3277: ;
3278: return 0;
3279: }
3280: _ACEOF
3281: ac_clean_files_save=$ac_clean_files
3282: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3283: # Try to create an executable without -o first, disregard a.out.
3284: # It will help us diagnose broken compilers, and finding out an intuition
3285: # of exeext.
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3287: $as_echo_n "checking whether the C compiler works... " >&6; }
3288: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289:
3290: # The possible output files:
3291: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3292:
3293: ac_rmfiles=
3294: for ac_file in $ac_files
3295: do
3296: case $ac_file in
3297: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3299: esac
3300: done
3301: rm -f $ac_rmfiles
3302:
3303: if { { ac_try="$ac_link_default"
3304: case "(($ac_try" in
3305: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306: *) ac_try_echo=$ac_try;;
3307: esac
3308: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309: $as_echo "$ac_try_echo"; } >&5
3310: (eval "$ac_link_default") 2>&5
3311: ac_status=$?
3312: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313: test $ac_status = 0; }; then :
3314: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3315: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3316: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3317: # so that the user can short-circuit this test for compilers unknown to
3318: # Autoconf.
3319: for ac_file in $ac_files ''
3320: do
3321: test -f "$ac_file" || continue
3322: case $ac_file in
3323: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324: ;;
3325: [ab].out )
3326: # We found the default executable, but exeext='' is most
3327: # certainly right.
3328: break;;
3329: *.* )
3330: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331: then :; else
3332: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333: fi
3334: # We set ac_cv_exeext here because the later test for it is not
3335: # safe: cross compilers may not add the suffix if given an `-o'
3336: # argument, so we may need to know it at that point already.
3337: # Even if this section looks crufty: it has the advantage of
3338: # actually working.
3339: break;;
3340: * )
3341: break;;
3342: esac
3343: done
3344: test "$ac_cv_exeext" = no && ac_cv_exeext=
3345:
3346: else
3347: ac_file=''
3348: fi
3349: if test -z "$ac_file"; then :
3350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351: $as_echo "no" >&6; }
3352: $as_echo "$as_me: failed program was:" >&5
3353: sed 's/^/| /' conftest.$ac_ext >&5
3354:
3355: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357: as_fn_error 77 "C compiler cannot create executables
3358: See \`config.log' for more details" "$LINENO" 5; }
3359: else
3360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361: $as_echo "yes" >&6; }
3362: fi
3363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3364: $as_echo_n "checking for C compiler default output file name... " >&6; }
3365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3366: $as_echo "$ac_file" >&6; }
3367: ac_exeext=$ac_cv_exeext
3368:
3369: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370: ac_clean_files=$ac_clean_files_save
3371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3372: $as_echo_n "checking for suffix of executables... " >&6; }
3373: if { { ac_try="$ac_link"
3374: case "(($ac_try" in
3375: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376: *) ac_try_echo=$ac_try;;
3377: esac
3378: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379: $as_echo "$ac_try_echo"; } >&5
3380: (eval "$ac_link") 2>&5
3381: ac_status=$?
3382: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383: test $ac_status = 0; }; then :
3384: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386: # work properly (i.e., refer to `conftest.exe'), while it won't with
3387: # `rm'.
3388: for ac_file in conftest.exe conftest conftest.*; do
3389: test -f "$ac_file" || continue
3390: case $ac_file in
3391: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393: break;;
3394: * ) break;;
3395: esac
3396: done
3397: else
3398: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3401: See \`config.log' for more details" "$LINENO" 5; }
3402: fi
3403: rm -f conftest conftest$ac_cv_exeext
3404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3405: $as_echo "$ac_cv_exeext" >&6; }
3406:
3407: rm -f conftest.$ac_ext
3408: EXEEXT=$ac_cv_exeext
3409: ac_exeext=$EXEEXT
3410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411: /* end confdefs.h. */
3412: #include <stdio.h>
3413: int
3414: main ()
3415: {
3416: FILE *f = fopen ("conftest.out", "w");
3417: return ferror (f) || fclose (f) != 0;
3418:
3419: ;
3420: return 0;
3421: }
3422: _ACEOF
3423: ac_clean_files="$ac_clean_files conftest.out"
3424: # Check that the compiler produces executables we can run. If not, either
3425: # the compiler is broken, or we cross compile.
3426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3427: $as_echo_n "checking whether we are cross compiling... " >&6; }
3428: if test "$cross_compiling" != yes; then
3429: { { ac_try="$ac_link"
3430: case "(($ac_try" in
3431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432: *) ac_try_echo=$ac_try;;
3433: esac
3434: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435: $as_echo "$ac_try_echo"; } >&5
3436: (eval "$ac_link") 2>&5
3437: ac_status=$?
3438: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439: test $ac_status = 0; }
3440: if { ac_try='./conftest$ac_cv_exeext'
3441: { { case "(($ac_try" in
3442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443: *) ac_try_echo=$ac_try;;
3444: esac
3445: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446: $as_echo "$ac_try_echo"; } >&5
3447: (eval "$ac_try") 2>&5
3448: ac_status=$?
3449: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450: test $ac_status = 0; }; }; then
3451: cross_compiling=no
3452: else
3453: if test "$cross_compiling" = maybe; then
3454: cross_compiling=yes
3455: else
3456: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458: as_fn_error $? "cannot run C compiled programs.
3459: If you meant to cross compile, use \`--host'.
3460: See \`config.log' for more details" "$LINENO" 5; }
3461: fi
3462: fi
3463: fi
3464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3465: $as_echo "$cross_compiling" >&6; }
3466:
3467: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3468: ac_clean_files=$ac_clean_files_save
3469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3470: $as_echo_n "checking for suffix of object files... " >&6; }
3471: if ${ac_cv_objext+:} false; then :
3472: $as_echo_n "(cached) " >&6
3473: else
3474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475: /* end confdefs.h. */
3476:
3477: int
3478: main ()
3479: {
3480:
3481: ;
3482: return 0;
3483: }
3484: _ACEOF
3485: rm -f conftest.o conftest.obj
3486: if { { ac_try="$ac_compile"
3487: case "(($ac_try" in
3488: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489: *) ac_try_echo=$ac_try;;
3490: esac
3491: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492: $as_echo "$ac_try_echo"; } >&5
3493: (eval "$ac_compile") 2>&5
3494: ac_status=$?
3495: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496: test $ac_status = 0; }; then :
3497: for ac_file in conftest.o conftest.obj conftest.*; do
3498: test -f "$ac_file" || continue;
3499: case $ac_file in
3500: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3502: break;;
3503: esac
3504: done
3505: else
3506: $as_echo "$as_me: failed program was:" >&5
3507: sed 's/^/| /' conftest.$ac_ext >&5
3508:
3509: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511: as_fn_error $? "cannot compute suffix of object files: cannot compile
3512: See \`config.log' for more details" "$LINENO" 5; }
3513: fi
3514: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3515: fi
3516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3517: $as_echo "$ac_cv_objext" >&6; }
3518: OBJEXT=$ac_cv_objext
3519: ac_objext=$OBJEXT
3520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3521: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3522: if ${ac_cv_c_compiler_gnu+:} false; then :
3523: $as_echo_n "(cached) " >&6
3524: else
3525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526: /* end confdefs.h. */
3527:
3528: int
3529: main ()
3530: {
3531: #ifndef __GNUC__
3532: choke me
3533: #endif
3534:
3535: ;
3536: return 0;
3537: }
3538: _ACEOF
3539: if ac_fn_c_try_compile "$LINENO"; then :
3540: ac_compiler_gnu=yes
3541: else
3542: ac_compiler_gnu=no
3543: fi
3544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3546:
3547: fi
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3549: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3550: if test $ac_compiler_gnu = yes; then
3551: GCC=yes
3552: else
3553: GCC=
3554: fi
3555: ac_test_CFLAGS=${CFLAGS+set}
3556: ac_save_CFLAGS=$CFLAGS
3557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3558: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3559: if ${ac_cv_prog_cc_g+:} false; then :
3560: $as_echo_n "(cached) " >&6
3561: else
3562: ac_save_c_werror_flag=$ac_c_werror_flag
3563: ac_c_werror_flag=yes
3564: ac_cv_prog_cc_g=no
3565: CFLAGS="-g"
3566: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567: /* end confdefs.h. */
3568:
3569: int
3570: main ()
3571: {
3572:
3573: ;
3574: return 0;
3575: }
3576: _ACEOF
3577: if ac_fn_c_try_compile "$LINENO"; then :
3578: ac_cv_prog_cc_g=yes
3579: else
3580: CFLAGS=""
3581: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582: /* end confdefs.h. */
3583:
3584: int
3585: main ()
3586: {
3587:
3588: ;
3589: return 0;
3590: }
3591: _ACEOF
3592: if ac_fn_c_try_compile "$LINENO"; then :
3593:
3594: else
3595: ac_c_werror_flag=$ac_save_c_werror_flag
3596: CFLAGS="-g"
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603:
3604: ;
3605: return 0;
3606: }
3607: _ACEOF
3608: if ac_fn_c_try_compile "$LINENO"; then :
3609: ac_cv_prog_cc_g=yes
3610: fi
3611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612: fi
3613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614: fi
3615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616: ac_c_werror_flag=$ac_save_c_werror_flag
3617: fi
3618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3619: $as_echo "$ac_cv_prog_cc_g" >&6; }
3620: if test "$ac_test_CFLAGS" = set; then
3621: CFLAGS=$ac_save_CFLAGS
3622: elif test $ac_cv_prog_cc_g = yes; then
3623: if test "$GCC" = yes; then
3624: CFLAGS="-g -O2"
3625: else
3626: CFLAGS="-g"
3627: fi
3628: else
3629: if test "$GCC" = yes; then
3630: CFLAGS="-O2"
3631: else
3632: CFLAGS=
3633: fi
3634: fi
3635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3636: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3637: if ${ac_cv_prog_cc_c89+:} false; then :
3638: $as_echo_n "(cached) " >&6
3639: else
3640: ac_cv_prog_cc_c89=no
3641: ac_save_CC=$CC
3642: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643: /* end confdefs.h. */
3644: #include <stdarg.h>
3645: #include <stdio.h>
3646: #include <sys/types.h>
3647: #include <sys/stat.h>
3648: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649: struct buf { int x; };
3650: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651: static char *e (p, i)
3652: char **p;
3653: int i;
3654: {
3655: return p[i];
3656: }
3657: static char *f (char * (*g) (char **, int), char **p, ...)
3658: {
3659: char *s;
3660: va_list v;
3661: va_start (v,p);
3662: s = g (p, va_arg (v,int));
3663: va_end (v);
3664: return s;
3665: }
3666:
3667: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668: function prototypes and stuff, but not '\xHH' hex character constants.
3669: These don't provoke an error unfortunately, instead are silently treated
3670: as 'x'. The following induces an error, until -std is added to get
3671: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672: array size at least. It's necessary to write '\x00'==0 to get something
3673: that's true only with -std. */
3674: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675:
3676: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677: inside strings and character constants. */
3678: #define FOO(x) 'x'
3679: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680:
3681: int test (int i, double x);
3682: struct s1 {int (*f) (int a);};
3683: struct s2 {int (*f) (double a);};
3684: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685: int argc;
3686: char **argv;
3687: int
3688: main ()
3689: {
3690: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691: ;
3692: return 0;
3693: }
3694: _ACEOF
3695: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697: do
3698: CC="$ac_save_CC $ac_arg"
3699: if ac_fn_c_try_compile "$LINENO"; then :
3700: ac_cv_prog_cc_c89=$ac_arg
3701: fi
3702: rm -f core conftest.err conftest.$ac_objext
3703: test "x$ac_cv_prog_cc_c89" != "xno" && break
3704: done
3705: rm -f conftest.$ac_ext
3706: CC=$ac_save_CC
3707:
3708: fi
3709: # AC_CACHE_VAL
3710: case "x$ac_cv_prog_cc_c89" in
3711: x)
3712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713: $as_echo "none needed" >&6; } ;;
3714: xno)
3715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716: $as_echo "unsupported" >&6; } ;;
3717: *)
3718: CC="$CC $ac_cv_prog_cc_c89"
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3720: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3721: esac
3722: if test "x$ac_cv_prog_cc_c89" != xno; then :
3723:
3724: fi
3725:
3726: ac_ext=c
3727: ac_cpp='$CPP $CPPFLAGS'
3728: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731: DEPDIR="${am__leading_dot}deps"
3732:
3733: ac_config_commands="$ac_config_commands depfiles"
3734:
3735:
3736: am_make=${MAKE-make}
3737: cat > confinc << 'END'
3738: am__doit:
3739: @echo this is the am__doit target
3740: .PHONY: am__doit
3741: END
3742: # If we don't find an include directive, just comment out the code.
3743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3744: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3745: am__include="#"
3746: am__quote=
3747: _am_result=none
3748: # First try GNU make style include.
3749: echo "include confinc" > confmf
3750: # Ignore all kinds of additional output from `make'.
3751: case `$am_make -s -f confmf 2> /dev/null` in #(
3752: *the\ am__doit\ target*)
3753: am__include=include
3754: am__quote=
3755: _am_result=GNU
3756: ;;
3757: esac
3758: # Now try BSD make style include.
3759: if test "$am__include" = "#"; then
3760: echo '.include "confinc"' > confmf
3761: case `$am_make -s -f confmf 2> /dev/null` in #(
3762: *the\ am__doit\ target*)
3763: am__include=.include
3764: am__quote="\""
3765: _am_result=BSD
3766: ;;
3767: esac
3768: fi
3769:
3770:
3771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3772: $as_echo "$_am_result" >&6; }
3773: rm -f confinc confmf
3774:
3775: # Check whether --enable-dependency-tracking was given.
3776: if test "${enable_dependency_tracking+set}" = set; then :
3777: enableval=$enable_dependency_tracking;
3778: fi
3779:
3780: if test "x$enable_dependency_tracking" != xno; then
3781: am_depcomp="$ac_aux_dir/depcomp"
3782: AMDEPBACKSLASH='\'
3783: fi
3784: if test "x$enable_dependency_tracking" != xno; then
3785: AMDEP_TRUE=
3786: AMDEP_FALSE='#'
3787: else
3788: AMDEP_TRUE='#'
3789: AMDEP_FALSE=
3790: fi
3791:
3792:
3793:
3794: depcc="$CC" am_compiler_list=
3795:
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3797: $as_echo_n "checking dependency style of $depcc... " >&6; }
3798: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3799: $as_echo_n "(cached) " >&6
3800: else
3801: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802: # We make a subdir and do the tests there. Otherwise we can end up
3803: # making bogus files that we don't know about and never remove. For
3804: # instance it was reported that on HP-UX the gcc test will end up
3805: # making a dummy file named `D' -- because `-MD' means `put the output
3806: # in D'.
3807: mkdir conftest.dir
3808: # Copy depcomp to subdir because otherwise we won't find it if we're
3809: # using a relative directory.
3810: cp "$am_depcomp" conftest.dir
3811: cd conftest.dir
3812: # We will build objects and dependencies in a subdirectory because
3813: # it helps to detect inapplicable dependency modes. For instance
3814: # both Tru64's cc and ICC support -MD to output dependencies as a
3815: # side effect of compilation, but ICC will put the dependencies in
3816: # the current directory while Tru64 will put them in the object
3817: # directory.
3818: mkdir sub
3819:
3820: am_cv_CC_dependencies_compiler_type=none
3821: if test "$am_compiler_list" = ""; then
3822: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823: fi
3824: am__universal=false
3825: case " $depcc " in #(
3826: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827: esac
3828:
3829: for depmode in $am_compiler_list; do
3830: # Setup a source with many dependencies, because some compilers
3831: # like to wrap large dependency lists on column 80 (with \), and
3832: # we should not choose a depcomp mode which is confused by this.
3833: #
3834: # We need to recreate these files for each test, as the compiler may
3835: # overwrite some of them when testing with obscure command lines.
3836: # This happens at least with the AIX C compiler.
3837: : > sub/conftest.c
3838: for i in 1 2 3 4 5 6; do
3839: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3841: # Solaris 8's {/usr,}/bin/sh.
3842: touch sub/conftst$i.h
3843: done
3844: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845:
3846: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847: # mode. It turns out that the SunPro C++ compiler does not properly
3848: # handle `-M -o', and we need to detect this. Also, some Intel
3849: # versions had trouble with output in subdirs
3850: am__obj=sub/conftest.${OBJEXT-o}
3851: am__minus_obj="-o $am__obj"
3852: case $depmode in
3853: gcc)
3854: # This depmode causes a compiler race in universal mode.
3855: test "$am__universal" = false || continue
3856: ;;
3857: nosideeffect)
3858: # after this tag, mechanisms are not by side-effect, so they'll
3859: # only be used when explicitly requested
3860: if test "x$enable_dependency_tracking" = xyes; then
3861: continue
3862: else
3863: break
3864: fi
3865: ;;
3866: msvisualcpp | msvcmsys)
3867: # This compiler won't grok `-c -o', but also, the minuso test has
3868: # not run yet. These depmodes are late enough in the game, and
3869: # so weak that their functioning should not be impacted.
3870: am__obj=conftest.${OBJEXT-o}
3871: am__minus_obj=
3872: ;;
3873: none) break ;;
3874: esac
3875: if depmode=$depmode \
3876: source=sub/conftest.c object=$am__obj \
3877: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879: >/dev/null 2>conftest.err &&
3880: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884: # icc doesn't choke on unknown options, it will just issue warnings
3885: # or remarks (even with -Werror). So we grep stderr for any message
3886: # that says an option was ignored or not supported.
3887: # When given -MP, icc 7.0 and 7.1 complain thusly:
3888: # icc: Command line warning: ignoring option '-M'; no argument required
3889: # The diagnosis changed in icc 8.0:
3890: # icc: Command line remark: option '-MP' not supported
3891: if (grep 'ignoring option' conftest.err ||
3892: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893: am_cv_CC_dependencies_compiler_type=$depmode
3894: break
3895: fi
3896: fi
3897: done
3898:
3899: cd ..
3900: rm -rf conftest.dir
3901: else
3902: am_cv_CC_dependencies_compiler_type=none
3903: fi
3904:
3905: fi
3906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909:
3910: if
3911: test "x$enable_dependency_tracking" != xno \
3912: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913: am__fastdepCC_TRUE=
3914: am__fastdepCC_FALSE='#'
3915: else
3916: am__fastdepCC_TRUE='#'
3917: am__fastdepCC_FALSE=
3918: fi
3919:
3920:
3921:
3922:
3923: ac_ext=c
3924: ac_cpp='$CPP $CPPFLAGS'
3925: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3929: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3930: # On Suns, sometimes $CPP names a directory.
3931: if test -n "$CPP" && test -d "$CPP"; then
3932: CPP=
3933: fi
3934: if test -z "$CPP"; then
3935: if ${ac_cv_prog_CPP+:} false; then :
3936: $as_echo_n "(cached) " >&6
3937: else
3938: # Double quotes because CPP needs to be expanded
3939: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3940: do
3941: ac_preproc_ok=false
3942: for ac_c_preproc_warn_flag in '' yes
3943: do
3944: # Use a header file that comes with gcc, so configuring glibc
3945: # with a fresh cross-compiler works.
3946: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947: # <limits.h> exists even on freestanding compilers.
3948: # On the NeXT, cc -E runs the code through the compiler's parser,
3949: # not just through cpp. "Syntax error" is here to catch this case.
3950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951: /* end confdefs.h. */
3952: #ifdef __STDC__
3953: # include <limits.h>
3954: #else
3955: # include <assert.h>
3956: #endif
3957: Syntax error
3958: _ACEOF
3959: if ac_fn_c_try_cpp "$LINENO"; then :
3960:
3961: else
3962: # Broken: fails on valid input.
3963: continue
3964: fi
3965: rm -f conftest.err conftest.i conftest.$ac_ext
3966:
3967: # OK, works on sane cases. Now check whether nonexistent headers
3968: # can be detected and how.
3969: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970: /* end confdefs.h. */
3971: #include <ac_nonexistent.h>
3972: _ACEOF
3973: if ac_fn_c_try_cpp "$LINENO"; then :
3974: # Broken: success on invalid input.
3975: continue
3976: else
3977: # Passes both tests.
3978: ac_preproc_ok=:
3979: break
3980: fi
3981: rm -f conftest.err conftest.i conftest.$ac_ext
3982:
3983: done
3984: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985: rm -f conftest.i conftest.err conftest.$ac_ext
3986: if $ac_preproc_ok; then :
3987: break
3988: fi
3989:
3990: done
3991: ac_cv_prog_CPP=$CPP
3992:
3993: fi
3994: CPP=$ac_cv_prog_CPP
3995: else
3996: ac_cv_prog_CPP=$CPP
3997: fi
3998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3999: $as_echo "$CPP" >&6; }
4000: ac_preproc_ok=false
4001: for ac_c_preproc_warn_flag in '' yes
4002: do
4003: # Use a header file that comes with gcc, so configuring glibc
4004: # with a fresh cross-compiler works.
4005: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006: # <limits.h> exists even on freestanding compilers.
4007: # On the NeXT, cc -E runs the code through the compiler's parser,
4008: # not just through cpp. "Syntax error" is here to catch this case.
4009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010: /* end confdefs.h. */
4011: #ifdef __STDC__
4012: # include <limits.h>
4013: #else
4014: # include <assert.h>
4015: #endif
4016: Syntax error
4017: _ACEOF
4018: if ac_fn_c_try_cpp "$LINENO"; then :
4019:
4020: else
4021: # Broken: fails on valid input.
4022: continue
4023: fi
4024: rm -f conftest.err conftest.i conftest.$ac_ext
4025:
4026: # OK, works on sane cases. Now check whether nonexistent headers
4027: # can be detected and how.
4028: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029: /* end confdefs.h. */
4030: #include <ac_nonexistent.h>
4031: _ACEOF
4032: if ac_fn_c_try_cpp "$LINENO"; then :
4033: # Broken: success on invalid input.
4034: continue
4035: else
4036: # Passes both tests.
4037: ac_preproc_ok=:
4038: break
4039: fi
4040: rm -f conftest.err conftest.i conftest.$ac_ext
4041:
4042: done
4043: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044: rm -f conftest.i conftest.err conftest.$ac_ext
4045: if $ac_preproc_ok; then :
4046:
4047: else
4048: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4051: See \`config.log' for more details" "$LINENO" 5; }
4052: fi
4053:
4054: ac_ext=c
4055: ac_cpp='$CPP $CPPFLAGS'
4056: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059:
4060:
4061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4062: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4063: if ${ac_cv_path_GREP+:} false; then :
4064: $as_echo_n "(cached) " >&6
4065: else
4066: if test -z "$GREP"; then
4067: ac_path_GREP_found=false
4068: # Loop through the user's path and test for each of PROGNAME-LIST
4069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071: do
4072: IFS=$as_save_IFS
4073: test -z "$as_dir" && as_dir=.
4074: for ac_prog in grep ggrep; do
4075: for ac_exec_ext in '' $ac_executable_extensions; do
4076: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4077: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4078: # Check for GNU ac_path_GREP and select it if it is found.
4079: # Check for GNU $ac_path_GREP
4080: case `"$ac_path_GREP" --version 2>&1` in
4081: *GNU*)
4082: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4083: *)
4084: ac_count=0
4085: $as_echo_n 0123456789 >"conftest.in"
4086: while :
4087: do
4088: cat "conftest.in" "conftest.in" >"conftest.tmp"
4089: mv "conftest.tmp" "conftest.in"
4090: cp "conftest.in" "conftest.nl"
4091: $as_echo 'GREP' >> "conftest.nl"
4092: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094: as_fn_arith $ac_count + 1 && ac_count=$as_val
4095: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4096: # Best one so far, save it but keep looking for a better one
4097: ac_cv_path_GREP="$ac_path_GREP"
4098: ac_path_GREP_max=$ac_count
4099: fi
4100: # 10*(2^10) chars as input seems more than enough
4101: test $ac_count -gt 10 && break
4102: done
4103: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104: esac
4105:
4106: $ac_path_GREP_found && break 3
4107: done
4108: done
4109: done
4110: IFS=$as_save_IFS
4111: if test -z "$ac_cv_path_GREP"; then
4112: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113: fi
4114: else
4115: ac_cv_path_GREP=$GREP
4116: fi
4117:
4118: fi
4119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4120: $as_echo "$ac_cv_path_GREP" >&6; }
4121: GREP="$ac_cv_path_GREP"
4122:
4123:
4124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4125: $as_echo_n "checking for egrep... " >&6; }
4126: if ${ac_cv_path_EGREP+:} false; then :
4127: $as_echo_n "(cached) " >&6
4128: else
4129: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4130: then ac_cv_path_EGREP="$GREP -E"
4131: else
4132: if test -z "$EGREP"; then
4133: ac_path_EGREP_found=false
4134: # Loop through the user's path and test for each of PROGNAME-LIST
4135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137: do
4138: IFS=$as_save_IFS
4139: test -z "$as_dir" && as_dir=.
4140: for ac_prog in egrep; do
4141: for ac_exec_ext in '' $ac_executable_extensions; do
4142: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4143: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4144: # Check for GNU ac_path_EGREP and select it if it is found.
4145: # Check for GNU $ac_path_EGREP
4146: case `"$ac_path_EGREP" --version 2>&1` in
4147: *GNU*)
4148: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4149: *)
4150: ac_count=0
4151: $as_echo_n 0123456789 >"conftest.in"
4152: while :
4153: do
4154: cat "conftest.in" "conftest.in" >"conftest.tmp"
4155: mv "conftest.tmp" "conftest.in"
4156: cp "conftest.in" "conftest.nl"
4157: $as_echo 'EGREP' >> "conftest.nl"
4158: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160: as_fn_arith $ac_count + 1 && ac_count=$as_val
4161: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4162: # Best one so far, save it but keep looking for a better one
4163: ac_cv_path_EGREP="$ac_path_EGREP"
4164: ac_path_EGREP_max=$ac_count
4165: fi
4166: # 10*(2^10) chars as input seems more than enough
4167: test $ac_count -gt 10 && break
4168: done
4169: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170: esac
4171:
4172: $ac_path_EGREP_found && break 3
4173: done
4174: done
4175: done
4176: IFS=$as_save_IFS
4177: if test -z "$ac_cv_path_EGREP"; then
4178: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179: fi
4180: else
4181: ac_cv_path_EGREP=$EGREP
4182: fi
4183:
4184: fi
4185: fi
4186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4187: $as_echo "$ac_cv_path_EGREP" >&6; }
4188: EGREP="$ac_cv_path_EGREP"
4189:
4190:
4191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4192: $as_echo_n "checking for ANSI C header files... " >&6; }
4193: if ${ac_cv_header_stdc+:} false; then :
4194: $as_echo_n "(cached) " >&6
4195: else
4196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197: /* end confdefs.h. */
4198: #include <stdlib.h>
4199: #include <stdarg.h>
4200: #include <string.h>
4201: #include <float.h>
4202:
4203: int
4204: main ()
4205: {
4206:
4207: ;
4208: return 0;
4209: }
4210: _ACEOF
4211: if ac_fn_c_try_compile "$LINENO"; then :
4212: ac_cv_header_stdc=yes
4213: else
4214: ac_cv_header_stdc=no
4215: fi
4216: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217:
4218: if test $ac_cv_header_stdc = yes; then
4219: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221: /* end confdefs.h. */
4222: #include <string.h>
4223:
4224: _ACEOF
4225: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226: $EGREP "memchr" >/dev/null 2>&1; then :
4227:
4228: else
4229: ac_cv_header_stdc=no
4230: fi
4231: rm -f conftest*
4232:
4233: fi
4234:
4235: if test $ac_cv_header_stdc = yes; then
4236: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238: /* end confdefs.h. */
4239: #include <stdlib.h>
4240:
4241: _ACEOF
4242: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243: $EGREP "free" >/dev/null 2>&1; then :
4244:
4245: else
4246: ac_cv_header_stdc=no
4247: fi
4248: rm -f conftest*
4249:
4250: fi
4251:
4252: if test $ac_cv_header_stdc = yes; then
4253: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4254: if test "$cross_compiling" = yes; then :
4255: :
4256: else
4257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258: /* end confdefs.h. */
4259: #include <ctype.h>
4260: #include <stdlib.h>
4261: #if ((' ' & 0x0FF) == 0x020)
4262: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4263: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4264: #else
4265: # define ISLOWER(c) \
4266: (('a' <= (c) && (c) <= 'i') \
4267: || ('j' <= (c) && (c) <= 'r') \
4268: || ('s' <= (c) && (c) <= 'z'))
4269: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4270: #endif
4271:
4272: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4273: int
4274: main ()
4275: {
4276: int i;
4277: for (i = 0; i < 256; i++)
4278: if (XOR (islower (i), ISLOWER (i))
4279: || toupper (i) != TOUPPER (i))
4280: return 2;
4281: return 0;
4282: }
4283: _ACEOF
4284: if ac_fn_c_try_run "$LINENO"; then :
4285:
4286: else
4287: ac_cv_header_stdc=no
4288: fi
4289: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4290: conftest.$ac_objext conftest.beam conftest.$ac_ext
4291: fi
4292:
4293: fi
4294: fi
4295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4296: $as_echo "$ac_cv_header_stdc" >&6; }
4297: if test $ac_cv_header_stdc = yes; then
4298:
4299: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4300:
4301: fi
4302:
4303: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4304: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4305: inttypes.h stdint.h unistd.h
4306: do :
4307: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4308: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4309: "
4310: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4311: cat >>confdefs.h <<_ACEOF
4312: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4313: _ACEOF
4314:
4315: fi
4316:
4317: done
4318:
4319:
4320: # The cast to long int works around a bug in the HP C Compiler
4321: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4322: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4323: # This bug is HP SR number 8606223364.
4324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
4325: $as_echo_n "checking size of unsigned char... " >&6; }
4326: if ${ac_cv_sizeof_unsigned_char+:} false; then :
4327: $as_echo_n "(cached) " >&6
4328: else
4329: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then :
4330:
4331: else
4332: if test "$ac_cv_type_unsigned_char" = yes; then
4333: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335: as_fn_error 77 "cannot compute sizeof (unsigned char)
4336: See \`config.log' for more details" "$LINENO" 5; }
4337: else
4338: ac_cv_sizeof_unsigned_char=0
4339: fi
4340: fi
4341:
4342: fi
4343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
4344: $as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
4345:
4346:
4347:
4348: cat >>confdefs.h <<_ACEOF
4349: #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
4350: _ACEOF
4351:
4352:
4353: # The cast to long int works around a bug in the HP C Compiler
4354: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4355: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4356: # This bug is HP SR number 8606223364.
4357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
4358: $as_echo_n "checking size of unsigned short... " >&6; }
4359: if ${ac_cv_sizeof_unsigned_short+:} false; then :
4360: $as_echo_n "(cached) " >&6
4361: else
4362: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
4363:
4364: else
4365: if test "$ac_cv_type_unsigned_short" = yes; then
4366: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368: as_fn_error 77 "cannot compute sizeof (unsigned short)
4369: See \`config.log' for more details" "$LINENO" 5; }
4370: else
4371: ac_cv_sizeof_unsigned_short=0
4372: fi
4373: fi
4374:
4375: fi
4376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
4377: $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
4378:
4379:
4380:
4381: cat >>confdefs.h <<_ACEOF
4382: #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
4383: _ACEOF
4384:
4385:
4386: # The cast to long int works around a bug in the HP C Compiler
4387: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389: # This bug is HP SR number 8606223364.
4390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4391: $as_echo_n "checking size of unsigned int... " >&6; }
4392: if ${ac_cv_sizeof_unsigned_int+:} false; then :
4393: $as_echo_n "(cached) " >&6
4394: else
4395: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4396:
4397: else
4398: if test "$ac_cv_type_unsigned_int" = yes; then
4399: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401: as_fn_error 77 "cannot compute sizeof (unsigned int)
4402: See \`config.log' for more details" "$LINENO" 5; }
4403: else
4404: ac_cv_sizeof_unsigned_int=0
4405: fi
4406: fi
4407:
4408: fi
4409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4410: $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4411:
4412:
4413:
4414: cat >>confdefs.h <<_ACEOF
4415: #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4416: _ACEOF
4417:
4418:
4419: # The cast to long int works around a bug in the HP C Compiler
4420: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4421: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4422: # This bug is HP SR number 8606223364.
4423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4424: $as_echo_n "checking size of unsigned long... " >&6; }
4425: if ${ac_cv_sizeof_unsigned_long+:} false; then :
4426: $as_echo_n "(cached) " >&6
4427: else
4428: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4429:
4430: else
4431: if test "$ac_cv_type_unsigned_long" = yes; then
4432: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434: as_fn_error 77 "cannot compute sizeof (unsigned long)
4435: See \`config.log' for more details" "$LINENO" 5; }
4436: else
4437: ac_cv_sizeof_unsigned_long=0
4438: fi
4439: fi
4440:
4441: fi
4442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4443: $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4444:
4445:
4446:
4447: cat >>confdefs.h <<_ACEOF
4448: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4449: _ACEOF
4450:
4451:
4452:
4453: for ac_header in ncurses.h ncurses/curses.h curses.h cursesX.h sys/types.h fcntl.h
4454: do :
4455: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4457: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4458: cat >>confdefs.h <<_ACEOF
4459: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460: _ACEOF
4461:
4462: fi
4463:
4464: done
4465:
4466: for ac_header in socket.h sys/socket.h sys/xti.h arpa/nameser_compat.h
4467: do :
4468: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4469: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4470: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4471: cat >>confdefs.h <<_ACEOF
4472: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473: _ACEOF
4474:
4475: fi
4476:
4477: done
4478:
4479:
4480: # We don't refer to any symbols in termcap, but -lcurses on SunOS does.
4481: # We have to trust the linker not to mess things up... (It should not
4482: # pull in anything if we don't refer to anything in the lib).
4483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
4484: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
4485: if ${ac_cv_lib_termcap_tgetent+:} false; then :
4486: $as_echo_n "(cached) " >&6
4487: else
4488: ac_check_lib_save_LIBS=$LIBS
4489: LIBS="-ltermcap $LIBS"
4490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491: /* end confdefs.h. */
4492:
4493: /* Override any GCC internal prototype to avoid an error.
4494: Use char because int might match the return type of a GCC
4495: builtin and then its argument prototype would still apply. */
4496: #ifdef __cplusplus
4497: extern "C"
4498: #endif
4499: char tgetent ();
4500: int
4501: main ()
4502: {
4503: return tgetent ();
4504: ;
4505: return 0;
4506: }
4507: _ACEOF
4508: if ac_fn_c_try_link "$LINENO"; then :
4509: ac_cv_lib_termcap_tgetent=yes
4510: else
4511: ac_cv_lib_termcap_tgetent=no
4512: fi
4513: rm -f core conftest.err conftest.$ac_objext \
4514: conftest$ac_exeext conftest.$ac_ext
4515: LIBS=$ac_check_lib_save_LIBS
4516: fi
4517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
4518: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
4519: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
4520: cat >>confdefs.h <<_ACEOF
4521: #define HAVE_LIBTERMCAP 1
4522: _ACEOF
4523:
4524: LIBS="-ltermcap $LIBS"
4525:
4526: fi
4527:
4528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
4529: $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
4530: if ${ac_cv_lib_tinfo_tgetent+:} false; then :
4531: $as_echo_n "(cached) " >&6
4532: else
4533: ac_check_lib_save_LIBS=$LIBS
4534: LIBS="-ltinfo $LIBS"
4535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536: /* end confdefs.h. */
4537:
4538: /* Override any GCC internal prototype to avoid an error.
4539: Use char because int might match the return type of a GCC
4540: builtin and then its argument prototype would still apply. */
4541: #ifdef __cplusplus
4542: extern "C"
4543: #endif
4544: char tgetent ();
4545: int
4546: main ()
4547: {
4548: return tgetent ();
4549: ;
4550: return 0;
4551: }
4552: _ACEOF
4553: if ac_fn_c_try_link "$LINENO"; then :
4554: ac_cv_lib_tinfo_tgetent=yes
4555: else
4556: ac_cv_lib_tinfo_tgetent=no
4557: fi
4558: rm -f core conftest.err conftest.$ac_objext \
4559: conftest$ac_exeext conftest.$ac_ext
4560: LIBS=$ac_check_lib_save_LIBS
4561: fi
4562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
4563: $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
4564: if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
4565: cat >>confdefs.h <<_ACEOF
4566: #define HAVE_LIBTINFO 1
4567: _ACEOF
4568:
4569: LIBS="-ltinfo $LIBS"
4570:
4571: fi
4572:
4573:
4574: ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
4575: if test "x$ac_cv_func_initscr" = xyes; then :
4576:
4577: else
4578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
4579: $as_echo_n "checking for initscr in -lncurses... " >&6; }
4580: if ${ac_cv_lib_ncurses_initscr+:} false; then :
4581: $as_echo_n "(cached) " >&6
4582: else
4583: ac_check_lib_save_LIBS=$LIBS
4584: LIBS="-lncurses $LIBS"
4585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586: /* end confdefs.h. */
4587:
4588: /* Override any GCC internal prototype to avoid an error.
4589: Use char because int might match the return type of a GCC
4590: builtin and then its argument prototype would still apply. */
4591: #ifdef __cplusplus
4592: extern "C"
4593: #endif
4594: char initscr ();
4595: int
4596: main ()
4597: {
4598: return initscr ();
4599: ;
4600: return 0;
4601: }
4602: _ACEOF
4603: if ac_fn_c_try_link "$LINENO"; then :
4604: ac_cv_lib_ncurses_initscr=yes
4605: else
4606: ac_cv_lib_ncurses_initscr=no
4607: fi
4608: rm -f core conftest.err conftest.$ac_objext \
4609: conftest$ac_exeext conftest.$ac_ext
4610: LIBS=$ac_check_lib_save_LIBS
4611: fi
4612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
4613: $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
4614: if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
4615: cat >>confdefs.h <<_ACEOF
4616: #define HAVE_LIBNCURSES 1
4617: _ACEOF
4618:
4619: LIBS="-lncurses $LIBS"
4620:
4621: else
4622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
4623: $as_echo_n "checking for initscr in -lcurses... " >&6; }
4624: if ${ac_cv_lib_curses_initscr+:} false; then :
4625: $as_echo_n "(cached) " >&6
4626: else
4627: ac_check_lib_save_LIBS=$LIBS
4628: LIBS="-lcurses $LIBS"
4629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630: /* end confdefs.h. */
4631:
4632: /* Override any GCC internal prototype to avoid an error.
4633: Use char because int might match the return type of a GCC
4634: builtin and then its argument prototype would still apply. */
4635: #ifdef __cplusplus
4636: extern "C"
4637: #endif
4638: char initscr ();
4639: int
4640: main ()
4641: {
4642: return initscr ();
4643: ;
4644: return 0;
4645: }
4646: _ACEOF
4647: if ac_fn_c_try_link "$LINENO"; then :
4648: ac_cv_lib_curses_initscr=yes
4649: else
4650: ac_cv_lib_curses_initscr=no
4651: fi
4652: rm -f core conftest.err conftest.$ac_objext \
4653: conftest$ac_exeext conftest.$ac_ext
4654: LIBS=$ac_check_lib_save_LIBS
4655: fi
4656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
4657: $as_echo "$ac_cv_lib_curses_initscr" >&6; }
4658: if test "x$ac_cv_lib_curses_initscr" = xyes; then :
4659: cat >>confdefs.h <<_ACEOF
4660: #define HAVE_LIBCURSES 1
4661: _ACEOF
4662:
4663: LIBS="-lcurses $LIBS"
4664:
4665: else
4666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcursesX" >&5
4667: $as_echo_n "checking for initscr in -lcursesX... " >&6; }
4668: if ${ac_cv_lib_cursesX_initscr+:} false; then :
4669: $as_echo_n "(cached) " >&6
4670: else
4671: ac_check_lib_save_LIBS=$LIBS
4672: LIBS="-lcursesX $LIBS"
4673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674: /* end confdefs.h. */
4675:
4676: /* Override any GCC internal prototype to avoid an error.
4677: Use char because int might match the return type of a GCC
4678: builtin and then its argument prototype would still apply. */
4679: #ifdef __cplusplus
4680: extern "C"
4681: #endif
4682: char initscr ();
4683: int
4684: main ()
4685: {
4686: return initscr ();
4687: ;
4688: return 0;
4689: }
4690: _ACEOF
4691: if ac_fn_c_try_link "$LINENO"; then :
4692: ac_cv_lib_cursesX_initscr=yes
4693: else
4694: ac_cv_lib_cursesX_initscr=no
4695: fi
4696: rm -f core conftest.err conftest.$ac_objext \
4697: conftest$ac_exeext conftest.$ac_ext
4698: LIBS=$ac_check_lib_save_LIBS
4699: fi
4700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cursesX_initscr" >&5
4701: $as_echo "$ac_cv_lib_cursesX_initscr" >&6; }
4702: if test "x$ac_cv_lib_cursesX_initscr" = xyes; then :
4703: cat >>confdefs.h <<_ACEOF
4704: #define HAVE_LIBCURSESX 1
4705: _ACEOF
4706:
4707: LIBS="-lcursesX $LIBS"
4708:
4709: else
4710: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without curses display support" >&5
4711: $as_echo "$as_me: WARNING: Building without curses display support" >&2;}
4712:
4713: $as_echo "#define NO_CURSES 1" >>confdefs.h
4714:
4715: CURSES_OBJ=
4716: fi
4717:
4718: fi
4719:
4720: fi
4721:
4722: fi
4723:
4724:
4725: for ac_func in attron fcntl
4726: do :
4727: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4728: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4729: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4730: cat >>confdefs.h <<_ACEOF
4731: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4732: _ACEOF
4733:
4734: fi
4735: done
4736:
4737:
4738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4739: $as_echo_n "checking for floor in -lm... " >&6; }
4740: if ${ac_cv_lib_m_floor+:} false; then :
4741: $as_echo_n "(cached) " >&6
4742: else
4743: ac_check_lib_save_LIBS=$LIBS
4744: LIBS="-lm $LIBS"
4745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746: /* end confdefs.h. */
4747:
4748: /* Override any GCC internal prototype to avoid an error.
4749: Use char because int might match the return type of a GCC
4750: builtin and then its argument prototype would still apply. */
4751: #ifdef __cplusplus
4752: extern "C"
4753: #endif
4754: char floor ();
4755: int
4756: main ()
4757: {
4758: return floor ();
4759: ;
4760: return 0;
4761: }
4762: _ACEOF
4763: if ac_fn_c_try_link "$LINENO"; then :
4764: ac_cv_lib_m_floor=yes
4765: else
4766: ac_cv_lib_m_floor=no
4767: fi
4768: rm -f core conftest.err conftest.$ac_objext \
4769: conftest$ac_exeext conftest.$ac_ext
4770: LIBS=$ac_check_lib_save_LIBS
4771: fi
4772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
4773: $as_echo "$ac_cv_lib_m_floor" >&6; }
4774: if test "x$ac_cv_lib_m_floor" = xyes; then :
4775: cat >>confdefs.h <<_ACEOF
4776: #define HAVE_LIBM 1
4777: _ACEOF
4778:
4779: LIBS="-lm $LIBS"
4780:
4781: else
4782: as_fn_error $? "No math library found" "$LINENO" 5
4783: fi
4784:
4785:
4786:
4787: # Check whether --with-gtk was given.
4788: if test "${with_gtk+set}" = set; then :
4789: withval=$with_gtk; WANTS_GTK=$withval
4790: else
4791: WANTS_GTK=yes
4792: fi
4793:
4794:
4795:
4796: # Check whether --with-glib was given.
4797: if test "${with_glib+set}" = set; then :
4798: withval=$with_glib; WANTS_GLIB=$withval
4799: else
4800: WANTS_GLIB=yes
4801: fi
4802:
4803:
4804:
4805: # Check whether --with-ipinfo was given.
4806: if test "${with_ipinfo+set}" = set; then :
4807: withval=$with_ipinfo; case "${withval}" in
4808: yes) ipinfo=true ;;
4809: no) ipinfo=false ;;
4810: *) as_fn_error $? "bad value ${withval} for --with-ipinfo" "$LINENO" 5 ;;
4811: esac
4812: else
4813: ipinfo=true
4814: fi
4815:
4816: if test x$ipinfo = xtrue; then
4817: IPINFO_TRUE=
4818: IPINFO_FALSE='#'
4819: else
4820: IPINFO_TRUE='#'
4821: IPINFO_FALSE=
4822: fi
4823:
4824: if test "x$ipinfo" = "xfalse"; then
4825:
4826: $as_echo "#define NO_IPINFO 1" >>confdefs.h
4827:
4828: fi
4829:
4830: # Check whether --enable-ipv6 was given.
4831: if test "${enable_ipv6+set}" = set; then :
4832: enableval=$enable_ipv6; WANTS_IPV6=$enableval
4833: else
4834: WANTS_IPV6=yes
4835: fi
4836:
4837:
4838: if test "x$WANTS_GTK" = "xyes"; then
4839: # Check whether --enable-gtktest was given.
4840: if test "${enable_gtktest+set}" = set; then :
4841: enableval=$enable_gtktest;
4842: else
4843: enable_gtktest=yes
4844: fi
4845:
4846:
4847: pkg_config_args=gtk+-2.0
4848: for module in .
4849: do
4850: case "$module" in
4851: gthread)
4852: pkg_config_args="$pkg_config_args gthread-2.0"
4853: ;;
4854: esac
4855: done
4856:
4857: no_gtk=""
4858:
4859: # Extract the first word of "pkg-config", so it can be a program name with args.
4860: set dummy pkg-config; ac_word=$2
4861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862: $as_echo_n "checking for $ac_word... " >&6; }
4863: if ${ac_cv_path_PKG_CONFIG+:} false; then :
4864: $as_echo_n "(cached) " >&6
4865: else
4866: case $PKG_CONFIG in
4867: [\\/]* | ?:[\\/]*)
4868: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4869: ;;
4870: *)
4871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872: for as_dir in $PATH
4873: do
4874: IFS=$as_save_IFS
4875: test -z "$as_dir" && as_dir=.
4876: for ac_exec_ext in '' $ac_executable_extensions; do
4877: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4879: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880: break 2
4881: fi
4882: done
4883: done
4884: IFS=$as_save_IFS
4885:
4886: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4887: ;;
4888: esac
4889: fi
4890: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4891: if test -n "$PKG_CONFIG"; then
4892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4893: $as_echo "$PKG_CONFIG" >&6; }
4894: else
4895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896: $as_echo "no" >&6; }
4897: fi
4898:
4899:
4900:
4901: if test x$PKG_CONFIG != xno ; then
4902: if pkg-config --atleast-pkgconfig-version 0.7 ; then
4903: :
4904: else
4905: echo "*** pkg-config too old; version 0.7 or better required."
4906: no_gtk=yes
4907: PKG_CONFIG=no
4908: fi
4909: else
4910: no_gtk=yes
4911: fi
4912:
4913: min_gtk_version=2.6.0
4914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
4915: $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
4916:
4917: if test x$PKG_CONFIG != xno ; then
4918: ## don't try to run the test against uninstalled libtool libs
4919: if $PKG_CONFIG --uninstalled $pkg_config_args; then
4920: echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
4921: enable_gtktest=no
4922: fi
4923:
4924: if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
4925: :
4926: else
4927: no_gtk=yes
4928: fi
4929: fi
4930:
4931: if test x"$no_gtk" = x ; then
4932: GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
4933: GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
4934: gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4935: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4936: gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4937: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4938: gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4939: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4940: if test "x$enable_gtktest" = "xyes" ; then
4941: ac_save_CFLAGS="$CFLAGS"
4942: ac_save_LIBS="$LIBS"
4943: CFLAGS="$CFLAGS $GTK_CFLAGS"
4944: LIBS="$GTK_LIBS $LIBS"
4945: rm -f conf.gtktest
4946: if test "$cross_compiling" = yes; then :
4947: echo $ac_n "cross compiling; assumed OK... $ac_c"
4948: else
4949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950: /* end confdefs.h. */
4951:
4952: #include <gtk/gtk.h>
4953: #include <stdio.h>
4954: #include <stdlib.h>
4955:
4956: int
4957: main ()
4958: {
4959: int major, minor, micro;
4960: char *tmp_version;
4961:
4962: fclose (fopen ("conf.gtktest", "w"));
4963:
4964: /* HP/UX 9 (%@#!) writes to sscanf strings */
4965: tmp_version = g_strdup("$min_gtk_version");
4966: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4967: printf("%s, bad version string\n", "$min_gtk_version");
4968: exit(1);
4969: }
4970:
4971: if ((gtk_major_version != $gtk_config_major_version) ||
4972: (gtk_minor_version != $gtk_config_minor_version) ||
4973: (gtk_micro_version != $gtk_config_micro_version))
4974: {
4975: printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4976: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4977: gtk_major_version, gtk_minor_version, gtk_micro_version);
4978: printf ("*** was found! If pkg-config was correct, then it is best\n");
4979: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4980: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4981: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4982: printf("*** required on your system.\n");
4983: printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4984: printf("*** to point to the correct configuration files\n");
4985: }
4986: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4987: (gtk_minor_version != GTK_MINOR_VERSION) ||
4988: (gtk_micro_version != GTK_MICRO_VERSION))
4989: {
4990: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4991: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4992: printf("*** library (version %d.%d.%d)\n",
4993: gtk_major_version, gtk_minor_version, gtk_micro_version);
4994: }
4995: else
4996: {
4997: if ((gtk_major_version > major) ||
4998: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4999: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
5000: {
5001: return 0;
5002: }
5003: else
5004: {
5005: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
5006: gtk_major_version, gtk_minor_version, gtk_micro_version);
5007: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
5008: major, minor, micro);
5009: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
5010: printf("***\n");
5011: printf("*** If you have already installed a sufficiently new version, this error\n");
5012: printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5013: printf("*** being found. The easiest way to fix this is to remove the old version\n");
5014: printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
5015: printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5016: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5017: printf("*** so that the correct libraries are found at run-time))\n");
5018: }
5019: }
5020: return 1;
5021: }
5022:
5023: _ACEOF
5024: if ac_fn_c_try_run "$LINENO"; then :
5025:
5026: else
5027: no_gtk=yes
5028: fi
5029: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5030: conftest.$ac_objext conftest.beam conftest.$ac_ext
5031: fi
5032:
5033: CFLAGS="$ac_save_CFLAGS"
5034: LIBS="$ac_save_LIBS"
5035: fi
5036: fi
5037: if test "x$no_gtk" = x ; then
5038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
5039: $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
5040: CFLAGS="$CFLAGS $GTK_CFLAGS"
5041: LIBS="$LIBS $GTK_LIBS -lm"
5042: else
5043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044: $as_echo "no" >&6; }
5045: if test "$PKG_CONFIG" = "no" ; then
5046: echo "*** A new enough version of pkg-config was not found."
5047: echo "*** See http://pkgconfig.sourceforge.net"
5048: else
5049: if test -f conf.gtktest ; then
5050: :
5051: else
5052: echo "*** Could not run GTK+ test program, checking why..."
5053: ac_save_CFLAGS="$CFLAGS"
5054: ac_save_LIBS="$LIBS"
5055: CFLAGS="$CFLAGS $GTK_CFLAGS"
5056: LIBS="$LIBS $GTK_LIBS"
5057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058: /* end confdefs.h. */
5059:
5060: #include <gtk/gtk.h>
5061: #include <stdio.h>
5062:
5063: int
5064: main ()
5065: {
5066: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
5067: ;
5068: return 0;
5069: }
5070: _ACEOF
5071: if ac_fn_c_try_link "$LINENO"; then :
5072: echo "*** The test program compiled, but did not run. This usually means"
5073: echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
5074: echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
5075: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5076: echo "*** to the installed location Also, make sure you have run ldconfig if that"
5077: echo "*** is required on your system"
5078: echo "***"
5079: echo "*** If you have an old version installed, it is best to remove it, although"
5080: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5081: else
5082: echo "*** The test program failed to compile or link. See the file config.log for the"
5083: echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
5084: fi
5085: rm -f core conftest.err conftest.$ac_objext \
5086: conftest$ac_exeext conftest.$ac_ext
5087: CFLAGS="$ac_save_CFLAGS"
5088: LIBS="$ac_save_LIBS"
5089: fi
5090: fi
5091: GTK_CFLAGS=""
5092: GTK_LIBS=""
5093: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without GTK2 display support" >&5
5094: $as_echo "$as_me: WARNING: Building without GTK2 display support" >&2;}
5095:
5096: $as_echo "#define NO_GTK 1" >>confdefs.h
5097:
5098: GTK_OBJ=""
5099: fi
5100:
5101:
5102: rm -f conf.gtktest
5103:
5104: else
5105: $as_echo "#define NO_GTK 1" >>confdefs.h
5106:
5107: GTK_OBJ=""
5108: if test "x$WANTS_GLIB" = "xyes"; then
5109:
5110:
5111:
5112:
5113:
5114:
5115:
5116: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5117: if test -n "$ac_tool_prefix"; then
5118: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5119: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121: $as_echo_n "checking for $ac_word... " >&6; }
5122: if ${ac_cv_path_PKG_CONFIG+:} false; then :
5123: $as_echo_n "(cached) " >&6
5124: else
5125: case $PKG_CONFIG in
5126: [\\/]* | ?:[\\/]*)
5127: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5128: ;;
5129: *)
5130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131: for as_dir in $PATH
5132: do
5133: IFS=$as_save_IFS
5134: test -z "$as_dir" && as_dir=.
5135: for ac_exec_ext in '' $ac_executable_extensions; do
5136: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5138: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139: break 2
5140: fi
5141: done
5142: done
5143: IFS=$as_save_IFS
5144:
5145: ;;
5146: esac
5147: fi
5148: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5149: if test -n "$PKG_CONFIG"; then
5150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5151: $as_echo "$PKG_CONFIG" >&6; }
5152: else
5153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154: $as_echo "no" >&6; }
5155: fi
5156:
5157:
5158: fi
5159: if test -z "$ac_cv_path_PKG_CONFIG"; then
5160: ac_pt_PKG_CONFIG=$PKG_CONFIG
5161: # Extract the first word of "pkg-config", so it can be a program name with args.
5162: set dummy pkg-config; ac_word=$2
5163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164: $as_echo_n "checking for $ac_word... " >&6; }
5165: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5166: $as_echo_n "(cached) " >&6
5167: else
5168: case $ac_pt_PKG_CONFIG in
5169: [\\/]* | ?:[\\/]*)
5170: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5171: ;;
5172: *)
5173: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174: for as_dir in $PATH
5175: do
5176: IFS=$as_save_IFS
5177: test -z "$as_dir" && as_dir=.
5178: for ac_exec_ext in '' $ac_executable_extensions; do
5179: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5181: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182: break 2
5183: fi
5184: done
5185: done
5186: IFS=$as_save_IFS
5187:
5188: ;;
5189: esac
5190: fi
5191: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5192: if test -n "$ac_pt_PKG_CONFIG"; then
5193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5194: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5195: else
5196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197: $as_echo "no" >&6; }
5198: fi
5199:
5200: if test "x$ac_pt_PKG_CONFIG" = x; then
5201: PKG_CONFIG=""
5202: else
5203: case $cross_compiling:$ac_tool_warned in
5204: yes:)
5205: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207: ac_tool_warned=yes ;;
5208: esac
5209: PKG_CONFIG=$ac_pt_PKG_CONFIG
5210: fi
5211: else
5212: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5213: fi
5214:
5215: fi
5216: if test -n "$PKG_CONFIG"; then
5217: _pkg_min_version=0.9.0
5218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5219: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5220: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222: $as_echo "yes" >&6; }
5223: else
5224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225: $as_echo "no" >&6; }
5226: PKG_CONFIG=""
5227: fi
5228: fi
5229:
5230: pkg_failed=no
5231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
5232: $as_echo_n "checking for GLIB... " >&6; }
5233:
5234: if test -n "$GLIB_CFLAGS"; then
5235: pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5236: elif test -n "$PKG_CONFIG"; then
5237: if test -n "$PKG_CONFIG" && \
5238: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
5239: ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5240: ac_status=$?
5241: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242: test $ac_status = 0; }; then
5243: pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
5244: test "x$?" != "x0" && pkg_failed=yes
5245: else
5246: pkg_failed=yes
5247: fi
5248: else
5249: pkg_failed=untried
5250: fi
5251: if test -n "$GLIB_LIBS"; then
5252: pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5253: elif test -n "$PKG_CONFIG"; then
5254: if test -n "$PKG_CONFIG" && \
5255: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
5256: ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
5257: ac_status=$?
5258: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259: test $ac_status = 0; }; then
5260: pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
5261: test "x$?" != "x0" && pkg_failed=yes
5262: else
5263: pkg_failed=yes
5264: fi
5265: else
5266: pkg_failed=untried
5267: fi
5268:
5269:
5270:
5271: if test $pkg_failed = yes; then
5272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273: $as_echo "no" >&6; }
5274:
5275: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5276: _pkg_short_errors_supported=yes
5277: else
5278: _pkg_short_errors_supported=no
5279: fi
5280: if test $_pkg_short_errors_supported = yes; then
5281: GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
5282: else
5283: GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
5284: fi
5285: # Put the nasty error message in config.log where it belongs
5286: echo "$GLIB_PKG_ERRORS" >&5
5287:
5288: as_fn_error $? "Package requirements (glib-2.0) were not met:
5289:
5290: $GLIB_PKG_ERRORS
5291:
5292: Consider adjusting the PKG_CONFIG_PATH environment variable if you
5293: installed software in a non-standard prefix.
5294:
5295: Alternatively, you may set the environment variables GLIB_CFLAGS
5296: and GLIB_LIBS to avoid the need to call pkg-config.
5297: See the pkg-config man page for more details." "$LINENO" 5
5298: elif test $pkg_failed = untried; then
5299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300: $as_echo "no" >&6; }
5301: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5302: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5303: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5304: is in your PATH or set the PKG_CONFIG environment variable to the full
5305: path to pkg-config.
5306:
5307: Alternatively, you may set the environment variables GLIB_CFLAGS
5308: and GLIB_LIBS to avoid the need to call pkg-config.
5309: See the pkg-config man page for more details.
5310:
5311: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5312: See \`config.log' for more details" "$LINENO" 5; }
5313: else
5314: GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5315: GLIB_LIBS=$pkg_cv_GLIB_LIBS
5316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317: $as_echo "yes" >&6; }
5318:
5319: fi
5320: else
5321:
5322: $as_echo "#define NO_GLIB 1" >>confdefs.h
5323:
5324: fi
5325: fi
5326:
5327: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
5328: if test "x$ac_cv_func_socket" = xyes; then :
5329:
5330: else
5331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5332: $as_echo_n "checking for socket in -lsocket... " >&6; }
5333: if ${ac_cv_lib_socket_socket+:} false; then :
5334: $as_echo_n "(cached) " >&6
5335: else
5336: ac_check_lib_save_LIBS=$LIBS
5337: LIBS="-lsocket $LIBS"
5338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339: /* end confdefs.h. */
5340:
5341: /* Override any GCC internal prototype to avoid an error.
5342: Use char because int might match the return type of a GCC
5343: builtin and then its argument prototype would still apply. */
5344: #ifdef __cplusplus
5345: extern "C"
5346: #endif
5347: char socket ();
5348: int
5349: main ()
5350: {
5351: return socket ();
5352: ;
5353: return 0;
5354: }
5355: _ACEOF
5356: if ac_fn_c_try_link "$LINENO"; then :
5357: ac_cv_lib_socket_socket=yes
5358: else
5359: ac_cv_lib_socket_socket=no
5360: fi
5361: rm -f core conftest.err conftest.$ac_objext \
5362: conftest$ac_exeext conftest.$ac_ext
5363: LIBS=$ac_check_lib_save_LIBS
5364: fi
5365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5366: $as_echo "$ac_cv_lib_socket_socket" >&6; }
5367: if test "x$ac_cv_lib_socket_socket" = xyes; then :
5368: cat >>confdefs.h <<_ACEOF
5369: #define HAVE_LIBSOCKET 1
5370: _ACEOF
5371:
5372: LIBS="-lsocket $LIBS"
5373:
5374: else
5375: as_fn_error $? "No socket library found" "$LINENO" 5
5376: fi
5377:
5378: fi
5379:
5380:
5381: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5382: if test "x$ac_cv_func_gethostbyname" = xyes; then :
5383:
5384: else
5385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5386: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5387: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5388: $as_echo_n "(cached) " >&6
5389: else
5390: ac_check_lib_save_LIBS=$LIBS
5391: LIBS="-lnsl $LIBS"
5392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393: /* end confdefs.h. */
5394:
5395: /* Override any GCC internal prototype to avoid an error.
5396: Use char because int might match the return type of a GCC
5397: builtin and then its argument prototype would still apply. */
5398: #ifdef __cplusplus
5399: extern "C"
5400: #endif
5401: char gethostbyname ();
5402: int
5403: main ()
5404: {
5405: return gethostbyname ();
5406: ;
5407: return 0;
5408: }
5409: _ACEOF
5410: if ac_fn_c_try_link "$LINENO"; then :
5411: ac_cv_lib_nsl_gethostbyname=yes
5412: else
5413: ac_cv_lib_nsl_gethostbyname=no
5414: fi
5415: rm -f core conftest.err conftest.$ac_objext \
5416: conftest$ac_exeext conftest.$ac_ext
5417: LIBS=$ac_check_lib_save_LIBS
5418: fi
5419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5420: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5421: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5422: cat >>confdefs.h <<_ACEOF
5423: #define HAVE_LIBNSL 1
5424: _ACEOF
5425:
5426: LIBS="-lnsl $LIBS"
5427:
5428: else
5429: as_fn_error $? "No nameservice library found" "$LINENO" 5
5430: fi
5431:
5432: fi
5433:
5434:
5435: #AC_CHECK_FUNC(res_init, ,
5436: # AC_CHECK_LIB(bind, res_init, ,
5437: # AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
5438:
5439: for ac_func in seteuid
5440: do :
5441: ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
5442: if test "x$ac_cv_func_seteuid" = xyes; then :
5443: cat >>confdefs.h <<_ACEOF
5444: #define HAVE_SETEUID 1
5445: _ACEOF
5446:
5447: fi
5448: done
5449:
5450: # AC_CHECK_FUNC(setuid, , AC_MSG_ERROR (I Need either seteuid or setuid))
5451:
5452: #AC_CHECK_FUNC(res_mkquery, ,
5453: # AC_CHECK_LIB(bind, res_mkquery, ,
5454: # AC_CHECK_LIB(resolv, res_mkquery, ,
5455: # AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
5456:
5457: # See if a library is needed for res_mkquery and if so put it in RESOLV_LIBS
5458: RESOLV_LIBS=
5459:
5460:
5461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether library required for res_mkquery" >&5
5462: $as_echo_n "checking whether library required for res_mkquery... " >&6; }
5463: RESOLV_LIB_NONE=
5464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465: /* end confdefs.h. */
5466:
5467:
5468: #include <netinet/in.h>
5469: #include <resolv.h>
5470:
5471: int
5472: main ()
5473: {
5474:
5475: int (*res_mkquery_func)(int,...) = (int (*)(int,...))res_mkquery;
5476: (void)(*res_mkquery_func)(0);
5477:
5478: ;
5479: return 0;
5480: }
5481: _ACEOF
5482: if ac_fn_c_try_link "$LINENO"; then :
5483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484: $as_echo "no" >&6; }
5485: RESOLV_LIB_NONE=yes
5486: else
5487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488: $as_echo "yes" >&6; }
5489: fi
5490: rm -f core conftest.err conftest.$ac_objext \
5491: conftest$ac_exeext conftest.$ac_ext
5492: if test "x$RESOLV_LIB_NONE" = "x"; then
5493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_mkquery in -lbind" >&5
5494: $as_echo_n "checking for res_mkquery in -lbind... " >&6; }
5495: STASH_LIBS="$LIBS"
5496: LIBS="$STASH_LIBS -lbind"
5497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498: /* end confdefs.h. */
5499:
5500:
5501: #include <netinet/in.h>
5502: #include <resolv.h>
5503:
5504: int
5505: main ()
5506: {
5507:
5508: int (*res_mkquery_func)(int,...) = (int (*)(int,...))res_mkquery;
5509: (void)(*res_mkquery_func)(0);
5510:
5511: ;
5512: return 0;
5513: }
5514: _ACEOF
5515: if ac_fn_c_try_link "$LINENO"; then :
5516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517: $as_echo "yes" >&6; }
5518: RESOLV_LIBS=-lbind
5519: else
5520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521: $as_echo "no" >&6; }
5522: fi
5523: rm -f core conftest.err conftest.$ac_objext \
5524: conftest$ac_exeext conftest.$ac_ext
5525: if test "x$RESOLV_LIBS" = "x"; then
5526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_mkquery in -lresolv" >&5
5527: $as_echo_n "checking for res_mkquery in -lresolv... " >&6; }
5528: LIBS="$STASH_LIBS -lresolv"
5529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530: /* end confdefs.h. */
5531:
5532:
5533: #include <netinet/in.h>
5534: #include <resolv.h>
5535:
5536: int
5537: main ()
5538: {
5539:
5540: int (*res_mkquery_func)(int,...) = (int (*)(int,...))res_mkquery;
5541: (void)(*res_mkquery_func)(0);
5542:
5543: ;
5544: return 0;
5545: }
5546: _ACEOF
5547: if ac_fn_c_try_link "$LINENO"; then :
5548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5549: $as_echo "yes" >&6; }
5550: RESOLV_LIBS=-lresolv
5551: else
5552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553: $as_echo "no" >&6; }
5554: as_fn_error $? "No resolver library found" "$LINENO" 5
5555: fi
5556: rm -f core conftest.err conftest.$ac_objext \
5557: conftest$ac_exeext conftest.$ac_ext
5558: fi
5559: LIBS="$STASH_LIBS"
5560: fi
5561:
5562: ac_fn_c_check_func "$LINENO" "herror" "ac_cv_func_herror"
5563: if test "x$ac_cv_func_herror" = xyes; then :
5564:
5565: else
5566:
5567: $as_echo "#define NO_HERROR 1" >>confdefs.h
5568:
5569: fi
5570:
5571: ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5572: if test "x$ac_cv_func_strerror" = xyes; then :
5573:
5574: else
5575:
5576: $as_echo "#define NO_STRERROR 1" >>confdefs.h
5577:
5578: fi
5579:
5580:
5581: USES_IPV6=
5582: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5583: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5584: if test "$WANTS_IPV6" = "yes"; then
5585:
5586: $as_echo "#define ENABLE_IPV6 /**/" >>confdefs.h
5587:
5588: USES_IPV6=yes
5589: fi
5590: fi
5591:
5592:
5593:
5594:
5595: if test "x$USES_IPV6" = "xyes"; then
5596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __res_state_ext needs to be defined" >&5
5597: $as_echo_n "checking whether __res_state_ext needs to be defined... " >&6; }
5598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599: /* end confdefs.h. */
5600:
5601:
5602: #include <netinet/in.h>
5603: #include <resolv.h>
5604: #ifdef __GLIBC__
5605: #define RESEXTIN6(r,i) (*(r._u._ext.nsaddrs[i]))
5606: #else
5607: #define RESEXTIN6(r,i) (r._u._ext.ext->nsaddrs[i].sin6)
5608: #endif
5609:
5610: int
5611: main ()
5612: {
5613:
5614: struct __res_state res;
5615: return RESEXTIN6(res,0).sin6_addr.s6_addr[0];
5616:
5617: ;
5618: return 0;
5619: }
5620: _ACEOF
5621: if ac_fn_c_try_compile "$LINENO"; then :
5622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623: $as_echo "no" >&6; }
5624: else
5625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5626: $as_echo "yes" >&6; }
5627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether provided __res_state_ext definition can be compiled" >&5
5628: $as_echo_n "checking whether provided __res_state_ext definition can be compiled... " >&6; }
5629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630: /* end confdefs.h. */
5631:
5632:
5633: #include <netinet/in.h>
5634: #include <resolv.h>
5635: #ifdef __GLIBC__
5636: #define RESEXTIN6(r,i) (*(r._u._ext.nsaddrs[i]))
5637: #else
5638: #define RESEXTIN6(r,i) (r._u._ext.ext->nsaddrs[i].sin6)
5639: struct __res_state_ext {
5640: union res_sockaddr_union nsaddrs[MAXNS];
5641: struct sort_list {
5642: int af;
5643: union {
5644: struct in_addr ina;
5645: struct in6_addr in6a;
5646: } addr, mask;
5647: } sort_list[MAXRESOLVSORT];
5648: char nsuffix[64];
5649: char nsuffix2[64];
5650: };
5651: #endif
5652:
5653: int
5654: main ()
5655: {
5656:
5657: struct __res_state res;
5658: return RESEXTIN6(res,0).sin6_addr.s6_addr[0];
5659:
5660: ;
5661: return 0;
5662: }
5663: _ACEOF
5664: if ac_fn_c_try_compile "$LINENO"; then :
5665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666: $as_echo "yes" >&6; }
5667:
5668: $as_echo "#define NEED_RES_STATE_EXT 1" >>confdefs.h
5669:
5670: else
5671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672: $as_echo "no" >&6; }
5673: as_fn_error $? "Need definition for struct __res_state_ext but unable to define it." "$LINENO" 5
5674: fi
5675: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676: fi
5677: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678: fi
5679:
5680: ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
5681: #include <errno.h>
5682: #include <sys/errno.h>
5683:
5684: "
5685: if test "x$ac_cv_have_decl_errno" = xyes; then :
5686: ac_have_decl=1
5687: else
5688: ac_have_decl=0
5689: fi
5690:
5691: cat >>confdefs.h <<_ACEOF
5692: #define HAVE_DECL_ERRNO $ac_have_decl
5693: _ACEOF
5694:
5695:
5696: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5697: #include <netinet/in.h>
5698: #ifdef HAVE_SOCKET_H
5699: #include <socket.h>
5700: #endif
5701: #ifdef HAVE_SYS_SOCKET_H
5702: #include <sys/socket.h>
5703: #endif
5704:
5705: "
5706: if test "x$ac_cv_type_socklen_t" = xyes; then :
5707:
5708: $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
5709:
5710: fi
5711:
5712:
5713: ac_fn_c_check_type "$LINENO" "struct in_addr" "ac_cv_type_struct_in_addr" "
5714: #include <netinet/in.h>
5715:
5716: "
5717: if test "x$ac_cv_type_struct_in_addr" = xyes; then :
5718:
5719: $as_echo "#define HAVE_STRUCT_INADDR /**/" >>confdefs.h
5720:
5721: fi
5722:
5723:
5724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C flags to get more warnings" >&5
5725: $as_echo_n "checking for C flags to get more warnings... " >&6; }
5726: ac_save_CFLAGS="$CFLAGS"
5727: if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
5728: warning_CFLAGS="-Wall"
5729: # Check if compiler supports -Wno-pointer-sign and add it if supports
5730: CFLAGS_saved="$CFLAGS"
5731: CFLAGS="$CFLAGS -Wno-pointer-sign"
5732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733: /* end confdefs.h. */
5734: int foo;
5735: _ACEOF
5736: if ac_fn_c_try_compile "$LINENO"; then :
5737: warning_CFLAGS="${warning_CFLAGS} -Wno-pointer-sign"
5738: fi
5739: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740: CFLAGS="$CFLAGS_saved"
5741: else
5742: case "$host_os" in
5743: irix*)
5744: CFLAGS="$CFLAGS -fullwarn"
5745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746: /* end confdefs.h. */
5747: #include <stdio.h>
5748: int
5749: main ()
5750: {
5751: printf("test");
5752: ;
5753: return 0;
5754: }
5755: _ACEOF
5756: if ac_fn_c_try_compile "$LINENO"; then :
5757: warning_CFLAGS="-fullwarn"
5758: fi
5759: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760: ;;
5761:
5762: sunos*)
5763: if "$CC" = "acc" ; then
5764: CFLAGS="$CFLAGS -vc"
5765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766: /* end confdefs.h. */
5767: #include <stdio.h>
5768: int
5769: main ()
5770: {
5771: printf("test");
5772: ;
5773: return 0;
5774: }
5775: _ACEOF
5776: if ac_fn_c_try_compile "$LINENO"; then :
5777: warning_CFLAGS="-vc"
5778: fi
5779: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780: fi
5781: ;;
5782:
5783: *)
5784: warning_CFLAGS="none"
5785: ;;
5786: esac
5787: fi
5788: CFLAGS="$ac_save_CFLAGS"
5789: if test "$warning_CFLAGS" = "none" ; then
5790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5791: $as_echo "none" >&6; }
5792: else
5793: CFLAGS="$CFLAGS $warning_CFLAGS"
5794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_CFLAGS" >&5
5795: $as_echo "$warning_CFLAGS" >&6; }
5796: fi
5797:
5798:
5799:
5800:
5801: ac_config_headers="$ac_config_headers config.h"
5802:
5803: ac_config_files="$ac_config_files Makefile img/Makefile"
5804:
5805: cat >confcache <<\_ACEOF
5806: # This file is a shell script that caches the results of configure
5807: # tests run on this system so they can be shared between configure
5808: # scripts and configure runs, see configure's option --config-cache.
5809: # It is not useful on other systems. If it contains results you don't
5810: # want to keep, you may remove or edit it.
5811: #
5812: # config.status only pays attention to the cache file if you give it
5813: # the --recheck option to rerun configure.
5814: #
5815: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5816: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5817: # following values.
5818:
5819: _ACEOF
5820:
5821: # The following way of writing the cache mishandles newlines in values,
5822: # but we know of no workaround that is simple, portable, and efficient.
5823: # So, we kill variables containing newlines.
5824: # Ultrix sh set writes to stderr and can't be redirected directly,
5825: # and sets the high bit in the cache file unless we assign to the vars.
5826: (
5827: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5828: eval ac_val=\$$ac_var
5829: case $ac_val in #(
5830: *${as_nl}*)
5831: case $ac_var in #(
5832: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5833: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5834: esac
5835: case $ac_var in #(
5836: _ | IFS | as_nl) ;; #(
5837: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5838: *) { eval $ac_var=; unset $ac_var;} ;;
5839: esac ;;
5840: esac
5841: done
5842:
5843: (set) 2>&1 |
5844: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5845: *${as_nl}ac_space=\ *)
5846: # `set' does not quote correctly, so add quotes: double-quote
5847: # substitution turns \\\\ into \\, and sed turns \\ into \.
5848: sed -n \
5849: "s/'/'\\\\''/g;
5850: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5851: ;; #(
5852: *)
5853: # `set' quotes correctly as required by POSIX, so do not add quotes.
5854: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5855: ;;
5856: esac |
5857: sort
5858: ) |
5859: sed '
5860: /^ac_cv_env_/b end
5861: t clear
5862: :clear
5863: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5864: t end
5865: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5866: :end' >>confcache
5867: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5868: if test -w "$cache_file"; then
5869: if test "x$cache_file" != "x/dev/null"; then
5870: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5871: $as_echo "$as_me: updating cache $cache_file" >&6;}
5872: if test ! -f "$cache_file" || test -h "$cache_file"; then
5873: cat confcache >"$cache_file"
5874: else
5875: case $cache_file in #(
5876: */* | ?:*)
5877: mv -f confcache "$cache_file"$$ &&
5878: mv -f "$cache_file"$$ "$cache_file" ;; #(
5879: *)
5880: mv -f confcache "$cache_file" ;;
5881: esac
5882: fi
5883: fi
5884: else
5885: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5886: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5887: fi
5888: fi
5889: rm -f confcache
5890:
5891: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5892: # Let make expand exec_prefix.
5893: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5894:
5895: DEFS=-DHAVE_CONFIG_H
5896:
5897: ac_libobjs=
5898: ac_ltlibobjs=
5899: U=
5900: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5901: # 1. Remove the extension, and $U if already installed.
5902: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5903: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5904: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5905: # will be set to the directory where LIBOBJS objects are built.
5906: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5907: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5908: done
5909: LIBOBJS=$ac_libobjs
5910:
5911: LTLIBOBJS=$ac_ltlibobjs
5912:
5913:
5914: if test -n "$EXEEXT"; then
5915: am__EXEEXT_TRUE=
5916: am__EXEEXT_FALSE='#'
5917: else
5918: am__EXEEXT_TRUE='#'
5919: am__EXEEXT_FALSE=
5920: fi
5921:
5922: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5923: as_fn_error $? "conditional \"AMDEP\" was never defined.
5924: Usually this means the macro was only invoked conditionally." "$LINENO" 5
5925: fi
5926: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5927: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5928: Usually this means the macro was only invoked conditionally." "$LINENO" 5
5929: fi
5930: if test -z "${IPINFO_TRUE}" && test -z "${IPINFO_FALSE}"; then
5931: as_fn_error $? "conditional \"IPINFO\" was never defined.
5932: Usually this means the macro was only invoked conditionally." "$LINENO" 5
5933: fi
5934:
5935: : "${CONFIG_STATUS=./config.status}"
5936: ac_write_fail=0
5937: ac_clean_files_save=$ac_clean_files
5938: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5939: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5940: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5941: as_write_fail=0
5942: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5943: #! $SHELL
5944: # Generated by $as_me.
5945: # Run this file to recreate the current configuration.
5946: # Compiler output produced by configure, useful for debugging
5947: # configure, is in config.log if it exists.
5948:
5949: debug=false
5950: ac_cs_recheck=false
5951: ac_cs_silent=false
5952:
5953: SHELL=\${CONFIG_SHELL-$SHELL}
5954: export SHELL
5955: _ASEOF
5956: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5957: ## -------------------- ##
5958: ## M4sh Initialization. ##
5959: ## -------------------- ##
5960:
5961: # Be more Bourne compatible
5962: DUALCASE=1; export DUALCASE # for MKS sh
5963: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5964: emulate sh
5965: NULLCMD=:
5966: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5967: # is contrary to our usage. Disable this feature.
5968: alias -g '${1+"$@"}'='"$@"'
5969: setopt NO_GLOB_SUBST
5970: else
5971: case `(set -o) 2>/dev/null` in #(
5972: *posix*) :
5973: set -o posix ;; #(
5974: *) :
5975: ;;
5976: esac
5977: fi
5978:
5979:
5980: as_nl='
5981: '
5982: export as_nl
5983: # Printing a long string crashes Solaris 7 /usr/bin/printf.
5984: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5985: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5986: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5987: # Prefer a ksh shell builtin over an external printf program on Solaris,
5988: # but without wasting forks for bash or zsh.
5989: if test -z "$BASH_VERSION$ZSH_VERSION" \
5990: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5991: as_echo='print -r --'
5992: as_echo_n='print -rn --'
5993: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5994: as_echo='printf %s\n'
5995: as_echo_n='printf %s'
5996: else
5997: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5998: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5999: as_echo_n='/usr/ucb/echo -n'
6000: else
6001: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6002: as_echo_n_body='eval
6003: arg=$1;
6004: case $arg in #(
6005: *"$as_nl"*)
6006: expr "X$arg" : "X\\(.*\\)$as_nl";
6007: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6008: esac;
6009: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6010: '
6011: export as_echo_n_body
6012: as_echo_n='sh -c $as_echo_n_body as_echo'
6013: fi
6014: export as_echo_body
6015: as_echo='sh -c $as_echo_body as_echo'
6016: fi
6017:
6018: # The user is always right.
6019: if test "${PATH_SEPARATOR+set}" != set; then
6020: PATH_SEPARATOR=:
6021: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6022: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6023: PATH_SEPARATOR=';'
6024: }
6025: fi
6026:
6027:
6028: # IFS
6029: # We need space, tab and new line, in precisely that order. Quoting is
6030: # there to prevent editors from complaining about space-tab.
6031: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6032: # splitting by setting IFS to empty value.)
6033: IFS=" "" $as_nl"
6034:
6035: # Find who we are. Look in the path if we contain no directory separator.
6036: as_myself=
6037: case $0 in #((
6038: *[\\/]* ) as_myself=$0 ;;
6039: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040: for as_dir in $PATH
6041: do
6042: IFS=$as_save_IFS
6043: test -z "$as_dir" && as_dir=.
6044: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6045: done
6046: IFS=$as_save_IFS
6047:
6048: ;;
6049: esac
6050: # We did not find ourselves, most probably we were run as `sh COMMAND'
6051: # in which case we are not to be found in the path.
6052: if test "x$as_myself" = x; then
6053: as_myself=$0
6054: fi
6055: if test ! -f "$as_myself"; then
6056: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6057: exit 1
6058: fi
6059:
6060: # Unset variables that we do not need and which cause bugs (e.g. in
6061: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6062: # suppresses any "Segmentation fault" message there. '((' could
6063: # trigger a bug in pdksh 5.2.14.
6064: for as_var in BASH_ENV ENV MAIL MAILPATH
6065: do eval test x\${$as_var+set} = xset \
6066: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6067: done
6068: PS1='$ '
6069: PS2='> '
6070: PS4='+ '
6071:
6072: # NLS nuisances.
6073: LC_ALL=C
6074: export LC_ALL
6075: LANGUAGE=C
6076: export LANGUAGE
6077:
6078: # CDPATH.
6079: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6080:
6081:
6082: # as_fn_error STATUS ERROR [LINENO LOG_FD]
6083: # ----------------------------------------
6084: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6085: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6086: # script with STATUS, using 1 if that was 0.
6087: as_fn_error ()
6088: {
6089: as_status=$1; test $as_status -eq 0 && as_status=1
6090: if test "$4"; then
6091: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6092: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6093: fi
6094: $as_echo "$as_me: error: $2" >&2
6095: as_fn_exit $as_status
6096: } # as_fn_error
6097:
6098:
6099: # as_fn_set_status STATUS
6100: # -----------------------
6101: # Set $? to STATUS, without forking.
6102: as_fn_set_status ()
6103: {
6104: return $1
6105: } # as_fn_set_status
6106:
6107: # as_fn_exit STATUS
6108: # -----------------
6109: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6110: as_fn_exit ()
6111: {
6112: set +e
6113: as_fn_set_status $1
6114: exit $1
6115: } # as_fn_exit
6116:
6117: # as_fn_unset VAR
6118: # ---------------
6119: # Portably unset VAR.
6120: as_fn_unset ()
6121: {
6122: { eval $1=; unset $1;}
6123: }
6124: as_unset=as_fn_unset
6125: # as_fn_append VAR VALUE
6126: # ----------------------
6127: # Append the text in VALUE to the end of the definition contained in VAR. Take
6128: # advantage of any shell optimizations that allow amortized linear growth over
6129: # repeated appends, instead of the typical quadratic growth present in naive
6130: # implementations.
6131: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6132: eval 'as_fn_append ()
6133: {
6134: eval $1+=\$2
6135: }'
6136: else
6137: as_fn_append ()
6138: {
6139: eval $1=\$$1\$2
6140: }
6141: fi # as_fn_append
6142:
6143: # as_fn_arith ARG...
6144: # ------------------
6145: # Perform arithmetic evaluation on the ARGs, and store the result in the
6146: # global $as_val. Take advantage of shells that can avoid forks. The arguments
6147: # must be portable across $(()) and expr.
6148: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6149: eval 'as_fn_arith ()
6150: {
6151: as_val=$(( $* ))
6152: }'
6153: else
6154: as_fn_arith ()
6155: {
6156: as_val=`expr "$@" || test $? -eq 1`
6157: }
6158: fi # as_fn_arith
6159:
6160:
6161: if expr a : '\(a\)' >/dev/null 2>&1 &&
6162: test "X`expr 00001 : '.*\(...\)'`" = X001; then
6163: as_expr=expr
6164: else
6165: as_expr=false
6166: fi
6167:
6168: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6169: as_basename=basename
6170: else
6171: as_basename=false
6172: fi
6173:
6174: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6175: as_dirname=dirname
6176: else
6177: as_dirname=false
6178: fi
6179:
6180: as_me=`$as_basename -- "$0" ||
6181: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6182: X"$0" : 'X\(//\)$' \| \
6183: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6184: $as_echo X/"$0" |
6185: sed '/^.*\/\([^/][^/]*\)\/*$/{
6186: s//\1/
6187: q
6188: }
6189: /^X\/\(\/\/\)$/{
6190: s//\1/
6191: q
6192: }
6193: /^X\/\(\/\).*/{
6194: s//\1/
6195: q
6196: }
6197: s/.*/./; q'`
6198:
6199: # Avoid depending upon Character Ranges.
6200: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6201: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6202: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6203: as_cr_digits='0123456789'
6204: as_cr_alnum=$as_cr_Letters$as_cr_digits
6205:
6206: ECHO_C= ECHO_N= ECHO_T=
6207: case `echo -n x` in #(((((
6208: -n*)
6209: case `echo 'xy\c'` in
6210: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6211: xy) ECHO_C='\c';;
6212: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6213: ECHO_T=' ';;
6214: esac;;
6215: *)
6216: ECHO_N='-n';;
6217: esac
6218:
6219: rm -f conf$$ conf$$.exe conf$$.file
6220: if test -d conf$$.dir; then
6221: rm -f conf$$.dir/conf$$.file
6222: else
6223: rm -f conf$$.dir
6224: mkdir conf$$.dir 2>/dev/null
6225: fi
6226: if (echo >conf$$.file) 2>/dev/null; then
6227: if ln -s conf$$.file conf$$ 2>/dev/null; then
6228: as_ln_s='ln -s'
6229: # ... but there are two gotchas:
6230: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6231: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6232: # In both cases, we have to default to `cp -p'.
6233: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6234: as_ln_s='cp -p'
6235: elif ln conf$$.file conf$$ 2>/dev/null; then
6236: as_ln_s=ln
6237: else
6238: as_ln_s='cp -p'
6239: fi
6240: else
6241: as_ln_s='cp -p'
6242: fi
6243: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6244: rmdir conf$$.dir 2>/dev/null
6245:
6246:
6247: # as_fn_mkdir_p
6248: # -------------
6249: # Create "$as_dir" as a directory, including parents if necessary.
6250: as_fn_mkdir_p ()
6251: {
6252:
6253: case $as_dir in #(
6254: -*) as_dir=./$as_dir;;
6255: esac
6256: test -d "$as_dir" || eval $as_mkdir_p || {
6257: as_dirs=
6258: while :; do
6259: case $as_dir in #(
6260: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6261: *) as_qdir=$as_dir;;
6262: esac
6263: as_dirs="'$as_qdir' $as_dirs"
6264: as_dir=`$as_dirname -- "$as_dir" ||
6265: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6266: X"$as_dir" : 'X\(//\)[^/]' \| \
6267: X"$as_dir" : 'X\(//\)$' \| \
6268: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6269: $as_echo X"$as_dir" |
6270: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6271: s//\1/
6272: q
6273: }
6274: /^X\(\/\/\)[^/].*/{
6275: s//\1/
6276: q
6277: }
6278: /^X\(\/\/\)$/{
6279: s//\1/
6280: q
6281: }
6282: /^X\(\/\).*/{
6283: s//\1/
6284: q
6285: }
6286: s/.*/./; q'`
6287: test -d "$as_dir" && break
6288: done
6289: test -z "$as_dirs" || eval "mkdir $as_dirs"
6290: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6291:
6292:
6293: } # as_fn_mkdir_p
6294: if mkdir -p . 2>/dev/null; then
6295: as_mkdir_p='mkdir -p "$as_dir"'
6296: else
6297: test -d ./-p && rmdir ./-p
6298: as_mkdir_p=false
6299: fi
6300:
6301: if test -x / >/dev/null 2>&1; then
6302: as_test_x='test -x'
6303: else
6304: if ls -dL / >/dev/null 2>&1; then
6305: as_ls_L_option=L
6306: else
6307: as_ls_L_option=
6308: fi
6309: as_test_x='
6310: eval sh -c '\''
6311: if test -d "$1"; then
6312: test -d "$1/.";
6313: else
6314: case $1 in #(
6315: -*)set "./$1";;
6316: esac;
6317: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6318: ???[sx]*):;;*)false;;esac;fi
6319: '\'' sh
6320: '
6321: fi
6322: as_executable_p=$as_test_x
6323:
6324: # Sed expression to map a string onto a valid CPP name.
6325: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6326:
6327: # Sed expression to map a string onto a valid variable name.
6328: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6329:
6330:
6331: exec 6>&1
6332: ## ----------------------------------- ##
6333: ## Main body of $CONFIG_STATUS script. ##
6334: ## ----------------------------------- ##
6335: _ASEOF
6336: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6337:
6338: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6339: # Save the log message, to keep $0 and so on meaningful, and to
6340: # report actual input values of CONFIG_FILES etc. instead of their
6341: # values after options handling.
6342: ac_log="
6343: This file was extended by mtr $as_me 0.85, which was
6344: generated by GNU Autoconf 2.68. Invocation command line was
6345:
6346: CONFIG_FILES = $CONFIG_FILES
6347: CONFIG_HEADERS = $CONFIG_HEADERS
6348: CONFIG_LINKS = $CONFIG_LINKS
6349: CONFIG_COMMANDS = $CONFIG_COMMANDS
6350: $ $0 $@
6351:
6352: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6353: "
6354:
6355: _ACEOF
6356:
6357: case $ac_config_files in *"
6358: "*) set x $ac_config_files; shift; ac_config_files=$*;;
6359: esac
6360:
6361: case $ac_config_headers in *"
6362: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6363: esac
6364:
6365:
6366: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6367: # Files that config.status was made for.
6368: config_files="$ac_config_files"
6369: config_headers="$ac_config_headers"
6370: config_commands="$ac_config_commands"
6371:
6372: _ACEOF
6373:
6374: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6375: ac_cs_usage="\
6376: \`$as_me' instantiates files and other configuration actions
6377: from templates according to the current configuration. Unless the files
6378: and actions are specified as TAGs, all are instantiated by default.
6379:
6380: Usage: $0 [OPTION]... [TAG]...
6381:
6382: -h, --help print this help, then exit
6383: -V, --version print version number and configuration settings, then exit
6384: --config print configuration, then exit
6385: -q, --quiet, --silent
6386: do not print progress messages
6387: -d, --debug don't remove temporary files
6388: --recheck update $as_me by reconfiguring in the same conditions
6389: --file=FILE[:TEMPLATE]
6390: instantiate the configuration file FILE
6391: --header=FILE[:TEMPLATE]
6392: instantiate the configuration header FILE
6393:
6394: Configuration files:
6395: $config_files
6396:
6397: Configuration headers:
6398: $config_headers
6399:
6400: Configuration commands:
6401: $config_commands
6402:
6403: Report bugs to the package provider."
6404:
6405: _ACEOF
6406: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6407: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6408: ac_cs_version="\\
6409: mtr config.status 0.85
6410: configured by $0, generated by GNU Autoconf 2.68,
6411: with options \\"\$ac_cs_config\\"
6412:
6413: Copyright (C) 2010 Free Software Foundation, Inc.
6414: This config.status script is free software; the Free Software Foundation
6415: gives unlimited permission to copy, distribute and modify it."
6416:
6417: ac_pwd='$ac_pwd'
6418: srcdir='$srcdir'
6419: INSTALL='$INSTALL'
6420: MKDIR_P='$MKDIR_P'
6421: AWK='$AWK'
6422: test -n "\$AWK" || AWK=awk
6423: _ACEOF
6424:
6425: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6426: # The default lists apply if the user does not specify any file.
6427: ac_need_defaults=:
6428: while test $# != 0
6429: do
6430: case $1 in
6431: --*=?*)
6432: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6433: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6434: ac_shift=:
6435: ;;
6436: --*=)
6437: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6438: ac_optarg=
6439: ac_shift=:
6440: ;;
6441: *)
6442: ac_option=$1
6443: ac_optarg=$2
6444: ac_shift=shift
6445: ;;
6446: esac
6447:
6448: case $ac_option in
6449: # Handling of the options.
6450: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6451: ac_cs_recheck=: ;;
6452: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6453: $as_echo "$ac_cs_version"; exit ;;
6454: --config | --confi | --conf | --con | --co | --c )
6455: $as_echo "$ac_cs_config"; exit ;;
6456: --debug | --debu | --deb | --de | --d | -d )
6457: debug=: ;;
6458: --file | --fil | --fi | --f )
6459: $ac_shift
6460: case $ac_optarg in
6461: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6462: '') as_fn_error $? "missing file argument" ;;
6463: esac
6464: as_fn_append CONFIG_FILES " '$ac_optarg'"
6465: ac_need_defaults=false;;
6466: --header | --heade | --head | --hea )
6467: $ac_shift
6468: case $ac_optarg in
6469: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6470: esac
6471: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6472: ac_need_defaults=false;;
6473: --he | --h)
6474: # Conflict between --help and --header
6475: as_fn_error $? "ambiguous option: \`$1'
6476: Try \`$0 --help' for more information.";;
6477: --help | --hel | -h )
6478: $as_echo "$ac_cs_usage"; exit ;;
6479: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6480: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6481: ac_cs_silent=: ;;
6482:
6483: # This is an error.
6484: -*) as_fn_error $? "unrecognized option: \`$1'
6485: Try \`$0 --help' for more information." ;;
6486:
6487: *) as_fn_append ac_config_targets " $1"
6488: ac_need_defaults=false ;;
6489:
6490: esac
6491: shift
6492: done
6493:
6494: ac_configure_extra_args=
6495:
6496: if $ac_cs_silent; then
6497: exec 6>/dev/null
6498: ac_configure_extra_args="$ac_configure_extra_args --silent"
6499: fi
6500:
6501: _ACEOF
6502: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6503: if \$ac_cs_recheck; then
6504: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6505: shift
6506: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6507: CONFIG_SHELL='$SHELL'
6508: export CONFIG_SHELL
6509: exec "\$@"
6510: fi
6511:
6512: _ACEOF
6513: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6514: exec 5>>config.log
6515: {
6516: echo
6517: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6518: ## Running $as_me. ##
6519: _ASBOX
6520: $as_echo "$ac_log"
6521: } >&5
6522:
6523: _ACEOF
6524: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6525: #
6526: # INIT-COMMANDS
6527: #
6528: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6529:
6530: _ACEOF
6531:
6532: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6533:
6534: # Handling of arguments.
6535: for ac_config_target in $ac_config_targets
6536: do
6537: case $ac_config_target in
6538: "version.h.tmp") CONFIG_FILES="$CONFIG_FILES version.h.tmp:version.h.in" ;;
6539: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6540: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6541: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6542: "img/Makefile") CONFIG_FILES="$CONFIG_FILES img/Makefile" ;;
6543:
6544: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6545: esac
6546: done
6547:
6548:
6549: # If the user did not use the arguments to specify the items to instantiate,
6550: # then the envvar interface is used. Set only those that are not.
6551: # We use the long form for the default assignment because of an extremely
6552: # bizarre bug on SunOS 4.1.3.
6553: if $ac_need_defaults; then
6554: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6555: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6556: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6557: fi
6558:
6559: # Have a temporary directory for convenience. Make it in the build tree
6560: # simply because there is no reason against having it here, and in addition,
6561: # creating and moving files from /tmp can sometimes cause problems.
6562: # Hook for its removal unless debugging.
6563: # Note that there is a small window in which the directory will not be cleaned:
6564: # after its creation but before its name has been assigned to `$tmp'.
6565: $debug ||
6566: {
6567: tmp= ac_tmp=
6568: trap 'exit_status=$?
6569: : "${ac_tmp:=$tmp}"
6570: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6571: ' 0
6572: trap 'as_fn_exit 1' 1 2 13 15
6573: }
6574: # Create a (secure) tmp directory for tmp files.
6575:
6576: {
6577: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6578: test -d "$tmp"
6579: } ||
6580: {
6581: tmp=./conf$$-$RANDOM
6582: (umask 077 && mkdir "$tmp")
6583: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6584: ac_tmp=$tmp
6585:
6586: # Set up the scripts for CONFIG_FILES section.
6587: # No need to generate them if there are no CONFIG_FILES.
6588: # This happens for instance with `./config.status config.h'.
6589: if test -n "$CONFIG_FILES"; then
6590:
6591:
6592: ac_cr=`echo X | tr X '\015'`
6593: # On cygwin, bash can eat \r inside `` if the user requested igncr.
6594: # But we know of no other shell where ac_cr would be empty at this
6595: # point, so we can use a bashism as a fallback.
6596: if test "x$ac_cr" = x; then
6597: eval ac_cr=\$\'\\r\'
6598: fi
6599: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6600: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6601: ac_cs_awk_cr='\\r'
6602: else
6603: ac_cs_awk_cr=$ac_cr
6604: fi
6605:
6606: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6607: _ACEOF
6608:
6609:
6610: {
6611: echo "cat >conf$$subs.awk <<_ACEOF" &&
6612: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6613: echo "_ACEOF"
6614: } >conf$$subs.sh ||
6615: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6616: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6617: ac_delim='%!_!# '
6618: for ac_last_try in false false false false false :; do
6619: . ./conf$$subs.sh ||
6620: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6621:
6622: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6623: if test $ac_delim_n = $ac_delim_num; then
6624: break
6625: elif $ac_last_try; then
6626: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6627: else
6628: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6629: fi
6630: done
6631: rm -f conf$$subs.sh
6632:
6633: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6634: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6635: _ACEOF
6636: sed -n '
6637: h
6638: s/^/S["/; s/!.*/"]=/
6639: p
6640: g
6641: s/^[^!]*!//
6642: :repl
6643: t repl
6644: s/'"$ac_delim"'$//
6645: t delim
6646: :nl
6647: h
6648: s/\(.\{148\}\)..*/\1/
6649: t more1
6650: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6651: p
6652: n
6653: b repl
6654: :more1
6655: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6656: p
6657: g
6658: s/.\{148\}//
6659: t nl
6660: :delim
6661: h
6662: s/\(.\{148\}\)..*/\1/
6663: t more2
6664: s/["\\]/\\&/g; s/^/"/; s/$/"/
6665: p
6666: b
6667: :more2
6668: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6669: p
6670: g
6671: s/.\{148\}//
6672: t delim
6673: ' <conf$$subs.awk | sed '
6674: /^[^""]/{
6675: N
6676: s/\n//
6677: }
6678: ' >>$CONFIG_STATUS || ac_write_fail=1
6679: rm -f conf$$subs.awk
6680: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6681: _ACAWK
6682: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6683: for (key in S) S_is_set[key] = 1
6684: FS = ""
6685:
6686: }
6687: {
6688: line = $ 0
6689: nfields = split(line, field, "@")
6690: substed = 0
6691: len = length(field[1])
6692: for (i = 2; i < nfields; i++) {
6693: key = field[i]
6694: keylen = length(key)
6695: if (S_is_set[key]) {
6696: value = S[key]
6697: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6698: len += length(value) + length(field[++i])
6699: substed = 1
6700: } else
6701: len += 1 + keylen
6702: }
6703:
6704: print line
6705: }
6706:
6707: _ACAWK
6708: _ACEOF
6709: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6710: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6711: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6712: else
6713: cat
6714: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6715: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6716: _ACEOF
6717:
6718: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6719: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6720: # trailing colons and then remove the whole line if VPATH becomes empty
6721: # (actually we leave an empty line to preserve line numbers).
6722: if test "x$srcdir" = x.; then
6723: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6724: h
6725: s///
6726: s/^/:/
6727: s/[ ]*$/:/
6728: s/:\$(srcdir):/:/g
6729: s/:\${srcdir}:/:/g
6730: s/:@srcdir@:/:/g
6731: s/^:*//
6732: s/:*$//
6733: x
6734: s/\(=[ ]*\).*/\1/
6735: G
6736: s/\n//
6737: s/^[^=]*=[ ]*$//
6738: }'
6739: fi
6740:
6741: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6742: fi # test -n "$CONFIG_FILES"
6743:
6744: # Set up the scripts for CONFIG_HEADERS section.
6745: # No need to generate them if there are no CONFIG_HEADERS.
6746: # This happens for instance with `./config.status Makefile'.
6747: if test -n "$CONFIG_HEADERS"; then
6748: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6749: BEGIN {
6750: _ACEOF
6751:
6752: # Transform confdefs.h into an awk script `defines.awk', embedded as
6753: # here-document in config.status, that substitutes the proper values into
6754: # config.h.in to produce config.h.
6755:
6756: # Create a delimiter string that does not exist in confdefs.h, to ease
6757: # handling of long lines.
6758: ac_delim='%!_!# '
6759: for ac_last_try in false false :; do
6760: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6761: if test -z "$ac_tt"; then
6762: break
6763: elif $ac_last_try; then
6764: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6765: else
6766: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6767: fi
6768: done
6769:
6770: # For the awk script, D is an array of macro values keyed by name,
6771: # likewise P contains macro parameters if any. Preserve backslash
6772: # newline sequences.
6773:
6774: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6775: sed -n '
6776: s/.\{148\}/&'"$ac_delim"'/g
6777: t rset
6778: :rset
6779: s/^[ ]*#[ ]*define[ ][ ]*/ /
6780: t def
6781: d
6782: :def
6783: s/\\$//
6784: t bsnl
6785: s/["\\]/\\&/g
6786: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6787: D["\1"]=" \3"/p
6788: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6789: d
6790: :bsnl
6791: s/["\\]/\\&/g
6792: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6793: D["\1"]=" \3\\\\\\n"\\/p
6794: t cont
6795: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6796: t cont
6797: d
6798: :cont
6799: n
6800: s/.\{148\}/&'"$ac_delim"'/g
6801: t clear
6802: :clear
6803: s/\\$//
6804: t bsnlc
6805: s/["\\]/\\&/g; s/^/"/; s/$/"/p
6806: d
6807: :bsnlc
6808: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6809: b cont
6810: ' <confdefs.h | sed '
6811: s/'"$ac_delim"'/"\\\
6812: "/g' >>$CONFIG_STATUS || ac_write_fail=1
6813:
6814: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6815: for (key in D) D_is_set[key] = 1
6816: FS = ""
6817: }
6818: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6819: line = \$ 0
6820: split(line, arg, " ")
6821: if (arg[1] == "#") {
6822: defundef = arg[2]
6823: mac1 = arg[3]
6824: } else {
6825: defundef = substr(arg[1], 2)
6826: mac1 = arg[2]
6827: }
6828: split(mac1, mac2, "(") #)
6829: macro = mac2[1]
6830: prefix = substr(line, 1, index(line, defundef) - 1)
6831: if (D_is_set[macro]) {
6832: # Preserve the white space surrounding the "#".
6833: print prefix "define", macro P[macro] D[macro]
6834: next
6835: } else {
6836: # Replace #undef with comments. This is necessary, for example,
6837: # in the case of _POSIX_SOURCE, which is predefined and required
6838: # on some systems where configure will not decide to define it.
6839: if (defundef == "undef") {
6840: print "/*", prefix defundef, macro, "*/"
6841: next
6842: }
6843: }
6844: }
6845: { print }
6846: _ACAWK
6847: _ACEOF
6848: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6849: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6850: fi # test -n "$CONFIG_HEADERS"
6851:
6852:
6853: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6854: shift
6855: for ac_tag
6856: do
6857: case $ac_tag in
6858: :[FHLC]) ac_mode=$ac_tag; continue;;
6859: esac
6860: case $ac_mode$ac_tag in
6861: :[FHL]*:*);;
6862: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6863: :[FH]-) ac_tag=-:-;;
6864: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6865: esac
6866: ac_save_IFS=$IFS
6867: IFS=:
6868: set x $ac_tag
6869: IFS=$ac_save_IFS
6870: shift
6871: ac_file=$1
6872: shift
6873:
6874: case $ac_mode in
6875: :L) ac_source=$1;;
6876: :[FH])
6877: ac_file_inputs=
6878: for ac_f
6879: do
6880: case $ac_f in
6881: -) ac_f="$ac_tmp/stdin";;
6882: *) # Look for the file first in the build tree, then in the source tree
6883: # (if the path is not absolute). The absolute path cannot be DOS-style,
6884: # because $ac_f cannot contain `:'.
6885: test -f "$ac_f" ||
6886: case $ac_f in
6887: [\\/$]*) false;;
6888: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6889: esac ||
6890: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6891: esac
6892: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6893: as_fn_append ac_file_inputs " '$ac_f'"
6894: done
6895:
6896: # Let's still pretend it is `configure' which instantiates (i.e., don't
6897: # use $as_me), people would be surprised to read:
6898: # /* config.h. Generated by config.status. */
6899: configure_input='Generated from '`
6900: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6901: `' by configure.'
6902: if test x"$ac_file" != x-; then
6903: configure_input="$ac_file. $configure_input"
6904: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6905: $as_echo "$as_me: creating $ac_file" >&6;}
6906: fi
6907: # Neutralize special characters interpreted by sed in replacement strings.
6908: case $configure_input in #(
6909: *\&* | *\|* | *\\* )
6910: ac_sed_conf_input=`$as_echo "$configure_input" |
6911: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6912: *) ac_sed_conf_input=$configure_input;;
6913: esac
6914:
6915: case $ac_tag in
6916: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6917: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6918: esac
6919: ;;
6920: esac
6921:
6922: ac_dir=`$as_dirname -- "$ac_file" ||
6923: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6924: X"$ac_file" : 'X\(//\)[^/]' \| \
6925: X"$ac_file" : 'X\(//\)$' \| \
6926: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6927: $as_echo X"$ac_file" |
6928: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6929: s//\1/
6930: q
6931: }
6932: /^X\(\/\/\)[^/].*/{
6933: s//\1/
6934: q
6935: }
6936: /^X\(\/\/\)$/{
6937: s//\1/
6938: q
6939: }
6940: /^X\(\/\).*/{
6941: s//\1/
6942: q
6943: }
6944: s/.*/./; q'`
6945: as_dir="$ac_dir"; as_fn_mkdir_p
6946: ac_builddir=.
6947:
6948: case "$ac_dir" in
6949: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6950: *)
6951: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6952: # A ".." for each directory in $ac_dir_suffix.
6953: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6954: case $ac_top_builddir_sub in
6955: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6956: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6957: esac ;;
6958: esac
6959: ac_abs_top_builddir=$ac_pwd
6960: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6961: # for backward compatibility:
6962: ac_top_builddir=$ac_top_build_prefix
6963:
6964: case $srcdir in
6965: .) # We are building in place.
6966: ac_srcdir=.
6967: ac_top_srcdir=$ac_top_builddir_sub
6968: ac_abs_top_srcdir=$ac_pwd ;;
6969: [\\/]* | ?:[\\/]* ) # Absolute name.
6970: ac_srcdir=$srcdir$ac_dir_suffix;
6971: ac_top_srcdir=$srcdir
6972: ac_abs_top_srcdir=$srcdir ;;
6973: *) # Relative name.
6974: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6975: ac_top_srcdir=$ac_top_build_prefix$srcdir
6976: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6977: esac
6978: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6979:
6980:
6981: case $ac_mode in
6982: :F)
6983: #
6984: # CONFIG_FILE
6985: #
6986:
6987: case $INSTALL in
6988: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6989: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6990: esac
6991: ac_MKDIR_P=$MKDIR_P
6992: case $MKDIR_P in
6993: [\\/$]* | ?:[\\/]* ) ;;
6994: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6995: esac
6996: _ACEOF
6997:
6998: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6999: # If the template does not know about datarootdir, expand it.
7000: # FIXME: This hack should be removed a few years after 2.60.
7001: ac_datarootdir_hack=; ac_datarootdir_seen=
7002: ac_sed_dataroot='
7003: /datarootdir/ {
7004: p
7005: q
7006: }
7007: /@datadir@/p
7008: /@docdir@/p
7009: /@infodir@/p
7010: /@localedir@/p
7011: /@mandir@/p'
7012: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7013: *datarootdir*) ac_datarootdir_seen=yes;;
7014: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7016: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7017: _ACEOF
7018: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7019: ac_datarootdir_hack='
7020: s&@datadir@&$datadir&g
7021: s&@docdir@&$docdir&g
7022: s&@infodir@&$infodir&g
7023: s&@localedir@&$localedir&g
7024: s&@mandir@&$mandir&g
7025: s&\\\${datarootdir}&$datarootdir&g' ;;
7026: esac
7027: _ACEOF
7028:
7029: # Neutralize VPATH when `$srcdir' = `.'.
7030: # Shell code in configure.ac might set extrasub.
7031: # FIXME: do we really want to maintain this feature?
7032: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7033: ac_sed_extra="$ac_vpsub
7034: $extrasub
7035: _ACEOF
7036: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7037: :t
7038: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7039: s|@configure_input@|$ac_sed_conf_input|;t t
7040: s&@top_builddir@&$ac_top_builddir_sub&;t t
7041: s&@top_build_prefix@&$ac_top_build_prefix&;t t
7042: s&@srcdir@&$ac_srcdir&;t t
7043: s&@abs_srcdir@&$ac_abs_srcdir&;t t
7044: s&@top_srcdir@&$ac_top_srcdir&;t t
7045: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7046: s&@builddir@&$ac_builddir&;t t
7047: s&@abs_builddir@&$ac_abs_builddir&;t t
7048: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7049: s&@INSTALL@&$ac_INSTALL&;t t
7050: s&@MKDIR_P@&$ac_MKDIR_P&;t t
7051: $ac_datarootdir_hack
7052: "
7053: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7054: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7055:
7056: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7057: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7058: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7059: "$ac_tmp/out"`; test -z "$ac_out"; } &&
7060: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7061: which seems to be undefined. Please make sure it is defined" >&5
7062: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7063: which seems to be undefined. Please make sure it is defined" >&2;}
7064:
7065: rm -f "$ac_tmp/stdin"
7066: case $ac_file in
7067: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7068: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7069: esac \
7070: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7071: ;;
7072: :H)
7073: #
7074: # CONFIG_HEADER
7075: #
7076: if test x"$ac_file" != x-; then
7077: {
7078: $as_echo "/* $configure_input */" \
7079: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7080: } >"$ac_tmp/config.h" \
7081: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7082: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7084: $as_echo "$as_me: $ac_file is unchanged" >&6;}
7085: else
7086: rm -f "$ac_file"
7087: mv "$ac_tmp/config.h" "$ac_file" \
7088: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7089: fi
7090: else
7091: $as_echo "/* $configure_input */" \
7092: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7093: || as_fn_error $? "could not create -" "$LINENO" 5
7094: fi
7095: # Compute "$ac_file"'s index in $config_headers.
7096: _am_arg="$ac_file"
7097: _am_stamp_count=1
7098: for _am_header in $config_headers :; do
7099: case $_am_header in
7100: $_am_arg | $_am_arg:* )
7101: break ;;
7102: * )
7103: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7104: esac
7105: done
7106: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7107: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7108: X"$_am_arg" : 'X\(//\)[^/]' \| \
7109: X"$_am_arg" : 'X\(//\)$' \| \
7110: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7111: $as_echo X"$_am_arg" |
7112: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7113: s//\1/
7114: q
7115: }
7116: /^X\(\/\/\)[^/].*/{
7117: s//\1/
7118: q
7119: }
7120: /^X\(\/\/\)$/{
7121: s//\1/
7122: q
7123: }
7124: /^X\(\/\).*/{
7125: s//\1/
7126: q
7127: }
7128: s/.*/./; q'`/stamp-h$_am_stamp_count
7129: ;;
7130:
7131: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7132: $as_echo "$as_me: executing $ac_file commands" >&6;}
7133: ;;
7134: esac
7135:
7136:
7137: case $ac_file$ac_mode in
7138: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7139: # Autoconf 2.62 quotes --file arguments for eval, but not when files
7140: # are listed without --file. Let's play safe and only enable the eval
7141: # if we detect the quoting.
7142: case $CONFIG_FILES in
7143: *\'*) eval set x "$CONFIG_FILES" ;;
7144: *) set x $CONFIG_FILES ;;
7145: esac
7146: shift
7147: for mf
7148: do
7149: # Strip MF so we end up with the name of the file.
7150: mf=`echo "$mf" | sed -e 's/:.*$//'`
7151: # Check whether this is an Automake generated Makefile or not.
7152: # We used to match only the files named `Makefile.in', but
7153: # some people rename them; so instead we look at the file content.
7154: # Grep'ing the first line is not enough: some people post-process
7155: # each Makefile.in and add a new line on top of each file to say so.
7156: # Grep'ing the whole file is not good either: AIX grep has a line
7157: # limit of 2048, but all sed's we know have understand at least 4000.
7158: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7159: dirpart=`$as_dirname -- "$mf" ||
7160: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7161: X"$mf" : 'X\(//\)[^/]' \| \
7162: X"$mf" : 'X\(//\)$' \| \
7163: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7164: $as_echo X"$mf" |
7165: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7166: s//\1/
7167: q
7168: }
7169: /^X\(\/\/\)[^/].*/{
7170: s//\1/
7171: q
7172: }
7173: /^X\(\/\/\)$/{
7174: s//\1/
7175: q
7176: }
7177: /^X\(\/\).*/{
7178: s//\1/
7179: q
7180: }
7181: s/.*/./; q'`
7182: else
7183: continue
7184: fi
7185: # Extract the definition of DEPDIR, am__include, and am__quote
7186: # from the Makefile without running `make'.
7187: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7188: test -z "$DEPDIR" && continue
7189: am__include=`sed -n 's/^am__include = //p' < "$mf"`
7190: test -z "am__include" && continue
7191: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7192: # When using ansi2knr, U may be empty or an underscore; expand it
7193: U=`sed -n 's/^U = //p' < "$mf"`
7194: # Find all dependency output files, they are included files with
7195: # $(DEPDIR) in their names. We invoke sed twice because it is the
7196: # simplest approach to changing $(DEPDIR) to its actual value in the
7197: # expansion.
7198: for file in `sed -n "
7199: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7200: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7201: # Make sure the directory exists.
7202: test -f "$dirpart/$file" && continue
7203: fdir=`$as_dirname -- "$file" ||
7204: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7205: X"$file" : 'X\(//\)[^/]' \| \
7206: X"$file" : 'X\(//\)$' \| \
7207: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7208: $as_echo X"$file" |
7209: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7210: s//\1/
7211: q
7212: }
7213: /^X\(\/\/\)[^/].*/{
7214: s//\1/
7215: q
7216: }
7217: /^X\(\/\/\)$/{
7218: s//\1/
7219: q
7220: }
7221: /^X\(\/\).*/{
7222: s//\1/
7223: q
7224: }
7225: s/.*/./; q'`
7226: as_dir=$dirpart/$fdir; as_fn_mkdir_p
7227: # echo "creating $dirpart/$file"
7228: echo '# dummy' > "$dirpart/$file"
7229: done
7230: done
7231: }
7232: ;;
7233:
7234: esac
7235: done # for ac_tag
7236:
7237:
7238: as_fn_exit 0
7239: _ACEOF
7240: ac_clean_files=$ac_clean_files_save
7241:
7242: test $ac_write_fail = 0 ||
7243: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7244:
7245:
7246: # configure is writing to config.log, and then calls config.status.
7247: # config.status does its own redirection, appending to config.log.
7248: # Unfortunately, on DOS this fails, as config.log is still kept open
7249: # by configure, so config.status won't be able to write to it; its
7250: # output is simply discarded. So we exec the FD to /dev/null,
7251: # effectively closing config.log, so it can be properly (re)opened and
7252: # appended to by config.status. When coming back to configure, we
7253: # need to make the FD available again.
7254: if test "$no_create" != yes; then
7255: ac_cs_success=:
7256: ac_config_status_args=
7257: test "$silent" = yes &&
7258: ac_config_status_args="$ac_config_status_args --quiet"
7259: exec 5>/dev/null
7260: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7261: exec 5>>config.log
7262: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7263: # would make configure fail if this is the last instruction.
7264: $ac_cs_success || as_fn_exit 1
7265: fi
7266: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7268: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7269: fi
7270:
7271:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>