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