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