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