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.65 for xinit 1.2.1.
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 Free Software Foundation,
10 # 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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533 test -n "$DJDIR" || exec 7<&0 </dev/null
534 exec 6>&1
535
536 # Name of the host.
537 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541 #
542 # Initializations.
543 #
544 ac_default_prefix=/usr/local
545 ac_clean_files=
546 ac_config_libobj_dir=.
547 LIBOBJS=
548 cross_compiling=no
549 subdirs=
550 MFLAGS=
551 MAKEFLAGS=
552
553 # Identity of this package.
554 PACKAGE_NAME='xinit'
555 PACKAGE_TARNAME='xinit'
556 PACKAGE_VERSION='1.2.1'
557 PACKAGE_STRING='xinit 1.2.1'
558 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
559 PACKAGE_URL=''
560
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='am__EXEEXT_FALSE
598 am__EXEEXT_TRUE
599 LTLIBOBJS
600 LIBOBJS
601 XINITDIR
602 XINIT
603 XAUTH
604 XSERVER
605 XTERM
606 XCLOCK
607 TWM
608 XMODMAP
609 XRDB
610 XCONFIGFILEMAN
611 XCONFIGFILE
612 XSERVERNAME
613 ARCHMANDEFS
614 SHELL_CMD
615 STARTX_COOKIE_FLAGS
616 MCOOKIE
617 XINIT_LIBS
618 XINIT_CFLAGS
619 TIGER_LAUNCHD_FALSE
620 TIGER_LAUNCHD_TRUE
621 LAUNCHD_FALSE
622 LAUNCHD_TRUE
623 launchdidprefix
624 launchdaemonsdir
625 launchagentsdir
626 LAUNCHD
627 SED
628 RAWCPPFLAGS
629 RAWCPP
630 ADMIN_MAN_DIR
631 DRIVER_MAN_DIR
632 MISC_MAN_DIR
633 FILE_MAN_DIR
634 LIB_MAN_DIR
635 APP_MAN_DIR
636 ADMIN_MAN_SUFFIX
637 DRIVER_MAN_SUFFIX
638 MISC_MAN_SUFFIX
639 FILE_MAN_SUFFIX
640 LIB_MAN_SUFFIX
641 APP_MAN_SUFFIX
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 INSTALL_CMD
651 PKG_CONFIG
652 CHANGELOG_CMD
653 AM_BACKSLASH
654 AM_DEFAULT_VERBOSITY
655 CWARNFLAGS
656 EGREP
657 GREP
658 CPP
659 am__fastdepCC_FALSE
660 am__fastdepCC_TRUE
661 CCDEPMODE
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__quote
666 am__include
667 DEPDIR
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
683 AWK
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_maintainer_mode
743 enable_dependency_tracking
744 enable_silent_rules
745 enable_strict_compilation
746 with_release_version
747 with_xrdb
748 with_xmodmap
749 with_twm
750 with_xclock
751 with_xterm
752 with_xserver
753 with_xauth
754 with_xinit
755 with_xinitdir
756 with_launchd
757 with_launchagents_dir
758 with_launchdaemons_dir
759 with_launchd_id_prefix
760 '
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
764 CC
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
769 CPP
770 PKG_CONFIG
771 XINIT_CFLAGS
772 XINIT_LIBS'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
832 fi
833
834 case $ac_option in
835 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *) ac_optarg=yes ;;
837 esac
838
839 # Accept the important Cygnus configure options, so we can diagnose typos.
840
841 case $ac_dashdash$ac_option in
842 --)
843 ac_dashdash=yes ;;
844
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
849
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
854
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
861
862 --config-cache | -C)
863 cache_file=config.cache ;;
864
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
869
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
876
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=no ;;
892
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
897
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
902
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=\$ac_optarg ;;
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
938
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
943
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
973
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
990
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1011
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1047
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
1066 sbindir=$ac_optarg ;;
1067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
1077 sharedstatedir=$ac_optarg ;;
1078
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
1082 site=$ac_optarg ;;
1083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1088
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1095
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1106
1107 -with-* | --with-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=\$ac_optarg ;;
1122
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) as_fn_error "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information."
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1167 esac
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1189 no) ;;
1190 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1200 do
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1203 case $ac_val in
1204 */ )
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1207 esac
1208 # Be sure to have absolute directory names.
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 as_fn_error "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 as_fn_error "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures xinit 1.2.1 to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of xinit 1.2.1:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --disable-dependency-tracking speeds up one-time build
1395 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-silent-rules less verbose build output (undo: `make V=1')
1397 --disable-silent-rules verbose build output (undo: `make V=0')
1398 --enable-strict-compilation
1399 Enable all warnings from compiler and make them
1400 errors (default: disabled)
1401
1402 Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --with-release-version=STRING
1406 Use release version string in package name
1407 --with-xrdb=XRDB Path to xrdb
1408 --with-xmodmap=XMODMAP Path to xmodmap
1409 --with-twm=TWM Path to twm
1410 --with-xclock=XCLOCK Path to xclock
1411 --with-xterm=XTERM Path to xterm
1412 --with-xserver=XSERVER Path to default X server
1413 --with-xauth=XAUTH Path to xauth
1414 --with-xinit=XINIT Path to xinit
1415 --with-xinitdir=XINITDIR
1416 Path to xinitdir
1417 --with-launchd Build with support for Apple's launchd (default:
1418 auto)
1419 --with-launchagents-dir=PATH
1420 Path to launchd's LaunchAgents directory (default:
1421 /Library/LaunchAgents)
1422 --with-launchdaemons-dir=PATH
1423 Path to launchd's LaunchDaemonss directory (default:
1424 /Library/LaunchDaemons)
1425 --with-launchd-id-prefix=PATH
1426 Prefix to use for launchd identifiers (default:
1427 org.x)
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 PKG_CONFIG path to pkg-config utility
1439 XINIT_CFLAGS
1440 C compiler flags for XINIT, overriding pkg-config
1441 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 xinit configure 1.2.1
1510 generated by GNU Autoconf 2.65
1511
1512 Copyright (C) 2009 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_check_decl LINENO SYMBOL VAR
1562 # ------------------------------------
1563 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1564 ac_fn_c_check_decl ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1568 $as_echo_n "checking whether $2 is declared... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 $as_echo_n "(cached) " >&6
1571 else
1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h. */
1574 $4
1575 int
1576 main ()
1577 {
1578 #ifndef $2
1579 (void) $2;
1580 #endif
1581
1582 ;
1583 return 0;
1584 }
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587 eval "$3=yes"
1588 else
1589 eval "$3=no"
1590 fi
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592 fi
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597
1598 } # ac_fn_c_check_decl
1599
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } >/dev/null && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_cpp
1636
1637 # ac_fn_c_try_run LINENO
1638 # ----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1640 # that executables *can* be run.
1641 ac_fn_c_try_run ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>&5
1652 ac_status=$?
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1655 { { case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_try") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; }; }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: program exited with status $ac_status" >&5
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=$ac_status
1672 fi
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_run
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1711 # -------------------------------------------
1712 # Tests whether TYPE exists after having included INCLUDES, setting cache
1713 # variable VAR accordingly.
1714 ac_fn_c_check_type ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 eval "$3=no"
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 int
1727 main ()
1728 {
1729 if (sizeof ($2))
1730 return 0;
1731 ;
1732 return 0;
1733 }
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 int
1740 main ()
1741 {
1742 if (sizeof (($2)))
1743 return 0;
1744 ;
1745 return 0;
1746 }
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749
1750 else
1751 eval "$3=yes"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
1762 } # ac_fn_c_check_type
1763
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
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 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1798
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1810 fi
1811 rm -f conftest.err conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1814
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( cat <<\_ASBOX
1835 ## ---------------------------------------------------------------------- ##
1836 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1837 ## ---------------------------------------------------------------------- ##
1838 _ASBOX
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 ;;
1841 esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854
1855 } # ac_fn_c_check_header_mongrel
1856
1857 # ac_fn_c_try_link LINENO
1858 # -----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_link ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 $as_test_x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
1892 fi
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_link
1902
1903 # ac_fn_c_check_func LINENO FUNC VAR
1904 # ----------------------------------
1905 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1906 ac_fn_c_check_func ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1918 #define $2 innocuous_$2
1919
1920 /* System header to define __stub macros and hopefully few prototypes,
1921 which can conflict with char $2 (); below.
1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1923 <limits.h> exists even on freestanding compilers. */
1924
1925 #ifdef __STDC__
1926 # include <limits.h>
1927 #else
1928 # include <assert.h>
1929 #endif
1930
1931 #undef $2
1932
1933 /* Override any GCC internal prototype to avoid an error.
1934 Use char because int might match the return type of a GCC
1935 builtin and then its argument prototype would still apply. */
1936 #ifdef __cplusplus
1937 extern "C"
1938 #endif
1939 char $2 ();
1940 /* The GNU C library defines this for functions which it implements
1941 to always fail with ENOSYS. Some functions are actually named
1942 something starting with __ and the normal name is an alias. */
1943 #if defined __stub_$2 || defined __stub___$2
1944 choke me
1945 #endif
1946
1947 int
1948 main ()
1949 {
1950 return $2 ();
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_link "$LINENO"; then :
1956 eval "$3=yes"
1957 else
1958 eval "$3=no"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext \
1961 conftest$ac_exeext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
1968 } # ac_fn_c_check_func
1969 cat >config.log <<_ACEOF
1970 This file contains any messages produced by compilers while
1971 running configure, to aid debugging if configure makes a mistake.
1972
1973 It was created by xinit $as_me 1.2.1, which was
1974 generated by GNU Autoconf 2.65. Invocation command line was
1975
1976 $ $0 $@
1977
1978 _ACEOF
1979 exec 5>>config.log
1980 {
1981 cat <<_ASUNAME
1982 ## --------- ##
1983 ## Platform. ##
1984 ## --------- ##
1985
1986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991
1992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1994
1995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002
2003 _ASUNAME
2004
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 $as_echo "PATH: $as_dir"
2011 done
2012 IFS=$as_save_IFS
2013
2014 } >&5
2015
2016 cat >&5 <<_ACEOF
2017
2018
2019 ## ----------- ##
2020 ## Core tests. ##
2021 ## ----------- ##
2022
2023 _ACEOF
2024
2025
2026 # Keep a trace of the command line.
2027 # Strip out --no-create and --no-recursion so they do not pile up.
2028 # Strip out --silent because we don't want to record it for future runs.
2029 # Also quote any args containing shell meta-characters.
2030 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_configure_args=
2032 ac_configure_args0=
2033 ac_configure_args1=
2034 ac_must_keep_next=false
2035 for ac_pass in 1 2
2036 do
2037 for ac_arg
2038 do
2039 case $ac_arg in
2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2042 | -silent | --silent | --silen | --sile | --sil)
2043 continue ;;
2044 *\'*)
2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 esac
2047 case $ac_pass in
2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2049 2)
2050 as_fn_append ac_configure_args1 " '$ac_arg'"
2051 if test $ac_must_keep_next = true; then
2052 ac_must_keep_next=false # Got value, back to normal.
2053 else
2054 case $ac_arg in
2055 *=* | --config-cache | -C | -disable-* | --disable-* \
2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2058 | -with-* | --with-* | -without-* | --without-* | --x)
2059 case "$ac_configure_args0 " in
2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061 esac
2062 ;;
2063 -* ) ac_must_keep_next=true ;;
2064 esac
2065 fi
2066 as_fn_append ac_configure_args " '$ac_arg'"
2067 ;;
2068 esac
2069 done
2070 done
2071 { ac_configure_args0=; unset ac_configure_args0;}
2072 { ac_configure_args1=; unset ac_configure_args1;}
2073
2074 # When interrupted or exit'd, cleanup temporary files, and complete
2075 # config.log. We remove comments because anyway the quotes in there
2076 # would cause problems or look ugly.
2077 # WARNING: Use '\'' to represent an apostrophe within the trap.
2078 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2079 trap 'exit_status=$?
2080 # Save into config.log some information that might help in debugging.
2081 {
2082 echo
2083
2084 cat <<\_ASBOX
2085 ## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##
2088 _ASBOX
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 cat <<\_ASBOX
2123 ## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##
2126 _ASBOX
2127 echo
2128 for ac_var in $ac_subst_vars
2129 do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2137
2138 if test -n "$ac_subst_files"; then
2139 cat <<\_ASBOX
2140 ## ------------------- ##
2141 ## File substitutions. ##
2142 ## ------------------- ##
2143 _ASBOX
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 cat <<\_ASBOX
2158 ## ----------- ##
2159 ## confdefs.h. ##
2160 ## ----------- ##
2161 _ASBOX
2162 echo
2163 cat confdefs.h
2164 echo
2165 fi
2166 test "$ac_signal" != 0 &&
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
2169 } >&5
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2172 exit $exit_status
2173 ' 0
2174 for ac_signal in 1 2 13 15; do
2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2176 done
2177 ac_signal=0
2178
2179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2180 rm -f -r conftest* confdefs.h
2181
2182 $as_echo "/* confdefs.h */" > confdefs.h
2183
2184 # Predefined preprocessor variables.
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_NAME "$PACKAGE_NAME"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_STRING "$PACKAGE_STRING"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_URL "$PACKAGE_URL"
2208 _ACEOF
2209
2210
2211 # Let the site file select an alternate cache file if it wants to.
2212 # Prefer an explicitly selected file to automatically selected ones.
2213 ac_site_file1=NONE
2214 ac_site_file2=NONE
2215 if test -n "$CONFIG_SITE"; then
2216 ac_site_file1=$CONFIG_SITE
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file"
2232 fi
2233 done
2234
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2241 case $cache_file in
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
2244 esac
2245 fi
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2249 >$cache_file
2250 fi
2251
2252 # Check that the precious variables saved in the cache have kept the same
2253 # value.
2254 ac_cache_corrupted=false
2255 for ac_var in $ac_precious_vars; do
2256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2257 eval ac_new_set=\$ac_env_${ac_var}_set
2258 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2259 eval ac_new_val=\$ac_env_${ac_var}_value
2260 case $ac_old_set,$ac_new_set in
2261 set,)
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2265 ,set)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,);;
2270 *)
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w=`echo x $ac_old_val`
2274 ac_new_val_w=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted=:
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\$ac_old_val
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 fi;;
2289 esac
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2292 case $ac_new_val in
2293 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 *) ac_arg=$ac_var=$ac_new_val ;;
2295 esac
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2298 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2299 esac
2300 fi
2301 done
2302 if $ac_cache_corrupted; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308 fi
2309 ## -------------------- ##
2310 ## Main body of script. ##
2311 ## -------------------- ##
2312
2313 ac_ext=c
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
2319
2320 am__api_version='1.11'
2321
2322 ac_aux_dir=
2323 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324 for ac_t in install-sh install.sh shtool; do
2325 if test -f "$ac_dir/$ac_t"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/$ac_t -c"
2328 break 2
2329 fi
2330 done
2331 done
2332 if test -z "$ac_aux_dir"; then
2333 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2334 fi
2335
2336 # These three variables are undocumented and unsupported,
2337 # and are intended to be withdrawn in a future Autoconf release.
2338 # They can cause serious problems if a builder's source tree is in a directory
2339 # whose full name contains unusual characters.
2340 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343
2344
2345 # Find a good install program. We prefer a C program (faster),
2346 # so one script is as good as another. But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2351 # AIX /bin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # OS/2's system install, which has a completely different semantic
2357 # ./install, which can be erroneously created by make from ./install.sh.
2358 # Reject install programs that cannot install multiple files.
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2361 if test -z "$INSTALL"; then
2362 if test "${ac_cv_path_install+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 # Account for people who put trailing slashes in PATH elements.
2371 case $as_dir/ in #((
2372 ./ | .// | /[cC]/* | \
2373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2375 /usr/ucb/* ) ;;
2376 *)
2377 # OSF1 and SCO ODT 3.0 have their own names for install.
2378 # Don't use installbsd from OSF since it installs stuff as root
2379 # by default.
2380 for ac_prog in ginstall scoinst install; do
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2383 if test $ac_prog = install &&
2384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385 # AIX install. It has an incompatible calling convention.
2386 :
2387 elif test $ac_prog = install &&
2388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # program-specific install script used by HP pwplus--don't use.
2390 :
2391 else
2392 rm -rf conftest.one conftest.two conftest.dir
2393 echo one > conftest.one
2394 echo two > conftest.two
2395 mkdir conftest.dir
2396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2397 test -s conftest.one && test -s conftest.two &&
2398 test -s conftest.dir/conftest.one &&
2399 test -s conftest.dir/conftest.two
2400 then
2401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2402 break 3
2403 fi
2404 fi
2405 fi
2406 done
2407 done
2408 ;;
2409 esac
2410
2411 done
2412 IFS=$as_save_IFS
2413
2414 rm -rf conftest.one conftest.two conftest.dir
2415
2416 fi
2417 if test "${ac_cv_path_install+set}" = set; then
2418 INSTALL=$ac_cv_path_install
2419 else
2420 # As a last resort, use the slow shell script. Don't cache a
2421 # value for INSTALL within a source directory, because that will
2422 # break other packages using the cache if that directory is
2423 # removed, or if the value is a relative name.
2424 INSTALL=$ac_install_sh
2425 fi
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2428 $as_echo "$INSTALL" >&6; }
2429
2430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2431 # It thinks the first close brace ends the variable substitution.
2432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2433
2434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2435
2436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2437
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2439 $as_echo_n "checking whether build environment is sane... " >&6; }
2440 # Just in case
2441 sleep 1
2442 echo timestamp > conftest.file
2443 # Reject unsafe characters in $srcdir or the absolute working directory
2444 # name. Accept space and tab only in the latter.
2445 am_lf='
2446 '
2447 case `pwd` in
2448 *[\\\"\#\$\&\'\`$am_lf]*)
2449 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2450 esac
2451 case $srcdir in
2452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2453 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2454 esac
2455
2456 # Do `set' in a subshell so we don't clobber the current shell's
2457 # arguments. Must try -L first in case configure is actually a
2458 # symlink; some systems play weird games with the mod time of symlinks
2459 # (eg FreeBSD returns the mod time of the symlink's containing
2460 # directory).
2461 if (
2462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2463 if test "$*" = "X"; then
2464 # -L didn't work.
2465 set X `ls -t "$srcdir/configure" conftest.file`
2466 fi
2467 rm -f conftest.file
2468 if test "$*" != "X $srcdir/configure conftest.file" \
2469 && test "$*" != "X conftest.file $srcdir/configure"; then
2470
2471 # If neither matched, then we have a broken ls. This can happen
2472 # if, for instance, CONFIG_SHELL is bash and it inherits a
2473 # broken ls alias from the environment. This has actually
2474 # happened. Such a system could not be considered "sane".
2475 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2476 alias in your environment" "$LINENO" 5
2477 fi
2478
2479 test "$2" = conftest.file
2480 )
2481 then
2482 # Ok.
2483 :
2484 else
2485 as_fn_error "newly created file is older than distributed files!
2486 Check your system clock" "$LINENO" 5
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2489 $as_echo "yes" >&6; }
2490 test "$program_prefix" != NONE &&
2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492 # Use a double $ so make ignores it.
2493 test "$program_suffix" != NONE &&
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495 # Double any \ or $.
2496 # By default was `s,x,x', remove it if useless.
2497 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499
2500 # expand $ac_aux_dir to an absolute path
2501 am_aux_dir=`cd $ac_aux_dir && pwd`
2502
2503 if test x"${MISSING+set}" != xset; then
2504 case $am_aux_dir in
2505 *\ * | *\ *)
2506 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507 *)
2508 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 esac
2510 fi
2511 # Use eval to expand $SHELL
2512 if eval "$MISSING --run true"; then
2513 am_missing_run="$MISSING --run "
2514 else
2515 am_missing_run=
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2517 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2518 fi
2519
2520 if test x"${install_sh}" != xset; then
2521 case $am_aux_dir in
2522 *\ * | *\ *)
2523 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524 *)
2525 install_sh="\${SHELL} $am_aux_dir/install-sh"
2526 esac
2527 fi
2528
2529 # Installed binaries are usually stripped using `strip' when the user
2530 # run `make install-strip'. However `strip' might not be the right
2531 # tool to use in cross-compilation environments, therefore Automake
2532 # will honor the `STRIP' environment variable to overrule this program.
2533 if test "$cross_compiling" != no; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}strip; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_STRIP+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$STRIP"; then
2543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 STRIP=$ac_cv_prog_STRIP
2563 if test -n "$STRIP"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2565 $as_echo "$STRIP" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571
2572 fi
2573 if test -z "$ac_cv_prog_STRIP"; then
2574 ac_ct_STRIP=$STRIP
2575 # Extract the first word of "strip", so it can be a program name with args.
2576 set dummy strip; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$ac_ct_STRIP"; then
2583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_STRIP="strip"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603 if test -n "$ac_ct_STRIP"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2605 $as_echo "$ac_ct_STRIP" >&6; }
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611 if test "x$ac_ct_STRIP" = x; then
2612 STRIP=":"
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 STRIP=$ac_ct_STRIP
2621 fi
2622 else
2623 STRIP="$ac_cv_prog_STRIP"
2624 fi
2625
2626 fi
2627 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2630 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2631 if test -z "$MKDIR_P"; then
2632 if test "${ac_cv_path_mkdir+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_prog in mkdir gmkdir; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2643 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644 'mkdir (GNU coreutils) '* | \
2645 'mkdir (coreutils) '* | \
2646 'mkdir (fileutils) '4.1*)
2647 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648 break 3;;
2649 esac
2650 done
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656
2657 test -d ./--version && rmdir ./--version
2658 if test "${ac_cv_path_mkdir+set}" = set; then
2659 MKDIR_P="$ac_cv_path_mkdir -p"
2660 else
2661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for MKDIR_P within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
2665 MKDIR_P="$ac_install_sh -d"
2666 fi
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2669 $as_echo "$MKDIR_P" >&6; }
2670
2671 mkdir_p="$MKDIR_P"
2672 case $mkdir_p in
2673 [\\/$]* | ?:[\\/]*) ;;
2674 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2675 esac
2676
2677 for ac_prog in gawk mawk nawk awk
2678 do
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_AWK+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2709 $as_echo "$AWK" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 test -n "$AWK" && break
2717 done
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2721 set x ${MAKE-make}
2722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 cat >conftest.make <<\_ACEOF
2727 SHELL = /bin/sh
2728 all:
2729 @echo '@@@%%%=$(MAKE)=@@@%%%'
2730 _ACEOF
2731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2733 *@@@%%%=?*=@@@%%%*)
2734 eval ac_cv_prog_make_${ac_make}_set=yes;;
2735 *)
2736 eval ac_cv_prog_make_${ac_make}_set=no;;
2737 esac
2738 rm -f conftest.make
2739 fi
2740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2742 $as_echo "yes" >&6; }
2743 SET_MAKE=
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 SET_MAKE="MAKE=${MAKE-make}"
2748 fi
2749
2750 rm -rf .tst 2>/dev/null
2751 mkdir .tst 2>/dev/null
2752 if test -d .tst; then
2753 am__leading_dot=.
2754 else
2755 am__leading_dot=_
2756 fi
2757 rmdir .tst 2>/dev/null
2758
2759 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2760 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2761 # is not polluted with repeated "-I."
2762 am__isrc=' -I$(srcdir)'
2763 # test to see if srcdir already configured
2764 if test -f $srcdir/config.status; then
2765 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2766 fi
2767 fi
2768
2769 # test whether we have cygpath
2770 if test -z "$CYGPATH_W"; then
2771 if (cygpath --version) >/dev/null 2>/dev/null; then
2772 CYGPATH_W='cygpath -w'
2773 else
2774 CYGPATH_W=echo
2775 fi
2776 fi
2777
2778
2779 # Define the identity of the package.
2780 PACKAGE='xinit'
2781 VERSION='1.2.1'
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE "$PACKAGE"
2786 _ACEOF
2787
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define VERSION "$VERSION"
2791 _ACEOF
2792
2793 # Some tools Automake needs.
2794
2795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
2809 # We need awk for the "check" target. The system "awk" is bad on
2810 # some platforms.
2811 # Always define AMTAR for backward compatibility.
2812
2813 AMTAR=${AMTAR-"${am_missing_run}tar"}
2814
2815 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2816
2817
2818
2819
2820
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2823 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2824 # Check whether --enable-maintainer-mode was given.
2825 if test "${enable_maintainer_mode+set}" = set; then :
2826 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2827 else
2828 USE_MAINTAINER_MODE=no
2829 fi
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2832 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2833 if test $USE_MAINTAINER_MODE = yes; then
2834 MAINTAINER_MODE_TRUE=
2835 MAINTAINER_MODE_FALSE='#'
2836 else
2837 MAINTAINER_MODE_TRUE='#'
2838 MAINTAINER_MODE_FALSE=
2839 fi
2840
2841 MAINT=$MAINTAINER_MODE_TRUE
2842
2843
2844
2845 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 DEPDIR="${am__leading_dot}deps"
2858
2859 ac_config_commands="$ac_config_commands depfiles"
2860
2861
2862 am_make=${MAKE-make}
2863 cat > confinc << 'END'
2864 am__doit:
2865 @echo this is the am__doit target
2866 .PHONY: am__doit
2867 END
2868 # If we don't find an include directive, just comment out the code.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2871 am__include="#"
2872 am__quote=
2873 _am_result=none
2874 # First try GNU make style include.
2875 echo "include confinc" > confmf
2876 # Ignore all kinds of additional output from `make'.
2877 case `$am_make -s -f confmf 2> /dev/null` in #(
2878 *the\ am__doit\ target*)
2879 am__include=include
2880 am__quote=
2881 _am_result=GNU
2882 ;;
2883 esac
2884 # Now try BSD make style include.
2885 if test "$am__include" = "#"; then
2886 echo '.include "confinc"' > confmf
2887 case `$am_make -s -f confmf 2> /dev/null` in #(
2888 *the\ am__doit\ target*)
2889 am__include=.include
2890 am__quote="\""
2891 _am_result=BSD
2892 ;;
2893 esac
2894 fi
2895
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2898 $as_echo "$_am_result" >&6; }
2899 rm -f confinc confmf
2900
2901 # Check whether --enable-dependency-tracking was given.
2902 if test "${enable_dependency_tracking+set}" = set; then :
2903 enableval=$enable_dependency_tracking;
2904 fi
2905
2906 if test "x$enable_dependency_tracking" != xno; then
2907 am_depcomp="$ac_aux_dir/depcomp"
2908 AMDEPBACKSLASH='\'
2909 fi
2910 if test "x$enable_dependency_tracking" != xno; then
2911 AMDEP_TRUE=
2912 AMDEP_FALSE='#'
2913 else
2914 AMDEP_TRUE='#'
2915 AMDEP_FALSE=
2916 fi
2917
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 fi
2963 if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "gcc", so it can be a program name with args.
2966 set dummy gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3011 fi
3012 else
3013 CC="$ac_cv_prog_CC"
3014 fi
3015
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 fi
3057 if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 ac_prog_rejected=no
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077 ac_prog_rejected=yes
3078 continue
3079 fi
3080 ac_cv_prog_CC="cc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 if test $ac_prog_rejected = yes; then
3089 # We found a bogon in the path, so make sure we never use it.
3090 set dummy $ac_cv_prog_CC
3091 shift
3092 if test $# != 0; then
3093 # We chose a different compiler from the bogus one.
3094 # However, it has the same basename, so the bogon will be chosen
3095 # first if we set CC to just the basename; use the full file name.
3096 shift
3097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098 fi
3099 fi
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in cl.exe
3116 do
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_CC+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 test -n "$CC" && break
3155 done
3156 fi
3157 if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3160 do
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 test -n "$ac_ct_CC" && break
3199 done
3200
3201 if test "x$ac_ct_CC" = x; then
3202 CC=""
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 CC=$ac_ct_CC
3211 fi
3212 fi
3213
3214 fi
3215
3216
3217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." "$LINENO" 5; }
3221
3222 # Provide some information about the compiler.
3223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238 ... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 fi
3242 rm -f conftest.er1 conftest.err
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 done
3246
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3272 do
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277 done
3278 rm -f $ac_rmfiles
3279
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3294 # so that the user can short-circuit this test for compilers unknown to
3295 # Autoconf.
3296 for ac_file in $ac_files ''
3297 do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301 ;;
3302 [ab].out )
3303 # We found the default executable, but exeext='' is most
3304 # certainly right.
3305 break;;
3306 *.* )
3307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308 then :; else
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 fi
3311 # We set ac_cv_exeext here because the later test for it is not
3312 # safe: cross compilers may not add the suffix if given an `-o'
3313 # argument, so we may need to know it at that point already.
3314 # Even if this section looks crufty: it has the advantage of
3315 # actually working.
3316 break;;
3317 * )
3318 break;;
3319 esac
3320 done
3321 test "$ac_cv_exeext" = no && ac_cv_exeext=
3322
3323 else
3324 ac_file=''
3325 fi
3326 if test -z "$ac_file"; then :
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 { as_fn_set_status 77
3335 as_fn_error "C compiler cannot create executables
3336 See \`config.log' for more details." "$LINENO" 5; }; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342 $as_echo_n "checking for C compiler default output file name... " >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344 $as_echo "$ac_file" >&6; }
3345 ac_exeext=$ac_cv_exeext
3346
3347 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3368 case $ac_file in
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 break;;
3372 * ) break;;
3373 esac
3374 done
3375 else
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details." "$LINENO" 5; }
3380 fi
3381 rm -f conftest conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3384
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #include <stdio.h>
3391 int
3392 main ()
3393 {
3394 FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 ac_clean_files="$ac_clean_files conftest.out"
3402 # Check that the compiler produces executables we can run. If not, either
3403 # the compiler is broken, or we cross compile.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405 $as_echo_n "checking whether we are cross compiling... " >&6; }
3406 if test "$cross_compiling" != yes; then
3407 { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 if { ac_try='./conftest$ac_cv_exeext'
3419 { { case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_try") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; }; then
3429 cross_compiling=no
3430 else
3431 if test "$cross_compiling" = maybe; then
3432 cross_compiling=yes
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error "cannot run C compiled programs.
3437 If you meant to cross compile, use \`--host'.
3438 See \`config.log' for more details." "$LINENO" 5; }
3439 fi
3440 fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443 $as_echo "$cross_compiling" >&6; }
3444
3445 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if test "${ac_cv_objext+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482 done
3483 else
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." "$LINENO" 5; }
3491 fi
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509 #ifndef __GNUC__
3510 choke me
3511 #endif
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_compiler_gnu=yes
3519 else
3520 ac_compiler_gnu=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530 else
3531 GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if test "${ac_cv_prog_cc_g+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3557 else
3558 CFLAGS=""
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572 else
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606 else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3632 {
3633 return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689 x)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695 *)
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 depcc="$CC" am_compiler_list=
3711
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3713 $as_echo_n "checking dependency style of $depcc... " >&6; }
3714 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718 # We make a subdir and do the tests there. Otherwise we can end up
3719 # making bogus files that we don't know about and never remove. For
3720 # instance it was reported that on HP-UX the gcc test will end up
3721 # making a dummy file named `D' -- because `-MD' means `put the output
3722 # in D'.
3723 mkdir conftest.dir
3724 # Copy depcomp to subdir because otherwise we won't find it if we're
3725 # using a relative directory.
3726 cp "$am_depcomp" conftest.dir
3727 cd conftest.dir
3728 # We will build objects and dependencies in a subdirectory because
3729 # it helps to detect inapplicable dependency modes. For instance
3730 # both Tru64's cc and ICC support -MD to output dependencies as a
3731 # side effect of compilation, but ICC will put the dependencies in
3732 # the current directory while Tru64 will put them in the object
3733 # directory.
3734 mkdir sub
3735
3736 am_cv_CC_dependencies_compiler_type=none
3737 if test "$am_compiler_list" = ""; then
3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739 fi
3740 am__universal=false
3741 case " $depcc " in #(
3742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3743 esac
3744
3745 for depmode in $am_compiler_list; do
3746 # Setup a source with many dependencies, because some compilers
3747 # like to wrap large dependency lists on column 80 (with \), and
3748 # we should not choose a depcomp mode which is confused by this.
3749 #
3750 # We need to recreate these files for each test, as the compiler may
3751 # overwrite some of them when testing with obscure command lines.
3752 # This happens at least with the AIX C compiler.
3753 : > sub/conftest.c
3754 for i in 1 2 3 4 5 6; do
3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757 # Solaris 8's {/usr,}/bin/sh.
3758 touch sub/conftst$i.h
3759 done
3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761
3762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3763 # mode. It turns out that the SunPro C++ compiler does not properly
3764 # handle `-M -o', and we need to detect this. Also, some Intel
3765 # versions had trouble with output in subdirs
3766 am__obj=sub/conftest.${OBJEXT-o}
3767 am__minus_obj="-o $am__obj"
3768 case $depmode in
3769 gcc)
3770 # This depmode causes a compiler race in universal mode.
3771 test "$am__universal" = false || continue
3772 ;;
3773 nosideeffect)
3774 # after this tag, mechanisms are not by side-effect, so they'll
3775 # only be used when explicitly requested
3776 if test "x$enable_dependency_tracking" = xyes; then
3777 continue
3778 else
3779 break
3780 fi
3781 ;;
3782 msvisualcpp | msvcmsys)
3783 # This compiler won't grok `-c -o', but also, the minuso test has
3784 # not run yet. These depmodes are late enough in the game, and
3785 # so weak that their functioning should not be impacted.
3786 am__obj=conftest.${OBJEXT-o}
3787 am__minus_obj=
3788 ;;
3789 none) break ;;
3790 esac
3791 if depmode=$depmode \
3792 source=sub/conftest.c object=$am__obj \
3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795 >/dev/null 2>conftest.err &&
3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800 # icc doesn't choke on unknown options, it will just issue warnings
3801 # or remarks (even with -Werror). So we grep stderr for any message
3802 # that says an option was ignored or not supported.
3803 # When given -MP, icc 7.0 and 7.1 complain thusly:
3804 # icc: Command line warning: ignoring option '-M'; no argument required
3805 # The diagnosis changed in icc 8.0:
3806 # icc: Command line remark: option '-MP' not supported
3807 if (grep 'ignoring option' conftest.err ||
3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809 am_cv_CC_dependencies_compiler_type=$depmode
3810 break
3811 fi
3812 fi
3813 done
3814
3815 cd ..
3816 rm -rf conftest.dir
3817 else
3818 am_cv_CC_dependencies_compiler_type=none
3819 fi
3820
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3823 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3825
3826 if
3827 test "x$enable_dependency_tracking" != xno \
3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3829 am__fastdepCC_TRUE=
3830 am__fastdepCC_FALSE='#'
3831 else
3832 am__fastdepCC_TRUE='#'
3833 am__fastdepCC_FALSE=
3834 fi
3835
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3845 # On Suns, sometimes $CPP names a directory.
3846 if test -n "$CPP" && test -d "$CPP"; then
3847 CPP=
3848 fi
3849 if test -z "$CPP"; then
3850 if test "${ac_cv_prog_CPP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 # Double quotes because CPP needs to be expanded
3854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3855 do
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3858 do
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3875
3876 else
3877 # Broken: fails on valid input.
3878 continue
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3895 fi
3896 rm -f conftest.err conftest.$ac_ext
3897
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then :
3902 break
3903 fi
3904
3905 done
3906 ac_cv_prog_CPP=$CPP
3907
3908 fi
3909 CPP=$ac_cv_prog_CPP
3910 else
3911 ac_cv_prog_CPP=$CPP
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3914 $as_echo "$CPP" >&6; }
3915 ac_preproc_ok=false
3916 for ac_c_preproc_warn_flag in '' yes
3917 do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #ifdef __STDC__
3927 # include <limits.h>
3928 #else
3929 # include <assert.h>
3930 #endif
3931 Syntax error
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935 else
3936 # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #include <ac_nonexistent.h>
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: success on invalid input.
3949 continue
3950 else
3951 # Passes both tests.
3952 ac_preproc_ok=:
3953 break
3954 fi
3955 rm -f conftest.err conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3961
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." "$LINENO" 5; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$GREP"; then
3982 ac_path_GREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in grep ggrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3993 # Check for GNU ac_path_GREP and select it if it is found.
3994 # Check for GNU $ac_path_GREP
3995 case `"$ac_path_GREP" --version 2>&1` in
3996 *GNU*)
3997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3998 *)
3999 ac_count=0
4000 $as_echo_n 0123456789 >"conftest.in"
4001 while :
4002 do
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'GREP' >> "conftest.nl"
4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 as_fn_arith $ac_count + 1 && ac_count=$as_val
4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_GREP="$ac_path_GREP"
4013 ac_path_GREP_max=$ac_count
4014 fi
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4020
4021 $ac_path_GREP_found && break 3
4022 done
4023 done
4024 done
4025 IFS=$as_save_IFS
4026 if test -z "$ac_cv_path_GREP"; then
4027 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 fi
4029 else
4030 ac_cv_path_GREP=$GREP
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035 $as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040 $as_echo_n "checking for egrep... " >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059 # Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061 case `"$ac_path_EGREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_EGREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_EGREP"; then
4093 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_EGREP=$EGREP
4097 fi
4098
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107 $as_echo_n "checking for ANSI C header files... " >&6; }
4108 if test "${ac_cv_header_stdc+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4114 #include <stdarg.h>
4115 #include <string.h>
4116 #include <float.h>
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_header_stdc=yes
4128 else
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then :
4142
4143 else
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <stdlib.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then :
4159
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4170 :
4171 else
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ctype.h>
4175 #include <stdlib.h>
4176 #if ((' ' & 0x0FF) == 0x020)
4177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4179 #else
4180 # define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4185 #endif
4186
4187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4188 int
4189 main ()
4190 {
4191 int i;
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4195 return 2;
4196 return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_run "$LINENO"; then :
4200
4201 else
4202 ac_cv_header_stdc=no
4203 fi
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4205 conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 fi
4207
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211 $as_echo "$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4213
4214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4215
4216 fi
4217
4218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220 inttypes.h stdint.h unistd.h
4221 do :
4222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4224 "
4225 eval as_val=\$$as_ac_Header
4226 if test "x$as_val" = x""yes; then :
4227 cat >>confdefs.h <<_ACEOF
4228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229 _ACEOF
4230
4231 fi
4232
4233 done
4234
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4237 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4238 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 ac_cv_prog_cc_c99=no
4242 ac_save_CC=$CC
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #include <stdarg.h>
4246 #include <stdbool.h>
4247 #include <stdlib.h>
4248 #include <wchar.h>
4249 #include <stdio.h>
4250
4251 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4252 #define debug(...) fprintf (stderr, __VA_ARGS__)
4253 #define showlist(...) puts (#__VA_ARGS__)
4254 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4255 static void
4256 test_varargs_macros (void)
4257 {
4258 int x = 1234;
4259 int y = 5678;
4260 debug ("Flag");
4261 debug ("X = %d\n", x);
4262 showlist (The first, second, and third items.);
4263 report (x>y, "x is %d but y is %d", x, y);
4264 }
4265
4266 // Check long long types.
4267 #define BIG64 18446744073709551615ull
4268 #define BIG32 4294967295ul
4269 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4270 #if !BIG_OK
4271 your preprocessor is broken;
4272 #endif
4273 #if BIG_OK
4274 #else
4275 your preprocessor is broken;
4276 #endif
4277 static long long int bignum = -9223372036854775807LL;
4278 static unsigned long long int ubignum = BIG64;
4279
4280 struct incomplete_array
4281 {
4282 int datasize;
4283 double data[];
4284 };
4285
4286 struct named_init {
4287 int number;
4288 const wchar_t *name;
4289 double average;
4290 };
4291
4292 typedef const char *ccp;
4293
4294 static inline int
4295 test_restrict (ccp restrict text)
4296 {
4297 // See if C++-style comments work.
4298 // Iterate through items via the restricted pointer.
4299 // Also check for declarations in for loops.
4300 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4301 continue;
4302 return 0;
4303 }
4304
4305 // Check varargs and va_copy.
4306 static void
4307 test_varargs (const char *format, ...)
4308 {
4309 va_list args;
4310 va_start (args, format);
4311 va_list args_copy;
4312 va_copy (args_copy, args);
4313
4314 const char *str;
4315 int number;
4316 float fnumber;
4317
4318 while (*format)
4319 {
4320 switch (*format++)
4321 {
4322 case 's': // string
4323 str = va_arg (args_copy, const char *);
4324 break;
4325 case 'd': // int
4326 number = va_arg (args_copy, int);
4327 break;
4328 case 'f': // float
4329 fnumber = va_arg (args_copy, double);
4330 break;
4331 default:
4332 break;
4333 }
4334 }
4335 va_end (args_copy);
4336 va_end (args);
4337 }
4338
4339 int
4340 main ()
4341 {
4342
4343 // Check bool.
4344 _Bool success = false;
4345
4346 // Check restrict.
4347 if (test_restrict ("String literal") == 0)
4348 success = true;
4349 char *restrict newvar = "Another string";
4350
4351 // Check varargs.
4352 test_varargs ("s, d' f .", "string", 65, 34.234);
4353 test_varargs_macros ();
4354
4355 // Check flexible array members.
4356 struct incomplete_array *ia =
4357 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4358 ia->datasize = 10;
4359 for (int i = 0; i < ia->datasize; ++i)
4360 ia->data[i] = i * 1.234;
4361
4362 // Check named initializers.
4363 struct named_init ni = {
4364 .number = 34,
4365 .name = L"Test wide string",
4366 .average = 543.34343,
4367 };
4368
4369 ni.number = 58;
4370
4371 int dynamic_array[ni.number];
4372 dynamic_array[ni.number - 1] = 543;
4373
4374 // work around unused variable warnings
4375 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4376 || dynamic_array[ni.number - 1] != 543);
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4383 do
4384 CC="$ac_save_CC $ac_arg"
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_prog_cc_c99=$ac_arg
4387 fi
4388 rm -f core conftest.err conftest.$ac_objext
4389 test "x$ac_cv_prog_cc_c99" != "xno" && break
4390 done
4391 rm -f conftest.$ac_ext
4392 CC=$ac_save_CC
4393
4394 fi
4395 # AC_CACHE_VAL
4396 case "x$ac_cv_prog_cc_c99" in
4397 x)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399 $as_echo "none needed" >&6; } ;;
4400 xno)
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4402 $as_echo "unsupported" >&6; } ;;
4403 *)
4404 CC="$CC $ac_cv_prog_cc_c99"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4406 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4407 esac
4408 if test "x$ac_cv_prog_cc_c99" != xno; then :
4409
4410 fi
4411
4412
4413
4414
4415 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 case $PKG_CONFIG in
4425 [\\/]* | ?:[\\/]*)
4426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4427 ;;
4428 *)
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 ;;
4445 esac
4446 fi
4447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4448 if test -n "$PKG_CONFIG"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4450 $as_echo "$PKG_CONFIG" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4454 fi
4455
4456
4457 fi
4458 if test -z "$ac_cv_path_PKG_CONFIG"; then
4459 ac_pt_PKG_CONFIG=$PKG_CONFIG
4460 # Extract the first word of "pkg-config", so it can be a program name with args.
4461 set dummy pkg-config; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 case $ac_pt_PKG_CONFIG in
4468 [\\/]* | ?:[\\/]*)
4469 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4470 ;;
4471 *)
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 ;;
4488 esac
4489 fi
4490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4491 if test -n "$ac_pt_PKG_CONFIG"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4493 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499 if test "x$ac_pt_PKG_CONFIG" = x; then
4500 PKG_CONFIG=""
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508 PKG_CONFIG=$ac_pt_PKG_CONFIG
4509 fi
4510 else
4511 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4512 fi
4513
4514 fi
4515 if test -n "$PKG_CONFIG"; then
4516 _pkg_min_version=0.9.0
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4518 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4519 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 PKG_CONFIG=""
4526 fi
4527
4528 fi
4529 # Make sure we can run config.sub.
4530 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4531 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4534 $as_echo_n "checking build system type... " >&6; }
4535 if test "${ac_cv_build+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 ac_build_alias=$build_alias
4539 test "x$ac_build_alias" = x &&
4540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4541 test "x$ac_build_alias" = x &&
4542 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4543 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4544 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4548 $as_echo "$ac_cv_build" >&6; }
4549 case $ac_cv_build in
4550 *-*-*) ;;
4551 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4552 esac
4553 build=$ac_cv_build
4554 ac_save_IFS=$IFS; IFS='-'
4555 set x $ac_cv_build
4556 shift
4557 build_cpu=$1
4558 build_vendor=$2
4559 shift; shift
4560 # Remember, the first character of IFS is used to create $*,
4561 # except with old shells:
4562 build_os=$*
4563 IFS=$ac_save_IFS
4564 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4565
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4568 $as_echo_n "checking host system type... " >&6; }
4569 if test "${ac_cv_host+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test "x$host_alias" = x; then
4573 ac_cv_host=$ac_cv_build
4574 else
4575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4576 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4577 fi
4578
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4581 $as_echo "$ac_cv_host" >&6; }
4582 case $ac_cv_host in
4583 *-*-*) ;;
4584 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4585 esac
4586 host=$ac_cv_host
4587 ac_save_IFS=$IFS; IFS='-'
4588 set x $ac_cv_host
4589 shift
4590 host_cpu=$1
4591 host_vendor=$2
4592 shift; shift
4593 # Remember, the first character of IFS is used to create $*,
4594 # except with old shells:
4595 host_os=$*
4596 IFS=$ac_save_IFS
4597 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4598
4599
4600
4601
4602
4603 if test "x$GCC" = xyes ; then
4604 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4605 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4606 -Wbad-function-cast -Wformat=2"
4607 case `$CC -dumpversion` in
4608 3.4.* | 4.*)
4609 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4610 ;;
4611 esac
4612 else
4613 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4614 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4615 SUNCC="yes"
4616 else
4617 SUNCC="no"
4618 fi
4619
4620 if test "x$SUNCC" = "xyes"; then
4621 CWARNFLAGS="-v"
4622 fi
4623 fi
4624
4625 # Check whether --enable-silent-rules was given.
4626 if test "${enable_silent_rules+set}" = set; then :
4627 enableval=$enable_silent_rules;
4628 fi
4629
4630 case $enable_silent_rules in
4631 yes) AM_DEFAULT_VERBOSITY=0;;
4632 no) AM_DEFAULT_VERBOSITY=1;;
4633 *) AM_DEFAULT_VERBOSITY=0;;
4634 esac
4635 AM_BACKSLASH='\'
4636
4637
4638
4639
4640
4641
4642
4643 # Check whether --enable-strict-compilation was given.
4644 if test "${enable_strict_compilation+set}" = set; then :
4645 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4646 else
4647 STRICT_COMPILE=no
4648 fi
4649
4650 if test "x$STRICT_COMPILE" = "xyes"; then
4651 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4652 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4653 SUNCC="yes"
4654 else
4655 SUNCC="no"
4656 fi
4657
4658 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4659 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4660 INTELCC="yes"
4661 else
4662 INTELCC="no"
4663 fi
4664
4665 if test "x$GCC" = xyes ; then
4666 STRICT_CFLAGS="-pedantic -Werror"
4667 elif test "x$SUNCC" = "xyes"; then
4668 STRICT_CFLAGS="-errwarn"
4669 elif test "x$INTELCC" = "xyes"; then
4670 STRICT_CFLAGS="-Werror"
4671 fi
4672 fi
4673 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4674
4675
4676
4677
4678 # Check whether --with-release-version was given.
4679 if test "${with_release_version+set}" = set; then :
4680 withval=$with_release_version; RELEASE_VERSION="$withval"
4681 else
4682 RELEASE_VERSION=""
4683 fi
4684
4685 if test "x$RELEASE_VERSION" != "x"; then
4686 PACKAGE="$PACKAGE-$RELEASE_VERSION"
4687 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4689 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4690 fi
4691
4692 cat >>confdefs.h <<_ACEOF
4693 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4694 _ACEOF
4695
4696 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4697 if test "x$PVM" = "x"; then
4698 PVM="0"
4699 fi
4700
4701 cat >>confdefs.h <<_ACEOF
4702 #define PACKAGE_VERSION_MINOR $PVM
4703 _ACEOF
4704
4705 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4706 if test "x$PVP" = "x"; then
4707 PVP="0"
4708 fi
4709
4710 cat >>confdefs.h <<_ACEOF
4711 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4712 _ACEOF
4713
4714
4715
4716 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4717 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4718 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4719 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4720
4721
4722
4723
4724 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4725 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4726 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4727 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4728 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4729
4730
4731
4732
4733
4734 if test x$APP_MAN_SUFFIX = x ; then
4735 APP_MAN_SUFFIX=1
4736 fi
4737 if test x$APP_MAN_DIR = x ; then
4738 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4739 fi
4740
4741 if test x$LIB_MAN_SUFFIX = x ; then
4742 LIB_MAN_SUFFIX=3
4743 fi
4744 if test x$LIB_MAN_DIR = x ; then
4745 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4746 fi
4747
4748 if test x$FILE_MAN_SUFFIX = x ; then
4749 case $host_os in
4750 solaris*) FILE_MAN_SUFFIX=4 ;;
4751 *) FILE_MAN_SUFFIX=5 ;;
4752 esac
4753 fi
4754 if test x$FILE_MAN_DIR = x ; then
4755 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4756 fi
4757
4758 if test x$MISC_MAN_SUFFIX = x ; then
4759 case $host_os in
4760 solaris*) MISC_MAN_SUFFIX=5 ;;
4761 *) MISC_MAN_SUFFIX=7 ;;
4762 esac
4763 fi
4764 if test x$MISC_MAN_DIR = x ; then
4765 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4766 fi
4767
4768 if test x$DRIVER_MAN_SUFFIX = x ; then
4769 case $host_os in
4770 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4771 *) DRIVER_MAN_SUFFIX=4 ;;
4772 esac
4773 fi
4774 if test x$DRIVER_MAN_DIR = x ; then
4775 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4776 fi
4777
4778 if test x$ADMIN_MAN_SUFFIX = x ; then
4779 case $host_os in
4780 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4781 *) ADMIN_MAN_SUFFIX=8 ;;
4782 esac
4783 fi
4784 if test x$ADMIN_MAN_DIR = x ; then
4785 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4786 fi
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 ac_config_headers="$ac_config_headers config.h"
4805
4806
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$CC"; then
4821 ac_cv_prog_CC="$CC" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 CC=$ac_cv_prog_CC
4841 if test -n "$CC"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4843 $as_echo "$CC" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_prog_CC"; then
4852 ac_ct_CC=$CC
4853 # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$ac_ct_CC"; then
4861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_CC="gcc"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4881 if test -n "$ac_ct_CC"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4883 $as_echo "$ac_ct_CC" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889 if test "x$ac_ct_CC" = x; then
4890 CC=""
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 CC=$ac_ct_CC
4899 fi
4900 else
4901 CC="$ac_cv_prog_CC"
4902 fi
4903
4904 if test -z "$CC"; then
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}cc; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_CC+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$CC"; then
4914 ac_cv_prog_CC="$CC" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_CC="${ac_tool_prefix}cc"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 CC=$ac_cv_prog_CC
4934 if test -n "$CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4936 $as_echo "$CC" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 fi
4944 fi
4945 if test -z "$CC"; then
4946 # Extract the first word of "cc", so it can be a program name with args.
4947 set dummy cc; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_CC+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$CC"; then
4954 ac_cv_prog_CC="$CC" # Let the user override the test.
4955 else
4956 ac_prog_rejected=no
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4965 ac_prog_rejected=yes
4966 continue
4967 fi
4968 ac_cv_prog_CC="cc"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976 if test $ac_prog_rejected = yes; then
4977 # We found a bogon in the path, so make sure we never use it.
4978 set dummy $ac_cv_prog_CC
4979 shift
4980 if test $# != 0; then
4981 # We chose a different compiler from the bogus one.
4982 # However, it has the same basename, so the bogon will be chosen
4983 # first if we set CC to just the basename; use the full file name.
4984 shift
4985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4986 fi
4987 fi
4988 fi
4989 fi
4990 CC=$ac_cv_prog_CC
4991 if test -n "$CC"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4993 $as_echo "$CC" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999
5000 fi
5001 if test -z "$CC"; then
5002 if test -n "$ac_tool_prefix"; then
5003 for ac_prog in cl.exe
5004 do
5005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_CC+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$CC"; then
5013 ac_cv_prog_CC="$CC" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5035 $as_echo "$CC" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042 test -n "$CC" && break
5043 done
5044 fi
5045 if test -z "$CC"; then
5046 ac_ct_CC=$CC
5047 for ac_prog in cl.exe
5048 do
5049 # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$ac_ct_CC"; then
5057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_ac_ct_CC="$ac_prog"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5077 if test -n "$ac_ct_CC"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5079 $as_echo "$ac_ct_CC" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 test -n "$ac_ct_CC" && break
5087 done
5088
5089 if test "x$ac_ct_CC" = x; then
5090 CC=""
5091 else
5092 case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098 CC=$ac_ct_CC
5099 fi
5100 fi
5101
5102 fi
5103
5104
5105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5107 as_fn_error "no acceptable C compiler found in \$PATH
5108 See \`config.log' for more details." "$LINENO" 5; }
5109
5110 # Provide some information about the compiler.
5111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5112 set X $ac_compile
5113 ac_compiler=$2
5114 for ac_option in --version -v -V -qversion; do
5115 { { ac_try="$ac_compiler $ac_option >&5"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121 $as_echo "$ac_try_echo"; } >&5
5122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5123 ac_status=$?
5124 if test -s conftest.err; then
5125 sed '10a\
5126 ... rest of stderr output deleted ...
5127 10q' conftest.err >conftest.er1
5128 cat conftest.er1 >&5
5129 fi
5130 rm -f conftest.er1 conftest.err
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }
5133 done
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142
5143 int
5144 main ()
5145 {
5146 #ifndef __GNUC__
5147 choke me
5148 #endif
5149
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_compiler_gnu=yes
5156 else
5157 ac_compiler_gnu=no
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5161
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5165 if test $ac_compiler_gnu = yes; then
5166 GCC=yes
5167 else
5168 GCC=
5169 fi
5170 ac_test_CFLAGS=${CFLAGS+set}
5171 ac_save_CFLAGS=$CFLAGS
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5174 if test "${ac_cv_prog_cc_g+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 ac_save_c_werror_flag=$ac_c_werror_flag
5178 ac_c_werror_flag=yes
5179 ac_cv_prog_cc_g=no
5180 CFLAGS="-g"
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183
5184 int
5185 main ()
5186 {
5187
5188 ;
5189 return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 ac_cv_prog_cc_g=yes
5194 else
5195 CFLAGS=""
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208
5209 else
5210 ac_c_werror_flag=$ac_save_c_werror_flag
5211 CFLAGS="-g"
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_prog_cc_g=yes
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 ac_c_werror_flag=$ac_save_c_werror_flag
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5234 $as_echo "$ac_cv_prog_cc_g" >&6; }
5235 if test "$ac_test_CFLAGS" = set; then
5236 CFLAGS=$ac_save_CFLAGS
5237 elif test $ac_cv_prog_cc_g = yes; then
5238 if test "$GCC" = yes; then
5239 CFLAGS="-g -O2"
5240 else
5241 CFLAGS="-g"
5242 fi
5243 else
5244 if test "$GCC" = yes; then
5245 CFLAGS="-O2"
5246 else
5247 CFLAGS=
5248 fi
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 ac_cv_prog_cc_c89=no
5256 ac_save_CC=$CC
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <stdarg.h>
5260 #include <stdio.h>
5261 #include <sys/types.h>
5262 #include <sys/stat.h>
5263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5264 struct buf { int x; };
5265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5266 static char *e (p, i)
5267 char **p;
5268 int i;
5269 {
5270 return p[i];
5271 }
5272 static char *f (char * (*g) (char **, int), char **p, ...)
5273 {
5274 char *s;
5275 va_list v;
5276 va_start (v,p);
5277 s = g (p, va_arg (v,int));
5278 va_end (v);
5279 return s;
5280 }
5281
5282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5283 function prototypes and stuff, but not '\xHH' hex character constants.
5284 These don't provoke an error unfortunately, instead are silently treated
5285 as 'x'. The following induces an error, until -std is added to get
5286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5287 array size at least. It's necessary to write '\x00'==0 to get something
5288 that's true only with -std. */
5289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5290
5291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5292 inside strings and character constants. */
5293 #define FOO(x) 'x'
5294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5295
5296 int test (int i, double x);
5297 struct s1 {int (*f) (int a);};
5298 struct s2 {int (*f) (double a);};
5299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5300 int argc;
5301 char **argv;
5302 int
5303 main ()
5304 {
5305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5312 do
5313 CC="$ac_save_CC $ac_arg"
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_cv_prog_cc_c89=$ac_arg
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext
5318 test "x$ac_cv_prog_cc_c89" != "xno" && break
5319 done
5320 rm -f conftest.$ac_ext
5321 CC=$ac_save_CC
5322
5323 fi
5324 # AC_CACHE_VAL
5325 case "x$ac_cv_prog_cc_c89" in
5326 x)
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5328 $as_echo "none needed" >&6; } ;;
5329 xno)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5331 $as_echo "unsupported" >&6; } ;;
5332 *)
5333 CC="$CC $ac_cv_prog_cc_c89"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5336 esac
5337 if test "x$ac_cv_prog_cc_c89" != xno; then :
5338
5339 fi
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347 depcc="$CC" am_compiler_list=
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5350 $as_echo_n "checking dependency style of $depcc... " >&6; }
5351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5355 # We make a subdir and do the tests there. Otherwise we can end up
5356 # making bogus files that we don't know about and never remove. For
5357 # instance it was reported that on HP-UX the gcc test will end up
5358 # making a dummy file named `D' -- because `-MD' means `put the output
5359 # in D'.
5360 mkdir conftest.dir
5361 # Copy depcomp to subdir because otherwise we won't find it if we're
5362 # using a relative directory.
5363 cp "$am_depcomp" conftest.dir
5364 cd conftest.dir
5365 # We will build objects and dependencies in a subdirectory because
5366 # it helps to detect inapplicable dependency modes. For instance
5367 # both Tru64's cc and ICC support -MD to output dependencies as a
5368 # side effect of compilation, but ICC will put the dependencies in
5369 # the current directory while Tru64 will put them in the object
5370 # directory.
5371 mkdir sub
5372
5373 am_cv_CC_dependencies_compiler_type=none
5374 if test "$am_compiler_list" = ""; then
5375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5376 fi
5377 am__universal=false
5378 case " $depcc " in #(
5379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5380 esac
5381
5382 for depmode in $am_compiler_list; do
5383 # Setup a source with many dependencies, because some compilers
5384 # like to wrap large dependency lists on column 80 (with \), and
5385 # we should not choose a depcomp mode which is confused by this.
5386 #
5387 # We need to recreate these files for each test, as the compiler may
5388 # overwrite some of them when testing with obscure command lines.
5389 # This happens at least with the AIX C compiler.
5390 : > sub/conftest.c
5391 for i in 1 2 3 4 5 6; do
5392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5394 # Solaris 8's {/usr,}/bin/sh.
5395 touch sub/conftst$i.h
5396 done
5397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5398
5399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5400 # mode. It turns out that the SunPro C++ compiler does not properly
5401 # handle `-M -o', and we need to detect this. Also, some Intel
5402 # versions had trouble with output in subdirs
5403 am__obj=sub/conftest.${OBJEXT-o}
5404 am__minus_obj="-o $am__obj"
5405 case $depmode in
5406 gcc)
5407 # This depmode causes a compiler race in universal mode.
5408 test "$am__universal" = false || continue
5409 ;;
5410 nosideeffect)
5411 # after this tag, mechanisms are not by side-effect, so they'll
5412 # only be used when explicitly requested
5413 if test "x$enable_dependency_tracking" = xyes; then
5414 continue
5415 else
5416 break
5417 fi
5418 ;;
5419 msvisualcpp | msvcmsys)
5420 # This compiler won't grok `-c -o', but also, the minuso test has
5421 # not run yet. These depmodes are late enough in the game, and
5422 # so weak that their functioning should not be impacted.
5423 am__obj=conftest.${OBJEXT-o}
5424 am__minus_obj=
5425 ;;
5426 none) break ;;
5427 esac
5428 if depmode=$depmode \
5429 source=sub/conftest.c object=$am__obj \
5430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5432 >/dev/null 2>conftest.err &&
5433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5437 # icc doesn't choke on unknown options, it will just issue warnings
5438 # or remarks (even with -Werror). So we grep stderr for any message
5439 # that says an option was ignored or not supported.
5440 # When given -MP, icc 7.0 and 7.1 complain thusly:
5441 # icc: Command line warning: ignoring option '-M'; no argument required
5442 # The diagnosis changed in icc 8.0:
5443 # icc: Command line remark: option '-MP' not supported
5444 if (grep 'ignoring option' conftest.err ||
5445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5446 am_cv_CC_dependencies_compiler_type=$depmode
5447 break
5448 fi
5449 fi
5450 done
5451
5452 cd ..
5453 rm -rf conftest.dir
5454 else
5455 am_cv_CC_dependencies_compiler_type=none
5456 fi
5457
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5462
5463 if
5464 test "x$enable_dependency_tracking" != xno \
5465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5466 am__fastdepCC_TRUE=
5467 am__fastdepCC_FALSE='#'
5468 else
5469 am__fastdepCC_TRUE='#'
5470 am__fastdepCC_FALSE=
5471 fi
5472
5473
5474 if test "x$CC" != xcc; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5476 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5479 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5480 fi
5481 set dummy $CC; ac_cc=`$as_echo "$2" |
5482 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5483 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 # Make sure it works both with $CC and with simple cc.
5498 # We do the test twice because some compilers refuse to overwrite an
5499 # existing .o file with -o, though they will create one.
5500 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5501 rm -f conftest2.*
5502 if { { case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5507 $as_echo "$ac_try_echo"; } >&5
5508 (eval "$ac_try") 2>&5
5509 ac_status=$?
5510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5511 test $ac_status = 0; } &&
5512 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5517 $as_echo "$ac_try_echo"; } >&5
5518 (eval "$ac_try") 2>&5
5519 ac_status=$?
5520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5521 test $ac_status = 0; };
5522 then
5523 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5524 if test "x$CC" != xcc; then
5525 # Test first that cc exists at all.
5526 if { ac_try='cc -c conftest.$ac_ext >&5'
5527 { { case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5532 $as_echo "$ac_try_echo"; } >&5
5533 (eval "$ac_try") 2>&5
5534 ac_status=$?
5535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }; }; then
5537 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5538 rm -f conftest2.*
5539 if { { case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5544 $as_echo "$ac_try_echo"; } >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; } &&
5549 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5554 $as_echo "$ac_try_echo"; } >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; };
5559 then
5560 # cc works too.
5561 :
5562 else
5563 # cc exists but doesn't like -o.
5564 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5565 fi
5566 fi
5567 fi
5568 else
5569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5570 fi
5571 rm -f core conftest*
5572
5573 fi
5574 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 $as_echo "yes" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580
5581 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5582
5583 fi
5584
5585 # FIXME: we rely on the cache variable name because
5586 # there is no other way.
5587 set dummy $CC
5588 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5589 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5590 if test "$am_t" != yes; then
5591 # Losing compiler, so override with the script.
5592 # FIXME: It is wrong to rewrite CC.
5593 # But if we don't then we get into trouble of one sort or another.
5594 # A longer-term fix would be to have automake use am__CC in this case,
5595 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5596 CC="$am_aux_dir/compile $CC"
5597 fi
5598
5599
5600
5601
5602 for ac_prog in cpp
5603 do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_path_RAWCPP+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 case $RAWCPP in
5612 [\\/]* | ?:[\\/]*)
5613 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
5614 ;;
5615 *)
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
5618 for as_dir in $as_dummy
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 ;;
5633 esac
5634 fi
5635 RAWCPP=$ac_cv_path_RAWCPP
5636 if test -n "$RAWCPP"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
5638 $as_echo "$RAWCPP" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 test -n "$RAWCPP" && break
5646 done
5647 test -n "$RAWCPP" || RAWCPP="${CPP}"
5648
5649
5650 # Check for flag to avoid builtin definitions - assumes unix is predefined,
5651 # which is not the best choice for supporting other OS'es, but covers most
5652 # of the ones we need for now.
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
5654 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 Does cpp redefine unix ?
5658 _ACEOF
5659 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 else
5663 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5664 RAWCPPFLAGS=-undef
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666 $as_echo "yes" >&6; }
5667 # under Cygwin unix is still defined even with -undef
5668 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5669 RAWCPPFLAGS="-undef -ansi"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
5671 $as_echo "yes, with -ansi" >&6; }
5672 else
5673 as_fn_error "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
5674 fi
5675 fi
5676 rm -f conftest.$ac_ext
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
5679 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 Does cpp preserve "whitespace"?
5683 _ACEOF
5684 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 else
5688 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
5689 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691 $as_echo "yes" >&6; }
5692 else
5693 as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
5694 fi
5695 fi
5696 rm -f conftest.$ac_ext
5697
5698
5699
5700 # Extract the first word of "sed", so it can be a program name with args.
5701 set dummy sed; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_path_SED+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 case $SED in
5708 [\\/]* | ?:[\\/]*)
5709 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5710 ;;
5711 *)
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 ;;
5728 esac
5729 fi
5730 SED=$ac_cv_path_SED
5731 if test -n "$SED"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5733 $as_echo "$SED" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5743 $as_echo_n "checking return type of signal handlers... " >&6; }
5744 if test "${ac_cv_type_signal+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5750 #include <signal.h>
5751
5752 int
5753 main ()
5754 {
5755 return *(signal (0, 0)) (0) == 1;
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_type_signal=int
5762 else
5763 ac_cv_type_signal=void
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5768 $as_echo "$ac_cv_type_signal" >&6; }
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define RETSIGTYPE $ac_cv_type_signal
5772 _ACEOF
5773
5774
5775 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5776 if test "x$ac_cv_type_pid_t" = x""yes; then :
5777
5778 else
5779
5780 cat >>confdefs.h <<_ACEOF
5781 #define pid_t int
5782 _ACEOF
5783
5784 fi
5785
5786 for ac_header in vfork.h
5787 do :
5788 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5789 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5790 cat >>confdefs.h <<_ACEOF
5791 #define HAVE_VFORK_H 1
5792 _ACEOF
5793
5794 fi
5795
5796 done
5797
5798 for ac_func in fork vfork
5799 do :
5800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5802 eval as_val=\$$as_ac_var
5803 if test "x$as_val" = x""yes; then :
5804 cat >>confdefs.h <<_ACEOF
5805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5806 _ACEOF
5807
5808 fi
5809 done
5810
5811 if test "x$ac_cv_func_fork" = xyes; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5813 $as_echo_n "checking for working fork... " >&6; }
5814 if test "${ac_cv_func_fork_works+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test "$cross_compiling" = yes; then :
5818 ac_cv_func_fork_works=cross
5819 else
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 int
5824 main ()
5825 {
5826
5827 /* By Ruediger Kuhlmann. */
5828 return fork () < 0;
5829
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_run "$LINENO"; then :
5835 ac_cv_func_fork_works=yes
5836 else
5837 ac_cv_func_fork_works=no
5838 fi
5839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5840 conftest.$ac_objext conftest.beam conftest.$ac_ext
5841 fi
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5845 $as_echo "$ac_cv_func_fork_works" >&6; }
5846
5847 else
5848 ac_cv_func_fork_works=$ac_cv_func_fork
5849 fi
5850 if test "x$ac_cv_func_fork_works" = xcross; then
5851 case $host in
5852 *-*-amigaos* | *-*-msdosdjgpp*)
5853 # Override, as these systems have only a dummy fork() stub
5854 ac_cv_func_fork_works=no
5855 ;;
5856 *)
5857 ac_cv_func_fork_works=yes
5858 ;;
5859 esac
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5861 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5862 fi
5863 ac_cv_func_vfork_works=$ac_cv_func_vfork
5864 if test "x$ac_cv_func_vfork" = xyes; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5866 $as_echo_n "checking for working vfork... " >&6; }
5867 if test "${ac_cv_func_vfork_works+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test "$cross_compiling" = yes; then :
5871 ac_cv_func_vfork_works=cross
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 /* Thanks to Paul Eggert for this test. */
5876 $ac_includes_default
5877 #include <sys/wait.h>
5878 #ifdef HAVE_VFORK_H
5879 # include <vfork.h>
5880 #endif
5881 /* On some sparc systems, changes by the child to local and incoming
5882 argument registers are propagated back to the parent. The compiler
5883 is told about this with #include <vfork.h>, but some compilers
5884 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5885 static variable whose address is put into a register that is
5886 clobbered by the vfork. */
5887 static void
5888 #ifdef __cplusplus
5889 sparc_address_test (int arg)
5890 # else
5891 sparc_address_test (arg) int arg;
5892 #endif
5893 {
5894 static pid_t child;
5895 if (!child) {
5896 child = vfork ();
5897 if (child < 0) {
5898 perror ("vfork");
5899 _exit(2);
5900 }
5901 if (!child) {
5902 arg = getpid();
5903 write(-1, "", 0);
5904 _exit (arg);
5905 }
5906 }
5907 }
5908
5909 int
5910 main ()
5911 {
5912 pid_t parent = getpid ();
5913 pid_t child;
5914
5915 sparc_address_test (0);
5916
5917 child = vfork ();
5918
5919 if (child == 0) {
5920 /* Here is another test for sparc vfork register problems. This
5921 test uses lots of local variables, at least as many local
5922 variables as main has allocated so far including compiler
5923 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5924 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5925 reuse the register of parent for one of the local variables,
5926 since it will think that parent can't possibly be used any more
5927 in this routine. Assigning to the local variable will thus
5928 munge parent in the parent process. */
5929 pid_t
5930 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5931 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5932 /* Convince the compiler that p..p7 are live; otherwise, it might
5933 use the same hardware register for all 8 local variables. */
5934 if (p != p1 || p != p2 || p != p3 || p != p4
5935 || p != p5 || p != p6 || p != p7)
5936 _exit(1);
5937
5938 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5939 from child file descriptors. If the child closes a descriptor
5940 before it execs or exits, this munges the parent's descriptor
5941 as well. Test for this by closing stdout in the child. */
5942 _exit(close(fileno(stdout)) != 0);
5943 } else {
5944 int status;
5945 struct stat st;
5946
5947 while (wait(&status) != child)
5948 ;
5949 return (
5950 /* Was there some problem with vforking? */
5951 child < 0
5952
5953 /* Did the child fail? (This shouldn't happen.) */
5954 || status
5955
5956 /* Did the vfork/compiler bug occur? */
5957 || parent != getpid()
5958
5959 /* Did the file descriptor bug occur? */
5960 || fstat(fileno(stdout), &st) != 0
5961 );
5962 }
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_run "$LINENO"; then :
5966 ac_cv_func_vfork_works=yes
5967 else
5968 ac_cv_func_vfork_works=no
5969 fi
5970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5971 conftest.$ac_objext conftest.beam conftest.$ac_ext
5972 fi
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5976 $as_echo "$ac_cv_func_vfork_works" >&6; }
5977
5978 fi;
5979 if test "x$ac_cv_func_fork_works" = xcross; then
5980 ac_cv_func_vfork_works=$ac_cv_func_vfork
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5982 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5983 fi
5984
5985 if test "x$ac_cv_func_vfork_works" = xyes; then
5986
5987 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5988
5989 else
5990
5991 $as_echo "#define vfork fork" >>confdefs.h
5992
5993 fi
5994 if test "x$ac_cv_func_fork_works" = xyes; then
5995
5996 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5997
5998 fi
5999
6000
6001 for ac_func in killpg
6002 do :
6003 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
6004 if test "x$ac_cv_func_killpg" = x""yes; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define HAVE_KILLPG 1
6007 _ACEOF
6008
6009 fi
6010 done
6011
6012
6013
6014
6015
6016 # Build options
6017 DEFAULT_XRDB=xrdb
6018 DEFAULT_XMODMAP=xmodmap
6019 DEFAULT_TWM=twm
6020 DEFAULT_XCLOCK=xclock
6021 DEFAULT_XTERM=xterm
6022 # You always want to specify the full path to the X server
6023 DEFAULT_XSERVER=${bindir}/X
6024 DEFAULT_XAUTH=xauth
6025 DEFAULT_XINIT=xinit
6026 DEFAULT_XINITDIR=${libdir}/X11/xinit
6027
6028
6029 # Check whether --with-xrdb was given.
6030 if test "${with_xrdb+set}" = set; then :
6031 withval=$with_xrdb; XRDB="$withval"
6032 else
6033 XRDB="$DEFAULT_XRDB"
6034 fi
6035
6036
6037
6038 # Check whether --with-xmodmap was given.
6039 if test "${with_xmodmap+set}" = set; then :
6040 withval=$with_xmodmap; XMODMAP="$withval"
6041 else
6042 XMODMAP="$DEFAULT_XMODMAP"
6043 fi
6044
6045
6046
6047 # Check whether --with-twm was given.
6048 if test "${with_twm+set}" = set; then :
6049 withval=$with_twm; TWM="$withval"
6050 else
6051 TWM="$DEFAULT_TWM"
6052 fi
6053
6054
6055
6056 # Check whether --with-xclock was given.
6057 if test "${with_xclock+set}" = set; then :
6058 withval=$with_xclock; XCLOCK="$withval"
6059 else
6060 XCLOCK="$DEFAULT_XCLOCK"
6061 fi
6062
6063
6064
6065 # Check whether --with-xterm was given.
6066 if test "${with_xterm+set}" = set; then :
6067 withval=$with_xterm; XTERM="$withval"
6068 else
6069 XTERM="$DEFAULT_XTERM"
6070 fi
6071
6072
6073
6074 # Check whether --with-xserver was given.
6075 if test "${with_xserver+set}" = set; then :
6076 withval=$with_xserver; XSERVER="$withval"
6077 else
6078 XSERVER="$DEFAULT_XSERVER"
6079 fi
6080
6081
6082
6083 # Check whether --with-xauth was given.
6084 if test "${with_xauth+set}" = set; then :
6085 withval=$with_xauth; XAUTH="$withval"
6086 else
6087 XAUTH="$DEFAULT_XAUTH"
6088 fi
6089
6090
6091
6092 # Check whether --with-xinit was given.
6093 if test "${with_xinit+set}" = set; then :
6094 withval=$with_xinit; XINIT="$withval"
6095 else
6096 XINIT="$DEFAULT_XINIT"
6097 fi
6098
6099
6100
6101 # Check whether --with-xinitdir was given.
6102 if test "${with_xinitdir+set}" = set; then :
6103 withval=$with_xinitdir; XINITDIR="$withval"
6104 else
6105 XINITDIR="$DEFAULT_XINITDIR"
6106 fi
6107
6108
6109
6110 # Check whether --with-launchd was given.
6111 if test "${with_launchd+set}" = set; then :
6112 withval=$with_launchd; LAUNCHD=$withval
6113 else
6114 LAUNCHD=auto
6115 fi
6116
6117
6118 # Check whether --with-launchagents-dir was given.
6119 if test "${with_launchagents_dir+set}" = set; then :
6120 withval=$with_launchagents_dir; launchagentsdir="${withval}"
6121 else
6122 launchagentsdir="/Library/LaunchAgents"
6123 fi
6124
6125
6126 # Check whether --with-launchdaemons-dir was given.
6127 if test "${with_launchdaemons_dir+set}" = set; then :
6128 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
6129 else
6130 launchdaemonsdir="/Library/LaunchDaemons"
6131 fi
6132
6133
6134 # Check whether --with-launchd-id-prefix was given.
6135 if test "${with_launchd_id_prefix+set}" = set; then :
6136 withval=$with_launchd_id_prefix; launchdidprefix="${withval}"
6137 else
6138 launchdidprefix="org.x"
6139 fi
6140
6141
6142 if test "x$LAUNCHD" = "xauto"; then
6143 unset LAUNCHD
6144 # Extract the first word of "launchd", so it can be a program name with args.
6145 set dummy launchd; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_LAUNCHD+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$LAUNCHD"; then
6152 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_LAUNCHD="yes"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
6170 fi
6171 fi
6172 LAUNCHD=$ac_cv_prog_LAUNCHD
6173 if test -n "$LAUNCHD"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
6175 $as_echo "$LAUNCHD" >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181
6182 fi
6183
6184 TIGER_LAUNCHD=no
6185 if test "x$LAUNCHD" = "xyes" ; then
6186
6187 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
6188
6189 case $host_os in
6190 darwin8*)
6191 TIGER_LAUNCHD=yes
6192 ;;
6193 esac
6194 else
6195 launchagentsdir=""
6196 launchdaemonsdir=""
6197 fi
6198
6199
6200 cat >>confdefs.h <<_ACEOF
6201 #define LAUNCHD_ID_PREFIX "$launchdidprefix"
6202 _ACEOF
6203
6204
6205
6206
6207 if test "x$LAUNCHD" = "xyes"; then
6208 LAUNCHD_TRUE=
6209 LAUNCHD_FALSE='#'
6210 else
6211 LAUNCHD_TRUE='#'
6212 LAUNCHD_FALSE=
6213 fi
6214
6215 if test "x$TIGER_LAUNCHD" = "xyes"; then
6216 TIGER_LAUNCHD_TRUE=
6217 TIGER_LAUNCHD_FALSE='#'
6218 else
6219 TIGER_LAUNCHD_TRUE='#'
6220 TIGER_LAUNCHD_FALSE=
6221 fi
6222
6223
6224 # Checks for pkg-config packages
6225
6226 pkg_failed=no
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
6228 $as_echo_n "checking for XINIT... " >&6; }
6229
6230 if test -n "$XINIT_CFLAGS"; then
6231 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
6232 elif test -n "$PKG_CONFIG"; then
6233 if test -n "$PKG_CONFIG" && \
6234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6235 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6236 ac_status=$?
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; }; then
6239 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6240 else
6241 pkg_failed=yes
6242 fi
6243 else
6244 pkg_failed=untried
6245 fi
6246 if test -n "$XINIT_LIBS"; then
6247 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
6248 elif test -n "$PKG_CONFIG"; then
6249 if test -n "$PKG_CONFIG" && \
6250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6251 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6252 ac_status=$?
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }; then
6255 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6256 else
6257 pkg_failed=yes
6258 fi
6259 else
6260 pkg_failed=untried
6261 fi
6262
6263
6264
6265 if test $pkg_failed = yes; then
6266
6267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6268 _pkg_short_errors_supported=yes
6269 else
6270 _pkg_short_errors_supported=no
6271 fi
6272 if test $_pkg_short_errors_supported = yes; then
6273 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
6274 else
6275 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
6276 fi
6277 # Put the nasty error message in config.log where it belongs
6278 echo "$XINIT_PKG_ERRORS" >&5
6279
6280 as_fn_error "Package requirements (x11) were not met:
6281
6282 $XINIT_PKG_ERRORS
6283
6284 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6285 installed software in a non-standard prefix.
6286
6287 Alternatively, you may set the environment variables XINIT_CFLAGS
6288 and XINIT_LIBS to avoid the need to call pkg-config.
6289 See the pkg-config man page for more details.
6290 " "$LINENO" 5
6291 elif test $pkg_failed = untried; then
6292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6294 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
6295 is in your PATH or set the PKG_CONFIG environment variable to the full
6296 path to pkg-config.
6297
6298 Alternatively, you may set the environment variables XINIT_CFLAGS
6299 and XINIT_LIBS to avoid the need to call pkg-config.
6300 See the pkg-config man page for more details.
6301
6302 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6303 See \`config.log' for more details." "$LINENO" 5; }
6304 else
6305 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
6306 XINIT_LIBS=$pkg_cv_XINIT_LIBS
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308 $as_echo "yes" >&6; }
6309 :
6310 fi
6311
6312 case $host_os in
6313 *bsd*)
6314 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
6315 ;;
6316 esac
6317
6318
6319
6320
6321 for ac_prog in mcookie
6322 do
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_path_MCOOKIE+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 case $MCOOKIE in
6331 [\\/]* | ?:[\\/]*)
6332 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
6333 ;;
6334 *)
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
6337 for as_dir in $as_dummy
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 ;;
6352 esac
6353 fi
6354 MCOOKIE=$ac_cv_path_MCOOKIE
6355 if test -n "$MCOOKIE"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
6357 $as_echo "$MCOOKIE" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363
6364 test -n "$MCOOKIE" && break
6365 done
6366 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
6367
6368
6369 case $host_os in
6370 *openbsd*)
6371 MCOOKIE='/usr/sbin/openssl rand -hex 16'
6372 ;;
6373 *solaris*)
6374 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
6375 ;;
6376 esac
6377
6378 if test "x$MCOOKIE" != x ; then
6379 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
6380 fi
6381
6382
6383 # Additional substitutions in startx, xinitrc & man pages
6384 ARCHMANDEFS=""
6385 SHELL_CMD="/bin/sh"
6386 XSERVERNAME="Xorg"
6387 XCONFIGFILE="xorg.conf"
6388 XCONFIGFILEMAN='${XCONFIGFILE} (__filemansuffix__)'
6389 case $host_os in
6390 cygwin*)
6391 XSERVERNAME="XWin"
6392 XCONFIGFILE="XWinrc"
6393 ;;
6394 darwin*)
6395 XSERVERNAME="Xquartz"
6396 XCONFIGFILE="defaults"
6397 XCONFIGFILEMAN='defaults (1)'
6398 ;;
6399 *solaris*)
6400 SHELL_CMD="/bin/ksh"
6401 ;;
6402 *sco*)
6403 SHELL_CMD="/bin/ksh"
6404 ARCHMANDEFS="-D__SCOMAN__"
6405 ;;
6406 esac
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 ac_config_files="$ac_config_files Makefile"
6424
6425 cat >confcache <<\_ACEOF
6426 # This file is a shell script that caches the results of configure
6427 # tests run on this system so they can be shared between configure
6428 # scripts and configure runs, see configure's option --config-cache.
6429 # It is not useful on other systems. If it contains results you don't
6430 # want to keep, you may remove or edit it.
6431 #
6432 # config.status only pays attention to the cache file if you give it
6433 # the --recheck option to rerun configure.
6434 #
6435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6437 # following values.
6438
6439 _ACEOF
6440
6441 # The following way of writing the cache mishandles newlines in values,
6442 # but we know of no workaround that is simple, portable, and efficient.
6443 # So, we kill variables containing newlines.
6444 # Ultrix sh set writes to stderr and can't be redirected directly,
6445 # and sets the high bit in the cache file unless we assign to the vars.
6446 (
6447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6448 eval ac_val=\$$ac_var
6449 case $ac_val in #(
6450 *${as_nl}*)
6451 case $ac_var in #(
6452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6454 esac
6455 case $ac_var in #(
6456 _ | IFS | as_nl) ;; #(
6457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6458 *) { eval $ac_var=; unset $ac_var;} ;;
6459 esac ;;
6460 esac
6461 done
6462
6463 (set) 2>&1 |
6464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6465 *${as_nl}ac_space=\ *)
6466 # `set' does not quote correctly, so add quotes: double-quote
6467 # substitution turns \\\\ into \\, and sed turns \\ into \.
6468 sed -n \
6469 "s/'/'\\\\''/g;
6470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6471 ;; #(
6472 *)
6473 # `set' quotes correctly as required by POSIX, so do not add quotes.
6474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6475 ;;
6476 esac |
6477 sort
6478 ) |
6479 sed '
6480 /^ac_cv_env_/b end
6481 t clear
6482 :clear
6483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6484 t end
6485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6486 :end' >>confcache
6487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6488 if test -w "$cache_file"; then
6489 test "x$cache_file" != "x/dev/null" &&
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6491 $as_echo "$as_me: updating cache $cache_file" >&6;}
6492 cat confcache >$cache_file
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6495 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6496 fi
6497 fi
6498 rm -f confcache
6499
6500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6501 # Let make expand exec_prefix.
6502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6503
6504 DEFS=-DHAVE_CONFIG_H
6505
6506 ac_libobjs=
6507 ac_ltlibobjs=
6508 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6509 # 1. Remove the extension, and $U if already installed.
6510 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6511 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6512 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6513 # will be set to the directory where LIBOBJS objects are built.
6514 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6515 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6516 done
6517 LIBOBJS=$ac_libobjs
6518
6519 LTLIBOBJS=$ac_ltlibobjs
6520
6521
6522 if test -n "$EXEEXT"; then
6523 am__EXEEXT_TRUE=
6524 am__EXEEXT_FALSE='#'
6525 else
6526 am__EXEEXT_TRUE='#'
6527 am__EXEEXT_FALSE=
6528 fi
6529
6530 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6531 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6533 fi
6534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6535 as_fn_error "conditional \"AMDEP\" was never defined.
6536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6537 fi
6538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6539 as_fn_error "conditional \"am__fastdepCC\" was never defined.
6540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6541 fi
6542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6543 as_fn_error "conditional \"am__fastdepCC\" was never defined.
6544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6545 fi
6546 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
6547 as_fn_error "conditional \"LAUNCHD\" was never defined.
6548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6549 fi
6550 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
6551 as_fn_error "conditional \"TIGER_LAUNCHD\" was never defined.
6552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6553 fi
6554
6555 : ${CONFIG_STATUS=./config.status}
6556 ac_write_fail=0
6557 ac_clean_files_save=$ac_clean_files
6558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6561 as_write_fail=0
6562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6563 #! $SHELL
6564 # Generated by $as_me.
6565 # Run this file to recreate the current configuration.
6566 # Compiler output produced by configure, useful for debugging
6567 # configure, is in config.log if it exists.
6568
6569 debug=false
6570 ac_cs_recheck=false
6571 ac_cs_silent=false
6572
6573 SHELL=\${CONFIG_SHELL-$SHELL}
6574 export SHELL
6575 _ASEOF
6576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6577 ## -------------------- ##
6578 ## M4sh Initialization. ##
6579 ## -------------------- ##
6580
6581 # Be more Bourne compatible
6582 DUALCASE=1; export DUALCASE # for MKS sh
6583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6584 emulate sh
6585 NULLCMD=:
6586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6587 # is contrary to our usage. Disable this feature.
6588 alias -g '${1+"$@"}'='"$@"'
6589 setopt NO_GLOB_SUBST
6590 else
6591 case `(set -o) 2>/dev/null` in #(
6592 *posix*) :
6593 set -o posix ;; #(
6594 *) :
6595 ;;
6596 esac
6597 fi
6598
6599
6600 as_nl='
6601 '
6602 export as_nl
6603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6607 # Prefer a ksh shell builtin over an external printf program on Solaris,
6608 # but without wasting forks for bash or zsh.
6609 if test -z "$BASH_VERSION$ZSH_VERSION" \
6610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6611 as_echo='print -r --'
6612 as_echo_n='print -rn --'
6613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6614 as_echo='printf %s\n'
6615 as_echo_n='printf %s'
6616 else
6617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6619 as_echo_n='/usr/ucb/echo -n'
6620 else
6621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6622 as_echo_n_body='eval
6623 arg=$1;
6624 case $arg in #(
6625 *"$as_nl"*)
6626 expr "X$arg" : "X\\(.*\\)$as_nl";
6627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6628 esac;
6629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6630 '
6631 export as_echo_n_body
6632 as_echo_n='sh -c $as_echo_n_body as_echo'
6633 fi
6634 export as_echo_body
6635 as_echo='sh -c $as_echo_body as_echo'
6636 fi
6637
6638 # The user is always right.
6639 if test "${PATH_SEPARATOR+set}" != set; then
6640 PATH_SEPARATOR=:
6641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6643 PATH_SEPARATOR=';'
6644 }
6645 fi
6646
6647
6648 # IFS
6649 # We need space, tab and new line, in precisely that order. Quoting is
6650 # there to prevent editors from complaining about space-tab.
6651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6652 # splitting by setting IFS to empty value.)
6653 IFS=" "" $as_nl"
6654
6655 # Find who we are. Look in the path if we contain no directory separator.
6656 case $0 in #((
6657 *[\\/]* ) as_myself=$0 ;;
6658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6664 done
6665 IFS=$as_save_IFS
6666
6667 ;;
6668 esac
6669 # We did not find ourselves, most probably we were run as `sh COMMAND'
6670 # in which case we are not to be found in the path.
6671 if test "x$as_myself" = x; then
6672 as_myself=$0
6673 fi
6674 if test ! -f "$as_myself"; then
6675 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6676 exit 1
6677 fi
6678
6679 # Unset variables that we do not need and which cause bugs (e.g. in
6680 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6681 # suppresses any "Segmentation fault" message there. '((' could
6682 # trigger a bug in pdksh 5.2.14.
6683 for as_var in BASH_ENV ENV MAIL MAILPATH
6684 do eval test x\${$as_var+set} = xset \
6685 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6686 done
6687 PS1='$ '
6688 PS2='> '
6689 PS4='+ '
6690
6691 # NLS nuisances.
6692 LC_ALL=C
6693 export LC_ALL
6694 LANGUAGE=C
6695 export LANGUAGE
6696
6697 # CDPATH.
6698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6699
6700
6701 # as_fn_error ERROR [LINENO LOG_FD]
6702 # ---------------------------------
6703 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6704 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6705 # script with status $?, using 1 if that was 0.
6706 as_fn_error ()
6707 {
6708 as_status=$?; test $as_status -eq 0 && as_status=1
6709 if test "$3"; then
6710 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6711 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6712 fi
6713 $as_echo "$as_me: error: $1" >&2
6714 as_fn_exit $as_status
6715 } # as_fn_error
6716
6717
6718 # as_fn_set_status STATUS
6719 # -----------------------
6720 # Set $? to STATUS, without forking.
6721 as_fn_set_status ()
6722 {
6723 return $1
6724 } # as_fn_set_status
6725
6726 # as_fn_exit STATUS
6727 # -----------------
6728 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6729 as_fn_exit ()
6730 {
6731 set +e
6732 as_fn_set_status $1
6733 exit $1
6734 } # as_fn_exit
6735
6736 # as_fn_unset VAR
6737 # ---------------
6738 # Portably unset VAR.
6739 as_fn_unset ()
6740 {
6741 { eval $1=; unset $1;}
6742 }
6743 as_unset=as_fn_unset
6744 # as_fn_append VAR VALUE
6745 # ----------------------
6746 # Append the text in VALUE to the end of the definition contained in VAR. Take
6747 # advantage of any shell optimizations that allow amortized linear growth over
6748 # repeated appends, instead of the typical quadratic growth present in naive
6749 # implementations.
6750 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6751 eval 'as_fn_append ()
6752 {
6753 eval $1+=\$2
6754 }'
6755 else
6756 as_fn_append ()
6757 {
6758 eval $1=\$$1\$2
6759 }
6760 fi # as_fn_append
6761
6762 # as_fn_arith ARG...
6763 # ------------------
6764 # Perform arithmetic evaluation on the ARGs, and store the result in the
6765 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6766 # must be portable across $(()) and expr.
6767 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6768 eval 'as_fn_arith ()
6769 {
6770 as_val=$(( $* ))
6771 }'
6772 else
6773 as_fn_arith ()
6774 {
6775 as_val=`expr "$@" || test $? -eq 1`
6776 }
6777 fi # as_fn_arith
6778
6779
6780 if expr a : '\(a\)' >/dev/null 2>&1 &&
6781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6782 as_expr=expr
6783 else
6784 as_expr=false
6785 fi
6786
6787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6788 as_basename=basename
6789 else
6790 as_basename=false
6791 fi
6792
6793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6794 as_dirname=dirname
6795 else
6796 as_dirname=false
6797 fi
6798
6799 as_me=`$as_basename -- "$0" ||
6800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6801 X"$0" : 'X\(//\)$' \| \
6802 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6803 $as_echo X/"$0" |
6804 sed '/^.*\/\([^/][^/]*\)\/*$/{
6805 s//\1/
6806 q
6807 }
6808 /^X\/\(\/\/\)$/{
6809 s//\1/
6810 q
6811 }
6812 /^X\/\(\/\).*/{
6813 s//\1/
6814 q
6815 }
6816 s/.*/./; q'`
6817
6818 # Avoid depending upon Character Ranges.
6819 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6822 as_cr_digits='0123456789'
6823 as_cr_alnum=$as_cr_Letters$as_cr_digits
6824
6825 ECHO_C= ECHO_N= ECHO_T=
6826 case `echo -n x` in #(((((
6827 -n*)
6828 case `echo 'xy\c'` in
6829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6830 xy) ECHO_C='\c';;
6831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6832 ECHO_T=' ';;
6833 esac;;
6834 *)
6835 ECHO_N='-n';;
6836 esac
6837
6838 rm -f conf$$ conf$$.exe conf$$.file
6839 if test -d conf$$.dir; then
6840 rm -f conf$$.dir/conf$$.file
6841 else
6842 rm -f conf$$.dir
6843 mkdir conf$$.dir 2>/dev/null
6844 fi
6845 if (echo >conf$$.file) 2>/dev/null; then
6846 if ln -s conf$$.file conf$$ 2>/dev/null; then
6847 as_ln_s='ln -s'
6848 # ... but there are two gotchas:
6849 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6850 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6851 # In both cases, we have to default to `cp -p'.
6852 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6853 as_ln_s='cp -p'
6854 elif ln conf$$.file conf$$ 2>/dev/null; then
6855 as_ln_s=ln
6856 else
6857 as_ln_s='cp -p'
6858 fi
6859 else
6860 as_ln_s='cp -p'
6861 fi
6862 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6863 rmdir conf$$.dir 2>/dev/null
6864
6865
6866 # as_fn_mkdir_p
6867 # -------------
6868 # Create "$as_dir" as a directory, including parents if necessary.
6869 as_fn_mkdir_p ()
6870 {
6871
6872 case $as_dir in #(
6873 -*) as_dir=./$as_dir;;
6874 esac
6875 test -d "$as_dir" || eval $as_mkdir_p || {
6876 as_dirs=
6877 while :; do
6878 case $as_dir in #(
6879 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6880 *) as_qdir=$as_dir;;
6881 esac
6882 as_dirs="'$as_qdir' $as_dirs"
6883 as_dir=`$as_dirname -- "$as_dir" ||
6884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6885 X"$as_dir" : 'X\(//\)[^/]' \| \
6886 X"$as_dir" : 'X\(//\)$' \| \
6887 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6888 $as_echo X"$as_dir" |
6889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6890 s//\1/
6891 q
6892 }
6893 /^X\(\/\/\)[^/].*/{
6894 s//\1/
6895 q
6896 }
6897 /^X\(\/\/\)$/{
6898 s//\1/
6899 q
6900 }
6901 /^X\(\/\).*/{
6902 s//\1/
6903 q
6904 }
6905 s/.*/./; q'`
6906 test -d "$as_dir" && break
6907 done
6908 test -z "$as_dirs" || eval "mkdir $as_dirs"
6909 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6910
6911
6912 } # as_fn_mkdir_p
6913 if mkdir -p . 2>/dev/null; then
6914 as_mkdir_p='mkdir -p "$as_dir"'
6915 else
6916 test -d ./-p && rmdir ./-p
6917 as_mkdir_p=false
6918 fi
6919
6920 if test -x / >/dev/null 2>&1; then
6921 as_test_x='test -x'
6922 else
6923 if ls -dL / >/dev/null 2>&1; then
6924 as_ls_L_option=L
6925 else
6926 as_ls_L_option=
6927 fi
6928 as_test_x='
6929 eval sh -c '\''
6930 if test -d "$1"; then
6931 test -d "$1/.";
6932 else
6933 case $1 in #(
6934 -*)set "./$1";;
6935 esac;
6936 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6937 ???[sx]*):;;*)false;;esac;fi
6938 '\'' sh
6939 '
6940 fi
6941 as_executable_p=$as_test_x
6942
6943 # Sed expression to map a string onto a valid CPP name.
6944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6945
6946 # Sed expression to map a string onto a valid variable name.
6947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6948
6949
6950 exec 6>&1
6951 ## ----------------------------------- ##
6952 ## Main body of $CONFIG_STATUS script. ##
6953 ## ----------------------------------- ##
6954 _ASEOF
6955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6956
6957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6958 # Save the log message, to keep $0 and so on meaningful, and to
6959 # report actual input values of CONFIG_FILES etc. instead of their
6960 # values after options handling.
6961 ac_log="
6962 This file was extended by xinit $as_me 1.2.1, which was
6963 generated by GNU Autoconf 2.65. Invocation command line was
6964
6965 CONFIG_FILES = $CONFIG_FILES
6966 CONFIG_HEADERS = $CONFIG_HEADERS
6967 CONFIG_LINKS = $CONFIG_LINKS
6968 CONFIG_COMMANDS = $CONFIG_COMMANDS
6969 $ $0 $@
6970
6971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6972 "
6973
6974 _ACEOF
6975
6976 case $ac_config_files in *"
6977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6978 esac
6979
6980 case $ac_config_headers in *"
6981 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6982 esac
6983
6984
6985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6986 # Files that config.status was made for.
6987 config_files="$ac_config_files"
6988 config_headers="$ac_config_headers"
6989 config_commands="$ac_config_commands"
6990
6991 _ACEOF
6992
6993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6994 ac_cs_usage="\
6995 \`$as_me' instantiates files and other configuration actions
6996 from templates according to the current configuration. Unless the files
6997 and actions are specified as TAGs, all are instantiated by default.
6998
6999 Usage: $0 [OPTION]... [TAG]...
7000
7001 -h, --help print this help, then exit
7002 -V, --version print version number and configuration settings, then exit
7003 --config print configuration, then exit
7004 -q, --quiet, --silent
7005 do not print progress messages
7006 -d, --debug don't remove temporary files
7007 --recheck update $as_me by reconfiguring in the same conditions
7008 --file=FILE[:TEMPLATE]
7009 instantiate the configuration file FILE
7010 --header=FILE[:TEMPLATE]
7011 instantiate the configuration header FILE
7012
7013 Configuration files:
7014 $config_files
7015
7016 Configuration headers:
7017 $config_headers
7018
7019 Configuration commands:
7020 $config_commands
7021
7022 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
7023
7024 _ACEOF
7025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7026 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7027 ac_cs_version="\\
7028 xinit config.status 1.2.1
7029 configured by $0, generated by GNU Autoconf 2.65,
7030 with options \\"\$ac_cs_config\\"
7031
7032 Copyright (C) 2009 Free Software Foundation, Inc.
7033 This config.status script is free software; the Free Software Foundation
7034 gives unlimited permission to copy, distribute and modify it."
7035
7036 ac_pwd='$ac_pwd'
7037 srcdir='$srcdir'
7038 INSTALL='$INSTALL'
7039 MKDIR_P='$MKDIR_P'
7040 AWK='$AWK'
7041 test -n "\$AWK" || AWK=awk
7042 _ACEOF
7043
7044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7045 # The default lists apply if the user does not specify any file.
7046 ac_need_defaults=:
7047 while test $# != 0
7048 do
7049 case $1 in
7050 --*=*)
7051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7053 ac_shift=:
7054 ;;
7055 *)
7056 ac_option=$1
7057 ac_optarg=$2
7058 ac_shift=shift
7059 ;;
7060 esac
7061
7062 case $ac_option in
7063 # Handling of the options.
7064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7065 ac_cs_recheck=: ;;
7066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7067 $as_echo "$ac_cs_version"; exit ;;
7068 --config | --confi | --conf | --con | --co | --c )
7069 $as_echo "$ac_cs_config"; exit ;;
7070 --debug | --debu | --deb | --de | --d | -d )
7071 debug=: ;;
7072 --file | --fil | --fi | --f )
7073 $ac_shift
7074 case $ac_optarg in
7075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7076 esac
7077 as_fn_append CONFIG_FILES " '$ac_optarg'"
7078 ac_need_defaults=false;;
7079 --header | --heade | --head | --hea )
7080 $ac_shift
7081 case $ac_optarg in
7082 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7083 esac
7084 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7085 ac_need_defaults=false;;
7086 --he | --h)
7087 # Conflict between --help and --header
7088 as_fn_error "ambiguous option: \`$1'
7089 Try \`$0 --help' for more information.";;
7090 --help | --hel | -h )
7091 $as_echo "$ac_cs_usage"; exit ;;
7092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7094 ac_cs_silent=: ;;
7095
7096 # This is an error.
7097 -*) as_fn_error "unrecognized option: \`$1'
7098 Try \`$0 --help' for more information." ;;
7099
7100 *) as_fn_append ac_config_targets " $1"
7101 ac_need_defaults=false ;;
7102
7103 esac
7104 shift
7105 done
7106
7107 ac_configure_extra_args=
7108
7109 if $ac_cs_silent; then
7110 exec 6>/dev/null
7111 ac_configure_extra_args="$ac_configure_extra_args --silent"
7112 fi
7113
7114 _ACEOF
7115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7116 if \$ac_cs_recheck; then
7117 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7118 shift
7119 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7120 CONFIG_SHELL='$SHELL'
7121 export CONFIG_SHELL
7122 exec "\$@"
7123 fi
7124
7125 _ACEOF
7126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7127 exec 5>>config.log
7128 {
7129 echo
7130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7131 ## Running $as_me. ##
7132 _ASBOX
7133 $as_echo "$ac_log"
7134 } >&5
7135
7136 _ACEOF
7137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7138 #
7139 # INIT-COMMANDS
7140 #
7141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7142
7143 _ACEOF
7144
7145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7146
7147 # Handling of arguments.
7148 for ac_config_target in $ac_config_targets
7149 do
7150 case $ac_config_target in
7151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7152 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7153 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7154
7155 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7156 esac
7157 done
7158
7159
7160 # If the user did not use the arguments to specify the items to instantiate,
7161 # then the envvar interface is used. Set only those that are not.
7162 # We use the long form for the default assignment because of an extremely
7163 # bizarre bug on SunOS 4.1.3.
7164 if $ac_need_defaults; then
7165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7168 fi
7169
7170 # Have a temporary directory for convenience. Make it in the build tree
7171 # simply because there is no reason against having it here, and in addition,
7172 # creating and moving files from /tmp can sometimes cause problems.
7173 # Hook for its removal unless debugging.
7174 # Note that there is a small window in which the directory will not be cleaned:
7175 # after its creation but before its name has been assigned to `$tmp'.
7176 $debug ||
7177 {
7178 tmp=
7179 trap 'exit_status=$?
7180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7181 ' 0
7182 trap 'as_fn_exit 1' 1 2 13 15
7183 }
7184 # Create a (secure) tmp directory for tmp files.
7185
7186 {
7187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7188 test -n "$tmp" && test -d "$tmp"
7189 } ||
7190 {
7191 tmp=./conf$$-$RANDOM
7192 (umask 077 && mkdir "$tmp")
7193 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7194
7195 # Set up the scripts for CONFIG_FILES section.
7196 # No need to generate them if there are no CONFIG_FILES.
7197 # This happens for instance with `./config.status config.h'.
7198 if test -n "$CONFIG_FILES"; then
7199
7200
7201 ac_cr=`echo X | tr X '\015'`
7202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7203 # But we know of no other shell where ac_cr would be empty at this
7204 # point, so we can use a bashism as a fallback.
7205 if test "x$ac_cr" = x; then
7206 eval ac_cr=\$\'\\r\'
7207 fi
7208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7210 ac_cs_awk_cr='\r'
7211 else
7212 ac_cs_awk_cr=$ac_cr
7213 fi
7214
7215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7216 _ACEOF
7217
7218
7219 {
7220 echo "cat >conf$$subs.awk <<_ACEOF" &&
7221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7222 echo "_ACEOF"
7223 } >conf$$subs.sh ||
7224 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7226 ac_delim='%!_!# '
7227 for ac_last_try in false false false false false :; do
7228 . ./conf$$subs.sh ||
7229 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7230
7231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7232 if test $ac_delim_n = $ac_delim_num; then
7233 break
7234 elif $ac_last_try; then
7235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7236 else
7237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7238 fi
7239 done
7240 rm -f conf$$subs.sh
7241
7242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7243 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7244 _ACEOF
7245 sed -n '
7246 h
7247 s/^/S["/; s/!.*/"]=/
7248 p
7249 g
7250 s/^[^!]*!//
7251 :repl
7252 t repl
7253 s/'"$ac_delim"'$//
7254 t delim
7255 :nl
7256 h
7257 s/\(.\{148\}\)..*/\1/
7258 t more1
7259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7260 p
7261 n
7262 b repl
7263 :more1
7264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7265 p
7266 g
7267 s/.\{148\}//
7268 t nl
7269 :delim
7270 h
7271 s/\(.\{148\}\)..*/\1/
7272 t more2
7273 s/["\\]/\\&/g; s/^/"/; s/$/"/
7274 p
7275 b
7276 :more2
7277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7278 p
7279 g
7280 s/.\{148\}//
7281 t delim
7282 ' <conf$$subs.awk | sed '
7283 /^[^""]/{
7284 N
7285 s/\n//
7286 }
7287 ' >>$CONFIG_STATUS || ac_write_fail=1
7288 rm -f conf$$subs.awk
7289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7290 _ACAWK
7291 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7292 for (key in S) S_is_set[key] = 1
7293 FS = ""
7294
7295 }
7296 {
7297 line = $ 0
7298 nfields = split(line, field, "@")
7299 substed = 0
7300 len = length(field[1])
7301 for (i = 2; i < nfields; i++) {
7302 key = field[i]
7303 keylen = length(key)
7304 if (S_is_set[key]) {
7305 value = S[key]
7306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7307 len += length(value) + length(field[++i])
7308 substed = 1
7309 } else
7310 len += 1 + keylen
7311 }
7312
7313 print line
7314 }
7315
7316 _ACAWK
7317 _ACEOF
7318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7321 else
7322 cat
7323 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7324 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7325 _ACEOF
7326
7327 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7328 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7329 # trailing colons and then remove the whole line if VPATH becomes empty
7330 # (actually we leave an empty line to preserve line numbers).
7331 if test "x$srcdir" = x.; then
7332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7333 s/:*\$(srcdir):*/:/
7334 s/:*\${srcdir}:*/:/
7335 s/:*@srcdir@:*/:/
7336 s/^\([^=]*=[ ]*\):*/\1/
7337 s/:*$//
7338 s/^[^=]*=[ ]*$//
7339 }'
7340 fi
7341
7342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7343 fi # test -n "$CONFIG_FILES"
7344
7345 # Set up the scripts for CONFIG_HEADERS section.
7346 # No need to generate them if there are no CONFIG_HEADERS.
7347 # This happens for instance with `./config.status Makefile'.
7348 if test -n "$CONFIG_HEADERS"; then
7349 cat >"$tmp/defines.awk" <<\_ACAWK ||
7350 BEGIN {
7351 _ACEOF
7352
7353 # Transform confdefs.h into an awk script `defines.awk', embedded as
7354 # here-document in config.status, that substitutes the proper values into
7355 # config.h.in to produce config.h.
7356
7357 # Create a delimiter string that does not exist in confdefs.h, to ease
7358 # handling of long lines.
7359 ac_delim='%!_!# '
7360 for ac_last_try in false false :; do
7361 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7362 if test -z "$ac_t"; then
7363 break
7364 elif $ac_last_try; then
7365 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7366 else
7367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7368 fi
7369 done
7370
7371 # For the awk script, D is an array of macro values keyed by name,
7372 # likewise P contains macro parameters if any. Preserve backslash
7373 # newline sequences.
7374
7375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7376 sed -n '
7377 s/.\{148\}/&'"$ac_delim"'/g
7378 t rset
7379 :rset
7380 s/^[ ]*#[ ]*define[ ][ ]*/ /
7381 t def
7382 d
7383 :def
7384 s/\\$//
7385 t bsnl
7386 s/["\\]/\\&/g
7387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7388 D["\1"]=" \3"/p
7389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7390 d
7391 :bsnl
7392 s/["\\]/\\&/g
7393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7394 D["\1"]=" \3\\\\\\n"\\/p
7395 t cont
7396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7397 t cont
7398 d
7399 :cont
7400 n
7401 s/.\{148\}/&'"$ac_delim"'/g
7402 t clear
7403 :clear
7404 s/\\$//
7405 t bsnlc
7406 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7407 d
7408 :bsnlc
7409 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7410 b cont
7411 ' <confdefs.h | sed '
7412 s/'"$ac_delim"'/"\\\
7413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7414
7415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7416 for (key in D) D_is_set[key] = 1
7417 FS = ""
7418 }
7419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7420 line = \$ 0
7421 split(line, arg, " ")
7422 if (arg[1] == "#") {
7423 defundef = arg[2]
7424 mac1 = arg[3]
7425 } else {
7426 defundef = substr(arg[1], 2)
7427 mac1 = arg[2]
7428 }
7429 split(mac1, mac2, "(") #)
7430 macro = mac2[1]
7431 prefix = substr(line, 1, index(line, defundef) - 1)
7432 if (D_is_set[macro]) {
7433 # Preserve the white space surrounding the "#".
7434 print prefix "define", macro P[macro] D[macro]
7435 next
7436 } else {
7437 # Replace #undef with comments. This is necessary, for example,
7438 # in the case of _POSIX_SOURCE, which is predefined and required
7439 # on some systems where configure will not decide to define it.
7440 if (defundef == "undef") {
7441 print "/*", prefix defundef, macro, "*/"
7442 next
7443 }
7444 }
7445 }
7446 { print }
7447 _ACAWK
7448 _ACEOF
7449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7450 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7451 fi # test -n "$CONFIG_HEADERS"
7452
7453
7454 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7455 shift
7456 for ac_tag
7457 do
7458 case $ac_tag in
7459 :[FHLC]) ac_mode=$ac_tag; continue;;
7460 esac
7461 case $ac_mode$ac_tag in
7462 :[FHL]*:*);;
7463 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7464 :[FH]-) ac_tag=-:-;;
7465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7466 esac
7467 ac_save_IFS=$IFS
7468 IFS=:
7469 set x $ac_tag
7470 IFS=$ac_save_IFS
7471 shift
7472 ac_file=$1
7473 shift
7474
7475 case $ac_mode in
7476 :L) ac_source=$1;;
7477 :[FH])
7478 ac_file_inputs=
7479 for ac_f
7480 do
7481 case $ac_f in
7482 -) ac_f="$tmp/stdin";;
7483 *) # Look for the file first in the build tree, then in the source tree
7484 # (if the path is not absolute). The absolute path cannot be DOS-style,
7485 # because $ac_f cannot contain `:'.
7486 test -f "$ac_f" ||
7487 case $ac_f in
7488 [\\/$]*) false;;
7489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7490 esac ||
7491 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7492 esac
7493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7494 as_fn_append ac_file_inputs " '$ac_f'"
7495 done
7496
7497 # Let's still pretend it is `configure' which instantiates (i.e., don't
7498 # use $as_me), people would be surprised to read:
7499 # /* config.h. Generated by config.status. */
7500 configure_input='Generated from '`
7501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7502 `' by configure.'
7503 if test x"$ac_file" != x-; then
7504 configure_input="$ac_file. $configure_input"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7506 $as_echo "$as_me: creating $ac_file" >&6;}
7507 fi
7508 # Neutralize special characters interpreted by sed in replacement strings.
7509 case $configure_input in #(
7510 *\&* | *\|* | *\\* )
7511 ac_sed_conf_input=`$as_echo "$configure_input" |
7512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7513 *) ac_sed_conf_input=$configure_input;;
7514 esac
7515
7516 case $ac_tag in
7517 *:-:* | *:-) cat >"$tmp/stdin" \
7518 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7519 esac
7520 ;;
7521 esac
7522
7523 ac_dir=`$as_dirname -- "$ac_file" ||
7524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7525 X"$ac_file" : 'X\(//\)[^/]' \| \
7526 X"$ac_file" : 'X\(//\)$' \| \
7527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7528 $as_echo X"$ac_file" |
7529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7530 s//\1/
7531 q
7532 }
7533 /^X\(\/\/\)[^/].*/{
7534 s//\1/
7535 q
7536 }
7537 /^X\(\/\/\)$/{
7538 s//\1/
7539 q
7540 }
7541 /^X\(\/\).*/{
7542 s//\1/
7543 q
7544 }
7545 s/.*/./; q'`
7546 as_dir="$ac_dir"; as_fn_mkdir_p
7547 ac_builddir=.
7548
7549 case "$ac_dir" in
7550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7551 *)
7552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7553 # A ".." for each directory in $ac_dir_suffix.
7554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7555 case $ac_top_builddir_sub in
7556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7558 esac ;;
7559 esac
7560 ac_abs_top_builddir=$ac_pwd
7561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7562 # for backward compatibility:
7563 ac_top_builddir=$ac_top_build_prefix
7564
7565 case $srcdir in
7566 .) # We are building in place.
7567 ac_srcdir=.
7568 ac_top_srcdir=$ac_top_builddir_sub
7569 ac_abs_top_srcdir=$ac_pwd ;;
7570 [\\/]* | ?:[\\/]* ) # Absolute name.
7571 ac_srcdir=$srcdir$ac_dir_suffix;
7572 ac_top_srcdir=$srcdir
7573 ac_abs_top_srcdir=$srcdir ;;
7574 *) # Relative name.
7575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7576 ac_top_srcdir=$ac_top_build_prefix$srcdir
7577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7578 esac
7579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7580
7581
7582 case $ac_mode in
7583 :F)
7584 #
7585 # CONFIG_FILE
7586 #
7587
7588 case $INSTALL in
7589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7591 esac
7592 ac_MKDIR_P=$MKDIR_P
7593 case $MKDIR_P in
7594 [\\/$]* | ?:[\\/]* ) ;;
7595 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7596 esac
7597 _ACEOF
7598
7599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7600 # If the template does not know about datarootdir, expand it.
7601 # FIXME: This hack should be removed a few years after 2.60.
7602 ac_datarootdir_hack=; ac_datarootdir_seen=
7603 ac_sed_dataroot='
7604 /datarootdir/ {
7605 p
7606 q
7607 }
7608 /@datadir@/p
7609 /@docdir@/p
7610 /@infodir@/p
7611 /@localedir@/p
7612 /@mandir@/p'
7613 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7614 *datarootdir*) ac_datarootdir_seen=yes;;
7615 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7617 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7618 _ACEOF
7619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7620 ac_datarootdir_hack='
7621 s&@datadir@&$datadir&g
7622 s&@docdir@&$docdir&g
7623 s&@infodir@&$infodir&g
7624 s&@localedir@&$localedir&g
7625 s&@mandir@&$mandir&g
7626 s&\\\${datarootdir}&$datarootdir&g' ;;
7627 esac
7628 _ACEOF
7629
7630 # Neutralize VPATH when `$srcdir' = `.'.
7631 # Shell code in configure.ac might set extrasub.
7632 # FIXME: do we really want to maintain this feature?
7633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7634 ac_sed_extra="$ac_vpsub
7635 $extrasub
7636 _ACEOF
7637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7638 :t
7639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7640 s|@configure_input@|$ac_sed_conf_input|;t t
7641 s&@top_builddir@&$ac_top_builddir_sub&;t t
7642 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7643 s&@srcdir@&$ac_srcdir&;t t
7644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7645 s&@top_srcdir@&$ac_top_srcdir&;t t
7646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7647 s&@builddir@&$ac_builddir&;t t
7648 s&@abs_builddir@&$ac_abs_builddir&;t t
7649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7650 s&@INSTALL@&$ac_INSTALL&;t t
7651 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7652 $ac_datarootdir_hack
7653 "
7654 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7655 || as_fn_error "could not create $ac_file" "$LINENO" 5
7656
7657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7661 which seems to be undefined. Please make sure it is defined." >&5
7662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7663 which seems to be undefined. Please make sure it is defined." >&2;}
7664
7665 rm -f "$tmp/stdin"
7666 case $ac_file in
7667 -) cat "$tmp/out" && rm -f "$tmp/out";;
7668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7669 esac \
7670 || as_fn_error "could not create $ac_file" "$LINENO" 5
7671 ;;
7672 :H)
7673 #
7674 # CONFIG_HEADER
7675 #
7676 if test x"$ac_file" != x-; then
7677 {
7678 $as_echo "/* $configure_input */" \
7679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7680 } >"$tmp/config.h" \
7681 || as_fn_error "could not create $ac_file" "$LINENO" 5
7682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7685 else
7686 rm -f "$ac_file"
7687 mv "$tmp/config.h" "$ac_file" \
7688 || as_fn_error "could not create $ac_file" "$LINENO" 5
7689 fi
7690 else
7691 $as_echo "/* $configure_input */" \
7692 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7693 || as_fn_error "could not create -" "$LINENO" 5
7694 fi
7695 # Compute "$ac_file"'s index in $config_headers.
7696 _am_arg="$ac_file"
7697 _am_stamp_count=1
7698 for _am_header in $config_headers :; do
7699 case $_am_header in
7700 $_am_arg | $_am_arg:* )
7701 break ;;
7702 * )
7703 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7704 esac
7705 done
7706 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7707 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7708 X"$_am_arg" : 'X\(//\)[^/]' \| \
7709 X"$_am_arg" : 'X\(//\)$' \| \
7710 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7711 $as_echo X"$_am_arg" |
7712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7713 s//\1/
7714 q
7715 }
7716 /^X\(\/\/\)[^/].*/{
7717 s//\1/
7718 q
7719 }
7720 /^X\(\/\/\)$/{
7721 s//\1/
7722 q
7723 }
7724 /^X\(\/\).*/{
7725 s//\1/
7726 q
7727 }
7728 s/.*/./; q'`/stamp-h$_am_stamp_count
7729 ;;
7730
7731 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7732 $as_echo "$as_me: executing $ac_file commands" >&6;}
7733 ;;
7734 esac
7735
7736
7737 case $ac_file$ac_mode in
7738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7739 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7740 # are listed without --file. Let's play safe and only enable the eval
7741 # if we detect the quoting.
7742 case $CONFIG_FILES in
7743 *\'*) eval set x "$CONFIG_FILES" ;;
7744 *) set x $CONFIG_FILES ;;
7745 esac
7746 shift
7747 for mf
7748 do
7749 # Strip MF so we end up with the name of the file.
7750 mf=`echo "$mf" | sed -e 's/:.*$//'`
7751 # Check whether this is an Automake generated Makefile or not.
7752 # We used to match only the files named `Makefile.in', but
7753 # some people rename them; so instead we look at the file content.
7754 # Grep'ing the first line is not enough: some people post-process
7755 # each Makefile.in and add a new line on top of each file to say so.
7756 # Grep'ing the whole file is not good either: AIX grep has a line
7757 # limit of 2048, but all sed's we know have understand at least 4000.
7758 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7759 dirpart=`$as_dirname -- "$mf" ||
7760 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7761 X"$mf" : 'X\(//\)[^/]' \| \
7762 X"$mf" : 'X\(//\)$' \| \
7763 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7764 $as_echo X"$mf" |
7765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7766 s//\1/
7767 q
7768 }
7769 /^X\(\/\/\)[^/].*/{
7770 s//\1/
7771 q
7772 }
7773 /^X\(\/\/\)$/{
7774 s//\1/
7775 q
7776 }
7777 /^X\(\/\).*/{
7778 s//\1/
7779 q
7780 }
7781 s/.*/./; q'`
7782 else
7783 continue
7784 fi
7785 # Extract the definition of DEPDIR, am__include, and am__quote
7786 # from the Makefile without running `make'.
7787 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7788 test -z "$DEPDIR" && continue
7789 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7790 test -z "am__include" && continue
7791 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7792 # When using ansi2knr, U may be empty or an underscore; expand it
7793 U=`sed -n 's/^U = //p' < "$mf"`
7794 # Find all dependency output files, they are included files with
7795 # $(DEPDIR) in their names. We invoke sed twice because it is the
7796 # simplest approach to changing $(DEPDIR) to its actual value in the
7797 # expansion.
7798 for file in `sed -n "
7799 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7800 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7801 # Make sure the directory exists.
7802 test -f "$dirpart/$file" && continue
7803 fdir=`$as_dirname -- "$file" ||
7804 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7805 X"$file" : 'X\(//\)[^/]' \| \
7806 X"$file" : 'X\(//\)$' \| \
7807 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7808 $as_echo X"$file" |
7809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7810 s//\1/
7811 q
7812 }
7813 /^X\(\/\/\)[^/].*/{
7814 s//\1/
7815 q
7816 }
7817 /^X\(\/\/\)$/{
7818 s//\1/
7819 q
7820 }
7821 /^X\(\/\).*/{
7822 s//\1/
7823 q
7824 }
7825 s/.*/./; q'`
7826 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7827 # echo "creating $dirpart/$file"
7828 echo '# dummy' > "$dirpart/$file"
7829 done
7830 done
7831 }
7832 ;;
7833
7834 esac
7835 done # for ac_tag
7836
7837
7838 as_fn_exit 0
7839 _ACEOF
7840 ac_clean_files=$ac_clean_files_save
7841
7842 test $ac_write_fail = 0 ||
7843 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7844
7845
7846 # configure is writing to config.log, and then calls config.status.
7847 # config.status does its own redirection, appending to config.log.
7848 # Unfortunately, on DOS this fails, as config.log is still kept open
7849 # by configure, so config.status won't be able to write to it; its
7850 # output is simply discarded. So we exec the FD to /dev/null,
7851 # effectively closing config.log, so it can be properly (re)opened and
7852 # appended to by config.status. When coming back to configure, we
7853 # need to make the FD available again.
7854 if test "$no_create" != yes; then
7855 ac_cs_success=:
7856 ac_config_status_args=
7857 test "$silent" = yes &&
7858 ac_config_status_args="$ac_config_status_args --quiet"
7859 exec 5>/dev/null
7860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7861 exec 5>>config.log
7862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7863 # would make configure fail if this is the last instruction.
7864 $ac_cs_success || as_fn_exit $?
7865 fi
7866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7869 fi
7870
7871 ac_config_files="$ac_config_files privileged_startx/Makefile"
7872
7873 cat >confcache <<\_ACEOF
7874 # This file is a shell script that caches the results of configure
7875 # tests run on this system so they can be shared between configure
7876 # scripts and configure runs, see configure's option --config-cache.
7877 # It is not useful on other systems. If it contains results you don't
7878 # want to keep, you may remove or edit it.
7879 #
7880 # config.status only pays attention to the cache file if you give it
7881 # the --recheck option to rerun configure.
7882 #
7883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7885 # following values.
7886
7887 _ACEOF
7888
7889 # The following way of writing the cache mishandles newlines in values,
7890 # but we know of no workaround that is simple, portable, and efficient.
7891 # So, we kill variables containing newlines.
7892 # Ultrix sh set writes to stderr and can't be redirected directly,
7893 # and sets the high bit in the cache file unless we assign to the vars.
7894 (
7895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7896 eval ac_val=\$$ac_var
7897 case $ac_val in #(
7898 *${as_nl}*)
7899 case $ac_var in #(
7900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7902 esac
7903 case $ac_var in #(
7904 _ | IFS | as_nl) ;; #(
7905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7906 *) { eval $ac_var=; unset $ac_var;} ;;
7907 esac ;;
7908 esac
7909 done
7910
7911 (set) 2>&1 |
7912 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7913 *${as_nl}ac_space=\ *)
7914 # `set' does not quote correctly, so add quotes: double-quote
7915 # substitution turns \\\\ into \\, and sed turns \\ into \.
7916 sed -n \
7917 "s/'/'\\\\''/g;
7918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7919 ;; #(
7920 *)
7921 # `set' quotes correctly as required by POSIX, so do not add quotes.
7922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7923 ;;
7924 esac |
7925 sort
7926 ) |
7927 sed '
7928 /^ac_cv_env_/b end
7929 t clear
7930 :clear
7931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7932 t end
7933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7934 :end' >>confcache
7935 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7936 if test -w "$cache_file"; then
7937 test "x$cache_file" != "x/dev/null" &&
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7939 $as_echo "$as_me: updating cache $cache_file" >&6;}
7940 cat confcache >$cache_file
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7943 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7944 fi
7945 fi
7946 rm -f confcache
7947
7948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7949 # Let make expand exec_prefix.
7950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7951
7952 DEFS=-DHAVE_CONFIG_H
7953
7954 ac_libobjs=
7955 ac_ltlibobjs=
7956 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7957 # 1. Remove the extension, and $U if already installed.
7958 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7959 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7960 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7961 # will be set to the directory where LIBOBJS objects are built.
7962 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7963 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7964 done
7965 LIBOBJS=$ac_libobjs
7966
7967 LTLIBOBJS=$ac_ltlibobjs
7968
7969
7970 if test -n "$EXEEXT"; then
7971 am__EXEEXT_TRUE=
7972 am__EXEEXT_FALSE='#'
7973 else
7974 am__EXEEXT_TRUE='#'
7975 am__EXEEXT_FALSE=
7976 fi
7977
7978 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7979 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7981 fi
7982 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7983 as_fn_error "conditional \"AMDEP\" was never defined.
7984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7985 fi
7986 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7987 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7989 fi
7990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7991 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7993 fi
7994 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
7995 as_fn_error "conditional \"LAUNCHD\" was never defined.
7996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7997 fi
7998 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
7999 as_fn_error "conditional \"TIGER_LAUNCHD\" was never defined.
8000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8001 fi
8002 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
8003 as_fn_error "conditional \"am__EXEEXT\" was never defined.
8004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8005 fi
8006
8007 : ${CONFIG_STATUS=./config.status}
8008 ac_write_fail=0
8009 ac_clean_files_save=$ac_clean_files
8010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8012 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8013 as_write_fail=0
8014 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8015 #! $SHELL
8016 # Generated by $as_me.
8017 # Run this file to recreate the current configuration.
8018 # Compiler output produced by configure, useful for debugging
8019 # configure, is in config.log if it exists.
8020
8021 debug=false
8022 ac_cs_recheck=false
8023 ac_cs_silent=false
8024
8025 SHELL=\${CONFIG_SHELL-$SHELL}
8026 export SHELL
8027 _ASEOF
8028 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8029 ## -------------------- ##
8030 ## M4sh Initialization. ##
8031 ## -------------------- ##
8032
8033 # Be more Bourne compatible
8034 DUALCASE=1; export DUALCASE # for MKS sh
8035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8036 emulate sh
8037 NULLCMD=:
8038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8039 # is contrary to our usage. Disable this feature.
8040 alias -g '${1+"$@"}'='"$@"'
8041 setopt NO_GLOB_SUBST
8042 else
8043 case `(set -o) 2>/dev/null` in #(
8044 *posix*) :
8045 set -o posix ;; #(
8046 *) :
8047 ;;
8048 esac
8049 fi
8050
8051
8052 as_nl='
8053 '
8054 export as_nl
8055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8056 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8059 # Prefer a ksh shell builtin over an external printf program on Solaris,
8060 # but without wasting forks for bash or zsh.
8061 if test -z "$BASH_VERSION$ZSH_VERSION" \
8062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8063 as_echo='print -r --'
8064 as_echo_n='print -rn --'
8065 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8066 as_echo='printf %s\n'
8067 as_echo_n='printf %s'
8068 else
8069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8071 as_echo_n='/usr/ucb/echo -n'
8072 else
8073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8074 as_echo_n_body='eval
8075 arg=$1;
8076 case $arg in #(
8077 *"$as_nl"*)
8078 expr "X$arg" : "X\\(.*\\)$as_nl";
8079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8080 esac;
8081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8082 '
8083 export as_echo_n_body
8084 as_echo_n='sh -c $as_echo_n_body as_echo'
8085 fi
8086 export as_echo_body
8087 as_echo='sh -c $as_echo_body as_echo'
8088 fi
8089
8090 # The user is always right.
8091 if test "${PATH_SEPARATOR+set}" != set; then
8092 PATH_SEPARATOR=:
8093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8095 PATH_SEPARATOR=';'
8096 }
8097 fi
8098
8099
8100 # IFS
8101 # We need space, tab and new line, in precisely that order. Quoting is
8102 # there to prevent editors from complaining about space-tab.
8103 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8104 # splitting by setting IFS to empty value.)
8105 IFS=" "" $as_nl"
8106
8107 # Find who we are. Look in the path if we contain no directory separator.
8108 case $0 in #((
8109 *[\\/]* ) as_myself=$0 ;;
8110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8116 done
8117 IFS=$as_save_IFS
8118
8119 ;;
8120 esac
8121 # We did not find ourselves, most probably we were run as `sh COMMAND'
8122 # in which case we are not to be found in the path.
8123 if test "x$as_myself" = x; then
8124 as_myself=$0
8125 fi
8126 if test ! -f "$as_myself"; then
8127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8128 exit 1
8129 fi
8130
8131 # Unset variables that we do not need and which cause bugs (e.g. in
8132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8133 # suppresses any "Segmentation fault" message there. '((' could
8134 # trigger a bug in pdksh 5.2.14.
8135 for as_var in BASH_ENV ENV MAIL MAILPATH
8136 do eval test x\${$as_var+set} = xset \
8137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8138 done
8139 PS1='$ '
8140 PS2='> '
8141 PS4='+ '
8142
8143 # NLS nuisances.
8144 LC_ALL=C
8145 export LC_ALL
8146 LANGUAGE=C
8147 export LANGUAGE
8148
8149 # CDPATH.
8150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8151
8152
8153 # as_fn_error ERROR [LINENO LOG_FD]
8154 # ---------------------------------
8155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8157 # script with status $?, using 1 if that was 0.
8158 as_fn_error ()
8159 {
8160 as_status=$?; test $as_status -eq 0 && as_status=1
8161 if test "$3"; then
8162 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8164 fi
8165 $as_echo "$as_me: error: $1" >&2
8166 as_fn_exit $as_status
8167 } # as_fn_error
8168
8169
8170 # as_fn_set_status STATUS
8171 # -----------------------
8172 # Set $? to STATUS, without forking.
8173 as_fn_set_status ()
8174 {
8175 return $1
8176 } # as_fn_set_status
8177
8178 # as_fn_exit STATUS
8179 # -----------------
8180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8181 as_fn_exit ()
8182 {
8183 set +e
8184 as_fn_set_status $1
8185 exit $1
8186 } # as_fn_exit
8187
8188 # as_fn_unset VAR
8189 # ---------------
8190 # Portably unset VAR.
8191 as_fn_unset ()
8192 {
8193 { eval $1=; unset $1;}
8194 }
8195 as_unset=as_fn_unset
8196 # as_fn_append VAR VALUE
8197 # ----------------------
8198 # Append the text in VALUE to the end of the definition contained in VAR. Take
8199 # advantage of any shell optimizations that allow amortized linear growth over
8200 # repeated appends, instead of the typical quadratic growth present in naive
8201 # implementations.
8202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8203 eval 'as_fn_append ()
8204 {
8205 eval $1+=\$2
8206 }'
8207 else
8208 as_fn_append ()
8209 {
8210 eval $1=\$$1\$2
8211 }
8212 fi # as_fn_append
8213
8214 # as_fn_arith ARG...
8215 # ------------------
8216 # Perform arithmetic evaluation on the ARGs, and store the result in the
8217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8218 # must be portable across $(()) and expr.
8219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8220 eval 'as_fn_arith ()
8221 {
8222 as_val=$(( $* ))
8223 }'
8224 else
8225 as_fn_arith ()
8226 {
8227 as_val=`expr "$@" || test $? -eq 1`
8228 }
8229 fi # as_fn_arith
8230
8231
8232 if expr a : '\(a\)' >/dev/null 2>&1 &&
8233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8234 as_expr=expr
8235 else
8236 as_expr=false
8237 fi
8238
8239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8240 as_basename=basename
8241 else
8242 as_basename=false
8243 fi
8244
8245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8246 as_dirname=dirname
8247 else
8248 as_dirname=false
8249 fi
8250
8251 as_me=`$as_basename -- "$0" ||
8252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8253 X"$0" : 'X\(//\)$' \| \
8254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8255 $as_echo X/"$0" |
8256 sed '/^.*\/\([^/][^/]*\)\/*$/{
8257 s//\1/
8258 q
8259 }
8260 /^X\/\(\/\/\)$/{
8261 s//\1/
8262 q
8263 }
8264 /^X\/\(\/\).*/{
8265 s//\1/
8266 q
8267 }
8268 s/.*/./; q'`
8269
8270 # Avoid depending upon Character Ranges.
8271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8274 as_cr_digits='0123456789'
8275 as_cr_alnum=$as_cr_Letters$as_cr_digits
8276
8277 ECHO_C= ECHO_N= ECHO_T=
8278 case `echo -n x` in #(((((
8279 -n*)
8280 case `echo 'xy\c'` in
8281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8282 xy) ECHO_C='\c';;
8283 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8284 ECHO_T=' ';;
8285 esac;;
8286 *)
8287 ECHO_N='-n';;
8288 esac
8289
8290 rm -f conf$$ conf$$.exe conf$$.file
8291 if test -d conf$$.dir; then
8292 rm -f conf$$.dir/conf$$.file
8293 else
8294 rm -f conf$$.dir
8295 mkdir conf$$.dir 2>/dev/null
8296 fi
8297 if (echo >conf$$.file) 2>/dev/null; then
8298 if ln -s conf$$.file conf$$ 2>/dev/null; then
8299 as_ln_s='ln -s'
8300 # ... but there are two gotchas:
8301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8303 # In both cases, we have to default to `cp -p'.
8304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8305 as_ln_s='cp -p'
8306 elif ln conf$$.file conf$$ 2>/dev/null; then
8307 as_ln_s=ln
8308 else
8309 as_ln_s='cp -p'
8310 fi
8311 else
8312 as_ln_s='cp -p'
8313 fi
8314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8315 rmdir conf$$.dir 2>/dev/null
8316
8317
8318 # as_fn_mkdir_p
8319 # -------------
8320 # Create "$as_dir" as a directory, including parents if necessary.
8321 as_fn_mkdir_p ()
8322 {
8323
8324 case $as_dir in #(
8325 -*) as_dir=./$as_dir;;
8326 esac
8327 test -d "$as_dir" || eval $as_mkdir_p || {
8328 as_dirs=
8329 while :; do
8330 case $as_dir in #(
8331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8332 *) as_qdir=$as_dir;;
8333 esac
8334 as_dirs="'$as_qdir' $as_dirs"
8335 as_dir=`$as_dirname -- "$as_dir" ||
8336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8337 X"$as_dir" : 'X\(//\)[^/]' \| \
8338 X"$as_dir" : 'X\(//\)$' \| \
8339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8340 $as_echo X"$as_dir" |
8341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8342 s//\1/
8343 q
8344 }
8345 /^X\(\/\/\)[^/].*/{
8346 s//\1/
8347 q
8348 }
8349 /^X\(\/\/\)$/{
8350 s//\1/
8351 q
8352 }
8353 /^X\(\/\).*/{
8354 s//\1/
8355 q
8356 }
8357 s/.*/./; q'`
8358 test -d "$as_dir" && break
8359 done
8360 test -z "$as_dirs" || eval "mkdir $as_dirs"
8361 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8362
8363
8364 } # as_fn_mkdir_p
8365 if mkdir -p . 2>/dev/null; then
8366 as_mkdir_p='mkdir -p "$as_dir"'
8367 else
8368 test -d ./-p && rmdir ./-p
8369 as_mkdir_p=false
8370 fi
8371
8372 if test -x / >/dev/null 2>&1; then
8373 as_test_x='test -x'
8374 else
8375 if ls -dL / >/dev/null 2>&1; then
8376 as_ls_L_option=L
8377 else
8378 as_ls_L_option=
8379 fi
8380 as_test_x='
8381 eval sh -c '\''
8382 if test -d "$1"; then
8383 test -d "$1/.";
8384 else
8385 case $1 in #(
8386 -*)set "./$1";;
8387 esac;
8388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8389 ???[sx]*):;;*)false;;esac;fi
8390 '\'' sh
8391 '
8392 fi
8393 as_executable_p=$as_test_x
8394
8395 # Sed expression to map a string onto a valid CPP name.
8396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8397
8398 # Sed expression to map a string onto a valid variable name.
8399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8400
8401
8402 exec 6>&1
8403 ## ----------------------------------- ##
8404 ## Main body of $CONFIG_STATUS script. ##
8405 ## ----------------------------------- ##
8406 _ASEOF
8407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8408
8409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8410 # Save the log message, to keep $0 and so on meaningful, and to
8411 # report actual input values of CONFIG_FILES etc. instead of their
8412 # values after options handling.
8413 ac_log="
8414 This file was extended by xinit $as_me 1.2.1, which was
8415 generated by GNU Autoconf 2.65. Invocation command line was
8416
8417 CONFIG_FILES = $CONFIG_FILES
8418 CONFIG_HEADERS = $CONFIG_HEADERS
8419 CONFIG_LINKS = $CONFIG_LINKS
8420 CONFIG_COMMANDS = $CONFIG_COMMANDS
8421 $ $0 $@
8422
8423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8424 "
8425
8426 _ACEOF
8427
8428 case $ac_config_files in *"
8429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8430 esac
8431
8432 case $ac_config_headers in *"
8433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8434 esac
8435
8436
8437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8438 # Files that config.status was made for.
8439 config_files="$ac_config_files"
8440 config_headers="$ac_config_headers"
8441 config_commands="$ac_config_commands"
8442
8443 _ACEOF
8444
8445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8446 ac_cs_usage="\
8447 \`$as_me' instantiates files and other configuration actions
8448 from templates according to the current configuration. Unless the files
8449 and actions are specified as TAGs, all are instantiated by default.
8450
8451 Usage: $0 [OPTION]... [TAG]...
8452
8453 -h, --help print this help, then exit
8454 -V, --version print version number and configuration settings, then exit
8455 --config print configuration, then exit
8456 -q, --quiet, --silent
8457 do not print progress messages
8458 -d, --debug don't remove temporary files
8459 --recheck update $as_me by reconfiguring in the same conditions
8460 --file=FILE[:TEMPLATE]
8461 instantiate the configuration file FILE
8462 --header=FILE[:TEMPLATE]
8463 instantiate the configuration header FILE
8464
8465 Configuration files:
8466 $config_files
8467
8468 Configuration headers:
8469 $config_headers
8470
8471 Configuration commands:
8472 $config_commands
8473
8474 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
8475
8476 _ACEOF
8477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8479 ac_cs_version="\\
8480 xinit config.status 1.2.1
8481 configured by $0, generated by GNU Autoconf 2.65,
8482 with options \\"\$ac_cs_config\\"
8483
8484 Copyright (C) 2009 Free Software Foundation, Inc.
8485 This config.status script is free software; the Free Software Foundation
8486 gives unlimited permission to copy, distribute and modify it."
8487
8488 ac_pwd='$ac_pwd'
8489 srcdir='$srcdir'
8490 INSTALL='$INSTALL'
8491 MKDIR_P='$MKDIR_P'
8492 AWK='$AWK'
8493 test -n "\$AWK" || AWK=awk
8494 _ACEOF
8495
8496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8497 # The default lists apply if the user does not specify any file.
8498 ac_need_defaults=:
8499 while test $# != 0
8500 do
8501 case $1 in
8502 --*=*)
8503 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8504 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8505 ac_shift=:
8506 ;;
8507 *)
8508 ac_option=$1
8509 ac_optarg=$2
8510 ac_shift=shift
8511 ;;
8512 esac
8513
8514 case $ac_option in
8515 # Handling of the options.
8516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8517 ac_cs_recheck=: ;;
8518 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8519 $as_echo "$ac_cs_version"; exit ;;
8520 --config | --confi | --conf | --con | --co | --c )
8521 $as_echo "$ac_cs_config"; exit ;;
8522 --debug | --debu | --deb | --de | --d | -d )
8523 debug=: ;;
8524 --file | --fil | --fi | --f )
8525 $ac_shift
8526 case $ac_optarg in
8527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8528 esac
8529 as_fn_append CONFIG_FILES " '$ac_optarg'"
8530 ac_need_defaults=false;;
8531 --header | --heade | --head | --hea )
8532 $ac_shift
8533 case $ac_optarg in
8534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8535 esac
8536 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8537 ac_need_defaults=false;;
8538 --he | --h)
8539 # Conflict between --help and --header
8540 as_fn_error "ambiguous option: \`$1'
8541 Try \`$0 --help' for more information.";;
8542 --help | --hel | -h )
8543 $as_echo "$ac_cs_usage"; exit ;;
8544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8546 ac_cs_silent=: ;;
8547
8548 # This is an error.
8549 -*) as_fn_error "unrecognized option: \`$1'
8550 Try \`$0 --help' for more information." ;;
8551
8552 *) as_fn_append ac_config_targets " $1"
8553 ac_need_defaults=false ;;
8554
8555 esac
8556 shift
8557 done
8558
8559 ac_configure_extra_args=
8560
8561 if $ac_cs_silent; then
8562 exec 6>/dev/null
8563 ac_configure_extra_args="$ac_configure_extra_args --silent"
8564 fi
8565
8566 _ACEOF
8567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8568 if \$ac_cs_recheck; then
8569 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8570 shift
8571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8572 CONFIG_SHELL='$SHELL'
8573 export CONFIG_SHELL
8574 exec "\$@"
8575 fi
8576
8577 _ACEOF
8578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8579 exec 5>>config.log
8580 {
8581 echo
8582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8583 ## Running $as_me. ##
8584 _ASBOX
8585 $as_echo "$ac_log"
8586 } >&5
8587
8588 _ACEOF
8589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8590 #
8591 # INIT-COMMANDS
8592 #
8593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8594
8595 _ACEOF
8596
8597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8598
8599 # Handling of arguments.
8600 for ac_config_target in $ac_config_targets
8601 do
8602 case $ac_config_target in
8603 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8604 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8605 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8606 "privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES privileged_startx/Makefile" ;;
8607
8608 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8609 esac
8610 done
8611
8612
8613 # If the user did not use the arguments to specify the items to instantiate,
8614 # then the envvar interface is used. Set only those that are not.
8615 # We use the long form for the default assignment because of an extremely
8616 # bizarre bug on SunOS 4.1.3.
8617 if $ac_need_defaults; then
8618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8621 fi
8622
8623 # Have a temporary directory for convenience. Make it in the build tree
8624 # simply because there is no reason against having it here, and in addition,
8625 # creating and moving files from /tmp can sometimes cause problems.
8626 # Hook for its removal unless debugging.
8627 # Note that there is a small window in which the directory will not be cleaned:
8628 # after its creation but before its name has been assigned to `$tmp'.
8629 $debug ||
8630 {
8631 tmp=
8632 trap 'exit_status=$?
8633 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8634 ' 0
8635 trap 'as_fn_exit 1' 1 2 13 15
8636 }
8637 # Create a (secure) tmp directory for tmp files.
8638
8639 {
8640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8641 test -n "$tmp" && test -d "$tmp"
8642 } ||
8643 {
8644 tmp=./conf$$-$RANDOM
8645 (umask 077 && mkdir "$tmp")
8646 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8647
8648 # Set up the scripts for CONFIG_FILES section.
8649 # No need to generate them if there are no CONFIG_FILES.
8650 # This happens for instance with `./config.status config.h'.
8651 if test -n "$CONFIG_FILES"; then
8652
8653
8654 ac_cr=`echo X | tr X '\015'`
8655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8656 # But we know of no other shell where ac_cr would be empty at this
8657 # point, so we can use a bashism as a fallback.
8658 if test "x$ac_cr" = x; then
8659 eval ac_cr=\$\'\\r\'
8660 fi
8661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8663 ac_cs_awk_cr='\r'
8664 else
8665 ac_cs_awk_cr=$ac_cr
8666 fi
8667
8668 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8669 _ACEOF
8670
8671
8672 {
8673 echo "cat >conf$$subs.awk <<_ACEOF" &&
8674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8675 echo "_ACEOF"
8676 } >conf$$subs.sh ||
8677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8679 ac_delim='%!_!# '
8680 for ac_last_try in false false false false false :; do
8681 . ./conf$$subs.sh ||
8682 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8683
8684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8685 if test $ac_delim_n = $ac_delim_num; then
8686 break
8687 elif $ac_last_try; then
8688 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8689 else
8690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8691 fi
8692 done
8693 rm -f conf$$subs.sh
8694
8695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8696 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8697 _ACEOF
8698 sed -n '
8699 h
8700 s/^/S["/; s/!.*/"]=/
8701 p
8702 g
8703 s/^[^!]*!//
8704 :repl
8705 t repl
8706 s/'"$ac_delim"'$//
8707 t delim
8708 :nl
8709 h
8710 s/\(.\{148\}\)..*/\1/
8711 t more1
8712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8713 p
8714 n
8715 b repl
8716 :more1
8717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8718 p
8719 g
8720 s/.\{148\}//
8721 t nl
8722 :delim
8723 h
8724 s/\(.\{148\}\)..*/\1/
8725 t more2
8726 s/["\\]/\\&/g; s/^/"/; s/$/"/
8727 p
8728 b
8729 :more2
8730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8731 p
8732 g
8733 s/.\{148\}//
8734 t delim
8735 ' <conf$$subs.awk | sed '
8736 /^[^""]/{
8737 N
8738 s/\n//
8739 }
8740 ' >>$CONFIG_STATUS || ac_write_fail=1
8741 rm -f conf$$subs.awk
8742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8743 _ACAWK
8744 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8745 for (key in S) S_is_set[key] = 1
8746 FS = ""
8747
8748 }
8749 {
8750 line = $ 0
8751 nfields = split(line, field, "@")
8752 substed = 0
8753 len = length(field[1])
8754 for (i = 2; i < nfields; i++) {
8755 key = field[i]
8756 keylen = length(key)
8757 if (S_is_set[key]) {
8758 value = S[key]
8759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8760 len += length(value) + length(field[++i])
8761 substed = 1
8762 } else
8763 len += 1 + keylen
8764 }
8765
8766 print line
8767 }
8768
8769 _ACAWK
8770 _ACEOF
8771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8774 else
8775 cat
8776 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8777 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8778 _ACEOF
8779
8780 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8781 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8782 # trailing colons and then remove the whole line if VPATH becomes empty
8783 # (actually we leave an empty line to preserve line numbers).
8784 if test "x$srcdir" = x.; then
8785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8786 s/:*\$(srcdir):*/:/
8787 s/:*\${srcdir}:*/:/
8788 s/:*@srcdir@:*/:/
8789 s/^\([^=]*=[ ]*\):*/\1/
8790 s/:*$//
8791 s/^[^=]*=[ ]*$//
8792 }'
8793 fi
8794
8795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8796 fi # test -n "$CONFIG_FILES"
8797
8798 # Set up the scripts for CONFIG_HEADERS section.
8799 # No need to generate them if there are no CONFIG_HEADERS.
8800 # This happens for instance with `./config.status Makefile'.
8801 if test -n "$CONFIG_HEADERS"; then
8802 cat >"$tmp/defines.awk" <<\_ACAWK ||
8803 BEGIN {
8804 _ACEOF
8805
8806 # Transform confdefs.h into an awk script `defines.awk', embedded as
8807 # here-document in config.status, that substitutes the proper values into
8808 # config.h.in to produce config.h.
8809
8810 # Create a delimiter string that does not exist in confdefs.h, to ease
8811 # handling of long lines.
8812 ac_delim='%!_!# '
8813 for ac_last_try in false false :; do
8814 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8815 if test -z "$ac_t"; then
8816 break
8817 elif $ac_last_try; then
8818 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8819 else
8820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8821 fi
8822 done
8823
8824 # For the awk script, D is an array of macro values keyed by name,
8825 # likewise P contains macro parameters if any. Preserve backslash
8826 # newline sequences.
8827
8828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8829 sed -n '
8830 s/.\{148\}/&'"$ac_delim"'/g
8831 t rset
8832 :rset
8833 s/^[ ]*#[ ]*define[ ][ ]*/ /
8834 t def
8835 d
8836 :def
8837 s/\\$//
8838 t bsnl
8839 s/["\\]/\\&/g
8840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8841 D["\1"]=" \3"/p
8842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8843 d
8844 :bsnl
8845 s/["\\]/\\&/g
8846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8847 D["\1"]=" \3\\\\\\n"\\/p
8848 t cont
8849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8850 t cont
8851 d
8852 :cont
8853 n
8854 s/.\{148\}/&'"$ac_delim"'/g
8855 t clear
8856 :clear
8857 s/\\$//
8858 t bsnlc
8859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8860 d
8861 :bsnlc
8862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8863 b cont
8864 ' <confdefs.h | sed '
8865 s/'"$ac_delim"'/"\\\
8866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8867
8868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8869 for (key in D) D_is_set[key] = 1
8870 FS = ""
8871 }
8872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8873 line = \$ 0
8874 split(line, arg, " ")
8875 if (arg[1] == "#") {
8876 defundef = arg[2]
8877 mac1 = arg[3]
8878 } else {
8879 defundef = substr(arg[1], 2)
8880 mac1 = arg[2]
8881 }
8882 split(mac1, mac2, "(") #)
8883 macro = mac2[1]
8884 prefix = substr(line, 1, index(line, defundef) - 1)
8885 if (D_is_set[macro]) {
8886 # Preserve the white space surrounding the "#".
8887 print prefix "define", macro P[macro] D[macro]
8888 next
8889 } else {
8890 # Replace #undef with comments. This is necessary, for example,
8891 # in the case of _POSIX_SOURCE, which is predefined and required
8892 # on some systems where configure will not decide to define it.
8893 if (defundef == "undef") {
8894 print "/*", prefix defundef, macro, "*/"
8895 next
8896 }
8897 }
8898 }
8899 { print }
8900 _ACAWK
8901 _ACEOF
8902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8903 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8904 fi # test -n "$CONFIG_HEADERS"
8905
8906
8907 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8908 shift
8909 for ac_tag
8910 do
8911 case $ac_tag in
8912 :[FHLC]) ac_mode=$ac_tag; continue;;
8913 esac
8914 case $ac_mode$ac_tag in
8915 :[FHL]*:*);;
8916 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8917 :[FH]-) ac_tag=-:-;;
8918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8919 esac
8920 ac_save_IFS=$IFS
8921 IFS=:
8922 set x $ac_tag
8923 IFS=$ac_save_IFS
8924 shift
8925 ac_file=$1
8926 shift
8927
8928 case $ac_mode in
8929 :L) ac_source=$1;;
8930 :[FH])
8931 ac_file_inputs=
8932 for ac_f
8933 do
8934 case $ac_f in
8935 -) ac_f="$tmp/stdin";;
8936 *) # Look for the file first in the build tree, then in the source tree
8937 # (if the path is not absolute). The absolute path cannot be DOS-style,
8938 # because $ac_f cannot contain `:'.
8939 test -f "$ac_f" ||
8940 case $ac_f in
8941 [\\/$]*) false;;
8942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8943 esac ||
8944 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8945 esac
8946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8947 as_fn_append ac_file_inputs " '$ac_f'"
8948 done
8949
8950 # Let's still pretend it is `configure' which instantiates (i.e., don't
8951 # use $as_me), people would be surprised to read:
8952 # /* config.h. Generated by config.status. */
8953 configure_input='Generated from '`
8954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8955 `' by configure.'
8956 if test x"$ac_file" != x-; then
8957 configure_input="$ac_file. $configure_input"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8959 $as_echo "$as_me: creating $ac_file" >&6;}
8960 fi
8961 # Neutralize special characters interpreted by sed in replacement strings.
8962 case $configure_input in #(
8963 *\&* | *\|* | *\\* )
8964 ac_sed_conf_input=`$as_echo "$configure_input" |
8965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8966 *) ac_sed_conf_input=$configure_input;;
8967 esac
8968
8969 case $ac_tag in
8970 *:-:* | *:-) cat >"$tmp/stdin" \
8971 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8972 esac
8973 ;;
8974 esac
8975
8976 ac_dir=`$as_dirname -- "$ac_file" ||
8977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8978 X"$ac_file" : 'X\(//\)[^/]' \| \
8979 X"$ac_file" : 'X\(//\)$' \| \
8980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8981 $as_echo X"$ac_file" |
8982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8983 s//\1/
8984 q
8985 }
8986 /^X\(\/\/\)[^/].*/{
8987 s//\1/
8988 q
8989 }
8990 /^X\(\/\/\)$/{
8991 s//\1/
8992 q
8993 }
8994 /^X\(\/\).*/{
8995 s//\1/
8996 q
8997 }
8998 s/.*/./; q'`
8999 as_dir="$ac_dir"; as_fn_mkdir_p
9000 ac_builddir=.
9001
9002 case "$ac_dir" in
9003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9004 *)
9005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9006 # A ".." for each directory in $ac_dir_suffix.
9007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9008 case $ac_top_builddir_sub in
9009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9011 esac ;;
9012 esac
9013 ac_abs_top_builddir=$ac_pwd
9014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9015 # for backward compatibility:
9016 ac_top_builddir=$ac_top_build_prefix
9017
9018 case $srcdir in
9019 .) # We are building in place.
9020 ac_srcdir=.
9021 ac_top_srcdir=$ac_top_builddir_sub
9022 ac_abs_top_srcdir=$ac_pwd ;;
9023 [\\/]* | ?:[\\/]* ) # Absolute name.
9024 ac_srcdir=$srcdir$ac_dir_suffix;
9025 ac_top_srcdir=$srcdir
9026 ac_abs_top_srcdir=$srcdir ;;
9027 *) # Relative name.
9028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9029 ac_top_srcdir=$ac_top_build_prefix$srcdir
9030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9031 esac
9032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9033
9034
9035 case $ac_mode in
9036 :F)
9037 #
9038 # CONFIG_FILE
9039 #
9040
9041 case $INSTALL in
9042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9044 esac
9045 ac_MKDIR_P=$MKDIR_P
9046 case $MKDIR_P in
9047 [\\/$]* | ?:[\\/]* ) ;;
9048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9049 esac
9050 _ACEOF
9051
9052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9053 # If the template does not know about datarootdir, expand it.
9054 # FIXME: This hack should be removed a few years after 2.60.
9055 ac_datarootdir_hack=; ac_datarootdir_seen=
9056 ac_sed_dataroot='
9057 /datarootdir/ {
9058 p
9059 q
9060 }
9061 /@datadir@/p
9062 /@docdir@/p
9063 /@infodir@/p
9064 /@localedir@/p
9065 /@mandir@/p'
9066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9067 *datarootdir*) ac_datarootdir_seen=yes;;
9068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9071 _ACEOF
9072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9073 ac_datarootdir_hack='
9074 s&@datadir@&$datadir&g
9075 s&@docdir@&$docdir&g
9076 s&@infodir@&$infodir&g
9077 s&@localedir@&$localedir&g
9078 s&@mandir@&$mandir&g
9079 s&\\\${datarootdir}&$datarootdir&g' ;;
9080 esac
9081 _ACEOF
9082
9083 # Neutralize VPATH when `$srcdir' = `.'.
9084 # Shell code in configure.ac might set extrasub.
9085 # FIXME: do we really want to maintain this feature?
9086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9087 ac_sed_extra="$ac_vpsub
9088 $extrasub
9089 _ACEOF
9090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9091 :t
9092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9093 s|@configure_input@|$ac_sed_conf_input|;t t
9094 s&@top_builddir@&$ac_top_builddir_sub&;t t
9095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9096 s&@srcdir@&$ac_srcdir&;t t
9097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9098 s&@top_srcdir@&$ac_top_srcdir&;t t
9099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9100 s&@builddir@&$ac_builddir&;t t
9101 s&@abs_builddir@&$ac_abs_builddir&;t t
9102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9103 s&@INSTALL@&$ac_INSTALL&;t t
9104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9105 $ac_datarootdir_hack
9106 "
9107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9108 || as_fn_error "could not create $ac_file" "$LINENO" 5
9109
9110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9111 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9114 which seems to be undefined. Please make sure it is defined." >&5
9115 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9116 which seems to be undefined. Please make sure it is defined." >&2;}
9117
9118 rm -f "$tmp/stdin"
9119 case $ac_file in
9120 -) cat "$tmp/out" && rm -f "$tmp/out";;
9121 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9122 esac \
9123 || as_fn_error "could not create $ac_file" "$LINENO" 5
9124 ;;
9125 :H)
9126 #
9127 # CONFIG_HEADER
9128 #
9129 if test x"$ac_file" != x-; then
9130 {
9131 $as_echo "/* $configure_input */" \
9132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9133 } >"$tmp/config.h" \
9134 || as_fn_error "could not create $ac_file" "$LINENO" 5
9135 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9137 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9138 else
9139 rm -f "$ac_file"
9140 mv "$tmp/config.h" "$ac_file" \
9141 || as_fn_error "could not create $ac_file" "$LINENO" 5
9142 fi
9143 else
9144 $as_echo "/* $configure_input */" \
9145 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9146 || as_fn_error "could not create -" "$LINENO" 5
9147 fi
9148 # Compute "$ac_file"'s index in $config_headers.
9149 _am_arg="$ac_file"
9150 _am_stamp_count=1
9151 for _am_header in $config_headers :; do
9152 case $_am_header in
9153 $_am_arg | $_am_arg:* )
9154 break ;;
9155 * )
9156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9157 esac
9158 done
9159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9161 X"$_am_arg" : 'X\(//\)[^/]' \| \
9162 X"$_am_arg" : 'X\(//\)$' \| \
9163 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9164 $as_echo X"$_am_arg" |
9165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9166 s//\1/
9167 q
9168 }
9169 /^X\(\/\/\)[^/].*/{
9170 s//\1/
9171 q
9172 }
9173 /^X\(\/\/\)$/{
9174 s//\1/
9175 q
9176 }
9177 /^X\(\/\).*/{
9178 s//\1/
9179 q
9180 }
9181 s/.*/./; q'`/stamp-h$_am_stamp_count
9182 ;;
9183
9184 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9185 $as_echo "$as_me: executing $ac_file commands" >&6;}
9186 ;;
9187 esac
9188
9189
9190 case $ac_file$ac_mode in
9191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9192 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9193 # are listed without --file. Let's play safe and only enable the eval
9194 # if we detect the quoting.
9195 case $CONFIG_FILES in
9196 *\'*) eval set x "$CONFIG_FILES" ;;
9197 *) set x $CONFIG_FILES ;;
9198 esac
9199 shift
9200 for mf
9201 do
9202 # Strip MF so we end up with the name of the file.
9203 mf=`echo "$mf" | sed -e 's/:.*$//'`
9204 # Check whether this is an Automake generated Makefile or not.
9205 # We used to match only the files named `Makefile.in', but
9206 # some people rename them; so instead we look at the file content.
9207 # Grep'ing the first line is not enough: some people post-process
9208 # each Makefile.in and add a new line on top of each file to say so.
9209 # Grep'ing the whole file is not good either: AIX grep has a line
9210 # limit of 2048, but all sed's we know have understand at least 4000.
9211 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9212 dirpart=`$as_dirname -- "$mf" ||
9213 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9214 X"$mf" : 'X\(//\)[^/]' \| \
9215 X"$mf" : 'X\(//\)$' \| \
9216 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9217 $as_echo X"$mf" |
9218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9219 s//\1/
9220 q
9221 }
9222 /^X\(\/\/\)[^/].*/{
9223 s//\1/
9224 q
9225 }
9226 /^X\(\/\/\)$/{
9227 s//\1/
9228 q
9229 }
9230 /^X\(\/\).*/{
9231 s//\1/
9232 q
9233 }
9234 s/.*/./; q'`
9235 else
9236 continue
9237 fi
9238 # Extract the definition of DEPDIR, am__include, and am__quote
9239 # from the Makefile without running `make'.
9240 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9241 test -z "$DEPDIR" && continue
9242 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9243 test -z "am__include" && continue
9244 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9245 # When using ansi2knr, U may be empty or an underscore; expand it
9246 U=`sed -n 's/^U = //p' < "$mf"`
9247 # Find all dependency output files, they are included files with
9248 # $(DEPDIR) in their names. We invoke sed twice because it is the
9249 # simplest approach to changing $(DEPDIR) to its actual value in the
9250 # expansion.
9251 for file in `sed -n "
9252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9254 # Make sure the directory exists.
9255 test -f "$dirpart/$file" && continue
9256 fdir=`$as_dirname -- "$file" ||
9257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9258 X"$file" : 'X\(//\)[^/]' \| \
9259 X"$file" : 'X\(//\)$' \| \
9260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9261 $as_echo X"$file" |
9262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9263 s//\1/
9264 q
9265 }
9266 /^X\(\/\/\)[^/].*/{
9267 s//\1/
9268 q
9269 }
9270 /^X\(\/\/\)$/{
9271 s//\1/
9272 q
9273 }
9274 /^X\(\/\).*/{
9275 s//\1/
9276 q
9277 }
9278 s/.*/./; q'`
9279 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9280 # echo "creating $dirpart/$file"
9281 echo '# dummy' > "$dirpart/$file"
9282 done
9283 done
9284 }
9285 ;;
9286
9287 esac
9288 done # for ac_tag
9289
9290
9291 as_fn_exit 0
9292 _ACEOF
9293 ac_clean_files=$ac_clean_files_save
9294
9295 test $ac_write_fail = 0 ||
9296 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9297
9298
9299 # configure is writing to config.log, and then calls config.status.
9300 # config.status does its own redirection, appending to config.log.
9301 # Unfortunately, on DOS this fails, as config.log is still kept open
9302 # by configure, so config.status won't be able to write to it; its
9303 # output is simply discarded. So we exec the FD to /dev/null,
9304 # effectively closing config.log, so it can be properly (re)opened and
9305 # appended to by config.status. When coming back to configure, we
9306 # need to make the FD available again.
9307 if test "$no_create" != yes; then
9308 ac_cs_success=:
9309 ac_config_status_args=
9310 test "$silent" = yes &&
9311 ac_config_status_args="$ac_config_status_args --quiet"
9312 exec 5>/dev/null
9313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9314 exec 5>>config.log
9315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9316 # would make configure fail if this is the last instruction.
9317 $ac_cs_success || as_fn_exit $?
9318 fi
9319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9321 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9322 fi
9323
9324