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