blob: 46449dddb439732826da9e4a78958879c0f19c09 [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001#! /bin/sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002# Guess values for system-dependent variables and create Makefiles.
Peter Åstrande713b142004-11-16 13:29:40 +00003# Generated by GNU Autoconf 2.59.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004#
Peter Åstrande713b142004-11-16 13:29:40 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Peter Åstrande713b142004-11-16 13:29:40 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011
Peter Åstrande713b142004-11-16 13:29:40 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000254ac_default_prefix=/usr/local
Peter Åstrande713b142004-11-16 13:29:40 +0000255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="rdr/InStream.h"
275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_CPPFLAGS CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB VSNPRINTF_DEFINE SOCKLEN_T_DEFINE LIBOBJS LTLIBOBJS'
276ac_subst_files=''
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000277
278# Initialize some variables set by options.
Peter Åstrande713b142004-11-16 13:29:40 +0000279ac_init_help=
280ac_init_version=false
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000281# The variables have the same names as the options, with
282# dashes changed to underlines.
Peter Åstrande713b142004-11-16 13:29:40 +0000283cache_file=/dev/null
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000284exec_prefix=NONE
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000285no_create=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000294verbose=
295x_includes=NONE
296x_libraries=NONE
Peter Åstrande713b142004-11-16 13:29:40 +0000297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000316ac_prev=
317for ac_option
318do
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
325
Peter Åstrande713b142004-11-16 13:29:40 +0000326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
Peter Åstrande713b142004-11-16 13:29:40 +0000330 case $ac_option in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000335 bindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000336
337 -build | --build | --buil | --bui | --bu)
Peter Åstrande713b142004-11-16 13:29:40 +0000338 ac_prev=build_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000340 build_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000356 datadir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000357
358 -disable-* | --disable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000360 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000366
367 -enable-* | --enable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000369 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000376 *) ac_optarg=yes ;;
377 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000378 eval "enable_$ac_feature='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000387 exec_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
Peter Åstrande713b142004-11-16 13:29:40 +0000393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000399
400 -host | --host | --hos | --ho)
Peter Åstrande713b142004-11-16 13:29:40 +0000401 ac_prev=host_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000402 -host=* | --host=* | --hos=* | --ho=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000403 host_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000410 includedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000415 infodir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000420 libdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000427 libexecdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000436 localstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000441 mandir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Peter Åstrande713b142004-11-16 13:29:40 +0000448 | --no-cr | --no-c | -n)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000462 oldincludedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000467 prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000474 program_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000481 program_suffix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000498 program_transform_name=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000508 sbindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000519 sharedstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000524 site=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000529 srcdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000536 sysconfdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
Peter Åstrande713b142004-11-16 13:29:40 +0000539 ac_prev=target_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000541 target_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
Peter Åstrande713b142004-11-16 13:29:40 +0000546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000548
549 -with-* | --with-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000551 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000555 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Åstrande713b142004-11-16 13:29:40 +0000556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000558 *) ac_optarg=yes ;;
559 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000560 eval "with_$ac_package='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000561
562 -without-* | --without-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000564 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000580 x_includes=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000587 x_libraries=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000588
Peter Åstrande713b142004-11-16 13:29:40 +0000589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000592 ;;
593
Peter Åstrande713b142004-11-16 13:29:40 +0000594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000604 *)
Peter Åstrande713b142004-11-16 13:29:40 +0000605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
Peter Åstrande713b142004-11-16 13:29:40 +0000616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000619fi
620
Peter Åstrande713b142004-11-16 13:29:40 +0000621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000623do
Peter Åstrande713b142004-11-16 13:29:40 +0000624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000629 esac
630done
631
Peter Åstrande713b142004-11-16 13:29:40 +0000632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000643
Peter Åstrande713b142004-11-16 13:29:40 +0000644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000650
Peter Åstrande713b142004-11-16 13:29:40 +0000651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
Peter Åstrande713b142004-11-16 13:29:40 +0000672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +0000693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000695 else
Peter Åstrande713b142004-11-16 13:29:40 +0000696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000698 fi
699fi
Peter Åstrande713b142004-11-16 13:29:40 +0000700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_CXXCPP_set=${CXXCPP+set}
741ac_env_CXXCPP_value=$CXXCPP
742ac_cv_env_CXXCPP_set=${CXXCPP+set}
743ac_cv_env_CXXCPP_value=$CXXCPP
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000744
Peter Åstrande713b142004-11-16 13:29:40 +0000745#
746# Report the --help message.
747#
748if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
751 cat <<_ACEOF
752\`configure' configures this package to adapt to many kinds of systems.
753
754Usage: $0 [OPTION]... [VAR=VALUE]...
755
756To assign environment variables (e.g., CC, CFLAGS...), specify them as
757VAR=VALUE. See below for descriptions of some of the useful variables.
758
759Defaults for the options are specified in brackets.
760
761Configuration:
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
771
772_ACEOF
773
774 cat <<_ACEOF
775Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
777 [$ac_default_prefix]
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
779 [PREFIX]
780
781By default, \`make install' will install all the files in
782\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784for instance \`--prefix=\$HOME'.
785
786For better control, use the options below.
787
788Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
801_ACEOF
802
803 cat <<\_ACEOF
804
805X features:
806 --x-includes=DIR X include files are in DIR
807 --x-libraries=DIR X library files are in DIR
808_ACEOF
809fi
810
811if test -n "$ac_init_help"; then
812
813 cat <<\_ACEOF
814
815Optional Packages:
816 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
817 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
818 --with-x use the X Window System
819 --with-installed-zlib use the version of zlib which is installed on the
820 system instead of the one distributed with VNC
821
822Some influential environment variables:
823 CC C compiler command
824 CFLAGS C compiler flags
825 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
826 nonstandard directory <lib dir>
827 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
828 headers in a nonstandard directory <include dir>
829 CXX C++ compiler command
830 CXXFLAGS C++ compiler flags
831 CXXCPP C++ preprocessor
832
833Use these variables to override the choices made by `configure' or to help
834it to find libraries and programs with nonstandard names/locations.
835
836_ACEOF
837fi
838
839if test "$ac_init_help" = "recursive"; then
840 # If there are subdirs, report their specific --help.
841 ac_popdir=`pwd`
842 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
843 test -d $ac_dir || continue
844 ac_builddir=.
845
846if test "$ac_dir" != .; then
847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
848 # A "../" for each directory in $ac_dir_suffix.
849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
850else
851 ac_dir_suffix= ac_top_builddir=
852fi
853
854case $srcdir in
855 .) # No --srcdir option. We are building in place.
856 ac_srcdir=.
857 if test -z "$ac_top_builddir"; then
858 ac_top_srcdir=.
859 else
860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
861 fi ;;
862 [\\/]* | ?:[\\/]* ) # Absolute path.
863 ac_srcdir=$srcdir$ac_dir_suffix;
864 ac_top_srcdir=$srcdir ;;
865 *) # Relative path.
866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
868esac
869
870# Do not use `cd foo && pwd` to compute absolute paths, because
871# the directories may not exist.
872case `pwd` in
873.) ac_abs_builddir="$ac_dir";;
874*)
875 case "$ac_dir" in
876 .) ac_abs_builddir=`pwd`;;
877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
879 esac;;
880esac
881case $ac_abs_builddir in
882.) ac_abs_top_builddir=${ac_top_builddir}.;;
883*)
884 case ${ac_top_builddir}. in
885 .) ac_abs_top_builddir=$ac_abs_builddir;;
886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
888 esac;;
889esac
890case $ac_abs_builddir in
891.) ac_abs_srcdir=$ac_srcdir;;
892*)
893 case $ac_srcdir in
894 .) ac_abs_srcdir=$ac_abs_builddir;;
895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
897 esac;;
898esac
899case $ac_abs_builddir in
900.) ac_abs_top_srcdir=$ac_top_srcdir;;
901*)
902 case $ac_top_srcdir in
903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
906 esac;;
907esac
908
909 cd $ac_dir
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
912 echo
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
915 echo
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
919 echo
920 $ac_configure --help
921 else
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923 fi
924 cd $ac_popdir
925 done
926fi
927
928test -n "$ac_init_help" && exit 0
929if $ac_init_version; then
930 cat <<\_ACEOF
931
932Copyright (C) 2003 Free Software Foundation, Inc.
933This configure script is free software; the Free Software Foundation
934gives unlimited permission to copy, distribute and modify it.
935_ACEOF
936 exit 0
937fi
938exec 5>config.log
939cat >&5 <<_ACEOF
940This file contains any messages produced by compilers while
941running configure, to aid debugging if configure makes a mistake.
942
943It was created by $as_me, which was
944generated by GNU Autoconf 2.59. Invocation command line was
945
946 $ $0 $@
947
948_ACEOF
949{
950cat <<_ASUNAME
951## --------- ##
952## Platform. ##
953## --------- ##
954
955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
956uname -m = `(uname -m) 2>/dev/null || echo unknown`
957uname -r = `(uname -r) 2>/dev/null || echo unknown`
958uname -s = `(uname -s) 2>/dev/null || echo unknown`
959uname -v = `(uname -v) 2>/dev/null || echo unknown`
960
961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963
964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
967hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
971
972_ASUNAME
973
974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
975for as_dir in $PATH
976do
977 IFS=$as_save_IFS
978 test -z "$as_dir" && as_dir=.
979 echo "PATH: $as_dir"
980done
981
982} >&5
983
984cat >&5 <<_ACEOF
985
986
987## ----------- ##
988## Core tests. ##
989## ----------- ##
990
991_ACEOF
992
993
994# Keep a trace of the command line.
995# Strip out --no-create and --no-recursion so they do not pile up.
996# Strip out --silent because we don't want to record it for future runs.
997# Also quote any args containing shell meta-characters.
998# Make two passes to allow for proper duplicate-argument suppression.
999ac_configure_args=
1000ac_configure_args0=
1001ac_configure_args1=
1002ac_sep=
1003ac_must_keep_next=false
1004for ac_pass in 1 2
1005do
1006 for ac_arg
1007 do
1008 case $ac_arg in
1009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 continue ;;
1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015 esac
1016 case $ac_pass in
1017 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018 2)
1019 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1020 if test $ac_must_keep_next = true; then
1021 ac_must_keep_next=false # Got value, back to normal.
1022 else
1023 case $ac_arg in
1024 *=* | --config-cache | -C | -disable-* | --disable-* \
1025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1027 | -with-* | --with-* | -without-* | --without-* | --x)
1028 case "$ac_configure_args0 " in
1029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1030 esac
1031 ;;
1032 -* ) ac_must_keep_next=true ;;
1033 esac
1034 fi
1035 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 # Get rid of the leading space.
1037 ac_sep=" "
1038 ;;
1039 esac
1040 done
1041done
1042$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1043$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044
1045# When interrupted or exit'd, cleanup temporary files, and complete
1046# config.log. We remove comments because anyway the quotes in there
1047# would cause problems or look ugly.
1048# WARNING: Be sure not to use single quotes in there, as some shells,
1049# such as our DU 5.0 friend, will then `close' the trap.
1050trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1052 {
1053 echo
1054
1055 cat <<\_ASBOX
1056## ---------------- ##
1057## Cache variables. ##
1058## ---------------- ##
1059_ASBOX
1060 echo
1061 # The following way of writing the cache mishandles newlines in values,
1062{
1063 (set) 2>&1 |
1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 *ac_space=\ *)
1066 sed -n \
1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069 ;;
1070 *)
1071 sed -n \
1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073 ;;
1074 esac;
1075}
1076 echo
1077
1078 cat <<\_ASBOX
1079## ----------------- ##
1080## Output variables. ##
1081## ----------------- ##
1082_ASBOX
1083 echo
1084 for ac_var in $ac_subst_vars
1085 do
1086 eval ac_val=$`echo $ac_var`
1087 echo "$ac_var='"'"'$ac_val'"'"'"
1088 done | sort
1089 echo
1090
1091 if test -n "$ac_subst_files"; then
1092 cat <<\_ASBOX
1093## ------------- ##
1094## Output files. ##
1095## ------------- ##
1096_ASBOX
1097 echo
1098 for ac_var in $ac_subst_files
1099 do
1100 eval ac_val=$`echo $ac_var`
1101 echo "$ac_var='"'"'$ac_val'"'"'"
1102 done | sort
1103 echo
1104 fi
1105
1106 if test -s confdefs.h; then
1107 cat <<\_ASBOX
1108## ----------- ##
1109## confdefs.h. ##
1110## ----------- ##
1111_ASBOX
1112 echo
1113 sed "/^$/d" confdefs.h | sort
1114 echo
1115 fi
1116 test "$ac_signal" != 0 &&
1117 echo "$as_me: caught signal $ac_signal"
1118 echo "$as_me: exit $exit_status"
1119 } >&5
1120 rm -f core *.core &&
1121 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1122 exit $exit_status
1123 ' 0
1124for ac_signal in 1 2 13 15; do
1125 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1126done
1127ac_signal=0
1128
1129# confdefs.h avoids OS command line length limits that DEFS can exceed.
1130rm -rf conftest* confdefs.h
1131# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1132echo >confdefs.h
1133
1134# Predefined preprocessor variables.
1135
1136cat >>confdefs.h <<_ACEOF
1137#define PACKAGE_NAME "$PACKAGE_NAME"
1138_ACEOF
1139
1140
1141cat >>confdefs.h <<_ACEOF
1142#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1143_ACEOF
1144
1145
1146cat >>confdefs.h <<_ACEOF
1147#define PACKAGE_VERSION "$PACKAGE_VERSION"
1148_ACEOF
1149
1150
1151cat >>confdefs.h <<_ACEOF
1152#define PACKAGE_STRING "$PACKAGE_STRING"
1153_ACEOF
1154
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1158_ACEOF
1159
1160
1161# Let the site file select an alternate cache file if it wants to.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001162# Prefer explicitly selected file to automatically selected ones.
1163if test -z "$CONFIG_SITE"; then
1164 if test "x$prefix" != xNONE; then
1165 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1166 else
1167 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1168 fi
1169fi
1170for ac_site_file in $CONFIG_SITE; do
1171 if test -r "$ac_site_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001172 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1173echo "$as_me: loading site script $ac_site_file" >&6;}
1174 sed 's/^/| /' "$ac_site_file" >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001175 . "$ac_site_file"
1176 fi
1177done
1178
1179if test -r "$cache_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001180 # Some versions of bash will fail to source /dev/null (special
1181 # files actually), so we avoid doing that.
1182 if test -f "$cache_file"; then
1183 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1184echo "$as_me: loading cache $cache_file" >&6;}
1185 case $cache_file in
1186 [\\/]* | ?:[\\/]* ) . $cache_file;;
1187 *) . ./$cache_file;;
1188 esac
1189 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001190else
Peter Åstrande713b142004-11-16 13:29:40 +00001191 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1192echo "$as_me: creating cache $cache_file" >&6;}
1193 >$cache_file
1194fi
1195
1196# Check that the precious variables saved in the cache have kept the same
1197# value.
1198ac_cache_corrupted=false
1199for ac_var in `(set) 2>&1 |
1200 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1201 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1202 eval ac_new_set=\$ac_env_${ac_var}_set
1203 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1204 eval ac_new_val="\$ac_env_${ac_var}_value"
1205 case $ac_old_set,$ac_new_set in
1206 set,)
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1208echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1210 ,set)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1212echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,);;
1215 *)
1216 if test "x$ac_old_val" != "x$ac_new_val"; then
1217 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1218echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1219 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1220echo "$as_me: former value: $ac_old_val" >&2;}
1221 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1222echo "$as_me: current value: $ac_new_val" >&2;}
1223 ac_cache_corrupted=:
1224 fi;;
1225 esac
1226 # Pass precious variables to config.status.
1227 if test "$ac_new_set" = set; then
1228 case $ac_new_val in
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 *) ac_arg=$ac_var=$ac_new_val ;;
1232 esac
1233 case " $ac_configure_args " in
1234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1235 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1236 esac
1237 fi
1238done
1239if $ac_cache_corrupted; then
1240 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1241echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1242 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1243echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1244 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001245fi
1246
1247ac_ext=c
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001248ac_cpp='$CPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00001249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1251ac_compiler_gnu=$ac_cv_c_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001252
Peter Åstrande713b142004-11-16 13:29:40 +00001253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001269
1270
1271
1272ac_cv_prog_cc_g=no
1273ac_cv_prog_cxx_g=no
1274
Peter Åstrande713b142004-11-16 13:29:40 +00001275ac_ext=c
1276ac_cpp='$CPP $CPPFLAGS'
1277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280if test -n "$ac_tool_prefix"; then
1281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1282set dummy ${ac_tool_prefix}gcc; ac_word=$2
1283echo "$as_me:$LINENO: checking for $ac_word" >&5
1284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1285if test "${ac_cv_prog_CC+set}" = set; then
1286 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001287else
1288 if test -n "$CC"; then
1289 ac_cv_prog_CC="$CC" # Let the user override the test.
1290else
Peter Åstrande713b142004-11-16 13:29:40 +00001291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292for as_dir in $PATH
1293do
1294 IFS=$as_save_IFS
1295 test -z "$as_dir" && as_dir=.
1296 for ac_exec_ext in '' $ac_executable_extensions; do
1297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1300 break 2
1301 fi
1302done
1303done
1304
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001305fi
1306fi
Peter Åstrande713b142004-11-16 13:29:40 +00001307CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001308if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001309 echo "$as_me:$LINENO: result: $CC" >&5
1310echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001311else
Peter Åstrande713b142004-11-16 13:29:40 +00001312 echo "$as_me:$LINENO: result: no" >&5
1313echo "${ECHO_T}no" >&6
1314fi
1315
1316fi
1317if test -z "$ac_cv_prog_CC"; then
1318 ac_ct_CC=$CC
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320set dummy gcc; ac_word=$2
1321echo "$as_me:$LINENO: checking for $ac_word" >&5
1322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1325else
1326 if test -n "$ac_ct_CC"; then
1327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1328else
1329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330for as_dir in $PATH
1331do
1332 IFS=$as_save_IFS
1333 test -z "$as_dir" && as_dir=.
1334 for ac_exec_ext in '' $ac_executable_extensions; do
1335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1336 ac_cv_prog_ac_ct_CC="gcc"
1337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1338 break 2
1339 fi
1340done
1341done
1342
1343fi
1344fi
1345ac_ct_CC=$ac_cv_prog_ac_ct_CC
1346if test -n "$ac_ct_CC"; then
1347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1348echo "${ECHO_T}$ac_ct_CC" >&6
1349else
1350 echo "$as_me:$LINENO: result: no" >&5
1351echo "${ECHO_T}no" >&6
1352fi
1353
1354 CC=$ac_ct_CC
1355else
1356 CC="$ac_cv_prog_CC"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001357fi
1358
1359if test -z "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001360 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1362set dummy ${ac_tool_prefix}cc; ac_word=$2
1363echo "$as_me:$LINENO: checking for $ac_word" >&5
1364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001367else
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1370else
Peter Åstrande713b142004-11-16 13:29:40 +00001371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372for as_dir in $PATH
1373do
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_CC="${ac_tool_prefix}cc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 break 2
1381 fi
1382done
1383done
1384
1385fi
1386fi
1387CC=$ac_cv_prog_CC
1388if test -n "$CC"; then
1389 echo "$as_me:$LINENO: result: $CC" >&5
1390echo "${ECHO_T}$CC" >&6
1391else
1392 echo "$as_me:$LINENO: result: no" >&5
1393echo "${ECHO_T}no" >&6
1394fi
1395
1396fi
1397if test -z "$ac_cv_prog_CC"; then
1398 ac_ct_CC=$CC
1399 # Extract the first word of "cc", so it can be a program name with args.
1400set dummy cc; ac_word=$2
1401echo "$as_me:$LINENO: checking for $ac_word" >&5
1402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 if test -n "$ac_ct_CC"; then
1407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408else
1409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410for as_dir in $PATH
1411do
1412 IFS=$as_save_IFS
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_ac_ct_CC="cc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 break 2
1419 fi
1420done
1421done
1422
1423fi
1424fi
1425ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426if test -n "$ac_ct_CC"; then
1427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428echo "${ECHO_T}$ac_ct_CC" >&6
1429else
1430 echo "$as_me:$LINENO: result: no" >&5
1431echo "${ECHO_T}no" >&6
1432fi
1433
1434 CC=$ac_ct_CC
1435else
1436 CC="$ac_cv_prog_CC"
1437fi
1438
1439fi
1440if test -z "$CC"; then
1441 # Extract the first word of "cc", so it can be a program name with args.
1442set dummy cc; ac_word=$2
1443echo "$as_me:$LINENO: checking for $ac_word" >&5
1444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001451 ac_prog_rejected=no
Peter Åstrande713b142004-11-16 13:29:40 +00001452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1460 ac_prog_rejected=yes
1461 continue
1462 fi
1463 ac_cv_prog_CC="cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001470if test $ac_prog_rejected = yes; then
1471 # We found a bogon in the path, so make sure we never use it.
1472 set dummy $ac_cv_prog_CC
1473 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001474 if test $# != 0; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001475 # We chose a different compiler from the bogus one.
1476 # However, it has the same basename, so the bogon will be chosen
1477 # first if we set CC to just the basename; use the full file name.
1478 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001480 fi
1481fi
1482fi
1483fi
Peter Åstrande713b142004-11-16 13:29:40 +00001484CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001485if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001486 echo "$as_me:$LINENO: result: $CC" >&5
1487echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001488else
Peter Åstrande713b142004-11-16 13:29:40 +00001489 echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001491fi
1492
Peter Åstrande713b142004-11-16 13:29:40 +00001493fi
1494if test -z "$CC"; then
1495 if test -n "$ac_tool_prefix"; then
1496 for ac_prog in cl
1497 do
1498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1500echo "$as_me:$LINENO: checking for $ac_word" >&5
1501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502if test "${ac_cv_prog_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001504else
1505 if test -n "$CC"; then
1506 ac_cv_prog_CC="$CC" # Let the user override the test.
1507else
Peter Åstrande713b142004-11-16 13:29:40 +00001508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509for as_dir in $PATH
1510do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
1518 fi
1519done
1520done
1521
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001522fi
1523fi
Peter Åstrande713b142004-11-16 13:29:40 +00001524CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001525if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001526 echo "$as_me:$LINENO: result: $CC" >&5
1527echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001528else
Peter Åstrande713b142004-11-16 13:29:40 +00001529 echo "$as_me:$LINENO: result: no" >&5
1530echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001531fi
Peter Åstrande713b142004-11-16 13:29:40 +00001532
1533 test -n "$CC" && break
1534 done
1535fi
1536if test -z "$CC"; then
1537 ac_ct_CC=$CC
1538 for ac_prog in cl
1539do
1540 # Extract the first word of "$ac_prog", so it can be a program name with args.
1541set dummy $ac_prog; ac_word=$2
1542echo "$as_me:$LINENO: checking for $ac_word" >&5
1543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547 if test -n "$ac_ct_CC"; then
1548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1549else
1550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551for as_dir in $PATH
1552do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_ac_ct_CC="$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001560 fi
Peter Åstrande713b142004-11-16 13:29:40 +00001561done
1562done
1563
1564fi
1565fi
1566ac_ct_CC=$ac_cv_prog_ac_ct_CC
1567if test -n "$ac_ct_CC"; then
1568 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1569echo "${ECHO_T}$ac_ct_CC" >&6
1570else
1571 echo "$as_me:$LINENO: result: no" >&5
1572echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001573fi
1574
Peter Åstrande713b142004-11-16 13:29:40 +00001575 test -n "$ac_ct_CC" && break
1576done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001577
Peter Åstrande713b142004-11-16 13:29:40 +00001578 CC=$ac_ct_CC
1579fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001580
Peter Åstrande713b142004-11-16 13:29:40 +00001581fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001582
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001583
Peter Åstrande713b142004-11-16 13:29:40 +00001584test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1585See \`config.log' for more details." >&5
1586echo "$as_me: error: no acceptable C compiler found in \$PATH
1587See \`config.log' for more details." >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590# Provide some information about the compiler.
1591echo "$as_me:$LINENO:" \
1592 "checking for C compiler version" >&5
1593ac_compiler=`set X $ac_compile; echo $2`
1594{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1595 (eval $ac_compiler --version </dev/null >&5) 2>&5
1596 ac_status=$?
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598 (exit $ac_status); }
1599{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1600 (eval $ac_compiler -v </dev/null >&5) 2>&5
1601 ac_status=$?
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }
1604{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1605 (eval $ac_compiler -V </dev/null >&5) 2>&5
1606 ac_status=$?
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }
1609
1610cat >conftest.$ac_ext <<_ACEOF
1611/* confdefs.h. */
1612_ACEOF
1613cat confdefs.h >>conftest.$ac_ext
1614cat >>conftest.$ac_ext <<_ACEOF
1615/* end confdefs.h. */
1616
1617int
1618main ()
1619{
1620
1621 ;
1622 return 0;
1623}
1624_ACEOF
1625ac_clean_files_save=$ac_clean_files
1626ac_clean_files="$ac_clean_files a.out a.exe b.out"
1627# Try to create an executable without -o first, disregard a.out.
1628# It will help us diagnose broken compilers, and finding out an intuition
1629# of exeext.
1630echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1631echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1632ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1633if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1634 (eval $ac_link_default) 2>&5
1635 ac_status=$?
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }; then
1638 # Find the output, starting from the most likely. This scheme is
1639# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1640# resort.
1641
1642# Be careful to initialize this variable, since it used to be cached.
1643# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1644ac_cv_exeext=
1645# b.out is created by i960 compilers.
1646for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1647do
1648 test -f "$ac_file" || continue
1649 case $ac_file in
1650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1651 ;;
1652 conftest.$ac_ext )
1653 # This is the source file.
1654 ;;
1655 [ab].out )
1656 # We found the default executable, but exeext='' is most
1657 # certainly right.
1658 break;;
1659 *.* )
1660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1661 # FIXME: I believe we export ac_cv_exeext for Libtool,
1662 # but it would be cool to find out if it's true. Does anybody
1663 # maintain Libtool? --akim.
1664 export ac_cv_exeext
1665 break;;
1666 * )
1667 break;;
1668 esac
1669done
1670else
1671 echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1675See \`config.log' for more details." >&5
1676echo "$as_me: error: C compiler cannot create executables
1677See \`config.log' for more details." >&2;}
1678 { (exit 77); exit 77; }; }
1679fi
1680
1681ac_exeext=$ac_cv_exeext
1682echo "$as_me:$LINENO: result: $ac_file" >&5
1683echo "${ECHO_T}$ac_file" >&6
1684
1685# Check the compiler produces executables we can run. If not, either
1686# the compiler is broken, or we cross compile.
1687echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1688echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1689# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1690# If not cross compiling, check that we can run a simple program.
1691if test "$cross_compiling" != yes; then
1692 if { ac_try='./$ac_file'
1693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1694 (eval $ac_try) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }; }; then
1698 cross_compiling=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001699 else
Peter Åstrande713b142004-11-16 13:29:40 +00001700 if test "$cross_compiling" = maybe; then
1701 cross_compiling=yes
1702 else
1703 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1704If you meant to cross compile, use \`--host'.
1705See \`config.log' for more details." >&5
1706echo "$as_me: error: cannot run C compiled programs.
1707If you meant to cross compile, use \`--host'.
1708See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }
1710 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001711 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001712fi
Peter Åstrande713b142004-11-16 13:29:40 +00001713echo "$as_me:$LINENO: result: yes" >&5
1714echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001715
Peter Åstrande713b142004-11-16 13:29:40 +00001716rm -f a.out a.exe conftest$ac_cv_exeext b.out
1717ac_clean_files=$ac_clean_files_save
1718# Check the compiler produces executables we can run. If not, either
1719# the compiler is broken, or we cross compile.
1720echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1721echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1722echo "$as_me:$LINENO: result: $cross_compiling" >&5
1723echo "${ECHO_T}$cross_compiling" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001724
Peter Åstrande713b142004-11-16 13:29:40 +00001725echo "$as_me:$LINENO: checking for suffix of executables" >&5
1726echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1728 (eval $ac_link) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1733# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1734# work properly (i.e., refer to `conftest.exe'), while it won't with
1735# `rm'.
1736for ac_file in conftest.exe conftest conftest.*; do
1737 test -f "$ac_file" || continue
1738 case $ac_file in
1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741 export ac_cv_exeext
1742 break;;
1743 * ) break;;
1744 esac
1745done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001746else
Peter Åstrande713b142004-11-16 13:29:40 +00001747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1748See \`config.log' for more details." >&5
1749echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1750See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1752fi
1753
1754rm -f conftest$ac_cv_exeext
1755echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1756echo "${ECHO_T}$ac_cv_exeext" >&6
1757
1758rm -f conftest.$ac_ext
1759EXEEXT=$ac_cv_exeext
1760ac_exeext=$EXEEXT
1761echo "$as_me:$LINENO: checking for suffix of object files" >&5
1762echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1763if test "${ac_cv_objext+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 cat >conftest.$ac_ext <<_ACEOF
1767/* confdefs.h. */
1768_ACEOF
1769cat confdefs.h >>conftest.$ac_ext
1770cat >>conftest.$ac_ext <<_ACEOF
1771/* end confdefs.h. */
1772
1773int
1774main ()
1775{
1776
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781rm -f conftest.o conftest.obj
1782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1788 case $ac_file in
1789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1791 break;;
1792 esac
1793done
1794else
1795 echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: cannot compute suffix of object files: cannot compile
1801See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803fi
1804
1805rm -f conftest.$ac_cv_objext conftest.$ac_ext
1806fi
1807echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1808echo "${ECHO_T}$ac_cv_objext" >&6
1809OBJEXT=$ac_cv_objext
1810ac_objext=$OBJEXT
1811echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1812echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1813if test "${ac_cv_c_compiler_gnu+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815else
1816 cat >conftest.$ac_ext <<_ACEOF
1817/* confdefs.h. */
1818_ACEOF
1819cat confdefs.h >>conftest.$ac_ext
1820cat >>conftest.$ac_ext <<_ACEOF
1821/* end confdefs.h. */
1822
1823int
1824main ()
1825{
1826#ifndef __GNUC__
1827 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001828#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001829
Peter Åstrande713b142004-11-16 13:29:40 +00001830 ;
1831 return 0;
1832}
1833_ACEOF
1834rm -f conftest.$ac_objext
1835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1836 (eval $ac_compile) 2>conftest.er1
1837 ac_status=$?
1838 grep -v '^ *+' conftest.er1 >conftest.err
1839 rm -f conftest.er1
1840 cat conftest.err >&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); } &&
1843 { ac_try='test -z "$ac_c_werror_flag"
1844 || test ! -s conftest.err'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; } &&
1850 { ac_try='test -s conftest.$ac_objext'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001857else
Peter Åstrande713b142004-11-16 13:29:40 +00001858 echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001862fi
Peter Åstrande713b142004-11-16 13:29:40 +00001863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1864ac_cv_c_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001865
Peter Åstrande713b142004-11-16 13:29:40 +00001866fi
1867echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1868echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1869GCC=`test $ac_compiler_gnu = yes && echo yes`
1870ac_test_CFLAGS=${CFLAGS+set}
1871ac_save_CFLAGS=$CFLAGS
1872CFLAGS="-g"
1873echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1874echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1875if test "${ac_cv_prog_cc_g+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001877else
Peter Åstrande713b142004-11-16 13:29:40 +00001878 cat >conftest.$ac_ext <<_ACEOF
1879/* confdefs.h. */
1880_ACEOF
1881cat confdefs.h >>conftest.$ac_ext
1882cat >>conftest.$ac_ext <<_ACEOF
1883/* end confdefs.h. */
1884
1885int
1886main ()
1887{
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893rm -f conftest.$ac_objext
1894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1895 (eval $ac_compile) 2>conftest.er1
1896 ac_status=$?
1897 grep -v '^ *+' conftest.er1 >conftest.err
1898 rm -f conftest.er1
1899 cat conftest.err >&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -z "$ac_c_werror_flag"
1903 || test ! -s conftest.err'
1904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905 (eval $ac_try) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }; } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1911 (eval $ac_try) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001915 ac_cv_prog_cc_g=yes
1916else
Peter Åstrande713b142004-11-16 13:29:40 +00001917 echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001919
Peter Åstrande713b142004-11-16 13:29:40 +00001920ac_cv_prog_cc_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001921fi
Peter Åstrande713b142004-11-16 13:29:40 +00001922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1925echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001926if test "$ac_test_CFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00001927 CFLAGS=$ac_save_CFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001928elif test $ac_cv_prog_cc_g = yes; then
1929 if test "$GCC" = yes; then
1930 CFLAGS="-g -O2"
1931 else
1932 CFLAGS="-g"
1933 fi
1934else
1935 if test "$GCC" = yes; then
1936 CFLAGS="-O2"
1937 else
1938 CFLAGS=
1939 fi
1940fi
Peter Åstrande713b142004-11-16 13:29:40 +00001941echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1942echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1943if test "${ac_cv_prog_cc_stdc+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 ac_cv_prog_cc_stdc=no
1947ac_save_CC=$CC
1948cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h. */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h. */
1954#include <stdarg.h>
1955#include <stdio.h>
1956#include <sys/types.h>
1957#include <sys/stat.h>
1958/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1959struct buf { int x; };
1960FILE * (*rcsopen) (struct buf *, struct stat *, int);
1961static char *e (p, i)
1962 char **p;
1963 int i;
1964{
1965 return p[i];
1966}
1967static char *f (char * (*g) (char **, int), char **p, ...)
1968{
1969 char *s;
1970 va_list v;
1971 va_start (v,p);
1972 s = g (p, va_arg (v,int));
1973 va_end (v);
1974 return s;
1975}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001976
Peter Åstrande713b142004-11-16 13:29:40 +00001977/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1978 function prototypes and stuff, but not '\xHH' hex character constants.
1979 These don't provoke an error unfortunately, instead are silently treated
1980 as 'x'. The following induces an error, until -std1 is added to get
1981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1982 array size at least. It's necessary to write '\x00'==0 to get something
1983 that's true only with -std1. */
1984int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1985
1986int test (int i, double x);
1987struct s1 {int (*f) (int a);};
1988struct s2 {int (*f) (double a);};
1989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1990int argc;
1991char **argv;
1992int
1993main ()
1994{
1995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000# Don't try gcc -ansi; that turns off useful extensions and
2001# breaks some systems' header files.
2002# AIX -qlanglvl=ansi
2003# Ultrix and OSF/1 -std1
2004# HP-UX 10.20 and later -Ae
2005# HP-UX older versions -Aa -D_HPUX_SOURCE
2006# SVR4 -Xc -D__EXTENSIONS__
2007for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002008do
Peter Åstrande713b142004-11-16 13:29:40 +00002009 CC="$ac_save_CC $ac_arg"
2010 rm -f conftest.$ac_objext
2011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2012 (eval $ac_compile) 2>conftest.er1
2013 ac_status=$?
2014 grep -v '^ *+' conftest.er1 >conftest.err
2015 rm -f conftest.er1
2016 cat conftest.err >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try='test -z "$ac_c_werror_flag"
2020 || test ! -s conftest.err'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 ac_cv_prog_cc_stdc=$ac_arg
2033break
2034else
2035 echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038fi
2039rm -f conftest.err conftest.$ac_objext
2040done
2041rm -f conftest.$ac_ext conftest.$ac_objext
2042CC=$ac_save_CC
2043
2044fi
2045
2046case "x$ac_cv_prog_cc_stdc" in
2047 x|xno)
2048 echo "$as_me:$LINENO: result: none needed" >&5
2049echo "${ECHO_T}none needed" >&6 ;;
2050 *)
2051 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2052echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2053 CC="$CC $ac_cv_prog_cc_stdc" ;;
2054esac
2055
2056# Some people use a C++ compiler to compile C. Since we use `exit',
2057# in C++ we need to declare it. In case someone uses the same compiler
2058# for both compiling C and C++ we need to have the C++ compiler decide
2059# the declaration of exit, since it's the most demanding environment.
2060cat >conftest.$ac_ext <<_ACEOF
2061#ifndef __cplusplus
2062 choke me
2063#endif
2064_ACEOF
2065rm -f conftest.$ac_objext
2066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2068 ac_status=$?
2069 grep -v '^ *+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 for ac_declaration in \
2088 '' \
2089 'extern "C" void std::exit (int) throw (); using std::exit;' \
2090 'extern "C" void std::exit (int); using std::exit;' \
2091 'extern "C" void exit (int) throw ();' \
2092 'extern "C" void exit (int);' \
2093 'void exit (int);'
2094do
2095 cat >conftest.$ac_ext <<_ACEOF
2096/* confdefs.h. */
2097_ACEOF
2098cat confdefs.h >>conftest.$ac_ext
2099cat >>conftest.$ac_ext <<_ACEOF
2100/* end confdefs.h. */
2101$ac_declaration
2102#include <stdlib.h>
2103int
2104main ()
2105{
2106exit (42);
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111rm -f conftest.$ac_objext
2112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>conftest.er1
2114 ac_status=$?
2115 grep -v '^ *+' conftest.er1 >conftest.err
2116 rm -f conftest.er1
2117 cat conftest.err >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
2120 { ac_try='test -z "$ac_c_werror_flag"
2121 || test ! -s conftest.err'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; } &&
2127 { ac_try='test -s conftest.$ac_objext'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2133 :
2134else
2135 echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138continue
2139fi
2140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2141 cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h. */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h. */
2147$ac_declaration
2148int
2149main ()
2150{
2151exit (42);
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 break
2179else
2180 echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183fi
2184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2185done
2186rm -f conftest*
2187if test -n "$ac_declaration"; then
2188 echo '#ifdef __cplusplus' >>confdefs.h
2189 echo $ac_declaration >>confdefs.h
2190 echo '#endif' >>confdefs.h
2191fi
2192
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199ac_ext=c
2200ac_cpp='$CPP $CPPFLAGS'
2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204
2205ac_ext=cc
2206ac_cpp='$CXXCPP $CPPFLAGS'
2207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2210if test -n "$ac_tool_prefix"; then
2211 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2212 do
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_CXX+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002219else
2220 if test -n "$CXX"; then
2221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2222else
Peter Åstrande713b142004-11-16 13:29:40 +00002223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002233 fi
Peter Åstrande713b142004-11-16 13:29:40 +00002234done
2235done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002236
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002237fi
Peter Åstrande713b142004-11-16 13:29:40 +00002238fi
2239CXX=$ac_cv_prog_CXX
2240if test -n "$CXX"; then
2241 echo "$as_me:$LINENO: result: $CXX" >&5
2242echo "${ECHO_T}$CXX" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002243else
Peter Åstrande713b142004-11-16 13:29:40 +00002244 echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248 test -n "$CXX" && break
2249 done
2250fi
2251if test -z "$CXX"; then
2252 ac_ct_CXX=$CXX
2253 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2254do
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256set dummy $ac_prog; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 if test -n "$ac_ct_CXX"; then
2263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CXX="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276done
2277done
2278
2279fi
2280fi
2281ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2282if test -n "$ac_ct_CXX"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2284echo "${ECHO_T}$ac_ct_CXX" >&6
2285else
2286 echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
2288fi
2289
2290 test -n "$ac_ct_CXX" && break
2291done
2292test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2293
2294 CXX=$ac_ct_CXX
2295fi
2296
2297
2298# Provide some information about the compiler.
2299echo "$as_me:$LINENO:" \
2300 "checking for C++ compiler version" >&5
2301ac_compiler=`set X $ac_compile; echo $2`
2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2303 (eval $ac_compiler --version </dev/null >&5) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2308 (eval $ac_compiler -v </dev/null >&5) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2313 (eval $ac_compiler -V </dev/null >&5) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317
2318echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2319echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2320if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323 cat >conftest.$ac_ext <<_ACEOF
2324/* confdefs.h. */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h. */
2329
2330int
2331main ()
2332{
2333#ifndef __GNUC__
2334 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002335#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002336
Peter Åstrande713b142004-11-16 13:29:40 +00002337 ;
2338 return 0;
2339}
2340_ACEOF
2341rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_cxx_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002364else
Peter Åstrande713b142004-11-16 13:29:40 +00002365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002369fi
Peter Åstrande713b142004-11-16 13:29:40 +00002370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002372
Peter Åstrande713b142004-11-16 13:29:40 +00002373fi
2374echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2375echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2376GXX=`test $ac_compiler_gnu = yes && echo yes`
2377ac_test_CXXFLAGS=${CXXFLAGS+set}
2378ac_save_CXXFLAGS=$CXXFLAGS
2379CXXFLAGS="-g"
2380echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2381echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2382if test "${ac_cv_prog_cxx_g+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002384else
Peter Åstrande713b142004-11-16 13:29:40 +00002385 cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
2391
2392int
2393main ()
2394{
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_cxx_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002422 ac_cv_prog_cxx_g=yes
2423else
Peter Åstrande713b142004-11-16 13:29:40 +00002424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002426
Peter Åstrande713b142004-11-16 13:29:40 +00002427ac_cv_prog_cxx_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002428fi
Peter Åstrande713b142004-11-16 13:29:40 +00002429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2432echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002433if test "$ac_test_CXXFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00002434 CXXFLAGS=$ac_save_CXXFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002435elif test $ac_cv_prog_cxx_g = yes; then
2436 if test "$GXX" = yes; then
2437 CXXFLAGS="-g -O2"
2438 else
2439 CXXFLAGS="-g"
2440 fi
2441else
2442 if test "$GXX" = yes; then
2443 CXXFLAGS="-O2"
2444 else
2445 CXXFLAGS=
2446 fi
2447fi
Peter Åstrande713b142004-11-16 13:29:40 +00002448for ac_declaration in \
2449 '' \
2450 'extern "C" void std::exit (int) throw (); using std::exit;' \
2451 'extern "C" void std::exit (int); using std::exit;' \
2452 'extern "C" void exit (int) throw ();' \
2453 'extern "C" void exit (int);' \
2454 'void exit (int);'
2455do
2456 cat >conftest.$ac_ext <<_ACEOF
2457/* confdefs.h. */
2458_ACEOF
2459cat confdefs.h >>conftest.$ac_ext
2460cat >>conftest.$ac_ext <<_ACEOF
2461/* end confdefs.h. */
2462$ac_declaration
2463#include <stdlib.h>
2464int
2465main ()
2466{
2467exit (42);
2468 ;
2469 return 0;
2470}
2471_ACEOF
2472rm -f conftest.$ac_objext
2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_cxx_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 :
2495else
2496 echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002498
Peter Åstrande713b142004-11-16 13:29:40 +00002499continue
2500fi
2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
2508$ac_declaration
2509int
2510main ()
2511{
2512exit (42);
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517rm -f conftest.$ac_objext
2518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_cxx_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 break
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546done
2547rm -f conftest*
2548if test -n "$ac_declaration"; then
2549 echo '#ifdef __cplusplus' >>confdefs.h
2550 echo $ac_declaration >>confdefs.h
2551 echo '#endif' >>confdefs.h
2552fi
2553
2554ac_ext=c
2555ac_cpp='$CPP $CPPFLAGS'
2556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2563echo "$as_me:$LINENO: checking for $ac_word" >&5
2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2565if test "${ac_cv_prog_RANLIB+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002567else
2568 if test -n "$RANLIB"; then
2569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2570else
Peter Åstrande713b142004-11-16 13:29:40 +00002571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582done
2583done
2584
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002585fi
2586fi
Peter Åstrande713b142004-11-16 13:29:40 +00002587RANLIB=$ac_cv_prog_RANLIB
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002588if test -n "$RANLIB"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002589 echo "$as_me:$LINENO: result: $RANLIB" >&5
2590echo "${ECHO_T}$RANLIB" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002591else
Peter Åstrande713b142004-11-16 13:29:40 +00002592 echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002594fi
2595
Peter Åstrande713b142004-11-16 13:29:40 +00002596fi
2597if test -z "$ac_cv_prog_RANLIB"; then
2598 ac_ct_RANLIB=$RANLIB
2599 # Extract the first word of "ranlib", so it can be a program name with args.
2600set dummy ranlib; ac_word=$2
2601echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002605else
Peter Åstrande713b142004-11-16 13:29:40 +00002606 if test -n "$ac_ct_RANLIB"; then
2607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 ac_cv_prog_ac_ct_RANLIB="ranlib"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
2622
2623 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2624fi
2625fi
2626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2627if test -n "$ac_ct_RANLIB"; then
2628 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2629echo "${ECHO_T}$ac_ct_RANLIB" >&6
2630else
2631 echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6
2633fi
2634
2635 RANLIB=$ac_ct_RANLIB
2636else
2637 RANLIB="$ac_cv_prog_RANLIB"
2638fi
2639
2640echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2642set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2643if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 cat >conftest.make <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002647all:
Peter Åstrande713b142004-11-16 13:29:40 +00002648 @echo 'ac_maketemp="$(MAKE)"'
2649_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002650# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Peter Åstrande713b142004-11-16 13:29:40 +00002651eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002652if test -n "$ac_maketemp"; then
2653 eval ac_cv_prog_make_${ac_make}_set=yes
2654else
2655 eval ac_cv_prog_make_${ac_make}_set=no
2656fi
Peter Åstrande713b142004-11-16 13:29:40 +00002657rm -f conftest.make
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002658fi
2659if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002660 echo "$as_me:$LINENO: result: yes" >&5
2661echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002662 SET_MAKE=
2663else
Peter Åstrande713b142004-11-16 13:29:40 +00002664 echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002666 SET_MAKE="MAKE=${MAKE-make}"
2667fi
2668
Peter Åstrande713b142004-11-16 13:29:40 +00002669ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002670ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002674
2675
2676case "`(uname -sr) 2>/dev/null`" in
2677"SunOS 5"*)
2678 SOLARIS=yes
2679 USE_MITSHM=yes
2680 ;;
2681"Linux"*)
2682 LINUX=yes
2683 USE_MITSHM=yes
2684 ;;
2685esac
2686
2687if test "$USE_MITSHM" = yes; then
2688 MITSHM_CPPFLAGS="-DMITSHM"
2689fi
2690
2691
2692if test "$GCC" = yes; then
2693 CFLAGS="$CFLAGS -Wall"
2694 if test "$SOLARIS" = yes; then
2695 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2696 fi
2697fi
2698if test "$GXX" = yes; then
2699 CXXFLAGS="$CXXFLAGS -Wall"
2700 if test "$SOLARIS" = yes; then
2701 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
2702 fi
2703fi
2704
Peter Åstrande713b142004-11-16 13:29:40 +00002705
2706ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002707ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2711echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2712echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2713if test -z "$CXXCPP"; then
2714 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 # Double quotes because CXXCPP needs to be expanded
2718 for CXXCPP in "$CXX -E" "/lib/cpp"
2719 do
2720 ac_preproc_ok=false
2721for ac_cxx_preproc_warn_flag in '' yes
2722do
2723 # Use a header file that comes with gcc, so configuring glibc
2724 # with a fresh cross-compiler works.
2725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2726 # <limits.h> exists even on freestanding compilers.
2727 # On the NeXT, cc -E runs the code through the compiler's parser,
2728 # not just through cpp. "Syntax error" is here to catch this case.
2729 cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
2735#ifdef __STDC__
2736# include <limits.h>
2737#else
2738# include <assert.h>
2739#endif
2740 Syntax error
2741_ACEOF
2742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } >/dev/null; then
2750 if test -s conftest.err; then
2751 ac_cpp_err=$ac_cxx_preproc_warn_flag
2752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2753 else
2754 ac_cpp_err=
2755 fi
2756else
2757 ac_cpp_err=yes
2758fi
2759if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002760 :
2761else
Peter Åstrande713b142004-11-16 13:29:40 +00002762 echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002764
Peter Åstrande713b142004-11-16 13:29:40 +00002765 # Broken: fails on valid input.
2766continue
2767fi
2768rm -f conftest.err conftest.$ac_ext
2769
2770 # OK, works on sane cases. Now check whether non-existent headers
2771 # can be detected and how.
2772 cat >conftest.$ac_ext <<_ACEOF
2773/* confdefs.h. */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h. */
2778#include <ac_nonexistent.h>
2779_ACEOF
2780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } >/dev/null; then
2788 if test -s conftest.err; then
2789 ac_cpp_err=$ac_cxx_preproc_warn_flag
2790 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2791 else
2792 ac_cpp_err=
2793 fi
2794else
2795 ac_cpp_err=yes
2796fi
2797if test -z "$ac_cpp_err"; then
2798 # Broken: success on invalid input.
2799continue
2800else
2801 echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 # Passes both tests.
2805ac_preproc_ok=:
2806break
2807fi
2808rm -f conftest.err conftest.$ac_ext
2809
2810done
2811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2812rm -f conftest.err conftest.$ac_ext
2813if $ac_preproc_ok; then
2814 break
2815fi
2816
2817 done
2818 ac_cv_prog_CXXCPP=$CXXCPP
2819
2820fi
2821 CXXCPP=$ac_cv_prog_CXXCPP
2822else
2823 ac_cv_prog_CXXCPP=$CXXCPP
2824fi
2825echo "$as_me:$LINENO: result: $CXXCPP" >&5
2826echo "${ECHO_T}$CXXCPP" >&6
2827ac_preproc_ok=false
2828for ac_cxx_preproc_warn_flag in '' yes
2829do
2830 # Use a header file that comes with gcc, so configuring glibc
2831 # with a fresh cross-compiler works.
2832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2833 # <limits.h> exists even on freestanding compilers.
2834 # On the NeXT, cc -E runs the code through the compiler's parser,
2835 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
2843# include <limits.h>
2844#else
2845# include <assert.h>
2846#endif
2847 Syntax error
2848_ACEOF
2849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } >/dev/null; then
2857 if test -s conftest.err; then
2858 ac_cpp_err=$ac_cxx_preproc_warn_flag
2859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2860 else
2861 ac_cpp_err=
2862 fi
2863else
2864 ac_cpp_err=yes
2865fi
2866if test -z "$ac_cpp_err"; then
2867 :
2868else
2869 echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 # Broken: fails on valid input.
2873continue
2874fi
2875rm -f conftest.err conftest.$ac_ext
2876
2877 # OK, works on sane cases. Now check whether non-existent headers
2878 # can be detected and how.
2879 cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
2885#include <ac_nonexistent.h>
2886_ACEOF
2887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_cxx_preproc_warn_flag
2897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2898 else
2899 ac_cpp_err=
2900 fi
2901else
2902 ac_cpp_err=yes
2903fi
2904if test -z "$ac_cpp_err"; then
2905 # Broken: success on invalid input.
2906continue
2907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 # Passes both tests.
2912ac_preproc_ok=:
2913break
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916
2917done
2918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2919rm -f conftest.err conftest.$ac_ext
2920if $ac_preproc_ok; then
2921 :
2922else
2923 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2924See \`config.log' for more details." >&5
2925echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2926See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
2928fi
2929
2930ac_ext=cc
2931ac_cpp='$CXXCPP $CPPFLAGS'
2932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2935
2936
2937echo "$as_me:$LINENO: checking for X" >&5
2938echo $ECHO_N "checking for X... $ECHO_C" >&6
2939
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002940
2941# Check whether --with-x or --without-x was given.
2942if test "${with_x+set}" = set; then
2943 withval="$with_x"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002944
Peter Åstrande713b142004-11-16 13:29:40 +00002945fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002946# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2947if test "x$with_x" = xno; then
2948 # The user explicitly disabled X.
2949 have_x=disabled
2950else
2951 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2952 # Both variables are already set.
2953 have_x=yes
2954 else
Peter Åstrande713b142004-11-16 13:29:40 +00002955 if test "${ac_cv_have_x+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002957else
2958 # One or both of the vars are not set, and there is no cached value.
Peter Åstrande713b142004-11-16 13:29:40 +00002959ac_x_includes=no ac_x_libraries=no
2960rm -fr conftest.dir
2961if mkdir conftest.dir; then
2962 cd conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002963 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Peter Åstrande713b142004-11-16 13:29:40 +00002964 cat >Imakefile <<'_ACEOF'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002965acfindx:
2966 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Peter Åstrande713b142004-11-16 13:29:40 +00002967_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002968 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2970 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2971 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2972 for ac_extension in a so sl; do
2973 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Peter Åstrande713b142004-11-16 13:29:40 +00002974 test -f $ac_im_libdir/libX11.$ac_extension; then
2975 ac_im_usrlibdir=$ac_im_libdir; break
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002976 fi
2977 done
2978 # Screen out bogus values from the imake configuration. They are
2979 # bogus both because they are the default anyway, and because
2980 # using them would break gcc on systems where it needs fixed includes.
Peter Åstrande713b142004-11-16 13:29:40 +00002981 case $ac_im_incroot in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002982 /usr/include) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00002983 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002984 esac
Peter Åstrande713b142004-11-16 13:29:40 +00002985 case $ac_im_usrlibdir in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002986 /usr/lib | /lib) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00002987 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002988 esac
2989 fi
2990 cd ..
Peter Åstrande713b142004-11-16 13:29:40 +00002991 rm -fr conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002992fi
2993
Peter Åstrande713b142004-11-16 13:29:40 +00002994# Standard set of common directories for X headers.
2995# Check X11 before X11Rn because it is often a symlink to the current release.
2996ac_x_header_dirs='
2997/usr/X11/include
2998/usr/X11R6/include
2999/usr/X11R5/include
3000/usr/X11R4/include
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003001
Peter Åstrande713b142004-11-16 13:29:40 +00003002/usr/include/X11
3003/usr/include/X11R6
3004/usr/include/X11R5
3005/usr/include/X11R4
3006
3007/usr/local/X11/include
3008/usr/local/X11R6/include
3009/usr/local/X11R5/include
3010/usr/local/X11R4/include
3011
3012/usr/local/include/X11
3013/usr/local/include/X11R6
3014/usr/local/include/X11R5
3015/usr/local/include/X11R4
3016
3017/usr/X386/include
3018/usr/x386/include
3019/usr/XFree86/include/X11
3020
3021/usr/include
3022/usr/local/include
3023/usr/unsupported/include
3024/usr/athena/include
3025/usr/local/x11r5/include
3026/usr/lpp/Xamples/include
3027
3028/usr/openwin/include
3029/usr/openwin/share/include'
3030
3031if test "$ac_x_includes" = no; then
3032 # Guess where to find include files, by looking for Intrinsic.h.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003033 # First, try using that file with no special directory specified.
Peter Åstrande713b142004-11-16 13:29:40 +00003034 cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040#include <X11/Intrinsic.h>
3041_ACEOF
3042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } >/dev/null; then
3050 if test -s conftest.err; then
3051 ac_cpp_err=$ac_cxx_preproc_warn_flag
3052 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3053 else
3054 ac_cpp_err=
3055 fi
3056else
3057 ac_cpp_err=yes
3058fi
3059if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003060 # We can compile using X headers with no special include directory.
3061ac_x_includes=
3062else
Peter Åstrande713b142004-11-16 13:29:40 +00003063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 for ac_dir in $ac_x_header_dirs; do
3067 if test -r "$ac_dir/X11/Intrinsic.h"; then
3068 ac_x_includes=$ac_dir
3069 break
3070 fi
3071done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003072fi
Peter Åstrande713b142004-11-16 13:29:40 +00003073rm -f conftest.err conftest.$ac_ext
3074fi # $ac_x_includes = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003075
Peter Åstrande713b142004-11-16 13:29:40 +00003076if test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003077 # Check for the libraries.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003078 # See if we find them without any special options.
3079 # Don't add to $LIBS permanently.
Peter Åstrande713b142004-11-16 13:29:40 +00003080 ac_save_LIBS=$LIBS
3081 LIBS="-lXt $LIBS"
3082 cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088#include <X11/Intrinsic.h>
3089int
3090main ()
3091{
3092XtMalloc (0)
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext conftest$ac_exeext
3098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3099 (eval $ac_link) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_cxx_werror_flag"
3107 || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest$ac_exeext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 LIBS=$ac_save_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003120# We can link X programs with no special library path.
3121ac_x_libraries=
3122else
Peter Åstrande713b142004-11-16 13:29:40 +00003123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126LIBS=$ac_save_LIBS
3127for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003128do
Peter Åstrande713b142004-11-16 13:29:40 +00003129 # Don't even attempt the hair of trying to link an X program!
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003130 for ac_extension in a so sl; do
Peter Åstrande713b142004-11-16 13:29:40 +00003131 if test -r $ac_dir/libXt.$ac_extension; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003132 ac_x_libraries=$ac_dir
3133 break 2
3134 fi
3135 done
3136done
3137fi
Peter Åstrande713b142004-11-16 13:29:40 +00003138rm -f conftest.err conftest.$ac_objext \
3139 conftest$ac_exeext conftest.$ac_ext
3140fi # $ac_x_libraries = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003141
Peter Åstrande713b142004-11-16 13:29:40 +00003142if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003143 # Didn't find X anywhere. Cache the known absence of X.
3144 ac_cv_have_x="have_x=no"
3145else
3146 # Record where we found X for the cache.
3147 ac_cv_have_x="have_x=yes \
Peter Åstrande713b142004-11-16 13:29:40 +00003148 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003149fi
3150fi
Peter Åstrande713b142004-11-16 13:29:40 +00003151
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003152 fi
3153 eval "$ac_cv_have_x"
3154fi # $with_x != no
3155
3156if test "$have_x" != yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003157 echo "$as_me:$LINENO: result: $have_x" >&5
3158echo "${ECHO_T}$have_x" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003159 no_x=yes
3160else
3161 # If each of the values was on the command line, it overrides each guess.
3162 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3163 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3164 # Update the cache value to reflect the command line values.
3165 ac_cv_have_x="have_x=yes \
3166 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003167 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3168echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003169fi
3170
3171if test "$no_x" = yes; then
3172 # Not all programs may use this symbol, but it does not hurt to define it.
Peter Åstrande713b142004-11-16 13:29:40 +00003173
3174cat >>confdefs.h <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003175#define X_DISPLAY_MISSING 1
Peter Åstrande713b142004-11-16 13:29:40 +00003176_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003177
3178 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3179else
3180 if test -n "$x_includes"; then
3181 X_CFLAGS="$X_CFLAGS -I$x_includes"
3182 fi
3183
3184 # It would also be nice to do this for all -L options, not just this one.
3185 if test -n "$x_libraries"; then
3186 X_LIBS="$X_LIBS -L$x_libraries"
3187 # For Solaris; some versions of Sun CC require a space after -R and
3188 # others require no space. Words are not sufficient . . . .
Peter Åstrande713b142004-11-16 13:29:40 +00003189 case `(uname -sr) 2>/dev/null` in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003190 "SunOS 5"*)
Peter Åstrande713b142004-11-16 13:29:40 +00003191 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3192echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3193 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3194 cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003200
Peter Åstrande713b142004-11-16 13:29:40 +00003201int
3202main ()
3203{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003204
Peter Åstrande713b142004-11-16 13:29:40 +00003205 ;
3206 return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext conftest$ac_exeext
3210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211 (eval $ac_link) 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_cxx_werror_flag"
3219 || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest$ac_exeext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003231 ac_R_nospace=yes
3232else
Peter Åstrande713b142004-11-16 13:29:40 +00003233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236ac_R_nospace=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003237fi
Peter Åstrande713b142004-11-16 13:29:40 +00003238rm -f conftest.err conftest.$ac_objext \
3239 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003240 if test $ac_R_nospace = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003243 X_LIBS="$X_LIBS -R$x_libraries"
3244 else
3245 LIBS="$ac_xsave_LIBS -R $x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003252
Peter Åstrande713b142004-11-16 13:29:40 +00003253int
3254main ()
3255{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003256
Peter Åstrande713b142004-11-16 13:29:40 +00003257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext conftest$ac_exeext
3262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3263 (eval $ac_link) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_cxx_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest$ac_exeext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003283 ac_R_space=yes
3284else
Peter Åstrande713b142004-11-16 13:29:40 +00003285 echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288ac_R_space=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003289fi
Peter Åstrande713b142004-11-16 13:29:40 +00003290rm -f conftest.err conftest.$ac_objext \
3291 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003292 if test $ac_R_space = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003293 echo "$as_me:$LINENO: result: yes" >&5
3294echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003295 X_LIBS="$X_LIBS -R $x_libraries"
3296 else
Peter Åstrande713b142004-11-16 13:29:40 +00003297 echo "$as_me:$LINENO: result: neither works" >&5
3298echo "${ECHO_T}neither works" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003299 fi
3300 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003301 LIBS=$ac_xsave_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003302 esac
3303 fi
3304
3305 # Check for system-dependent libraries X programs must link with.
3306 # Do this before checking for the system-independent R6 libraries
3307 # (-lICE), since we may need -lsocket or whatever for X linking.
3308
3309 if test "$ISC" = yes; then
3310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3311 else
Peter Åstrande713b142004-11-16 13:29:40 +00003312 # Martyn Johnson says this is needed for Ultrix, if the X
3313 # libraries were built with DECnet support. And Karl Berry says
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003314 # the Alpha needs dnet_stub (dnet does not exist).
Peter Åstrande713b142004-11-16 13:29:40 +00003315 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003323/* Override any gcc2 internal prototype to avoid an error. */
3324#ifdef __cplusplus
3325extern "C"
3326#endif
3327/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003328 builtin and then its argument prototype would still apply. */
3329char XOpenDisplay ();
3330int
3331main ()
3332{
3333XOpenDisplay ();
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext conftest$ac_exeext
3339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340 (eval $ac_link) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_cxx_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 :
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003361else
Peter Åstrande713b142004-11-16 13:29:40 +00003362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003364
Peter Åstrande713b142004-11-16 13:29:40 +00003365echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3366echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3367if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 ac_check_lib_save_LIBS=$LIBS
3371LIBS="-ldnet $LIBS"
3372cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
3378
3379/* Override any gcc2 internal prototype to avoid an error. */
3380#ifdef __cplusplus
3381extern "C"
3382#endif
3383/* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3385char dnet_ntoa ();
3386int
3387main ()
3388{
3389dnet_ntoa ();
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext conftest$ac_exeext
3395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_cxx_werror_flag"
3404 || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest$ac_exeext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_lib_dnet_dnet_ntoa=yes
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421ac_cv_lib_dnet_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003422fi
Peter Åstrande713b142004-11-16 13:29:40 +00003423rm -f conftest.err conftest.$ac_objext \
3424 conftest$ac_exeext conftest.$ac_ext
3425LIBS=$ac_check_lib_save_LIBS
3426fi
3427echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3428echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3429if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003430 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003431fi
3432
3433 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003434 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3435echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3436if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003438else
Peter Åstrande713b142004-11-16 13:29:40 +00003439 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003440LIBS="-ldnet_stub $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003441cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
3447
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003448/* Override any gcc2 internal prototype to avoid an error. */
3449#ifdef __cplusplus
3450extern "C"
3451#endif
3452/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003453 builtin and then its argument prototype would still apply. */
3454char dnet_ntoa ();
3455int
3456main ()
3457{
3458dnet_ntoa ();
3459 ;
3460 return 0;
3461}
3462_ACEOF
3463rm -f conftest.$ac_objext conftest$ac_exeext
3464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_cxx_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest$ac_exeext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003486else
Peter Åstrande713b142004-11-16 13:29:40 +00003487 echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003489
Peter Åstrande713b142004-11-16 13:29:40 +00003490ac_cv_lib_dnet_stub_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003491fi
Peter Åstrande713b142004-11-16 13:29:40 +00003492rm -f conftest.err conftest.$ac_objext \
3493 conftest$ac_exeext conftest.$ac_ext
3494LIBS=$ac_check_lib_save_LIBS
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3497echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3498if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003500fi
3501
3502 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003503fi
3504rm -f conftest.err conftest.$ac_objext \
3505 conftest$ac_exeext conftest.$ac_ext
3506 LIBS="$ac_xsave_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003507
3508 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3509 # to get the SysV transport functions.
Peter Åstrande713b142004-11-16 13:29:40 +00003510 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003511 # needs -lnsl.
3512 # The nsl library prevents programs from opening the X display
Peter Åstrande713b142004-11-16 13:29:40 +00003513 # on Irix 5.2, according to T.E. Dickey.
3514 # The functions gethostbyname, getservbyname, and inet_addr are
3515 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3516 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3517echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3518if test "${ac_cv_func_gethostbyname+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003520else
Peter Åstrande713b142004-11-16 13:29:40 +00003521 cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3529#define gethostbyname innocuous_gethostbyname
3530
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003531/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003532 which can conflict with char gethostbyname (); below.
3533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 <limits.h> exists even on freestanding compilers. */
3535
3536#ifdef __STDC__
3537# include <limits.h>
3538#else
3539# include <assert.h>
3540#endif
3541
3542#undef gethostbyname
3543
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003544/* Override any gcc2 internal prototype to avoid an error. */
3545#ifdef __cplusplus
3546extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003547{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003548#endif
3549/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003550 builtin and then its argument prototype would still apply. */
3551char gethostbyname ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003552/* The GNU C library defines this for functions which it implements
3553 to always fail with ENOSYS. Some functions are actually named
3554 something starting with __ and the normal name is an alias. */
3555#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3556choke me
3557#else
Peter Åstrande713b142004-11-16 13:29:40 +00003558char (*f) () = gethostbyname;
3559#endif
3560#ifdef __cplusplus
3561}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003562#endif
3563
Peter Åstrande713b142004-11-16 13:29:40 +00003564int
3565main ()
3566{
3567return f != gethostbyname;
3568 ;
3569 return 0;
3570}
3571_ACEOF
3572rm -f conftest.$ac_objext conftest$ac_exeext
3573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3574 (eval $ac_link) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_cxx_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest$ac_exeext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_func_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003595else
Peter Åstrande713b142004-11-16 13:29:40 +00003596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003598
Peter Åstrande713b142004-11-16 13:29:40 +00003599ac_cv_func_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003600fi
Peter Åstrande713b142004-11-16 13:29:40 +00003601rm -f conftest.err conftest.$ac_objext \
3602 conftest$ac_exeext conftest.$ac_ext
3603fi
3604echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3605echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003606
3607 if test $ac_cv_func_gethostbyname = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003608 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3609echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3610if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003612else
Peter Åstrande713b142004-11-16 13:29:40 +00003613 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003614LIBS="-lnsl $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003615cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
3621
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003622/* Override any gcc2 internal prototype to avoid an error. */
3623#ifdef __cplusplus
3624extern "C"
3625#endif
3626/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003627 builtin and then its argument prototype would still apply. */
3628char gethostbyname ();
3629int
3630main ()
3631{
3632gethostbyname ();
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext conftest$ac_exeext
3638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -z "$ac_cxx_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest$ac_exeext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_cv_lib_nsl_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003660else
Peter Åstrande713b142004-11-16 13:29:40 +00003661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003663
Peter Åstrande713b142004-11-16 13:29:40 +00003664ac_cv_lib_nsl_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003665fi
Peter Åstrande713b142004-11-16 13:29:40 +00003666rm -f conftest.err conftest.$ac_objext \
3667 conftest$ac_exeext conftest.$ac_ext
3668LIBS=$ac_check_lib_save_LIBS
3669fi
3670echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3671echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3672if test $ac_cv_lib_nsl_gethostbyname = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003674fi
3675
Peter Åstrande713b142004-11-16 13:29:40 +00003676 if test $ac_cv_lib_nsl_gethostbyname = no; then
3677 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3678echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3679if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682 ac_check_lib_save_LIBS=$LIBS
3683LIBS="-lbsd $LIBS"
3684cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690
3691/* Override any gcc2 internal prototype to avoid an error. */
3692#ifdef __cplusplus
3693extern "C"
3694#endif
3695/* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697char gethostbyname ();
3698int
3699main ()
3700{
3701gethostbyname ();
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_cxx_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_lib_bsd_gethostbyname=yes
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_cv_lib_bsd_gethostbyname=no
3734fi
3735rm -f conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3737LIBS=$ac_check_lib_save_LIBS
3738fi
3739echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3740echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3741if test $ac_cv_lib_bsd_gethostbyname = yes; then
3742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3743fi
3744
3745 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003746 fi
3747
3748 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3749 # socket/setsockopt and other routines are undefined under SCO ODT
3750 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Peter Åstrande713b142004-11-16 13:29:40 +00003751 # on later versions), says Simon Leinen: it contains gethostby*
3752 # variants that don't use the name server (or something). -lsocket
3753 # must be given before -lnsl if both are needed. We assume that
3754 # if connect needs -lnsl, so does gethostbyname.
3755 echo "$as_me:$LINENO: checking for connect" >&5
3756echo $ECHO_N "checking for connect... $ECHO_C" >&6
3757if test "${ac_cv_func_connect+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003759else
Peter Åstrande713b142004-11-16 13:29:40 +00003760 cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h. */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h. */
3766/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3768#define connect innocuous_connect
3769
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003770/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003771 which can conflict with char connect (); below.
3772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 <limits.h> exists even on freestanding compilers. */
3774
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
3780
3781#undef connect
3782
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003783/* Override any gcc2 internal prototype to avoid an error. */
3784#ifdef __cplusplus
3785extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003786{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003787#endif
3788/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003789 builtin and then its argument prototype would still apply. */
3790char connect ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003791/* The GNU C library defines this for functions which it implements
3792 to always fail with ENOSYS. Some functions are actually named
3793 something starting with __ and the normal name is an alias. */
3794#if defined (__stub_connect) || defined (__stub___connect)
3795choke me
3796#else
Peter Åstrande713b142004-11-16 13:29:40 +00003797char (*f) () = connect;
3798#endif
3799#ifdef __cplusplus
3800}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003801#endif
3802
Peter Åstrande713b142004-11-16 13:29:40 +00003803int
3804main ()
3805{
3806return f != connect;
3807 ;
3808 return 0;
3809}
3810_ACEOF
3811rm -f conftest.$ac_objext conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -z "$ac_cxx_werror_flag"
3821 || test ! -s conftest.err'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; } &&
3827 { ac_try='test -s conftest$ac_exeext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 ac_cv_func_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003834else
Peter Åstrande713b142004-11-16 13:29:40 +00003835 echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003837
Peter Åstrande713b142004-11-16 13:29:40 +00003838ac_cv_func_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003839fi
Peter Åstrande713b142004-11-16 13:29:40 +00003840rm -f conftest.err conftest.$ac_objext \
3841 conftest$ac_exeext conftest.$ac_ext
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3844echo "${ECHO_T}$ac_cv_func_connect" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003845
3846 if test $ac_cv_func_connect = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003847 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3848echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3849if test "${ac_cv_lib_socket_connect+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003851else
Peter Åstrande713b142004-11-16 13:29:40 +00003852 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003853LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003854cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h. */
3860
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003861/* Override any gcc2 internal prototype to avoid an error. */
3862#ifdef __cplusplus
3863extern "C"
3864#endif
3865/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003866 builtin and then its argument prototype would still apply. */
3867char connect ();
3868int
3869main ()
3870{
3871connect ();
3872 ;
3873 return 0;
3874}
3875_ACEOF
3876rm -f conftest.$ac_objext conftest$ac_exeext
3877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878 (eval $ac_link) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_cxx_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_lib_socket_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003899else
Peter Åstrande713b142004-11-16 13:29:40 +00003900 echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003902
Peter Åstrande713b142004-11-16 13:29:40 +00003903ac_cv_lib_socket_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003904fi
Peter Åstrande713b142004-11-16 13:29:40 +00003905rm -f conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3907LIBS=$ac_check_lib_save_LIBS
3908fi
3909echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3910echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3911if test $ac_cv_lib_socket_connect = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003912 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003913fi
3914
3915 fi
3916
Peter Åstrande713b142004-11-16 13:29:40 +00003917 # Guillermo Gomez says -lposix is necessary on A/UX.
3918 echo "$as_me:$LINENO: checking for remove" >&5
3919echo $ECHO_N "checking for remove... $ECHO_C" >&6
3920if test "${ac_cv_func_remove+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003922else
Peter Åstrande713b142004-11-16 13:29:40 +00003923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
3929/* Define remove to an innocuous variant, in case <limits.h> declares remove.
3930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3931#define remove innocuous_remove
3932
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003933/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003934 which can conflict with char remove (); below.
3935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 <limits.h> exists even on freestanding compilers. */
3937
3938#ifdef __STDC__
3939# include <limits.h>
3940#else
3941# include <assert.h>
3942#endif
3943
3944#undef remove
3945
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003946/* Override any gcc2 internal prototype to avoid an error. */
3947#ifdef __cplusplus
3948extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003949{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003950#endif
3951/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003952 builtin and then its argument prototype would still apply. */
3953char remove ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003954/* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957#if defined (__stub_remove) || defined (__stub___remove)
3958choke me
3959#else
Peter Åstrande713b142004-11-16 13:29:40 +00003960char (*f) () = remove;
3961#endif
3962#ifdef __cplusplus
3963}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003964#endif
3965
Peter Åstrande713b142004-11-16 13:29:40 +00003966int
3967main ()
3968{
3969return f != remove;
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974rm -f conftest.$ac_objext conftest$ac_exeext
3975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3976 (eval $ac_link) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_cxx_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest$ac_exeext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_func_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003997else
Peter Åstrande713b142004-11-16 13:29:40 +00003998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004000
Peter Åstrande713b142004-11-16 13:29:40 +00004001ac_cv_func_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004002fi
Peter Åstrande713b142004-11-16 13:29:40 +00004003rm -f conftest.err conftest.$ac_objext \
4004 conftest$ac_exeext conftest.$ac_ext
4005fi
4006echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4007echo "${ECHO_T}$ac_cv_func_remove" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004008
4009 if test $ac_cv_func_remove = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004010 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4011echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4012if test "${ac_cv_lib_posix_remove+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004014else
Peter Åstrande713b142004-11-16 13:29:40 +00004015 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004016LIBS="-lposix $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004017cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004024/* Override any gcc2 internal prototype to avoid an error. */
4025#ifdef __cplusplus
4026extern "C"
4027#endif
4028/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004029 builtin and then its argument prototype would still apply. */
4030char remove ();
4031int
4032main ()
4033{
4034remove ();
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041 (eval $ac_link) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_cxx_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_cv_lib_posix_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004062else
Peter Åstrande713b142004-11-16 13:29:40 +00004063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004065
Peter Åstrande713b142004-11-16 13:29:40 +00004066ac_cv_lib_posix_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004067fi
Peter Åstrande713b142004-11-16 13:29:40 +00004068rm -f conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4070LIBS=$ac_check_lib_save_LIBS
4071fi
4072echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4073echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4074if test $ac_cv_lib_posix_remove = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004075 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004076fi
4077
4078 fi
4079
4080 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Peter Åstrande713b142004-11-16 13:29:40 +00004081 echo "$as_me:$LINENO: checking for shmat" >&5
4082echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4083if test "${ac_cv_func_shmat+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004085else
Peter Åstrande713b142004-11-16 13:29:40 +00004086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4094#define shmat innocuous_shmat
4095
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004096/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004097 which can conflict with char shmat (); below.
4098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 <limits.h> exists even on freestanding compilers. */
4100
4101#ifdef __STDC__
4102# include <limits.h>
4103#else
4104# include <assert.h>
4105#endif
4106
4107#undef shmat
4108
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004109/* Override any gcc2 internal prototype to avoid an error. */
4110#ifdef __cplusplus
4111extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004112{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004113#endif
4114/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004115 builtin and then its argument prototype would still apply. */
4116char shmat ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004117/* The GNU C library defines this for functions which it implements
4118 to always fail with ENOSYS. Some functions are actually named
4119 something starting with __ and the normal name is an alias. */
4120#if defined (__stub_shmat) || defined (__stub___shmat)
4121choke me
4122#else
Peter Åstrande713b142004-11-16 13:29:40 +00004123char (*f) () = shmat;
4124#endif
4125#ifdef __cplusplus
4126}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004127#endif
4128
Peter Åstrande713b142004-11-16 13:29:40 +00004129int
4130main ()
4131{
4132return f != shmat;
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137rm -f conftest.$ac_objext conftest$ac_exeext
4138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139 (eval $ac_link) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_cxx_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest$ac_exeext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_cv_func_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004160else
Peter Åstrande713b142004-11-16 13:29:40 +00004161 echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004163
Peter Åstrande713b142004-11-16 13:29:40 +00004164ac_cv_func_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004165fi
Peter Åstrande713b142004-11-16 13:29:40 +00004166rm -f conftest.err conftest.$ac_objext \
4167 conftest$ac_exeext conftest.$ac_ext
4168fi
4169echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4170echo "${ECHO_T}$ac_cv_func_shmat" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004171
4172 if test $ac_cv_func_shmat = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004173 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4174echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4175if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004177else
Peter Åstrande713b142004-11-16 13:29:40 +00004178 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004179LIBS="-lipc $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004180cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
4186
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004187/* Override any gcc2 internal prototype to avoid an error. */
4188#ifdef __cplusplus
4189extern "C"
4190#endif
4191/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004192 builtin and then its argument prototype would still apply. */
4193char shmat ();
4194int
4195main ()
4196{
4197shmat ();
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_cxx_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_lib_ipc_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004225else
Peter Åstrande713b142004-11-16 13:29:40 +00004226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004228
Peter Åstrande713b142004-11-16 13:29:40 +00004229ac_cv_lib_ipc_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004230fi
Peter Åstrande713b142004-11-16 13:29:40 +00004231rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233LIBS=$ac_check_lib_save_LIBS
4234fi
4235echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4236echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4237if test $ac_cv_lib_ipc_shmat = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004239fi
4240
4241 fi
4242 fi
4243
4244 # Check for libraries that X11R6 Xt/Xaw programs need.
Peter Åstrande713b142004-11-16 13:29:40 +00004245 ac_save_LDFLAGS=$LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004246 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4247 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4248 # check for ICE first), but we must link in the order -lSM -lICE or
4249 # we get undefined symbols. So assume we have SM if we have ICE.
4250 # These have to be linked with before -lX11, unlike the other
4251 # libraries we check for below, so use a different variable.
Peter Åstrande713b142004-11-16 13:29:40 +00004252 # John Interrante, Karl Berry
4253 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4254echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4255if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004257else
Peter Åstrande713b142004-11-16 13:29:40 +00004258 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004259LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004260cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004267/* Override any gcc2 internal prototype to avoid an error. */
4268#ifdef __cplusplus
4269extern "C"
4270#endif
4271/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004272 builtin and then its argument prototype would still apply. */
4273char IceConnectionNumber ();
4274int
4275main ()
4276{
4277IceConnectionNumber ();
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_cxx_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_lib_ICE_IceConnectionNumber=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004305else
Peter Åstrande713b142004-11-16 13:29:40 +00004306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004308
Peter Åstrande713b142004-11-16 13:29:40 +00004309ac_cv_lib_ICE_IceConnectionNumber=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004310fi
Peter Åstrande713b142004-11-16 13:29:40 +00004311rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313LIBS=$ac_check_lib_save_LIBS
4314fi
4315echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4316echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4317if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004319fi
4320
Peter Åstrande713b142004-11-16 13:29:40 +00004321 LDFLAGS=$ac_save_LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004322
4323fi
4324
4325
Peter Åstrande713b142004-11-16 13:29:40 +00004326
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004327# Check whether --with-installed-zlib or --without-installed-zlib was given.
4328if test "${with_installed_zlib+set}" = set; then
4329 withval="$with_installed_zlib"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004330
Peter Åstrande713b142004-11-16 13:29:40 +00004331fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004332
4333if test "$with_installed_zlib" = yes; then
4334 echo "using installed zlib"
4335 ZLIB_LIB=-lz
4336else
4337 ZLIB_DIR=zlib
4338 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
4339 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
4340 echo "configuring zlib..."
4341 (cd zlib; ./configure)
4342 echo "...done configuring zlib"
4343fi
4344
4345
4346
4347
4348
Peter Åstrande713b142004-11-16 13:29:40 +00004349echo "$as_me:$LINENO: checking for vsnprintf" >&5
4350echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
4351if test "${ac_cv_func_vsnprintf+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004353else
Peter Åstrande713b142004-11-16 13:29:40 +00004354 cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
4361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4362#define vsnprintf innocuous_vsnprintf
4363
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004364/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004365 which can conflict with char vsnprintf (); below.
4366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 <limits.h> exists even on freestanding compilers. */
4368
4369#ifdef __STDC__
4370# include <limits.h>
4371#else
4372# include <assert.h>
4373#endif
4374
4375#undef vsnprintf
4376
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004377/* Override any gcc2 internal prototype to avoid an error. */
4378#ifdef __cplusplus
4379extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004380{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004381#endif
4382/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004383 builtin and then its argument prototype would still apply. */
4384char vsnprintf ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004385/* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
4389choke me
4390#else
Peter Åstrande713b142004-11-16 13:29:40 +00004391char (*f) () = vsnprintf;
4392#endif
4393#ifdef __cplusplus
4394}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004395#endif
4396
Peter Åstrande713b142004-11-16 13:29:40 +00004397int
4398main ()
4399{
4400return f != vsnprintf;
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext conftest$ac_exeext
4406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_cxx_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_func_vsnprintf=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004428else
Peter Åstrande713b142004-11-16 13:29:40 +00004429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004431
Peter Åstrande713b142004-11-16 13:29:40 +00004432ac_cv_func_vsnprintf=no
4433fi
4434rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4436fi
4437echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
4438echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
4439if test $ac_cv_func_vsnprintf = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004440 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
4441else
Peter Åstrande713b142004-11-16 13:29:40 +00004442 VSNPRINTF_DEFINE=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004443fi
4444
4445
4446
Peter Åstrande713b142004-11-16 13:29:40 +00004447echo "$as_me:$LINENO: checking for socklen_t" >&5
4448echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4449cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h. */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004455#include <sys/types.h>
4456 #include <sys/socket.h>
Peter Åstrande713b142004-11-16 13:29:40 +00004457int
4458main ()
4459{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004460socklen_t x;
4461accept(0, 0, &x);
Peter Åstrande713b142004-11-16 13:29:40 +00004462 ;
4463 return 0;
4464}
4465_ACEOF
4466rm -f conftest.$ac_objext
4467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_cxx_werror_flag"
4476 || test ! -s conftest.err'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest.$ac_objext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 echo "$as_me:$LINENO: result: yes" >&5
4489echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004490SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
4491else
Peter Åstrande713b142004-11-16 13:29:40 +00004492 echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495echo "$as_me:$LINENO: result: using int" >&5
4496echo "${ECHO_T}using int" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004497SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
4498fi
Peter Åstrande713b142004-11-16 13:29:40 +00004499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004500
4501
4502BOILERPLATE=boilerplate.mk
4503
4504if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
4505 if sh -c "vncmkdepend" >/dev/null 2>&1; then
4506 BOILERPLATE="$BOILERPLATE:depend.mk"
4507 fi
4508fi
4509
Peter Åstrande713b142004-11-16 13:29:40 +00004510 ac_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 tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE"
4511cat >confcache <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004512# This file is a shell script that caches the results of configure
4513# tests run on this system so they can be shared between configure
Peter Åstrande713b142004-11-16 13:29:40 +00004514# scripts and configure runs, see configure's option --config-cache.
4515# It is not useful on other systems. If it contains results you don't
4516# want to keep, you may remove or edit it.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004517#
Peter Åstrande713b142004-11-16 13:29:40 +00004518# config.status only pays attention to the cache file if you give it
4519# the --recheck option to rerun configure.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004520#
Peter Åstrande713b142004-11-16 13:29:40 +00004521# `ac_cv_env_foo' variables (set or unset) will be overridden when
4522# loading this file, other *unset* `ac_cv_foo' will be assigned the
4523# following values.
4524
4525_ACEOF
4526
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004527# The following way of writing the cache mishandles newlines in values,
4528# but we know of no workaround that is simple, portable, and efficient.
4529# So, don't put newlines in cache variables' values.
4530# Ultrix sh set writes to stderr and can't be redirected directly,
4531# and sets the high bit in the cache file unless we assign to the vars.
Peter Åstrande713b142004-11-16 13:29:40 +00004532{
4533 (set) 2>&1 |
4534 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4535 *ac_space=\ *)
4536 # `set' does not quote correctly, so add quotes (double-quote
4537 # substitution turns \\\\ into \\, and sed turns \\ into \).
4538 sed -n \
4539 "s/'/'\\\\''/g;
4540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4541 ;;
4542 *)
4543 # `set' quotes correctly as required by POSIX, so do not add quotes.
4544 sed -n \
4545 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4546 ;;
4547 esac;
4548} |
4549 sed '
4550 t clear
4551 : clear
4552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4553 t end
4554 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4555 : end' >>confcache
4556if diff $cache_file confcache >/dev/null 2>&1; then :; else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004557 if test -w $cache_file; then
Peter Åstrande713b142004-11-16 13:29:40 +00004558 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4559 cat confcache >$cache_file
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004560 else
4561 echo "not updating unwritable cache $cache_file"
4562 fi
4563fi
4564rm -f confcache
4565
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004566test "x$prefix" = xNONE && prefix=$ac_default_prefix
4567# Let make expand exec_prefix.
4568test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4569
Peter Åstrande713b142004-11-16 13:29:40 +00004570# VPATH may cause trouble with some makes, so we remove $(srcdir),
4571# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4572# trailing colons and then remove the whole line if VPATH becomes empty
4573# (actually we leave an empty line to preserve line numbers).
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004574if test "x$srcdir" = x.; then
Peter Åstrande713b142004-11-16 13:29:40 +00004575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4576s/:*\$(srcdir):*/:/;
4577s/:*\${srcdir}:*/:/;
4578s/:*@srcdir@:*/:/;
4579s/^\([^=]*=[ ]*\):*/\1/;
4580s/:*$//;
4581s/^[^=]*=[ ]*$//;
4582}'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004583fi
4584
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004585# Transform confdefs.h into DEFS.
4586# Protect against shell expansion while executing Makefile rules.
4587# Protect against Makefile macro expansion.
Peter Åstrande713b142004-11-16 13:29:40 +00004588#
4589# If the first sed substitution is executed (which looks for macros that
4590# take arguments), then we branch to the quote section. Otherwise,
4591# look for a macro that doesn't take arguments.
4592cat >confdef2opt.sed <<\_ACEOF
4593t clear
4594: clear
4595s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4596t quote
4597s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4598t quote
4599d
4600: quote
4601s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4602s,\[,\\&,g
4603s,\],\\&,g
4604s,\$,$$,g
4605p
4606_ACEOF
4607# We use echo to avoid assuming a particular line-breaking character.
4608# The extra dot is to prevent the shell from consuming trailing
4609# line-breaks from the sub-command output. A line-break within
4610# single-quotes doesn't work because, if this script is created in a
4611# platform that uses two characters for line-breaks (e.g., DOS), tr
4612# would break.
4613ac_LF_and_DOT=`echo; echo .`
4614DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4615rm -f confdef2opt.sed
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004616
4617
Peter Åstrande713b142004-11-16 13:29:40 +00004618ac_libobjs=
4619ac_ltlibobjs=
4620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4621 # 1. Remove the extension, and $U if already installed.
4622 ac_i=`echo "$ac_i" |
4623 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4624 # 2. Add them.
4625 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4626 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4627done
4628LIBOBJS=$ac_libobjs
4629
4630LTLIBOBJS=$ac_ltlibobjs
4631
4632
4633
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004634: ${CONFIG_STATUS=./config.status}
Peter Åstrande713b142004-11-16 13:29:40 +00004635ac_clean_files_save=$ac_clean_files
4636ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4637{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4638echo "$as_me: creating $CONFIG_STATUS" >&6;}
4639cat >$CONFIG_STATUS <<_ACEOF
4640#! $SHELL
4641# Generated by $as_me.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004642# Run this file to recreate the current configuration.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004643# Compiler output produced by configure, useful for debugging
Peter Åstrande713b142004-11-16 13:29:40 +00004644# configure, is in config.log if it exists.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004645
Peter Åstrande713b142004-11-16 13:29:40 +00004646debug=false
4647ac_cs_recheck=false
4648ac_cs_silent=false
4649SHELL=\${CONFIG_SHELL-$SHELL}
4650_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004651
Peter Åstrande713b142004-11-16 13:29:40 +00004652cat >>$CONFIG_STATUS <<\_ACEOF
4653## --------------------- ##
4654## M4sh Initialization. ##
4655## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004656
Peter Åstrande713b142004-11-16 13:29:40 +00004657# Be Bourne compatible
4658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4659 emulate sh
4660 NULLCMD=:
4661 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4662 # is contrary to our usage. Disable this feature.
4663 alias -g '${1+"$@"}'='"$@"'
4664elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4665 set -o posix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004666fi
Peter Åstrande713b142004-11-16 13:29:40 +00004667DUALCASE=1; export DUALCASE # for MKS sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004668
Peter Åstrande713b142004-11-16 13:29:40 +00004669# Support unset when possible.
4670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4671 as_unset=unset
4672else
4673 as_unset=false
4674fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004675
Peter Åstrande713b142004-11-16 13:29:40 +00004676
4677# Work around bugs in pre-3.0 UWIN ksh.
4678$as_unset ENV MAIL MAILPATH
4679PS1='$ '
4680PS2='> '
4681PS4='+ '
4682
4683# NLS nuisances.
4684for as_var in \
4685 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4686 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4687 LC_TELEPHONE LC_TIME
4688do
4689 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4690 eval $as_var=C; export $as_var
4691 else
4692 $as_unset $as_var
4693 fi
4694done
4695
4696# Required to use basename.
4697if expr a : '\(a\)' >/dev/null 2>&1; then
4698 as_expr=expr
4699else
4700 as_expr=false
4701fi
4702
4703if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4704 as_basename=basename
4705else
4706 as_basename=false
4707fi
4708
4709
4710# Name of the executable.
4711as_me=`$as_basename "$0" ||
4712$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4713 X"$0" : 'X\(//\)$' \| \
4714 X"$0" : 'X\(/\)$' \| \
4715 . : '\(.\)' 2>/dev/null ||
4716echo X/"$0" |
4717 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4718 /^X\/\(\/\/\)$/{ s//\1/; q; }
4719 /^X\/\(\/\).*/{ s//\1/; q; }
4720 s/.*/./; q'`
4721
4722
4723# PATH needs CR, and LINENO needs CR and PATH.
4724# Avoid depending upon Character Ranges.
4725as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4726as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4727as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4728as_cr_digits='0123456789'
4729as_cr_alnum=$as_cr_Letters$as_cr_digits
4730
4731# The user is always right.
4732if test "${PATH_SEPARATOR+set}" != set; then
4733 echo "#! /bin/sh" >conf$$.sh
4734 echo "exit 0" >>conf$$.sh
4735 chmod +x conf$$.sh
4736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4737 PATH_SEPARATOR=';'
4738 else
4739 PATH_SEPARATOR=:
4740 fi
4741 rm -f conf$$.sh
4742fi
4743
4744
4745 as_lineno_1=$LINENO
4746 as_lineno_2=$LINENO
4747 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4748 test "x$as_lineno_1" != "x$as_lineno_2" &&
4749 test "x$as_lineno_3" = "x$as_lineno_2" || {
4750 # Find who we are. Look in the path if we contain no path at all
4751 # relative or not.
4752 case $0 in
4753 *[\\/]* ) as_myself=$0 ;;
4754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4760done
4761
4762 ;;
4763 esac
4764 # We did not find ourselves, most probably we were run as `sh COMMAND'
4765 # in which case we are not to be found in the path.
4766 if test "x$as_myself" = x; then
4767 as_myself=$0
4768 fi
4769 if test ! -f "$as_myself"; then
4770 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4771echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4772 { (exit 1); exit 1; }; }
4773 fi
4774 case $CONFIG_SHELL in
4775 '')
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for as_base in sh bash ksh sh5; do
4782 case $as_dir in
4783 /*)
4784 if ("$as_dir/$as_base" -c '
4785 as_lineno_1=$LINENO
4786 as_lineno_2=$LINENO
4787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4788 test "x$as_lineno_1" != "x$as_lineno_2" &&
4789 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4790 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4791 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4792 CONFIG_SHELL=$as_dir/$as_base
4793 export CONFIG_SHELL
4794 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4795 fi;;
4796 esac
4797 done
4798done
4799;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004800 esac
4801
Peter Åstrande713b142004-11-16 13:29:40 +00004802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4803 # uniformly replaced by the line number. The first 'sed' inserts a
4804 # line-number line before each line; the second 'sed' does the real
4805 # work. The second script uses 'N' to pair each line-number line
4806 # with the numbered line, and appends trailing '-' during
4807 # substitution so that $LINENO is not a special case at line end.
4808 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4809 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4810 sed '=' <$as_myself |
4811 sed '
4812 N
4813 s,$,-,
4814 : loop
4815 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4816 t loop
4817 s,-$,,
4818 s,^['$as_cr_digits']*\n,,
4819 ' >$as_me.lineno &&
4820 chmod +x $as_me.lineno ||
4821 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4822echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4823 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004824
Peter Åstrande713b142004-11-16 13:29:40 +00004825 # Don't try to exec as it changes $[0], causing all sort of problems
4826 # (the dirname of $[0] is not the place where we might find the
4827 # original and so on. Autoconf is especially sensible to this).
4828 . ./$as_me.lineno
4829 # Exit status is that of the last command.
4830 exit
4831}
4832
4833
4834case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4835 *c*,-n*) ECHO_N= ECHO_C='
4836' ECHO_T=' ' ;;
4837 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4838 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4839esac
4840
4841if expr a : '\(a\)' >/dev/null 2>&1; then
4842 as_expr=expr
4843else
4844 as_expr=false
4845fi
4846
4847rm -f conf$$ conf$$.exe conf$$.file
4848echo >conf$$.file
4849if ln -s conf$$.file conf$$ 2>/dev/null; then
4850 # We could just check for DJGPP; but this test a) works b) is more generic
4851 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4852 if test -f conf$$.exe; then
4853 # Don't use ln at all; we don't have any links
4854 as_ln_s='cp -p'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004855 else
Peter Åstrande713b142004-11-16 13:29:40 +00004856 as_ln_s='ln -s'
4857 fi
4858elif ln conf$$.file conf$$ 2>/dev/null; then
4859 as_ln_s=ln
4860else
4861 as_ln_s='cp -p'
4862fi
4863rm -f conf$$ conf$$.exe conf$$.file
4864
4865if mkdir -p . 2>/dev/null; then
4866 as_mkdir_p=:
4867else
4868 test -d ./-p && rmdir ./-p
4869 as_mkdir_p=false
4870fi
4871
4872as_executable_p="test -f"
4873
4874# Sed expression to map a string onto a valid CPP name.
4875as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4876
4877# Sed expression to map a string onto a valid variable name.
4878as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4879
4880
4881# IFS
4882# We need space, tab and new line, in precisely that order.
4883as_nl='
4884'
4885IFS=" $as_nl"
4886
4887# CDPATH.
4888$as_unset CDPATH
4889
4890exec 6>&1
4891
4892# Open the log real soon, to keep \$[0] and so on meaningful, and to
4893# report actual input values of CONFIG_FILES etc. instead of their
4894# values after options handling. Logging --version etc. is OK.
4895exec 5>>config.log
4896{
4897 echo
4898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4899## Running $as_me. ##
4900_ASBOX
4901} >&5
4902cat >&5 <<_CSEOF
4903
4904This file was extended by $as_me, which was
4905generated by GNU Autoconf 2.59. Invocation command line was
4906
4907 CONFIG_FILES = $CONFIG_FILES
4908 CONFIG_HEADERS = $CONFIG_HEADERS
4909 CONFIG_LINKS = $CONFIG_LINKS
4910 CONFIG_COMMANDS = $CONFIG_COMMANDS
4911 $ $0 $@
4912
4913_CSEOF
4914echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4915echo >&5
4916_ACEOF
4917
4918# Files that config.status was made for.
4919if test -n "$ac_config_files"; then
4920 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4921fi
4922
4923if test -n "$ac_config_headers"; then
4924 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4925fi
4926
4927if test -n "$ac_config_links"; then
4928 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4929fi
4930
4931if test -n "$ac_config_commands"; then
4932 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4933fi
4934
4935cat >>$CONFIG_STATUS <<\_ACEOF
4936
4937ac_cs_usage="\
4938\`$as_me' instantiates files from templates according to the
4939current configuration.
4940
4941Usage: $0 [OPTIONS] [FILE]...
4942
4943 -h, --help print this help, then exit
4944 -V, --version print version number, then exit
4945 -q, --quiet do not print progress messages
4946 -d, --debug don't remove temporary files
4947 --recheck update $as_me by reconfiguring in the same conditions
4948 --file=FILE[:TEMPLATE]
4949 instantiate the configuration file FILE
4950
4951Configuration files:
4952$config_files
4953
4954Report bugs to <bug-autoconf@gnu.org>."
4955_ACEOF
4956
4957cat >>$CONFIG_STATUS <<_ACEOF
4958ac_cs_version="\\
4959config.status
4960configured by $0, generated by GNU Autoconf 2.59,
4961 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4962
4963Copyright (C) 2003 Free Software Foundation, Inc.
4964This config.status script is free software; the Free Software Foundation
4965gives unlimited permission to copy, distribute and modify it."
4966srcdir=$srcdir
4967_ACEOF
4968
4969cat >>$CONFIG_STATUS <<\_ACEOF
4970# If no file are specified by the user, then we need to provide default
4971# value. By we need to know if files were specified by the user.
4972ac_need_defaults=:
4973while test $# != 0
4974do
4975 case $1 in
4976 --*=*)
4977 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4978 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4979 ac_shift=:
4980 ;;
4981 -*)
4982 ac_option=$1
4983 ac_optarg=$2
4984 ac_shift=shift
4985 ;;
4986 *) # This is not an option, so the user has probably given explicit
4987 # arguments.
4988 ac_option=$1
4989 ac_need_defaults=false;;
4990 esac
4991
4992 case $ac_option in
4993 # Handling of the options.
4994_ACEOF
4995cat >>$CONFIG_STATUS <<\_ACEOF
4996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4997 ac_cs_recheck=: ;;
4998 --version | --vers* | -V )
4999 echo "$ac_cs_version"; exit 0 ;;
5000 --he | --h)
5001 # Conflict between --help and --header
5002 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5003Try \`$0 --help' for more information." >&5
5004echo "$as_me: error: ambiguous option: $1
5005Try \`$0 --help' for more information." >&2;}
5006 { (exit 1); exit 1; }; };;
5007 --help | --hel | -h )
5008 echo "$ac_cs_usage"; exit 0 ;;
5009 --debug | --d* | -d )
5010 debug=: ;;
5011 --file | --fil | --fi | --f )
5012 $ac_shift
5013 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5014 ac_need_defaults=false;;
5015 --header | --heade | --head | --hea )
5016 $ac_shift
5017 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5018 ac_need_defaults=false;;
5019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5021 ac_cs_silent=: ;;
5022
5023 # This is an error.
5024 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5025Try \`$0 --help' for more information." >&5
5026echo "$as_me: error: unrecognized option: $1
5027Try \`$0 --help' for more information." >&2;}
5028 { (exit 1); exit 1; }; } ;;
5029
5030 *) ac_config_targets="$ac_config_targets $1" ;;
5031
5032 esac
5033 shift
5034done
5035
5036ac_configure_extra_args=
5037
5038if $ac_cs_silent; then
5039 exec 6>/dev/null
5040 ac_configure_extra_args="$ac_configure_extra_args --silent"
5041fi
5042
5043_ACEOF
5044cat >>$CONFIG_STATUS <<_ACEOF
5045if \$ac_cs_recheck; then
5046 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5047 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5048fi
5049
5050_ACEOF
5051
5052
5053
5054
5055
5056cat >>$CONFIG_STATUS <<\_ACEOF
5057for ac_config_target in $ac_config_targets
5058do
5059 case "$ac_config_target" in
5060 # Handling of arguments.
5061 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
5062 "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
5063 "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
5064 "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
5065 "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
5066 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;;
5067 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;;
5068 "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;;
5069 "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;;
5070 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;;
5071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5072echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5073 { (exit 1); exit 1; }; };;
5074 esac
5075done
5076
5077# If the user did not use the arguments to specify the items to instantiate,
5078# then the envvar interface is used. Set only those that are not.
5079# We use the long form for the default assignment because of an extremely
5080# bizarre bug on SunOS 4.1.3.
5081if $ac_need_defaults; then
5082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5083fi
5084
5085# Have a temporary directory for convenience. Make it in the build tree
5086# simply because there is no reason to put it here, and in addition,
5087# creating and moving files from /tmp can sometimes cause problems.
5088# Create a temporary directory, and hook for its removal unless debugging.
5089$debug ||
5090{
5091 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5092 trap '{ (exit 1); exit 1; }' 1 2 13 15
5093}
5094
5095# Create a (secure) tmp directory for tmp files.
5096
5097{
5098 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5099 test -n "$tmp" && test -d "$tmp"
5100} ||
5101{
5102 tmp=./confstat$$-$RANDOM
5103 (umask 077 && mkdir $tmp)
5104} ||
5105{
5106 echo "$me: cannot create a temporary directory in ." >&2
5107 { (exit 1); exit 1; }
5108}
5109
5110_ACEOF
5111
5112cat >>$CONFIG_STATUS <<_ACEOF
5113
5114#
5115# CONFIG_FILES section.
5116#
5117
5118# No need to generate the scripts if there are no CONFIG_FILES.
5119# This happens for instance when ./config.status config.h
5120if test -n "\$CONFIG_FILES"; then
5121 # Protect against being on the right side of a sed subst in config.status.
5122 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5123 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5124s,@SHELL@,$SHELL,;t t
5125s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5126s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5127s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5128s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5129s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5130s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5131s,@exec_prefix@,$exec_prefix,;t t
5132s,@prefix@,$prefix,;t t
5133s,@program_transform_name@,$program_transform_name,;t t
5134s,@bindir@,$bindir,;t t
5135s,@sbindir@,$sbindir,;t t
5136s,@libexecdir@,$libexecdir,;t t
5137s,@datadir@,$datadir,;t t
5138s,@sysconfdir@,$sysconfdir,;t t
5139s,@sharedstatedir@,$sharedstatedir,;t t
5140s,@localstatedir@,$localstatedir,;t t
5141s,@libdir@,$libdir,;t t
5142s,@includedir@,$includedir,;t t
5143s,@oldincludedir@,$oldincludedir,;t t
5144s,@infodir@,$infodir,;t t
5145s,@mandir@,$mandir,;t t
5146s,@build_alias@,$build_alias,;t t
5147s,@host_alias@,$host_alias,;t t
5148s,@target_alias@,$target_alias,;t t
5149s,@DEFS@,$DEFS,;t t
5150s,@ECHO_C@,$ECHO_C,;t t
5151s,@ECHO_N@,$ECHO_N,;t t
5152s,@ECHO_T@,$ECHO_T,;t t
5153s,@LIBS@,$LIBS,;t t
5154s,@CC@,$CC,;t t
5155s,@CFLAGS@,$CFLAGS,;t t
5156s,@LDFLAGS@,$LDFLAGS,;t t
5157s,@CPPFLAGS@,$CPPFLAGS,;t t
5158s,@ac_ct_CC@,$ac_ct_CC,;t t
5159s,@EXEEXT@,$EXEEXT,;t t
5160s,@OBJEXT@,$OBJEXT,;t t
5161s,@CXX@,$CXX,;t t
5162s,@CXXFLAGS@,$CXXFLAGS,;t t
5163s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5164s,@RANLIB@,$RANLIB,;t t
5165s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5166s,@SET_MAKE@,$SET_MAKE,;t t
5167s,@MITSHM_CPPFLAGS@,$MITSHM_CPPFLAGS,;t t
5168s,@CXXCPP@,$CXXCPP,;t t
5169s,@X_CFLAGS@,$X_CFLAGS,;t t
5170s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5171s,@X_LIBS@,$X_LIBS,;t t
5172s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5173s,@ZLIB_DIR@,$ZLIB_DIR,;t t
5174s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
5175s,@ZLIB_LIB@,$ZLIB_LIB,;t t
5176s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t
5177s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t
5178s,@LIBOBJS@,$LIBOBJS,;t t
5179s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5180CEOF
5181
5182_ACEOF
5183
5184 cat >>$CONFIG_STATUS <<\_ACEOF
5185 # Split the substitutions into bite-sized pieces for seds with
5186 # small command number limits, like on Digital OSF/1 and HP-UX.
5187 ac_max_sed_lines=48
5188 ac_sed_frag=1 # Number of current file.
5189 ac_beg=1 # First line for current file.
5190 ac_end=$ac_max_sed_lines # Line after last line for current file.
5191 ac_more_lines=:
5192 ac_sed_cmds=
5193 while $ac_more_lines; do
5194 if test $ac_beg -gt 1; then
5195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5196 else
5197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5198 fi
5199 if test ! -s $tmp/subs.frag; then
5200 ac_more_lines=false
5201 else
5202 # The purpose of the label and of the branching condition is to
5203 # speed up the sed processing (if there are no `@' at all, there
5204 # is no need to browse any of the substitutions).
5205 # These are the two extra sed commands mentioned above.
5206 (echo ':t
5207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5208 if test -z "$ac_sed_cmds"; then
5209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5210 else
5211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5212 fi
5213 ac_sed_frag=`expr $ac_sed_frag + 1`
5214 ac_beg=$ac_end
5215 ac_end=`expr $ac_end + $ac_max_sed_lines`
5216 fi
5217 done
5218 if test -z "$ac_sed_cmds"; then
5219 ac_sed_cmds=cat
5220 fi
5221fi # test -n "$CONFIG_FILES"
5222
5223_ACEOF
5224cat >>$CONFIG_STATUS <<\_ACEOF
5225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5227 case $ac_file in
5228 - | *:- | *:-:* ) # input from stdin
5229 cat >$tmp/stdin
5230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5234 * ) ac_file_in=$ac_file.in ;;
5235 esac
5236
5237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5240 X"$ac_file" : 'X\(//\)[^/]' \| \
5241 X"$ac_file" : 'X\(//\)$' \| \
5242 X"$ac_file" : 'X\(/\)' \| \
5243 . : '\(.\)' 2>/dev/null ||
5244echo X"$ac_file" |
5245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5247 /^X\(\/\/\)$/{ s//\1/; q; }
5248 /^X\(\/\).*/{ s//\1/; q; }
5249 s/.*/./; q'`
5250 { if $as_mkdir_p; then
5251 mkdir -p "$ac_dir"
5252 else
5253 as_dir="$ac_dir"
5254 as_dirs=
5255 while test ! -d "$as_dir"; do
5256 as_dirs="$as_dir $as_dirs"
5257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5259 X"$as_dir" : 'X\(//\)[^/]' \| \
5260 X"$as_dir" : 'X\(//\)$' \| \
5261 X"$as_dir" : 'X\(/\)' \| \
5262 . : '\(.\)' 2>/dev/null ||
5263echo X"$as_dir" |
5264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5266 /^X\(\/\/\)$/{ s//\1/; q; }
5267 /^X\(\/\).*/{ s//\1/; q; }
5268 s/.*/./; q'`
5269 done
5270 test ! -n "$as_dirs" || mkdir $as_dirs
5271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5273 { (exit 1); exit 1; }; }; }
5274
5275 ac_builddir=.
5276
5277if test "$ac_dir" != .; then
5278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5279 # A "../" for each directory in $ac_dir_suffix.
5280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5281else
5282 ac_dir_suffix= ac_top_builddir=
5283fi
5284
5285case $srcdir in
5286 .) # No --srcdir option. We are building in place.
5287 ac_srcdir=.
5288 if test -z "$ac_top_builddir"; then
5289 ac_top_srcdir=.
5290 else
5291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5292 fi ;;
5293 [\\/]* | ?:[\\/]* ) # Absolute path.
5294 ac_srcdir=$srcdir$ac_dir_suffix;
5295 ac_top_srcdir=$srcdir ;;
5296 *) # Relative path.
5297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5299esac
5300
5301# Do not use `cd foo && pwd` to compute absolute paths, because
5302# the directories may not exist.
5303case `pwd` in
5304.) ac_abs_builddir="$ac_dir";;
5305*)
5306 case "$ac_dir" in
5307 .) ac_abs_builddir=`pwd`;;
5308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5310 esac;;
5311esac
5312case $ac_abs_builddir in
5313.) ac_abs_top_builddir=${ac_top_builddir}.;;
5314*)
5315 case ${ac_top_builddir}. in
5316 .) ac_abs_top_builddir=$ac_abs_builddir;;
5317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5319 esac;;
5320esac
5321case $ac_abs_builddir in
5322.) ac_abs_srcdir=$ac_srcdir;;
5323*)
5324 case $ac_srcdir in
5325 .) ac_abs_srcdir=$ac_abs_builddir;;
5326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5328 esac;;
5329esac
5330case $ac_abs_builddir in
5331.) ac_abs_top_srcdir=$ac_top_srcdir;;
5332*)
5333 case $ac_top_srcdir in
5334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5337 esac;;
5338esac
5339
5340
5341
5342 if test x"$ac_file" != x-; then
5343 { echo "$as_me:$LINENO: creating $ac_file" >&5
5344echo "$as_me: creating $ac_file" >&6;}
5345 rm -f "$ac_file"
5346 fi
5347 # Let's still pretend it is `configure' which instantiates (i.e., don't
5348 # use $as_me), people would be surprised to read:
5349 # /* config.h. Generated by config.status. */
5350 if test x"$ac_file" = x-; then
5351 configure_input=
5352 else
5353 configure_input="$ac_file. "
5354 fi
5355 configure_input=$configure_input"Generated from `echo $ac_file_in |
5356 sed 's,.*/,,'` by configure."
5357
5358 # First look for the input files in the build tree, otherwise in the
5359 # src tree.
5360 ac_file_inputs=`IFS=:
5361 for f in $ac_file_in; do
5362 case $f in
5363 -) echo $tmp/stdin ;;
5364 [\\/$]*)
5365 # Absolute (can't be DOS-style, as IFS=:)
5366 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5367echo "$as_me: error: cannot find input file: $f" >&2;}
5368 { (exit 1); exit 1; }; }
5369 echo "$f";;
5370 *) # Relative
5371 if test -f "$f"; then
5372 # Build tree
5373 echo "$f"
5374 elif test -f "$srcdir/$f"; then
5375 # Source tree
5376 echo "$srcdir/$f"
5377 else
5378 # /dev/null tree
5379 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5380echo "$as_me: error: cannot find input file: $f" >&2;}
5381 { (exit 1); exit 1; }; }
5382 fi;;
5383 esac
5384 done` || { (exit 1); exit 1; }
5385_ACEOF
5386cat >>$CONFIG_STATUS <<_ACEOF
5387 sed "$ac_vpsub
5388$extrasub
5389_ACEOF
5390cat >>$CONFIG_STATUS <<\_ACEOF
5391:t
5392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5393s,@configure_input@,$configure_input,;t t
5394s,@srcdir@,$ac_srcdir,;t t
5395s,@abs_srcdir@,$ac_abs_srcdir,;t t
5396s,@top_srcdir@,$ac_top_srcdir,;t t
5397s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5398s,@builddir@,$ac_builddir,;t t
5399s,@abs_builddir@,$ac_abs_builddir,;t t
5400s,@top_builddir@,$ac_top_builddir,;t t
5401s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5402" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5403 rm -f $tmp/stdin
5404 if test x"$ac_file" != x-; then
5405 mv $tmp/out $ac_file
5406 else
5407 cat $tmp/out
5408 rm -f $tmp/out
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005409 fi
5410
Peter Åstrande713b142004-11-16 13:29:40 +00005411done
5412_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005413
Peter Åstrande713b142004-11-16 13:29:40 +00005414cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005415
Peter Åstrande713b142004-11-16 13:29:40 +00005416{ (exit 0); exit 0; }
5417_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005418chmod +x $CONFIG_STATUS
Peter Åstrande713b142004-11-16 13:29:40 +00005419ac_clean_files=$ac_clean_files_save
5420
5421
5422# configure is writing to config.log, and then calls config.status.
5423# config.status does its own redirection, appending to config.log.
5424# Unfortunately, on DOS this fails, as config.log is still kept open
5425# by configure, so config.status won't be able to write to it; its
5426# output is simply discarded. So we exec the FD to /dev/null,
5427# effectively closing config.log, so it can be properly (re)opened and
5428# appended to by config.status. When coming back to configure, we
5429# need to make the FD available again.
5430if test "$no_create" != yes; then
5431 ac_cs_success=:
5432 ac_config_status_args=
5433 test "$silent" = yes &&
5434 ac_config_status_args="$ac_config_status_args --quiet"
5435 exec 5>/dev/null
5436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5437 exec 5>>config.log
5438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5439 # would make configure fail if this is the last instruction.
5440 $ac_cs_success || { (exit 1); exit 1; }
5441fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005442