Adding upstream version 0.1+svn20080716.
[debian/lxrandr.git] / configure
CommitLineData
e96a0ec2
DB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="configure.in"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656am__isrc
657CYGPATH_W
658PACKAGE
659VERSION
660ACLOCAL
661AUTOCONF
662AUTOMAKE
663AUTOHEADER
664MAKEINFO
665install_sh
666STRIP
667INSTALL_STRIP_PROGRAM
668mkdir_p
669AWK
670SET_MAKE
671am__leading_dot
672AMTAR
673am__tar
674am__untar
675MAINTAINER_MODE_TRUE
676MAINTAINER_MODE_FALSE
677MAINT
678CC
679CFLAGS
680LDFLAGS
681CPPFLAGS
682ac_ct_CC
683EXEEXT
684OBJEXT
685DEPDIR
686am__include
687am__quote
688AMDEP_TRUE
689AMDEP_FALSE
690AMDEPBACKSLASH
691CCDEPMODE
692am__fastdepCC_TRUE
693am__fastdepCC_FALSE
694CPP
695GREP
696EGREP
697PKG_CONFIG
698GTK_CFLAGS
699GTK_LIBS
700GETTEXT_PACKAGE
701USE_NLS
702MSGFMT
703MSGFMT_OPTS
704GMSGFMT
705XGETTEXT
706CATALOGS
707CATOBJEXT
708DATADIRNAME
709GMOFILES
710INSTOBJEXT
711INTLLIBS
712PO_IN_DATADIR_TRUE
713PO_IN_DATADIR_FALSE
714POFILES
715POSUB
716MKINSTALLDIRS
717LIBOBJS
718LTLIBOBJS'
719ac_subst_files=''
720 ac_precious_vars='build_alias
721host_alias
722target_alias
723CC
724CFLAGS
725LDFLAGS
726LIBS
727CPPFLAGS
728CPP
729PKG_CONFIG
730GTK_CFLAGS
731GTK_LIBS'
732
733
734# Initialize some variables set by options.
735ac_init_help=
736ac_init_version=false
737# The variables have the same names as the options, with
738# dashes changed to underlines.
739cache_file=/dev/null
740exec_prefix=NONE
741no_create=
742no_recursion=
743prefix=NONE
744program_prefix=NONE
745program_suffix=NONE
746program_transform_name=s,x,x,
747silent=
748site=
749srcdir=
750verbose=
751x_includes=NONE
752x_libraries=NONE
753
754# Installation directory options.
755# These are left unexpanded so users can "make install exec_prefix=/foo"
756# and all the variables that are supposed to be based on exec_prefix
757# by default will actually change.
758# Use braces instead of parens because sh, perl, etc. also accept them.
759# (The list follows the same order as the GNU Coding Standards.)
760bindir='${exec_prefix}/bin'
761sbindir='${exec_prefix}/sbin'
762libexecdir='${exec_prefix}/libexec'
763datarootdir='${prefix}/share'
764datadir='${datarootdir}'
765sysconfdir='${prefix}/etc'
766sharedstatedir='${prefix}/com'
767localstatedir='${prefix}/var'
768includedir='${prefix}/include'
769oldincludedir='/usr/include'
770docdir='${datarootdir}/doc/${PACKAGE}'
771infodir='${datarootdir}/info'
772htmldir='${docdir}'
773dvidir='${docdir}'
774pdfdir='${docdir}'
775psdir='${docdir}'
776libdir='${exec_prefix}/lib'
777localedir='${datarootdir}/locale'
778mandir='${datarootdir}/man'
779
780ac_prev=
781ac_dashdash=
782for ac_option
783do
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
789 fi
790
791 case $ac_option in
792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *) ac_optarg=yes ;;
794 esac
795
796 # Accept the important Cygnus configure options, so we can diagnose typos.
797
798 case $ac_dashdash$ac_option in
799 --)
800 ac_dashdash=yes ;;
801
802 -bindir | --bindir | --bindi | --bind | --bin | --bi)
803 ac_prev=bindir ;;
804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 bindir=$ac_optarg ;;
806
807 -build | --build | --buil | --bui | --bu)
808 ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 build_alias=$ac_optarg ;;
811
812 -cache-file | --cache-file | --cache-fil | --cache-fi \
813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814 ac_prev=cache_file ;;
815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817 cache_file=$ac_optarg ;;
818
819 --config-cache | -C)
820 cache_file=config.cache ;;
821
822 -datadir | --datadir | --datadi | --datad)
823 ac_prev=datadir ;;
824 -datadir=* | --datadir=* | --datadi=* | --datad=*)
825 datadir=$ac_optarg ;;
826
827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828 | --dataroo | --dataro | --datar)
829 ac_prev=datarootdir ;;
830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832 datarootdir=$ac_optarg ;;
833
834 -disable-* | --disable-*)
835 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839 { (exit 1); exit 1; }; }
840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
841 eval enable_$ac_feature=no ;;
842
843 -docdir | --docdir | --docdi | --doc | --do)
844 ac_prev=docdir ;;
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 docdir=$ac_optarg ;;
847
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 ac_prev=dvidir ;;
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 dvidir=$ac_optarg ;;
852
853 -enable-* | --enable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=\$ac_optarg ;;
861
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
870
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
874
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
881
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
886
887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
892
893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
899
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
904
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
909
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
916
917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
921
922 -localstatedir | --localstatedir | --localstatedi | --localstated \
923 | --localstate | --localstat | --localsta | --localst | --locals)
924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927 localstatedir=$ac_optarg ;;
928
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
933
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
937
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
941
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
945
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
954
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
959
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
966
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
973
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
990
991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
995
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1000
1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1004
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1010
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1021
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1026
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1031
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1038
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1043
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1046
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1049
1050 -with-* | --with-*)
1051 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=\$ac_optarg ;;
1058
1059 -without-* | --without-*)
1060 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=no ;;
1067
1068 --x)
1069 # Obsolete; use --with-x.
1070 with_x=yes ;;
1071
1072 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073 | --x-incl | --x-inc | --x-in | --x-i)
1074 ac_prev=x_includes ;;
1075 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077 x_includes=$ac_optarg ;;
1078
1079 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081 ac_prev=x_libraries ;;
1082 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084 x_libraries=$ac_optarg ;;
1085
1086 -*) { echo "$as_me: error: unrecognized option: $ac_option
1087Try \`$0 --help' for more information." >&2
1088 { (exit 1); exit 1; }; }
1089 ;;
1090
1091 *=*)
1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1096 { (exit 1); exit 1; }; }
1097 eval $ac_envvar=\$ac_optarg
1098 export $ac_envvar ;;
1099
1100 *)
1101 # FIXME: should be removed in autoconf 3.0.
1102 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106 ;;
1107
1108 esac
1109done
1110
1111if test -n "$ac_prev"; then
1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113 { echo "$as_me: error: missing argument to $ac_option" >&2
1114 { (exit 1); exit 1; }; }
1115fi
1116
1117# Be sure to have absolute directory names.
1118for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
1122do
1123 eval ac_val=\$$ac_var
1124 case $ac_val in
1125 [\\/$]* | ?:[\\/]* ) continue;;
1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127 esac
1128 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1129 { (exit 1); exit 1; }; }
1130done
1131
1132# There might be people who depend on the old broken behavior: `$host'
1133# used to hold the argument of --host etc.
1134# FIXME: To remove some day.
1135build=$build_alias
1136host=$host_alias
1137target=$target_alias
1138
1139# FIXME: To remove some day.
1140if test "x$host_alias" != x; then
1141 if test "x$build_alias" = x; then
1142 cross_compiling=maybe
1143 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144 If a cross compiler is detected then cross compile mode will be used." >&2
1145 elif test "x$build_alias" != "x$host_alias"; then
1146 cross_compiling=yes
1147 fi
1148fi
1149
1150ac_tool_prefix=
1151test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152
1153test "$silent" = yes && exec 6>/dev/null
1154
1155
1156ac_pwd=`pwd` && test -n "$ac_pwd" &&
1157ac_ls_di=`ls -di .` &&
1158ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1159 { echo "$as_me: error: Working directory cannot be determined" >&2
1160 { (exit 1); exit 1; }; }
1161test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162 { echo "$as_me: error: pwd does not report name of working directory" >&2
1163 { (exit 1); exit 1; }; }
1164
1165
1166# Find the source files, if location was not specified.
1167if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$0" ||
1171$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$0" : 'X\(//\)[^/]' \| \
1173 X"$0" : 'X\(//\)$' \| \
1174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1175echo X"$0" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1178 q
1179 }
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\).*/{
1189 s//\1/
1190 q
1191 }
1192 s/.*/./; q'`
1193 srcdir=$ac_confdir
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 srcdir=..
1196 fi
1197else
1198 ac_srcdir_defaulted=no
1199fi
1200if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1203 { (exit 1); exit 1; }; }
1204fi
1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1208 { (exit 1); exit 1; }; }
1209 pwd)`
1210# When building in place, set srcdir=.
1211if test "$ac_abs_confdir" = "$ac_pwd"; then
1212 srcdir=.
1213fi
1214# Remove unnecessary trailing slashes from srcdir.
1215# Double slashes in file names in object file debugging info
1216# mess up M-x gdb in Emacs.
1217case $srcdir in
1218*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219esac
1220for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225done
1226
1227#
1228# Report the --help message.
1229#
1230if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1233 cat <<_ACEOF
1234\`configure' configures this package to adapt to many kinds of systems.
1235
1236Usage: $0 [OPTION]... [VAR=VALUE]...
1237
1238To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239VAR=VALUE. See below for descriptions of some of the useful variables.
1240
1241Defaults for the options are specified in brackets.
1242
1243Configuration:
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1253
1254Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1258 [PREFIX]
1259
1260By default, \`make install' will install all the files in
1261\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263for instance \`--prefix=\$HOME'.
1264
1265For better control, use the options below.
1266
1267Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1287_ACEOF
1288
1289 cat <<\_ACEOF
1290
1291Program names:
1292 --program-prefix=PREFIX prepend PREFIX to installed program names
1293 --program-suffix=SUFFIX append SUFFIX to installed program names
1294 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299
1300 cat <<\_ACEOF
1301
1302Optional Features:
1303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1305 --enable-maintainer-mode enable make rules and dependencies not useful
1306 (and sometimes confusing) to the casual installer
1307 --disable-dependency-tracking speeds up one-time build
1308 --enable-dependency-tracking do not reject slow dependency extractors
1309
1310Some influential environment variables:
1311 CC C compiler command
1312 CFLAGS C compiler flags
1313 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1314 nonstandard directory <lib dir>
1315 LIBS libraries to pass to the linker, e.g. -l<library>
1316 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317 you have headers in a nonstandard directory <include dir>
1318 CPP C preprocessor
1319 PKG_CONFIG path to pkg-config utility
1320 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1321 GTK_LIBS linker flags for GTK, overriding pkg-config
1322
1323Use these variables to override the choices made by `configure' or to help
1324it to find libraries and programs with nonstandard names/locations.
1325
1326_ACEOF
1327ac_status=$?
1328fi
1329
1330if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" || continue
1334 ac_builddir=.
1335
1336case "$ac_dir" in
1337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338*)
1339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1340 # A ".." for each directory in $ac_dir_suffix.
1341 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1342 case $ac_top_builddir_sub in
1343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1345 esac ;;
1346esac
1347ac_abs_top_builddir=$ac_pwd
1348ac_abs_builddir=$ac_pwd$ac_dir_suffix
1349# for backward compatibility:
1350ac_top_builddir=$ac_top_build_prefix
1351
1352case $srcdir in
1353 .) # We are building in place.
1354 ac_srcdir=.
1355 ac_top_srcdir=$ac_top_builddir_sub
1356 ac_abs_top_srcdir=$ac_pwd ;;
1357 [\\/]* | ?:[\\/]* ) # Absolute name.
1358 ac_srcdir=$srcdir$ac_dir_suffix;
1359 ac_top_srcdir=$srcdir
1360 ac_abs_top_srcdir=$srcdir ;;
1361 *) # Relative name.
1362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1363 ac_top_srcdir=$ac_top_build_prefix$srcdir
1364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1365esac
1366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367
1368 cd "$ac_dir" || { ac_status=$?; continue; }
1369 # Check for guested configure.
1370 if test -f "$ac_srcdir/configure.gnu"; then
1371 echo &&
1372 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1373 elif test -f "$ac_srcdir/configure"; then
1374 echo &&
1375 $SHELL "$ac_srcdir/configure" --help=recursive
1376 else
1377 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1378 fi || ac_status=$?
1379 cd "$ac_pwd" || { ac_status=$?; break; }
1380 done
1381fi
1382
1383test -n "$ac_init_help" && exit $ac_status
1384if $ac_init_version; then
1385 cat <<\_ACEOF
1386configure
1387generated by GNU Autoconf 2.61
1388
1389Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
1394 exit
1395fi
1396cat >config.log <<_ACEOF
1397This file contains any messages produced by compilers while
1398running configure, to aid debugging if configure makes a mistake.
1399
1400It was created by $as_me, which was
1401generated by GNU Autoconf 2.61. Invocation command line was
1402
1403 $ $0 $@
1404
1405_ACEOF
1406exec 5>>config.log
1407{
1408cat <<_ASUNAME
1409## --------- ##
1410## Platform. ##
1411## --------- ##
1412
1413hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1414uname -m = `(uname -m) 2>/dev/null || echo unknown`
1415uname -r = `(uname -r) 2>/dev/null || echo unknown`
1416uname -s = `(uname -s) 2>/dev/null || echo unknown`
1417uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418
1419/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1420/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421
1422/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1423/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1424/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1425/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1426/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1427/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1428/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429
1430_ASUNAME
1431
1432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433for as_dir in $PATH
1434do
1435 IFS=$as_save_IFS
1436 test -z "$as_dir" && as_dir=.
1437 echo "PATH: $as_dir"
1438done
1439IFS=$as_save_IFS
1440
1441} >&5
1442
1443cat >&5 <<_ACEOF
1444
1445
1446## ----------- ##
1447## Core tests. ##
1448## ----------- ##
1449
1450_ACEOF
1451
1452
1453# Keep a trace of the command line.
1454# Strip out --no-create and --no-recursion so they do not pile up.
1455# Strip out --silent because we don't want to record it for future runs.
1456# Also quote any args containing shell meta-characters.
1457# Make two passes to allow for proper duplicate-argument suppression.
1458ac_configure_args=
1459ac_configure_args0=
1460ac_configure_args1=
1461ac_must_keep_next=false
1462for ac_pass in 1 2
1463do
1464 for ac_arg
1465 do
1466 case $ac_arg in
1467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469 | -silent | --silent | --silen | --sile | --sil)
1470 continue ;;
1471 *\'*)
1472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 esac
1474 case $ac_pass in
1475 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 2)
1477 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1478 if test $ac_must_keep_next = true; then
1479 ac_must_keep_next=false # Got value, back to normal.
1480 else
1481 case $ac_arg in
1482 *=* | --config-cache | -C | -disable-* | --disable-* \
1483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1485 | -with-* | --with-* | -without-* | --without-* | --x)
1486 case "$ac_configure_args0 " in
1487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1488 esac
1489 ;;
1490 -* ) ac_must_keep_next=true ;;
1491 esac
1492 fi
1493 ac_configure_args="$ac_configure_args '$ac_arg'"
1494 ;;
1495 esac
1496 done
1497done
1498$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1499$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500
1501# When interrupted or exit'd, cleanup temporary files, and complete
1502# config.log. We remove comments because anyway the quotes in there
1503# would cause problems or look ugly.
1504# WARNING: Use '\'' to represent an apostrophe within the trap.
1505# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1506trap 'exit_status=$?
1507 # Save into config.log some information that might help in debugging.
1508 {
1509 echo
1510
1511 cat <<\_ASBOX
1512## ---------------- ##
1513## Cache variables. ##
1514## ---------------- ##
1515_ASBOX
1516 echo
1517 # The following way of writing the cache mishandles newlines in values,
1518(
1519 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1520 eval ac_val=\$$ac_var
1521 case $ac_val in #(
1522 *${as_nl}*)
1523 case $ac_var in #(
1524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1525echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1526 esac
1527 case $ac_var in #(
1528 _ | IFS | as_nl) ;; #(
1529 *) $as_unset $ac_var ;;
1530 esac ;;
1531 esac
1532 done
1533 (set) 2>&1 |
1534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1535 *${as_nl}ac_space=\ *)
1536 sed -n \
1537 "s/'\''/'\''\\\\'\'''\''/g;
1538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 ;; #(
1540 *)
1541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1542 ;;
1543 esac |
1544 sort
1545)
1546 echo
1547
1548 cat <<\_ASBOX
1549## ----------------- ##
1550## Output variables. ##
1551## ----------------- ##
1552_ASBOX
1553 echo
1554 for ac_var in $ac_subst_vars
1555 do
1556 eval ac_val=\$$ac_var
1557 case $ac_val in
1558 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 esac
1560 echo "$ac_var='\''$ac_val'\''"
1561 done | sort
1562 echo
1563
1564 if test -n "$ac_subst_files"; then
1565 cat <<\_ASBOX
1566## ------------------- ##
1567## File substitutions. ##
1568## ------------------- ##
1569_ASBOX
1570 echo
1571 for ac_var in $ac_subst_files
1572 do
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 echo "$ac_var='\''$ac_val'\''"
1578 done | sort
1579 echo
1580 fi
1581
1582 if test -s confdefs.h; then
1583 cat <<\_ASBOX
1584## ----------- ##
1585## confdefs.h. ##
1586## ----------- ##
1587_ASBOX
1588 echo
1589 cat confdefs.h
1590 echo
1591 fi
1592 test "$ac_signal" != 0 &&
1593 echo "$as_me: caught signal $ac_signal"
1594 echo "$as_me: exit $exit_status"
1595 } >&5
1596 rm -f core *.core core.conftest.* &&
1597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 exit $exit_status
1599' 0
1600for ac_signal in 1 2 13 15; do
1601 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1602done
1603ac_signal=0
1604
1605# confdefs.h avoids OS command line length limits that DEFS can exceed.
1606rm -f -r conftest* confdefs.h
1607
1608# Predefined preprocessor variables.
1609
1610cat >>confdefs.h <<_ACEOF
1611#define PACKAGE_NAME "$PACKAGE_NAME"
1612_ACEOF
1613
1614
1615cat >>confdefs.h <<_ACEOF
1616#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1617_ACEOF
1618
1619
1620cat >>confdefs.h <<_ACEOF
1621#define PACKAGE_VERSION "$PACKAGE_VERSION"
1622_ACEOF
1623
1624
1625cat >>confdefs.h <<_ACEOF
1626#define PACKAGE_STRING "$PACKAGE_STRING"
1627_ACEOF
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1632_ACEOF
1633
1634
1635# Let the site file select an alternate cache file if it wants to.
1636# Prefer explicitly selected file to automatically selected ones.
1637if test -n "$CONFIG_SITE"; then
1638 set x "$CONFIG_SITE"
1639elif test "x$prefix" != xNONE; then
1640 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1641else
1642 set x "$ac_default_prefix/share/config.site" \
1643 "$ac_default_prefix/etc/config.site"
1644fi
1645shift
1646for ac_site_file
1647do
1648 if test -r "$ac_site_file"; then
1649 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1650echo "$as_me: loading site script $ac_site_file" >&6;}
1651 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file"
1653 fi
1654done
1655
1656if test -r "$cache_file"; then
1657 # Some versions of bash will fail to source /dev/null (special
1658 # files actually), so we avoid doing that.
1659 if test -f "$cache_file"; then
1660 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1661echo "$as_me: loading cache $cache_file" >&6;}
1662 case $cache_file in
1663 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1664 *) . "./$cache_file";;
1665 esac
1666 fi
1667else
1668 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1669echo "$as_me: creating cache $cache_file" >&6;}
1670 >$cache_file
1671fi
1672
1673# Check that the precious variables saved in the cache have kept the same
1674# value.
1675ac_cache_corrupted=false
1676for ac_var in $ac_precious_vars; do
1677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1678 eval ac_new_set=\$ac_env_${ac_var}_set
1679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1680 eval ac_new_val=\$ac_env_${ac_var}_value
1681 case $ac_old_set,$ac_new_set in
1682 set,)
1683 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1684echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1685 ac_cache_corrupted=: ;;
1686 ,set)
1687 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1688echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1689 ac_cache_corrupted=: ;;
1690 ,);;
1691 *)
1692 if test "x$ac_old_val" != "x$ac_new_val"; then
1693 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1694echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1695 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1696echo "$as_me: former value: $ac_old_val" >&2;}
1697 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1698echo "$as_me: current value: $ac_new_val" >&2;}
1699 ac_cache_corrupted=:
1700 fi;;
1701 esac
1702 # Pass precious variables to config.status.
1703 if test "$ac_new_set" = set; then
1704 case $ac_new_val in
1705 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 *) ac_arg=$ac_var=$ac_new_val ;;
1707 esac
1708 case " $ac_configure_args " in
1709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1710 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1711 esac
1712 fi
1713done
1714if $ac_cache_corrupted; then
1715 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1716echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1717 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1718echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1719 { (exit 1); exit 1; }; }
1720fi
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738ac_ext=c
1739ac_cpp='$CPP $CPPFLAGS'
1740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743
1744
1745am__api_version='1.10'
1746
1747ac_aux_dir=
1748for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1749 if test -f "$ac_dir/install-sh"; then
1750 ac_aux_dir=$ac_dir
1751 ac_install_sh="$ac_aux_dir/install-sh -c"
1752 break
1753 elif test -f "$ac_dir/install.sh"; then
1754 ac_aux_dir=$ac_dir
1755 ac_install_sh="$ac_aux_dir/install.sh -c"
1756 break
1757 elif test -f "$ac_dir/shtool"; then
1758 ac_aux_dir=$ac_dir
1759 ac_install_sh="$ac_aux_dir/shtool install -c"
1760 break
1761 fi
1762done
1763if test -z "$ac_aux_dir"; then
1764 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1765echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1766 { (exit 1); exit 1; }; }
1767fi
1768
1769# These three variables are undocumented and unsupported,
1770# and are intended to be withdrawn in a future Autoconf release.
1771# They can cause serious problems if a builder's source tree is in a directory
1772# whose full name contains unusual characters.
1773ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1774ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1775ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1776
1777
1778# Find a good install program. We prefer a C program (faster),
1779# so one script is as good as another. But avoid the broken or
1780# incompatible versions:
1781# SysV /etc/install, /usr/sbin/install
1782# SunOS /usr/etc/install
1783# IRIX /sbin/install
1784# AIX /bin/install
1785# AmigaOS /C/install, which installs bootblocks on floppy discs
1786# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1787# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1788# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1789# OS/2's system install, which has a completely different semantic
1790# ./install, which can be erroneously created by make from ./install.sh.
1791{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1792echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1793if test -z "$INSTALL"; then
1794if test "${ac_cv_path_install+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798for as_dir in $PATH
1799do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 # Account for people who put trailing slashes in PATH elements.
1803case $as_dir/ in
1804 ./ | .// | /cC/* | \
1805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1807 /usr/ucb/* ) ;;
1808 *)
1809 # OSF1 and SCO ODT 3.0 have their own names for install.
1810 # Don't use installbsd from OSF since it installs stuff as root
1811 # by default.
1812 for ac_prog in ginstall scoinst install; do
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1815 if test $ac_prog = install &&
1816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1817 # AIX install. It has an incompatible calling convention.
1818 :
1819 elif test $ac_prog = install &&
1820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1821 # program-specific install script used by HP pwplus--don't use.
1822 :
1823 else
1824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1825 break 3
1826 fi
1827 fi
1828 done
1829 done
1830 ;;
1831esac
1832done
1833IFS=$as_save_IFS
1834
1835
1836fi
1837 if test "${ac_cv_path_install+set}" = set; then
1838 INSTALL=$ac_cv_path_install
1839 else
1840 # As a last resort, use the slow shell script. Don't cache a
1841 # value for INSTALL within a source directory, because that will
1842 # break other packages using the cache if that directory is
1843 # removed, or if the value is a relative name.
1844 INSTALL=$ac_install_sh
1845 fi
1846fi
1847{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1848echo "${ECHO_T}$INSTALL" >&6; }
1849
1850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1851# It thinks the first close brace ends the variable substitution.
1852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1853
1854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1855
1856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1857
1858{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1859echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1860# Just in case
1861sleep 1
1862echo timestamp > conftest.file
1863# Do `set' in a subshell so we don't clobber the current shell's
1864# arguments. Must try -L first in case configure is actually a
1865# symlink; some systems play weird games with the mod time of symlinks
1866# (eg FreeBSD returns the mod time of the symlink's containing
1867# directory).
1868if (
1869 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1870 if test "$*" = "X"; then
1871 # -L didn't work.
1872 set X `ls -t $srcdir/configure conftest.file`
1873 fi
1874 rm -f conftest.file
1875 if test "$*" != "X $srcdir/configure conftest.file" \
1876 && test "$*" != "X conftest.file $srcdir/configure"; then
1877
1878 # If neither matched, then we have a broken ls. This can happen
1879 # if, for instance, CONFIG_SHELL is bash and it inherits a
1880 # broken ls alias from the environment. This has actually
1881 # happened. Such a system could not be considered "sane".
1882 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1883alias in your environment" >&5
1884echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1885alias in your environment" >&2;}
1886 { (exit 1); exit 1; }; }
1887 fi
1888
1889 test "$2" = conftest.file
1890 )
1891then
1892 # Ok.
1893 :
1894else
1895 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1896Check your system clock" >&5
1897echo "$as_me: error: newly created file is older than distributed files!
1898Check your system clock" >&2;}
1899 { (exit 1); exit 1; }; }
1900fi
1901{ echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6; }
1903test "$program_prefix" != NONE &&
1904 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1905# Use a double $ so make ignores it.
1906test "$program_suffix" != NONE &&
1907 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1908# Double any \ or $. echo might interpret backslashes.
1909# By default was `s,x,x', remove it if useless.
1910cat <<\_ACEOF >conftest.sed
1911s/[\\$]/&&/g;s/;s,x,x,$//
1912_ACEOF
1913program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1914rm -f conftest.sed
1915
1916# expand $ac_aux_dir to an absolute path
1917am_aux_dir=`cd $ac_aux_dir && pwd`
1918
1919test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1920# Use eval to expand $SHELL
1921if eval "$MISSING --run true"; then
1922 am_missing_run="$MISSING --run "
1923else
1924 am_missing_run=
1925 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1926echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1927fi
1928
1929{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1930echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1931if test -z "$MKDIR_P"; then
1932 if test "${ac_cv_path_mkdir+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1937do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_prog in mkdir gmkdir; do
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1943 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1944 'mkdir (GNU coreutils) '* | \
1945 'mkdir (coreutils) '* | \
1946 'mkdir (fileutils) '4.1*)
1947 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1948 break 3;;
1949 esac
1950 done
1951 done
1952done
1953IFS=$as_save_IFS
1954
1955fi
1956
1957 if test "${ac_cv_path_mkdir+set}" = set; then
1958 MKDIR_P="$ac_cv_path_mkdir -p"
1959 else
1960 # As a last resort, use the slow shell script. Don't cache a
1961 # value for MKDIR_P within a source directory, because that will
1962 # break other packages using the cache if that directory is
1963 # removed, or if the value is a relative name.
1964 test -d ./--version && rmdir ./--version
1965 MKDIR_P="$ac_install_sh -d"
1966 fi
1967fi
1968{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1969echo "${ECHO_T}$MKDIR_P" >&6; }
1970
1971mkdir_p="$MKDIR_P"
1972case $mkdir_p in
1973 [\\/$]* | ?:[\\/]*) ;;
1974 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1975esac
1976
1977for ac_prog in gawk mawk nawk awk
1978do
1979 # Extract the first word of "$ac_prog", so it can be a program name with args.
1980set dummy $ac_prog; ac_word=$2
1981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983if test "${ac_cv_prog_AWK+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 if test -n "$AWK"; then
1987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1996 ac_cv_prog_AWK="$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
2001done
2002IFS=$as_save_IFS
2003
2004fi
2005fi
2006AWK=$ac_cv_prog_AWK
2007if test -n "$AWK"; then
2008 { echo "$as_me:$LINENO: result: $AWK" >&5
2009echo "${ECHO_T}$AWK" >&6; }
2010else
2011 { echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6; }
2013fi
2014
2015
2016 test -n "$AWK" && break
2017done
2018
2019{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2020echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2021set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2022if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 cat >conftest.make <<\_ACEOF
2026SHELL = /bin/sh
2027all:
2028 @echo '@@@%%%=$(MAKE)=@@@%%%'
2029_ACEOF
2030# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2031case `${MAKE-make} -f conftest.make 2>/dev/null` in
2032 *@@@%%%=?*=@@@%%%*)
2033 eval ac_cv_prog_make_${ac_make}_set=yes;;
2034 *)
2035 eval ac_cv_prog_make_${ac_make}_set=no;;
2036esac
2037rm -f conftest.make
2038fi
2039if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2040 { echo "$as_me:$LINENO: result: yes" >&5
2041echo "${ECHO_T}yes" >&6; }
2042 SET_MAKE=
2043else
2044 { echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6; }
2046 SET_MAKE="MAKE=${MAKE-make}"
2047fi
2048
2049rm -rf .tst 2>/dev/null
2050mkdir .tst 2>/dev/null
2051if test -d .tst; then
2052 am__leading_dot=.
2053else
2054 am__leading_dot=_
2055fi
2056rmdir .tst 2>/dev/null
2057
2058if test "`cd $srcdir && pwd`" != "`pwd`"; then
2059 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2060 # is not polluted with repeated "-I."
2061 am__isrc=' -I$(srcdir)'
2062 # test to see if srcdir already configured
2063 if test -f $srcdir/config.status; then
2064 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2065echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2066 { (exit 1); exit 1; }; }
2067 fi
2068fi
2069
2070# test whether we have cygpath
2071if test -z "$CYGPATH_W"; then
2072 if (cygpath --version) >/dev/null 2>/dev/null; then
2073 CYGPATH_W='cygpath -w'
2074 else
2075 CYGPATH_W=echo
2076 fi
2077fi
2078
2079
2080# Define the identity of the package.
2081 PACKAGE=lxrandr
2082 VERSION=0.1.1
2083
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE "$PACKAGE"
2087_ACEOF
2088
2089
2090cat >>confdefs.h <<_ACEOF
2091#define VERSION "$VERSION"
2092_ACEOF
2093
2094# Some tools Automake needs.
2095
2096ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2097
2098
2099AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2100
2101
2102AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2103
2104
2105AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2106
2107
2108MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2109
2110install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2111
2112# Installed binaries are usually stripped using `strip' when the user
2113# run `make install-strip'. However `strip' might not be the right
2114# tool to use in cross-compilation environments, therefore Automake
2115# will honor the `STRIP' environment variable to overrule this program.
2116if test "$cross_compiling" != no; then
2117 if test -n "$ac_tool_prefix"; then
2118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2119set dummy ${ac_tool_prefix}strip; ac_word=$2
2120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122if test "${ac_cv_prog_STRIP+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 if test -n "$STRIP"; then
2126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139done
2140done
2141IFS=$as_save_IFS
2142
2143fi
2144fi
2145STRIP=$ac_cv_prog_STRIP
2146if test -n "$STRIP"; then
2147 { echo "$as_me:$LINENO: result: $STRIP" >&5
2148echo "${ECHO_T}$STRIP" >&6; }
2149else
2150 { echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6; }
2152fi
2153
2154
2155fi
2156if test -z "$ac_cv_prog_STRIP"; then
2157 ac_ct_STRIP=$STRIP
2158 # Extract the first word of "strip", so it can be a program name with args.
2159set dummy strip; ac_word=$2
2160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 if test -n "$ac_ct_STRIP"; then
2166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 ac_cv_prog_ac_ct_STRIP="strip"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179done
2180done
2181IFS=$as_save_IFS
2182
2183fi
2184fi
2185ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2186if test -n "$ac_ct_STRIP"; then
2187 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2188echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2189else
2190 { echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6; }
2192fi
2193
2194 if test "x$ac_ct_STRIP" = x; then
2195 STRIP=":"
2196 else
2197 case $cross_compiling:$ac_tool_warned in
2198yes:)
2199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200whose name does not start with the host triplet. If you think this
2201configuration is useful to you, please write to autoconf@gnu.org." >&5
2202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203whose name does not start with the host triplet. If you think this
2204configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205ac_tool_warned=yes ;;
2206esac
2207 STRIP=$ac_ct_STRIP
2208 fi
2209else
2210 STRIP="$ac_cv_prog_STRIP"
2211fi
2212
2213fi
2214INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2215
2216# We need awk for the "check" target. The system "awk" is bad on
2217# some platforms.
2218# Always define AMTAR for backward compatibility.
2219
2220AMTAR=${AMTAR-"${am_missing_run}tar"}
2221
2222am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2223
2224
2225
2226
2227
2228ac_config_headers="$ac_config_headers config.h"
2229
2230{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2231echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2232 # Check whether --enable-maintainer-mode was given.
2233if test "${enable_maintainer_mode+set}" = set; then
2234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2235else
2236 USE_MAINTAINER_MODE=no
2237fi
2238
2239 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2240echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2241 if test $USE_MAINTAINER_MODE = yes; then
2242 MAINTAINER_MODE_TRUE=
2243 MAINTAINER_MODE_FALSE='#'
2244else
2245 MAINTAINER_MODE_TRUE='#'
2246 MAINTAINER_MODE_FALSE=
2247fi
2248
2249 MAINT=$MAINTAINER_MODE_TRUE
2250
2251
2252
2253DEPDIR="${am__leading_dot}deps"
2254
2255ac_config_commands="$ac_config_commands depfiles"
2256
2257
2258am_make=${MAKE-make}
2259cat > confinc << 'END'
2260am__doit:
2261 @echo done
2262.PHONY: am__doit
2263END
2264# If we don't find an include directive, just comment out the code.
2265{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2266echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2267am__include="#"
2268am__quote=
2269_am_result=none
2270# First try GNU make style include.
2271echo "include confinc" > confmf
2272# We grep out `Entering directory' and `Leaving directory'
2273# messages which can occur if `w' ends up in MAKEFLAGS.
2274# In particular we don't look at `^make:' because GNU make might
2275# be invoked under some other name (usually "gmake"), in which
2276# case it prints its new name instead of `make'.
2277if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2278 am__include=include
2279 am__quote=
2280 _am_result=GNU
2281fi
2282# Now try BSD make style include.
2283if test "$am__include" = "#"; then
2284 echo '.include "confinc"' > confmf
2285 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2286 am__include=.include
2287 am__quote="\""
2288 _am_result=BSD
2289 fi
2290fi
2291
2292
2293{ echo "$as_me:$LINENO: result: $_am_result" >&5
2294echo "${ECHO_T}$_am_result" >&6; }
2295rm -f confinc confmf
2296
2297# Check whether --enable-dependency-tracking was given.
2298if test "${enable_dependency_tracking+set}" = set; then
2299 enableval=$enable_dependency_tracking;
2300fi
2301
2302if test "x$enable_dependency_tracking" != xno; then
2303 am_depcomp="$ac_aux_dir/depcomp"
2304 AMDEPBACKSLASH='\'
2305fi
2306 if test "x$enable_dependency_tracking" != xno; then
2307 AMDEP_TRUE=
2308 AMDEP_FALSE='#'
2309else
2310 AMDEP_TRUE='#'
2311 AMDEP_FALSE=
2312fi
2313
2314
2315ac_ext=c
2316ac_cpp='$CPP $CPPFLAGS'
2317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322set dummy ${ac_tool_prefix}gcc; ac_word=$2
2323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330else
2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332for as_dir in $PATH
2333do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2341 fi
2342done
2343done
2344IFS=$as_save_IFS
2345
2346fi
2347fi
2348CC=$ac_cv_prog_CC
2349if test -n "$CC"; then
2350 { echo "$as_me:$LINENO: result: $CC" >&5
2351echo "${ECHO_T}$CC" >&6; }
2352else
2353 { echo "$as_me:$LINENO: result: no" >&5
2354echo "${ECHO_T}no" >&6; }
2355fi
2356
2357
2358fi
2359if test -z "$ac_cv_prog_CC"; then
2360 ac_ct_CC=$CC
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362set dummy gcc; ac_word=$2
2363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
2383done
2384IFS=$as_save_IFS
2385
2386fi
2387fi
2388ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389if test -n "$ac_ct_CC"; then
2390 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2391echo "${ECHO_T}$ac_ct_CC" >&6; }
2392else
2393 { echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6; }
2395fi
2396
2397 if test "x$ac_ct_CC" = x; then
2398 CC=""
2399 else
2400 case $cross_compiling:$ac_tool_warned in
2401yes:)
2402{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2403whose name does not start with the host triplet. If you think this
2404configuration is useful to you, please write to autoconf@gnu.org." >&5
2405echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2406whose name does not start with the host triplet. If you think this
2407configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2408ac_tool_warned=yes ;;
2409esac
2410 CC=$ac_ct_CC
2411 fi
2412else
2413 CC="$ac_cv_prog_CC"
2414fi
2415
2416if test -z "$CC"; then
2417 if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2419set dummy ${ac_tool_prefix}cc; ac_word=$2
2420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2422if test "${ac_cv_prog_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 ac_cv_prog_CC="${ac_tool_prefix}cc"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439done
2440done
2441IFS=$as_save_IFS
2442
2443fi
2444fi
2445CC=$ac_cv_prog_CC
2446if test -n "$CC"; then
2447 { echo "$as_me:$LINENO: result: $CC" >&5
2448echo "${ECHO_T}$CC" >&6; }
2449else
2450 { echo "$as_me:$LINENO: result: no" >&5
2451echo "${ECHO_T}no" >&6; }
2452fi
2453
2454
2455 fi
2456fi
2457if test -z "$CC"; then
2458 # Extract the first word of "cc", so it can be a program name with args.
2459set dummy cc; ac_word=$2
2460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467else
2468 ac_prog_rejected=no
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2477 ac_prog_rejected=yes
2478 continue
2479 fi
2480 ac_cv_prog_CC="cc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488if test $ac_prog_rejected = yes; then
2489 # We found a bogon in the path, so make sure we never use it.
2490 set dummy $ac_cv_prog_CC
2491 shift
2492 if test $# != 0; then
2493 # We chose a different compiler from the bogus one.
2494 # However, it has the same basename, so the bogon will be chosen
2495 # first if we set CC to just the basename; use the full file name.
2496 shift
2497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 fi
2499fi
2500fi
2501fi
2502CC=$ac_cv_prog_CC
2503if test -n "$CC"; then
2504 { echo "$as_me:$LINENO: result: $CC" >&5
2505echo "${ECHO_T}$CC" >&6; }
2506else
2507 { echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6; }
2509fi
2510
2511
2512fi
2513if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 for ac_prog in cl.exe
2516 do
2517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538done
2539done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544CC=$ac_cv_prog_CC
2545if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547echo "${ECHO_T}$CC" >&6; }
2548else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6; }
2551fi
2552
2553
2554 test -n "$CC" && break
2555 done
2556fi
2557if test -z "$CC"; then
2558 ac_ct_CC=$CC
2559 for ac_prog in cl.exe
2560do
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562set dummy $ac_prog; ac_word=$2
2563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568 if test -n "$ac_ct_CC"; then
2569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_ac_ct_CC="$ac_prog"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582done
2583done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589if test -n "$ac_ct_CC"; then
2590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2591echo "${ECHO_T}$ac_ct_CC" >&6; }
2592else
2593 { echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6; }
2595fi
2596
2597
2598 test -n "$ac_ct_CC" && break
2599done
2600
2601 if test "x$ac_ct_CC" = x; then
2602 CC=""
2603 else
2604 case $cross_compiling:$ac_tool_warned in
2605yes:)
2606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2607whose name does not start with the host triplet. If you think this
2608configuration is useful to you, please write to autoconf@gnu.org." >&5
2609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2610whose name does not start with the host triplet. If you think this
2611configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2612ac_tool_warned=yes ;;
2613esac
2614 CC=$ac_ct_CC
2615 fi
2616fi
2617
2618fi
2619
2620
2621test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2622See \`config.log' for more details." >&5
2623echo "$as_me: error: no acceptable C compiler found in \$PATH
2624See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2626
2627# Provide some information about the compiler.
2628echo "$as_me:$LINENO: checking for C compiler version" >&5
2629ac_compiler=`set X $ac_compile; echo $2`
2630{ (ac_try="$ac_compiler --version >&5"
2631case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634esac
2635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_compiler --version >&5") 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }
2640{ (ac_try="$ac_compiler -v >&5"
2641case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644esac
2645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compiler -v >&5") 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }
2650{ (ac_try="$ac_compiler -V >&5"
2651case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler -V >&5") 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }
2660
2661cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h. */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h. */
2667
2668int
2669main ()
2670{
2671
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676ac_clean_files_save=$ac_clean_files
2677ac_clean_files="$ac_clean_files a.out a.exe b.out"
2678# Try to create an executable without -o first, disregard a.out.
2679# It will help us diagnose broken compilers, and finding out an intuition
2680# of exeext.
2681{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2682echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2683ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2684#
2685# List of possible output files, starting from the most likely.
2686# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2687# only as a last resort. b.out is created by i960 compilers.
2688ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2689#
2690# The IRIX 6 linker writes into existing files which may not be
2691# executable, retaining their permissions. Remove them first so a
2692# subsequent execution test works.
2693ac_rmfiles=
2694for ac_file in $ac_files
2695do
2696 case $ac_file in
2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2699 esac
2700done
2701rm -f $ac_rmfiles
2702
2703if { (ac_try="$ac_link_default"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_link_default") 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2714# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2715# in a Makefile. We should not override ac_cv_exeext if it was cached,
2716# so that the user can short-circuit this test for compilers unknown to
2717# Autoconf.
2718for ac_file in $ac_files ''
2719do
2720 test -f "$ac_file" || continue
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2723 ;;
2724 [ab].out )
2725 # We found the default executable, but exeext='' is most
2726 # certainly right.
2727 break;;
2728 *.* )
2729 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2730 then :; else
2731 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 fi
2733 # We set ac_cv_exeext here because the later test for it is not
2734 # safe: cross compilers may not add the suffix if given an `-o'
2735 # argument, so we may need to know it at that point already.
2736 # Even if this section looks crufty: it has the advantage of
2737 # actually working.
2738 break;;
2739 * )
2740 break;;
2741 esac
2742done
2743test "$ac_cv_exeext" = no && ac_cv_exeext=
2744
2745else
2746 ac_file=''
2747fi
2748
2749{ echo "$as_me:$LINENO: result: $ac_file" >&5
2750echo "${ECHO_T}$ac_file" >&6; }
2751if test -z "$ac_file"; then
2752 echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2756See \`config.log' for more details." >&5
2757echo "$as_me: error: C compiler cannot create executables
2758See \`config.log' for more details." >&2;}
2759 { (exit 77); exit 77; }; }
2760fi
2761
2762ac_exeext=$ac_cv_exeext
2763
2764# Check that the compiler produces executables we can run. If not, either
2765# the compiler is broken, or we cross compile.
2766{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2767echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2768# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2769# If not cross compiling, check that we can run a simple program.
2770if test "$cross_compiling" != yes; then
2771 if { ac_try='./$ac_file'
2772 { (case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_try") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 cross_compiling=no
2782 else
2783 if test "$cross_compiling" = maybe; then
2784 cross_compiling=yes
2785 else
2786 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2787If you meant to cross compile, use \`--host'.
2788See \`config.log' for more details." >&5
2789echo "$as_me: error: cannot run C compiled programs.
2790If you meant to cross compile, use \`--host'.
2791See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2793 fi
2794 fi
2795fi
2796{ echo "$as_me:$LINENO: result: yes" >&5
2797echo "${ECHO_T}yes" >&6; }
2798
2799rm -f a.out a.exe conftest$ac_cv_exeext b.out
2800ac_clean_files=$ac_clean_files_save
2801# Check that the compiler produces executables we can run. If not, either
2802# the compiler is broken, or we cross compile.
2803{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2804echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2805{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2806echo "${ECHO_T}$cross_compiling" >&6; }
2807
2808{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2809echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2810if { (ac_try="$ac_link"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_link") 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
2820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2821# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2822# work properly (i.e., refer to `conftest.exe'), while it won't with
2823# `rm'.
2824for ac_file in conftest.exe conftest conftest.*; do
2825 test -f "$ac_file" || continue
2826 case $ac_file in
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2829 break;;
2830 * ) break;;
2831 esac
2832done
2833else
2834 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2835See \`config.log' for more details." >&5
2836echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2837See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }
2839fi
2840
2841rm -f conftest$ac_cv_exeext
2842{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2843echo "${ECHO_T}$ac_cv_exeext" >&6; }
2844
2845rm -f conftest.$ac_ext
2846EXEEXT=$ac_cv_exeext
2847ac_exeext=$EXEEXT
2848{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2849echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2850if test "${ac_cv_objext+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853 cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h. */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h. */
2859
2860int
2861main ()
2862{
2863
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868rm -f conftest.o conftest.obj
2869if { (ac_try="$ac_compile"
2870case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
2874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_compile") 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; then
2879 for ac_file in conftest.o conftest.obj conftest.*; do
2880 test -f "$ac_file" || continue;
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2884 break;;
2885 esac
2886done
2887else
2888 echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2892See \`config.log' for more details." >&5
2893echo "$as_me: error: cannot compute suffix of object files: cannot compile
2894See \`config.log' for more details." >&2;}
2895 { (exit 1); exit 1; }; }
2896fi
2897
2898rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899fi
2900{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2901echo "${ECHO_T}$ac_cv_objext" >&6; }
2902OBJEXT=$ac_cv_objext
2903ac_objext=$OBJEXT
2904{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2906if test "${ac_cv_c_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920 choke me
2921#endif
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } && {
2941 test -z "$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 } && test -s conftest.$ac_objext; then
2944 ac_compiler_gnu=yes
2945else
2946 echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 ac_compiler_gnu=no
2950fi
2951
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953ac_cv_c_compiler_gnu=$ac_compiler_gnu
2954
2955fi
2956{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2957echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2958GCC=`test $ac_compiler_gnu = yes && echo yes`
2959ac_test_CFLAGS=${CFLAGS+set}
2960ac_save_CFLAGS=$CFLAGS
2961{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2962echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2963if test "${ac_cv_prog_cc_g+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 ac_save_c_werror_flag=$ac_c_werror_flag
2967 ac_c_werror_flag=yes
2968 ac_cv_prog_cc_g=no
2969 CFLAGS="-g"
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
2986if { (ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_cv_prog_cc_g=yes
3003else
3004 echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 CFLAGS=""
3008 cat >conftest.$ac_ext <<_ACEOF
3009/* confdefs.h. */
3010_ACEOF
3011cat confdefs.h >>conftest.$ac_ext
3012cat >>conftest.$ac_ext <<_ACEOF
3013/* end confdefs.h. */
3014
3015int
3016main ()
3017{
3018
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023rm -f conftest.$ac_objext
3024if { (ac_try="$ac_compile"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 :
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 ac_c_werror_flag=$ac_save_c_werror_flag
3046 CFLAGS="-g"
3047 cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h. */
3053
3054int
3055main ()
3056{
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
3062rm -f conftest.$ac_objext
3063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
3079 ac_cv_prog_cc_g=yes
3080else
3081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084
3085fi
3086
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088fi
3089
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091fi
3092
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 ac_c_werror_flag=$ac_save_c_werror_flag
3095fi
3096{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3097echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3098if test "$ac_test_CFLAGS" = set; then
3099 CFLAGS=$ac_save_CFLAGS
3100elif test $ac_cv_prog_cc_g = yes; then
3101 if test "$GCC" = yes; then
3102 CFLAGS="-g -O2"
3103 else
3104 CFLAGS="-g"
3105 fi
3106else
3107 if test "$GCC" = yes; then
3108 CFLAGS="-O2"
3109 else
3110 CFLAGS=
3111 fi
3112fi
3113{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3114echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3115if test "${ac_cv_prog_cc_c89+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118 ac_cv_prog_cc_c89=no
3119ac_save_CC=$CC
3120cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <stdarg.h>
3127#include <stdio.h>
3128#include <sys/types.h>
3129#include <sys/stat.h>
3130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3131struct buf { int x; };
3132FILE * (*rcsopen) (struct buf *, struct stat *, int);
3133static char *e (p, i)
3134 char **p;
3135 int i;
3136{
3137 return p[i];
3138}
3139static char *f (char * (*g) (char **, int), char **p, ...)
3140{
3141 char *s;
3142 va_list v;
3143 va_start (v,p);
3144 s = g (p, va_arg (v,int));
3145 va_end (v);
3146 return s;
3147}
3148
3149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3150 function prototypes and stuff, but not '\xHH' hex character constants.
3151 These don't provoke an error unfortunately, instead are silently treated
3152 as 'x'. The following induces an error, until -std is added to get
3153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3154 array size at least. It's necessary to write '\x00'==0 to get something
3155 that's true only with -std. */
3156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157
3158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3159 inside strings and character constants. */
3160#define FOO(x) 'x'
3161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162
3163int test (int i, double x);
3164struct s1 {int (*f) (int a);};
3165struct s2 {int (*f) (double a);};
3166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167int argc;
3168char **argv;
3169int
3170main ()
3171{
3172return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179do
3180 CC="$ac_save_CC $ac_arg"
3181 rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 ac_cv_prog_cc_c89=$ac_arg
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204fi
3205
3206rm -f core conftest.err conftest.$ac_objext
3207 test "x$ac_cv_prog_cc_c89" != "xno" && break
3208done
3209rm -f conftest.$ac_ext
3210CC=$ac_save_CC
3211
3212fi
3213# AC_CACHE_VAL
3214case "x$ac_cv_prog_cc_c89" in
3215 x)
3216 { echo "$as_me:$LINENO: result: none needed" >&5
3217echo "${ECHO_T}none needed" >&6; } ;;
3218 xno)
3219 { echo "$as_me:$LINENO: result: unsupported" >&5
3220echo "${ECHO_T}unsupported" >&6; } ;;
3221 *)
3222 CC="$CC $ac_cv_prog_cc_c89"
3223 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3224echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3225esac
3226
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234depcc="$CC" am_compiler_list=
3235
3236{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3237echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3238if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3242 # We make a subdir and do the tests there. Otherwise we can end up
3243 # making bogus files that we don't know about and never remove. For
3244 # instance it was reported that on HP-UX the gcc test will end up
3245 # making a dummy file named `D' -- because `-MD' means `put the output
3246 # in D'.
3247 mkdir conftest.dir
3248 # Copy depcomp to subdir because otherwise we won't find it if we're
3249 # using a relative directory.
3250 cp "$am_depcomp" conftest.dir
3251 cd conftest.dir
3252 # We will build objects and dependencies in a subdirectory because
3253 # it helps to detect inapplicable dependency modes. For instance
3254 # both Tru64's cc and ICC support -MD to output dependencies as a
3255 # side effect of compilation, but ICC will put the dependencies in
3256 # the current directory while Tru64 will put them in the object
3257 # directory.
3258 mkdir sub
3259
3260 am_cv_CC_dependencies_compiler_type=none
3261 if test "$am_compiler_list" = ""; then
3262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3263 fi
3264 for depmode in $am_compiler_list; do
3265 # Setup a source with many dependencies, because some compilers
3266 # like to wrap large dependency lists on column 80 (with \), and
3267 # we should not choose a depcomp mode which is confused by this.
3268 #
3269 # We need to recreate these files for each test, as the compiler may
3270 # overwrite some of them when testing with obscure command lines.
3271 # This happens at least with the AIX C compiler.
3272 : > sub/conftest.c
3273 for i in 1 2 3 4 5 6; do
3274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3275 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3276 # Solaris 8's {/usr,}/bin/sh.
3277 touch sub/conftst$i.h
3278 done
3279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3280
3281 case $depmode in
3282 nosideeffect)
3283 # after this tag, mechanisms are not by side-effect, so they'll
3284 # only be used when explicitly requested
3285 if test "x$enable_dependency_tracking" = xyes; then
3286 continue
3287 else
3288 break
3289 fi
3290 ;;
3291 none) break ;;
3292 esac
3293 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3294 # mode. It turns out that the SunPro C++ compiler does not properly
3295 # handle `-M -o', and we need to detect this.
3296 if depmode=$depmode \
3297 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3299 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3300 >/dev/null 2>conftest.err &&
3301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3303 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3305 # icc doesn't choke on unknown options, it will just issue warnings
3306 # or remarks (even with -Werror). So we grep stderr for any message
3307 # that says an option was ignored or not supported.
3308 # When given -MP, icc 7.0 and 7.1 complain thusly:
3309 # icc: Command line warning: ignoring option '-M'; no argument required
3310 # The diagnosis changed in icc 8.0:
3311 # icc: Command line remark: option '-MP' not supported
3312 if (grep 'ignoring option' conftest.err ||
3313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3314 am_cv_CC_dependencies_compiler_type=$depmode
3315 break
3316 fi
3317 fi
3318 done
3319
3320 cd ..
3321 rm -rf conftest.dir
3322else
3323 am_cv_CC_dependencies_compiler_type=none
3324fi
3325
3326fi
3327{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3328echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3329CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3330
3331 if
3332 test "x$enable_dependency_tracking" != xno \
3333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3334 am__fastdepCC_TRUE=
3335 am__fastdepCC_FALSE='#'
3336else
3337 am__fastdepCC_TRUE='#'
3338 am__fastdepCC_FALSE=
3339fi
3340
3341
3342
3343{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3344echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3345if test "${ac_cv_search_strerror+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348 ac_func_search_save_LIBS=$LIBS
3349cat >conftest.$ac_ext <<_ACEOF
3350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */
3355
3356/* Override any GCC internal prototype to avoid an error.
3357 Use char because int might match the return type of a GCC
3358 builtin and then its argument prototype would still apply. */
3359#ifdef __cplusplus
3360extern "C"
3361#endif
3362char strerror ();
3363int
3364main ()
3365{
3366return strerror ();
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371for ac_lib in '' cposix; do
3372 if test -z "$ac_lib"; then
3373 ac_res="none required"
3374 else
3375 ac_res=-l$ac_lib
3376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3377 fi
3378 rm -f conftest.$ac_objext conftest$ac_exeext
3379if { (ac_try="$ac_link"
3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_link") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest$ac_exeext &&
3395 $as_test_x conftest$ac_exeext; then
3396 ac_cv_search_strerror=$ac_res
3397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402fi
3403
3404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3405 conftest$ac_exeext
3406 if test "${ac_cv_search_strerror+set}" = set; then
3407 break
3408fi
3409done
3410if test "${ac_cv_search_strerror+set}" = set; then
3411 :
3412else
3413 ac_cv_search_strerror=no
3414fi
3415rm conftest.$ac_ext
3416LIBS=$ac_func_search_save_LIBS
3417fi
3418{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3419echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3420ac_res=$ac_cv_search_strerror
3421if test "$ac_res" != no; then
3422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3423
3424fi
3425
3426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3436if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3452 fi
3453done
3454done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461 { echo "$as_me:$LINENO: result: $CC" >&5
3462echo "${ECHO_T}$CC" >&6; }
3463else
3464 { echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6; }
3466fi
3467
3468
3469fi
3470if test -z "$ac_cv_prog_CC"; then
3471 ac_ct_CC=$CC
3472 # Extract the first word of "gcc", so it can be a program name with args.
3473set dummy gcc; ac_word=$2
3474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_ac_ct_CC="gcc"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493done
3494done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500if test -n "$ac_ct_CC"; then
3501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3502echo "${ECHO_T}$ac_ct_CC" >&6; }
3503else
3504 { echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6; }
3506fi
3507
3508 if test "x$ac_ct_CC" = x; then
3509 CC=""
3510 else
3511 case $cross_compiling:$ac_tool_warned in
3512yes:)
3513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3514whose name does not start with the host triplet. If you think this
3515configuration is useful to you, please write to autoconf@gnu.org." >&5
3516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3517whose name does not start with the host triplet. If you think this
3518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3519ac_tool_warned=yes ;;
3520esac
3521 CC=$ac_ct_CC
3522 fi
3523else
3524 CC="$ac_cv_prog_CC"
3525fi
3526
3527if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3530set dummy ${ac_tool_prefix}cc; ac_word=$2
3531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3533if test "${ac_cv_prog_CC+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_CC="${ac_tool_prefix}cc"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550done
3551done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556CC=$ac_cv_prog_CC
3557if test -n "$CC"; then
3558 { echo "$as_me:$LINENO: result: $CC" >&5
3559echo "${ECHO_T}$CC" >&6; }
3560else
3561 { echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6; }
3563fi
3564
3565
3566 fi
3567fi
3568if test -z "$CC"; then
3569 # Extract the first word of "cc", so it can be a program name with args.
3570set dummy cc; ac_word=$2
3571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3573if test "${ac_cv_prog_CC+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 if test -n "$CC"; then
3577 ac_cv_prog_CC="$CC" # Let the user override the test.
3578else
3579 ac_prog_rejected=no
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3588 ac_prog_rejected=yes
3589 continue
3590 fi
3591 ac_cv_prog_CC="cc"
3592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596done
3597IFS=$as_save_IFS
3598
3599if test $ac_prog_rejected = yes; then
3600 # We found a bogon in the path, so make sure we never use it.
3601 set dummy $ac_cv_prog_CC
3602 shift
3603 if test $# != 0; then
3604 # We chose a different compiler from the bogus one.
3605 # However, it has the same basename, so the bogon will be chosen
3606 # first if we set CC to just the basename; use the full file name.
3607 shift
3608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3609 fi
3610fi
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615 { echo "$as_me:$LINENO: result: $CC" >&5
3616echo "${ECHO_T}$CC" >&6; }
3617else
3618 { echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6; }
3620fi
3621
3622
3623fi
3624if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 for ac_prog in cl.exe
3627 do
3628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3632if test "${ac_cv_prog_CC+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649done
3650done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655CC=$ac_cv_prog_CC
3656if test -n "$CC"; then
3657 { echo "$as_me:$LINENO: result: $CC" >&5
3658echo "${ECHO_T}$CC" >&6; }
3659else
3660 { echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6; }
3662fi
3663
3664
3665 test -n "$CC" && break
3666 done
3667fi
3668if test -z "$CC"; then
3669 ac_ct_CC=$CC
3670 for ac_prog in cl.exe
3671do
3672 # Extract the first word of "$ac_prog", so it can be a program name with args.
3673set dummy $ac_prog; ac_word=$2
3674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_CC="$ac_prog"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693done
3694done
3695IFS=$as_save_IFS
3696
3697fi
3698fi
3699ac_ct_CC=$ac_cv_prog_ac_ct_CC
3700if test -n "$ac_ct_CC"; then
3701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3702echo "${ECHO_T}$ac_ct_CC" >&6; }
3703else
3704 { echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6; }
3706fi
3707
3708
3709 test -n "$ac_ct_CC" && break
3710done
3711
3712 if test "x$ac_ct_CC" = x; then
3713 CC=""
3714 else
3715 case $cross_compiling:$ac_tool_warned in
3716yes:)
3717{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3718whose name does not start with the host triplet. If you think this
3719configuration is useful to you, please write to autoconf@gnu.org." >&5
3720echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3721whose name does not start with the host triplet. If you think this
3722configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3723ac_tool_warned=yes ;;
3724esac
3725 CC=$ac_ct_CC
3726 fi
3727fi
3728
3729fi
3730
3731
3732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3733See \`config.log' for more details." >&5
3734echo "$as_me: error: no acceptable C compiler found in \$PATH
3735See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }
3737
3738# Provide some information about the compiler.
3739echo "$as_me:$LINENO: checking for C compiler version" >&5
3740ac_compiler=`set X $ac_compile; echo $2`
3741{ (ac_try="$ac_compiler --version >&5"
3742case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745esac
3746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compiler --version >&5") 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }
3751{ (ac_try="$ac_compiler -v >&5"
3752case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compiler -v >&5") 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }
3761{ (ac_try="$ac_compiler -V >&5"
3762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compiler -V >&5") 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }
3771
3772{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3773echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3774if test "${ac_cv_c_compiler_gnu+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783
3784int
3785main ()
3786{
3787#ifndef __GNUC__
3788 choke me
3789#endif
3790
3791 ;
3792 return 0;
3793}
3794_ACEOF
3795rm -f conftest.$ac_objext
3796if { (ac_try="$ac_compile"
3797case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800esac
3801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3812 ac_compiler_gnu=yes
3813else
3814 echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_compiler_gnu=no
3818fi
3819
3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821ac_cv_c_compiler_gnu=$ac_compiler_gnu
3822
3823fi
3824{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3825echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3826GCC=`test $ac_compiler_gnu = yes && echo yes`
3827ac_test_CFLAGS=${CFLAGS+set}
3828ac_save_CFLAGS=$CFLAGS
3829{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3830echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3831if test "${ac_cv_prog_cc_g+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 ac_save_c_werror_flag=$ac_c_werror_flag
3835 ac_c_werror_flag=yes
3836 ac_cv_prog_cc_g=no
3837 CFLAGS="-g"
3838 cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
3844
3845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext
3854if { (ac_try="$ac_compile"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.$ac_objext; then
3870 ac_cv_prog_cc_g=yes
3871else
3872 echo "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 CFLAGS=""
3876 cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
3882
3883int
3884main ()
3885{
3886
3887 ;
3888 return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext
3892if { (ac_try="$ac_compile"
3893case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
3897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3899 ac_status=$?
3900 grep -v '^ *+' conftest.er1 >conftest.err
3901 rm -f conftest.er1
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3908 :
3909else
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3914 CFLAGS="-g"
3915 cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
3921
3922int
3923main ()
3924{
3925
3926 ;
3927 return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext
3931if { (ac_try="$ac_compile"
3932case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935esac
3936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5