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