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