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