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