blob: 809ded517a79e515a048a75bdf6c1c93bf442e67 [file] [log] [blame]
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001#! /bin/sh
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002# Guess values for system-dependent variables and create Makefiles.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003# Generated by GNU Autoconf 2.61.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Constantin Kaplinsky13e90832006-05-30 06:08:20 +000012
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013# 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#
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000562ac_default_prefix=/usr/local
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000563ac_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="rdr/InStream.h"
580ac_subst_vars='SHELL
581PATH_SEPARATOR
582PACKAGE_NAME
583PACKAGE_TARNAME
584PACKAGE_VERSION
585PACKAGE_STRING
586PACKAGE_BUGREPORT
587exec_prefix
588prefix
589program_transform_name
590bindir
591sbindir
592libexecdir
593datarootdir
594datadir
595sysconfdir
596sharedstatedir
597localstatedir
598includedir
599oldincludedir
600docdir
601infodir
602htmldir
603dvidir
604pdfdir
605psdir
606libdir
607localedir
608mandir
609DEFS
610ECHO_C
611ECHO_N
612ECHO_T
613LIBS
614build_alias
615host_alias
616target_alias
617CC
618CFLAGS
619LDFLAGS
620CPPFLAGS
621ac_ct_CC
622EXEEXT
623OBJEXT
624CXX
625CXXFLAGS
626ac_ct_CXX
627RANLIB
628SET_MAKE
629PLATFORM_CXXSRCS
630ZLIB_DIR
631ZLIB_INCLUDE
632ZLIB_LIB
633JPEG_DIR
634JPEG_INCLUDE
635JPEG_LIB
636VSNPRINTF_DEFINE
637STRCASECMP_DEFINE
638STRNCASECMP_DEFINE
639SOCKLEN_T_DEFINE
640LIBOBJS
641LTLIBOBJS'
642ac_subst_files=''
643 ac_precious_vars='build_alias
644host_alias
645target_alias
646CC
647CFLAGS
648LDFLAGS
649LIBS
650CPPFLAGS
651CXX
652CXXFLAGS
653CCC'
654
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000655
656# Initialize some variables set by options.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000657ac_init_help=
658ac_init_version=false
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000659# The variables have the same names as the options, with
660# dashes changed to underlines.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000661cache_file=/dev/null
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000662exec_prefix=NONE
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000663no_create=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000664no_recursion=
665prefix=NONE
666program_prefix=NONE
667program_suffix=NONE
668program_transform_name=s,x,x,
669silent=
670site=
671srcdir=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000672verbose=
673x_includes=NONE
674x_libraries=NONE
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000675
676# Installation directory options.
677# These are left unexpanded so users can "make install exec_prefix=/foo"
678# and all the variables that are supposed to be based on exec_prefix
679# by default will actually change.
680# Use braces instead of parens because sh, perl, etc. also accept them.
681# (The list follows the same order as the GNU Coding Standards.)
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000682bindir='${exec_prefix}/bin'
683sbindir='${exec_prefix}/sbin'
684libexecdir='${exec_prefix}/libexec'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000685datarootdir='${prefix}/share'
686datadir='${datarootdir}'
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000687sysconfdir='${prefix}/etc'
688sharedstatedir='${prefix}/com'
689localstatedir='${prefix}/var'
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000690includedir='${prefix}/include'
691oldincludedir='/usr/include'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000692docdir='${datarootdir}/doc/${PACKAGE}'
693infodir='${datarootdir}/info'
694htmldir='${docdir}'
695dvidir='${docdir}'
696pdfdir='${docdir}'
697psdir='${docdir}'
698libdir='${exec_prefix}/lib'
699localedir='${datarootdir}/locale'
700mandir='${datarootdir}/man'
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000701
702ac_prev=
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000703ac_dashdash=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000704for ac_option
705do
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000706 # If the previous option needs an argument, assign it.
707 if test -n "$ac_prev"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000708 eval $ac_prev=\$ac_option
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000709 ac_prev=
710 continue
711 fi
712
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000713 case $ac_option in
714 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
715 *) ac_optarg=yes ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000716 esac
717
718 # Accept the important Cygnus configure options, so we can diagnose typos.
719
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000720 case $ac_dashdash$ac_option in
721 --)
722 ac_dashdash=yes ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000723
724 -bindir | --bindir | --bindi | --bind | --bin | --bi)
725 ac_prev=bindir ;;
726 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000727 bindir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000728
729 -build | --build | --buil | --bui | --bu)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000730 ac_prev=build_alias ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000731 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000732 build_alias=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000733
734 -cache-file | --cache-file | --cache-fil | --cache-fi \
735 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
736 ac_prev=cache_file ;;
737 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
738 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000739 cache_file=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000740
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000741 --config-cache | -C)
742 cache_file=config.cache ;;
743
744 -datadir | --datadir | --datadi | --datad)
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000745 ac_prev=datadir ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000746 -datadir=* | --datadir=* | --datadi=* | --datad=*)
747 datadir=$ac_optarg ;;
748
749 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
750 | --dataroo | --dataro | --datar)
751 ac_prev=datarootdir ;;
752 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
753 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
754 datarootdir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000755
756 -disable-* | --disable-*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000757 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000758 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
761 { (exit 1); exit 1; }; }
762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
763 eval enable_$ac_feature=no ;;
764
765 -docdir | --docdir | --docdi | --doc | --do)
766 ac_prev=docdir ;;
767 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
768 docdir=$ac_optarg ;;
769
770 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
771 ac_prev=dvidir ;;
772 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
773 dvidir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000774
775 -enable-* | --enable-*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000776 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000777 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000778 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
782 eval enable_$ac_feature=\$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000783
784 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
785 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
786 | --exec | --exe | --ex)
787 ac_prev=exec_prefix ;;
788 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
789 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
790 | --exec=* | --exe=* | --ex=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000791 exec_prefix=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000792
793 -gas | --gas | --ga | --g)
794 # Obsolete; use --with-gas.
795 with_gas=yes ;;
796
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000797 -help | --help | --hel | --he | -h)
798 ac_init_help=long ;;
799 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
800 ac_init_help=recursive ;;
801 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
802 ac_init_help=short ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000803
804 -host | --host | --hos | --ho)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000805 ac_prev=host_alias ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000806 -host=* | --host=* | --hos=* | --ho=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000807 host_alias=$ac_optarg ;;
808
809 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
810 ac_prev=htmldir ;;
811 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
812 | --ht=*)
813 htmldir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000814
815 -includedir | --includedir | --includedi | --included | --include \
816 | --includ | --inclu | --incl | --inc)
817 ac_prev=includedir ;;
818 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
819 | --includ=* | --inclu=* | --incl=* | --inc=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000820 includedir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000821
822 -infodir | --infodir | --infodi | --infod | --info | --inf)
823 ac_prev=infodir ;;
824 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000825 infodir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000826
827 -libdir | --libdir | --libdi | --libd)
828 ac_prev=libdir ;;
829 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000830 libdir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000831
832 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
833 | --libexe | --libex | --libe)
834 ac_prev=libexecdir ;;
835 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
836 | --libexe=* | --libex=* | --libe=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000837 libexecdir=$ac_optarg ;;
838
839 -localedir | --localedir | --localedi | --localed | --locale)
840 ac_prev=localedir ;;
841 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
842 localedir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000843
844 -localstatedir | --localstatedir | --localstatedi | --localstated \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000845 | --localstate | --localstat | --localsta | --localst | --locals)
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000846 ac_prev=localstatedir ;;
847 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000848 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
849 localstatedir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000850
851 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
852 ac_prev=mandir ;;
853 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000854 mandir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000855
856 -nfp | --nfp | --nf)
857 # Obsolete; use --without-fp.
858 with_fp=no ;;
859
860 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000861 | --no-cr | --no-c | -n)
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000862 no_create=yes ;;
863
864 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
865 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
866 no_recursion=yes ;;
867
868 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
869 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
870 | --oldin | --oldi | --old | --ol | --o)
871 ac_prev=oldincludedir ;;
872 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
873 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
874 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000875 oldincludedir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000876
877 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
878 ac_prev=prefix ;;
879 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000880 prefix=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000881
882 -program-prefix | --program-prefix | --program-prefi | --program-pref \
883 | --program-pre | --program-pr | --program-p)
884 ac_prev=program_prefix ;;
885 -program-prefix=* | --program-prefix=* | --program-prefi=* \
886 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000887 program_prefix=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000888
889 -program-suffix | --program-suffix | --program-suffi | --program-suff \
890 | --program-suf | --program-su | --program-s)
891 ac_prev=program_suffix ;;
892 -program-suffix=* | --program-suffix=* | --program-suffi=* \
893 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000894 program_suffix=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000895
896 -program-transform-name | --program-transform-name \
897 | --program-transform-nam | --program-transform-na \
898 | --program-transform-n | --program-transform- \
899 | --program-transform | --program-transfor \
900 | --program-transfo | --program-transf \
901 | --program-trans | --program-tran \
902 | --progr-tra | --program-tr | --program-t)
903 ac_prev=program_transform_name ;;
904 -program-transform-name=* | --program-transform-name=* \
905 | --program-transform-nam=* | --program-transform-na=* \
906 | --program-transform-n=* | --program-transform-=* \
907 | --program-transform=* | --program-transfor=* \
908 | --program-transfo=* | --program-transf=* \
909 | --program-trans=* | --program-tran=* \
910 | --progr-tra=* | --program-tr=* | --program-t=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000911 program_transform_name=$ac_optarg ;;
912
913 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
914 ac_prev=pdfdir ;;
915 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
916 pdfdir=$ac_optarg ;;
917
918 -psdir | --psdir | --psdi | --psd | --ps)
919 ac_prev=psdir ;;
920 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
921 psdir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000922
923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
924 | -silent | --silent | --silen | --sile | --sil)
925 silent=yes ;;
926
927 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
928 ac_prev=sbindir ;;
929 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
930 | --sbi=* | --sb=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000931 sbindir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000932
933 -sharedstatedir | --sharedstatedir | --sharedstatedi \
934 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
935 | --sharedst | --shareds | --shared | --share | --shar \
936 | --sha | --sh)
937 ac_prev=sharedstatedir ;;
938 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
939 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
940 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
941 | --sha=* | --sh=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000942 sharedstatedir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000943
944 -site | --site | --sit)
945 ac_prev=site ;;
946 -site=* | --site=* | --sit=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000947 site=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000948
949 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
950 ac_prev=srcdir ;;
951 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000952 srcdir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000953
954 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
955 | --syscon | --sysco | --sysc | --sys | --sy)
956 ac_prev=sysconfdir ;;
957 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
958 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000959 sysconfdir=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000960
961 -target | --target | --targe | --targ | --tar | --ta | --t)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000962 ac_prev=target_alias ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000963 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000964 target_alias=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000965
966 -v | -verbose | --verbose | --verbos | --verbo | --verb)
967 verbose=yes ;;
968
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000969 -version | --version | --versio | --versi | --vers | -V)
970 ac_init_version=: ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000971
972 -with-* | --with-*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000973 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000974 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid package name: $ac_package" >&2
977 { (exit 1); exit 1; }; }
978 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
979 eval with_$ac_package=\$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000980
981 -without-* | --without-*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000982 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000983 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000984 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid package name: $ac_package" >&2
986 { (exit 1); exit 1; }; }
987 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
988 eval with_$ac_package=no ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +0000989
990 --x)
991 # Obsolete; use --with-x.
992 with_x=yes ;;
993
994 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
995 | --x-incl | --x-inc | --x-in | --x-i)
996 ac_prev=x_includes ;;
997 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
998 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000999 x_includes=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001000
1001 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1002 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1003 ac_prev=x_libraries ;;
1004 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1005 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001006 x_libraries=$ac_optarg ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001007
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001008 -*) { echo "$as_me: error: unrecognized option: $ac_option
1009Try \`$0 --help' for more information." >&2
1010 { (exit 1); exit 1; }; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001011 ;;
1012
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001013 *=*)
1014 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1018 { (exit 1); exit 1; }; }
1019 eval $ac_envvar=\$ac_optarg
1020 export $ac_envvar ;;
1021
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001022 *)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001023 # FIXME: should be removed in autoconf 3.0.
1024 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1025 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1027 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001028 ;;
1029
1030 esac
1031done
1032
1033if test -n "$ac_prev"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001034 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1035 { echo "$as_me: error: missing argument to $ac_option" >&2
1036 { (exit 1); exit 1; }; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001037fi
1038
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001039# Be sure to have absolute directory names.
1040for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001044do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001045 eval ac_val=\$$ac_var
1046 case $ac_val in
1047 [\\/$]* | ?:[\\/]* ) continue;;
1048 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001049 esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001050 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1051 { (exit 1); exit 1; }; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001052done
1053
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001054# There might be people who depend on the old broken behavior: `$host'
1055# used to hold the argument of --host etc.
1056# FIXME: To remove some day.
1057build=$build_alias
1058host=$host_alias
1059target=$target_alias
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001060
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001061# FIXME: To remove some day.
1062if test "x$host_alias" != x; then
1063 if test "x$build_alias" = x; then
1064 cross_compiling=maybe
1065 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1066 If a cross compiler is detected then cross compile mode will be used." >&2
1067 elif test "x$build_alias" != "x$host_alias"; then
1068 cross_compiling=yes
1069 fi
1070fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001071
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001072ac_tool_prefix=
1073test -n "$host_alias" && ac_tool_prefix=$host_alias-
1074
1075test "$silent" = yes && exec 6>/dev/null
1076
1077
1078ac_pwd=`pwd` && test -n "$ac_pwd" &&
1079ac_ls_di=`ls -di .` &&
1080ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1081 { echo "$as_me: error: Working directory cannot be determined" >&2
1082 { (exit 1); exit 1; }; }
1083test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1084 { echo "$as_me: error: pwd does not report name of working directory" >&2
1085 { (exit 1); exit 1; }; }
1086
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001087
1088# Find the source files, if location was not specified.
1089if test -z "$srcdir"; then
1090 ac_srcdir_defaulted=yes
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001091 # Try the directory containing this script, then the parent directory.
1092 ac_confdir=`$as_dirname -- "$0" ||
1093$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1094 X"$0" : 'X\(//\)[^/]' \| \
1095 X"$0" : 'X\(//\)$' \| \
1096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1097echo X"$0" |
1098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1099 s//\1/
1100 q
1101 }
1102 /^X\(\/\/\)[^/].*/{
1103 s//\1/
1104 q
1105 }
1106 /^X\(\/\/\)$/{
1107 s//\1/
1108 q
1109 }
1110 /^X\(\/\).*/{
1111 s//\1/
1112 q
1113 }
1114 s/.*/./; q'`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001115 srcdir=$ac_confdir
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001116 if test ! -r "$srcdir/$ac_unique_file"; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001117 srcdir=..
1118 fi
1119else
1120 ac_srcdir_defaulted=no
1121fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001122if test ! -r "$srcdir/$ac_unique_file"; then
1123 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1124 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1125 { (exit 1); exit 1; }; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001126fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001127ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1128ac_abs_confdir=`(
1129 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1130 { (exit 1); exit 1; }; }
1131 pwd)`
1132# When building in place, set srcdir=.
1133if test "$ac_abs_confdir" = "$ac_pwd"; then
1134 srcdir=.
1135fi
1136# Remove unnecessary trailing slashes from srcdir.
1137# Double slashes in file names in object file debugging info
1138# mess up M-x gdb in Emacs.
1139case $srcdir in
1140*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1141esac
1142for ac_var in $ac_precious_vars; do
1143 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1144 eval ac_env_${ac_var}_value=\$${ac_var}
1145 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1146 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1147done
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001148
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001149#
1150# Report the --help message.
1151#
1152if test "$ac_init_help" = "long"; then
1153 # Omit some internal or obsolete options to make the list less imposing.
1154 # This message is too long to be a string in the A/UX 3.1 sh.
1155 cat <<_ACEOF
1156\`configure' configures this package to adapt to many kinds of systems.
1157
1158Usage: $0 [OPTION]... [VAR=VALUE]...
1159
1160To assign environment variables (e.g., CC, CFLAGS...), specify them as
1161VAR=VALUE. See below for descriptions of some of the useful variables.
1162
1163Defaults for the options are specified in brackets.
1164
1165Configuration:
1166 -h, --help display this help and exit
1167 --help=short display options specific to this package
1168 --help=recursive display the short help of all the included packages
1169 -V, --version display version information and exit
1170 -q, --quiet, --silent do not print \`checking...' messages
1171 --cache-file=FILE cache test results in FILE [disabled]
1172 -C, --config-cache alias for \`--cache-file=config.cache'
1173 -n, --no-create do not create output files
1174 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1175
1176Installation directories:
1177 --prefix=PREFIX install architecture-independent files in PREFIX
1178 [$ac_default_prefix]
1179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1180 [PREFIX]
1181
1182By default, \`make install' will install all the files in
1183\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1184an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1185for instance \`--prefix=\$HOME'.
1186
1187For better control, use the options below.
1188
1189Fine tuning of the installation directories:
1190 --bindir=DIR user executables [EPREFIX/bin]
1191 --sbindir=DIR system admin executables [EPREFIX/sbin]
1192 --libexecdir=DIR program executables [EPREFIX/libexec]
1193 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1194 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1195 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1196 --libdir=DIR object code libraries [EPREFIX/lib]
1197 --includedir=DIR C header files [PREFIX/include]
1198 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1199 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1200 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1201 --infodir=DIR info documentation [DATAROOTDIR/info]
1202 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1203 --mandir=DIR man documentation [DATAROOTDIR/man]
1204 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1205 --htmldir=DIR html documentation [DOCDIR]
1206 --dvidir=DIR dvi documentation [DOCDIR]
1207 --pdfdir=DIR pdf documentation [DOCDIR]
1208 --psdir=DIR ps documentation [DOCDIR]
1209_ACEOF
1210
1211 cat <<\_ACEOF
1212_ACEOF
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001213fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001214
1215if test -n "$ac_init_help"; then
1216
1217 cat <<\_ACEOF
1218
1219Optional Packages:
1220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1222 --with-installed-zlib use the version of zlib which is installed on the
1223 system instead of the one distributed with VNC
1224 --with-installed-jpeg use the version of jpeg which is installed on the
1225 system instead of the one distributed with VNC
1226
1227Some influential environment variables:
1228 CC C compiler command
1229 CFLAGS C compiler flags
1230 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1231 nonstandard directory <lib dir>
1232 LIBS libraries to pass to the linker, e.g. -l<library>
1233 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1234 you have headers in a nonstandard directory <include dir>
1235 CXX C++ compiler command
1236 CXXFLAGS C++ compiler flags
1237
1238Use these variables to override the choices made by `configure' or to help
1239it to find libraries and programs with nonstandard names/locations.
1240
1241_ACEOF
1242ac_status=$?
1243fi
1244
1245if test "$ac_init_help" = "recursive"; then
1246 # If there are subdirs, report their specific --help.
1247 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1248 test -d "$ac_dir" || continue
1249 ac_builddir=.
1250
1251case "$ac_dir" in
1252.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1253*)
1254 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1255 # A ".." for each directory in $ac_dir_suffix.
1256 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1257 case $ac_top_builddir_sub in
1258 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1259 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1260 esac ;;
1261esac
1262ac_abs_top_builddir=$ac_pwd
1263ac_abs_builddir=$ac_pwd$ac_dir_suffix
1264# for backward compatibility:
1265ac_top_builddir=$ac_top_build_prefix
1266
1267case $srcdir in
1268 .) # We are building in place.
1269 ac_srcdir=.
1270 ac_top_srcdir=$ac_top_builddir_sub
1271 ac_abs_top_srcdir=$ac_pwd ;;
1272 [\\/]* | ?:[\\/]* ) # Absolute name.
1273 ac_srcdir=$srcdir$ac_dir_suffix;
1274 ac_top_srcdir=$srcdir
1275 ac_abs_top_srcdir=$srcdir ;;
1276 *) # Relative name.
1277 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1278 ac_top_srcdir=$ac_top_build_prefix$srcdir
1279 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1280esac
1281ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1282
1283 cd "$ac_dir" || { ac_status=$?; continue; }
1284 # Check for guested configure.
1285 if test -f "$ac_srcdir/configure.gnu"; then
1286 echo &&
1287 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1288 elif test -f "$ac_srcdir/configure"; then
1289 echo &&
1290 $SHELL "$ac_srcdir/configure" --help=recursive
1291 else
1292 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1293 fi || ac_status=$?
1294 cd "$ac_pwd" || { ac_status=$?; break; }
1295 done
1296fi
1297
1298test -n "$ac_init_help" && exit $ac_status
1299if $ac_init_version; then
1300 cat <<\_ACEOF
1301configure
1302generated by GNU Autoconf 2.61
1303
1304Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13052002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1306This configure script is free software; the Free Software Foundation
1307gives unlimited permission to copy, distribute and modify it.
1308_ACEOF
1309 exit
1310fi
1311cat >config.log <<_ACEOF
1312This file contains any messages produced by compilers while
1313running configure, to aid debugging if configure makes a mistake.
1314
1315It was created by $as_me, which was
1316generated by GNU Autoconf 2.61. Invocation command line was
1317
1318 $ $0 $@
1319
1320_ACEOF
1321exec 5>>config.log
1322{
1323cat <<_ASUNAME
1324## --------- ##
1325## Platform. ##
1326## --------- ##
1327
1328hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1329uname -m = `(uname -m) 2>/dev/null || echo unknown`
1330uname -r = `(uname -r) 2>/dev/null || echo unknown`
1331uname -s = `(uname -s) 2>/dev/null || echo unknown`
1332uname -v = `(uname -v) 2>/dev/null || echo unknown`
1333
1334/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1335/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1336
1337/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1338/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1339/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1340/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1341/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1342/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1343/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1344
1345_ASUNAME
1346
1347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348for as_dir in $PATH
1349do
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 echo "PATH: $as_dir"
1353done
1354IFS=$as_save_IFS
1355
1356} >&5
1357
1358cat >&5 <<_ACEOF
1359
1360
1361## ----------- ##
1362## Core tests. ##
1363## ----------- ##
1364
1365_ACEOF
1366
1367
1368# Keep a trace of the command line.
1369# Strip out --no-create and --no-recursion so they do not pile up.
1370# Strip out --silent because we don't want to record it for future runs.
1371# Also quote any args containing shell meta-characters.
1372# Make two passes to allow for proper duplicate-argument suppression.
1373ac_configure_args=
1374ac_configure_args0=
1375ac_configure_args1=
1376ac_must_keep_next=false
1377for ac_pass in 1 2
1378do
1379 for ac_arg
1380 do
1381 case $ac_arg in
1382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1384 | -silent | --silent | --silen | --sile | --sil)
1385 continue ;;
1386 *\'*)
1387 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1388 esac
1389 case $ac_pass in
1390 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1391 2)
1392 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1393 if test $ac_must_keep_next = true; then
1394 ac_must_keep_next=false # Got value, back to normal.
1395 else
1396 case $ac_arg in
1397 *=* | --config-cache | -C | -disable-* | --disable-* \
1398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1400 | -with-* | --with-* | -without-* | --without-* | --x)
1401 case "$ac_configure_args0 " in
1402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1403 esac
1404 ;;
1405 -* ) ac_must_keep_next=true ;;
1406 esac
1407 fi
1408 ac_configure_args="$ac_configure_args '$ac_arg'"
1409 ;;
1410 esac
1411 done
1412done
1413$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1414$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1415
1416# When interrupted or exit'd, cleanup temporary files, and complete
1417# config.log. We remove comments because anyway the quotes in there
1418# would cause problems or look ugly.
1419# WARNING: Use '\'' to represent an apostrophe within the trap.
1420# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1421trap 'exit_status=$?
1422 # Save into config.log some information that might help in debugging.
1423 {
1424 echo
1425
1426 cat <<\_ASBOX
1427## ---------------- ##
1428## Cache variables. ##
1429## ---------------- ##
1430_ASBOX
1431 echo
1432 # The following way of writing the cache mishandles newlines in values,
1433(
1434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1435 eval ac_val=\$$ac_var
1436 case $ac_val in #(
1437 *${as_nl}*)
1438 case $ac_var in #(
1439 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1440echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1441 esac
1442 case $ac_var in #(
1443 _ | IFS | as_nl) ;; #(
1444 *) $as_unset $ac_var ;;
1445 esac ;;
1446 esac
1447 done
1448 (set) 2>&1 |
1449 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1450 *${as_nl}ac_space=\ *)
1451 sed -n \
1452 "s/'\''/'\''\\\\'\'''\''/g;
1453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1454 ;; #(
1455 *)
1456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1457 ;;
1458 esac |
1459 sort
1460)
1461 echo
1462
1463 cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468 echo
1469 for ac_var in $ac_subst_vars
1470 do
1471 eval ac_val=\$$ac_var
1472 case $ac_val in
1473 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1474 esac
1475 echo "$ac_var='\''$ac_val'\''"
1476 done | sort
1477 echo
1478
1479 if test -n "$ac_subst_files"; then
1480 cat <<\_ASBOX
1481## ------------------- ##
1482## File substitutions. ##
1483## ------------------- ##
1484_ASBOX
1485 echo
1486 for ac_var in $ac_subst_files
1487 do
1488 eval ac_val=\$$ac_var
1489 case $ac_val in
1490 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1491 esac
1492 echo "$ac_var='\''$ac_val'\''"
1493 done | sort
1494 echo
1495 fi
1496
1497 if test -s confdefs.h; then
1498 cat <<\_ASBOX
1499## ----------- ##
1500## confdefs.h. ##
1501## ----------- ##
1502_ASBOX
1503 echo
1504 cat confdefs.h
1505 echo
1506 fi
1507 test "$ac_signal" != 0 &&
1508 echo "$as_me: caught signal $ac_signal"
1509 echo "$as_me: exit $exit_status"
1510 } >&5
1511 rm -f core *.core core.conftest.* &&
1512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1513 exit $exit_status
1514' 0
1515for ac_signal in 1 2 13 15; do
1516 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1517done
1518ac_signal=0
1519
1520# confdefs.h avoids OS command line length limits that DEFS can exceed.
1521rm -f -r conftest* confdefs.h
1522
1523# Predefined preprocessor variables.
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_NAME "$PACKAGE_NAME"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_VERSION "$PACKAGE_VERSION"
1537_ACEOF
1538
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_STRING "$PACKAGE_STRING"
1542_ACEOF
1543
1544
1545cat >>confdefs.h <<_ACEOF
1546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1547_ACEOF
1548
1549
1550# Let the site file select an alternate cache file if it wants to.
1551# Prefer explicitly selected file to automatically selected ones.
1552if test -n "$CONFIG_SITE"; then
1553 set x "$CONFIG_SITE"
1554elif test "x$prefix" != xNONE; then
1555 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1556else
1557 set x "$ac_default_prefix/share/config.site" \
1558 "$ac_default_prefix/etc/config.site"
1559fi
1560shift
1561for ac_site_file
1562do
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001563 if test -r "$ac_site_file"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001564 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1565echo "$as_me: loading site script $ac_site_file" >&6;}
1566 sed 's/^/| /' "$ac_site_file" >&5
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001567 . "$ac_site_file"
1568 fi
1569done
1570
1571if test -r "$cache_file"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001572 # Some versions of bash will fail to source /dev/null (special
1573 # files actually), so we avoid doing that.
1574 if test -f "$cache_file"; then
1575 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1576echo "$as_me: loading cache $cache_file" >&6;}
1577 case $cache_file in
1578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1579 *) . "./$cache_file";;
1580 esac
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001581 fi
1582else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001583 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1584echo "$as_me: creating cache $cache_file" >&6;}
1585 >$cache_file
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001586fi
1587
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001588# Check that the precious variables saved in the cache have kept the same
1589# value.
1590ac_cache_corrupted=false
1591for ac_var in $ac_precious_vars; do
1592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1593 eval ac_new_set=\$ac_env_${ac_var}_set
1594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1595 eval ac_new_val=\$ac_env_${ac_var}_value
1596 case $ac_old_set,$ac_new_set in
1597 set,)
1598 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1599echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1600 ac_cache_corrupted=: ;;
1601 ,set)
1602 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1603echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1604 ac_cache_corrupted=: ;;
1605 ,);;
1606 *)
1607 if test "x$ac_old_val" != "x$ac_new_val"; then
1608 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1609echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1610 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1611echo "$as_me: former value: $ac_old_val" >&2;}
1612 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1613echo "$as_me: current value: $ac_new_val" >&2;}
1614 ac_cache_corrupted=:
1615 fi;;
1616 esac
1617 # Pass precious variables to config.status.
1618 if test "$ac_new_set" = set; then
1619 case $ac_new_val in
1620 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1621 *) ac_arg=$ac_var=$ac_new_val ;;
1622 esac
1623 case " $ac_configure_args " in
1624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1625 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1626 esac
1627 fi
1628done
1629if $ac_cache_corrupted; then
1630 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1631echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1632 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1633echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1634 { (exit 1); exit 1; }; }
1635fi
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653ac_ext=c
1654ac_cpp='$CPP $CPPFLAGS'
1655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1657ac_compiler_gnu=$ac_cv_c_compiler_gnu
1658
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001659
1660
1661ac_cv_prog_cc_g=no
1662ac_cv_prog_cxx_g=no
1663
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001664ac_ext=c
1665ac_cpp='$CPP $CPPFLAGS'
1666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1668ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}gcc; ac_word=$2
1672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
1692done
1693IFS=$as_save_IFS
1694
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001695fi
1696fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001697CC=$ac_cv_prog_CC
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001698if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001699 { echo "$as_me:$LINENO: result: $CC" >&5
1700echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001701else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001702 { echo "$as_me:$LINENO: result: no" >&5
1703echo "${ECHO_T}no" >&6; }
1704fi
1705
1706
1707fi
1708if test -z "$ac_cv_prog_CC"; then
1709 ac_ct_CC=$CC
1710 # Extract the first word of "gcc", so it can be a program name with args.
1711set dummy gcc; ac_word=$2
1712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717 if test -n "$ac_ct_CC"; then
1718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1719else
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1727 ac_cv_prog_ac_ct_CC="gcc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1730 fi
1731done
1732done
1733IFS=$as_save_IFS
1734
1735fi
1736fi
1737ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738if test -n "$ac_ct_CC"; then
1739 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1740echo "${ECHO_T}$ac_ct_CC" >&6; }
1741else
1742 { echo "$as_me:$LINENO: result: no" >&5
1743echo "${ECHO_T}no" >&6; }
1744fi
1745
1746 if test "x$ac_ct_CC" = x; then
1747 CC=""
1748 else
1749 case $cross_compiling:$ac_tool_warned in
1750yes:)
1751{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1752whose name does not start with the host triplet. If you think this
1753configuration is useful to you, please write to autoconf@gnu.org." >&5
1754echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1755whose name does not start with the host triplet. If you think this
1756configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1757ac_tool_warned=yes ;;
1758esac
1759 CC=$ac_ct_CC
1760 fi
1761else
1762 CC="$ac_cv_prog_CC"
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001763fi
1764
1765if test -z "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001766 if test -n "$ac_tool_prefix"; then
1767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1768set dummy ${ac_tool_prefix}cc; ac_word=$2
1769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1771if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1784 ac_cv_prog_CC="${ac_tool_prefix}cc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 break 2
1787 fi
1788done
1789done
1790IFS=$as_save_IFS
1791
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
1796 { echo "$as_me:$LINENO: result: $CC" >&5
1797echo "${ECHO_T}$CC" >&6; }
1798else
1799 { echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6; }
1801fi
1802
1803
1804 fi
1805fi
1806if test -z "$CC"; then
1807 # Extract the first word of "cc", so it can be a program name with args.
1808set dummy cc; ac_word=$2
1809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1811if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001817 ac_prog_rejected=no
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1826 ac_prog_rejected=yes
1827 continue
1828 fi
1829 ac_cv_prog_CC="cc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833done
1834done
1835IFS=$as_save_IFS
1836
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001837if test $ac_prog_rejected = yes; then
1838 # We found a bogon in the path, so make sure we never use it.
1839 set dummy $ac_cv_prog_CC
1840 shift
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001841 if test $# != 0; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001842 # We chose a different compiler from the bogus one.
1843 # However, it has the same basename, so the bogon will be chosen
1844 # first if we set CC to just the basename; use the full file name.
1845 shift
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001847 fi
1848fi
1849fi
1850fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001851CC=$ac_cv_prog_CC
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001852if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001853 { echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001855else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001856 { echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001858fi
1859
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001860
1861fi
1862if test -z "$CC"; then
1863 if test -n "$ac_tool_prefix"; then
1864 for ac_prog in cl.exe
1865 do
1866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1870if test "${ac_cv_prog_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001872else
1873 if test -n "$CC"; then
1874 ac_cv_prog_CC="$CC" # Let the user override the test.
1875else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887done
1888done
1889IFS=$as_save_IFS
1890
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001891fi
1892fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001893CC=$ac_cv_prog_CC
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001894if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001895 { echo "$as_me:$LINENO: result: $CC" >&5
1896echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001897else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001898 { echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001900fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001901
1902
1903 test -n "$CC" && break
1904 done
1905fi
1906if test -z "$CC"; then
1907 ac_ct_CC=$CC
1908 for ac_prog in cl.exe
1909do
1910 # Extract the first word of "$ac_prog", so it can be a program name with args.
1911set dummy $ac_prog; ac_word=$2
1912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919else
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_ac_ct_CC="$ac_prog"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001930 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001931done
1932done
1933IFS=$as_save_IFS
1934
1935fi
1936fi
1937ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938if test -n "$ac_ct_CC"; then
1939 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940echo "${ECHO_T}$ac_ct_CC" >&6; }
1941else
1942 { echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001944fi
1945
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001946
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001947 test -n "$ac_ct_CC" && break
1948done
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001949
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001950 if test "x$ac_ct_CC" = x; then
1951 CC=""
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001952 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001953 case $cross_compiling:$ac_tool_warned in
1954yes:)
1955{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1956whose name does not start with the host triplet. If you think this
1957configuration is useful to you, please write to autoconf@gnu.org." >&5
1958echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1959whose name does not start with the host triplet. If you think this
1960configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1961ac_tool_warned=yes ;;
1962esac
1963 CC=$ac_ct_CC
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001964 fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001965fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001966
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001967fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00001968
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001969
1970test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: no acceptable C compiler found in \$PATH
1973See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1975
1976# Provide some information about the compiler.
1977echo "$as_me:$LINENO: checking for C compiler version" >&5
1978ac_compiler=`set X $ac_compile; echo $2`
1979{ (ac_try="$ac_compiler --version >&5"
1980case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983esac
1984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1985 (eval "$ac_compiler --version >&5") 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1989{ (ac_try="$ac_compiler -v >&5"
1990case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993esac
1994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1995 (eval "$ac_compiler -v >&5") 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999{ (ac_try="$ac_compiler -V >&5"
2000case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003esac
2004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2005 (eval "$ac_compiler -V >&5") 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009
2010cat >conftest.$ac_ext <<_ACEOF
2011/* confdefs.h. */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h. */
2016
2017int
2018main ()
2019{
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
2026ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2031echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033#
2034# List of possible output files, starting from the most likely.
2035# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2036# only as a last resort. b.out is created by i960 compilers.
2037ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2038#
2039# The IRIX 6 linker writes into existing files which may not be
2040# executable, retaining their permissions. Remove them first so a
2041# subsequent execution test works.
2042ac_rmfiles=
2043for ac_file in $ac_files
2044do
2045 case $ac_file in
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2048 esac
2049done
2050rm -f $ac_rmfiles
2051
2052if { (ac_try="$ac_link_default"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2058 (eval "$ac_link_default") 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2063# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2064# in a Makefile. We should not override ac_cv_exeext if it was cached,
2065# so that the user can short-circuit this test for compilers unknown to
2066# Autoconf.
2067for ac_file in $ac_files ''
2068do
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2072 ;;
2073 [ab].out )
2074 # We found the default executable, but exeext='' is most
2075 # certainly right.
2076 break;;
2077 *.* )
2078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2079 then :; else
2080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 fi
2082 # We set ac_cv_exeext here because the later test for it is not
2083 # safe: cross compilers may not add the suffix if given an `-o'
2084 # argument, so we may need to know it at that point already.
2085 # Even if this section looks crufty: it has the advantage of
2086 # actually working.
2087 break;;
2088 * )
2089 break;;
2090 esac
2091done
2092test "$ac_cv_exeext" = no && ac_cv_exeext=
2093
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002094else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002095 ac_file=''
2096fi
2097
2098{ echo "$as_me:$LINENO: result: $ac_file" >&5
2099echo "${ECHO_T}$ac_file" >&6; }
2100if test -z "$ac_file"; then
2101 echo "$as_me: failed program was:" >&5
2102sed 's/^/| /' conftest.$ac_ext >&5
2103
2104{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: C compiler cannot create executables
2107See \`config.log' for more details." >&2;}
2108 { (exit 77); exit 77; }; }
2109fi
2110
2111ac_exeext=$ac_cv_exeext
2112
2113# Check that the compiler produces executables we can run. If not, either
2114# the compiler is broken, or we cross compile.
2115{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2116echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2117# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2118# If not cross compiling, check that we can run a simple program.
2119if test "$cross_compiling" != yes; then
2120 if { ac_try='./$ac_file'
2121 { (case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_try") 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 cross_compiling=no
2131 else
2132 if test "$cross_compiling" = maybe; then
2133 cross_compiling=yes
2134 else
2135 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2136If you meant to cross compile, use \`--host'.
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot run C compiled programs.
2139If you meant to cross compile, use \`--host'.
2140See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2142 fi
2143 fi
2144fi
2145{ echo "$as_me:$LINENO: result: yes" >&5
2146echo "${ECHO_T}yes" >&6; }
2147
2148rm -f a.out a.exe conftest$ac_cv_exeext b.out
2149ac_clean_files=$ac_clean_files_save
2150# Check that the compiler produces executables we can run. If not, either
2151# the compiler is broken, or we cross compile.
2152{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2153echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2154{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2155echo "${ECHO_T}$cross_compiling" >&6; }
2156
2157{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2158echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2159if { (ac_try="$ac_link"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165 (eval "$ac_link") 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2171# work properly (i.e., refer to `conftest.exe'), while it won't with
2172# `rm'.
2173for ac_file in conftest.exe conftest conftest.*; do
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 break;;
2179 * ) break;;
2180 esac
2181done
2182else
2183 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2184See \`config.log' for more details." >&5
2185echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2186See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2188fi
2189
2190rm -f conftest$ac_cv_exeext
2191{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2192echo "${ECHO_T}$ac_cv_exeext" >&6; }
2193
2194rm -f conftest.$ac_ext
2195EXEEXT=$ac_cv_exeext
2196ac_exeext=$EXEEXT
2197{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2198echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2199if test "${ac_cv_objext+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h. */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h. */
2208
2209int
2210main ()
2211{
2212
2213 ;
2214 return 0;
2215}
2216_ACEOF
2217rm -f conftest.o conftest.obj
2218if { (ac_try="$ac_compile"
2219case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_compile") 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 for ac_file in conftest.o conftest.obj conftest.*; do
2229 test -f "$ac_file" || continue;
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2233 break;;
2234 esac
2235done
2236else
2237 echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot compute suffix of object files: cannot compile
2243See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2245fi
2246
2247rm -f conftest.$ac_cv_objext conftest.$ac_ext
2248fi
2249{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2250echo "${ECHO_T}$ac_cv_objext" >&6; }
2251OBJEXT=$ac_cv_objext
2252ac_objext=$OBJEXT
2253{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2254echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2255if test "${ac_cv_c_compiler_gnu+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h. */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h. */
2264
2265int
2266main ()
2267{
2268#ifndef __GNUC__
2269 choke me
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002270#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002271
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276rm -f conftest.$ac_objext
2277if { (ac_try="$ac_compile"
2278case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281esac
2282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283 (eval "$ac_compile") 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } && {
2290 test -z "$ac_c_werror_flag" ||
2291 test ! -s conftest.err
2292 } && test -s conftest.$ac_objext; then
2293 ac_compiler_gnu=yes
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002294else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002295 echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_compiler_gnu=no
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002299fi
2300
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302ac_cv_c_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002303
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002304fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002305{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2306echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2307GCC=`test $ac_compiler_gnu = yes && echo yes`
2308ac_test_CFLAGS=${CFLAGS+set}
2309ac_save_CFLAGS=$CFLAGS
2310{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2311echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2312if test "${ac_cv_prog_cc_g+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002314else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002315 ac_save_c_werror_flag=$ac_c_werror_flag
2316 ac_c_werror_flag=yes
2317 ac_cv_prog_cc_g=no
2318 CFLAGS="-g"
2319 cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h. */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h. */
2325
2326int
2327main ()
2328{
2329
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (ac_try="$ac_compile"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_compile") 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } && {
2348 test -z "$ac_c_werror_flag" ||
2349 test ! -s conftest.err
2350 } && test -s conftest.$ac_objext; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002351 ac_cv_prog_cc_g=yes
2352else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 CFLAGS=""
2357 cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h. */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h. */
2363
2364int
2365main ()
2366{
2367
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then
2389 :
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_c_werror_flag=$ac_save_c_werror_flag
2395 CFLAGS="-g"
2396 cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h. */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h. */
2402
2403int
2404main ()
2405{
2406
2407 ;
2408 return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (ac_try="$ac_compile"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compile") 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } && {
2425 test -z "$ac_c_werror_flag" ||
2426 test ! -s conftest.err
2427 } && test -s conftest.$ac_objext; then
2428 ac_cv_prog_cc_g=yes
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002433
2434fi
2435
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437fi
2438
2439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440fi
2441
2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_c_werror_flag=$ac_save_c_werror_flag
2444fi
2445{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2446echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002447if test "$ac_test_CFLAGS" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002448 CFLAGS=$ac_save_CFLAGS
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002449elif test $ac_cv_prog_cc_g = yes; then
2450 if test "$GCC" = yes; then
2451 CFLAGS="-g -O2"
2452 else
2453 CFLAGS="-g"
2454 fi
2455else
2456 if test "$GCC" = yes; then
2457 CFLAGS="-O2"
2458 else
2459 CFLAGS=
2460 fi
2461fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002462{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2463echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2464if test "${ac_cv_prog_cc_c89+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 ac_cv_prog_cc_c89=no
2468ac_save_CC=$CC
2469cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h. */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h. */
2475#include <stdarg.h>
2476#include <stdio.h>
2477#include <sys/types.h>
2478#include <sys/stat.h>
2479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2480struct buf { int x; };
2481FILE * (*rcsopen) (struct buf *, struct stat *, int);
2482static char *e (p, i)
2483 char **p;
2484 int i;
2485{
2486 return p[i];
2487}
2488static char *f (char * (*g) (char **, int), char **p, ...)
2489{
2490 char *s;
2491 va_list v;
2492 va_start (v,p);
2493 s = g (p, va_arg (v,int));
2494 va_end (v);
2495 return s;
2496}
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002497
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2499 function prototypes and stuff, but not '\xHH' hex character constants.
2500 These don't provoke an error unfortunately, instead are silently treated
2501 as 'x'. The following induces an error, until -std is added to get
2502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2503 array size at least. It's necessary to write '\x00'==0 to get something
2504 that's true only with -std. */
2505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2506
2507/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2508 inside strings and character constants. */
2509#define FOO(x) 'x'
2510int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2511
2512int test (int i, double x);
2513struct s1 {int (*f) (int a);};
2514struct s2 {int (*f) (double a);};
2515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516int argc;
2517char **argv;
2518int
2519main ()
2520{
2521return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002528do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002529 CC="$ac_save_CC $ac_arg"
2530 rm -f conftest.$ac_objext
2531if { (ac_try="$ac_compile"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
2547 ac_cv_prog_cc_c89=$ac_arg
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext
2556 test "x$ac_cv_prog_cc_c89" != "xno" && break
2557done
2558rm -f conftest.$ac_ext
2559CC=$ac_save_CC
2560
2561fi
2562# AC_CACHE_VAL
2563case "x$ac_cv_prog_cc_c89" in
2564 x)
2565 { echo "$as_me:$LINENO: result: none needed" >&5
2566echo "${ECHO_T}none needed" >&6; } ;;
2567 xno)
2568 { echo "$as_me:$LINENO: result: unsupported" >&5
2569echo "${ECHO_T}unsupported" >&6; } ;;
2570 *)
2571 CC="$CC $ac_cv_prog_cc_c89"
2572 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2573echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2574esac
2575
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583ac_ext=cpp
2584ac_cpp='$CXXCPP $CPPFLAGS'
2585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2588if test -z "$CXX"; then
2589 if test -n "$CCC"; then
2590 CXX=$CCC
2591 else
2592 if test -n "$ac_tool_prefix"; then
2593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2594 do
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599if test "${ac_cv_prog_CXX+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002601else
2602 if test -n "$CXX"; then
2603 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2604else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002615 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002616done
2617done
2618IFS=$as_save_IFS
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002619
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002620fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002621fi
2622CXX=$ac_cv_prog_CXX
2623if test -n "$CXX"; then
2624 { echo "$as_me:$LINENO: result: $CXX" >&5
2625echo "${ECHO_T}$CXX" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002626else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002627 { echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6; }
2629fi
2630
2631
2632 test -n "$CXX" && break
2633 done
2634fi
2635if test -z "$CXX"; then
2636 ac_ct_CXX=$CXX
2637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$ac_ct_CXX"; then
2647 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_ac_ct_CXX="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2667if test -n "$ac_ct_CXX"; then
2668 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2669echo "${ECHO_T}$ac_ct_CXX" >&6; }
2670else
2671 { echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6; }
2673fi
2674
2675
2676 test -n "$ac_ct_CXX" && break
2677done
2678
2679 if test "x$ac_ct_CXX" = x; then
2680 CXX="g++"
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683yes:)
2684{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685whose name does not start with the host triplet. If you think this
2686configuration is useful to you, please write to autoconf@gnu.org." >&5
2687echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688whose name does not start with the host triplet. If you think this
2689configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690ac_tool_warned=yes ;;
2691esac
2692 CXX=$ac_ct_CXX
2693 fi
2694fi
2695
2696 fi
2697fi
2698# Provide some information about the compiler.
2699echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2700ac_compiler=`set X $ac_compile; echo $2`
2701{ (ac_try="$ac_compiler --version >&5"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711{ (ac_try="$ac_compiler -v >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721{ (ac_try="$ac_compiler -V >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731
2732{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2733echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2734if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737 cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
2743
2744int
2745main ()
2746{
2747#ifndef __GNUC__
2748 choke me
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002749#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755rm -f conftest.$ac_objext
2756if { (ac_try="$ac_compile"
2757case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compile") 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } && {
2769 test -z "$ac_cxx_werror_flag" ||
2770 test ! -s conftest.err
2771 } && test -s conftest.$ac_objext; then
2772 ac_compiler_gnu=yes
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002773else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002774 echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 ac_compiler_gnu=no
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002778fi
2779
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002782
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002783fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002784{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2785echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2786GXX=`test $ac_compiler_gnu = yes && echo yes`
2787ac_test_CXXFLAGS=${CXXFLAGS+set}
2788ac_save_CXXFLAGS=$CXXFLAGS
2789{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2790echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2791if test "${ac_cv_prog_cxx_g+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002793else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002794 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2795 ac_cxx_werror_flag=yes
2796 ac_cv_prog_cxx_g=no
2797 CXXFLAGS="-g"
2798 cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h. */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h. */
2804
2805int
2806main ()
2807{
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext
2814if { (ac_try="$ac_compile"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && {
2827 test -z "$ac_cxx_werror_flag" ||
2828 test ! -s conftest.err
2829 } && test -s conftest.$ac_objext; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002830 ac_cv_prog_cxx_g=yes
2831else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002832 echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 CXXFLAGS=""
2836 cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
2842
2843int
2844main ()
2845{
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (ac_try="$ac_compile"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compile") 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } && {
2865 test -z "$ac_cxx_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest.$ac_objext; then
2868 :
2869else
2870 echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2874 CXXFLAGS="-g"
2875 cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881
2882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_cxx_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 ac_cv_prog_cxx_g=yes
2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002912
2913fi
2914
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916fi
2917
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919fi
2920
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2923fi
2924{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2925echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002926if test "$ac_test_CXXFLAGS" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002927 CXXFLAGS=$ac_save_CXXFLAGS
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002928elif test $ac_cv_prog_cxx_g = yes; then
2929 if test "$GXX" = yes; then
2930 CXXFLAGS="-g -O2"
2931 else
2932 CXXFLAGS="-g"
2933 fi
2934else
2935 if test "$GXX" = yes; then
2936 CXXFLAGS="-O2"
2937 else
2938 CXXFLAGS=
2939 fi
2940fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002946
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002947if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2949set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2952if test "${ac_cv_prog_RANLIB+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002954else
2955 if test -n "$RANLIB"; then
2956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2957else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969done
2970done
2971IFS=$as_save_IFS
2972
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002973fi
2974fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002975RANLIB=$ac_cv_prog_RANLIB
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002976if test -n "$RANLIB"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002977 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2978echo "${ECHO_T}$RANLIB" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002979else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002980 { echo "$as_me:$LINENO: result: no" >&5
2981echo "${ECHO_T}no" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002982fi
2983
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002984
2985fi
2986if test -z "$ac_cv_prog_RANLIB"; then
2987 ac_ct_RANLIB=$RANLIB
2988 # Extract the first word of "ranlib", so it can be a program name with args.
2989set dummy ranlib; ac_word=$2
2990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00002994else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002995 if test -n "$ac_ct_RANLIB"; then
2996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_ac_ct_RANLIB="ranlib"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009done
3010done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3016if test -n "$ac_ct_RANLIB"; then
3017 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3018echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3019else
3020 { echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6; }
3022fi
3023
3024 if test "x$ac_ct_RANLIB" = x; then
3025 RANLIB=":"
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028yes:)
3029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3030whose name does not start with the host triplet. If you think this
3031configuration is useful to you, please write to autoconf@gnu.org." >&5
3032echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3033whose name does not start with the host triplet. If you think this
3034configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3035ac_tool_warned=yes ;;
3036esac
3037 RANLIB=$ac_ct_RANLIB
3038 fi
3039else
3040 RANLIB="$ac_cv_prog_RANLIB"
3041fi
3042
3043{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3045set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 cat >conftest.make <<\_ACEOF
3050SHELL = /bin/sh
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003051all:
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003052 @echo '@@@%%%=$(MAKE)=@@@%%%'
3053_ACEOF
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003054# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003055case `${MAKE-make} -f conftest.make 2>/dev/null` in
3056 *@@@%%%=?*=@@@%%%*)
3057 eval ac_cv_prog_make_${ac_make}_set=yes;;
3058 *)
3059 eval ac_cv_prog_make_${ac_make}_set=no;;
3060esac
3061rm -f conftest.make
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003062fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3064 { echo "$as_me:$LINENO: result: yes" >&5
3065echo "${ECHO_T}yes" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003066 SET_MAKE=
3067else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003068 { echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003070 SET_MAKE="MAKE=${MAKE-make}"
3071fi
3072
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003073ac_ext=cpp
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003074ac_cpp='$CXXCPP $CPPFLAGS'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003078
3079
3080case "`(uname -sr) 2>/dev/null`" in
3081"SunOS 5"*)
3082 SOLARIS=yes
3083 ;;
3084"Linux"*)
3085 LINUX=yes
3086 ;;
3087"IRIX 6"*)
3088 X_LIBS="-L/usr/lib32"
3089 ;;
3090"LynxOS 2"*)
3091 SJLJ_EXCEPTIONS=yes
3092 ;;
3093esac
3094
3095if test "$GCC" = yes; then
3096 CFLAGS="$CFLAGS -Wall"
3097 if test "$SOLARIS" = yes; then
3098 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
3099 fi
3100fi
3101if test "$GXX" = yes; then
3102 CXXFLAGS="$CXXFLAGS -Wall"
3103 if test "$SOLARIS" = yes; then
3104 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
3105 fi
3106 if test "$SJLJ_EXCEPTIONS" = yes; then
3107 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
3108 fi
3109fi
3110
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003111
3112{ echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5
3113echo $ECHO_N "checking for clQuerySchemeFromName in -lcl... $ECHO_C" >&6; }
3114if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003116else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003117 ac_check_lib_save_LIBS=$LIBS
3118LIBS="-lcl $LIBS"
3119cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126/* Override any GCC internal prototype to avoid an error.
3127 Use char because int might match the return type of a GCC
3128 builtin and then its argument prototype would still apply. */
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003129#ifdef __cplusplus
3130extern "C"
3131#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003132char clQuerySchemeFromName ();
3133int
3134main ()
3135{
3136return clQuerySchemeFromName ();
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext conftest$ac_exeext
3142if { (ac_try="$ac_link"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_link") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_cxx_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest$ac_exeext &&
3158 $as_test_x conftest$ac_exeext; then
3159 ac_cv_lib_cl_clQuerySchemeFromName=yes
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003160else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003163
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003164 ac_cv_lib_cl_clQuerySchemeFromName=no
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003165fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003166
3167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3168 conftest$ac_exeext conftest.$ac_ext
3169LIBS=$ac_check_lib_save_LIBS
3170fi
3171{ echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5
3172echo "${ECHO_T}$ac_cv_lib_cl_clQuerySchemeFromName" >&6; }
3173if test $ac_cv_lib_cl_clQuerySchemeFromName = yes; then
3174 cat >>confdefs.h <<\_ACEOF
3175#define HAVE_CL 1
3176_ACEOF
3177
3178 PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixCLJpegCompressor.cxx"
3179 LIBS="$LIBS -lcl"
3180fi
3181
3182
3183{ echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
3184echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6; }
3185if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
3188 ac_check_lib_save_LIBS=$LIBS
3189LIBS="-ldmedia $LIBS"
3190cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
3196
3197/* Override any GCC internal prototype to avoid an error.
3198 Use char because int might match the return type of a GCC
3199 builtin and then its argument prototype would still apply. */
3200#ifdef __cplusplus
3201extern "C"
3202#endif
3203char dmICCreate ();
3204int
3205main ()
3206{
3207return dmICCreate ();
3208 ;
3209 return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext conftest$ac_exeext
3213if { (ac_try="$ac_link"
3214case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_link") 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_cxx_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest$ac_exeext &&
3229 $as_test_x conftest$ac_exeext; then
3230 ac_cv_lib_dmedia_dmICCreate=yes
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 ac_cv_lib_dmedia_dmICCreate=no
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3239 conftest$ac_exeext conftest.$ac_ext
3240LIBS=$ac_check_lib_save_LIBS
3241fi
3242{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
3243echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6; }
3244if test $ac_cv_lib_dmedia_dmICCreate = yes; then
3245 cat >>confdefs.h <<\_ACEOF
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003246#define HAVE_DMEDIA 1
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003247_ACEOF
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003248
3249 PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMJpegCompressor.cxx"
3250 PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMIC_RawToJpeg.cxx"
3251 LIBS="$LIBS -ldmedia"
Constantin Kaplinsky71a32f02007-07-24 12:10:16 +00003252fi
3253
3254
3255
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003256
3257
3258# Check whether --with-installed-zlib was given.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003259if test "${with_installed_zlib+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003260 withval=$with_installed_zlib;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003261fi
3262
3263
3264if test "$with_installed_zlib" = yes; then
3265 echo "using installed zlib"
3266 ZLIB_LIB=-lz
3267else
3268 ZLIB_DIR=zlib
3269 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
3270 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
3271 echo "configuring zlib..."
3272 (cd zlib; ./configure)
3273 echo "...done configuring zlib"
3274fi
3275
3276
3277
3278
3279
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003280
3281# Check whether --with-installed-jpeg was given.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003282if test "${with_installed_jpeg+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003283 withval=$with_installed_jpeg;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003284fi
3285
3286
3287if test "$with_installed_jpeg" = yes; then
3288 echo "using installed jpeg"
3289 JPEG_LIB=-ljpeg
3290else
3291 JPEG_DIR=jpeg/build
3292 JPEG_INCLUDE='-I$(top_srcdir)/jpeg'
3293 JPEG_LIB='$(top_srcdir)/jpeg/build/libjpeg.a'
3294 echo "configuring jpeg..."
3295 (mkdir jpeg/build; cd jpeg/build; ../configure)
3296 echo "...done configuring jpeg"
3297fi
3298
3299
3300
3301
3302
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003303{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
3304echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
3305if test "${ac_cv_func_vsnprintf+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003307else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
3315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3316#define vsnprintf innocuous_vsnprintf
3317
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003318/* System header to define __stub macros and hopefully few prototypes,
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003319 which can conflict with char vsnprintf (); below.
3320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 <limits.h> exists even on freestanding compilers. */
3322
3323#ifdef __STDC__
3324# include <limits.h>
3325#else
3326# include <assert.h>
3327#endif
3328
3329#undef vsnprintf
3330
3331/* Override any GCC internal prototype to avoid an error.
3332 Use char because int might match the return type of a GCC
3333 builtin and then its argument prototype would still apply. */
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003334#ifdef __cplusplus
3335extern "C"
3336#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003337char vsnprintf ();
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003338/* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003341#if defined __stub_vsnprintf || defined __stub___vsnprintf
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003342choke me
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003343#endif
3344
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003345int
3346main ()
3347{
3348return vsnprintf ();
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext conftest$ac_exeext
3354if { (ac_try="$ac_link"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_link") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_cxx_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest$ac_exeext &&
3370 $as_test_x conftest$ac_exeext; then
3371 ac_cv_func_vsnprintf=yes
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003372else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ac_cv_func_vsnprintf=no
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003377fi
3378
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3380 conftest$ac_exeext conftest.$ac_ext
3381fi
3382{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
3383echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
3384if test $ac_cv_func_vsnprintf = yes; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003385 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
3386else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003387 VSNPRINTF_DEFINE=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003388fi
3389
3390
3391
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003392{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
3393echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
3394if test "${ac_cv_func_strcasecmp+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003396else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
3404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3405#define strcasecmp innocuous_strcasecmp
3406
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003407/* System header to define __stub macros and hopefully few prototypes,
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003408 which can conflict with char strcasecmp (); below.
3409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 <limits.h> exists even on freestanding compilers. */
3411
3412#ifdef __STDC__
3413# include <limits.h>
3414#else
3415# include <assert.h>
3416#endif
3417
3418#undef strcasecmp
3419
3420/* Override any GCC internal prototype to avoid an error.
3421 Use char because int might match the return type of a GCC
3422 builtin and then its argument prototype would still apply. */
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003423#ifdef __cplusplus
3424extern "C"
3425#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003426char strcasecmp ();
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003427/* The GNU C library defines this for functions which it implements
3428 to always fail with ENOSYS. Some functions are actually named
3429 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003430#if defined __stub_strcasecmp || defined __stub___strcasecmp
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003431choke me
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003432#endif
3433
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003434int
3435main ()
3436{
3437return strcasecmp ();
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext conftest$ac_exeext
3443if { (ac_try="$ac_link"
3444case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_link") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_cxx_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest$ac_exeext &&
3459 $as_test_x conftest$ac_exeext; then
3460 ac_cv_func_strcasecmp=yes
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003461else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 ac_cv_func_strcasecmp=no
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003466fi
3467
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3469 conftest$ac_exeext conftest.$ac_ext
3470fi
3471{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
3472echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
3473if test $ac_cv_func_strcasecmp = yes; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003474 STRCASECMP_DEFINE='-DHAVE_STRCASECMP'
3475else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003476 STRCASECMP_DEFINE=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003477fi
3478
3479
3480
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003481{ echo "$as_me:$LINENO: checking for strncasecmp" >&5
3482echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
3483if test "${ac_cv_func_strncasecmp+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003485else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003486 cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
3493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3494#define strncasecmp innocuous_strncasecmp
3495
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003496/* System header to define __stub macros and hopefully few prototypes,
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003497 which can conflict with char strncasecmp (); below.
3498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499 <limits.h> exists even on freestanding compilers. */
3500
3501#ifdef __STDC__
3502# include <limits.h>
3503#else
3504# include <assert.h>
3505#endif
3506
3507#undef strncasecmp
3508
3509/* Override any GCC internal prototype to avoid an error.
3510 Use char because int might match the return type of a GCC
3511 builtin and then its argument prototype would still apply. */
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003512#ifdef __cplusplus
3513extern "C"
3514#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003515char strncasecmp ();
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003516/* The GNU C library defines this for functions which it implements
3517 to always fail with ENOSYS. Some functions are actually named
3518 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003519#if defined __stub_strncasecmp || defined __stub___strncasecmp
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003520choke me
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003521#endif
3522
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003523int
3524main ()
3525{
3526return strncasecmp ();
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext conftest$ac_exeext
3532if { (ac_try="$ac_link"
3533case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536esac
3537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_link") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && {
3545 test -z "$ac_cxx_werror_flag" ||
3546 test ! -s conftest.err
3547 } && test -s conftest$ac_exeext &&
3548 $as_test_x conftest$ac_exeext; then
3549 ac_cv_func_strncasecmp=yes
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003550else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003551 echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_cv_func_strncasecmp=no
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003555fi
3556
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3558 conftest$ac_exeext conftest.$ac_ext
3559fi
3560{ echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
3561echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
3562if test $ac_cv_func_strncasecmp = yes; then
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003563 STRNCASECMP_DEFINE='-DHAVE_STRNCASECMP'
3564else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003565 STRNCASECMP_DEFINE=
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003566fi
3567
3568
3569
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003570{ echo "$as_me:$LINENO: checking for socklen_t" >&5
3571echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
3572cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003578#include <sys/types.h>
3579 #include <sys/socket.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003580int
3581main ()
3582{
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003583socklen_t x;
3584accept(0, 0, &x);
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003585 ;
3586 return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (ac_try="$ac_compile"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_cxx_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003608SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
3609else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 { echo "$as_me:$LINENO: result: using int" >&5
3614echo "${ECHO_T}using int" >&6; }
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003615SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
3616fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003617
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003619
3620
3621BOILERPLATE=boilerplate.mk
3622
3623if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
3624 if sh -c "vncmkdepend" >/dev/null 2>&1; then
3625 BOILERPLATE="$BOILERPLATE:depend.mk"
3626 fi
3627fi
3628
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003629ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE"
3630
3631cat >confcache <<\_ACEOF
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003632# This file is a shell script that caches the results of configure
3633# tests run on this system so they can be shared between configure
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003634# scripts and configure runs, see configure's option --config-cache.
3635# It is not useful on other systems. If it contains results you don't
3636# want to keep, you may remove or edit it.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003637#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003638# config.status only pays attention to the cache file if you give it
3639# the --recheck option to rerun configure.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003640#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003641# `ac_cv_env_foo' variables (set or unset) will be overridden when
3642# loading this file, other *unset* `ac_cv_foo' will be assigned the
3643# following values.
3644
3645_ACEOF
3646
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003647# The following way of writing the cache mishandles newlines in values,
3648# but we know of no workaround that is simple, portable, and efficient.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003649# So, we kill variables containing newlines.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003650# Ultrix sh set writes to stderr and can't be redirected directly,
3651# and sets the high bit in the cache file unless we assign to the vars.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003652(
3653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3654 eval ac_val=\$$ac_var
3655 case $ac_val in #(
3656 *${as_nl}*)
3657 case $ac_var in #(
3658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3659echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3660 esac
3661 case $ac_var in #(
3662 _ | IFS | as_nl) ;; #(
3663 *) $as_unset $ac_var ;;
3664 esac ;;
3665 esac
3666 done
3667
3668 (set) 2>&1 |
3669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3670 *${as_nl}ac_space=\ *)
3671 # `set' does not quote correctly, so add quotes (double-quote
3672 # substitution turns \\\\ into \\, and sed turns \\ into \).
3673 sed -n \
3674 "s/'/'\\\\''/g;
3675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3676 ;; #(
3677 *)
3678 # `set' quotes correctly as required by POSIX, so do not add quotes.
3679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3680 ;;
3681 esac |
3682 sort
3683) |
3684 sed '
3685 /^ac_cv_env_/b end
3686 t clear
3687 :clear
3688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3689 t end
3690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3691 :end' >>confcache
3692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3693 if test -w "$cache_file"; then
3694 test "x$cache_file" != "x/dev/null" &&
3695 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3696echo "$as_me: updating cache $cache_file" >&6;}
3697 cat confcache >$cache_file
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003698 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003699 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3700echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003701 fi
3702fi
3703rm -f confcache
3704
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003705test "x$prefix" = xNONE && prefix=$ac_default_prefix
3706# Let make expand exec_prefix.
3707test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3708
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003709# Transform confdefs.h into DEFS.
3710# Protect against shell expansion while executing Makefile rules.
3711# Protect against Makefile macro expansion.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003712#
3713# If the first sed substitution is executed (which looks for macros that
3714# take arguments), then branch to the quote section. Otherwise,
3715# look for a macro that doesn't take arguments.
3716ac_script='
3717t clear
3718:clear
3719s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3720t quote
3721s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3722t quote
3723b any
3724:quote
3725s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3726s/\[/\\&/g
3727s/\]/\\&/g
3728s/\$/$$/g
3729H
3730:any
3731${
3732 g
3733 s/^\n//
3734 s/\n/ /g
3735 p
3736}
3737'
3738DEFS=`sed -n "$ac_script" confdefs.h`
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003739
3740
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003741ac_libobjs=
3742ac_ltlibobjs=
3743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3744 # 1. Remove the extension, and $U if already installed.
3745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3746 ac_i=`echo "$ac_i" | sed "$ac_script"`
3747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3748 # will be set to the directory where LIBOBJS objects are built.
3749 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3750 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3751done
3752LIBOBJS=$ac_libobjs
3753
3754LTLIBOBJS=$ac_ltlibobjs
3755
3756
3757
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003758: ${CONFIG_STATUS=./config.status}
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003759ac_clean_files_save=$ac_clean_files
3760ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3761{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3762echo "$as_me: creating $CONFIG_STATUS" >&6;}
3763cat >$CONFIG_STATUS <<_ACEOF
3764#! $SHELL
3765# Generated by $as_me.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003766# Run this file to recreate the current configuration.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003767# Compiler output produced by configure, useful for debugging
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003768# configure, is in config.log if it exists.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003769
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003770debug=false
3771ac_cs_recheck=false
3772ac_cs_silent=false
3773SHELL=\${CONFIG_SHELL-$SHELL}
3774_ACEOF
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003775
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003776cat >>$CONFIG_STATUS <<\_ACEOF
3777## --------------------- ##
3778## M4sh Initialization. ##
3779## --------------------- ##
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003780
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003781# Be more Bourne compatible
3782DUALCASE=1; export DUALCASE # for MKS sh
3783if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3784 emulate sh
3785 NULLCMD=:
3786 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3787 # is contrary to our usage. Disable this feature.
3788 alias -g '${1+"$@"}'='"$@"'
3789 setopt NO_GLOB_SUBST
3790else
3791 case `(set -o) 2>/dev/null` in
3792 *posix*) set -o posix ;;
3793esac
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003794
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003795fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003796
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003797
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003798
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003799
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003800# PATH needs CR
3801# Avoid depending upon Character Ranges.
3802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3805as_cr_digits='0123456789'
3806as_cr_alnum=$as_cr_Letters$as_cr_digits
3807
3808# The user is always right.
3809if test "${PATH_SEPARATOR+set}" != set; then
3810 echo "#! /bin/sh" >conf$$.sh
3811 echo "exit 0" >>conf$$.sh
3812 chmod +x conf$$.sh
3813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3814 PATH_SEPARATOR=';'
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003815 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003816 PATH_SEPARATOR=:
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003817 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003818 rm -f conf$$.sh
3819fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00003820
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003821# Support unset when possible.
3822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3823 as_unset=unset
3824else
3825 as_unset=false
3826fi
3827
3828
3829# IFS
3830# We need space, tab and new line, in precisely that order. Quoting is
3831# there to prevent editors from complaining about space-tab.
3832# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3833# splitting by setting IFS to empty value.)
3834as_nl='
3835'
3836IFS=" "" $as_nl"
3837
3838# Find who we are. Look in the path if we contain no directory separator.
3839case $0 in
3840 *[\\/]* ) as_myself=$0 ;;
3841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3847done
3848IFS=$as_save_IFS
3849
3850 ;;
3851esac
3852# We did not find ourselves, most probably we were run as `sh COMMAND'
3853# in which case we are not to be found in the path.
3854if test "x$as_myself" = x; then
3855 as_myself=$0
3856fi
3857if test ! -f "$as_myself"; then
3858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3859 { (exit 1); exit 1; }
3860fi
3861
3862# Work around bugs in pre-3.0 UWIN ksh.
3863for as_var in ENV MAIL MAILPATH
3864do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3865done
3866PS1='$ '
3867PS2='> '
3868PS4='+ '
3869
3870# NLS nuisances.
3871for as_var in \
3872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3874 LC_TELEPHONE LC_TIME
3875do
3876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3877 eval $as_var=C; export $as_var
3878 else
3879 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3880 fi
3881done
3882
3883# Required to use basename.
3884if expr a : '\(a\)' >/dev/null 2>&1 &&
3885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3886 as_expr=expr
3887else
3888 as_expr=false
3889fi
3890
3891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3892 as_basename=basename
3893else
3894 as_basename=false
3895fi
3896
3897
3898# Name of the executable.
3899as_me=`$as_basename -- "$0" ||
3900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3901 X"$0" : 'X\(//\)$' \| \
3902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3903echo X/"$0" |
3904 sed '/^.*\/\([^/][^/]*\)\/*$/{
3905 s//\1/
3906 q
3907 }
3908 /^X\/\(\/\/\)$/{
3909 s//\1/
3910 q
3911 }
3912 /^X\/\(\/\).*/{
3913 s//\1/
3914 q
3915 }
3916 s/.*/./; q'`
3917
3918# CDPATH.
3919$as_unset CDPATH
3920
3921
3922
3923 as_lineno_1=$LINENO
3924 as_lineno_2=$LINENO
3925 test "x$as_lineno_1" != "x$as_lineno_2" &&
3926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3927
3928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3929 # uniformly replaced by the line number. The first 'sed' inserts a
3930 # line-number line after each line using $LINENO; the second 'sed'
3931 # does the real work. The second script uses 'N' to pair each
3932 # line-number line with the line containing $LINENO, and appends
3933 # trailing '-' during substitution so that $LINENO is not a special
3934 # case at line end.
3935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3936 # scripts with optimization help from Paolo Bonzini. Blame Lee
3937 # E. McMahon (1931-1989) for sed's syntax. :-)
3938 sed -n '
3939 p
3940 /[$]LINENO/=
3941 ' <$as_myself |
3942 sed '
3943 s/[$]LINENO.*/&-/
3944 t lineno
3945 b
3946 :lineno
3947 N
3948 :loop
3949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3950 t loop
3951 s/-\n.*//
3952 ' >$as_me.lineno &&
3953 chmod +x "$as_me.lineno" ||
3954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3955 { (exit 1); exit 1; }; }
3956
3957 # Don't try to exec as it changes $[0], causing all sort of problems
3958 # (the dirname of $[0] is not the place where we might find the
3959 # original and so on. Autoconf is especially sensitive to this).
3960 . "./$as_me.lineno"
3961 # Exit status is that of the last command.
3962 exit
3963}
3964
3965
3966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3967 as_dirname=dirname
3968else
3969 as_dirname=false
3970fi
3971
3972ECHO_C= ECHO_N= ECHO_T=
3973case `echo -n x` in
3974-n*)
3975 case `echo 'x\c'` in
3976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3977 *) ECHO_C='\c';;
3978 esac;;
3979*)
3980 ECHO_N='-n';;
3981esac
3982
3983if expr a : '\(a\)' >/dev/null 2>&1 &&
3984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3985 as_expr=expr
3986else
3987 as_expr=false
3988fi
3989
3990rm -f conf$$ conf$$.exe conf$$.file
3991if test -d conf$$.dir; then
3992 rm -f conf$$.dir/conf$$.file
3993else
3994 rm -f conf$$.dir
3995 mkdir conf$$.dir
3996fi
3997echo >conf$$.file
3998if ln -s conf$$.file conf$$ 2>/dev/null; then
3999 as_ln_s='ln -s'
4000 # ... but there are two gotchas:
4001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4003 # In both cases, we have to default to `cp -p'.
4004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4005 as_ln_s='cp -p'
4006elif ln conf$$.file conf$$ 2>/dev/null; then
4007 as_ln_s=ln
4008else
4009 as_ln_s='cp -p'
4010fi
4011rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4012rmdir conf$$.dir 2>/dev/null
4013
4014if mkdir -p . 2>/dev/null; then
4015 as_mkdir_p=:
4016else
4017 test -d ./-p && rmdir ./-p
4018 as_mkdir_p=false
4019fi
4020
4021if test -x / >/dev/null 2>&1; then
4022 as_test_x='test -x'
4023else
4024 if ls -dL / >/dev/null 2>&1; then
4025 as_ls_L_option=L
4026 else
4027 as_ls_L_option=
4028 fi
4029 as_test_x='
4030 eval sh -c '\''
4031 if test -d "$1"; then
4032 test -d "$1/.";
4033 else
4034 case $1 in
4035 -*)set "./$1";;
4036 esac;
4037 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4038 ???[sx]*):;;*)false;;esac;fi
4039 '\'' sh
4040 '
4041fi
4042as_executable_p=$as_test_x
4043
4044# Sed expression to map a string onto a valid CPP name.
4045as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4046
4047# Sed expression to map a string onto a valid variable name.
4048as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4049
4050
4051exec 6>&1
4052
4053# Save the log message, to keep $[0] and so on meaningful, and to
4054# report actual input values of CONFIG_FILES etc. instead of their
4055# values after options handling.
4056ac_log="
4057This file was extended by $as_me, which was
4058generated by GNU Autoconf 2.61. Invocation command line was
4059
4060 CONFIG_FILES = $CONFIG_FILES
4061 CONFIG_HEADERS = $CONFIG_HEADERS
4062 CONFIG_LINKS = $CONFIG_LINKS
4063 CONFIG_COMMANDS = $CONFIG_COMMANDS
4064 $ $0 $@
4065
4066on `(hostname || uname -n) 2>/dev/null | sed 1q`
4067"
4068
4069_ACEOF
4070
4071cat >>$CONFIG_STATUS <<_ACEOF
4072# Files that config.status was made for.
4073config_files="$ac_config_files"
4074
4075_ACEOF
4076
4077cat >>$CONFIG_STATUS <<\_ACEOF
4078ac_cs_usage="\
4079\`$as_me' instantiates files from templates according to the
4080current configuration.
4081
4082Usage: $0 [OPTIONS] [FILE]...
4083
4084 -h, --help print this help, then exit
4085 -V, --version print version number and configuration settings, then exit
4086 -q, --quiet do not print progress messages
4087 -d, --debug don't remove temporary files
4088 --recheck update $as_me by reconfiguring in the same conditions
4089 --file=FILE[:TEMPLATE]
4090 instantiate the configuration file FILE
4091
4092Configuration files:
4093$config_files
4094
4095Report bugs to <bug-autoconf@gnu.org>."
4096
4097_ACEOF
4098cat >>$CONFIG_STATUS <<_ACEOF
4099ac_cs_version="\\
4100config.status
4101configured by $0, generated by GNU Autoconf 2.61,
4102 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4103
4104Copyright (C) 2006 Free Software Foundation, Inc.
4105This config.status script is free software; the Free Software Foundation
4106gives unlimited permission to copy, distribute and modify it."
4107
4108ac_pwd='$ac_pwd'
4109srcdir='$srcdir'
4110_ACEOF
4111
4112cat >>$CONFIG_STATUS <<\_ACEOF
4113# If no file are specified by the user, then we need to provide default
4114# value. By we need to know if files were specified by the user.
4115ac_need_defaults=:
4116while test $# != 0
4117do
4118 case $1 in
4119 --*=*)
4120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4122 ac_shift=:
4123 ;;
4124 *)
4125 ac_option=$1
4126 ac_optarg=$2
4127 ac_shift=shift
4128 ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004129 esac
4130
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004131 case $ac_option in
4132 # Handling of the options.
4133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4134 ac_cs_recheck=: ;;
4135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4136 echo "$ac_cs_version"; exit ;;
4137 --debug | --debu | --deb | --de | --d | -d )
4138 debug=: ;;
4139 --file | --fil | --fi | --f )
4140 $ac_shift
4141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4142 ac_need_defaults=false;;
4143 --he | --h | --help | --hel | -h )
4144 echo "$ac_cs_usage"; exit ;;
4145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4147 ac_cs_silent=: ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004148
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004149 # This is an error.
4150 -*) { echo "$as_me: error: unrecognized option: $1
4151Try \`$0 --help' for more information." >&2
4152 { (exit 1); exit 1; }; } ;;
4153
4154 *) ac_config_targets="$ac_config_targets $1"
4155 ac_need_defaults=false ;;
4156
4157 esac
4158 shift
4159done
4160
4161ac_configure_extra_args=
4162
4163if $ac_cs_silent; then
4164 exec 6>/dev/null
4165 ac_configure_extra_args="$ac_configure_extra_args --silent"
4166fi
4167
4168_ACEOF
4169cat >>$CONFIG_STATUS <<_ACEOF
4170if \$ac_cs_recheck; then
4171 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4172 CONFIG_SHELL=$SHELL
4173 export CONFIG_SHELL
4174 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4175fi
4176
4177_ACEOF
4178cat >>$CONFIG_STATUS <<\_ACEOF
4179exec 5>>config.log
4180{
4181 echo
4182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4183## Running $as_me. ##
4184_ASBOX
4185 echo "$ac_log"
4186} >&5
4187
4188_ACEOF
4189cat >>$CONFIG_STATUS <<_ACEOF
4190_ACEOF
4191
4192cat >>$CONFIG_STATUS <<\_ACEOF
4193
4194# Handling of arguments.
4195for ac_config_target in $ac_config_targets
4196do
4197 case $ac_config_target in
4198 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
4199 "rdr/Makefile") CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
4200 "network/Makefile") CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
4201 "Xregion/Makefile") CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
4202 "rfb/Makefile") CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
4203
4204 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4205echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4206 { (exit 1); exit 1; }; };;
4207 esac
4208done
4209
4210
4211# If the user did not use the arguments to specify the items to instantiate,
4212# then the envvar interface is used. Set only those that are not.
4213# We use the long form for the default assignment because of an extremely
4214# bizarre bug on SunOS 4.1.3.
4215if $ac_need_defaults; then
4216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4217fi
4218
4219# Have a temporary directory for convenience. Make it in the build tree
4220# simply because there is no reason against having it here, and in addition,
4221# creating and moving files from /tmp can sometimes cause problems.
4222# Hook for its removal unless debugging.
4223# Note that there is a small window in which the directory will not be cleaned:
4224# after its creation but before its name has been assigned to `$tmp'.
4225$debug ||
4226{
4227 tmp=
4228 trap 'exit_status=$?
4229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4230' 0
4231 trap '{ (exit 1); exit 1; }' 1 2 13 15
4232}
4233# Create a (secure) tmp directory for tmp files.
4234
4235{
4236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4237 test -n "$tmp" && test -d "$tmp"
4238} ||
4239{
4240 tmp=./conf$$-$RANDOM
4241 (umask 077 && mkdir "$tmp")
4242} ||
4243{
4244 echo "$me: cannot create a temporary directory in ." >&2
4245 { (exit 1); exit 1; }
4246}
4247
4248#
4249# Set up the sed scripts for CONFIG_FILES section.
4250#
4251
4252# No need to generate the scripts if there are no CONFIG_FILES.
4253# This happens for instance when ./config.status config.h
4254if test -n "$CONFIG_FILES"; then
4255
4256_ACEOF
4257
4258
4259
4260ac_delim='%!_!# '
4261for ac_last_try in false false false false false :; do
4262 cat >conf$$subs.sed <<_ACEOF
4263SHELL!$SHELL$ac_delim
4264PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4265PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4266PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4267PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4268PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4269PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4270exec_prefix!$exec_prefix$ac_delim
4271prefix!$prefix$ac_delim
4272program_transform_name!$program_transform_name$ac_delim
4273bindir!$bindir$ac_delim
4274sbindir!$sbindir$ac_delim
4275libexecdir!$libexecdir$ac_delim
4276datarootdir!$datarootdir$ac_delim
4277datadir!$datadir$ac_delim
4278sysconfdir!$sysconfdir$ac_delim
4279sharedstatedir!$sharedstatedir$ac_delim
4280localstatedir!$localstatedir$ac_delim
4281includedir!$includedir$ac_delim
4282oldincludedir!$oldincludedir$ac_delim
4283docdir!$docdir$ac_delim
4284infodir!$infodir$ac_delim
4285htmldir!$htmldir$ac_delim
4286dvidir!$dvidir$ac_delim
4287pdfdir!$pdfdir$ac_delim
4288psdir!$psdir$ac_delim
4289libdir!$libdir$ac_delim
4290localedir!$localedir$ac_delim
4291mandir!$mandir$ac_delim
4292DEFS!$DEFS$ac_delim
4293ECHO_C!$ECHO_C$ac_delim
4294ECHO_N!$ECHO_N$ac_delim
4295ECHO_T!$ECHO_T$ac_delim
4296LIBS!$LIBS$ac_delim
4297build_alias!$build_alias$ac_delim
4298host_alias!$host_alias$ac_delim
4299target_alias!$target_alias$ac_delim
4300CC!$CC$ac_delim
4301CFLAGS!$CFLAGS$ac_delim
4302LDFLAGS!$LDFLAGS$ac_delim
4303CPPFLAGS!$CPPFLAGS$ac_delim
4304ac_ct_CC!$ac_ct_CC$ac_delim
4305EXEEXT!$EXEEXT$ac_delim
4306OBJEXT!$OBJEXT$ac_delim
4307CXX!$CXX$ac_delim
4308CXXFLAGS!$CXXFLAGS$ac_delim
4309ac_ct_CXX!$ac_ct_CXX$ac_delim
4310RANLIB!$RANLIB$ac_delim
4311SET_MAKE!$SET_MAKE$ac_delim
4312PLATFORM_CXXSRCS!$PLATFORM_CXXSRCS$ac_delim
4313ZLIB_DIR!$ZLIB_DIR$ac_delim
4314ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
4315ZLIB_LIB!$ZLIB_LIB$ac_delim
4316JPEG_DIR!$JPEG_DIR$ac_delim
4317JPEG_INCLUDE!$JPEG_INCLUDE$ac_delim
4318JPEG_LIB!$JPEG_LIB$ac_delim
4319VSNPRINTF_DEFINE!$VSNPRINTF_DEFINE$ac_delim
4320STRCASECMP_DEFINE!$STRCASECMP_DEFINE$ac_delim
4321STRNCASECMP_DEFINE!$STRNCASECMP_DEFINE$ac_delim
4322SOCKLEN_T_DEFINE!$SOCKLEN_T_DEFINE$ac_delim
4323LIBOBJS!$LIBOBJS$ac_delim
4324LTLIBOBJS!$LTLIBOBJS$ac_delim
4325_ACEOF
4326
4327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
4328 break
4329 elif $ac_last_try; then
4330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4332 { (exit 1); exit 1; }; }
4333 else
4334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4335 fi
4336done
4337
4338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4339if test -n "$ac_eof"; then
4340 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4341 ac_eof=`expr $ac_eof + 1`
4342fi
4343
4344cat >>$CONFIG_STATUS <<_ACEOF
4345cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4347_ACEOF
4348sed '
4349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4350s/^/s,@/; s/!/@,|#_!!_#|/
4351:n
4352t n
4353s/'"$ac_delim"'$/,g/; t
4354s/$/\\/; p
4355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4356' >>$CONFIG_STATUS <conf$$subs.sed
4357rm -f conf$$subs.sed
4358cat >>$CONFIG_STATUS <<_ACEOF
4359:end
4360s/|#_!!_#|//g
4361CEOF$ac_eof
4362_ACEOF
4363
4364
4365# VPATH may cause trouble with some makes, so we remove $(srcdir),
4366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4367# trailing colons and then remove the whole line if VPATH becomes empty
4368# (actually we leave an empty line to preserve line numbers).
4369if test "x$srcdir" = x.; then
4370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4371s/:*\$(srcdir):*/:/
4372s/:*\${srcdir}:*/:/
4373s/:*@srcdir@:*/:/
4374s/^\([^=]*=[ ]*\):*/\1/
4375s/:*$//
4376s/^[^=]*=[ ]*$//
4377}'
4378fi
4379
4380cat >>$CONFIG_STATUS <<\_ACEOF
4381fi # test -n "$CONFIG_FILES"
4382
4383
4384for ac_tag in :F $CONFIG_FILES
4385do
4386 case $ac_tag in
4387 :[FHLC]) ac_mode=$ac_tag; continue;;
4388 esac
4389 case $ac_mode$ac_tag in
4390 :[FHL]*:*);;
4391 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4392echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4393 { (exit 1); exit 1; }; };;
4394 :[FH]-) ac_tag=-:-;;
4395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4396 esac
4397 ac_save_IFS=$IFS
4398 IFS=:
4399 set x $ac_tag
4400 IFS=$ac_save_IFS
4401 shift
4402 ac_file=$1
4403 shift
4404
4405 case $ac_mode in
4406 :L) ac_source=$1;;
4407 :[FH])
4408 ac_file_inputs=
4409 for ac_f
4410 do
4411 case $ac_f in
4412 -) ac_f="$tmp/stdin";;
4413 *) # Look for the file first in the build tree, then in the source tree
4414 # (if the path is not absolute). The absolute path cannot be DOS-style,
4415 # because $ac_f cannot contain `:'.
4416 test -f "$ac_f" ||
4417 case $ac_f in
4418 [\\/$]*) false;;
4419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4420 esac ||
4421 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4422echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4423 { (exit 1); exit 1; }; };;
4424 esac
4425 ac_file_inputs="$ac_file_inputs $ac_f"
4426 done
4427
4428 # Let's still pretend it is `configure' which instantiates (i.e., don't
4429 # use $as_me), people would be surprised to read:
4430 # /* config.h. Generated by config.status. */
4431 configure_input="Generated from "`IFS=:
4432 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4433 if test x"$ac_file" != x-; then
4434 configure_input="$ac_file. $configure_input"
4435 { echo "$as_me:$LINENO: creating $ac_file" >&5
4436echo "$as_me: creating $ac_file" >&6;}
4437 fi
4438
4439 case $ac_tag in
4440 *:-:* | *:-) cat >"$tmp/stdin";;
4441 esac
4442 ;;
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004443 esac
4444
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004445 ac_dir=`$as_dirname -- "$ac_file" ||
4446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4447 X"$ac_file" : 'X\(//\)[^/]' \| \
4448 X"$ac_file" : 'X\(//\)$' \| \
4449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4450echo X"$ac_file" |
4451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4452 s//\1/
4453 q
4454 }
4455 /^X\(\/\/\)[^/].*/{
4456 s//\1/
4457 q
4458 }
4459 /^X\(\/\/\)$/{
4460 s//\1/
4461 q
4462 }
4463 /^X\(\/\).*/{
4464 s//\1/
4465 q
4466 }
4467 s/.*/./; q'`
4468 { as_dir="$ac_dir"
4469 case $as_dir in #(
4470 -*) as_dir=./$as_dir;;
4471 esac
4472 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4473 as_dirs=
4474 while :; do
4475 case $as_dir in #(
4476 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4477 *) as_qdir=$as_dir;;
4478 esac
4479 as_dirs="'$as_qdir' $as_dirs"
4480 as_dir=`$as_dirname -- "$as_dir" ||
4481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4482 X"$as_dir" : 'X\(//\)[^/]' \| \
4483 X"$as_dir" : 'X\(//\)$' \| \
4484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4485echo X"$as_dir" |
4486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4487 s//\1/
4488 q
4489 }
4490 /^X\(\/\/\)[^/].*/{
4491 s//\1/
4492 q
4493 }
4494 /^X\(\/\/\)$/{
4495 s//\1/
4496 q
4497 }
4498 /^X\(\/\).*/{
4499 s//\1/
4500 q
4501 }
4502 s/.*/./; q'`
4503 test -d "$as_dir" && break
4504 done
4505 test -z "$as_dirs" || eval "mkdir $as_dirs"
4506 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4507echo "$as_me: error: cannot create directory $as_dir" >&2;}
4508 { (exit 1); exit 1; }; }; }
4509 ac_builddir=.
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004510
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004511case "$ac_dir" in
4512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4513*)
4514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4515 # A ".." for each directory in $ac_dir_suffix.
4516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4517 case $ac_top_builddir_sub in
4518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4520 esac ;;
4521esac
4522ac_abs_top_builddir=$ac_pwd
4523ac_abs_builddir=$ac_pwd$ac_dir_suffix
4524# for backward compatibility:
4525ac_top_builddir=$ac_top_build_prefix
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004526
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004527case $srcdir in
4528 .) # We are building in place.
4529 ac_srcdir=.
4530 ac_top_srcdir=$ac_top_builddir_sub
4531 ac_abs_top_srcdir=$ac_pwd ;;
4532 [\\/]* | ?:[\\/]* ) # Absolute name.
4533 ac_srcdir=$srcdir$ac_dir_suffix;
4534 ac_top_srcdir=$srcdir
4535 ac_abs_top_srcdir=$srcdir ;;
4536 *) # Relative name.
4537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4538 ac_top_srcdir=$ac_top_build_prefix$srcdir
4539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4540esac
4541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004542
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004543
4544 case $ac_mode in
4545 :F)
4546 #
4547 # CONFIG_FILE
4548 #
4549
4550_ACEOF
4551
4552cat >>$CONFIG_STATUS <<\_ACEOF
4553# If the template does not know about datarootdir, expand it.
4554# FIXME: This hack should be removed a few years after 2.60.
4555ac_datarootdir_hack=; ac_datarootdir_seen=
4556
4557case `sed -n '/datarootdir/ {
4558 p
4559 q
4560}
4561/@datadir@/p
4562/@docdir@/p
4563/@infodir@/p
4564/@localedir@/p
4565/@mandir@/p
4566' $ac_file_inputs` in
4567*datarootdir*) ac_datarootdir_seen=yes;;
4568*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4569 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4570echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4571_ACEOF
4572cat >>$CONFIG_STATUS <<_ACEOF
4573 ac_datarootdir_hack='
4574 s&@datadir@&$datadir&g
4575 s&@docdir@&$docdir&g
4576 s&@infodir@&$infodir&g
4577 s&@localedir@&$localedir&g
4578 s&@mandir@&$mandir&g
4579 s&\\\${datarootdir}&$datarootdir&g' ;;
4580esac
4581_ACEOF
4582
4583# Neutralize VPATH when `$srcdir' = `.'.
4584# Shell code in configure.ac might set extrasub.
4585# FIXME: do we really want to maintain this feature?
4586cat >>$CONFIG_STATUS <<_ACEOF
4587 sed "$ac_vpsub
4588$extrasub
4589_ACEOF
4590cat >>$CONFIG_STATUS <<\_ACEOF
4591:t
4592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4593s&@configure_input@&$configure_input&;t t
4594s&@top_builddir@&$ac_top_builddir_sub&;t t
4595s&@srcdir@&$ac_srcdir&;t t
4596s&@abs_srcdir@&$ac_abs_srcdir&;t t
4597s&@top_srcdir@&$ac_top_srcdir&;t t
4598s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4599s&@builddir@&$ac_builddir&;t t
4600s&@abs_builddir@&$ac_abs_builddir&;t t
4601s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4602$ac_datarootdir_hack
4603" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4604
4605test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4608 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4609which seems to be undefined. Please make sure it is defined." >&5
4610echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4611which seems to be undefined. Please make sure it is defined." >&2;}
4612
4613 rm -f "$tmp/stdin"
4614 case $ac_file in
4615 -) cat "$tmp/out"; rm -f "$tmp/out";;
4616 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4617 esac
4618 ;;
4619
4620
4621
4622 esac
4623
4624done # for ac_tag
4625
4626
4627{ (exit 0); exit 0; }
4628_ACEOF
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004629chmod +x $CONFIG_STATUS
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004630ac_clean_files=$ac_clean_files_save
4631
4632
4633# configure is writing to config.log, and then calls config.status.
4634# config.status does its own redirection, appending to config.log.
4635# Unfortunately, on DOS this fails, as config.log is still kept open
4636# by configure, so config.status won't be able to write to it; its
4637# output is simply discarded. So we exec the FD to /dev/null,
4638# effectively closing config.log, so it can be properly (re)opened and
4639# appended to by config.status. When coming back to configure, we
4640# need to make the FD available again.
4641if test "$no_create" != yes; then
4642 ac_cs_success=:
4643 ac_config_status_args=
4644 test "$silent" = yes &&
4645 ac_config_status_args="$ac_config_status_args --quiet"
4646 exec 5>/dev/null
4647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4648 exec 5>>config.log
4649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4650 # would make configure fail if this is the last instruction.
4651 $ac_cs_success || { (exit 1); exit 1; }
4652fi
Constantin Kaplinsky13e90832006-05-30 06:08:20 +00004653