]> git.saurik.com Git - wxWidgets.git/blame - configure
regen MSVC makefiles, too
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
81345eef 314ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS AIX_CXX_LD RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_COCOA_USE_GUI_1 COND_USE_SOVERSOLARIS_1 COND_MONOLITHIC_1 COND_UNICODE_1 COND_MONOLITHIC_0 COND_TOOLKIT_MGL COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_WXUSE_ODBC_BUILTIN COND_USE_SOVERSION_0 COND_WXUNIV_1 COND_PLATFORM_UNIX_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_WXUSE_REGEX_BUILTIN COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_TOOLKIT_X11 COND_OFFICIAL_BUILD_0 COND_TOOLKIT_OS2 COND_TOOLKIT_MGL_USE_GUI_1 COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MOTIF COND_MONOLITHIC_0_SHARED_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1 COND_MONOLITHIC_0_SHARED_0 COND_USE_GUI_1 COND_USE_GUI_0 COND_TOOLKIT_MSW COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_BUILD_DEBUG COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1 COND_WXUSE_LIBTIFF_BUILTIN COND_OFFICIAL_BUILD_1 COND_BUILD_RELEASE COND_USE_SOVERLINUX_1 COND_USE_SOSYMLINKS_1 COND_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_GTK COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MSW_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_SHARED_1 COND_PLATFORM_MAC_1 COND_SHARED_0 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS'
e6cc62c6 315ac_subst_files=''
10f2d63a
VZ
316
317# Initialize some variables set by options.
e6cc62c6
VS
318ac_init_help=
319ac_init_version=false
10f2d63a
VZ
320# The variables have the same names as the options, with
321# dashes changed to underlines.
e6cc62c6 322cache_file=/dev/null
10f2d63a 323exec_prefix=NONE
10f2d63a 324no_create=
10f2d63a
VZ
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
10f2d63a
VZ
333verbose=
334x_includes=NONE
335x_libraries=NONE
e6cc62c6
VS
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
10f2d63a
VZ
355ac_prev=
356for ac_option
357do
10f2d63a
VZ
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
e6cc62c6 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
e6cc62c6 369 case $ac_option in
10f2d63a
VZ
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 374 bindir=$ac_optarg ;;
10f2d63a
VZ
375
376 -build | --build | --buil | --bui | --bu)
e6cc62c6 377 ac_prev=build_alias ;;
10f2d63a 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 379 build_alias=$ac_optarg ;;
10f2d63a
VZ
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
10f2d63a
VZ
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
e6cc62c6 395 datadir=$ac_optarg ;;
10f2d63a
VZ
396
397 -disable-* | --disable-*)
e6cc62c6 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 399 # Reject names that are not valid shell variable names.
e6cc62c6
VS
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
405
406 -enable-* | --enable-*)
e6cc62c6 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 408 # Reject names that are not valid shell variable names.
e6cc62c6
VS
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
415 *) ac_optarg=yes ;;
416 esac
e6cc62c6 417 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
e6cc62c6 426 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
e6cc62c6
VS
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
10f2d63a
VZ
438
439 -host | --host | --hos | --ho)
e6cc62c6 440 ac_prev=host_alias ;;
10f2d63a 441 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 442 host_alias=$ac_optarg ;;
10f2d63a
VZ
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 449 includedir=$ac_optarg ;;
10f2d63a
VZ
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 454 infodir=$ac_optarg ;;
10f2d63a
VZ
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 459 libdir=$ac_optarg ;;
10f2d63a
VZ
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 466 libexecdir=$ac_optarg ;;
10f2d63a
VZ
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 475 localstatedir=$ac_optarg ;;
10f2d63a
VZ
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 480 mandir=$ac_optarg ;;
10f2d63a
VZ
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 487 | --no-cr | --no-c | -n)
10f2d63a
VZ
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 501 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 506 prefix=$ac_optarg ;;
10f2d63a
VZ
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 513 program_prefix=$ac_optarg ;;
10f2d63a
VZ
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 520 program_suffix=$ac_optarg ;;
10f2d63a
VZ
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 537 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
e6cc62c6 547 sbindir=$ac_optarg ;;
10f2d63a
VZ
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
e6cc62c6 558 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
e6cc62c6 563 site=$ac_optarg ;;
10f2d63a
VZ
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 568 srcdir=$ac_optarg ;;
10f2d63a
VZ
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 575 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 578 ac_prev=target_alias ;;
10f2d63a 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 580 target_alias=$ac_optarg ;;
10f2d63a
VZ
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
e6cc62c6
VS
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
10f2d63a
VZ
587
588 -with-* | --with-*)
e6cc62c6 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 590 # Reject names that are not valid shell variable names.
e6cc62c6
VS
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
10f2d63a 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
597 *) ac_optarg=yes ;;
598 esac
e6cc62c6 599 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
600
601 -without-* | --without-*)
e6cc62c6 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 603 # Reject names that are not valid shell variable names.
e6cc62c6
VS
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
10f2d63a
VZ
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 619 x_includes=$ac_optarg ;;
10f2d63a
VZ
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 626 x_libraries=$ac_optarg ;;
10f2d63a 627
e6cc62c6
VS
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
10f2d63a
VZ
631 ;;
632
e6cc62c6
VS
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
10f2d63a 643 *)
e6cc62c6
VS
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
e6cc62c6
VS
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
a0b9e27f 658fi
a0b9e27f 659
e6cc62c6
VS
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
8284b0c5 670
e6cc62c6
VS
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 674do
e6cc62c6
VS
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
10f2d63a
VZ
680 esac
681done
682
e6cc62c6
VS
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
247f5006 700
e6cc62c6
VS
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
10f2d63a 705
10f2d63a
VZ
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
e6cc62c6
VS
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
10f2d63a
VZ
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
10f2d63a 734 else
e6cc62c6
VS
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
10f2d63a
VZ
737 fi
738fi
e6cc62c6
VS
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775ac_env_CXX_set=${CXX+set}
776ac_env_CXX_value=$CXX
777ac_cv_env_CXX_set=${CXX+set}
778ac_cv_env_CXX_value=$CXX
779ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_env_CXXFLAGS_value=$CXXFLAGS
781ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783ac_env_CXXCPP_set=${CXXCPP+set}
784ac_env_CXXCPP_value=$CXXCPP
785ac_cv_env_CXXCPP_set=${CXXCPP+set}
786ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 787
e6cc62c6
VS
788#
789# Report the --help message.
790#
791if test "$ac_init_help" = "long"; then
792 # Omit some internal or obsolete options to make the list less imposing.
793 # This message is too long to be a string in the A/UX 3.1 sh.
794 cat <<_ACEOF
795\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 796
e6cc62c6 797Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 798
e6cc62c6
VS
799To assign environment variables (e.g., CC, CFLAGS...), specify them as
800VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 801
e6cc62c6
VS
802Defaults for the options are specified in brackets.
803
804Configuration:
805 -h, --help display this help and exit
806 --help=short display options specific to this package
807 --help=recursive display the short help of all the included packages
808 -V, --version display version information and exit
809 -q, --quiet, --silent do not print \`checking...' messages
810 --cache-file=FILE cache test results in FILE [disabled]
811 -C, --config-cache alias for \`--cache-file=config.cache'
812 -n, --no-create do not create output files
813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814
815_ACEOF
816
817 cat <<_ACEOF
818Installation directories:
819 --prefix=PREFIX install architecture-independent files in PREFIX
820 [$ac_default_prefix]
821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 [PREFIX]
823
824By default, \`make install' will install all the files in
825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827for instance \`--prefix=\$HOME'.
828
829For better control, use the options below.
830
831Fine tuning of the installation directories:
832 --bindir=DIR user executables [EPREFIX/bin]
833 --sbindir=DIR system admin executables [EPREFIX/sbin]
834 --libexecdir=DIR program executables [EPREFIX/libexec]
835 --datadir=DIR read-only architecture-independent data [PREFIX/share]
836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
839 --libdir=DIR object code libraries [EPREFIX/lib]
840 --includedir=DIR C header files [PREFIX/include]
841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
842 --infodir=DIR info documentation [PREFIX/info]
843 --mandir=DIR man documentation [PREFIX/man]
844_ACEOF
845
846 cat <<\_ACEOF
847
848X features:
849 --x-includes=DIR X include files are in DIR
850 --x-libraries=DIR X library files are in DIR
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-gui use GUI classes
9747f85d 869 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
870 --enable-universal use wxWindows GUI controls instead of native ones
871 --enable-nanox use NanoX
872 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
873 --enable-shared create shared library code
e6cc62c6
VS
874 --enable-optimise create optimised code
875 --enable-debug same as debug_flag and debug_info
876 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)
877 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
878 --enable-debug_info create code with debugging information
879 --enable-debug_gdb create code with extra GDB debugging information
880 --enable-debug_cntxt use wxDebugContext
881 --enable-mem_tracing create code with memory tracing
882 --enable-profile create code with profiling information
883 --enable-no_rtti create code without RTTI information
884 --enable-no_exceptions create code without C++ exceptions handling
885 --enable-permissive compile code disregarding strict ANSI
886 --enable-no_deps create code without dependency information
887 --enable-compat20 enable wxWindows 2.0 compatibility
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
898 --enable-ole use OLE classes
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
901 --enable-cmdline use wxCmdLineParser class
902 --enable-datetime use wxDateTime class
903 --enable-stopwatch use wxStopWatch class
904 --enable-dialupman use dialup network classes
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-timer use wxTimer class
907 --enable-wave use wxWave class
908 --enable-fraction use wxFraction class
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-longlong use wxLongLong class
912 --enable-geometry use geometry class
913 --enable-log use logging system
914 --enable-streams use wxStream etc classes
915 --enable-file use wxFile classes
916 --enable-ffile use wxFFile classes
917 --enable-textbuf use wxTextBuffer class
918 --enable-textfile use wxTextFile class
919 --enable-fontmap use font encodings conversion classes
920 --enable-unicode compile wxString with Unicode support
921 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
922 --enable-wxprintfv use wxWindows implementation of vprintf()
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-filesystem use virtual file systems classes
925 --enable-fs_inet use virtual HTTP/FTP filesystems
926 --enable-fs_zip use virtual ZIP filesystems
927 --enable-zipstream use wxZipInputStream
928 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
929 --enable-snglinst use wxSingleInstanceChecker class
930 --enable-mimetype use wxMimeTypesManager
931 --enable-sysoptions use wxSystemOptions
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
969 --enable-listbox use wxListBox class
970 --enable-listctrl use wxListCtrl class
971 --enable-notebook use wxNotebook class
972 --enable-radiobox use wxRadioBox class
973 --enable-radiobtn use wxRadioButton class
974 --enable-sash use wxSashWindow class
975 --enable-scrollbar use wxScrollBar class and scrollable windows
976 --enable-slider use wxSlider class
977 --enable-spinbtn use wxSpinButton class
978 --enable-spinctrl use wxSpinCtrl class
979 --enable-splitter use wxSplitterWindow class
980 --enable-statbmp use wxStaticBitmap class
981 --enable-statbox use wxStaticBox class
982 --enable-statline use wxStaticLine class
983 --enable-stattext use wxStaticText class
984 --enable-statusbar use wxStatusBar class
985 --enable-tabdialog use wxTabControl class
986 --enable-textctrl use wxTextCtrl class
987 --enable-togglebtn use wxToggleButton class
988 --enable-toolbar use wxToolBar class
989 --enable-tbarnative use native wxToolBar class
990 --enable-tbarsmpl use wxToolBarSimple class
991 --enable-treectrl use wxTreeCtrl class
992 --enable-tipwindow use wxTipWindow class
993 --enable-popupwin use wxPopUpWindow class
994 --enable-commondlg use all common dialogs
995 --enable-choicedlg use wxChoiceDialog
996 --enable-coldlg use wxColourDialog
997 --enable-filedlg use wxFileDialog
998 --enable-finddlg use wxFindReplaceDialog
999 --enable-fontdlg use wxFontDialog
1000 --enable-dirdlg use wxDirDialog
1001 --enable-msgdlg use wxMessageDialog
1002 --enable-numberdlg use wxNumberEntryDialog
1003 --enable-splash use wxSplashScreen
1004 --enable-textdlg use wxTextDialog
1005 --enable-tipdlg use startup tips
1006 --enable-progressdlg use wxProgressDialog
1007 --enable-wizarddlg use wxWizard
1008 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1009 --enable-miniframe use wxMiniFrame class
1010 --enable-tooltips use wxToolTip class
1011 --enable-splines use spline drawing code
1012 --enable-validators use wxValidator and derived classes
1013 --enable-busyinfo use wxBusyInfo
1014 --enable-joystick use wxJoystick (Linux only)
1015 --enable-metafiles use wxMetaFile (Windows only)
1016 --enable-dragimage use wxDragImage
1017 --enable-accessibility enable accessibility support
1018 --enable-palette use wxPalette class
1019 --enable-image use wxImage class
1020 --enable-gif use gif images (GIF file format)
1021 --enable-pcx use pcx images (PCX file format)
1022 --enable-iff use iff images (IFF file format)
1023 --enable-pnm use pnm images (PNM file format)
1024 --enable-xpm use xpm images (XPM file format)
1025 --enable-icocur use Windows ICO and CUR formats
1026 --disable-largefile omit support for large files
1027 --disable-gtktest do not try to compile and run a test GTK+ program
1028 --disable-gtktest Do not try to compile and run a test GTK program
1029
1030Optional Packages:
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gtk use GTK+
1034 --with-motif use Motif/Lesstif
1035 --with-mac use Mac OS X
1036 --with-cocoa use Cocoa
1037 --with-wine use Wine
1038 --with-msw use MS-Windows
1039 --with-pm use OS/2 Presentation Manager
1040 --with-mgl use SciTech MGL
1041 --with-microwin use MicroWindows
1042 --with-x11 use X11
1043 --with-libpng use libpng (PNG image format)
1044 --with-libjpeg use libjpeg (JPEG file format)
1045 --with-libtiff use libtiff (TIFF file format)
1046 --with-opengl use OpenGL (or Mesa)
1047 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1048 --with-regex enable support for wxRegEx class
1049 --with-zlib use zlib for LZW compression
1050 --with-odbc use the IODBC and wxODBC classes
1051 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1052 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1053 --with-x use the X Window System
1054 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <wx-dev@lists.wxwindows.org>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
8284b0c5 1130
e6cc62c6
VS
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134wxWindows configure 2.5.0
1135generated by GNU Autoconf 2.57
10f2d63a 1136
e6cc62c6
VS
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
7c66a493 1143fi
e6cc62c6
VS
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by wxWindows $as_me 2.5.0, which was
1150generated by GNU Autoconf 2.57. Invocation command line was
1151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
698dcdb6 1475
8284b0c5 1476
7c66a493 1477
a0b9e27f
MB
1478
1479
a0b9e27f 1480
a0b9e27f 1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
e6cc62c6
VS
1486
1487
1488ac_aux_dir=
1489for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513# Make sure we can run config.sub.
1514$ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519echo "$as_me:$LINENO: checking build system type" >&5
1520echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 ac_cv_build_alias=$build_alias
1525test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1535
1536fi
1537echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538echo "${ECHO_T}$ac_cv_build" >&6
1539build=$ac_cv_build
1540build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545echo "$as_me:$LINENO: checking host system type" >&5
1546echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 ac_cv_host_alias=$host_alias
1551test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558fi
1559echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560echo "${ECHO_T}$ac_cv_host" >&6
1561host=$ac_cv_host
1562host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567echo "$as_me:$LINENO: checking target system type" >&5
1568echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569if test "${ac_cv_target+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 ac_cv_target_alias=$target_alias
1573test "x$ac_cv_target_alias" = "x" &&
1574 ac_cv_target_alias=$ac_cv_host_alias
1575ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582echo "${ECHO_T}$ac_cv_target" >&6
1583target=$ac_cv_target
1584target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589# The aliases save the names the user supplied, while $host etc.
1590# will get canonicalized.
1591test -n "$target_alias" &&
7c66a493
VZ
1592 test "$program_prefix$program_suffix$program_transform_name" = \
1593 NONENONEs,x,x, &&
1594 program_prefix=${target_alias}-
8284b0c5
MB
1595
1596
a0b9e27f 1597
10f2d63a 1598WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1599WX_MINOR_VERSION_NUMBER=5
1600WX_RELEASE_NUMBER=0
10f2d63a 1601
10f2d63a 1602WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1603WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1604
978f1259
RL
1605WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1606
34bed6d9 1607WX_CURRENT=0
6426998c
RL
1608WX_REVISION=0
1609WX_AGE=0
1610
8284b0c5
MB
1611
1612
10f2d63a
VZ
1613USE_UNIX=1
1614USE_WIN32=0
f9bc1684 1615USE_DOS=0
b12915c1 1616USE_BEOS=0
1216f52d 1617USE_MAC=0
b12915c1 1618
10f2d63a 1619USE_AIX=
fe0895cf
VS
1620USE_BSD= USE_DARWIN= USE_FREEBSD=
1621USE_GNU= USE_HPUX=
89e3b3e4 1622USE_LINUX=
f6bcfd97 1623USE_NETBSD=
89e3b3e4 1624USE_OPENBSD=
fe0895cf
VS
1625USE_OSF= USE_SGI=
1626USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1627USE_ULTRIX=
89e3b3e4
VZ
1628USE_UNIXWARE=
1629
1630USE_ALPHA=
10f2d63a 1631
ab9b9eab
VZ
1632NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1633
ac0c4cc3 1634ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1635
ac0c4cc3 1636DEFAULT_wxUSE_COCOA=0
10f2d63a 1637DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1638DEFAULT_wxUSE_MAC=0
1639DEFAULT_wxUSE_MGL=0
1725144d 1640DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1641DEFAULT_wxUSE_MOTIF=0
1642DEFAULT_wxUSE_MSW=0
e07802fc 1643DEFAULT_wxUSE_PM=0
f79bd02d 1644DEFAULT_wxUSE_X11=0
10f2d63a 1645
ac0c4cc3 1646DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1647DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1648DEFAULT_DEFAULT_wxUSE_MAC=0
1649DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1650DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1651DEFAULT_DEFAULT_wxUSE_MOTIF=0
1652DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1653DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1654DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1655
d6a55c4b 1656PROGRAM_EXT=
3a922bb4 1657SO_SUFFIX=so
fe0895cf 1658SAMPLES_RPATH_FLAG=
d6a55c4b 1659
10f2d63a
VZ
1660case "${host}" in
1661 *-hp-hpux* )
1662 USE_HPUX=1
1663 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1664 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1665 SO_SUFFIX=sl
e6cc62c6 1666 cat >>confdefs.h <<\_ACEOF
10f2d63a 1667#define __HPUX__ 1
e6cc62c6 1668_ACEOF
10f2d63a
VZ
1669
1670 ;;
1671 *-*-linux* )
1672 USE_LINUX=1
e6cc62c6 1673 cat >>confdefs.h <<\_ACEOF
10f2d63a 1674#define __LINUX__ 1
e6cc62c6 1675_ACEOF
10f2d63a
VZ
1676
1677 TMP=`uname -m`
1678 if test "x$TMP" = "xalpha"; then
1679 USE_ALPHA=1
e6cc62c6 1680 cat >>confdefs.h <<\_ACEOF
10f2d63a 1681#define __ALPHA__ 1
e6cc62c6 1682_ACEOF
fe0895cf
VS
1683
1684 fi
1685 DEFAULT_DEFAULT_wxUSE_GTK=1
1686 ;;
1687 *-*-gnu* )
1688 USE_GNU=1
e6cc62c6 1689 cat >>confdefs.h <<\_ACEOF
fe0895cf 1690#define __GNU__ 1
e6cc62c6 1691_ACEOF
fe0895cf
VS
1692
1693 TMP=`uname -m`
1694 if test "x$TMP" = "xalpha"; then
1695 USE_ALPHA=1
e6cc62c6 1696 cat >>confdefs.h <<\_ACEOF
fe0895cf 1697#define __ALPHA__ 1
e6cc62c6 1698_ACEOF
10f2d63a
VZ
1699
1700 fi
1701 DEFAULT_DEFAULT_wxUSE_GTK=1
1702 ;;
1703 *-*-irix5* | *-*-irix6* )
1704 USE_SGI=1
1705 USE_SVR4=1
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __SGI__ 1
e6cc62c6 1708_ACEOF
10f2d63a 1709
e6cc62c6 1710 cat >>confdefs.h <<\_ACEOF
10f2d63a 1711#define __SVR4__ 1
e6cc62c6 1712_ACEOF
10f2d63a
VZ
1713
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1715 ;;
1716 *-*-solaris2* )
1717 USE_SUN=1
1718 USE_SOLARIS=1
1719 USE_SVR4=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __SUN__ 1
e6cc62c6 1722_ACEOF
10f2d63a 1723
e6cc62c6 1724 cat >>confdefs.h <<\_ACEOF
10f2d63a 1725#define __SOLARIS__ 1
e6cc62c6 1726_ACEOF
10f2d63a 1727
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SVR4__ 1
e6cc62c6 1730_ACEOF
10f2d63a
VZ
1731
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1734 ;;
1735 *-*-sunos4* )
1736 USE_SUN=1
1737 USE_SUNOS=1
1738 USE_BSD=1
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SUN__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SUNOS__ 1
e6cc62c6 1745_ACEOF
10f2d63a 1746
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __BSD__ 1
e6cc62c6 1749_ACEOF
10f2d63a
VZ
1750
1751 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752 ;;
f6bcfd97 1753 *-*-freebsd*)
10f2d63a
VZ
1754 USE_BSD=1
1755 USE_FREEBSD=1
e6cc62c6 1756 cat >>confdefs.h <<\_ACEOF
10f2d63a 1757#define __FREEBSD__ 1
e6cc62c6 1758_ACEOF
10f2d63a 1759
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __BSD__ 1
e6cc62c6 1762_ACEOF
95c8801c
VS
1763
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-openbsd*)
1767 USE_BSD=1
1768 USE_OPENBSD=1
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1770#define __OPENBSD__ 1
e6cc62c6 1771_ACEOF
95c8801c 1772
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1774#define __BSD__ 1
e6cc62c6 1775_ACEOF
f6bcfd97
BP
1776
1777 DEFAULT_DEFAULT_wxUSE_GTK=1
1778 ;;
1779 *-*-netbsd*)
1780 USE_BSD=1
1781 USE_NETBSD=1
e6cc62c6 1782 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1783#define __NETBSD__ 1
e6cc62c6 1784_ACEOF
f6bcfd97 1785
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1787#define __BSD__ 1
e6cc62c6 1788_ACEOF
10f2d63a
VZ
1789
1790 DEFAULT_DEFAULT_wxUSE_GTK=1
1791 ;;
1792 *-*-osf* )
1793 USE_ALPHA=1
1794 USE_OSF=1
e6cc62c6 1795 cat >>confdefs.h <<\_ACEOF
10f2d63a 1796#define __ALPHA__ 1
e6cc62c6 1797_ACEOF
10f2d63a 1798
e6cc62c6 1799 cat >>confdefs.h <<\_ACEOF
10f2d63a 1800#define __OSF__ 1
e6cc62c6 1801_ACEOF
10f2d63a
VZ
1802
1803 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1804 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1805 ;;
1806 *-*-dgux5* )
1807 USE_ALPHA=1
1808 USE_SVR4=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
10f2d63a 1810#define __ALPHA__ 1
e6cc62c6 1811_ACEOF
10f2d63a 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
10f2d63a 1814#define __SVR4__ 1
e6cc62c6 1815_ACEOF
10f2d63a
VZ
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-sysv5* )
1820 USE_SYSV=1
1821 USE_SVR4=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
10f2d63a 1823#define __SYSV__ 1
e6cc62c6 1824_ACEOF
10f2d63a 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
10f2d63a 1827#define __SVR4__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831 ;;
1832 *-*-aix* )
1833 USE_AIX=1
1834 USE_SYSV=1
1835 USE_SVR4=1
2b5f62a0 1836 SO_SUFFIX=a
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __AIX__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SYSV__ 1
e6cc62c6 1843_ACEOF
10f2d63a 1844
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __SVR4__ 1
e6cc62c6 1847_ACEOF
10f2d63a
VZ
1848
1849 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1850 ;;
1851
89e3b3e4
VZ
1852 *-*-*UnixWare*)
1853 USE_SYSV=1
1854 USE_SVR4=1
1855 USE_UNIXWARE=1
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1857#define __UNIXWARE__ 1
e6cc62c6 1858_ACEOF
89e3b3e4
VZ
1859
1860 ;;
1861
1c8183e2 1862 *-*-cygwin* | *-*-mingw32* )
17234b26 1863 SO_SUFFIX=dll
cf27ef00 1864 PROGRAM_EXT=".exe"
7b7a7637 1865 RESCOMP=windres
10f2d63a
VZ
1866 DEFAULT_DEFAULT_wxUSE_MSW=1
1867 ;;
1868
f9bc1684
VS
1869 *-pc-msdosdjgpp )
1870 USE_UNIX=0
1871 USE_DOS=1
e6cc62c6 1872 cat >>confdefs.h <<\_ACEOF
f9bc1684 1873#define __DOS__ 1
e6cc62c6 1874_ACEOF
f9bc1684
VS
1875
1876 PROGRAM_EXT=".exe"
1877 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1878 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1879 ;;
1880
6fa882bd 1881 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1882 cat >>confdefs.h <<\_ACEOF
10f2d63a 1883#define __EMX__ 1
e6cc62c6 1884_ACEOF
10f2d63a 1885
cf27ef00 1886 PROGRAM_EXT=".exe"
e07802fc 1887 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1888 ;;
1889
d08b457b
GD
1890 powerpc-*-darwin* )
1891 USE_BSD=1
f11bdd03 1892 USE_DARWIN=1
3a922bb4 1893 SO_SUFFIX=dylib
e6cc62c6 1894 cat >>confdefs.h <<\_ACEOF
f11bdd03 1895#define __BSD__ 1
e6cc62c6 1896_ACEOF
b4085ce6 1897
e6cc62c6 1898 cat >>confdefs.h <<\_ACEOF
f11bdd03 1899#define __DARWIN__ 1
e6cc62c6 1900_ACEOF
d08b457b 1901
e6cc62c6 1902 cat >>confdefs.h <<\_ACEOF
d08b457b 1903#define __POWERPC__ 1
e6cc62c6 1904_ACEOF
82d43113 1905
e6cc62c6 1906 cat >>confdefs.h <<\_ACEOF
82d43113 1907#define TARGET_CARBON 1
e6cc62c6 1908_ACEOF
b4085ce6
GD
1909
1910 DEFAULT_DEFAULT_wxUSE_MAC=1
1911 ;;
1912
b12915c1
VZ
1913 *-*-beos* )
1914 USE_BEOS=1
e6cc62c6 1915 cat >>confdefs.h <<\_ACEOF
b12915c1 1916#define __BEOS__ 1
e6cc62c6 1917_ACEOF
b12915c1
VZ
1918
1919 ;;
1920
10f2d63a 1921 *)
e6cc62c6
VS
1922 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1923echo "$as_me: error: unknown system type ${host}." >&2;}
1924 { (exit 1); exit 1; }; }
10f2d63a
VZ
1925esac
1926
8284b0c5
MB
1927
1928
1929
1930 wx_arg_cache_file="configarg.cache"
1931 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1932 rm -f ${wx_arg_cache_file}.tmp
1933 touch ${wx_arg_cache_file}.tmp
1934 touch ${wx_arg_cache_file}
e6cc62c6 1935
10f2d63a
VZ
1936
1937DEBUG_CONFIGURE=0
1938if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1939 DEFAULT_wxUSE_UNIVERSAL=no
1940
d8356fa3
VZ
1941 DEFAULT_wxUSE_NANOX=no
1942
10f2d63a
VZ
1943 DEFAULT_wxUSE_THREADS=yes
1944
1945 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1946 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1947 DEFAULT_wxUSE_PROFILE=no
1948 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1949 DEFAULT_wxUSE_NO_RTTI=no
1950 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1951 DEFAULT_wxUSE_PERMISSIVE=no
1952 DEFAULT_wxUSE_DEBUG_FLAG=yes
1953 DEFAULT_wxUSE_DEBUG_INFO=yes
1954 DEFAULT_wxUSE_DEBUG_GDB=yes
1955 DEFAULT_wxUSE_MEM_TRACING=no
1956 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1957 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1958 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1959 DEFAULT_wxUSE_APPLE_IEEE=no
1960
1961 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1962 DEFAULT_wxUSE_LOGWINDOW=no
1963 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1964 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1965
1966 DEFAULT_wxUSE_GUI=yes
1e6feb95 1967 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1968
3e44f09d 1969 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1970 DEFAULT_wxUSE_ZLIB=no
1971 DEFAULT_wxUSE_LIBPNG=no
1972 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1973 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1974 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1975 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1976
eb4efbdc 1977 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1978 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1979 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1980 DEFAULT_wxUSE_CMDLINE_PARSER=no
1981 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1982 DEFAULT_wxUSE_TIMER=no
1983 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1984 DEFAULT_wxUSE_FILE=no
1e6feb95 1985 DEFAULT_wxUSE_FFILE=no
a3a584a7 1986 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1987 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1988 DEFAULT_wxUSE_WAVE=no
1989 DEFAULT_wxUSE_INTL=no
1990 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1991 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1992 DEFAULT_wxUSE_STREAMS=no
1993 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1994 DEFAULT_wxUSE_OLE=no
1995 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1996 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1997 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1998 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1999 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2000 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2001 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2002
2003 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2004 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2005 DEFAULT_wxUSE_POSTSCRIPT=no
2006
10f2d63a
VZ
2007 DEFAULT_wxUSE_CLIPBOARD=no
2008 DEFAULT_wxUSE_TOOLTIPS=no
2009 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2010 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2011 DEFAULT_wxUSE_SPLINES=no
2012
2013 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2014 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2015 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2016
10f2d63a
VZ
2017 DEFAULT_wxUSE_RESOURCES=no
2018 DEFAULT_wxUSE_CONSTRAINTS=no
2019 DEFAULT_wxUSE_IPC=no
2020 DEFAULT_wxUSE_HELP=no
29fd3c0c 2021 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2022 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2023 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2024 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2025 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2026 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2027 DEFAULT_wxUSE_PROTOCOL=no
2028 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2029 DEFAULT_wxUSE_PROTOCOL_FTP=no
2030 DEFAULT_wxUSE_PROTOCOL_FILE=no
2031 DEFAULT_wxUSE_URL=no
3bd8fb5f 2032
10f2d63a 2033 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2034 DEFAULT_wxUSE_CHOICEDLG=no
2035 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2036 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2037 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2038 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2039 DEFAULT_wxUSE_FONTDLG=no
2040 DEFAULT_wxUSE_MSGDLG=no
2041 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2042 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2043 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2044 DEFAULT_wxUSE_STARTUP_TIPS=no
2045 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2046 DEFAULT_wxUSE_WIZARDDLG=no
2047
1e6feb95 2048 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2049 DEFAULT_wxUSE_MINIFRAME=no
2050 DEFAULT_wxUSE_HTML=no
24528b0c 2051 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2052 DEFAULT_wxUSE_FS_INET=no
2053 DEFAULT_wxUSE_FS_ZIP=no
2054 DEFAULT_wxUSE_BUSYINFO=no
2055 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2056 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2057
2058 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2059 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2060 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2061 DEFAULT_wxUSE_CALCTRL=no
2062 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2063 DEFAULT_wxUSE_CHECKBOX=no
2064 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2065 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2066 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2067 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2068 DEFAULT_wxUSE_GAUGE=no
2069 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2070 DEFAULT_wxUSE_IMAGLIST=no
2071 DEFAULT_wxUSE_LISTBOX=no
2072 DEFAULT_wxUSE_LISTCTRL=no
2073 DEFAULT_wxUSE_NOTEBOOK=no
2074 DEFAULT_wxUSE_RADIOBOX=no
2075 DEFAULT_wxUSE_RADIOBTN=no
2076 DEFAULT_wxUSE_SASH=no
2077 DEFAULT_wxUSE_SCROLLBAR=no
2078 DEFAULT_wxUSE_SLIDER=no
2079 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2080 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2081 DEFAULT_wxUSE_SPLITTER=no
2082 DEFAULT_wxUSE_STATBMP=no
2083 DEFAULT_wxUSE_STATBOX=no
2084 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2085 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2086 DEFAULT_wxUSE_STATUSBAR=yes
2087 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2088 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2089 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2090 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2091 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2092 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2093 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2094 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2095 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2096
2097 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2098 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2099 DEFAULT_wxUSE_WCSRTOMBS=no
2100
edae8572 2101 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2102 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2103 DEFAULT_wxUSE_GIF=no
2104 DEFAULT_wxUSE_PCX=no
2105 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2106 DEFAULT_wxUSE_IFF=no
0046ff7c 2107 DEFAULT_wxUSE_XPM=no
658974ae 2108 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2109 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2110
2111 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a 2112else
1e6feb95
VZ
2113 DEFAULT_wxUSE_UNIVERSAL=no
2114
d8356fa3
VZ
2115 DEFAULT_wxUSE_NANOX=no
2116
10f2d63a
VZ
2117 DEFAULT_wxUSE_THREADS=yes
2118
2119 DEFAULT_wxUSE_SHARED=yes
2120 DEFAULT_wxUSE_OPTIMISE=yes
2121 DEFAULT_wxUSE_PROFILE=no
2122 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2123 DEFAULT_wxUSE_NO_RTTI=no
2124 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2125 DEFAULT_wxUSE_PERMISSIVE=no
2126 DEFAULT_wxUSE_DEBUG_FLAG=no
2127 DEFAULT_wxUSE_DEBUG_INFO=no
2128 DEFAULT_wxUSE_DEBUG_GDB=no
2129 DEFAULT_wxUSE_MEM_TRACING=no
2130 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2131 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 2132 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
2133 DEFAULT_wxUSE_APPLE_IEEE=yes
2134
2135 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2136 DEFAULT_wxUSE_LOGWINDOW=yes
2137 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2138 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2139
2140 DEFAULT_wxUSE_GUI=yes
2141
831b3152 2142 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2143 DEFAULT_wxUSE_ZLIB=yes
2144 DEFAULT_wxUSE_LIBPNG=yes
2145 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2146 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2147 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2148 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2149
eb4efbdc 2150 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2151 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2152 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2153 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2154 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2155 DEFAULT_wxUSE_TIMER=yes
2156 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2157 DEFAULT_wxUSE_FILE=yes
1e6feb95 2158 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2159 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2160 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2161 DEFAULT_wxUSE_WAVE=no
2162 DEFAULT_wxUSE_INTL=yes
2163 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2164 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2165 DEFAULT_wxUSE_STREAMS=yes
2166 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2167 DEFAULT_wxUSE_OLE=yes
2168 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2169 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2170 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2171 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2172 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2173 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2174 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2175
2176 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2177 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2178 DEFAULT_wxUSE_POSTSCRIPT=yes
2179
10f2d63a
VZ
2180 DEFAULT_wxUSE_CLIPBOARD=yes
2181 DEFAULT_wxUSE_TOOLTIPS=yes
2182 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2183 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2184 DEFAULT_wxUSE_SPLINES=yes
2185
2186 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2187 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2188 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2189
2b5f62a0 2190 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2191 DEFAULT_wxUSE_CONSTRAINTS=yes
2192 DEFAULT_wxUSE_IPC=yes
2193 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2194 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2195 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2196 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2197 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2198 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2199 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2200 DEFAULT_wxUSE_PROTOCOL=yes
2201 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2202 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2203 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2204 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2205
2206 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2207 DEFAULT_wxUSE_CHOICEDLG=yes
2208 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2209 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2210 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2211 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2212 DEFAULT_wxUSE_FONTDLG=yes
2213 DEFAULT_wxUSE_MSGDLG=yes
2214 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2215 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2216 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2217 DEFAULT_wxUSE_STARTUP_TIPS=yes
2218 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2219 DEFAULT_wxUSE_WIZARDDLG=yes
2220
1e6feb95 2221 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2222 DEFAULT_wxUSE_MINIFRAME=yes
2223 DEFAULT_wxUSE_HTML=yes
24528b0c 2224 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_FS_INET=yes
2226 DEFAULT_wxUSE_FS_ZIP=yes
2227 DEFAULT_wxUSE_BUSYINFO=yes
2228 DEFAULT_wxUSE_ZIPSTREAM=yes
2229 DEFAULT_wxUSE_VALIDATORS=yes
2230
2231 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2232 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2233 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2234 DEFAULT_wxUSE_CALCTRL=yes
2235 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2236 DEFAULT_wxUSE_CHECKBOX=yes
2237 DEFAULT_wxUSE_CHECKLST=yes
2238 DEFAULT_wxUSE_CHOICE=yes
2239 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2240 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2241 DEFAULT_wxUSE_GAUGE=yes
2242 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2243 DEFAULT_wxUSE_IMAGLIST=yes
2244 DEFAULT_wxUSE_LISTBOX=yes
2245 DEFAULT_wxUSE_LISTCTRL=yes
2246 DEFAULT_wxUSE_NOTEBOOK=yes
2247 DEFAULT_wxUSE_RADIOBOX=yes
2248 DEFAULT_wxUSE_RADIOBTN=yes
2249 DEFAULT_wxUSE_SASH=yes
2250 DEFAULT_wxUSE_SCROLLBAR=yes
2251 DEFAULT_wxUSE_SLIDER=yes
2252 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2253 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_SPLITTER=yes
2255 DEFAULT_wxUSE_STATBMP=yes
2256 DEFAULT_wxUSE_STATBOX=yes
2257 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2258 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2259 DEFAULT_wxUSE_STATUSBAR=yes
2260 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2261 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2262 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2263 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2264 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2265 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2266 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2267 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2268 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2269
2270 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2271 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2272 DEFAULT_wxUSE_WCSRTOMBS=no
2273
edae8572 2274 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2275 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2276 DEFAULT_wxUSE_GIF=yes
2277 DEFAULT_wxUSE_PCX=yes
cc0e8480 2278 DEFAULT_wxUSE_IFF=no
10f2d63a 2279 DEFAULT_wxUSE_PNM=yes
0046ff7c 2280 DEFAULT_wxUSE_XPM=yes
658974ae 2281 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2282 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2283
2284 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a
VZ
2285fi
2286
8284b0c5
MB
2287
2288
10f2d63a 2289for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2290 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2291 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2292 has_toolkit_in_cache=1
2293 eval "DEFAULT_$LINE"
2294 eval "CACHE_$toolkit=1"
2295 fi
2296done
2297
8284b0c5
MB
2298
2299
5005acfe 2300 enablestring=
e6cc62c6
VS
2301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2302echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2303 no_cache=0
2304 # Check whether --enable-gui or --disable-gui was given.
2305if test "${enable_gui+set}" = set; then
2306 enableval="$enable_gui"
e6cc62c6 2307
10f2d63a
VZ
2308 if test "$enableval" = yes; then
2309 ac_cv_use_gui='wxUSE_GUI=yes'
2310 else
2311 ac_cv_use_gui='wxUSE_GUI=no'
2312 fi
e6cc62c6 2313
10f2d63a 2314else
e6cc62c6 2315
10f2d63a
VZ
2316 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2317 if test "x$LINE" != x ; then
2318 eval "DEFAULT_$LINE"
2319 else
2320 no_cache=1
2321 fi
2322
2323 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2324
e6cc62c6 2325fi;
10f2d63a
VZ
2326
2327 eval "$ac_cv_use_gui"
2328 if test "$no_cache" != 1; then
2329 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2330 fi
2331
2332 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2333 echo "$as_me:$LINENO: result: yes" >&5
2334echo "${ECHO_T}yes" >&6
10f2d63a 2335 else
e6cc62c6
VS
2336 echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6
10f2d63a 2338 fi
e6cc62c6 2339
10f2d63a 2340
9747f85d
VS
2341 enablestring=
2342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2343echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2344 no_cache=0
2345 # Check whether --enable-monolithic or --disable-monolithic was given.
2346if test "${enable_monolithic+set}" = set; then
2347 enableval="$enable_monolithic"
2348
2349 if test "$enableval" = yes; then
2350 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2351 else
2352 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2353 fi
2354
2355else
2356
2357 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2358 if test "x$LINE" != x ; then
2359 eval "DEFAULT_$LINE"
2360 else
2361 no_cache=1
2362 fi
2363
2364 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2365
2366fi;
2367
2368 eval "$ac_cv_use_monolithic"
2369 if test "$no_cache" != 1; then
2370 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2371 fi
2372
2373 if test "$wxUSE_MONOLITHIC" = yes; then
2374 echo "$as_me:$LINENO: result: yes" >&5
2375echo "${ECHO_T}yes" >&6
2376 else
2377 echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379 fi
2380
2381
b12915c1 2382if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2383
8284b0c5 2384
5005acfe 2385 enablestring=
e6cc62c6
VS
2386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2387echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2388 no_cache=0
2389 # Check whether --enable-universal or --disable-universal was given.
2390if test "${enable_universal+set}" = set; then
2391 enableval="$enable_universal"
e6cc62c6 2392
1e6feb95
VZ
2393 if test "$enableval" = yes; then
2394 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2395 else
2396 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2397 fi
e6cc62c6 2398
1e6feb95 2399else
e6cc62c6 2400
1e6feb95
VZ
2401 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2402 if test "x$LINE" != x ; then
2403 eval "DEFAULT_$LINE"
2404 else
2405 no_cache=1
2406 fi
2407
2408 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2409
e6cc62c6 2410fi;
1e6feb95
VZ
2411
2412 eval "$ac_cv_use_universal"
2413 if test "$no_cache" != 1; then
2414 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2415 fi
2416
2417 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2418 echo "$as_me:$LINENO: result: yes" >&5
2419echo "${ECHO_T}yes" >&6
1e6feb95 2420 else
e6cc62c6
VS
2421 echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6
1e6feb95 2423 fi
e6cc62c6
VS
2424
2425
10f2d63a
VZ
2426# Check whether --with-gtk or --without-gtk was given.
2427if test "${with_gtk+set}" = set; then
2428 withval="$with_gtk"
2429 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2430fi;
10f2d63a
VZ
2431
2432# Check whether --with-motif or --without-motif was given.
2433if test "${with_motif+set}" = set; then
2434 withval="$with_motif"
2435 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2436fi;
10f2d63a 2437
b4085ce6
GD
2438# Check whether --with-mac or --without-mac was given.
2439if test "${with_mac+set}" = set; then
2440 withval="$with_mac"
2441 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2442fi;
b4085ce6 2443
ac0c4cc3
DE
2444# Check whether --with-cocoa or --without-cocoa was given.
2445if test "${with_cocoa+set}" = set; then
2446 withval="$with_cocoa"
2447 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2448fi;
ac0c4cc3 2449
10f2d63a
VZ
2450# Check whether --with-wine or --without-wine was given.
2451if test "${with_wine+set}" = set; then
2452 withval="$with_wine"
89e6bf6d 2453 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2454fi;
10f2d63a 2455
77e13408
RL
2456# Check whether --with-msw or --without-msw was given.
2457if test "${with_msw+set}" = set; then
2458 withval="$with_msw"
b4efce5e 2459 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2460fi;
10f2d63a 2461
e07802fc
VZ
2462# Check whether --with-pm or --without-pm was given.
2463if test "${with_pm+set}" = set; then
2464 withval="$with_pm"
2465 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2466fi;
698dcdb6 2467
1e6feb95
VZ
2468# Check whether --with-mgl or --without-mgl was given.
2469if test "${with_mgl+set}" = set; then
2470 withval="$with_mgl"
6c657b52 2471 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
1e6feb95 2473
1725144d
RR
2474# Check whether --with-microwin or --without-microwin was given.
2475if test "${with_microwin+set}" = set; then
2476 withval="$with_microwin"
2477 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
1725144d 2479
f79bd02d
JS
2480# Check whether --with-x11 or --without-x11 was given.
2481if test "${with_x11+set}" = set; then
2482 withval="$with_x11"
3c011993 2483 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
a0b9e27f 2485
5005acfe 2486 enablestring=
e6cc62c6
VS
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2489 no_cache=0
ba875e66
VZ
2490 # Check whether --enable-nanox or --disable-nanox was given.
2491if test "${enable_nanox+set}" = set; then
2492 enableval="$enable_nanox"
e6cc62c6 2493
d8356fa3 2494 if test "$enableval" = yes; then
ba875e66 2495 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2496 else
ba875e66 2497 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2498 fi
e6cc62c6 2499
d8356fa3 2500else
e6cc62c6 2501
d8356fa3
VZ
2502 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
ba875e66 2509 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2510
e6cc62c6 2511fi;
d8356fa3 2512
ba875e66 2513 eval "$ac_cv_use_nanox"
d8356fa3 2514 if test "$no_cache" != 1; then
ba875e66 2515 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2516 fi
2517
2518 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
d8356fa3 2521 else
e6cc62c6
VS
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
d8356fa3 2524 fi
e6cc62c6 2525
8284b0c5 2526
d74f4b5a 2527
5005acfe 2528 enablestring=
e6cc62c6
VS
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2531 no_cache=0
2532 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2533if test "${enable_gtk2+set}" = set; then
2534 enableval="$enable_gtk2"
e6cc62c6 2535
d74f4b5a
VZ
2536 if test "$enableval" = yes; then
2537 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2538 else
2539 ac_cv_use_gtk2='wxUSE_GTK2=no'
2540 fi
e6cc62c6 2541
10f2d63a 2542else
e6cc62c6 2543
d74f4b5a
VZ
2544 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2552
e6cc62c6 2553fi;
328a083c 2554
d74f4b5a
VZ
2555 eval "$ac_cv_use_gtk2"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
d74f4b5a 2563 else
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
d74f4b5a 2566 fi
d74f4b5a 2567
5c6fa7d2 2568
e6cc62c6
VS
2569
2570 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2571echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2572 no_cache=0
e6cc62c6
VS
2573
2574# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2575if test "${with_libpng+set}" = set; then
2576 withval="$with_libpng"
e6cc62c6 2577
10f2d63a 2578 if test "$withval" = yes; then
b12915c1 2579 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2580 elif test "$withval" = no; then
b12915c1 2581 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2582 elif test "$withval" = sys; then
2583 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2584 elif test "$withval" = builtin; then
2585 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2586 else
e6cc62c6
VS
2587 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2588echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2589 { (exit 1); exit 1; }; }
10f2d63a 2590 fi
e6cc62c6 2591
10f2d63a 2592else
e6cc62c6 2593
b12915c1 2594 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
b12915c1 2601 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2602
e6cc62c6 2603fi;
10f2d63a 2604
b12915c1 2605 eval "$ac_cv_use_libpng"
10f2d63a 2606 if test "$no_cache" != 1; then
b12915c1 2607 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2608 fi
2609
b12915c1 2610 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
422107f9 2613 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
422107f9 2616 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: system version" >&5
2618echo "${ECHO_T}system version" >&6
4f14bcd8 2619 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: builtin version" >&5
2621echo "${ECHO_T}builtin version" >&6
422107f9 2622 else
e6cc62c6
VS
2623 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2624echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2625 { (exit 1); exit 1; }; }
10f2d63a 2626 fi
10f2d63a 2627
e6cc62c6
VS
2628
2629 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2630echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2631 no_cache=0
e6cc62c6
VS
2632
2633# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2634if test "${with_libjpeg+set}" = set; then
2635 withval="$with_libjpeg"
e6cc62c6 2636
10f2d63a 2637 if test "$withval" = yes; then
b12915c1 2638 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2639 elif test "$withval" = no; then
b12915c1 2640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2641 elif test "$withval" = sys; then
2642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2643 elif test "$withval" = builtin; then
2644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2645 else
e6cc62c6
VS
2646 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2647echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2648 { (exit 1); exit 1; }; }
10f2d63a 2649 fi
e6cc62c6 2650
10f2d63a 2651else
e6cc62c6 2652
b12915c1 2653 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
b12915c1 2660 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2661
e6cc62c6 2662fi;
10f2d63a 2663
b12915c1 2664 eval "$ac_cv_use_libjpeg"
10f2d63a 2665 if test "$no_cache" != 1; then
b12915c1 2666 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2667 fi
2668
b12915c1 2669 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2670 echo "$as_me:$LINENO: result: yes" >&5
2671echo "${ECHO_T}yes" >&6
422107f9 2672 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2673 echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6
422107f9 2675 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2676 echo "$as_me:$LINENO: result: system version" >&5
2677echo "${ECHO_T}system version" >&6
4f14bcd8 2678 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2679 echo "$as_me:$LINENO: result: builtin version" >&5
2680echo "${ECHO_T}builtin version" >&6
422107f9 2681 else
e6cc62c6
VS
2682 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2683echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2684 { (exit 1); exit 1; }; }
10f2d63a 2685 fi
10f2d63a 2686
e6cc62c6
VS
2687
2688 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2689echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2690 no_cache=0
e6cc62c6
VS
2691
2692# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2693if test "${with_libtiff+set}" = set; then
2694 withval="$with_libtiff"
e6cc62c6 2695
10f2d63a 2696 if test "$withval" = yes; then
b12915c1 2697 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2698 elif test "$withval" = no; then
b12915c1 2699 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2700 elif test "$withval" = sys; then
2701 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2702 elif test "$withval" = builtin; then
2703 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2704 else
e6cc62c6
VS
2705 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2706echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2707 { (exit 1); exit 1; }; }
10f2d63a 2708 fi
e6cc62c6 2709
10f2d63a 2710else
e6cc62c6 2711
b12915c1 2712 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
b12915c1 2719 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2720
e6cc62c6 2721fi;
10f2d63a 2722
b12915c1 2723 eval "$ac_cv_use_libtiff"
10f2d63a 2724 if test "$no_cache" != 1; then
b12915c1 2725 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2726 fi
2727
b12915c1 2728 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2729 echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
0dcf9893 2731 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
0dcf9893 2734 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2735 echo "$as_me:$LINENO: result: system version" >&5
2736echo "${ECHO_T}system version" >&6
4f14bcd8 2737 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2738 echo "$as_me:$LINENO: result: builtin version" >&5
2739echo "${ECHO_T}builtin version" >&6
0dcf9893 2740 else
e6cc62c6
VS
2741 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2742echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2743 { (exit 1); exit 1; }; }
10f2d63a 2744 fi
10f2d63a 2745
e6cc62c6
VS
2746
2747 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2748echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2749 no_cache=0
e6cc62c6
VS
2750
2751# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2752if test "${with_opengl+set}" = set; then
2753 withval="$with_opengl"
e6cc62c6 2754
10f2d63a 2755 if test "$withval" = yes; then
b12915c1 2756 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2757 else
b12915c1 2758 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2759 fi
e6cc62c6 2760
10f2d63a 2761else
e6cc62c6 2762
b12915c1 2763 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
b12915c1 2770 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2771
e6cc62c6 2772fi;
10f2d63a 2773
b12915c1 2774 eval "$ac_cv_use_opengl"
10f2d63a 2775 if test "$no_cache" != 1; then
b12915c1 2776 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2777 fi
2778
b12915c1 2779 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2780 echo "$as_me:$LINENO: result: yes" >&5
2781echo "${ECHO_T}yes" >&6
10f2d63a 2782 else
e6cc62c6
VS
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
10f2d63a 2785 fi
e6cc62c6 2786
10f2d63a 2787
b12915c1
VZ
2788fi
2789
5c6fa7d2 2790
e6cc62c6
VS
2791 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2792echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2793 no_cache=0
e6cc62c6
VS
2794
2795# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2796if test "${with_dmalloc+set}" = set; then
2797 withval="$with_dmalloc"
e6cc62c6 2798
c7a2bf27 2799 if test "$withval" = yes; then
b12915c1 2800 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2801 else
b12915c1 2802 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2803 fi
e6cc62c6 2804
c7a2bf27 2805else
e6cc62c6 2806
b12915c1 2807 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
b12915c1 2814 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2815
e6cc62c6 2816fi;
c7a2bf27 2817
b12915c1 2818 eval "$ac_cv_use_dmalloc"
c7a2bf27 2819 if test "$no_cache" != 1; then
b12915c1 2820 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2821 fi
2822
b12915c1 2823 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
c7a2bf27 2826 else
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
c7a2bf27 2829 fi
c7a2bf27 2830
e6cc62c6
VS
2831
2832 echo "$as_me:$LINENO: checking for --with-regex" >&5
2833echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2834 no_cache=0
e6cc62c6
VS
2835
2836# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2837if test "${with_regex+set}" = set; then
2838 withval="$with_regex"
e6cc62c6 2839
3e44f09d
VZ
2840 if test "$withval" = yes; then
2841 ac_cv_use_regex='wxUSE_REGEX=yes'
2842 elif test "$withval" = no; then
2843 ac_cv_use_regex='wxUSE_REGEX=no'
2844 elif test "$withval" = sys; then
2845 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2846 elif test "$withval" = builtin; then
2847 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2848 else
e6cc62c6
VS
2849 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2850echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2851 { (exit 1); exit 1; }; }
3e44f09d 2852 fi
e6cc62c6 2853
3e44f09d 2854else
e6cc62c6 2855
3e44f09d
VZ
2856 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2864
e6cc62c6 2865fi;
3e44f09d
VZ
2866
2867 eval "$ac_cv_use_regex"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2873 echo "$as_me:$LINENO: result: yes" >&5
2874echo "${ECHO_T}yes" >&6
3e44f09d 2875 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
3e44f09d 2878 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2879 echo "$as_me:$LINENO: result: system version" >&5
2880echo "${ECHO_T}system version" >&6
4f14bcd8 2881 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2882 echo "$as_me:$LINENO: result: builtin version" >&5
2883echo "${ECHO_T}builtin version" >&6
3e44f09d 2884 else
e6cc62c6
VS
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2886echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
3e44f09d 2888 fi
3e44f09d 2889
e6cc62c6
VS
2890
2891 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2892echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2893 no_cache=0
e6cc62c6
VS
2894
2895# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2896if test "${with_zlib+set}" = set; then
2897 withval="$with_zlib"
e6cc62c6 2898
10f2d63a 2899 if test "$withval" = yes; then
b12915c1 2900 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2901 elif test "$withval" = no; then
b12915c1 2902 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2903 elif test "$withval" = sys; then
2904 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2905 elif test "$withval" = builtin; then
2906 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2907 else
e6cc62c6
VS
2908 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2909echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2910 { (exit 1); exit 1; }; }
10f2d63a 2911 fi
e6cc62c6 2912
10f2d63a 2913else
e6cc62c6 2914
b12915c1 2915 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2916 if test "x$LINE" != x ; then
2917 eval "DEFAULT_$LINE"
2918 else
2919 no_cache=1
2920 fi
2921
b12915c1 2922 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2923
e6cc62c6 2924fi;
10f2d63a 2925
b12915c1 2926 eval "$ac_cv_use_zlib"
10f2d63a 2927 if test "$no_cache" != 1; then
b12915c1 2928 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2929 fi
2930
b12915c1 2931 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2932 echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
422107f9 2934 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2935 echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
422107f9 2937 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2938 echo "$as_me:$LINENO: result: system version" >&5
2939echo "${ECHO_T}system version" >&6
4f14bcd8 2940 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2941 echo "$as_me:$LINENO: result: builtin version" >&5
2942echo "${ECHO_T}builtin version" >&6
422107f9 2943 else
e6cc62c6
VS
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2945echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
10f2d63a 2947 fi
10f2d63a 2948
e6cc62c6
VS
2949
2950 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2951echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2952 no_cache=0
e6cc62c6
VS
2953
2954# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2955if test "${with_odbc+set}" = set; then
2956 withval="$with_odbc"
e6cc62c6 2957
10f2d63a
VZ
2958 if test "$withval" = yes; then
2959 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2960 elif test "$withval" = no; then
10f2d63a 2961 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2962 elif test "$withval" = sys; then
2963 ac_cv_use_odbc='wxUSE_ODBC=sys'
2964 elif test "$withval" = builtin; then
2965 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2966 else
e6cc62c6
VS
2967 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2968echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2969 { (exit 1); exit 1; }; }
10f2d63a 2970 fi
e6cc62c6 2971
10f2d63a 2972else
e6cc62c6 2973
10f2d63a
VZ
2974 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2982
e6cc62c6 2983fi;
10f2d63a
VZ
2984
2985 eval "$ac_cv_use_odbc"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2991 echo "$as_me:$LINENO: result: yes" >&5
2992echo "${ECHO_T}yes" >&6
8647bec6 2993 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
8647bec6 2996 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
2997 echo "$as_me:$LINENO: result: system version" >&5
2998echo "${ECHO_T}system version" >&6
8647bec6 2999 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3000 echo "$as_me:$LINENO: result: builtin version" >&5
3001echo "${ECHO_T}builtin version" >&6
8647bec6 3002 else
e6cc62c6
VS
3003 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3004echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3005 { (exit 1); exit 1; }; }
10f2d63a 3006 fi
e6cc62c6 3007
52127426 3008
8284b0c5
MB
3009
3010
5005acfe 3011 enablestring=
e6cc62c6
VS
3012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3013echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3014 no_cache=0
3015 # Check whether --enable-shared or --disable-shared was given.
3016if test "${enable_shared+set}" = set; then
3017 enableval="$enable_shared"
e6cc62c6 3018
10f2d63a
VZ
3019 if test "$enableval" = yes; then
3020 ac_cv_use_shared='wxUSE_SHARED=yes'
3021 else
3022 ac_cv_use_shared='wxUSE_SHARED=no'
3023 fi
e6cc62c6 3024
10f2d63a 3025else
e6cc62c6 3026
10f2d63a
VZ
3027 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3035
e6cc62c6 3036fi;
10f2d63a
VZ
3037
3038 eval "$ac_cv_use_shared"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3044 echo "$as_me:$LINENO: result: yes" >&5
3045echo "${ECHO_T}yes" >&6
10f2d63a 3046 else
e6cc62c6
VS
3047 echo "$as_me:$LINENO: result: no" >&5
3048echo "${ECHO_T}no" >&6
10f2d63a 3049 fi
e6cc62c6 3050
10f2d63a 3051
5005acfe 3052 enablestring=
e6cc62c6
VS
3053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3054echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3055 no_cache=0
3056 # Check whether --enable-optimise or --disable-optimise was given.
3057if test "${enable_optimise+set}" = set; then
3058 enableval="$enable_optimise"
e6cc62c6 3059
10f2d63a
VZ
3060 if test "$enableval" = yes; then
3061 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3062 else
3063 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3064 fi
e6cc62c6 3065
10f2d63a 3066else
e6cc62c6 3067
10f2d63a
VZ
3068 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3076
e6cc62c6 3077fi;
10f2d63a
VZ
3078
3079 eval "$ac_cv_use_optimise"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3085 echo "$as_me:$LINENO: result: yes" >&5
3086echo "${ECHO_T}yes" >&6
10f2d63a 3087 else
e6cc62c6
VS
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
10f2d63a 3090 fi
e6cc62c6 3091
10f2d63a 3092
5005acfe 3093 enablestring=
e6cc62c6
VS
3094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3095echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3096 no_cache=0
3097 # Check whether --enable-debug or --disable-debug was given.
3098if test "${enable_debug+set}" = set; then
3099 enableval="$enable_debug"
e6cc62c6 3100
10f2d63a
VZ
3101 if test "$enableval" = yes; then
3102 ac_cv_use_debug='wxUSE_DEBUG=yes'
3103 else
3104 ac_cv_use_debug='wxUSE_DEBUG=no'
3105 fi
e6cc62c6 3106
10f2d63a 3107else
e6cc62c6 3108
10f2d63a
VZ
3109 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3117
e6cc62c6 3118fi;
10f2d63a
VZ
3119
3120 eval "$ac_cv_use_debug"
3121 if test "$no_cache" != 1; then
3122 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3123 fi
3124
3125 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3126 echo "$as_me:$LINENO: result: yes" >&5
3127echo "${ECHO_T}yes" >&6
10f2d63a 3128 else
e6cc62c6
VS
3129 echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
10f2d63a 3131 fi
e6cc62c6 3132
52127426 3133
8284b0c5 3134
5005acfe 3135 enablestring=
e6cc62c6
VS
3136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3137echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
683dccda
GD
3138 no_cache=0
3139 # Check whether --enable-precomp or --disable-precomp was given.
3140if test "${enable_precomp+set}" = set; then
3141 enableval="$enable_precomp"
e6cc62c6 3142
683dccda
GD
3143 if test "$enableval" = yes; then
3144 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3145 else
3146 ac_cv_use_precomp='wxUSE_PRECOMP=no'
3147 fi
e6cc62c6 3148
683dccda 3149else
e6cc62c6 3150
683dccda
GD
3151 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 3159
e6cc62c6 3160fi;
683dccda
GD
3161
3162 eval "$ac_cv_use_precomp"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_PRECOMP" = yes; then
e6cc62c6
VS
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
683dccda 3170 else
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
683dccda 3173 fi
e6cc62c6 3174
683dccda 3175
10f2d63a
VZ
3176if test "$wxUSE_DEBUG" = "yes"; then
3177 DEFAULT_wxUSE_DEBUG_FLAG=yes
3178 DEFAULT_wxUSE_DEBUG_INFO=yes
3179elif test "$wxUSE_DEBUG" = "no"; then
3180 DEFAULT_wxUSE_DEBUG_FLAG=no
3181 DEFAULT_wxUSE_DEBUG_INFO=no
3182fi
3183
8284b0c5 3184
5005acfe 3185 enablestring=
e6cc62c6
VS
3186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3187echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3188 no_cache=0
3189 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3190if test "${enable_debug_flag+set}" = set; then
3191 enableval="$enable_debug_flag"
e6cc62c6 3192
10f2d63a
VZ
3193 if test "$enableval" = yes; then
3194 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3195 else
3196 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3197 fi
e6cc62c6 3198
10f2d63a 3199else
e6cc62c6 3200
10f2d63a
VZ
3201 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3209
e6cc62c6 3210fi;
10f2d63a
VZ
3211
3212 eval "$ac_cv_use_debug_flag"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3218 echo "$as_me:$LINENO: result: yes" >&5
3219echo "${ECHO_T}yes" >&6
10f2d63a 3220 else
e6cc62c6
VS
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
10f2d63a 3223 fi
e6cc62c6 3224
10f2d63a 3225
5005acfe 3226 enablestring=
e6cc62c6
VS
3227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3228echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3229 no_cache=0
3230 # Check whether --enable-debug_info or --disable-debug_info was given.
3231if test "${enable_debug_info+set}" = set; then
3232 enableval="$enable_debug_info"
e6cc62c6 3233
10f2d63a
VZ
3234 if test "$enableval" = yes; then
3235 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3236 else
3237 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3238 fi
e6cc62c6 3239
10f2d63a 3240else
e6cc62c6 3241
10f2d63a
VZ
3242 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3250
e6cc62c6 3251fi;
10f2d63a
VZ
3252
3253 eval "$ac_cv_use_debug_info"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
10f2d63a 3261 else
e6cc62c6
VS
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
10f2d63a 3264 fi
e6cc62c6 3265
10f2d63a 3266
5005acfe 3267 enablestring=
e6cc62c6
VS
3268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3269echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3270 no_cache=0
3271 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3272if test "${enable_debug_gdb+set}" = set; then
3273 enableval="$enable_debug_gdb"
e6cc62c6 3274
10f2d63a
VZ
3275 if test "$enableval" = yes; then
3276 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3277 else
3278 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3279 fi
e6cc62c6 3280
10f2d63a 3281else
e6cc62c6 3282
10f2d63a
VZ
3283 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3291
e6cc62c6 3292fi;
10f2d63a
VZ
3293
3294 eval "$ac_cv_use_debug_gdb"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3300 echo "$as_me:$LINENO: result: yes" >&5
3301echo "${ECHO_T}yes" >&6
10f2d63a 3302 else
e6cc62c6
VS
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
10f2d63a 3305 fi
e6cc62c6 3306
10f2d63a 3307
5005acfe 3308 enablestring=
e6cc62c6
VS
3309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3310echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3311 no_cache=0
3312 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3313if test "${enable_debug_cntxt+set}" = set; then
3314 enableval="$enable_debug_cntxt"
e6cc62c6 3315
10f2d63a
VZ
3316 if test "$enableval" = yes; then
3317 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3318 else
3319 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3320 fi
e6cc62c6 3321
10f2d63a 3322else
e6cc62c6 3323
10f2d63a
VZ
3324 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3332
e6cc62c6 3333fi;
10f2d63a
VZ
3334
3335 eval "$ac_cv_use_debug_cntxt"
3336 if test "$no_cache" != 1; then
3337 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3338 fi
3339
3340 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3341 echo "$as_me:$LINENO: result: yes" >&5
3342echo "${ECHO_T}yes" >&6
10f2d63a 3343 else
e6cc62c6
VS
3344 echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
10f2d63a 3346 fi
e6cc62c6 3347
10f2d63a 3348
5005acfe 3349 enablestring=
e6cc62c6
VS
3350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3351echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3352 no_cache=0
3353 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3354if test "${enable_mem_tracing+set}" = set; then
3355 enableval="$enable_mem_tracing"
e6cc62c6 3356
10f2d63a
VZ
3357 if test "$enableval" = yes; then
3358 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3359 else
3360 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3361 fi
e6cc62c6 3362
10f2d63a 3363else
e6cc62c6 3364
10f2d63a
VZ
3365 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3373
e6cc62c6 3374fi;
10f2d63a
VZ
3375
3376 eval "$ac_cv_use_mem_tracing"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3382 echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
10f2d63a 3384 else
e6cc62c6
VS
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
10f2d63a 3387 fi
e6cc62c6 3388
10f2d63a 3389
5005acfe 3390 enablestring=
e6cc62c6
VS
3391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3392echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3393 no_cache=0
3394 # Check whether --enable-profile or --disable-profile was given.
3395if test "${enable_profile+set}" = set; then
3396 enableval="$enable_profile"
e6cc62c6 3397
10f2d63a
VZ
3398 if test "$enableval" = yes; then
3399 ac_cv_use_profile='wxUSE_PROFILE=yes'
3400 else
3401 ac_cv_use_profile='wxUSE_PROFILE=no'
3402 fi
e6cc62c6 3403
10f2d63a 3404else
e6cc62c6 3405
10f2d63a
VZ
3406 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3414
e6cc62c6 3415fi;
10f2d63a
VZ
3416
3417 eval "$ac_cv_use_profile"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
10f2d63a 3425 else
e6cc62c6
VS
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
10f2d63a 3428 fi
e6cc62c6 3429
10f2d63a 3430
5005acfe 3431 enablestring=
e6cc62c6
VS
3432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3433echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3434 no_cache=0
3435 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3436if test "${enable_no_rtti+set}" = set; then
3437 enableval="$enable_no_rtti"
e6cc62c6 3438
10f2d63a
VZ
3439 if test "$enableval" = yes; then
3440 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3441 else
3442 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3443 fi
e6cc62c6 3444
10f2d63a 3445else
e6cc62c6 3446
10f2d63a
VZ
3447 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3455
e6cc62c6 3456fi;
10f2d63a
VZ
3457
3458 eval "$ac_cv_use_no_rtti"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
10f2d63a 3466 else
e6cc62c6
VS
3467 echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
10f2d63a 3469 fi
e6cc62c6 3470
10f2d63a 3471
5005acfe 3472 enablestring=
e6cc62c6
VS
3473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3474echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3475 no_cache=0
3476 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3477if test "${enable_no_exceptions+set}" = set; then
3478 enableval="$enable_no_exceptions"
e6cc62c6 3479
10f2d63a
VZ
3480 if test "$enableval" = yes; then
3481 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3482 else
3483 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3484 fi
e6cc62c6 3485
10f2d63a 3486else
e6cc62c6 3487
10f2d63a
VZ
3488 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3496
e6cc62c6 3497fi;
10f2d63a
VZ
3498
3499 eval "$ac_cv_use_no_exceptions"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3505 echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
10f2d63a 3507 else
e6cc62c6
VS
3508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
10f2d63a 3510 fi
e6cc62c6 3511
10f2d63a 3512
5005acfe 3513 enablestring=
e6cc62c6
VS
3514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3515echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3516 no_cache=0
3517 # Check whether --enable-permissive or --disable-permissive was given.
3518if test "${enable_permissive+set}" = set; then
3519 enableval="$enable_permissive"
e6cc62c6 3520
10f2d63a
VZ
3521 if test "$enableval" = yes; then
3522 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3523 else
3524 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3525 fi
e6cc62c6 3526
10f2d63a 3527else
e6cc62c6 3528
10f2d63a
VZ
3529 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3537
e6cc62c6 3538fi;
10f2d63a
VZ
3539
3540 eval "$ac_cv_use_permissive"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
10f2d63a 3548 else
e6cc62c6
VS
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
10f2d63a 3551 fi
e6cc62c6 3552
10f2d63a 3553
5005acfe 3554 enablestring=
e6cc62c6
VS
3555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3556echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3557 no_cache=0
3558 # Check whether --enable-no_deps or --disable-no_deps was given.
3559if test "${enable_no_deps+set}" = set; then
3560 enableval="$enable_no_deps"
e6cc62c6 3561
10f2d63a
VZ
3562 if test "$enableval" = yes; then
3563 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3564 else
3565 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3566 fi
e6cc62c6 3567
10f2d63a 3568else
e6cc62c6 3569
10f2d63a
VZ
3570 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3571 if test "x$LINE" != x ; then
3572 eval "DEFAULT_$LINE"
3573 else
3574 no_cache=1
3575 fi
3576
3577 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3578
e6cc62c6 3579fi;
10f2d63a
VZ
3580
3581 eval "$ac_cv_use_no_deps"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3587 echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
10f2d63a 3589 else
e6cc62c6
VS
3590 echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
10f2d63a 3592 fi
e6cc62c6 3593
52127426 3594
8284b0c5 3595
5005acfe 3596 enablestring=
e6cc62c6
VS
3597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3598echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3599 no_cache=0
3600 # Check whether --enable-compat20 or --disable-compat20 was given.
3601if test "${enable_compat20+set}" = set; then
3602 enableval="$enable_compat20"
e6cc62c6 3603
54276ccf
VZ
3604 if test "$enableval" = yes; then
3605 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3606 else
3607 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3608 fi
e6cc62c6 3609
54276ccf 3610else
e6cc62c6 3611
54276ccf
VZ
3612 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3620
e6cc62c6 3621fi;
54276ccf
VZ
3622
3623 eval "$ac_cv_use_compat20"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3629 echo "$as_me:$LINENO: result: yes" >&5
3630echo "${ECHO_T}yes" >&6
54276ccf 3631 else
e6cc62c6
VS
3632 echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
54276ccf 3634 fi
e6cc62c6 3635
54276ccf 3636
65d8ef1e 3637 enablestring=
e6cc62c6
VS
3638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3639echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3640 no_cache=0
3641 # Check whether --enable-compat22 or --disable-compat22 was given.
3642if test "${enable_compat22+set}" = set; then
3643 enableval="$enable_compat22"
e6cc62c6 3644
54276ccf
VZ
3645 if test "$enableval" = yes; then
3646 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3647 else
3648 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3649 fi
e6cc62c6 3650
54276ccf 3651else
e6cc62c6 3652
54276ccf
VZ
3653 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
3660 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3661
e6cc62c6 3662fi;
54276ccf
VZ
3663
3664 eval "$ac_cv_use_compat22"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3670 echo "$as_me:$LINENO: result: yes" >&5
3671echo "${ECHO_T}yes" >&6
54276ccf 3672 else
e6cc62c6
VS
3673 echo "$as_me:$LINENO: result: no" >&5
3674echo "${ECHO_T}no" >&6
54276ccf 3675 fi
e6cc62c6 3676
54276ccf 3677
65d8ef1e 3678 enablestring=disable
e6cc62c6
VS
3679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3680echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3681 no_cache=0
3682 # Check whether --enable-compat24 or --disable-compat24 was given.
3683if test "${enable_compat24+set}" = set; then
3684 enableval="$enable_compat24"
e6cc62c6 3685
65d8ef1e
VS
3686 if test "$enableval" = yes; then
3687 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3688 else
3689 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3690 fi
e6cc62c6 3691
65d8ef1e 3692else
e6cc62c6 3693
65d8ef1e
VS
3694 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3702
e6cc62c6 3703fi;
65d8ef1e
VS
3704
3705 eval "$ac_cv_use_compat24"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3711 echo "$as_me:$LINENO: result: yes" >&5
3712echo "${ECHO_T}yes" >&6
65d8ef1e 3713 else
e6cc62c6
VS
3714 echo "$as_me:$LINENO: result: no" >&5
3715echo "${ECHO_T}no" >&6
65d8ef1e 3716 fi
e6cc62c6 3717
65d8ef1e 3718
3bd8fb5f
RD
3719# Check whether --enable-rpath or --disable-rpath was given.
3720if test "${enable_rpath+set}" = set; then
3721 enableval="$enable_rpath"
3722 wxRPATH_DIR="$enableval"
e6cc62c6 3723fi;
3bd8fb5f
RD
3724
3725if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3726 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3727fi
3728
8284b0c5
MB
3729
3730
3731
5005acfe 3732 enablestring=
e6cc62c6
VS
3733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3734echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3735 no_cache=0
3736 # Check whether --enable-intl or --disable-intl was given.
3737if test "${enable_intl+set}" = set; then
3738 enableval="$enable_intl"
e6cc62c6 3739
10f2d63a
VZ
3740 if test "$enableval" = yes; then
3741 ac_cv_use_intl='wxUSE_INTL=yes'
3742 else
3743 ac_cv_use_intl='wxUSE_INTL=no'
3744 fi
e6cc62c6 3745
10f2d63a 3746else
e6cc62c6 3747
10f2d63a
VZ
3748 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3756
e6cc62c6 3757fi;
10f2d63a
VZ
3758
3759 eval "$ac_cv_use_intl"
3760 if test "$no_cache" != 1; then
3761 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3762 fi
3763
3764 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3765 echo "$as_me:$LINENO: result: yes" >&5
3766echo "${ECHO_T}yes" >&6
10f2d63a 3767 else
e6cc62c6
VS
3768 echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6
10f2d63a 3770 fi
e6cc62c6 3771
10f2d63a 3772
5005acfe 3773 enablestring=
e6cc62c6
VS
3774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3775echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3776 no_cache=0
3777 # Check whether --enable-config or --disable-config was given.
3778if test "${enable_config+set}" = set; then
3779 enableval="$enable_config"
e6cc62c6 3780
10f2d63a
VZ
3781 if test "$enableval" = yes; then
3782 ac_cv_use_config='wxUSE_CONFIG=yes'
3783 else
3784 ac_cv_use_config='wxUSE_CONFIG=no'
3785 fi
e6cc62c6 3786
10f2d63a 3787else
e6cc62c6 3788
10f2d63a
VZ
3789 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3797
e6cc62c6 3798fi;
10f2d63a
VZ
3799
3800 eval "$ac_cv_use_config"
3801 if test "$no_cache" != 1; then
3802 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3803 fi
3804
3805 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
10f2d63a 3808 else
e6cc62c6
VS
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
10f2d63a 3811 fi
e6cc62c6 3812
52127426 3813
8284b0c5 3814
5005acfe 3815 enablestring=
e6cc62c6
VS
3816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3817echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3818 no_cache=0
3819 # Check whether --enable-protocols or --disable-protocols was given.
3820if test "${enable_protocols+set}" = set; then
3821 enableval="$enable_protocols"
e6cc62c6 3822
a1622950
VZ
3823 if test "$enableval" = yes; then
3824 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3825 else
3826 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3827 fi
e6cc62c6 3828
a1622950 3829else
e6cc62c6 3830
a1622950
VZ
3831 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3839
e6cc62c6 3840fi;
a1622950
VZ
3841
3842 eval "$ac_cv_use_protocols"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3848 echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6
a1622950 3850 else
e6cc62c6
VS
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
a1622950 3853 fi
e6cc62c6 3854
a1622950 3855
5005acfe 3856 enablestring=
e6cc62c6
VS
3857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3858echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3859 no_cache=0
3860 # Check whether --enable-ftp or --disable-ftp was given.
3861if test "${enable_ftp+set}" = set; then
3862 enableval="$enable_ftp"
e6cc62c6 3863
a1622950
VZ
3864 if test "$enableval" = yes; then
3865 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3866 else
3867 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3868 fi
e6cc62c6 3869
a1622950 3870else
e6cc62c6 3871
a1622950
VZ
3872 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3880
e6cc62c6 3881fi;
a1622950
VZ
3882
3883 eval "$ac_cv_use_ftp"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
a1622950 3891 else
e6cc62c6
VS
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
a1622950 3894 fi
e6cc62c6 3895
a1622950 3896
5005acfe 3897 enablestring=
e6cc62c6
VS
3898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3899echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3900 no_cache=0
3901 # Check whether --enable-http or --disable-http was given.
3902if test "${enable_http+set}" = set; then
3903 enableval="$enable_http"
e6cc62c6 3904
a1622950
VZ
3905 if test "$enableval" = yes; then
3906 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3907 else
3908 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3909 fi
e6cc62c6 3910
a1622950 3911else
e6cc62c6 3912
a1622950
VZ
3913 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3921
e6cc62c6 3922fi;
a1622950
VZ
3923
3924 eval "$ac_cv_use_http"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
a1622950 3932 else
e6cc62c6
VS
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
a1622950 3935 fi
e6cc62c6 3936
a1622950 3937
5005acfe 3938 enablestring=
e6cc62c6
VS
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3941 no_cache=0
3942 # Check whether --enable-fileproto or --disable-fileproto was given.
3943if test "${enable_fileproto+set}" = set; then
3944 enableval="$enable_fileproto"
e6cc62c6 3945
a1622950
VZ
3946 if test "$enableval" = yes; then
3947 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3948 else
3949 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3950 fi
e6cc62c6 3951
a1622950 3952else
e6cc62c6 3953
a1622950
VZ
3954 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3962
e6cc62c6 3963fi;
a1622950
VZ
3964
3965 eval "$ac_cv_use_fileproto"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
a1622950 3973 else
e6cc62c6
VS
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
a1622950 3976 fi
e6cc62c6 3977
a1622950 3978
5005acfe 3979 enablestring=
e6cc62c6
VS
3980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
3981echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
3982 no_cache=0
3983 # Check whether --enable-sockets or --disable-sockets was given.
3984if test "${enable_sockets+set}" = set; then
3985 enableval="$enable_sockets"
e6cc62c6 3986
10f2d63a
VZ
3987 if test "$enableval" = yes; then
3988 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3989 else
3990 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3991 fi
e6cc62c6 3992
10f2d63a 3993else
e6cc62c6 3994
10f2d63a
VZ
3995 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4003
e6cc62c6 4004fi;
10f2d63a
VZ
4005
4006 eval "$ac_cv_use_sockets"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4012 echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6
10f2d63a 4014 else
e6cc62c6
VS
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
10f2d63a 4017 fi
e6cc62c6 4018
8284b0c5 4019
5005acfe 4020 enablestring=
e6cc62c6
VS
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4023 no_cache=0
4024 # Check whether --enable-ole or --disable-ole was given.
4025if test "${enable_ole+set}" = set; then
4026 enableval="$enable_ole"
e6cc62c6 4027
3bce6687
JS
4028 if test "$enableval" = yes; then
4029 ac_cv_use_ole='wxUSE_OLE=yes'
4030 else
4031 ac_cv_use_ole='wxUSE_OLE=no'
4032 fi
e6cc62c6 4033
3bce6687 4034else
e6cc62c6 4035
3bce6687
JS
4036 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4044
e6cc62c6 4045fi;
3bce6687
JS
4046
4047 eval "$ac_cv_use_ole"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
3bce6687 4055 else
e6cc62c6
VS
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
3bce6687 4058 fi
e6cc62c6 4059
3bce6687 4060
5005acfe 4061 enablestring=
e6cc62c6
VS
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4064 no_cache=0
4065 # Check whether --enable-dataobj or --disable-dataobj was given.
4066if test "${enable_dataobj+set}" = set; then
4067 enableval="$enable_dataobj"
e6cc62c6 4068
3bce6687
JS
4069 if test "$enableval" = yes; then
4070 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4071 else
4072 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4073 fi
e6cc62c6 4074
3bce6687 4075else
e6cc62c6 4076
3bce6687
JS
4077 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4085
e6cc62c6 4086fi;
3bce6687
JS
4087
4088 eval "$ac_cv_use_dataobj"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
3bce6687 4096 else
e6cc62c6
VS
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
3bce6687 4099 fi
e6cc62c6 4100
3bce6687 4101
52127426 4102
5005acfe 4103 enablestring=
e6cc62c6
VS
4104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4105echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4106 no_cache=0
eb4efbdc
VZ
4107 # Check whether --enable-ipc or --disable-ipc was given.
4108if test "${enable_ipc+set}" = set; then
4109 enableval="$enable_ipc"
e6cc62c6 4110
10f2d63a 4111 if test "$enableval" = yes; then
eb4efbdc 4112 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4113 else
eb4efbdc 4114 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4115 fi
e6cc62c6 4116
10f2d63a 4117else
e6cc62c6 4118
eb4efbdc 4119 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
eb4efbdc 4126 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4127
e6cc62c6 4128fi;
10f2d63a 4129
eb4efbdc 4130 eval "$ac_cv_use_ipc"
10f2d63a 4131 if test "$no_cache" != 1; then
eb4efbdc 4132 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4133 fi
4134
eb4efbdc 4135 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4136 echo "$as_me:$LINENO: result: yes" >&5
4137echo "${ECHO_T}yes" >&6
10f2d63a 4138 else
e6cc62c6
VS
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
10f2d63a 4141 fi
e6cc62c6 4142
52127426 4143
8284b0c5 4144
5005acfe 4145 enablestring=
e6cc62c6
VS
4146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4147echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4148 no_cache=0
4149 # Check whether --enable-cmdline or --disable-cmdline was given.
4150if test "${enable_cmdline+set}" = set; then
4151 enableval="$enable_cmdline"
e6cc62c6 4152
1e6feb95
VZ
4153 if test "$enableval" = yes; then
4154 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4155 else
4156 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4157 fi
e6cc62c6 4158
1e6feb95 4159else
e6cc62c6 4160
1e6feb95
VZ
4161 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4169
e6cc62c6 4170fi;
1e6feb95
VZ
4171
4172 eval "$ac_cv_use_cmdline"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4178 echo "$as_me:$LINENO: result: yes" >&5
4179echo "${ECHO_T}yes" >&6
1e6feb95 4180 else
e6cc62c6
VS
4181 echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6
1e6feb95 4183 fi
e6cc62c6 4184
1e6feb95 4185
5005acfe 4186 enablestring=
e6cc62c6
VS
4187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4188echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4189 no_cache=0
4190 # Check whether --enable-datetime or --disable-datetime was given.
4191if test "${enable_datetime+set}" = set; then
4192 enableval="$enable_datetime"
e6cc62c6 4193
1e6feb95
VZ
4194 if test "$enableval" = yes; then
4195 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4196 else
4197 ac_cv_use_datetime='wxUSE_DATETIME=no'
4198 fi
e6cc62c6 4199
1e6feb95 4200else
e6cc62c6 4201
1e6feb95
VZ
4202 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4203 if test "x$LINE" != x ; then
4204 eval "DEFAULT_$LINE"
4205 else
4206 no_cache=1
4207 fi
4208
4209 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4210
e6cc62c6 4211fi;
1e6feb95
VZ
4212
4213 eval "$ac_cv_use_datetime"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4219 echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
1e6feb95 4221 else
e6cc62c6
VS
4222 echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
1e6feb95 4224 fi
e6cc62c6 4225
1e6feb95 4226
5005acfe 4227 enablestring=
e6cc62c6
VS
4228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4229echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4230 no_cache=0
4231 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4232if test "${enable_stopwatch+set}" = set; then
4233 enableval="$enable_stopwatch"
e6cc62c6 4234
1e6feb95
VZ
4235 if test "$enableval" = yes; then
4236 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4237 else
4238 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4239 fi
e6cc62c6 4240
1e6feb95 4241else
e6cc62c6 4242
1e6feb95
VZ
4243 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4251
e6cc62c6 4252fi;
1e6feb95
VZ
4253
4254 eval "$ac_cv_use_stopwatch"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4260 echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
1e6feb95 4262 else
e6cc62c6
VS
4263 echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
1e6feb95 4265 fi
e6cc62c6 4266
1e6feb95 4267
5005acfe 4268 enablestring=
e6cc62c6
VS
4269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4270echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4271 no_cache=0
eb4efbdc
VZ
4272 # Check whether --enable-dialupman or --disable-dialupman was given.
4273if test "${enable_dialupman+set}" = set; then
4274 enableval="$enable_dialupman"
e6cc62c6 4275
10f2d63a 4276 if test "$enableval" = yes; then
eb4efbdc 4277 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4278 else
eb4efbdc 4279 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4280 fi
e6cc62c6 4281
10f2d63a 4282else
e6cc62c6 4283
eb4efbdc 4284 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4285 if test "x$LINE" != x ; then
4286 eval "DEFAULT_$LINE"
4287 else
4288 no_cache=1
4289 fi
4290
eb4efbdc 4291 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4292
e6cc62c6 4293fi;
10f2d63a 4294
eb4efbdc 4295 eval "$ac_cv_use_dialupman"
10f2d63a 4296 if test "$no_cache" != 1; then
eb4efbdc 4297 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4298 fi
4299
eb4efbdc 4300 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4301 echo "$as_me:$LINENO: result: yes" >&5
4302echo "${ECHO_T}yes" >&6
10f2d63a 4303 else
e6cc62c6
VS
4304 echo "$as_me:$LINENO: result: no" >&5
4305echo "${ECHO_T}no" >&6
10f2d63a 4306 fi
e6cc62c6 4307
10f2d63a 4308
5005acfe 4309 enablestring=
e6cc62c6
VS
4310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4311echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4312 no_cache=0
4313 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4314if test "${enable_apple_ieee+set}" = set; then
4315 enableval="$enable_apple_ieee"
e6cc62c6 4316
10f2d63a
VZ
4317 if test "$enableval" = yes; then
4318 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4319 else
4320 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4321 fi
e6cc62c6 4322
10f2d63a 4323else
e6cc62c6 4324
10f2d63a
VZ
4325 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4326 if test "x$LINE" != x ; then
4327 eval "DEFAULT_$LINE"
4328 else
4329 no_cache=1
4330 fi
4331
4332 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4333
e6cc62c6 4334fi;
10f2d63a
VZ
4335
4336 eval "$ac_cv_use_apple_ieee"
4337 if test "$no_cache" != 1; then
4338 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4339 fi
4340
4341 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4342 echo "$as_me:$LINENO: result: yes" >&5
4343echo "${ECHO_T}yes" >&6
10f2d63a 4344 else
e6cc62c6
VS
4345 echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6
10f2d63a 4347 fi
e6cc62c6 4348
10f2d63a 4349
5005acfe 4350 enablestring=
e6cc62c6
VS
4351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4352echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4353 no_cache=0
1e6feb95
VZ
4354 # Check whether --enable-timer or --disable-timer was given.
4355if test "${enable_timer+set}" = set; then
4356 enableval="$enable_timer"
e6cc62c6 4357
10f2d63a 4358 if test "$enableval" = yes; then
1e6feb95 4359 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4360 else
1e6feb95 4361 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4362 fi
e6cc62c6 4363
10f2d63a 4364else
e6cc62c6 4365
1e6feb95 4366 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4367 if test "x$LINE" != x ; then
4368 eval "DEFAULT_$LINE"
4369 else
4370 no_cache=1
4371 fi
4372
1e6feb95 4373 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4374
e6cc62c6 4375fi;
10f2d63a 4376
1e6feb95 4377 eval "$ac_cv_use_timer"
10f2d63a 4378 if test "$no_cache" != 1; then
1e6feb95 4379 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4380 fi
4381
1e6feb95 4382 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4383 echo "$as_me:$LINENO: result: yes" >&5
4384echo "${ECHO_T}yes" >&6
10f2d63a 4385 else
e6cc62c6
VS
4386 echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6
10f2d63a 4388 fi
e6cc62c6 4389
10f2d63a 4390
5005acfe 4391 enablestring=
e6cc62c6
VS
4392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4393echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4394 no_cache=0
4395 # Check whether --enable-wave or --disable-wave was given.
4396if test "${enable_wave+set}" = set; then
4397 enableval="$enable_wave"
e6cc62c6 4398
10f2d63a
VZ
4399 if test "$enableval" = yes; then
4400 ac_cv_use_wave='wxUSE_WAVE=yes'
4401 else
4402 ac_cv_use_wave='wxUSE_WAVE=no'
4403 fi
e6cc62c6 4404
10f2d63a 4405else
e6cc62c6 4406
10f2d63a
VZ
4407 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4415
e6cc62c6 4416fi;
10f2d63a
VZ
4417
4418 eval "$ac_cv_use_wave"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4424 echo "$as_me:$LINENO: result: yes" >&5
4425echo "${ECHO_T}yes" >&6
10f2d63a 4426 else
e6cc62c6
VS
4427 echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
10f2d63a 4429 fi
e6cc62c6 4430
10f2d63a 4431
5005acfe 4432 enablestring=
e6cc62c6
VS
4433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4434echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4435 no_cache=0
4436 # Check whether --enable-fraction or --disable-fraction was given.
4437if test "${enable_fraction+set}" = set; then
4438 enableval="$enable_fraction"
e6cc62c6 4439
10f2d63a
VZ
4440 if test "$enableval" = yes; then
4441 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4442 else
4443 ac_cv_use_fraction='wxUSE_FRACTION=no'
4444 fi
e6cc62c6 4445
10f2d63a 4446else
e6cc62c6 4447
10f2d63a
VZ
4448 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4456
e6cc62c6 4457fi;
10f2d63a
VZ
4458
4459 eval "$ac_cv_use_fraction"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4465 echo "$as_me:$LINENO: result: yes" >&5
4466echo "${ECHO_T}yes" >&6
10f2d63a 4467 else
e6cc62c6
VS
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
10f2d63a 4470 fi
e6cc62c6 4471
10f2d63a 4472
5005acfe 4473 enablestring=
e6cc62c6
VS
4474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4475echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4476 no_cache=0
4477 # Check whether --enable-dynlib or --disable-dynlib was given.
4478if test "${enable_dynlib+set}" = set; then
4479 enableval="$enable_dynlib"
e6cc62c6 4480
10f2d63a
VZ
4481 if test "$enableval" = yes; then
4482 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4483 else
4484 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4485 fi
e6cc62c6 4486
10f2d63a 4487else
e6cc62c6 4488
10f2d63a
VZ
4489 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4490 if test "x$LINE" != x ; then
4491 eval "DEFAULT_$LINE"
4492 else
4493 no_cache=1
4494 fi
4495
4496 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4497
e6cc62c6 4498fi;
10f2d63a
VZ
4499
4500 eval "$ac_cv_use_dynlib"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4506 echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6
10f2d63a 4508 else
e6cc62c6
VS
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
10f2d63a 4511 fi
e6cc62c6 4512
10f2d63a 4513
5005acfe 4514 enablestring=
e6cc62c6
VS
4515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4516echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4517 no_cache=0
4518 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4519if test "${enable_dynamicloader+set}" = set; then
4520 enableval="$enable_dynamicloader"
e6cc62c6 4521
0b9ab0bd
RL
4522 if test "$enableval" = yes; then
4523 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4524 else
4525 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4526 fi
e6cc62c6 4527
0b9ab0bd 4528else
e6cc62c6 4529
0b9ab0bd
RL
4530 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4538
e6cc62c6 4539fi;
0b9ab0bd
RL
4540
4541 eval "$ac_cv_use_dynamicloader"
4542 if test "$no_cache" != 1; then
4543 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4544 fi
4545
4546 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4547 echo "$as_me:$LINENO: result: yes" >&5
4548echo "${ECHO_T}yes" >&6
0b9ab0bd 4549 else
e6cc62c6
VS
4550 echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6
0b9ab0bd 4552 fi
e6cc62c6 4553
0b9ab0bd 4554
5005acfe 4555 enablestring=
e6cc62c6
VS
4556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4557echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4558 no_cache=0
4559 # Check whether --enable-longlong or --disable-longlong was given.
4560if test "${enable_longlong+set}" = set; then
4561 enableval="$enable_longlong"
e6cc62c6 4562
10f2d63a
VZ
4563 if test "$enableval" = yes; then
4564 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4565 else
4566 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4567 fi
e6cc62c6 4568
10f2d63a 4569else
e6cc62c6 4570
10f2d63a
VZ
4571 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4572 if test "x$LINE" != x ; then
4573 eval "DEFAULT_$LINE"
4574 else
4575 no_cache=1
4576 fi
4577
4578 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4579
e6cc62c6 4580fi;
10f2d63a
VZ
4581
4582 eval "$ac_cv_use_longlong"
4583 if test "$no_cache" != 1; then
4584 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4585 fi
4586
4587 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4588 echo "$as_me:$LINENO: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
10f2d63a 4590 else
e6cc62c6
VS
4591 echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
10f2d63a 4593 fi
e6cc62c6 4594
10f2d63a 4595
5005acfe 4596 enablestring=
e6cc62c6
VS
4597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4598echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4599 no_cache=0
4600 # Check whether --enable-geometry or --disable-geometry was given.
4601if test "${enable_geometry+set}" = set; then
4602 enableval="$enable_geometry"
e6cc62c6 4603
e8f65ba6
RR
4604 if test "$enableval" = yes; then
4605 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4606 else
4607 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4608 fi
e6cc62c6 4609
e8f65ba6 4610else
e6cc62c6 4611
e8f65ba6
RR
4612 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4620
e6cc62c6 4621fi;
e8f65ba6
RR
4622
4623 eval "$ac_cv_use_geometry"
4624 if test "$no_cache" != 1; then
4625 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4626 fi
4627
4628 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4629 echo "$as_me:$LINENO: result: yes" >&5
4630echo "${ECHO_T}yes" >&6
e8f65ba6 4631 else
e6cc62c6
VS
4632 echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
e8f65ba6 4634 fi
e6cc62c6 4635
e8f65ba6 4636
5005acfe 4637 enablestring=
e6cc62c6
VS
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4640 no_cache=0
4641 # Check whether --enable-log or --disable-log was given.
4642if test "${enable_log+set}" = set; then
4643 enableval="$enable_log"
e6cc62c6 4644
10f2d63a
VZ
4645 if test "$enableval" = yes; then
4646 ac_cv_use_log='wxUSE_LOG=yes'
4647 else
4648 ac_cv_use_log='wxUSE_LOG=no'
4649 fi
e6cc62c6 4650
10f2d63a 4651else
e6cc62c6 4652
10f2d63a
VZ
4653 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4661
e6cc62c6 4662fi;
10f2d63a
VZ
4663
4664 eval "$ac_cv_use_log"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
10f2d63a 4672 else
e6cc62c6
VS
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
10f2d63a 4675 fi
e6cc62c6 4676
10f2d63a 4677
5005acfe 4678 enablestring=
e6cc62c6
VS
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4681 no_cache=0
4682 # Check whether --enable-streams or --disable-streams was given.
4683if test "${enable_streams+set}" = set; then
4684 enableval="$enable_streams"
e6cc62c6 4685
10f2d63a
VZ
4686 if test "$enableval" = yes; then
4687 ac_cv_use_streams='wxUSE_STREAMS=yes'
4688 else
4689 ac_cv_use_streams='wxUSE_STREAMS=no'
4690 fi
e6cc62c6 4691
10f2d63a 4692else
e6cc62c6 4693
10f2d63a
VZ
4694 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4702
e6cc62c6 4703fi;
10f2d63a
VZ
4704
4705 eval "$ac_cv_use_streams"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4708 fi
4709
4710 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
10f2d63a 4713 else
e6cc62c6
VS
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
10f2d63a 4716 fi
e6cc62c6 4717
10f2d63a 4718
5005acfe 4719 enablestring=
e6cc62c6
VS
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4722 no_cache=0
4723 # Check whether --enable-file or --disable-file was given.
4724if test "${enable_file+set}" = set; then
4725 enableval="$enable_file"
e6cc62c6 4726
10f2d63a
VZ
4727 if test "$enableval" = yes; then
4728 ac_cv_use_file='wxUSE_FILE=yes'
4729 else
4730 ac_cv_use_file='wxUSE_FILE=no'
4731 fi
e6cc62c6 4732
10f2d63a 4733else
e6cc62c6 4734
10f2d63a
VZ
4735 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4743
e6cc62c6 4744fi;
10f2d63a
VZ
4745
4746 eval "$ac_cv_use_file"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
10f2d63a 4754 else
e6cc62c6
VS
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
10f2d63a 4757 fi
e6cc62c6 4758
10f2d63a 4759
5005acfe 4760 enablestring=
e6cc62c6
VS
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4763 no_cache=0
1e6feb95
VZ
4764 # Check whether --enable-ffile or --disable-ffile was given.
4765if test "${enable_ffile+set}" = set; then
4766 enableval="$enable_ffile"
e6cc62c6 4767
10f2d63a 4768 if test "$enableval" = yes; then
1e6feb95 4769 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4770 else
1e6feb95 4771 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4772 fi
e6cc62c6 4773
10f2d63a 4774else
e6cc62c6 4775
1e6feb95 4776 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
1e6feb95 4783 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4784
e6cc62c6 4785fi;
10f2d63a 4786
1e6feb95 4787 eval "$ac_cv_use_ffile"
10f2d63a 4788 if test "$no_cache" != 1; then
1e6feb95 4789 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4790 fi
4791
1e6feb95 4792 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
10f2d63a 4795 else
e6cc62c6
VS
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
10f2d63a 4798 fi
e6cc62c6 4799
10f2d63a 4800
5005acfe 4801 enablestring=
e6cc62c6
VS
4802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4803echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4804 no_cache=0
4805 # Check whether --enable-textbuf or --disable-textbuf was given.
4806if test "${enable_textbuf+set}" = set; then
4807 enableval="$enable_textbuf"
e6cc62c6 4808
a3a584a7
VZ
4809 if test "$enableval" = yes; then
4810 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4811 else
4812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4813 fi
e6cc62c6 4814
a3a584a7 4815else
e6cc62c6 4816
a3a584a7
VZ
4817 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4825
e6cc62c6 4826fi;
a3a584a7
VZ
4827
4828 eval "$ac_cv_use_textbuf"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4834 echo "$as_me:$LINENO: result: yes" >&5
4835echo "${ECHO_T}yes" >&6
a3a584a7 4836 else
e6cc62c6
VS
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
a3a584a7 4839 fi
e6cc62c6 4840
a3a584a7 4841
5005acfe 4842 enablestring=
e6cc62c6
VS
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4845 no_cache=0
1e6feb95
VZ
4846 # Check whether --enable-textfile or --disable-textfile was given.
4847if test "${enable_textfile+set}" = set; then
4848 enableval="$enable_textfile"
e6cc62c6 4849
10f2d63a 4850 if test "$enableval" = yes; then
1e6feb95 4851 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4852 else
1e6feb95 4853 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4854 fi
e6cc62c6 4855
10f2d63a 4856else
e6cc62c6 4857
1e6feb95 4858 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
1e6feb95 4865 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4866
e6cc62c6 4867fi;
10f2d63a 4868
1e6feb95 4869 eval "$ac_cv_use_textfile"
10f2d63a 4870 if test "$no_cache" != 1; then
1e6feb95 4871 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4872 fi
4873
1e6feb95 4874 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
10f2d63a 4877 else
e6cc62c6
VS
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
10f2d63a 4880 fi
e6cc62c6 4881
10f2d63a 4882
5005acfe 4883 enablestring=
e6cc62c6
VS
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4886 no_cache=0
1e6feb95
VZ
4887 # Check whether --enable-fontmap or --disable-fontmap was given.
4888if test "${enable_fontmap+set}" = set; then
4889 enableval="$enable_fontmap"
e6cc62c6 4890
10f2d63a 4891 if test "$enableval" = yes; then
1e6feb95 4892 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4893 else
1e6feb95 4894 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4895 fi
e6cc62c6 4896
10f2d63a 4897else
e6cc62c6 4898
1e6feb95 4899 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
1e6feb95 4906 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4907
e6cc62c6 4908fi;
10f2d63a 4909
1e6feb95 4910 eval "$ac_cv_use_fontmap"
10f2d63a 4911 if test "$no_cache" != 1; then
1e6feb95 4912 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4913 fi
4914
1e6feb95 4915 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
10f2d63a 4918 else
e6cc62c6
VS
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
10f2d63a 4921 fi
e6cc62c6 4922
10f2d63a 4923
5005acfe 4924 enablestring=
e6cc62c6
VS
4925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4927 no_cache=0
1e6feb95
VZ
4928 # Check whether --enable-unicode or --disable-unicode was given.
4929if test "${enable_unicode+set}" = set; then
4930 enableval="$enable_unicode"
e6cc62c6 4931
1e6feb95
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4934 else
4935 ac_cv_use_unicode='wxUSE_UNICODE=no'
4936 fi
e6cc62c6 4937
1e6feb95 4938else
e6cc62c6 4939
1e6feb95
VZ
4940 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4948
e6cc62c6 4949fi;
1e6feb95
VZ
4950
4951 eval "$ac_cv_use_unicode"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
4957 echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
1e6feb95 4959 else
e6cc62c6
VS
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
1e6feb95 4962 fi
e6cc62c6 4963
1e6feb95 4964
5005acfe 4965 enablestring=
e6cc62c6
VS
4966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4967echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4968 no_cache=0
4969 # Check whether --enable-mslu or --disable-mslu was given.
4970if test "${enable_mslu+set}" = set; then
4971 enableval="$enable_mslu"
e6cc62c6 4972
a72a4bfa
VS
4973 if test "$enableval" = yes; then
4974 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4975 else
4976 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4977 fi
e6cc62c6 4978
a72a4bfa 4979else
e6cc62c6 4980
a72a4bfa
VS
4981 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4989
e6cc62c6 4990fi;
a72a4bfa
VS
4991
4992 eval "$ac_cv_use_mslu"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
a72a4bfa 5000 else
e6cc62c6
VS
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
a72a4bfa 5003 fi
e6cc62c6 5004
a72a4bfa 5005
5005acfe 5006 enablestring=
e6cc62c6
VS
5007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5008echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5009 no_cache=0
5010 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5011if test "${enable_wxprintfv+set}" = set; then
5012 enableval="$enable_wxprintfv"
e6cc62c6 5013
1e6feb95 5014 if test "$enableval" = yes; then
10f2d63a
VZ
5015 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5016 else
5017 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5018 fi
e6cc62c6 5019
10f2d63a 5020else
e6cc62c6 5021
10f2d63a
VZ
5022 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5023 if test "x$LINE" != x ; then
5024 eval "DEFAULT_$LINE"
5025 else
5026 no_cache=1
5027 fi
5028
5029 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5030
e6cc62c6 5031fi;
10f2d63a
VZ
5032
5033 eval "$ac_cv_use_wxprintfv"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5039 echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
10f2d63a 5041 else
e6cc62c6
VS
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
10f2d63a 5044 fi
e6cc62c6 5045
10f2d63a 5046
5005acfe 5047 enablestring=
e6cc62c6
VS
5048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5049echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5050 no_cache=0
5051 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5052if test "${enable_std_iostreams+set}" = set; then
5053 enableval="$enable_std_iostreams"
e6cc62c6 5054
10f2d63a
VZ
5055 if test "$enableval" = yes; then
5056 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5057 else
5058 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5059 fi
e6cc62c6 5060
10f2d63a 5061else
e6cc62c6 5062
10f2d63a
VZ
5063 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5071
e6cc62c6 5072fi;
10f2d63a
VZ
5073
5074 eval "$ac_cv_use_std_iostreams"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
10f2d63a 5082 else
e6cc62c6
VS
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
10f2d63a 5085 fi
e6cc62c6 5086
10f2d63a 5087
5005acfe 5088 enablestring=
e6cc62c6
VS
5089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5090echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5091 no_cache=0
5092 # Check whether --enable-filesystem or --disable-filesystem was given.
5093if test "${enable_filesystem+set}" = set; then
5094 enableval="$enable_filesystem"
e6cc62c6 5095
24528b0c
VS
5096 if test "$enableval" = yes; then
5097 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5098 else
5099 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5100 fi
e6cc62c6 5101
24528b0c 5102else
e6cc62c6 5103
24528b0c
VS
5104 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5112
e6cc62c6 5113fi;
24528b0c
VS
5114
5115 eval "$ac_cv_use_filesystem"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5121 echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
24528b0c 5123 else
e6cc62c6
VS
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
24528b0c 5126 fi
e6cc62c6 5127
24528b0c 5128
5005acfe 5129 enablestring=
e6cc62c6
VS
5130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5131echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5132 no_cache=0
5133 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5134if test "${enable_fs_inet+set}" = set; then
5135 enableval="$enable_fs_inet"
e6cc62c6 5136
10f2d63a
VZ
5137 if test "$enableval" = yes; then
5138 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5139 else
5140 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5141 fi
e6cc62c6 5142
10f2d63a 5143else
e6cc62c6 5144
10f2d63a
VZ
5145 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5153
e6cc62c6 5154fi;
10f2d63a
VZ
5155
5156 eval "$ac_cv_use_fs_inet"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5162 echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
10f2d63a 5164 else
e6cc62c6
VS
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
10f2d63a 5167 fi
e6cc62c6 5168
10f2d63a 5169
5005acfe 5170 enablestring=
e6cc62c6
VS
5171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5172echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5173 no_cache=0
5174 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5175if test "${enable_fs_zip+set}" = set; then
5176 enableval="$enable_fs_zip"
e6cc62c6 5177
10f2d63a
VZ
5178 if test "$enableval" = yes; then
5179 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5180 else
5181 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5182 fi
e6cc62c6 5183
10f2d63a 5184else
e6cc62c6 5185
10f2d63a
VZ
5186 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5194
e6cc62c6 5195fi;
10f2d63a
VZ
5196
5197 eval "$ac_cv_use_fs_zip"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5203 echo "$as_me:$LINENO: result: yes" >&5
5204echo "${ECHO_T}yes" >&6
10f2d63a 5205 else
e6cc62c6
VS
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
10f2d63a 5208 fi
e6cc62c6 5209
10f2d63a 5210
5005acfe 5211 enablestring=
e6cc62c6
VS
5212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5213echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5214 no_cache=0
5215 # Check whether --enable-zipstream or --disable-zipstream was given.
5216if test "${enable_zipstream+set}" = set; then
5217 enableval="$enable_zipstream"
e6cc62c6 5218
10f2d63a
VZ
5219 if test "$enableval" = yes; then
5220 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5221 else
5222 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5223 fi
e6cc62c6 5224
10f2d63a 5225else
e6cc62c6 5226
10f2d63a
VZ
5227 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5235
e6cc62c6 5236fi;
10f2d63a
VZ
5237
5238 eval "$ac_cv_use_zipstream"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
10f2d63a 5246 else
e6cc62c6
VS
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
10f2d63a 5249 fi
e6cc62c6 5250
8284b0c5 5251
52127426 5252
5005acfe 5253 enablestring=
e6cc62c6
VS
5254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5255echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5256 no_cache=0
5257 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5258if test "${enable_catch_segvs+set}" = set; then
5259 enableval="$enable_catch_segvs"
e6cc62c6 5260
eb4efbdc
VZ
5261 if test "$enableval" = yes; then
5262 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5263 else
5264 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5265 fi
e6cc62c6 5266
eb4efbdc 5267else
e6cc62c6 5268
eb4efbdc
VZ
5269 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5277
e6cc62c6 5278fi;
eb4efbdc
VZ
5279
5280 eval "$ac_cv_use_catch_segvs"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5286 echo "$as_me:$LINENO: result: yes" >&5
5287echo "${ECHO_T}yes" >&6
eb4efbdc 5288 else
e6cc62c6
VS
5289 echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
eb4efbdc 5291 fi
e6cc62c6 5292
eb4efbdc 5293
5005acfe 5294 enablestring=
e6cc62c6
VS
5295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5296echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5297 no_cache=0
5298 # Check whether --enable-snglinst or --disable-snglinst was given.
5299if test "${enable_snglinst+set}" = set; then
5300 enableval="$enable_snglinst"
e6cc62c6 5301
4f3c5f06
VZ
5302 if test "$enableval" = yes; then
5303 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5304 else
5305 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5306 fi
e6cc62c6 5307
4f3c5f06 5308else
e6cc62c6 5309
4f3c5f06
VZ
5310 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5318
e6cc62c6 5319fi;
4f3c5f06
VZ
5320
5321 eval "$ac_cv_use_snglinst"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5327 echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
4f3c5f06 5329 else
e6cc62c6
VS
5330 echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
4f3c5f06 5332 fi
e6cc62c6 5333
52127426 5334
8284b0c5 5335
5005acfe 5336 enablestring=
e6cc62c6
VS
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5339 no_cache=0
5340 # Check whether --enable-mimetype or --disable-mimetype was given.
5341if test "${enable_mimetype+set}" = set; then
5342 enableval="$enable_mimetype"
e6cc62c6 5343
1e6feb95
VZ
5344 if test "$enableval" = yes; then
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5346 else
5347 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5348 fi
e6cc62c6 5349
1e6feb95 5350else
e6cc62c6 5351
1e6feb95
VZ
5352 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5360
e6cc62c6 5361fi;
1e6feb95
VZ
5362
5363 eval "$ac_cv_use_mimetype"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
1e6feb95 5371 else
e6cc62c6
VS
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
1e6feb95 5374 fi
e6cc62c6 5375
1e6feb95 5376
5005acfe 5377 enablestring=
e6cc62c6
VS
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5380 no_cache=0
5381 # Check whether --enable-system_options or --disable-system_options was given.
5382if test "${enable_system_options+set}" = set; then
5383 enableval="$enable_system_options"
e6cc62c6 5384
3e44f09d
VZ
5385 if test "$enableval" = yes; then
5386 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5387 else
5388 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5389 fi
e6cc62c6 5390
3e44f09d 5391else
e6cc62c6 5392
3e44f09d
VZ
5393 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
5400 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5401
e6cc62c6 5402fi;
3e44f09d
VZ
5403
5404 eval "$ac_cv_use_system_options"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
3e44f09d 5412 else
e6cc62c6
VS
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
3e44f09d 5415 fi
e6cc62c6 5416
8284b0c5 5417
52127426 5418
5005acfe 5419 enablestring=
e6cc62c6
VS
5420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5421echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5422 no_cache=0
5423 # Check whether --enable-url or --disable-url was given.
5424if test "${enable_url+set}" = set; then
5425 enableval="$enable_url"
e6cc62c6 5426
4cdb0ab0
VS
5427 if test "$enableval" = yes; then
5428 ac_cv_use_url='wxUSE_URL=yes'
5429 else
5430 ac_cv_use_url='wxUSE_URL=no'
5431 fi
e6cc62c6 5432
4cdb0ab0 5433else
e6cc62c6 5434
4cdb0ab0
VS
5435 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5443
e6cc62c6 5444fi;
4cdb0ab0
VS
5445
5446 eval "$ac_cv_use_url"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5452 echo "$as_me:$LINENO: result: yes" >&5
5453echo "${ECHO_T}yes" >&6
4cdb0ab0 5454 else
e6cc62c6
VS
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
4cdb0ab0 5457 fi
e6cc62c6 5458
4cdb0ab0 5459
5005acfe 5460 enablestring=
e6cc62c6
VS
5461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5462echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5463 no_cache=0
5464 # Check whether --enable-protocol or --disable-protocol was given.
5465if test "${enable_protocol+set}" = set; then
5466 enableval="$enable_protocol"
e6cc62c6 5467
4cdb0ab0
VS
5468 if test "$enableval" = yes; then
5469 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5470 else
5471 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5472 fi
e6cc62c6 5473
4cdb0ab0 5474else
e6cc62c6 5475
4cdb0ab0
VS
5476 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5484
e6cc62c6 5485fi;
4cdb0ab0
VS
5486
5487 eval "$ac_cv_use_protocol"
5488 if test "$no_cache" != 1; then
5489 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5490 fi
5491
5492 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5493 echo "$as_me:$LINENO: result: yes" >&5
5494echo "${ECHO_T}yes" >&6
4cdb0ab0 5495 else
e6cc62c6
VS
5496 echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
4cdb0ab0 5498 fi
e6cc62c6 5499
4cdb0ab0 5500
5005acfe 5501 enablestring=
e6cc62c6
VS
5502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5503echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5504 no_cache=0
5505 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5506if test "${enable_protocol_http+set}" = set; then
5507 enableval="$enable_protocol_http"
e6cc62c6 5508
4cdb0ab0
VS
5509 if test "$enableval" = yes; then
5510 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5511 else
5512 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5513 fi
e6cc62c6 5514
4cdb0ab0 5515else
e6cc62c6 5516
4cdb0ab0
VS
5517 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
5524 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5525
e6cc62c6 5526fi;
4cdb0ab0
VS
5527
5528 eval "$ac_cv_use_protocol_http"
5529 if test "$no_cache" != 1; then
5530 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5531 fi
5532
5533 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5534 echo "$as_me:$LINENO: result: yes" >&5
5535echo "${ECHO_T}yes" >&6
4cdb0ab0 5536 else
e6cc62c6
VS
5537 echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
4cdb0ab0 5539 fi
e6cc62c6 5540
4cdb0ab0 5541
5005acfe 5542 enablestring=
e6cc62c6
VS
5543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5544echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5545 no_cache=0
5546 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5547if test "${enable_protocol_ftp+set}" = set; then
5548 enableval="$enable_protocol_ftp"
e6cc62c6 5549
4cdb0ab0
VS
5550 if test "$enableval" = yes; then
5551 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5552 else
5553 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5554 fi
e6cc62c6 5555
4cdb0ab0 5556else
e6cc62c6 5557
4cdb0ab0
VS
5558 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5566
e6cc62c6 5567fi;
4cdb0ab0
VS
5568
5569 eval "$ac_cv_use_protocol_ftp"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5575 echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6
4cdb0ab0 5577 else
e6cc62c6
VS
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
4cdb0ab0 5580 fi
e6cc62c6 5581
4cdb0ab0 5582
5005acfe 5583 enablestring=
e6cc62c6
VS
5584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5585echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5586 no_cache=0
5587 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5588if test "${enable_protocol_file+set}" = set; then
5589 enableval="$enable_protocol_file"
e6cc62c6 5590
4cdb0ab0
VS
5591 if test "$enableval" = yes; then
5592 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5593 else
5594 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5595 fi
e6cc62c6 5596
4cdb0ab0 5597else
e6cc62c6 5598
4cdb0ab0
VS
5599 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5607
e6cc62c6 5608fi;
4cdb0ab0
VS
5609
5610 eval "$ac_cv_use_protocol_file"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5616 echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
4cdb0ab0 5618 else
e6cc62c6
VS
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
4cdb0ab0 5621 fi
e6cc62c6 5622
52127426 5623
8284b0c5
MB
5624
5625
5626
5005acfe 5627 enablestring=
e6cc62c6
VS
5628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5629echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5630 no_cache=0
5631 # Check whether --enable-threads or --disable-threads was given.
5632if test "${enable_threads+set}" = set; then
5633 enableval="$enable_threads"
e6cc62c6 5634
10f2d63a
VZ
5635 if test "$enableval" = yes; then
5636 ac_cv_use_threads='wxUSE_THREADS=yes'
5637 else
5638 ac_cv_use_threads='wxUSE_THREADS=no'
5639 fi
e6cc62c6 5640
10f2d63a 5641else
e6cc62c6 5642
10f2d63a
VZ
5643 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5651
e6cc62c6 5652fi;
10f2d63a
VZ
5653
5654 eval "$ac_cv_use_threads"
5655 if test "$no_cache" != 1; then
5656 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5657 fi
5658
5659 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5660 echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
10f2d63a 5662 else
e6cc62c6
VS
5663 echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
10f2d63a 5665 fi
e6cc62c6 5666
10f2d63a 5667
b12915c1
VZ
5668if test "$wxUSE_GUI" = "yes"; then
5669
8284b0c5
MB
5670
5671
5005acfe 5672 enablestring=
e6cc62c6
VS
5673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5674echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5675 no_cache=0
5676 # Check whether --enable-docview or --disable-docview was given.
5677if test "${enable_docview+set}" = set; then
5678 enableval="$enable_docview"
e6cc62c6 5679
10f2d63a
VZ
5680 if test "$enableval" = yes; then
5681 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5682 else
5683 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5684 fi
e6cc62c6 5685
10f2d63a 5686else
e6cc62c6 5687
10f2d63a
VZ
5688 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5689 if test "x$LINE" != x ; then
5690 eval "DEFAULT_$LINE"
5691 else
5692 no_cache=1
5693 fi
5694
5695 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5696
e6cc62c6 5697fi;
10f2d63a
VZ
5698
5699 eval "$ac_cv_use_docview"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5705 echo "$as_me:$LINENO: result: yes" >&5
5706echo "${ECHO_T}yes" >&6
10f2d63a 5707 else
e6cc62c6
VS
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
10f2d63a 5710 fi
e6cc62c6 5711
10f2d63a 5712
5005acfe 5713 enablestring=
e6cc62c6
VS
5714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5715echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5716 no_cache=0
5717 # Check whether --enable-help or --disable-help was given.
5718if test "${enable_help+set}" = set; then
5719 enableval="$enable_help"
e6cc62c6 5720
10f2d63a
VZ
5721 if test "$enableval" = yes; then
5722 ac_cv_use_help='wxUSE_HELP=yes'
5723 else
5724 ac_cv_use_help='wxUSE_HELP=no'
5725 fi
e6cc62c6 5726
10f2d63a 5727else
e6cc62c6 5728
10f2d63a
VZ
5729 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5737
e6cc62c6 5738fi;
10f2d63a
VZ
5739
5740 eval "$ac_cv_use_help"
5741 if test "$no_cache" != 1; then
5742 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5743 fi
5744
5745 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5746 echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
10f2d63a 5748 else
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
10f2d63a 5751 fi
e6cc62c6 5752
10f2d63a 5753
5005acfe 5754 enablestring=
e6cc62c6
VS
5755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5756echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5757 no_cache=0
5758 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5759if test "${enable_mshtmlhelp+set}" = set; then
5760 enableval="$enable_mshtmlhelp"
e6cc62c6 5761
29fd3c0c
VS
5762 if test "$enableval" = yes; then
5763 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5764 else
5765 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5766 fi
e6cc62c6 5767
29fd3c0c 5768else
e6cc62c6 5769
29fd3c0c
VS
5770 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5778
e6cc62c6 5779fi;
29fd3c0c
VS
5780
5781 eval "$ac_cv_use_mshtmlhelp"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5787 echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
29fd3c0c 5789 else
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
29fd3c0c 5792 fi
e6cc62c6 5793
29fd3c0c 5794
5005acfe 5795 enablestring=
e6cc62c6
VS
5796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5797echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5798 no_cache=0
5799 # Check whether --enable-html or --disable-html was given.
5800if test "${enable_html+set}" = set; then
5801 enableval="$enable_html"
e6cc62c6 5802
3379ed37
VZ
5803 if test "$enableval" = yes; then
5804 ac_cv_use_html='wxUSE_HTML=yes'
5805 else
5806 ac_cv_use_html='wxUSE_HTML=no'
5807 fi
e6cc62c6 5808
3379ed37 5809else
e6cc62c6 5810
3379ed37
VZ
5811 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5819
e6cc62c6 5820fi;
3379ed37
VZ
5821
5822 eval "$ac_cv_use_html"
5823 if test "$no_cache" != 1; then
5824 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5825 fi
5826
5827 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5828 echo "$as_me:$LINENO: result: yes" >&5
5829echo "${ECHO_T}yes" >&6
3379ed37 5830 else
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
3379ed37 5833 fi
e6cc62c6 5834
3379ed37 5835
5005acfe 5836 enablestring=
e6cc62c6
VS
5837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5838echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5839 no_cache=0
5840 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5841if test "${enable_htmlhelp+set}" = set; then
5842 enableval="$enable_htmlhelp"
e6cc62c6 5843
3379ed37
VZ
5844 if test "$enableval" = yes; then
5845 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5846 else
5847 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5848 fi
e6cc62c6 5849
3379ed37 5850else
e6cc62c6 5851
3379ed37
VZ
5852 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5853 if test "x$LINE" != x ; then
5854 eval "DEFAULT_$LINE"
5855 else
5856 no_cache=1
5857 fi
5858
5859 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5860
e6cc62c6 5861fi;
3379ed37
VZ
5862
5863 eval "$ac_cv_use_htmlhelp"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5869 echo "$as_me:$LINENO: result: yes" >&5
5870echo "${ECHO_T}yes" >&6
3379ed37 5871 else
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
3379ed37 5874 fi
e6cc62c6 5875
3379ed37 5876
5005acfe 5877 enablestring=
e6cc62c6
VS
5878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5879echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5880 no_cache=0
5881 # Check whether --enable-constraints or --disable-constraints was given.
5882if test "${enable_constraints+set}" = set; then
5883 enableval="$enable_constraints"
e6cc62c6 5884
10f2d63a
VZ
5885 if test "$enableval" = yes; then
5886 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5887 else
5888 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5889 fi
e6cc62c6 5890
10f2d63a 5891else
e6cc62c6 5892
10f2d63a
VZ
5893 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5901
e6cc62c6 5902fi;
10f2d63a
VZ
5903
5904 eval "$ac_cv_use_constraints"
5905 if test "$no_cache" != 1; then
5906 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5907 fi
5908
5909 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5910 echo "$as_me:$LINENO: result: yes" >&5
5911echo "${ECHO_T}yes" >&6
10f2d63a 5912 else
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
10f2d63a 5915 fi
e6cc62c6 5916
10f2d63a 5917
5005acfe 5918 enablestring=
e6cc62c6
VS
5919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5920echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5921 no_cache=0
5922 # Check whether --enable-printarch or --disable-printarch was given.
5923if test "${enable_printarch+set}" = set; then
5924 enableval="$enable_printarch"
e6cc62c6 5925
10f2d63a
VZ
5926 if test "$enableval" = yes; then
5927 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5928 else
5929 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5930 fi
e6cc62c6 5931
10f2d63a 5932else
e6cc62c6 5933
10f2d63a
VZ
5934 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5935 if test "x$LINE" != x ; then
5936 eval "DEFAULT_$LINE"
5937 else
5938 no_cache=1
5939 fi
5940
5941 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5942
e6cc62c6 5943fi;
10f2d63a
VZ
5944
5945 eval "$ac_cv_use_printarch"
5946 if test "$no_cache" != 1; then
5947 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5948 fi
5949
5950 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5951 echo "$as_me:$LINENO: result: yes" >&5
5952echo "${ECHO_T}yes" >&6
10f2d63a 5953 else
e6cc62c6
VS
5954 echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
10f2d63a 5956 fi
e6cc62c6 5957
10f2d63a 5958
5005acfe 5959 enablestring=
e6cc62c6
VS
5960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
5961echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
5962 no_cache=0
5963 # Check whether --enable-mdi or --disable-mdi was given.
5964if test "${enable_mdi+set}" = set; then
5965 enableval="$enable_mdi"
e6cc62c6 5966
10f2d63a
VZ
5967 if test "$enableval" = yes; then
5968 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5969 else
5970 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5971 fi
e6cc62c6 5972
10f2d63a 5973else
e6cc62c6 5974
10f2d63a
VZ
5975 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5983
e6cc62c6 5984fi;
10f2d63a
VZ
5985
5986 eval "$ac_cv_use_mdi"
5987 if test "$no_cache" != 1; then
5988 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5989 fi
5990
5991 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
5992 echo "$as_me:$LINENO: result: yes" >&5
5993echo "${ECHO_T}yes" >&6
10f2d63a 5994 else
e6cc62c6
VS
5995 echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6
10f2d63a 5997 fi
e6cc62c6 5998
698dcdb6 5999
5005acfe 6000 enablestring=
e6cc62c6
VS
6001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6002echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6003 no_cache=0
6004 # Check whether --enable-loggui or --disable-loggui was given.
6005if test "${enable_loggui+set}" = set; then
6006 enableval="$enable_loggui"
e6cc62c6 6007
1e6feb95
VZ
6008 if test "$enableval" = yes; then
6009 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6010 else
6011 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6012 fi
e6cc62c6 6013
1e6feb95 6014else
e6cc62c6 6015
1e6feb95
VZ
6016 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6017 if test "x$LINE" != x ; then
6018 eval "DEFAULT_$LINE"
6019 else
6020 no_cache=1
6021 fi
6022
6023 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6024
e6cc62c6 6025fi;
1e6feb95
VZ
6026
6027 eval "$ac_cv_use_loggui"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6033 echo "$as_me:$LINENO: result: yes" >&5
6034echo "${ECHO_T}yes" >&6
1e6feb95 6035 else
e6cc62c6
VS
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
1e6feb95 6038 fi
e6cc62c6 6039
1e6feb95 6040
5005acfe 6041 enablestring=
e6cc62c6
VS
6042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6043echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6044 no_cache=0
6045 # Check whether --enable-logwin or --disable-logwin was given.
6046if test "${enable_logwin+set}" = set; then
6047 enableval="$enable_logwin"
e6cc62c6 6048
1e6feb95
VZ
6049 if test "$enableval" = yes; then
6050 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6051 else
6052 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6053 fi
e6cc62c6 6054
1e6feb95 6055else
e6cc62c6 6056
1e6feb95
VZ
6057 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6058 if test "x$LINE" != x ; then
6059 eval "DEFAULT_$LINE"
6060 else
6061 no_cache=1
6062 fi
6063
6064 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6065
e6cc62c6 6066fi;
1e6feb95
VZ
6067
6068 eval "$ac_cv_use_logwin"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6074 echo "$as_me:$LINENO: result: yes" >&5
6075echo "${ECHO_T}yes" >&6
1e6feb95 6076 else
e6cc62c6
VS
6077 echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
1e6feb95 6079 fi
e6cc62c6 6080
1e6feb95 6081
5005acfe 6082 enablestring=
e6cc62c6
VS
6083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6084echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6085 no_cache=0
6086 # Check whether --enable-logdialog or --disable-logdialog was given.
6087if test "${enable_logdialog+set}" = set; then
6088 enableval="$enable_logdialog"
e6cc62c6 6089
69d27ff7
MB
6090 if test "$enableval" = yes; then
6091 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6092 else
6093 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6094 fi
e6cc62c6 6095
69d27ff7 6096else
e6cc62c6 6097
69d27ff7
MB
6098 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6099 if test "x$LINE" != x ; then
6100 eval "DEFAULT_$LINE"
6101 else
6102 no_cache=1
6103 fi
6104
6105 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6106
e6cc62c6 6107fi;
69d27ff7
MB
6108
6109 eval "$ac_cv_use_logdialog"
6110 if test "$no_cache" != 1; then
6111 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6112 fi
6113
6114 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6115 echo "$as_me:$LINENO: result: yes" >&5
6116echo "${ECHO_T}yes" >&6
69d27ff7 6117 else
e6cc62c6
VS
6118 echo "$as_me:$LINENO: result: no" >&5
6119echo "${ECHO_T}no" >&6
69d27ff7 6120 fi
e6cc62c6 6121
8284b0c5 6122
52127426 6123
5005acfe 6124 enablestring=
e6cc62c6
VS
6125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6126echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6127 no_cache=0
6128 # Check whether --enable-postscript or --disable-postscript was given.
6129if test "${enable_postscript+set}" = set; then
6130 enableval="$enable_postscript"
e6cc62c6 6131
10f2d63a
VZ
6132 if test "$enableval" = yes; then
6133 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6134 else
6135 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6136 fi
e6cc62c6 6137
10f2d63a 6138else
e6cc62c6 6139
10f2d63a
VZ
6140 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6141 if test "x$LINE" != x ; then
6142 eval "DEFAULT_$LINE"
6143 else
6144 no_cache=1
6145 fi
6146
6147 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6148
e6cc62c6 6149fi;
10f2d63a
VZ
6150
6151 eval "$ac_cv_use_postscript"
6152 if test "$no_cache" != 1; then
6153 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6154 fi
6155
6156 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6157 echo "$as_me:$LINENO: result: yes" >&5
6158echo "${ECHO_T}yes" >&6
10f2d63a 6159 else
e6cc62c6
VS
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
10f2d63a 6162 fi
e6cc62c6 6163
8284b0c5
MB
6164
6165
52127426 6166
8284b0c5 6167
5005acfe 6168 enablestring=
e6cc62c6
VS
6169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6170echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6171 no_cache=0
3c907f20
VZ
6172 # Check whether --enable-prologio or --disable-prologio was given.
6173if test "${enable_prologio+set}" = set; then
6174 enableval="$enable_prologio"
e6cc62c6 6175
10f2d63a 6176 if test "$enableval" = yes; then
3c907f20 6177 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6178 else
3c907f20 6179 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6180 fi
e6cc62c6 6181
10f2d63a 6182else
e6cc62c6 6183
3c907f20 6184 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
3c907f20 6191 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6192
e6cc62c6 6193fi;
10f2d63a 6194
3c907f20 6195 eval "$ac_cv_use_prologio"
10f2d63a 6196 if test "$no_cache" != 1; then
3c907f20 6197 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6198 fi
6199
3c907f20 6200 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6201 echo "$as_me:$LINENO: result: yes" >&5
6202echo "${ECHO_T}yes" >&6
10f2d63a 6203 else
e6cc62c6
VS
6204 echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
10f2d63a 6206 fi
e6cc62c6 6207
8284b0c5 6208
5005acfe 6209 enablestring=
e6cc62c6
VS
6210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6211echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6212 no_cache=0
3c907f20
VZ
6213 # Check whether --enable-resources or --disable-resources was given.
6214if test "${enable_resources+set}" = set; then
6215 enableval="$enable_resources"
e6cc62c6 6216
10f2d63a 6217 if test "$enableval" = yes; then
3c907f20 6218 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6219 else
3c907f20 6220 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6221 fi
e6cc62c6 6222
10f2d63a 6223else
e6cc62c6 6224
3c907f20 6225 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
3c907f20 6232 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6233
e6cc62c6 6234fi;
10f2d63a 6235
3c907f20 6236 eval "$ac_cv_use_resources"
10f2d63a 6237 if test "$no_cache" != 1; then
3c907f20 6238 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6239 fi
6240
3c907f20 6241 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6242 echo "$as_me:$LINENO: result: yes" >&5
6243echo "${ECHO_T}yes" >&6
10f2d63a 6244 else
e6cc62c6
VS
6245 echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6
10f2d63a 6247 fi
e6cc62c6 6248
8284b0c5
MB
6249
6250
52127426 6251
5005acfe 6252 enablestring=
e6cc62c6
VS
6253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6254echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6255 no_cache=0
6256 # Check whether --enable-clipboard or --disable-clipboard was given.
6257if test "${enable_clipboard+set}" = set; then
6258 enableval="$enable_clipboard"
e6cc62c6 6259
10f2d63a
VZ
6260 if test "$enableval" = yes; then
6261 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6262 else
6263 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6264 fi
e6cc62c6 6265
10f2d63a 6266else
e6cc62c6 6267
10f2d63a
VZ
6268 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6276
e6cc62c6 6277fi;
10f2d63a
VZ
6278
6279 eval "$ac_cv_use_clipboard"
6280 if test "$no_cache" != 1; then
6281 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6282 fi
6283
6284 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6285 echo "$as_me:$LINENO: result: yes" >&5
6286echo "${ECHO_T}yes" >&6
10f2d63a 6287 else
e6cc62c6
VS
6288 echo "$as_me:$LINENO: result: no" >&5
6289echo "${ECHO_T}no" >&6
10f2d63a 6290 fi
e6cc62c6 6291
10f2d63a 6292
5005acfe 6293 enablestring=
e6cc62c6
VS
6294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6295echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6296 no_cache=0
6297 # Check whether --enable-dnd or --disable-dnd was given.
6298if test "${enable_dnd+set}" = set; then
6299 enableval="$enable_dnd"
e6cc62c6 6300
10f2d63a
VZ
6301 if test "$enableval" = yes; then
6302 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6303 else
6304 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6305 fi
e6cc62c6 6306
10f2d63a 6307else
e6cc62c6 6308
10f2d63a
VZ
6309 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6317
e6cc62c6 6318fi;
10f2d63a
VZ
6319
6320 eval "$ac_cv_use_dnd"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6326 echo "$as_me:$LINENO: result: yes" >&5
6327echo "${ECHO_T}yes" >&6
10f2d63a 6328 else
e6cc62c6
VS
6329 echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6
10f2d63a 6331 fi
e6cc62c6 6332
10f2d63a 6333
5005acfe 6334 enablestring=
e6cc62c6
VS
6335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6336echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6337 no_cache=0
6338 # Check whether --enable-metafile or --disable-metafile was given.
6339if test "${enable_metafile+set}" = set; then
6340 enableval="$enable_metafile"
e6cc62c6 6341
b64f0a5f
RL
6342 if test "$enableval" = yes; then
6343 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6344 else
6345 ac_cv_use_metafile='wxUSE_METAFILE=no'
6346 fi
e6cc62c6 6347
b64f0a5f 6348else
e6cc62c6 6349
b64f0a5f
RL
6350 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6358
e6cc62c6 6359fi;
b64f0a5f
RL
6360
6361 eval "$ac_cv_use_metafile"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6367 echo "$as_me:$LINENO: result: yes" >&5
6368echo "${ECHO_T}yes" >&6
b64f0a5f 6369 else
e6cc62c6
VS
6370 echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
b64f0a5f 6372 fi
e6cc62c6 6373
52127426 6374
8284b0c5 6375
52127426 6376
8284b0c5 6377
5005acfe 6378 enablestring=
e6cc62c6
VS
6379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6380echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6381 no_cache=0
6382 # Check whether --enable-controls or --disable-controls was given.
6383if test "${enable_controls+set}" = set; then
6384 enableval="$enable_controls"
e6cc62c6 6385
10f2d63a
VZ
6386 if test "$enableval" = yes; then
6387 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6388 else
6389 ac_cv_use_controls='wxUSE_CONTROLS=no'
6390 fi
e6cc62c6 6391
10f2d63a 6392else
e6cc62c6 6393
10f2d63a
VZ
6394 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6402
e6cc62c6 6403fi;
10f2d63a
VZ
6404
6405 eval "$ac_cv_use_controls"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6411 echo "$as_me:$LINENO: result: yes" >&5
6412echo "${ECHO_T}yes" >&6
10f2d63a 6413 else
e6cc62c6
VS
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
10f2d63a 6416 fi
e6cc62c6 6417
10f2d63a
VZ
6418
6419if test "$wxUSE_CONTROLS" = "yes"; then
6420 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6421 DEFAULT_wxUSE_BMPBUTTON=yes
6422 DEFAULT_wxUSE_BUTTON=yes
6423 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6424 DEFAULT_wxUSE_CARET=yes
6425 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6426 DEFAULT_wxUSE_CHECKBOX=yes
6427 DEFAULT_wxUSE_CHECKLISTBOX=yes
6428 DEFAULT_wxUSE_CHOICE=yes
6429 DEFAULT_wxUSE_GAUGE=yes
6430 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6431 DEFAULT_wxUSE_IMAGLIST=yes
6432 DEFAULT_wxUSE_LISTBOX=yes
6433 DEFAULT_wxUSE_LISTCTRL=yes
6434 DEFAULT_wxUSE_NOTEBOOK=yes
6435 DEFAULT_wxUSE_RADIOBOX=yes
6436 DEFAULT_wxUSE_RADIOBTN=yes
6437 DEFAULT_wxUSE_SASH=yes
6438 DEFAULT_wxUSE_SCROLLBAR=yes
6439 DEFAULT_wxUSE_SLIDER=yes
6440 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6441 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6442 DEFAULT_wxUSE_SPLITTER=yes
6443 DEFAULT_wxUSE_STATBMP=yes
6444 DEFAULT_wxUSE_STATBOX=yes
6445 DEFAULT_wxUSE_STATLINE=yes
6446 DEFAULT_wxUSE_STATUSBAR=yes
6447 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6448 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6449 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6450 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6451 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6452 DEFAULT_wxUSE_TOOLTIPS=yes
6453 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6454 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6455 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6456elif test "$wxUSE_CONTROLS" = "no"; then
6457 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6458 DEFAULT_wxUSE_BMPBUTTON=no
6459 DEFAULT_wxUSE_BUTTON=no
6460 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6461 DEFAULT_wxUSE_CARET=no
6462 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6463 DEFAULT_wxUSE_CHECKBOX=no
6464 DEFAULT_wxUSE_CHECKLISTBOX=no
6465 DEFAULT_wxUSE_CHOICE=no
6466 DEFAULT_wxUSE_GAUGE=no
6467 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6468 DEFAULT_wxUSE_IMAGLIST=no
6469 DEFAULT_wxUSE_LISTBOX=no
6470 DEFAULT_wxUSE_LISTCTRL=no
6471 DEFAULT_wxUSE_NOTEBOOK=no
6472 DEFAULT_wxUSE_RADIOBOX=no
6473 DEFAULT_wxUSE_RADIOBTN=no
6474 DEFAULT_wxUSE_SASH=no
6475 DEFAULT_wxUSE_SCROLLBAR=no
6476 DEFAULT_wxUSE_SLIDER=no
6477 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6478 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6479 DEFAULT_wxUSE_SPLITTER=no
6480 DEFAULT_wxUSE_STATBMP=no
6481 DEFAULT_wxUSE_STATBOX=no
6482 DEFAULT_wxUSE_STATLINE=no
6483 DEFAULT_wxUSE_STATUSBAR=no
6484 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6485 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6486 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6487 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6488 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6489 DEFAULT_wxUSE_TOOLTIPS=no
6490 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6491 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6492 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6493fi
6494
ac0c4cc3
DE
6495## FIXME: This is a blatant hack
6496if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6497 wxUSE_PRINTING_ARCHITECTURE=no
6498 wxUSE_HELP=no
6499 wxUSE_CLIPBOARD=no
6500 wxUSE_DRAG_AND_DROP=no
6501 wxUSE_DATAOBJ=no
8b389fab
DE
6502 # Generic notebook requires tab dialog
6503 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6504 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
6505 DEFAULT_wxUSE_GAUGE=no
6506 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3
DE
6507 DEFAULT_wxUSE_COMBOBOX=no
6508 DEFAULT_wxUSE_CALCTRL=no
6509 DEFAULT_wxUSE_SPINBTN=no
6510 DEFAULT_wxUSE_SPINCTRL=no
6511 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
6512 DEFAULT_wxUSE_DRAGIMAGE=no
6513 DEFAULT_wxUSE_FINDREPLDLG=no
6514 DEFAULT_wxUSE_FONTDLG=no
6515 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
6516 DEFAULT_wxUSE_NUMBERDLG=no
6517 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
6518 DEFAULT_wxUSE_SASH=no
6519 DEFAULT_wxUSE_SPLITTER=no
6520 DEFAULT_wxUSE_WIZARDDLG=no
6521 DEFAULT_wxUSE_SPLITTER=no
6522 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
6523fi
6524
8284b0c5 6525
5005acfe 6526 enablestring=
e6cc62c6
VS
6527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6528echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6529 no_cache=0
6530 # Check whether --enable-accel or --disable-accel was given.
6531if test "${enable_accel+set}" = set; then
6532 enableval="$enable_accel"
e6cc62c6 6533
10f2d63a
VZ
6534 if test "$enableval" = yes; then
6535 ac_cv_use_accel='wxUSE_ACCEL=yes'
6536 else
6537 ac_cv_use_accel='wxUSE_ACCEL=no'
6538 fi
e6cc62c6 6539
10f2d63a 6540else
e6cc62c6 6541
10f2d63a
VZ
6542 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 else
6546 no_cache=1
6547 fi
6548
6549 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6550
e6cc62c6 6551fi;
10f2d63a
VZ
6552
6553 eval "$ac_cv_use_accel"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6559 echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6
10f2d63a 6561 else
e6cc62c6
VS
6562 echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
10f2d63a 6564 fi
e6cc62c6 6565
10f2d63a 6566
5005acfe 6567 enablestring=
e6cc62c6
VS
6568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6569echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6570 no_cache=0
1e6feb95
VZ
6571 # Check whether --enable-button or --disable-button was given.
6572if test "${enable_button+set}" = set; then
6573 enableval="$enable_button"
e6cc62c6 6574
10f2d63a 6575 if test "$enableval" = yes; then
1e6feb95 6576 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6577 else
1e6feb95 6578 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6579 fi
e6cc62c6 6580
10f2d63a 6581else
e6cc62c6 6582
1e6feb95 6583 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
1e6feb95 6590 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6591
e6cc62c6 6592fi;
10f2d63a 6593
1e6feb95 6594 eval "$ac_cv_use_button"
10f2d63a 6595 if test "$no_cache" != 1; then
1e6feb95 6596 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6597 fi
6598
1e6feb95 6599 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6600 echo "$as_me:$LINENO: result: yes" >&5
6601echo "${ECHO_T}yes" >&6
10f2d63a 6602 else
e6cc62c6
VS
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
10f2d63a 6605 fi
e6cc62c6 6606
10f2d63a 6607
5005acfe 6608 enablestring=
e6cc62c6
VS
6609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6610echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6611 no_cache=0
6612 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6613if test "${enable_bmpbutton+set}" = set; then
6614 enableval="$enable_bmpbutton"
e6cc62c6 6615
10f2d63a
VZ
6616 if test "$enableval" = yes; then
6617 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6618 else
6619 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6620 fi
e6cc62c6 6621
10f2d63a 6622else
e6cc62c6 6623
10f2d63a
VZ
6624 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6632
e6cc62c6 6633fi;
10f2d63a
VZ
6634
6635 eval "$ac_cv_use_bmpbutton"
6636 if test "$no_cache" != 1; then
6637 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6638 fi
6639
6640 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6641 echo "$as_me:$LINENO: result: yes" >&5
6642echo "${ECHO_T}yes" >&6
10f2d63a 6643 else
e6cc62c6
VS
6644 echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6
10f2d63a 6646 fi
e6cc62c6 6647
10f2d63a 6648
5005acfe 6649 enablestring=
e6cc62c6
VS
6650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6651echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6652 no_cache=0
6653 # Check whether --enable-calendar or --disable-calendar was given.
6654if test "${enable_calendar+set}" = set; then
6655 enableval="$enable_calendar"
e6cc62c6 6656
1e6feb95
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6659 else
6660 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6661 fi
e6cc62c6 6662
1e6feb95 6663else
e6cc62c6 6664
1e6feb95
VZ
6665 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6673
e6cc62c6 6674fi;
1e6feb95
VZ
6675
6676 eval "$ac_cv_use_calendar"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6682 echo "$as_me:$LINENO: result: yes" >&5
6683echo "${ECHO_T}yes" >&6
1e6feb95 6684 else
e6cc62c6
VS
6685 echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6
1e6feb95 6687 fi
e6cc62c6 6688
1e6feb95 6689
5005acfe 6690 enablestring=
e6cc62c6
VS
6691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6692echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6693 no_cache=0
6694 # Check whether --enable-caret or --disable-caret was given.
6695if test "${enable_caret+set}" = set; then
6696 enableval="$enable_caret"
e6cc62c6 6697
1e6feb95
VZ
6698 if test "$enableval" = yes; then
6699 ac_cv_use_caret='wxUSE_CARET=yes'
6700 else
6701 ac_cv_use_caret='wxUSE_CARET=no'
6702 fi
e6cc62c6 6703
1e6feb95 6704else
e6cc62c6 6705
1e6feb95
VZ
6706 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6707 if test "x$LINE" != x ; then
6708 eval "DEFAULT_$LINE"
6709 else
6710 no_cache=1
6711 fi
6712
6713 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6714
e6cc62c6 6715fi;
1e6feb95
VZ
6716
6717 eval "$ac_cv_use_caret"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6723 echo "$as_me:$LINENO: result: yes" >&5
6724echo "${ECHO_T}yes" >&6
1e6feb95 6725 else
e6cc62c6
VS
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
1e6feb95 6728 fi
e6cc62c6 6729
1e6feb95 6730
5005acfe 6731 enablestring=
e6cc62c6
VS
6732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6733echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6734 no_cache=0
6735 # Check whether --enable-checkbox or --disable-checkbox was given.
6736if test "${enable_checkbox+set}" = set; then
6737 enableval="$enable_checkbox"
e6cc62c6 6738
10f2d63a
VZ
6739 if test "$enableval" = yes; then
6740 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6741 else
6742 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6743 fi
e6cc62c6 6744
10f2d63a 6745else
e6cc62c6 6746
10f2d63a
VZ
6747 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6755
e6cc62c6 6756fi;
10f2d63a
VZ
6757
6758 eval "$ac_cv_use_checkbox"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6764 echo "$as_me:$LINENO: result: yes" >&5
6765echo "${ECHO_T}yes" >&6
10f2d63a 6766 else
e6cc62c6
VS
6767 echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
10f2d63a 6769 fi
e6cc62c6 6770
10f2d63a 6771
5005acfe 6772 enablestring=
e6cc62c6
VS
6773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6774echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6775 no_cache=0
6776 # Check whether --enable-checklst or --disable-checklst was given.
6777if test "${enable_checklst+set}" = set; then
6778 enableval="$enable_checklst"
e6cc62c6 6779
10f2d63a
VZ
6780 if test "$enableval" = yes; then
6781 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6782 else
6783 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6784 fi
e6cc62c6 6785
10f2d63a 6786else
e6cc62c6 6787
10f2d63a
VZ
6788 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6796
e6cc62c6 6797fi;
10f2d63a
VZ
6798
6799 eval "$ac_cv_use_checklst"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6805 echo "$as_me:$LINENO: result: yes" >&5
6806echo "${ECHO_T}yes" >&6
10f2d63a 6807 else
e6cc62c6
VS
6808 echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6
10f2d63a 6810 fi
e6cc62c6 6811
10f2d63a 6812
5005acfe 6813 enablestring=
e6cc62c6
VS
6814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6815echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6816 no_cache=0
6817 # Check whether --enable-choice or --disable-choice was given.
6818if test "${enable_choice+set}" = set; then
6819 enableval="$enable_choice"
e6cc62c6 6820
10f2d63a
VZ
6821 if test "$enableval" = yes; then
6822 ac_cv_use_choice='wxUSE_CHOICE=yes'
6823 else
6824 ac_cv_use_choice='wxUSE_CHOICE=no'
6825 fi
e6cc62c6 6826
10f2d63a 6827else
e6cc62c6 6828
10f2d63a
VZ
6829 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6837
e6cc62c6 6838fi;
10f2d63a
VZ
6839
6840 eval "$ac_cv_use_choice"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6846 echo "$as_me:$LINENO: result: yes" >&5
6847echo "${ECHO_T}yes" >&6
10f2d63a 6848 else
e6cc62c6
VS
6849 echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6
10f2d63a 6851 fi
e6cc62c6 6852
10f2d63a 6853
5005acfe 6854 enablestring=
e6cc62c6
VS
6855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6856echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6857 no_cache=0
6858 # Check whether --enable-combobox or --disable-combobox was given.
6859if test "${enable_combobox+set}" = set; then
6860 enableval="$enable_combobox"
e6cc62c6 6861
10f2d63a
VZ
6862 if test "$enableval" = yes; then
6863 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6864 else
6865 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6866 fi
e6cc62c6 6867
10f2d63a 6868else
e6cc62c6 6869
10f2d63a
VZ
6870 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6878
e6cc62c6 6879fi;
10f2d63a
VZ
6880
6881 eval "$ac_cv_use_combobox"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6887 echo "$as_me:$LINENO: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
10f2d63a 6889 else
e6cc62c6
VS
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
10f2d63a 6892 fi
e6cc62c6 6893
10f2d63a 6894
da494b40 6895 enablestring=
e6cc62c6
VS
6896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6897echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6898 no_cache=0
6899 # Check whether --enable-display or --disable-display was given.
6900if test "${enable_display+set}" = set; then
6901 enableval="$enable_display"
e6cc62c6 6902
da494b40
MB
6903 if test "$enableval" = yes; then
6904 ac_cv_use_display='wxUSE_DISPLAY=yes'
6905 else
6906 ac_cv_use_display='wxUSE_DISPLAY=no'
6907 fi
e6cc62c6 6908
da494b40 6909else
e6cc62c6 6910
da494b40
MB
6911 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6919
e6cc62c6 6920fi;
da494b40
MB
6921
6922 eval "$ac_cv_use_display"
6923 if test "$no_cache" != 1; then
6924 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6925 fi
6926
6927 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6928 echo "$as_me:$LINENO: result: yes" >&5
6929echo "${ECHO_T}yes" >&6
da494b40 6930 else
e6cc62c6
VS
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
da494b40 6933 fi
e6cc62c6 6934
da494b40 6935
5005acfe 6936 enablestring=
e6cc62c6
VS
6937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6938echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6939 no_cache=0
6940 # Check whether --enable-gauge or --disable-gauge was given.
6941if test "${enable_gauge+set}" = set; then
6942 enableval="$enable_gauge"
e6cc62c6 6943
10f2d63a
VZ
6944 if test "$enableval" = yes; then
6945 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6946 else
6947 ac_cv_use_gauge='wxUSE_GAUGE=no'
6948 fi
e6cc62c6 6949
10f2d63a 6950else
e6cc62c6 6951
10f2d63a
VZ
6952 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6953 if test "x$LINE" != x ; then
6954 eval "DEFAULT_$LINE"
6955 else
6956 no_cache=1
6957 fi
6958
6959 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6960
e6cc62c6 6961fi;
10f2d63a
VZ
6962
6963 eval "$ac_cv_use_gauge"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
6969 echo "$as_me:$LINENO: result: yes" >&5
6970echo "${ECHO_T}yes" >&6
10f2d63a 6971 else
e6cc62c6
VS
6972 echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6
10f2d63a 6974 fi
e6cc62c6 6975
10f2d63a 6976
5005acfe 6977 enablestring=
e6cc62c6
VS
6978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
6979echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
6980 no_cache=0
6981 # Check whether --enable-grid or --disable-grid was given.
6982if test "${enable_grid+set}" = set; then
6983 enableval="$enable_grid"
e6cc62c6 6984
10f2d63a
VZ
6985 if test "$enableval" = yes; then
6986 ac_cv_use_grid='wxUSE_GRID=yes'
6987 else
6988 ac_cv_use_grid='wxUSE_GRID=no'
6989 fi
e6cc62c6 6990
10f2d63a 6991else
e6cc62c6 6992
10f2d63a
VZ
6993 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6994 if test "x$LINE" != x ; then
6995 eval "DEFAULT_$LINE"
6996 else
6997 no_cache=1
6998 fi
6999
7000 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7001
e6cc62c6 7002fi;
10f2d63a
VZ
7003
7004 eval "$ac_cv_use_grid"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7010 echo "$as_me:$LINENO: result: yes" >&5
7011echo "${ECHO_T}yes" >&6
10f2d63a 7012 else
e6cc62c6
VS
7013 echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
10f2d63a 7015 fi
e6cc62c6 7016
10f2d63a 7017
5005acfe 7018 enablestring=
e6cc62c6
VS
7019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7020echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7021 no_cache=0
7022 # Check whether --enable-imaglist or --disable-imaglist was given.
7023if test "${enable_imaglist+set}" = set; then
7024 enableval="$enable_imaglist"
e6cc62c6 7025
10f2d63a
VZ
7026 if test "$enableval" = yes; then
7027 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7028 else
7029 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7030 fi
e6cc62c6 7031
10f2d63a 7032else
e6cc62c6 7033
10f2d63a
VZ
7034 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7035 if test "x$LINE" != x ; then
7036 eval "DEFAULT_$LINE"
7037 else
7038 no_cache=1
7039 fi
7040
7041 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7042
e6cc62c6 7043fi;
10f2d63a
VZ
7044
7045 eval "$ac_cv_use_imaglist"
7046 if test "$no_cache" != 1; then
7047 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7048 fi
7049
7050 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7051 echo "$as_me:$LINENO: result: yes" >&5
7052echo "${ECHO_T}yes" >&6
10f2d63a 7053 else
e6cc62c6
VS
7054 echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6
10f2d63a 7056 fi
e6cc62c6 7057
10f2d63a 7058
5005acfe 7059 enablestring=
e6cc62c6
VS
7060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7061echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7062 no_cache=0
7063 # Check whether --enable-listbox or --disable-listbox was given.
7064if test "${enable_listbox+set}" = set; then
7065 enableval="$enable_listbox"
e6cc62c6 7066
10f2d63a
VZ
7067 if test "$enableval" = yes; then
7068 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7069 else
7070 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7071 fi
e6cc62c6 7072
10f2d63a 7073else
e6cc62c6 7074
10f2d63a
VZ
7075 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7076 if test "x$LINE" != x ; then
7077 eval "DEFAULT_$LINE"
7078 else
7079 no_cache=1
7080 fi
7081
7082 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7083
e6cc62c6 7084fi;
10f2d63a
VZ
7085
7086 eval "$ac_cv_use_listbox"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7092 echo "$as_me:$LINENO: result: yes" >&5
7093echo "${ECHO_T}yes" >&6
10f2d63a 7094 else
e6cc62c6
VS
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
10f2d63a 7097 fi
e6cc62c6 7098
10f2d63a 7099
5005acfe 7100 enablestring=
e6cc62c6
VS
7101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7102echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7103 no_cache=0
7104 # Check whether --enable-listctrl or --disable-listctrl was given.
7105if test "${enable_listctrl+set}" = set; then
7106 enableval="$enable_listctrl"
e6cc62c6 7107
10f2d63a
VZ
7108 if test "$enableval" = yes; then
7109 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7110 else
7111 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7112 fi
e6cc62c6 7113
10f2d63a 7114else
e6cc62c6 7115
10f2d63a
VZ
7116 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7124
e6cc62c6 7125fi;
10f2d63a
VZ
7126
7127 eval "$ac_cv_use_listctrl"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7133 echo "$as_me:$LINENO: result: yes" >&5
7134echo "${ECHO_T}yes" >&6
10f2d63a 7135 else
e6cc62c6
VS
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
10f2d63a 7138 fi
e6cc62c6 7139
10f2d63a 7140
5005acfe 7141 enablestring=
e6cc62c6
VS
7142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7143echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7144 no_cache=0
7145 # Check whether --enable-notebook or --disable-notebook was given.
7146if test "${enable_notebook+set}" = set; then
7147 enableval="$enable_notebook"
e6cc62c6 7148
10f2d63a
VZ
7149 if test "$enableval" = yes; then
7150 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7151 else
7152 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7153 fi
e6cc62c6 7154
10f2d63a 7155else
e6cc62c6 7156
10f2d63a
VZ
7157 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7165
e6cc62c6 7166fi;
10f2d63a
VZ
7167
7168 eval "$ac_cv_use_notebook"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
10f2d63a 7176 else
e6cc62c6
VS
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
10f2d63a 7179 fi
e6cc62c6 7180
10f2d63a 7181
5005acfe 7182 enablestring=
e6cc62c6
VS
7183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7184echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7185 no_cache=0
7186 # Check whether --enable-radiobox or --disable-radiobox was given.
7187if test "${enable_radiobox+set}" = set; then
7188 enableval="$enable_radiobox"
e6cc62c6 7189
10f2d63a
VZ
7190 if test "$enableval" = yes; then
7191 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7192 else
7193 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7194 fi
e6cc62c6 7195
10f2d63a 7196else
e6cc62c6 7197
10f2d63a
VZ
7198 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7199 if test "x$LINE" != x ; then
7200 eval "DEFAULT_$LINE"
7201 else
7202 no_cache=1
7203 fi
7204
7205 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7206
e6cc62c6 7207fi;
10f2d63a
VZ
7208
7209 eval "$ac_cv_use_radiobox"
7210 if test "$no_cache" != 1; then
7211 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7212 fi
7213
7214 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7215 echo "$as_me:$LINENO: result: yes" >&5
7216echo "${ECHO_T}yes" >&6
10f2d63a 7217 else
e6cc62c6
VS
7218 echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
10f2d63a 7220 fi
e6cc62c6 7221
10f2d63a 7222
5005acfe 7223 enablestring=
e6cc62c6
VS
7224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7225echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7226 no_cache=0
7227 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7228if test "${enable_radiobtn+set}" = set; then
7229 enableval="$enable_radiobtn"
e6cc62c6 7230
10f2d63a
VZ
7231 if test "$enableval" = yes; then
7232 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7233 else
7234 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7235 fi
e6cc62c6 7236
10f2d63a 7237else
e6cc62c6 7238
10f2d63a
VZ
7239 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7240 if test "x$LINE" != x ; then
7241 eval "DEFAULT_$LINE"
7242 else
7243 no_cache=1
7244 fi
7245
7246 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7247
e6cc62c6 7248fi;
10f2d63a
VZ
7249
7250 eval "$ac_cv_use_radiobtn"
7251 if test "$no_cache" != 1; then
7252 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7253 fi
7254
7255 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7256 echo "$as_me:$LINENO: result: yes" >&5
7257echo "${ECHO_T}yes" >&6
10f2d63a 7258 else
e6cc62c6
VS
7259 echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6
10f2d63a 7261 fi
e6cc62c6 7262
10f2d63a 7263
5005acfe 7264 enablestring=
e6cc62c6
VS
7265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7266echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7267 no_cache=0
7268 # Check whether --enable-sash or --disable-sash was given.
7269if test "${enable_sash+set}" = set; then
7270 enableval="$enable_sash"
e6cc62c6 7271
10f2d63a
VZ
7272 if test "$enableval" = yes; then
7273 ac_cv_use_sash='wxUSE_SASH=yes'
7274 else
7275 ac_cv_use_sash='wxUSE_SASH=no'
7276 fi
e6cc62c6 7277
10f2d63a 7278else
e6cc62c6 7279
10f2d63a
VZ
7280 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7281 if test "x$LINE" != x ; then
7282 eval "DEFAULT_$LINE"
7283 else
7284 no_cache=1
7285 fi
7286
7287 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7288
e6cc62c6 7289fi;
10f2d63a
VZ
7290
7291 eval "$ac_cv_use_sash"
7292 if test "$no_cache" != 1; then
7293 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7294 fi
7295
7296 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7297 echo "$as_me:$LINENO: result: yes" >&5
7298echo "${ECHO_T}yes" >&6
10f2d63a 7299 else
e6cc62c6
VS
7300 echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6
10f2d63a 7302 fi
e6cc62c6 7303
10f2d63a 7304
5005acfe 7305 enablestring=
e6cc62c6
VS
7306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7307echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7308 no_cache=0
7309 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7310if test "${enable_scrollbar+set}" = set; then
7311 enableval="$enable_scrollbar"
e6cc62c6 7312
10f2d63a
VZ
7313 if test "$enableval" = yes; then
7314 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7315 else
7316 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7317 fi
e6cc62c6 7318
10f2d63a 7319else
e6cc62c6 7320
10f2d63a
VZ
7321 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7322 if test "x$LINE" != x ; then
7323 eval "DEFAULT_$LINE"
7324 else
7325 no_cache=1
7326 fi
7327
7328 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7329
e6cc62c6 7330fi;
10f2d63a
VZ
7331
7332 eval "$ac_cv_use_scrollbar"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
10f2d63a 7340 else
e6cc62c6
VS
7341 echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6
10f2d63a 7343 fi
e6cc62c6 7344
10f2d63a 7345
5005acfe 7346 enablestring=
e6cc62c6
VS
7347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7348echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7349 no_cache=0
7350 # Check whether --enable-slider or --disable-slider was given.
7351if test "${enable_slider+set}" = set; then
7352 enableval="$enable_slider"
e6cc62c6 7353
10f2d63a
VZ
7354 if test "$enableval" = yes; then
7355 ac_cv_use_slider='wxUSE_SLIDER=yes'
7356 else
7357 ac_cv_use_slider='wxUSE_SLIDER=no'
7358 fi
e6cc62c6 7359
10f2d63a 7360else
e6cc62c6 7361
10f2d63a
VZ
7362 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7363 if test "x$LINE" != x ; then
7364 eval "DEFAULT_$LINE"
7365 else
7366 no_cache=1
7367 fi
7368
7369 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7370
e6cc62c6 7371fi;
10f2d63a
VZ
7372
7373 eval "$ac_cv_use_slider"
7374 if test "$no_cache" != 1; then
7375 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7376 fi
7377
7378 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7379 echo "$as_me:$LINENO: result: yes" >&5
7380echo "${ECHO_T}yes" >&6
10f2d63a 7381 else
e6cc62c6
VS
7382 echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6
10f2d63a 7384 fi
e6cc62c6 7385
10f2d63a 7386
5005acfe 7387 enablestring=
e6cc62c6
VS
7388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7389echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7390 no_cache=0
7391 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7392if test "${enable_spinbtn+set}" = set; then
7393 enableval="$enable_spinbtn"
e6cc62c6 7394
10f2d63a
VZ
7395 if test "$enableval" = yes; then
7396 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7397 else
7398 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7399 fi
e6cc62c6 7400
10f2d63a 7401else
e6cc62c6 7402
10f2d63a
VZ
7403 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7404 if test "x$LINE" != x ; then
7405 eval "DEFAULT_$LINE"
7406 else
7407 no_cache=1
7408 fi
7409
7410 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7411
e6cc62c6 7412fi;
10f2d63a
VZ
7413
7414 eval "$ac_cv_use_spinbtn"
7415 if test "$no_cache" != 1; then
7416 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7417 fi
7418
7419 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7420 echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6
10f2d63a 7422 else
e6cc62c6
VS
7423 echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
10f2d63a 7425 fi
e6cc62c6 7426
10f2d63a 7427
5005acfe 7428 enablestring=
e6cc62c6
VS
7429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7430echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7431 no_cache=0
7432 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7433if test "${enable_spinctrl+set}" = set; then
7434 enableval="$enable_spinctrl"
e6cc62c6 7435
56cfaa52
RR
7436 if test "$enableval" = yes; then
7437 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7438 else
7439 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7440 fi
e6cc62c6 7441
56cfaa52 7442else
e6cc62c6 7443
56cfaa52
RR
7444 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7452
e6cc62c6 7453fi;
56cfaa52
RR
7454
7455 eval "$ac_cv_use_spinctrl"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7461 echo "$as_me:$LINENO: result: yes" >&5
7462echo "${ECHO_T}yes" >&6
56cfaa52 7463 else
e6cc62c6
VS
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
56cfaa52 7466 fi
e6cc62c6 7467
56cfaa52 7468
5005acfe 7469 enablestring=
e6cc62c6
VS
7470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7471echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7472 no_cache=0
7473 # Check whether --enable-splitter or --disable-splitter was given.
7474if test "${enable_splitter+set}" = set; then
7475 enableval="$enable_splitter"
e6cc62c6 7476
10f2d63a
VZ
7477 if test "$enableval" = yes; then
7478 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7479 else
7480 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7481 fi
e6cc62c6 7482
10f2d63a 7483else
e6cc62c6 7484
10f2d63a
VZ
7485 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7493
e6cc62c6 7494fi;
10f2d63a
VZ
7495
7496 eval "$ac_cv_use_splitter"
7497 if test "$no_cache" != 1; then
7498 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7499 fi
7500
7501 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7502 echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
10f2d63a 7504 else
e6cc62c6
VS
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
10f2d63a 7507 fi
e6cc62c6 7508
10f2d63a 7509
5005acfe 7510 enablestring=
e6cc62c6
VS
7511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7512echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7513 no_cache=0
7514 # Check whether --enable-statbmp or --disable-statbmp was given.
7515if test "${enable_statbmp+set}" = set; then
7516 enableval="$enable_statbmp"
e6cc62c6 7517
10f2d63a
VZ
7518 if test "$enableval" = yes; then
7519 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7520 else
7521 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7522 fi
e6cc62c6 7523
10f2d63a 7524else
e6cc62c6 7525
10f2d63a
VZ
7526 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7534
e6cc62c6 7535fi;
10f2d63a
VZ
7536
7537 eval "$ac_cv_use_statbmp"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7543 echo "$as_me:$LINENO: result: yes" >&5
7544echo "${ECHO_T}yes" >&6
10f2d63a 7545 else
e6cc62c6
VS
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
10f2d63a 7548 fi
e6cc62c6 7549
10f2d63a 7550
5005acfe 7551 enablestring=
e6cc62c6
VS
7552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7553echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7554 no_cache=0
7555 # Check whether --enable-statbox or --disable-statbox was given.
7556if test "${enable_statbox+set}" = set; then
7557 enableval="$enable_statbox"
e6cc62c6 7558
10f2d63a
VZ
7559 if test "$enableval" = yes; then
7560 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7561 else
7562 ac_cv_use_statbox='wxUSE_STATBOX=no'
7563 fi
e6cc62c6 7564
10f2d63a 7565else
e6cc62c6 7566
10f2d63a
VZ
7567 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7575
e6cc62c6 7576fi;
10f2d63a
VZ
7577
7578 eval "$ac_cv_use_statbox"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7584 echo "$as_me:$LINENO: result: yes" >&5
7585echo "${ECHO_T}yes" >&6
10f2d63a 7586 else
e6cc62c6
VS
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
10f2d63a 7589 fi
e6cc62c6 7590
10f2d63a 7591
5005acfe 7592 enablestring=
e6cc62c6
VS
7593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7594echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7595 no_cache=0
7596 # Check whether --enable-statline or --disable-statline was given.
7597if test "${enable_statline+set}" = set; then
7598 enableval="$enable_statline"
e6cc62c6 7599
10f2d63a
VZ
7600 if test "$enableval" = yes; then
7601 ac_cv_use_statline='wxUSE_STATLINE=yes'
7602 else
7603 ac_cv_use_statline='wxUSE_STATLINE=no'
7604 fi
e6cc62c6 7605
10f2d63a 7606else
e6cc62c6 7607
10f2d63a
VZ
7608 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7616
e6cc62c6 7617fi;
10f2d63a
VZ
7618
7619 eval "$ac_cv_use_statline"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7625 echo "$as_me:$LINENO: result: yes" >&5
7626echo "${ECHO_T}yes" >&6
10f2d63a 7627 else
e6cc62c6
VS
7628 echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6
10f2d63a 7630 fi
e6cc62c6 7631
10f2d63a 7632
5005acfe 7633 enablestring=
e6cc62c6
VS
7634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7635echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7636 no_cache=0
7637 # Check whether --enable-stattext or --disable-stattext was given.
7638if test "${enable_stattext+set}" = set; then
7639 enableval="$enable_stattext"
e6cc62c6 7640
1e6feb95
VZ
7641 if test "$enableval" = yes; then
7642 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7643 else
7644 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7645 fi
e6cc62c6 7646
1e6feb95 7647else
e6cc62c6 7648
1e6feb95
VZ
7649 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7657
e6cc62c6 7658fi;
1e6feb95
VZ
7659
7660 eval "$ac_cv_use_stattext"
7661 if test "$no_cache" != 1; then
7662 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7663 fi
7664
7665 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7666 echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6
1e6feb95 7668 else
e6cc62c6
VS
7669 echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
1e6feb95 7671 fi
e6cc62c6 7672
1e6feb95 7673
5005acfe 7674 enablestring=
e6cc62c6
VS
7675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7676echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7677 no_cache=0
7678 # Check whether --enable-statusbar or --disable-statusbar was given.
7679if test "${enable_statusbar+set}" = set; then
7680 enableval="$enable_statusbar"
e6cc62c6 7681
10f2d63a
VZ
7682 if test "$enableval" = yes; then
7683 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7684 else
7685 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7686 fi
e6cc62c6 7687
10f2d63a 7688else
e6cc62c6 7689
10f2d63a
VZ
7690 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7698
e6cc62c6 7699fi;
10f2d63a
VZ
7700
7701 eval "$ac_cv_use_statusbar"
7702 if test "$no_cache" != 1; then
7703 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7704 fi
7705
7706 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7707 echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6
10f2d63a 7709 else
e6cc62c6
VS
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
10f2d63a 7712 fi
e6cc62c6 7713
10f2d63a 7714
5005acfe 7715 enablestring=
e6cc62c6
VS
7716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7717echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7718 no_cache=0
7719 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7720if test "${enable_tabdialog+set}" = set; then
7721 enableval="$enable_tabdialog"
e6cc62c6 7722
10f2d63a
VZ
7723 if test "$enableval" = yes; then
7724 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7725 else
7726 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7727 fi
e6cc62c6 7728
10f2d63a 7729else
e6cc62c6 7730
10f2d63a
VZ
7731 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7732 if test "x$LINE" != x ; then
7733 eval "DEFAULT_$LINE"
7734 else
7735 no_cache=1
7736 fi
7737
7738 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7739
e6cc62c6 7740fi;
10f2d63a
VZ
7741
7742 eval "$ac_cv_use_tabdialog"
7743 if test "$no_cache" != 1; then
7744 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7745 fi
7746
7747 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7748 echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6
10f2d63a 7750 else
e6cc62c6
VS
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
10f2d63a 7753 fi
e6cc62c6 7754
10f2d63a 7755
5005acfe 7756 enablestring=
e6cc62c6
VS
7757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7758echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7759 no_cache=0
7760 # Check whether --enable-textctrl or --disable-textctrl was given.
7761if test "${enable_textctrl+set}" = set; then
7762 enableval="$enable_textctrl"
e6cc62c6 7763
1e6feb95
VZ
7764 if test "$enableval" = yes; then
7765 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7766 else
7767 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7768 fi
e6cc62c6 7769
1e6feb95 7770else
e6cc62c6 7771
1e6feb95
VZ
7772 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7773 if test "x$LINE" != x ; then
7774 eval "DEFAULT_$LINE"
7775 else
7776 no_cache=1
7777 fi
7778
7779 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7780
e6cc62c6 7781fi;
1e6feb95
VZ
7782
7783 eval "$ac_cv_use_textctrl"
7784 if test "$no_cache" != 1; then
7785 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7786 fi
7787
7788 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7789 echo "$as_me:$LINENO: result: yes" >&5
7790echo "${ECHO_T}yes" >&6
1e6feb95 7791 else
e6cc62c6
VS
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
1e6feb95 7794 fi
e6cc62c6 7795
1e6feb95 7796
5005acfe 7797 enablestring=
e6cc62c6
VS
7798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7799echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7800 no_cache=0
7801 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7802if test "${enable_togglebtn+set}" = set; then
7803 enableval="$enable_togglebtn"
e6cc62c6 7804
1db8dc4a
VZ
7805 if test "$enableval" = yes; then
7806 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7807 else
7808 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7809 fi
e6cc62c6 7810
1db8dc4a 7811else
e6cc62c6 7812
1db8dc4a
VZ
7813 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7821
e6cc62c6 7822fi;
1db8dc4a
VZ
7823
7824 eval "$ac_cv_use_togglebtn"
7825 if test "$no_cache" != 1; then
7826 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7827 fi
7828
7829 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7830 echo "$as_me:$LINENO: result: yes" >&5
7831echo "${ECHO_T}yes" >&6
1db8dc4a 7832 else
e6cc62c6
VS
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
1db8dc4a 7835 fi
e6cc62c6 7836
1db8dc4a 7837
5005acfe 7838 enablestring=
e6cc62c6
VS
7839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7840echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7841 no_cache=0
7842 # Check whether --enable-toolbar or --disable-toolbar was given.
7843if test "${enable_toolbar+set}" = set; then
7844 enableval="$enable_toolbar"
e6cc62c6 7845
10f2d63a
VZ
7846 if test "$enableval" = yes; then
7847 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7848 else
7849 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7850 fi
e6cc62c6 7851
10f2d63a 7852else
e6cc62c6 7853
10f2d63a
VZ
7854 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7862
e6cc62c6 7863fi;
10f2d63a
VZ
7864
7865 eval "$ac_cv_use_toolbar"
7866 if test "$no_cache" != 1; then
7867 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7868 fi
7869
7870 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7871 echo "$as_me:$LINENO: result: yes" >&5
7872echo "${ECHO_T}yes" >&6
10f2d63a 7873 else
e6cc62c6
VS
7874 echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6
10f2d63a 7876 fi
e6cc62c6 7877
10f2d63a 7878
5005acfe 7879 enablestring=
e6cc62c6
VS
7880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7881echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7882 no_cache=0
7883 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7884if test "${enable_tbarnative+set}" = set; then
7885 enableval="$enable_tbarnative"
e6cc62c6 7886
360d6699
VZ
7887 if test "$enableval" = yes; then
7888 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7889 else
7890 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7891 fi
e6cc62c6 7892
360d6699 7893else
e6cc62c6 7894
360d6699
VZ
7895 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7903
e6cc62c6 7904fi;
360d6699
VZ
7905
7906 eval "$ac_cv_use_tbarnative"
7907 if test "$no_cache" != 1; then
7908 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7909 fi
7910
7911 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7912 echo "$as_me:$LINENO: result: yes" >&5
7913echo "${ECHO_T}yes" >&6
360d6699 7914 else
e6cc62c6
VS
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
360d6699 7917 fi
e6cc62c6 7918
360d6699 7919
5005acfe 7920 enablestring=
e6cc62c6
VS
7921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7922echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7923 no_cache=0
7924 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7925if test "${enable_tbarsmpl+set}" = set; then
7926 enableval="$enable_tbarsmpl"
e6cc62c6 7927
360d6699
VZ
7928 if test "$enableval" = yes; then
7929 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7930 else
7931 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7932 fi
e6cc62c6 7933
360d6699 7934else
e6cc62c6 7935
360d6699
VZ
7936 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7944
e6cc62c6 7945fi;
360d6699
VZ
7946
7947 eval "$ac_cv_use_tbarsmpl"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7953 echo "$as_me:$LINENO: result: yes" >&5
7954echo "${ECHO_T}yes" >&6
360d6699 7955 else
e6cc62c6
VS
7956 echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
360d6699 7958 fi
e6cc62c6 7959
360d6699 7960
5005acfe 7961 enablestring=
e6cc62c6
VS
7962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7963echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7964 no_cache=0
7965 # Check whether --enable-treectrl or --disable-treectrl was given.
7966if test "${enable_treectrl+set}" = set; then
7967 enableval="$enable_treectrl"
e6cc62c6 7968
10f2d63a
VZ
7969 if test "$enableval" = yes; then
7970 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7971 else
7972 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7973 fi
e6cc62c6 7974
10f2d63a 7975else
e6cc62c6 7976
10f2d63a
VZ
7977 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7985
e6cc62c6 7986fi;
10f2d63a 7987
1e6feb95
VZ
7988 eval "$ac_cv_use_treectrl"
7989 if test "$no_cache" != 1; then
7990 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7991 fi
7992
7993 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
1e6feb95 7996 else
e6cc62c6
VS
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
1e6feb95 7999 fi
e6cc62c6 8000
1e6feb95 8001
5005acfe 8002 enablestring=
e6cc62c6
VS
8003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8004echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8005 no_cache=0
8006 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8007if test "${enable_tipwindow+set}" = set; then
8008 enableval="$enable_tipwindow"
e6cc62c6 8009
9926e4a4
VZ
8010 if test "$enableval" = yes; then
8011 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8012 else
8013 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8014 fi
e6cc62c6 8015
9926e4a4 8016else
e6cc62c6 8017
9926e4a4
VZ
8018 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8019 if test "x$LINE" != x ; then
8020 eval "DEFAULT_$LINE"
8021 else
8022 no_cache=1
8023 fi
8024
8025 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8026
e6cc62c6 8027fi;
9926e4a4
VZ
8028
8029 eval "$ac_cv_use_tipwindow"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8035 echo "$as_me:$LINENO: result: yes" >&5
8036echo "${ECHO_T}yes" >&6
9926e4a4 8037 else
e6cc62c6
VS
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
9926e4a4 8040 fi
e6cc62c6 8041
9926e4a4 8042
5005acfe 8043 enablestring=
e6cc62c6
VS
8044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8045echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8046 no_cache=0
8047 # Check whether --enable-popupwin or --disable-popupwin was given.
8048if test "${enable_popupwin+set}" = set; then
8049 enableval="$enable_popupwin"
e6cc62c6 8050
9f41d601
RR
8051 if test "$enableval" = yes; then
8052 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8053 else
8054 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8055 fi
e6cc62c6 8056
9f41d601 8057else
e6cc62c6 8058
9f41d601
RR
8059 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8060 if test "x$LINE" != x ; then
8061 eval "DEFAULT_$LINE"
8062 else
8063 no_cache=1
8064 fi
8065
8066 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8067
e6cc62c6 8068fi;
9f41d601
RR
8069
8070 eval "$ac_cv_use_popupwin"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8076 echo "$as_me:$LINENO: result: yes" >&5
8077echo "${ECHO_T}yes" >&6
9f41d601 8078 else
e6cc62c6
VS
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
9f41d601 8081 fi
e6cc62c6 8082
52127426 8083
8284b0c5
MB
8084
8085
5005acfe 8086 enablestring=
e6cc62c6
VS
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8089 no_cache=0
8090 # Check whether --enable-commondlg or --disable-commondlg was given.
8091if test "${enable_commondlg+set}" = set; then
8092 enableval="$enable_commondlg"
e6cc62c6 8093
1e6feb95
VZ
8094 if test "$enableval" = yes; then
8095 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8096 else
8097 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8098 fi
e6cc62c6 8099
1e6feb95 8100else
e6cc62c6 8101
1e6feb95
VZ
8102 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8110
e6cc62c6 8111fi;
1e6feb95
VZ
8112
8113 eval "$ac_cv_use_commondlg"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
1e6feb95 8121 else
e6cc62c6
VS
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
1e6feb95 8124 fi
e6cc62c6 8125
1e6feb95 8126
5005acfe 8127 enablestring=
e6cc62c6
VS
8128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8129echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8130 no_cache=0
8131 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8132if test "${enable_choicedlg+set}" = set; then
8133 enableval="$enable_choicedlg"
e6cc62c6 8134
1e6feb95
VZ
8135 if test "$enableval" = yes; then
8136 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8137 else
8138 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8139 fi
e6cc62c6 8140
1e6feb95 8141else
e6cc62c6 8142
1e6feb95
VZ
8143 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8144 if test "x$LINE" != x ; then
8145 eval "DEFAULT_$LINE"
8146 else
8147 no_cache=1
8148 fi
8149
8150 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8151
e6cc62c6 8152fi;
1e6feb95
VZ
8153
8154 eval "$ac_cv_use_choicedlg"
8155 if test "$no_cache" != 1; then
8156 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8157 fi
8158
8159 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
1e6feb95 8162 else
e6cc62c6
VS
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
1e6feb95 8165 fi
e6cc62c6 8166
1e6feb95 8167
5005acfe 8168 enablestring=
e6cc62c6
VS
8169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8170echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8171 no_cache=0
8172 # Check whether --enable-coldlg or --disable-coldlg was given.
8173if test "${enable_coldlg+set}" = set; then
8174 enableval="$enable_coldlg"
e6cc62c6 8175
1e6feb95
VZ
8176 if test "$enableval" = yes; then
8177 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8178 else
8179 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8180 fi
e6cc62c6 8181
1e6feb95 8182else
e6cc62c6 8183
1e6feb95
VZ
8184 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8185 if test "x$LINE" != x ; then
8186 eval "DEFAULT_$LINE"
8187 else
8188 no_cache=1
8189 fi
8190
8191 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8192
e6cc62c6 8193fi;
1e6feb95
VZ
8194
8195 eval "$ac_cv_use_coldlg"
8196 if test "$no_cache" != 1; then
8197 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8198 fi
8199
8200 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
1e6feb95 8203 else
e6cc62c6
VS
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
1e6feb95 8206 fi
e6cc62c6 8207
1e6feb95 8208
5005acfe 8209 enablestring=
e6cc62c6
VS
8210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8211echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8212 no_cache=0
8213 # Check whether --enable-filedlg or --disable-filedlg was given.
8214if test "${enable_filedlg+set}" = set; then
8215 enableval="$enable_filedlg"
e6cc62c6 8216
1e6feb95
VZ
8217 if test "$enableval" = yes; then
8218 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8219 else
8220 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8221 fi
e6cc62c6 8222
1e6feb95 8223else
e6cc62c6 8224
1e6feb95
VZ
8225 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8226 if test "x$LINE" != x ; then
8227 eval "DEFAULT_$LINE"
8228 else
8229 no_cache=1
8230 fi
8231
8232 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8233
e6cc62c6 8234fi;
1e6feb95
VZ
8235
8236 eval "$ac_cv_use_filedlg"
8237 if test "$no_cache" != 1; then
8238 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8239 fi
8240
8241 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8242 echo "$as_me:$LINENO: result: yes" >&5
8243echo "${ECHO_T}yes" >&6
1e6feb95 8244 else
e6cc62c6
VS
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
1e6feb95 8247 fi
e6cc62c6 8248
1e6feb95 8249
5005acfe 8250 enablestring=
e6cc62c6
VS
8251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8252echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8253 no_cache=0
69d27ff7
MB
8254 # Check whether --enable-finddlg or --disable-finddlg was given.
8255if test "${enable_finddlg+set}" = set; then
8256 enableval="$enable_finddlg"
e6cc62c6 8257
8db37e06 8258 if test "$enableval" = yes; then
69d27ff7 8259 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8260 else
69d27ff7 8261 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8262 fi
e6cc62c6 8263
8db37e06 8264else
e6cc62c6 8265
8db37e06
VZ
8266 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8267 if test "x$LINE" != x ; then
8268 eval "DEFAULT_$LINE"
8269 else
8270 no_cache=1
8271 fi
8272
69d27ff7 8273 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8274
e6cc62c6 8275fi;
8db37e06 8276
69d27ff7 8277 eval "$ac_cv_use_finddlg"
8db37e06 8278 if test "$no_cache" != 1; then
69d27ff7 8279 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8280 fi
8281
8282 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8283 echo "$as_me:$LINENO: result: yes" >&5
8284echo "${ECHO_T}yes" >&6
8db37e06 8285 else
e6cc62c6
VS
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
8db37e06 8288 fi
e6cc62c6 8289
8db37e06 8290
5005acfe 8291 enablestring=
e6cc62c6
VS
8292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8293echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8294 no_cache=0
8295 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8296if test "${enable_fontdlg+set}" = set; then
8297 enableval="$enable_fontdlg"
e6cc62c6 8298
1e6feb95
VZ
8299 if test "$enableval" = yes; then
8300 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8301 else
8302 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8303 fi
e6cc62c6 8304
1e6feb95 8305else
e6cc62c6 8306
1e6feb95
VZ
8307 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8308 if test "x$LINE" != x ; then
8309 eval "DEFAULT_$LINE"
8310 else
8311 no_cache=1
8312 fi
8313
8314 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8315
e6cc62c6 8316fi;
1e6feb95
VZ
8317
8318 eval "$ac_cv_use_fontdlg"
8319 if test "$no_cache" != 1; then
8320 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8321 fi
8322
8323 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8324 echo "$as_me:$LINENO: result: yes" >&5
8325echo "${ECHO_T}yes" >&6
1e6feb95 8326 else
e6cc62c6
VS
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
1e6feb95 8329 fi
e6cc62c6 8330
1e6feb95 8331
5005acfe 8332 enablestring=
e6cc62c6
VS
8333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8334echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8335 no_cache=0
8336 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8337if test "${enable_dirdlg+set}" = set; then
8338 enableval="$enable_dirdlg"
e6cc62c6 8339
1e6feb95
VZ
8340 if test "$enableval" = yes; then
8341 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8342 else
8343 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8344 fi
e6cc62c6 8345
1e6feb95 8346else
e6cc62c6 8347
1e6feb95
VZ
8348 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8356
e6cc62c6 8357fi;
1e6feb95
VZ
8358
8359 eval "$ac_cv_use_dirdlg"
10f2d63a 8360 if test "$no_cache" != 1; then
1e6feb95 8361 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8362 fi
8363
1e6feb95 8364 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8365 echo "$as_me:$LINENO: result: yes" >&5
8366echo "${ECHO_T}yes" >&6
10f2d63a 8367 else
e6cc62c6
VS
8368 echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6
10f2d63a 8370 fi
e6cc62c6 8371
698dcdb6 8372
5005acfe 8373 enablestring=
e6cc62c6
VS
8374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8375echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8376 no_cache=0
1e6feb95
VZ
8377 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8378if test "${enable_msgdlg+set}" = set; then
8379 enableval="$enable_msgdlg"
e6cc62c6 8380
10f2d63a 8381 if test "$enableval" = yes; then
1e6feb95 8382 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8383 else
1e6feb95 8384 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8385 fi
e6cc62c6 8386
10f2d63a 8387else
e6cc62c6 8388
1e6feb95 8389 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8390 if test "x$LINE" != x ; then
8391 eval "DEFAULT_$LINE"
8392 else
8393 no_cache=1
8394 fi
8395
1e6feb95 8396 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8397
e6cc62c6 8398fi;
10f2d63a 8399
1e6feb95 8400 eval "$ac_cv_use_msgdlg"
10f2d63a 8401 if test "$no_cache" != 1; then
1e6feb95 8402 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8403 fi
8404
1e6feb95 8405 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8406 echo "$as_me:$LINENO: result: yes" >&5
8407echo "${ECHO_T}yes" >&6
10f2d63a 8408 else
e6cc62c6
VS
8409 echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6
10f2d63a 8411 fi
e6cc62c6 8412
10f2d63a 8413
5005acfe 8414 enablestring=
e6cc62c6
VS
8415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8416echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8417 no_cache=0
1e6feb95
VZ
8418 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8419if test "${enable_numberdlg+set}" = set; then
8420 enableval="$enable_numberdlg"
e6cc62c6 8421
10f2d63a 8422 if test "$enableval" = yes; then
1e6feb95 8423 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8424 else
1e6feb95 8425 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8426 fi
e6cc62c6 8427
10f2d63a 8428else
e6cc62c6 8429
1e6feb95 8430 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
1e6feb95 8437 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8438
e6cc62c6 8439fi;
10f2d63a 8440
1e6feb95 8441 eval "$ac_cv_use_numberdlg"
10f2d63a 8442 if test "$no_cache" != 1; then
1e6feb95 8443 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8444 fi
8445
1e6feb95 8446 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8447 echo "$as_me:$LINENO: result: yes" >&5
8448echo "${ECHO_T}yes" >&6
10f2d63a 8449 else
e6cc62c6
VS
8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
10f2d63a 8452 fi
e6cc62c6 8453
10f2d63a 8454
5005acfe 8455 enablestring=
e6cc62c6
VS
8456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8457echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8458 no_cache=0
8459 # Check whether --enable-splash or --disable-splash was given.
8460if test "${enable_splash+set}" = set; then
8461 enableval="$enable_splash"
e6cc62c6 8462
cbca9943
VZ
8463 if test "$enableval" = yes; then
8464 ac_cv_use_splash='wxUSE_SPLASH=yes'
8465 else
8466 ac_cv_use_splash='wxUSE_SPLASH=no'
8467 fi
e6cc62c6 8468
cbca9943 8469else
e6cc62c6 8470
cbca9943
VZ
8471 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8472 if test "x$LINE" != x ; then
8473 eval "DEFAULT_$LINE"
8474 else
8475 no_cache=1
8476 fi
8477
8478 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8479
e6cc62c6 8480fi;
cbca9943
VZ
8481
8482 eval "$ac_cv_use_splash"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8488 echo "$as_me:$LINENO: result: yes" >&5
8489echo "${ECHO_T}yes" >&6
cbca9943 8490 else
e6cc62c6
VS
8491 echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
cbca9943 8493 fi
e6cc62c6 8494
cbca9943 8495
5005acfe 8496 enablestring=
e6cc62c6
VS
8497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8498echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8499 no_cache=0
8500 # Check whether --enable-textdlg or --disable-textdlg was given.
8501if test "${enable_textdlg+set}" = set; then
8502 enableval="$enable_textdlg"
e6cc62c6 8503
10f2d63a
VZ
8504 if test "$enableval" = yes; then
8505 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8506 else
8507 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8508 fi
e6cc62c6 8509
10f2d63a 8510else
e6cc62c6 8511
10f2d63a
VZ
8512 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8513 if test "x$LINE" != x ; then
8514 eval "DEFAULT_$LINE"
8515 else
8516 no_cache=1
8517 fi
8518
8519 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8520
e6cc62c6 8521fi;
10f2d63a
VZ
8522
8523 eval "$ac_cv_use_textdlg"
8524 if test "$no_cache" != 1; then
8525 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8526 fi
8527
8528 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8529 echo "$as_me:$LINENO: result: yes" >&5
8530echo "${ECHO_T}yes" >&6
10f2d63a 8531 else
e6cc62c6
VS
8532 echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6
10f2d63a 8534 fi
e6cc62c6 8535
10f2d63a 8536
5005acfe 8537 enablestring=
e6cc62c6
VS
8538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8539echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8540 no_cache=0
8541 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8542if test "${enable_tipdlg+set}" = set; then
8543 enableval="$enable_tipdlg"
e6cc62c6 8544
10f2d63a
VZ
8545 if test "$enableval" = yes; then
8546 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8547 else
8548 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8549 fi
e6cc62c6 8550
10f2d63a 8551else
e6cc62c6 8552
10f2d63a
VZ
8553 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8554 if test "x$LINE" != x ; then
8555 eval "DEFAULT_$LINE"
8556 else
8557 no_cache=1
8558 fi
8559
8560 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8561
e6cc62c6 8562fi;
10f2d63a
VZ
8563
8564 eval "$ac_cv_use_tipdlg"
8565 if test "$no_cache" != 1; then
8566 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8567 fi
8568
8569 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8570 echo "$as_me:$LINENO: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
10f2d63a 8572 else
e6cc62c6
VS
8573 echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6
10f2d63a 8575 fi
e6cc62c6 8576
10f2d63a 8577
5005acfe 8578 enablestring=
e6cc62c6
VS
8579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8580echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8581 no_cache=0
8582 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8583if test "${enable_progressdlg+set}" = set; then
8584 enableval="$enable_progressdlg"
e6cc62c6 8585
10f2d63a
VZ
8586 if test "$enableval" = yes; then
8587 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8588 else
8589 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8590 fi
e6cc62c6 8591
10f2d63a 8592else
e6cc62c6 8593
10f2d63a
VZ
8594 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8602
e6cc62c6 8603fi;
10f2d63a
VZ
8604
8605 eval "$ac_cv_use_progressdlg"
8606 if test "$no_cache" != 1; then
8607 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8608 fi
8609
8610 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8611 echo "$as_me:$LINENO: result: yes" >&5
8612echo "${ECHO_T}yes" >&6
10f2d63a 8613 else
e6cc62c6
VS
8614 echo "$as_me:$LINENO: result: no" >&5
8615echo "${ECHO_T}no" >&6
10f2d63a 8616 fi
e6cc62c6 8617
10f2d63a 8618
5005acfe 8619 enablestring=
e6cc62c6
VS
8620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8621echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8622 no_cache=0
8623 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8624if test "${enable_wizarddlg+set}" = set; then
8625 enableval="$enable_wizarddlg"
e6cc62c6 8626
b1f5d087
VZ
8627 if test "$enableval" = yes; then
8628 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8629 else
8630 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8631 fi
e6cc62c6 8632
b1f5d087 8633else
e6cc62c6 8634
b1f5d087
VZ
8635 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8636 if test "x$LINE" != x ; then
8637 eval "DEFAULT_$LINE"
8638 else
8639 no_cache=1
8640 fi
8641
8642 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8643
e6cc62c6 8644fi;
b1f5d087
VZ
8645
8646 eval "$ac_cv_use_wizarddlg"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8652 echo "$as_me:$LINENO: result: yes" >&5
8653echo "${ECHO_T}yes" >&6
b1f5d087 8654 else
e6cc62c6
VS
8655 echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
b1f5d087 8657 fi
e6cc62c6 8658
8284b0c5
MB
8659
8660
52127426 8661
5005acfe 8662 enablestring=
e6cc62c6
VS
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8665 no_cache=0
8666 # Check whether --enable-menus or --disable-menus was given.
8667if test "${enable_menus+set}" = set; then
8668 enableval="$enable_menus"
e6cc62c6 8669
1e6feb95
VZ
8670 if test "$enableval" = yes; then
8671 ac_cv_use_menus='wxUSE_MENUS=yes'
8672 else
8673 ac_cv_use_menus='wxUSE_MENUS=no'
8674 fi
e6cc62c6 8675
1e6feb95 8676else
e6cc62c6 8677
1e6feb95
VZ
8678 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8686
e6cc62c6 8687fi;
1e6feb95
VZ
8688
8689 eval "$ac_cv_use_menus"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
1e6feb95 8697 else
e6cc62c6
VS
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
1e6feb95 8700 fi
e6cc62c6 8701
1e6feb95 8702
5005acfe 8703 enablestring=
e6cc62c6
VS
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8706 no_cache=0
8707 # Check whether --enable-miniframe or --disable-miniframe was given.
8708if test "${enable_miniframe+set}" = set; then
8709 enableval="$enable_miniframe"
e6cc62c6 8710
10f2d63a
VZ
8711 if test "$enableval" = yes; then
8712 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8713 else
8714 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8715 fi
e6cc62c6 8716
10f2d63a 8717else
e6cc62c6 8718
10f2d63a
VZ
8719 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8727
e6cc62c6 8728fi;
10f2d63a
VZ
8729
8730 eval "$ac_cv_use_miniframe"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
10f2d63a 8738 else
e6cc62c6
VS
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
10f2d63a 8741 fi
e6cc62c6 8742
10f2d63a 8743
5005acfe 8744 enablestring=
e6cc62c6
VS
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8747 no_cache=0
8748 # Check whether --enable-tooltips or --disable-tooltips was given.
8749if test "${enable_tooltips+set}" = set; then
8750 enableval="$enable_tooltips"
e6cc62c6 8751
10f2d63a
VZ
8752 if test "$enableval" = yes; then
8753 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8754 else
8755 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8756 fi
e6cc62c6 8757
10f2d63a 8758else
e6cc62c6 8759
10f2d63a
VZ
8760 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8768
e6cc62c6 8769fi;
10f2d63a
VZ
8770
8771 eval "$ac_cv_use_tooltips"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
10f2d63a 8779 else
e6cc62c6
VS
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
10f2d63a 8782 fi
e6cc62c6 8783
10f2d63a 8784
5005acfe 8785 enablestring=
e6cc62c6
VS
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8788 no_cache=0
8789 # Check whether --enable-splines or --disable-splines was given.
8790if test "${enable_splines+set}" = set; then
8791 enableval="$enable_splines"
e6cc62c6 8792
10f2d63a
VZ
8793 if test "$enableval" = yes; then
8794 ac_cv_use_splines='wxUSE_SPLINES=yes'
8795 else
8796 ac_cv_use_splines='wxUSE_SPLINES=no'
8797 fi
e6cc62c6 8798
10f2d63a 8799else
e6cc62c6 8800
10f2d63a
VZ
8801 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8809
e6cc62c6 8810fi;
10f2d63a
VZ
8811
8812 eval "$ac_cv_use_splines"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
10f2d63a 8820 else
e6cc62c6
VS
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
10f2d63a 8823 fi
e6cc62c6 8824
10f2d63a 8825
5005acfe 8826 enablestring=
e6cc62c6
VS
8827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8828echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8829 no_cache=0
8830 # Check whether --enable-validators or --disable-validators was given.
8831if test "${enable_validators+set}" = set; then
8832 enableval="$enable_validators"
e6cc62c6 8833
10f2d63a
VZ
8834 if test "$enableval" = yes; then
8835 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8836 else
8837 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8838 fi
e6cc62c6 8839
10f2d63a 8840else
e6cc62c6 8841
10f2d63a
VZ
8842 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8843 if test "x$LINE" != x ; then
8844 eval "DEFAULT_$LINE"
8845 else
8846 no_cache=1
8847 fi
8848
8849 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8850
e6cc62c6 8851fi;
10f2d63a
VZ
8852
8853 eval "$ac_cv_use_validators"
8854 if test "$no_cache" != 1; then
8855 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8856 fi
8857
8858 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8859 echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6
10f2d63a 8861 else
e6cc62c6
VS
8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
10f2d63a 8864 fi
e6cc62c6 8865
10f2d63a 8866
5005acfe 8867 enablestring=
e6cc62c6
VS
8868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8869echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8870 no_cache=0
8871 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8872if test "${enable_busyinfo+set}" = set; then
8873 enableval="$enable_busyinfo"
e6cc62c6 8874
10f2d63a
VZ
8875 if test "$enableval" = yes; then
8876 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8877 else
8878 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8879 fi
e6cc62c6 8880
10f2d63a 8881else
e6cc62c6 8882
10f2d63a
VZ
8883 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8884 if test "x$LINE" != x ; then
8885 eval "DEFAULT_$LINE"
8886 else
8887 no_cache=1
8888 fi
8889
8890 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8891
e6cc62c6 8892fi;
10f2d63a
VZ
8893
8894 eval "$ac_cv_use_busyinfo"
8895 if test "$no_cache" != 1; then
8896 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8897 fi
8898
8899 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8900 echo "$as_me:$LINENO: result: yes" >&5
8901echo "${ECHO_T}yes" >&6
10f2d63a 8902 else
e6cc62c6
VS
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
10f2d63a 8905 fi
e6cc62c6 8906
10f2d63a 8907
5005acfe 8908 enablestring=
e6cc62c6
VS
8909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8910echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8911 no_cache=0
8912 # Check whether --enable-joystick or --disable-joystick was given.
8913if test "${enable_joystick+set}" = set; then
8914 enableval="$enable_joystick"
e6cc62c6 8915
f6bcfd97
BP
8916 if test "$enableval" = yes; then
8917 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8918 else
8919 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8920 fi
e6cc62c6 8921
f6bcfd97 8922else
e6cc62c6 8923
f6bcfd97
BP
8924 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8925 if test "x$LINE" != x ; then
8926 eval "DEFAULT_$LINE"
8927 else
8928 no_cache=1
8929 fi
8930
8931 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8932
e6cc62c6 8933fi;
f6bcfd97
BP
8934
8935 eval "$ac_cv_use_joystick"
8936 if test "$no_cache" != 1; then
8937 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8938 fi
8939
8940 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8941 echo "$as_me:$LINENO: result: yes" >&5
8942echo "${ECHO_T}yes" >&6
f6bcfd97 8943 else
e6cc62c6
VS
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
f6bcfd97 8946 fi
e6cc62c6 8947
698dcdb6 8948
5005acfe 8949 enablestring=
e6cc62c6
VS
8950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8951echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8952 no_cache=0
8953 # Check whether --enable-metafile or --disable-metafile was given.
8954if test "${enable_metafile+set}" = set; then
8955 enableval="$enable_metafile"
e6cc62c6 8956
1e6feb95
VZ
8957 if test "$enableval" = yes; then
8958 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8959 else
8960 ac_cv_use_metafile='wxUSE_METAFILE=no'
8961 fi
e6cc62c6 8962
1e6feb95 8963else
e6cc62c6 8964
1e6feb95
VZ
8965 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8966 if test "x$LINE" != x ; then
8967 eval "DEFAULT_$LINE"
8968 else
8969 no_cache=1
8970 fi
8971
8972 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8973
e6cc62c6 8974fi;
1e6feb95
VZ
8975
8976 eval "$ac_cv_use_metafile"
8977 if test "$no_cache" != 1; then
8978 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8979 fi
8980
8981 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
8982 echo "$as_me:$LINENO: result: yes" >&5
8983echo "${ECHO_T}yes" >&6
1e6feb95 8984 else
e6cc62c6
VS
8985 echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
1e6feb95 8987 fi
e6cc62c6 8988
1e6feb95 8989
5005acfe 8990 enablestring=
e6cc62c6
VS
8991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
8992echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8993 no_cache=0
8994 # Check whether --enable-dragimage or --disable-dragimage was given.
8995if test "${enable_dragimage+set}" = set; then
8996 enableval="$enable_dragimage"
e6cc62c6 8997
24fd6d87
VZ
8998 if test "$enableval" = yes; then
8999 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9000 else
9001 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9002 fi
e6cc62c6 9003
24fd6d87 9004else
e6cc62c6 9005
24fd6d87
VZ
9006 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9007 if test "x$LINE" != x ; then
9008 eval "DEFAULT_$LINE"
9009 else
9010 no_cache=1
9011 fi
9012
9013 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9014
e6cc62c6 9015fi;
24fd6d87
VZ
9016
9017 eval "$ac_cv_use_dragimage"
9018 if test "$no_cache" != 1; then
9019 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9020 fi
9021
9022 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9023 echo "$as_me:$LINENO: result: yes" >&5
9024echo "${ECHO_T}yes" >&6
24fd6d87 9025 else
e6cc62c6
VS
9026 echo "$as_me:$LINENO: result: no" >&5
9027echo "${ECHO_T}no" >&6
24fd6d87 9028 fi
e6cc62c6 9029
52127426 9030
7bb2947d 9031 enablestring=
e6cc62c6
VS
9032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9033echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9034 no_cache=0
9035 # Check whether --enable-accessibility or --disable-accessibility was given.
9036if test "${enable_accessibility+set}" = set; then
9037 enableval="$enable_accessibility"
e6cc62c6 9038
7bb2947d
MB
9039 if test "$enableval" = yes; then
9040 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9041 else
9042 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9043 fi
e6cc62c6 9044
7bb2947d 9045else
e6cc62c6 9046
7bb2947d
MB
9047 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9048 if test "x$LINE" != x ; then
9049 eval "DEFAULT_$LINE"
9050 else
9051 no_cache=1
9052 fi
9053
9054 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9055
e6cc62c6 9056fi;
7bb2947d
MB
9057
9058 eval "$ac_cv_use_accessibility"
9059 if test "$no_cache" != 1; then
9060 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9061 fi
9062
9063 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9064 echo "$as_me:$LINENO: result: yes" >&5
9065echo "${ECHO_T}yes" >&6
7bb2947d 9066 else
e6cc62c6
VS
9067 echo "$as_me:$LINENO: result: no" >&5
9068echo "${ECHO_T}no" >&6
7bb2947d 9069 fi
e6cc62c6 9070
7bb2947d 9071
8284b0c5
MB
9072
9073
5005acfe 9074 enablestring=
e6cc62c6
VS
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9077 no_cache=0
9078 # Check whether --enable-palette or --disable-palette was given.
9079if test "${enable_palette+set}" = set; then
9080 enableval="$enable_palette"
e6cc62c6 9081
edae8572
VZ
9082 if test "$enableval" = yes; then
9083 ac_cv_use_palette='wxUSE_PALETTE=yes'
9084 else
9085 ac_cv_use_palette='wxUSE_PALETTE=no'
9086 fi
e6cc62c6 9087
edae8572 9088else
e6cc62c6 9089
edae8572
VZ
9090 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9098
e6cc62c6 9099fi;
edae8572
VZ
9100
9101 eval "$ac_cv_use_palette"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
edae8572 9109 else
e6cc62c6
VS
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
edae8572 9112 fi
e6cc62c6 9113
edae8572 9114
5005acfe 9115 enablestring=
e6cc62c6
VS
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9118 no_cache=0
9119 # Check whether --enable-image or --disable-image was given.
9120if test "${enable_image+set}" = set; then
9121 enableval="$enable_image"
e6cc62c6 9122
0046ff7c
VS
9123 if test "$enableval" = yes; then
9124 ac_cv_use_image='wxUSE_IMAGE=yes'
9125 else
9126 ac_cv_use_image='wxUSE_IMAGE=no'
9127 fi
e6cc62c6 9128
0046ff7c 9129else
e6cc62c6 9130
0046ff7c
VS
9131 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9139
e6cc62c6 9140fi;
0046ff7c
VS
9141
9142 eval "$ac_cv_use_image"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
0046ff7c 9150 else
e6cc62c6
VS
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
0046ff7c 9153 fi
e6cc62c6 9154
0046ff7c 9155
5005acfe 9156 enablestring=
e6cc62c6
VS
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9159 no_cache=0
9160 # Check whether --enable-gif or --disable-gif was given.
9161if test "${enable_gif+set}" = set; then
9162 enableval="$enable_gif"
e6cc62c6 9163
10f2d63a
VZ
9164 if test "$enableval" = yes; then
9165 ac_cv_use_gif='wxUSE_GIF=yes'
9166 else
9167 ac_cv_use_gif='wxUSE_GIF=no'
9168 fi
e6cc62c6 9169
10f2d63a 9170else
e6cc62c6 9171
10f2d63a
VZ
9172 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9180
e6cc62c6 9181fi;
10f2d63a
VZ
9182
9183 eval "$ac_cv_use_gif"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
10f2d63a 9191 else
e6cc62c6
VS
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
10f2d63a 9194 fi
e6cc62c6 9195
10f2d63a 9196
5005acfe 9197 enablestring=
e6cc62c6
VS
9198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9199echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9200 no_cache=0
9201 # Check whether --enable-pcx or --disable-pcx was given.
9202if test "${enable_pcx+set}" = set; then
9203 enableval="$enable_pcx"
e6cc62c6 9204
10f2d63a
VZ
9205 if test "$enableval" = yes; then
9206 ac_cv_use_pcx='wxUSE_PCX=yes'
9207 else
9208 ac_cv_use_pcx='wxUSE_PCX=no'
9209 fi
e6cc62c6 9210
10f2d63a 9211else
e6cc62c6 9212
10f2d63a
VZ
9213 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9214 if test "x$LINE" != x ; then
9215 eval "DEFAULT_$LINE"
9216 else
9217 no_cache=1
9218 fi
9219
9220 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9221
e6cc62c6 9222fi;
10f2d63a
VZ
9223
9224 eval "$ac_cv_use_pcx"
9225 if test "$no_cache" != 1; then
9226 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9227 fi
9228
9229 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9230 echo "$as_me:$LINENO: result: yes" >&5
9231echo "${ECHO_T}yes" >&6
10f2d63a 9232 else
e6cc62c6
VS
9233 echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
10f2d63a 9235 fi
e6cc62c6 9236
10f2d63a 9237
5005acfe 9238 enablestring=
e6cc62c6
VS
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9241 no_cache=0
9242 # Check whether --enable-iff or --disable-iff was given.
9243if test "${enable_iff+set}" = set; then
9244 enableval="$enable_iff"
e6cc62c6 9245
4b6b4dfc
RR
9246 if test "$enableval" = yes; then
9247 ac_cv_use_iff='wxUSE_IFF=yes'
9248 else
9249 ac_cv_use_iff='wxUSE_IFF=no'
9250 fi
e6cc62c6 9251
4b6b4dfc 9252else
e6cc62c6 9253
4b6b4dfc
RR
9254 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9262
e6cc62c6 9263fi;
4b6b4dfc
RR
9264
9265 eval "$ac_cv_use_iff"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
4b6b4dfc 9273 else
e6cc62c6
VS
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
4b6b4dfc 9276 fi
e6cc62c6 9277
4b6b4dfc 9278
5005acfe 9279 enablestring=
e6cc62c6
VS
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9282 no_cache=0
9283 # Check whether --enable-pnm or --disable-pnm was given.
9284if test "${enable_pnm+set}" = set; then
9285 enableval="$enable_pnm"
e6cc62c6 9286
10f2d63a
VZ
9287 if test "$enableval" = yes; then
9288 ac_cv_use_pnm='wxUSE_PNM=yes'
9289 else
9290 ac_cv_use_pnm='wxUSE_PNM=no'
9291 fi
e6cc62c6 9292
10f2d63a 9293else
e6cc62c6 9294
10f2d63a
VZ
9295 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9303
e6cc62c6 9304fi;
10f2d63a
VZ
9305
9306 eval "$ac_cv_use_pnm"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
10f2d63a 9314 else
e6cc62c6
VS
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
10f2d63a 9317 fi
e6cc62c6 9318
10f2d63a 9319
5005acfe 9320 enablestring=
e6cc62c6
VS
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9323 no_cache=0
69d27ff7
MB
9324 # Check whether --enable-xpm or --disable-xpm was given.
9325if test "${enable_xpm+set}" = set; then
9326 enableval="$enable_xpm"
e6cc62c6 9327
0046ff7c 9328 if test "$enableval" = yes; then
69d27ff7 9329 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9330 else
69d27ff7 9331 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9332 fi
e6cc62c6 9333
0046ff7c 9334else
e6cc62c6 9335
0046ff7c
VS
9336 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
69d27ff7 9343 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9344
e6cc62c6 9345fi;
0046ff7c 9346
69d27ff7 9347 eval "$ac_cv_use_xpm"
0046ff7c 9348 if test "$no_cache" != 1; then
69d27ff7 9349 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9350 fi
9351
9352 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
0046ff7c 9355 else
e6cc62c6
VS
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
0046ff7c 9358 fi
e6cc62c6 9359
0046ff7c 9360
5005acfe 9361 enablestring=
e6cc62c6
VS
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9364 no_cache=0
c7206e64
VS
9365 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9366if test "${enable_ico_cur+set}" = set; then
9367 enableval="$enable_ico_cur"
e6cc62c6 9368
658974ae 9369 if test "$enableval" = yes; then
c7206e64 9370 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9371 else
c7206e64 9372 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9373 fi
e6cc62c6 9374
658974ae 9375else
e6cc62c6 9376
658974ae
VS
9377 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
c7206e64 9384 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9385
e6cc62c6 9386fi;
658974ae 9387
c7206e64 9388 eval "$ac_cv_use_ico_cur"
658974ae 9389 if test "$no_cache" != 1; then
c7206e64 9390 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9391 fi
9392
9393 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
658974ae 9396 else
e6cc62c6
VS
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
658974ae 9399 fi
e6cc62c6 9400
658974ae 9401
b12915c1
VZ
9402fi
9403
d558c907
VS
9404case "${host}" in
9405 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9406 PATH_IFS=';'
9407 LEX_STEM="lexyy"
d558c907
VS
9408 ;;
9409 *)
9410 PATH_IFS=':'
9411 LEX_STEM="lex.yy"
9412 ;;
9413esac
9414
8284b0c5
MB
9415
9416
10f2d63a
VZ
9417 echo "saving argument cache $wx_arg_cache_file"
9418 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9419
8284b0c5 9420
e6cc62c6
VS
9421
9422echo "$as_me:$LINENO: checking for toolkit" >&5
9423echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9424
9425# In Wine, we need to default to MSW, not GTK or MOTIF
9426if test "$wxUSE_WINE" = "yes"; then
9427 DEFAULT_DEFAULT_wxUSE_GTK=0
9428 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9429 DEFAULT_DEFAULT_wxUSE_MSW=1
9430fi
10f2d63a
VZ
9431
9432if test "$wxUSE_GUI" = "yes"; then
9433
3a922bb4 9434 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9435 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9436echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9437 { (exit 1); exit 1; }; }
3a922bb4 9438 fi
b12915c1 9439
3a922bb4
RL
9440 if test "$TOOLKIT_GIVEN" = 1; then
9441 for toolkit in `echo $ALL_TOOLKITS`; do
9442 var=wxUSE_$toolkit
9443 eval "value=\$${var}"
9444 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9445 done
10f2d63a 9446 else
3a922bb4
RL
9447 for toolkit in `echo $ALL_TOOLKITS`; do
9448 if test "$has_toolkit_in_cache" != 1; then
9449 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9450 else
9451 var=DEFAULT_wxUSE_$toolkit
9452 fi
9453 eval "wxUSE_$toolkit=\$${var}"
9454 done
10f2d63a 9455 fi
10f2d63a 9456
ac0c4cc3
DE
9457 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9458 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9459 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9460
d558c907 9461 case "${host}" in
6fa882bd 9462 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9463 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9464 esac
10f2d63a 9465
3a922bb4
RL
9466 case "$NUM_TOOLKITS" in
9467 1)
9468 ;;
9469 0)
e6cc62c6
VS
9470 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9471echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9472 { (exit 1); exit 1; }; }
3a922bb4
RL
9473 ;;
9474 *)
e6cc62c6
VS
9475 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9476echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9477 { (exit 1); exit 1; }; }
3a922bb4 9478 esac
10f2d63a 9479
3a922bb4
RL
9480 for toolkit in `echo $ALL_TOOLKITS`; do
9481 var=wxUSE_$toolkit
9482 eval "value=\$${var}"
9483 if test "x$value" != x; then
9484 cache_var=CACHE_$toolkit
9485 eval "cache=\$${cache_var}"
9486 if test "$cache" = 1; then
9487 echo "$var=$value" >> ${wx_arg_cache_file}
9488 fi
9489 if test "$value" = 1; then
9490 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9491 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9492echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9493 fi
9494 fi
9495 done
10f2d63a 9496else
9de9b8f0
VZ
9497 if test "x$host_alias" != "x"; then
9498 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9499echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9500 else
9501 echo "$as_me:$LINENO: result: base only" >&5
9502echo "${ECHO_T}base only" >&6
9503 fi
10f2d63a
VZ
9504fi
9505
43d99b6d
VS
9506wants_win32=0
9507doesnt_want_win32=0
17234b26
MB
9508case "${host}" in
9509 *-*-cygwin*)
9510 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9511 wants_win32=1
9512 else
9513 doesnt_want_win32=1
17234b26
MB
9514 fi
9515 ;;
9516 *-*-mingw*)
43d99b6d 9517 wants_win32=1
17234b26
MB
9518 ;;
9519esac
9520
89e6bf6d
VZ
9521if test "$wxUSE_WINE" = "yes"; then
9522 wants_win32=1
9523 CC=winegcc
9524 CXX=wineg++
9525 RESCOMP=wrc
9526fi
9527
43d99b6d 9528if test "$wants_win32" = 1 ; then
17234b26
MB
9529 USE_UNIX=0
9530 USE_WIN32=1
e6cc62c6 9531 cat >>confdefs.h <<\_ACEOF
17234b26 9532#define __WIN32__ 1
e6cc62c6 9533_ACEOF
17234b26 9534
e6cc62c6 9535 cat >>confdefs.h <<\_ACEOF
17234b26 9536#define __WIN95__ 1
e6cc62c6 9537_ACEOF
17234b26 9538
e6cc62c6 9539 cat >>confdefs.h <<\_ACEOF
17234b26 9540#define __WINDOWS__ 1
e6cc62c6 9541_ACEOF
17234b26 9542
e6cc62c6 9543 cat >>confdefs.h <<\_ACEOF
17234b26 9544#define __GNUWIN32__ 1
e6cc62c6 9545_ACEOF
17234b26 9546
e6cc62c6 9547 cat >>confdefs.h <<\_ACEOF
17234b26 9548#define STRICT 1
e6cc62c6 9549_ACEOF
17234b26 9550
e6cc62c6 9551 cat >>confdefs.h <<\_ACEOF
17234b26 9552#define WINVER 0x0400
e6cc62c6 9553_ACEOF
17234b26 9554
43d99b6d
VS
9555fi
9556if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9557 USE_UNIX=1
9558 USE_WIN32=0
9559fi
9560
9561if test "$USE_UNIX" = 1 ; then
9562 wxUSE_UNIX=yes
e6cc62c6 9563 cat >>confdefs.h <<\_ACEOF
17234b26 9564#define __UNIX__ 1
e6cc62c6 9565_ACEOF
17234b26
MB
9566
9567fi
9568
8284b0c5 9569
e6cc62c6 9570cat >confcache <<\_ACEOF
10f2d63a
VZ
9571# This file is a shell script that caches the results of configure
9572# tests run on this system so they can be shared between configure
e6cc62c6
VS
9573# scripts and configure runs, see configure's option --config-cache.
9574# It is not useful on other systems. If it contains results you don't
9575# want to keep, you may remove or edit it.
10f2d63a 9576#
e6cc62c6
VS
9577# config.status only pays attention to the cache file if you give it
9578# the --recheck option to rerun configure.
10f2d63a 9579#
e6cc62c6
VS
9580# `ac_cv_env_foo' variables (set or unset) will be overridden when
9581# loading this file, other *unset* `ac_cv_foo' will be assigned the
9582# following values.
9583
9584_ACEOF
9585
10f2d63a
VZ
9586# The following way of writing the cache mishandles newlines in values,
9587# but we know of no workaround that is simple, portable, and efficient.
9588# So, don't put newlines in cache variables' values.
9589# Ultrix sh set writes to stderr and can't be redirected directly,
9590# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9591{
9592 (set) 2>&1 |
9593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9594 *ac_space=\ *)
9595 # `set' does not quote correctly, so add quotes (double-quote
9596 # substitution turns \\\\ into \\, and sed turns \\ into \).
9597 sed -n \
9598 "s/'/'\\\\''/g;
9599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9600 ;;
9601 *)
9602 # `set' quotes correctly as required by POSIX, so do not add quotes.
9603 sed -n \
9604 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9605 ;;
9606 esac;
9607} |
9608 sed '
9609 t clear
9610 : clear
9611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9612 t end
9613 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9614 : end' >>confcache
9615if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9616 if test -w $cache_file; then
e6cc62c6
VS
9617 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9618 cat confcache >$cache_file
10f2d63a
VZ
9619 else
9620 echo "not updating unwritable cache $cache_file"
9621 fi
9622fi
9623rm -f confcache
9624
e59890c3 9625if test "$build" != "$host" ; then
9d353d4a 9626 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9627 CC=$host_alias-gcc
9628 CXX=$host_alias-c++
9629 AR=$host_alias-ar
9630 RANLIB=$host_alias-ranlib
9631 DLLTOOL=$host_alias-dlltool
9632 RESCOMP=$host_alias-windres
9633 LD=$host_alias-ld
9634 NM=$host_alias-nm
9635 STRIP=$host_alias-strip
9636 else
e6cc62c6
VS
9637 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9638echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9639 { (exit 1); exit 1; }; }
3a922bb4 9640 fi
10f2d63a
VZ
9641fi
9642
ec603395 9643CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9644ac_ext=c
9645ac_cpp='$CPP $CPPFLAGS'
9646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9648ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649if test -n "$ac_tool_prefix"; then
9650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9651set dummy ${ac_tool_prefix}gcc; ac_word=$2
9652echo "$as_me:$LINENO: checking for $ac_word" >&5
9653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9654if test "${ac_cv_prog_CC+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657 if test -n "$CC"; then
9658 ac_cv_prog_CC="$CC" # Let the user override the test.
9659else
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9670 fi
9671done
9672done
9673
9674fi
9675fi
9676CC=$ac_cv_prog_CC
9677if test -n "$CC"; then
9678 echo "$as_me:$LINENO: result: $CC" >&5
9679echo "${ECHO_T}$CC" >&6
9680else
9681 echo "$as_me:$LINENO: result: no" >&5
9682echo "${ECHO_T}no" >&6
9683fi
9684
9685fi
9686if test -z "$ac_cv_prog_CC"; then
9687 ac_ct_CC=$CC
9688 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9689set dummy gcc; ac_word=$2
e6cc62c6
VS
9690echo "$as_me:$LINENO: checking for $ac_word" >&5
9691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695 if test -n "$ac_ct_CC"; then
9696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9697else
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705 ac_cv_prog_ac_ct_CC="gcc"
9706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9708 fi
9709done
9710done
9711
9712fi
9713fi
9714ac_ct_CC=$ac_cv_prog_ac_ct_CC
9715if test -n "$ac_ct_CC"; then
9716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9717echo "${ECHO_T}$ac_ct_CC" >&6
9718else
9719 echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
9721fi
9722
9723 CC=$ac_ct_CC
9724else
9725 CC="$ac_cv_prog_CC"
9726fi
9727
9728if test -z "$CC"; then
9729 if test -n "$ac_tool_prefix"; then
9730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9731set dummy ${ac_tool_prefix}cc; ac_word=$2
9732echo "$as_me:$LINENO: checking for $ac_word" >&5
9733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9734if test "${ac_cv_prog_CC+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9736else
9737 if test -n "$CC"; then
9738 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9739else
e6cc62c6
VS
9740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741for as_dir in $PATH
9742do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747 ac_cv_prog_CC="${ac_tool_prefix}cc"
9748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751done
9752done
9753
10f2d63a 9754fi
6232543b 9755fi
e6cc62c6 9756CC=$ac_cv_prog_CC
6232543b 9757if test -n "$CC"; then
e6cc62c6
VS
9758 echo "$as_me:$LINENO: result: $CC" >&5
9759echo "${ECHO_T}$CC" >&6
9760else
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763fi
9764
9765fi
9766if test -z "$ac_cv_prog_CC"; then
9767 ac_ct_CC=$CC
9768 # Extract the first word of "cc", so it can be a program name with args.
9769set dummy cc; ac_word=$2
9770echo "$as_me:$LINENO: checking for $ac_word" >&5
9771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774else
9775 if test -n "$ac_ct_CC"; then
9776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9777else
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_ac_ct_CC="cc"
9786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9788 fi
9789done
9790done
9791
9792fi
9793fi
9794ac_ct_CC=$ac_cv_prog_ac_ct_CC
9795if test -n "$ac_ct_CC"; then
9796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9797echo "${ECHO_T}$ac_ct_CC" >&6
9798else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801fi
9802
9803 CC=$ac_ct_CC
247f5006 9804else
e6cc62c6 9805 CC="$ac_cv_prog_CC"
247f5006
VZ
9806fi
9807
e6cc62c6 9808fi
5c6fa7d2
RR
9809if test -z "$CC"; then
9810 # Extract the first word of "cc", so it can be a program name with args.
9811set dummy cc; ac_word=$2
e6cc62c6
VS
9812echo "$as_me:$LINENO: checking for $ac_word" >&5
9813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9814if test "${ac_cv_prog_CC+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9816else
9817 if test -n "$CC"; then
9818 ac_cv_prog_CC="$CC" # Let the user override the test.
9819else
9820 ac_prog_rejected=no
e6cc62c6
VS
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9829 ac_prog_rejected=yes
9830 continue
9831 fi
9832 ac_cv_prog_CC="cc"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837done
9838
328a083c
RR
9839if test $ac_prog_rejected = yes; then
9840 # We found a bogon in the path, so make sure we never use it.
9841 set dummy $ac_cv_prog_CC
9842 shift
e6cc62c6 9843 if test $# != 0; then
328a083c 9844 # We chose a different compiler from the bogus one.
1e487827
VS
9845 # However, it has the same basename, so the bogon will be chosen
9846 # first if we set CC to just the basename; use the full file name.
9847 shift
e6cc62c6 9848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9849 fi
1e487827
VS
9850fi
9851fi
9852fi
e6cc62c6 9853CC=$ac_cv_prog_CC
1e487827 9854if test -n "$CC"; then
e6cc62c6
VS
9855 echo "$as_me:$LINENO: result: $CC" >&5
9856echo "${ECHO_T}$CC" >&6
703e0a69 9857else
e6cc62c6
VS
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
703e0a69 9860fi
1e487827 9861
e6cc62c6
VS
9862fi
9863if test -z "$CC"; then
9864 if test -n "$ac_tool_prefix"; then
9865 for ac_prog in cl
9866 do
9867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9869echo "$as_me:$LINENO: checking for $ac_word" >&5
9870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9871if test "${ac_cv_prog_CC+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9873else
9874 if test -n "$CC"; then
9875 ac_cv_prog_CC="$CC" # Let the user override the test.
9876else
e6cc62c6
VS
9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9887 fi
9888done
9889done
9890
f09359cf
VS
9891fi
9892fi
e6cc62c6 9893CC=$ac_cv_prog_CC
f09359cf 9894if test -n "$CC"; then
e6cc62c6
VS
9895 echo "$as_me:$LINENO: result: $CC" >&5
9896echo "${ECHO_T}$CC" >&6
f09359cf 9897else
e6cc62c6
VS
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
5c6fa7d2 9900fi
1e487827 9901
e6cc62c6
VS
9902 test -n "$CC" && break
9903 done
9904fi
9905if test -z "$CC"; then
9906 ac_ct_CC=$CC
9907 for ac_prog in cl
9908do
9909 # Extract the first word of "$ac_prog", so it can be a program name with args.
9910set dummy $ac_prog; ac_word=$2
9911echo "$as_me:$LINENO: checking for $ac_word" >&5
9912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 if test -n "$ac_ct_CC"; then
9917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9918else
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_ac_ct_CC="$ac_prog"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930done
9931done
f09359cf 9932
e6cc62c6
VS
9933fi
9934fi
9935ac_ct_CC=$ac_cv_prog_ac_ct_CC
9936if test -n "$ac_ct_CC"; then
9937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9938echo "${ECHO_T}$ac_ct_CC" >&6
9939else
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
9942fi
f09359cf 9943
e6cc62c6
VS
9944 test -n "$ac_ct_CC" && break
9945done
247f5006 9946
e6cc62c6
VS
9947 CC=$ac_ct_CC
9948fi
9949
9950fi
9951
9952
9953test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9954See \`config.log' for more details." >&5
9955echo "$as_me: error: no acceptable C compiler found in \$PATH
9956See \`config.log' for more details." >&2;}
9957 { (exit 1); exit 1; }; }
9958
9959# Provide some information about the compiler.
9960echo "$as_me:$LINENO:" \
9961 "checking for C compiler version" >&5
9962ac_compiler=`set X $ac_compile; echo $2`
9963{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9964 (eval $ac_compiler --version </dev/null >&5) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }
9968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9969 (eval $ac_compiler -v </dev/null >&5) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }
9973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9974 (eval $ac_compiler -V </dev/null >&5) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }
9978
9979cat >conftest.$ac_ext <<_ACEOF
9980#line $LINENO "configure"
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
9986
9987int
9988main ()
9989{
247f5006 9990
e6cc62c6
VS
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995ac_clean_files_save=$ac_clean_files
9996ac_clean_files="$ac_clean_files a.out a.exe b.out"
9997# Try to create an executable without -o first, disregard a.out.
9998# It will help us diagnose broken compilers, and finding out an intuition
9999# of exeext.
10000echo "$as_me:$LINENO: checking for C compiler default output" >&5
10001echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10002ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10003if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10004 (eval $ac_link_default) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; then
10008 # Find the output, starting from the most likely. This scheme is
10009# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10010# resort.
10011
10012# Be careful to initialize this variable, since it used to be cached.
10013# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10014ac_cv_exeext=
10015# b.out is created by i960 compilers.
10016for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10017do
10018 test -f "$ac_file" || continue
10019 case $ac_file in
10020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10021 ;;
10022 conftest.$ac_ext )
10023 # This is the source file.
10024 ;;
10025 [ab].out )
10026 # We found the default executable, but exeext='' is most
10027 # certainly right.
10028 break;;
10029 *.* )
10030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10031 # FIXME: I believe we export ac_cv_exeext for Libtool,
10032 # but it would be cool to find out if it's true. Does anybody
10033 # maintain Libtool? --akim.
10034 export ac_cv_exeext
10035 break;;
10036 * )
10037 break;;
10038 esac
10039done
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10045See \`config.log' for more details." >&5
10046echo "$as_me: error: C compiler cannot create executables
10047See \`config.log' for more details." >&2;}
10048 { (exit 77); exit 77; }; }
10049fi
10050
10051ac_exeext=$ac_cv_exeext
10052echo "$as_me:$LINENO: result: $ac_file" >&5
10053echo "${ECHO_T}$ac_file" >&6
10054
10055# Check the compiler produces executables we can run. If not, either
10056# the compiler is broken, or we cross compile.
10057echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10058echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10059# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10060# If not cross compiling, check that we can run a simple program.
10061if test "$cross_compiling" != yes; then
10062 if { ac_try='./$ac_file'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 cross_compiling=no
698dcdb6 10069 else
e6cc62c6
VS
10070 if test "$cross_compiling" = maybe; then
10071 cross_compiling=yes
10072 else
10073 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10074If you meant to cross compile, use \`--host'.
10075See \`config.log' for more details." >&5
10076echo "$as_me: error: cannot run C compiled programs.
10077If you meant to cross compile, use \`--host'.
10078See \`config.log' for more details." >&2;}
10079 { (exit 1); exit 1; }; }
10080 fi
698dcdb6 10081 fi
52127426 10082fi
e6cc62c6
VS
10083echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085
10086rm -f a.out a.exe conftest$ac_cv_exeext b.out
10087ac_clean_files=$ac_clean_files_save
10088# Check the compiler produces executables we can run. If not, either
10089# the compiler is broken, or we cross compile.
10090echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10091echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10092echo "$as_me:$LINENO: result: $cross_compiling" >&5
10093echo "${ECHO_T}$cross_compiling" >&6
10094
10095echo "$as_me:$LINENO: checking for suffix of executables" >&5
10096echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; then
10102 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10103# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10104# work properly (i.e., refer to `conftest.exe'), while it won't with
10105# `rm'.
10106for ac_file in conftest.exe conftest conftest.*; do
10107 test -f "$ac_file" || continue
10108 case $ac_file in
10109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10110 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10111 export ac_cv_exeext
10112 break;;
10113 * ) break;;
10114 esac
10115done
5c6fa7d2 10116else
e6cc62c6
VS
10117 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10118See \`config.log' for more details." >&5
10119echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10120See \`config.log' for more details." >&2;}
10121 { (exit 1); exit 1; }; }
10122fi
10123
10124rm -f conftest$ac_cv_exeext
10125echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10126echo "${ECHO_T}$ac_cv_exeext" >&6
10127
10128rm -f conftest.$ac_ext
10129EXEEXT=$ac_cv_exeext
10130ac_exeext=$EXEEXT
10131echo "$as_me:$LINENO: checking for suffix of object files" >&5
10132echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10133if test "${ac_cv_objext+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 cat >conftest.$ac_ext <<_ACEOF
10137#line $LINENO "configure"
10138/* confdefs.h. */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h. */
10143
10144int
10145main ()
10146{
f09359cf 10147
e6cc62c6
VS
10148 ;
10149 return 0;
10150}
10151_ACEOF
10152rm -f conftest.o conftest.obj
10153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; then
10158 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10159 case $ac_file in
10160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10162 break;;
10163 esac
10164done
a0b9e27f 10165else
e6cc62c6
VS
10166 echo "$as_me: failed program was:" >&5
10167sed 's/^/| /' conftest.$ac_ext >&5
10168
10169{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10170See \`config.log' for more details." >&5
10171echo "$as_me: error: cannot compute suffix of object files: cannot compile
10172See \`config.log' for more details." >&2;}
10173 { (exit 1); exit 1; }; }
a0b9e27f 10174fi
247f5006 10175
e6cc62c6
VS
10176rm -f conftest.$ac_cv_objext conftest.$ac_ext
10177fi
10178echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10179echo "${ECHO_T}$ac_cv_objext" >&6
10180OBJEXT=$ac_cv_objext
10181ac_objext=$OBJEXT
10182echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10183echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10184if test "${ac_cv_c_compiler_gnu+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10186else
e6cc62c6
VS
10187 cat >conftest.$ac_ext <<_ACEOF
10188#line $LINENO "configure"
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
10194
10195int
10196main ()
10197{
10198#ifndef __GNUC__
10199 choke me
10200#endif
10201
10202 ;
10203 return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext
10207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -s conftest.$ac_objext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_compiler_gnu=yes
10219else
10220 echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223ac_compiler_gnu=no
10224fi
10225rm -f conftest.$ac_objext conftest.$ac_ext
10226ac_cv_c_compiler_gnu=$ac_compiler_gnu
10227
10228fi
10229echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10230echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10231GCC=`test $ac_compiler_gnu = yes && echo yes`
10232ac_test_CFLAGS=${CFLAGS+set}
10233ac_save_CFLAGS=$CFLAGS
10234CFLAGS="-g"
10235echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10236echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10237if test "${ac_cv_prog_cc_g+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 cat >conftest.$ac_ext <<_ACEOF
10241#line $LINENO "configure"
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247
10248int
10249main ()
10250{
10251
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256rm -f conftest.$ac_objext
10257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest.$ac_objext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10f2d63a
VZ
10268 ac_cv_prog_cc_g=yes
10269else
e6cc62c6
VS
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10272
e6cc62c6 10273ac_cv_prog_cc_g=no
10f2d63a 10274fi
e6cc62c6
VS
10275rm -f conftest.$ac_objext conftest.$ac_ext
10276fi
10277echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10279if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10280 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10281elif test $ac_cv_prog_cc_g = yes; then
10282 if test "$GCC" = yes; then
10f2d63a
VZ
10283 CFLAGS="-g -O2"
10284 else
f09359cf 10285 CFLAGS="-g"
10f2d63a 10286 fi
5c0a20c3 10287else
f09359cf
VS
10288 if test "$GCC" = yes; then
10289 CFLAGS="-O2"
10290 else
10291 CFLAGS=
10292 fi
10f2d63a 10293fi
e6cc62c6
VS
10294echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10295echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10296if test "${ac_cv_prog_cc_stdc+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 ac_cv_prog_cc_stdc=no
10300ac_save_CC=$CC
10301cat >conftest.$ac_ext <<_ACEOF
10302#line $LINENO "configure"
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308#include <stdarg.h>
10309#include <stdio.h>
10310#include <sys/types.h>
10311#include <sys/stat.h>
10312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10313struct buf { int x; };
10314FILE * (*rcsopen) (struct buf *, struct stat *, int);
10315static char *e (p, i)
10316 char **p;
10317 int i;
10318{
10319 return p[i];
10320}
10321static char *f (char * (*g) (char **, int), char **p, ...)
10322{
10323 char *s;
10324 va_list v;
10325 va_start (v,p);
10326 s = g (p, va_arg (v,int));
10327 va_end (v);
10328 return s;
10329}
10330int test (int i, double x);
10331struct s1 {int (*f) (int a);};
10332struct s2 {int (*f) (double a);};
10333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10334int argc;
10335char **argv;
10336int
10337main ()
10338{
10339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344# Don't try gcc -ansi; that turns off useful extensions and
10345# breaks some systems' header files.
10346# AIX -qlanglvl=ansi
10347# Ultrix and OSF/1 -std1
10348# HP-UX 10.20 and later -Ae
10349# HP-UX older versions -Aa -D_HPUX_SOURCE
10350# SVR4 -Xc -D__EXTENSIONS__
10351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10352do
10353 CC="$ac_save_CC $ac_arg"
10354 rm -f conftest.$ac_objext
10355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_prog_cc_stdc=$ac_arg
10367break
10368else
10369 echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
10372fi
10373rm -f conftest.$ac_objext
10374done
10375rm -f conftest.$ac_ext conftest.$ac_objext
10376CC=$ac_save_CC
10377
10378fi
10379
10380case "x$ac_cv_prog_cc_stdc" in
10381 x|xno)
10382 echo "$as_me:$LINENO: result: none needed" >&5
10383echo "${ECHO_T}none needed" >&6 ;;
10384 *)
10385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10387 CC="$CC $ac_cv_prog_cc_stdc" ;;
10388esac
10389
10390# Some people use a C++ compiler to compile C. Since we use `exit',
10391# in C++ we need to declare it. In case someone uses the same compiler
10392# for both compiling C and C++ we need to have the C++ compiler decide
10393# the declaration of exit, since it's the most demanding environment.
10394cat >conftest.$ac_ext <<_ACEOF
10395#ifndef __cplusplus
10396 choke me
10397#endif
10398_ACEOF
10399rm -f conftest.$ac_objext
10400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10401 (eval $ac_compile) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 for ac_declaration in \
71e83a03 10412 '' \
e6cc62c6
VS
10413 'extern "C" void std::exit (int) throw (); using std::exit;' \
10414 'extern "C" void std::exit (int); using std::exit;' \
10415 'extern "C" void exit (int) throw ();' \
10416 'extern "C" void exit (int);' \
10417 'void exit (int);'
10418do
10419 cat >conftest.$ac_ext <<_ACEOF
10420#line $LINENO "configure"
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
e6cc62c6 10426$ac_declaration
71e83a03 10427#include <stdlib.h>
e6cc62c6
VS
10428int
10429main ()
10430{
10431exit (42);
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext
10437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 :
10449else
10450 echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453continue
10454fi
10455rm -f conftest.$ac_objext conftest.$ac_ext
10456 cat >conftest.$ac_ext <<_ACEOF
10457#line $LINENO "configure"
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463$ac_declaration
10464int
10465main ()
10466{
10467exit (42);
10468 ;
10469 return 0;
10470}
10471_ACEOF
10472rm -f conftest.$ac_objext
10473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10474 (eval $ac_compile) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 break
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489fi
10490rm -f conftest.$ac_objext conftest.$ac_ext
10491done
10492rm -f conftest*
10493if test -n "$ac_declaration"; then
10494 echo '#ifdef __cplusplus' >>confdefs.h
10495 echo $ac_declaration >>confdefs.h
10496 echo '#endif' >>confdefs.h
10497fi
10498
10499else
10500 echo "$as_me: failed program was:" >&5
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
10503fi
10504rm -f conftest.$ac_objext conftest.$ac_ext
10505ac_ext=c
10506ac_cpp='$CPP $CPPFLAGS'
10507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10510
10511
e6cc62c6
VS
10512
10513ac_ext=c
10514ac_cpp='$CPP $CPPFLAGS'
10515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10519echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10520# On Suns, sometimes $CPP names a directory.
10521if test -n "$CPP" && test -d "$CPP"; then
10522 CPP=
10523fi
10524if test -z "$CPP"; then
e6cc62c6
VS
10525 if test "${ac_cv_prog_CPP+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527else
10528 # Double quotes because CPP needs to be expanded
10529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10530 do
10531 ac_preproc_ok=false
10532for ac_c_preproc_warn_flag in '' yes
10533do
10534 # Use a header file that comes with gcc, so configuring glibc
10535 # with a fresh cross-compiler works.
10536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537 # <limits.h> exists even on freestanding compilers.
10f2d63a 10538 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10539 # not just through cpp. "Syntax error" is here to catch this case.
10540 cat >conftest.$ac_ext <<_ACEOF
10541#line $LINENO "configure"
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
10547#ifdef __STDC__
10548# include <limits.h>
10549#else
10550# include <assert.h>
10551#endif
10552 Syntax error
10553_ACEOF
10554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } >/dev/null; then
10562 if test -s conftest.err; then
10563 ac_cpp_err=$ac_c_preproc_warn_flag
10564 else
10565 ac_cpp_err=
10566 fi
10f2d63a 10567else
e6cc62c6
VS
10568 ac_cpp_err=yes
10569fi
10570if test -z "$ac_cpp_err"; then
a0b9e27f 10571 :
247f5006 10572else
e6cc62c6
VS
10573 echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576 # Broken: fails on valid input.
10577continue
10578fi
10579rm -f conftest.err conftest.$ac_ext
10580
10581 # OK, works on sane cases. Now check whether non-existent headers
10582 # can be detected and how.
10583 cat >conftest.$ac_ext <<_ACEOF
10584#line $LINENO "configure"
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590#include <ac_nonexistent.h>
10591_ACEOF
10592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } >/dev/null; then
10600 if test -s conftest.err; then
10601 ac_cpp_err=$ac_c_preproc_warn_flag
10602 else
10603 ac_cpp_err=
10604 fi
10f2d63a 10605else
e6cc62c6 10606 ac_cpp_err=yes
579d8138 10607fi
e6cc62c6
VS
10608if test -z "$ac_cpp_err"; then
10609 # Broken: success on invalid input.
10610continue
10611else
10612 echo "$as_me: failed program was:" >&5
10613sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 # Passes both tests.
10616ac_preproc_ok=:
10617break
52127426 10618fi
e6cc62c6
VS
10619rm -f conftest.err conftest.$ac_ext
10620
10621done
10622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10623rm -f conftest.err conftest.$ac_ext
10624if $ac_preproc_ok; then
10625 break
8284b0c5 10626fi
e6cc62c6
VS
10627
10628 done
10629 ac_cv_prog_CPP=$CPP
10630
10631fi
10632 CPP=$ac_cv_prog_CPP
10633else
10634 ac_cv_prog_CPP=$CPP
10635fi
10636echo "$as_me:$LINENO: result: $CPP" >&5
10637echo "${ECHO_T}$CPP" >&6
10638ac_preproc_ok=false
10639for ac_c_preproc_warn_flag in '' yes
10640do
10641 # Use a header file that comes with gcc, so configuring glibc
10642 # with a fresh cross-compiler works.
10643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10644 # <limits.h> exists even on freestanding compilers.
10645 # On the NeXT, cc -E runs the code through the compiler's parser,
10646 # not just through cpp. "Syntax error" is here to catch this case.
10647 cat >conftest.$ac_ext <<_ACEOF
10648#line $LINENO "configure"
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
10654#ifdef __STDC__
10655# include <limits.h>
10656#else
10657# include <assert.h>
10658#endif
10659 Syntax error
10660_ACEOF
10661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } >/dev/null; then
10669 if test -s conftest.err; then
10670 ac_cpp_err=$ac_c_preproc_warn_flag
10671 else
10672 ac_cpp_err=
10673 fi
10674else
10675 ac_cpp_err=yes
10676fi
10677if test -z "$ac_cpp_err"; then
10678 :
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683 # Broken: fails on valid input.
10684continue
10685fi
10686rm -f conftest.err conftest.$ac_ext
10687
10688 # OK, works on sane cases. Now check whether non-existent headers
10689 # can be detected and how.
10690 cat >conftest.$ac_ext <<_ACEOF
10691#line $LINENO "configure"
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697#include <ac_nonexistent.h>
10698_ACEOF
10699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } >/dev/null; then
10707 if test -s conftest.err; then
10708 ac_cpp_err=$ac_c_preproc_warn_flag
10709 else
10710 ac_cpp_err=
10711 fi
10712else
10713 ac_cpp_err=yes
10714fi
10715if test -z "$ac_cpp_err"; then
10716 # Broken: success on invalid input.
10717continue
10718else
10719 echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 # Passes both tests.
10723ac_preproc_ok=:
10724break
a0b9e27f 10725fi
e6cc62c6
VS
10726rm -f conftest.err conftest.$ac_ext
10727
10728done
10729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10730rm -f conftest.err conftest.$ac_ext
10731if $ac_preproc_ok; then
10732 :
10733else
10734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10735See \`config.log' for more details." >&5
10736echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10737See \`config.log' for more details." >&2;}
10738 { (exit 1); exit 1; }; }
10739fi
10740
10741ac_ext=c
10742ac_cpp='$CPP $CPPFLAGS'
10743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10745ac_compiler_gnu=$ac_cv_c_compiler_gnu
10746
10747
10748echo "$as_me:$LINENO: checking for egrep" >&5
10749echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10750if test "${ac_cv_prog_egrep+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10752else
e6cc62c6
VS
10753 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10754 then ac_cv_prog_egrep='grep -E'
10755 else ac_cv_prog_egrep='egrep'
10756 fi
10f2d63a 10757fi
e6cc62c6
VS
10758echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10759echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10760 EGREP=$ac_cv_prog_egrep
10761
10f2d63a 10762
e6cc62c6
VS
10763if test $ac_cv_c_compiler_gnu = yes; then
10764 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10765echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10766if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10768else
10769 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10770 cat >conftest.$ac_ext <<_ACEOF
10771#line $LINENO "configure"
10772/* confdefs.h. */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h. */
10f2d63a
VZ
10777#include <sgtty.h>
10778Autoconf TIOCGETP
e6cc62c6 10779_ACEOF
10f2d63a 10780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10781 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10782 ac_cv_prog_gcc_traditional=yes
10783else
10f2d63a
VZ
10784 ac_cv_prog_gcc_traditional=no
10785fi
10786rm -f conftest*
10787
8284b0c5 10788
10f2d63a 10789 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10790 cat >conftest.$ac_ext <<_ACEOF
10791#line $LINENO "configure"
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10f2d63a
VZ
10797#include <termio.h>
10798Autoconf TCGETA
e6cc62c6 10799_ACEOF
10f2d63a 10800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10801 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10802 ac_cv_prog_gcc_traditional=yes
10803fi
10804rm -f conftest*
10805
10806 fi
10807fi
e6cc62c6
VS
10808echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10809echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10810 if test $ac_cv_prog_gcc_traditional = yes; then
10811 CC="$CC -traditional"
10812 fi
10813fi
10814
8284b0c5
MB
10815
10816
e6cc62c6
VS
10817
10818ac_ext=cc
1e487827 10819ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10823
698dcdb6 10824
ec603395 10825CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10826ac_ext=cc
10827ac_cpp='$CXXCPP $CPPFLAGS'
10828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10831if test -n "$ac_tool_prefix"; then
10832 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10833 do
10834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10836echo "$as_me:$LINENO: checking for $ac_word" >&5
10837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10838if test "${ac_cv_prog_CXX+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10840else
10841 if test -n "$CXX"; then
10842 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10843else
e6cc62c6
VS
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856done
10857
10f2d63a
VZ
10858fi
10859fi
e6cc62c6 10860CXX=$ac_cv_prog_CXX
10f2d63a 10861if test -n "$CXX"; then
e6cc62c6
VS
10862 echo "$as_me:$LINENO: result: $CXX" >&5
10863echo "${ECHO_T}$CXX" >&6
10f2d63a 10864else
e6cc62c6
VS
10865 echo "$as_me:$LINENO: result: no" >&5
10866echo "${ECHO_T}no" >&6
10f2d63a
VZ
10867fi
10868
e6cc62c6
VS
10869 test -n "$CXX" && break
10870 done
10871fi
10872if test -z "$CXX"; then
10873 ac_ct_CXX=$CXX
10874 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10875do
10876 # Extract the first word of "$ac_prog", so it can be a program name with args.
10877set dummy $ac_prog; ac_word=$2
10878echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10880if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 if test -n "$ac_ct_CXX"; then
10884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_ac_ct_CXX="$ac_prog"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10f2d63a 10898done
a0b9e27f 10899
8284b0c5 10900fi
a0b9e27f 10901fi
e6cc62c6
VS
10902ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10903if test -n "$ac_ct_CXX"; then
10904 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10905echo "${ECHO_T}$ac_ct_CXX" >&6
10906else
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
a0b9e27f 10909fi
10f2d63a 10910
e6cc62c6
VS
10911 test -n "$ac_ct_CXX" && break
10912done
10913test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10914
10915 CXX=$ac_ct_CXX
10916fi
10917
10918
10919# Provide some information about the compiler.
10920echo "$as_me:$LINENO:" \
10921 "checking for C++ compiler version" >&5
10922ac_compiler=`set X $ac_compile; echo $2`
10923{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10924 (eval $ac_compiler --version </dev/null >&5) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }
10928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10929 (eval $ac_compiler -v </dev/null >&5) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }
10933{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10934 (eval $ac_compiler -V </dev/null >&5) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }
10938
10939echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10940echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
10944 cat >conftest.$ac_ext <<_ACEOF
10945#line $LINENO "configure"
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951
10952int
10953main ()
10954{
10955#ifndef __GNUC__
10956 choke me
10957#endif
10f2d63a 10958
e6cc62c6
VS
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_compiler_gnu=yes
10976else
10977 echo "$as_me: failed program was:" >&5
10978sed 's/^/| /' conftest.$ac_ext >&5
10979
10980ac_compiler_gnu=no
10981fi
10982rm -f conftest.$ac_objext conftest.$ac_ext
10983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10984
10985fi
10986echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10988GXX=`test $ac_compiler_gnu = yes && echo yes`
10989ac_test_CXXFLAGS=${CXXFLAGS+set}
10990ac_save_CXXFLAGS=$CXXFLAGS
10991CXXFLAGS="-g"
10992echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10993echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10994if test "${ac_cv_prog_cxx_g+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 cat >conftest.$ac_ext <<_ACEOF
10998#line $LINENO "configure"
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004
11005int
11006main ()
11007{
f09359cf 11008
e6cc62c6
VS
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext
11014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
10f2d63a
VZ
11025 ac_cv_prog_cxx_g=yes
11026else
e6cc62c6
VS
11027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11029
e6cc62c6 11030ac_cv_prog_cxx_g=no
10f2d63a 11031fi
e6cc62c6
VS
11032rm -f conftest.$ac_objext conftest.$ac_ext
11033fi
11034echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11035echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11036if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11037 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11038elif test $ac_cv_prog_cxx_g = yes; then
11039 if test "$GXX" = yes; then
10f2d63a
VZ
11040 CXXFLAGS="-g -O2"
11041 else
f09359cf 11042 CXXFLAGS="-g"
10f2d63a 11043 fi
5c0a20c3 11044else
f09359cf
VS
11045 if test "$GXX" = yes; then
11046 CXXFLAGS="-O2"
11047 else
11048 CXXFLAGS=
11049 fi
10f2d63a 11050fi
e6cc62c6 11051for ac_declaration in \
71e83a03 11052 '' \
e6cc62c6
VS
11053 'extern "C" void std::exit (int) throw (); using std::exit;' \
11054 'extern "C" void std::exit (int); using std::exit;' \
11055 'extern "C" void exit (int) throw ();' \
11056 'extern "C" void exit (int);' \
11057 'void exit (int);'
11058do
11059 cat >conftest.$ac_ext <<_ACEOF
11060#line $LINENO "configure"
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
e6cc62c6 11066$ac_declaration
71e83a03 11067#include <stdlib.h>
e6cc62c6
VS
11068int
11069main ()
11070{
11071exit (42);
11072 ;
11073 return 0;
11074}
11075_ACEOF
11076rm -f conftest.$ac_objext
11077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11078 (eval $ac_compile) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -s conftest.$ac_objext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 :
11089else
11090 echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
11093continue
11094fi
11095rm -f conftest.$ac_objext conftest.$ac_ext
11096 cat >conftest.$ac_ext <<_ACEOF
11097#line $LINENO "configure"
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103$ac_declaration
11104int
11105main ()
11106{
11107exit (42);
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext
11113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114 (eval $ac_compile) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -s conftest.$ac_objext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 break
11125else
11126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
11129fi
11130rm -f conftest.$ac_objext conftest.$ac_ext
11131done
11132rm -f conftest*
11133if test -n "$ac_declaration"; then
11134 echo '#ifdef __cplusplus' >>confdefs.h
11135 echo $ac_declaration >>confdefs.h
11136 echo '#endif' >>confdefs.h
11137fi
11138
11139ac_ext=cc
11140ac_cpp='$CXXCPP $CPPFLAGS'
11141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11144
11145
10f2d63a 11146ac_ext=c
10f2d63a 11147ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11150ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11151
11152
e6cc62c6
VS
11153if test -n "$ac_tool_prefix"; then
11154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11155set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11156echo "$as_me:$LINENO: checking for $ac_word" >&5
11157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11158if test "${ac_cv_prog_RANLIB+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11160else
11161 if test -n "$RANLIB"; then
11162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11163else
e6cc62c6
VS
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175done
11176done
11177
10f2d63a
VZ
11178fi
11179fi
e6cc62c6 11180RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11181if test -n "$RANLIB"; then
e6cc62c6
VS
11182 echo "$as_me:$LINENO: result: $RANLIB" >&5
11183echo "${ECHO_T}$RANLIB" >&6
11184else
11185 echo "$as_me:$LINENO: result: no" >&5
11186echo "${ECHO_T}no" >&6
11187fi
11188
11189fi
11190if test -z "$ac_cv_prog_RANLIB"; then
11191 ac_ct_RANLIB=$RANLIB
11192 # Extract the first word of "ranlib", so it can be a program name with args.
11193set dummy ranlib; ac_word=$2
11194echo "$as_me:$LINENO: checking for $ac_word" >&5
11195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11196if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11198else
e6cc62c6
VS
11199 if test -n "$ac_ct_RANLIB"; then
11200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_ac_ct_RANLIB="ranlib"
11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214done
11215
11216 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11217fi
11218fi
11219ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11220if test -n "$ac_ct_RANLIB"; then
11221 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11222echo "${ECHO_T}$ac_ct_RANLIB" >&6
11223else
11224 echo "$as_me:$LINENO: result: no" >&5
11225echo "${ECHO_T}no" >&6
11226fi
11227
11228 RANLIB=$ac_ct_RANLIB
11229else
11230 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11231fi
11232
10f2d63a
VZ
11233
11234# Extract the first word of "ar", so it can be a program name with args.
11235set dummy ar; ac_word=$2
e6cc62c6
VS
11236echo "$as_me:$LINENO: checking for $ac_word" >&5
11237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11238if test "${ac_cv_prog_AR+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11240else
11241 if test -n "$AR"; then
11242 ac_cv_prog_AR="$AR" # Let the user override the test.
11243else
e6cc62c6
VS
11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245for as_dir in $PATH
11246do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_AR="ar"
11252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255done
11256done
11257
10f2d63a
VZ
11258 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11259fi
11260fi
e6cc62c6 11261AR=$ac_cv_prog_AR
10f2d63a 11262if test -n "$AR"; then
e6cc62c6
VS
11263 echo "$as_me:$LINENO: result: $AR" >&5
11264echo "${ECHO_T}$AR" >&6
10f2d63a 11265else
e6cc62c6
VS
11266 echo "$as_me:$LINENO: result: no" >&5
11267echo "${ECHO_T}no" >&6
10f2d63a
VZ
11268fi
11269
8284b0c5 11270
6054113a 11271# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11272# so one script is as good as another. But avoid the broken or
11273# incompatible versions:
11274# SysV /etc/install, /usr/sbin/install
11275# SunOS /usr/etc/install
11276# IRIX /sbin/install
11277# AIX /bin/install
e6cc62c6 11278# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11279# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11280# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11281# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11282# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11283echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11284echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11285if test -z "$INSTALL"; then
e6cc62c6
VS
11286if test "${ac_cv_path_install+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 # Account for people who put trailing slashes in PATH elements.
11295case $as_dir/ in
11296 ./ | .// | /cC/* | \
11297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11298 /usr/ucb/* ) ;;
11299 *)
11300 # OSF1 and SCO ODT 3.0 have their own names for install.
11301 # Don't use installbsd from OSF since it installs stuff as root
11302 # by default.
11303 for ac_prog in ginstall scoinst install; do
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11306 if test $ac_prog = install &&
11307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11308 # AIX install. It has an incompatible calling convention.
11309 :
11310 elif test $ac_prog = install &&
11311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11312 # program-specific install script used by HP pwplus--don't use.
11313 :
11314 else
11315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11316 break 3
11317 fi
11318 fi
10f2d63a 11319 done
e6cc62c6
VS
11320 done
11321 ;;
11322esac
11323done
11324
10f2d63a
VZ
11325
11326fi
11327 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11328 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11329 else
11330 # As a last resort, use the slow shell script. We don't cache a
11331 # path for INSTALL within a source directory, because that will
11332 # break other packages using the cache if that directory is
11333 # removed, or if the path is relative.
e6cc62c6 11334 INSTALL=$ac_install_sh
10f2d63a
VZ
11335 fi
11336fi
e6cc62c6
VS
11337echo "$as_me:$LINENO: result: $INSTALL" >&5
11338echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11339
11340# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11341# It thinks the first close brace ends the variable substitution.
11342test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11343
e6cc62c6 11344test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11345
10f2d63a
VZ
11346test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11347
8284b0c5 11348
1d1b75ac
VZ
11349case ${INSTALL} in
11350 /* ) # Absolute
11351 ;;
4f5a7f74
VZ
11352 ?:* ) # Drive letter, considered as absolute.
11353 ;;
3bd8fb5f 11354 *)
1d1b75ac
VZ
11355 INSTALL=`pwd`/${INSTALL} ;;
11356esac
11357
4f5a7f74
VZ
11358case ${host} in
11359 *-hp-hpux* )
11360 INSTALL_DIR="mkdir"
11361 ;;
11362
11363 *) INSTALL_DIR="$INSTALL -d"
11364 ;;
11365esac
11366
8284b0c5 11367
6054113a
GD
11368case "${host}" in
11369
b5853384 11370 powerpc-*-darwin* )
eb99ae0b
GD
11371 INSTALL_PROGRAM="cp -fp"
11372 INSTALL_DATA="cp -fp"
6054113a
GD
11373 ;;
11374 *)
11375 ;;
d6853540 11376esac
698dcdb6 11377
10f2d63a
VZ
11378# Extract the first word of "strip", so it can be a program name with args.
11379set dummy strip; ac_word=$2
e6cc62c6
VS
11380echo "$as_me:$LINENO: checking for $ac_word" >&5
11381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11382if test "${ac_cv_prog_STRIP+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11384else
11385 if test -n "$STRIP"; then
11386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11387else
e6cc62c6
VS
11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_prog_STRIP="strip"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399done
11400done
11401
10f2d63a
VZ
11402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11403fi
11404fi
e6cc62c6 11405STRIP=$ac_cv_prog_STRIP
10f2d63a 11406if test -n "$STRIP"; then
e6cc62c6
VS
11407 echo "$as_me:$LINENO: result: $STRIP" >&5
11408echo "${ECHO_T}$STRIP" >&6
10f2d63a 11409else
e6cc62c6
VS
11410 echo "$as_me:$LINENO: result: no" >&5
11411echo "${ECHO_T}no" >&6
10f2d63a
VZ
11412fi
11413
5c6fa7d2 11414
e6cc62c6
VS
11415echo "$as_me:$LINENO: checking if make is GNU make" >&5
11416echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11417if test "${wx_cv_prog_makeisgnu+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11419else
e6cc62c6 11420
414eab6d 11421 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11422 egrep -s GNU > /dev/null); then
414eab6d
VZ
11423 wx_cv_prog_makeisgnu="yes"
11424 else
11425 wx_cv_prog_makeisgnu="no"
11426 fi
11427
11428fi
e6cc62c6
VS
11429echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11430echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11431
11432if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11433 IF_GNU_MAKE=""
11434else
11435 IF_GNU_MAKE="#"
11436fi
11437
8284b0c5
MB
11438
11439
414eab6d 11440if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11441echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11442echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11443if test "${wx_cv_prog_makevpath+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11445else
e6cc62c6 11446
10f2d63a
VZ
11447cat - << EOF > confMake
11448check : file
11449 cp \$? \$@
11450 cp \$? final_file
11451EOF
11452
11453if test ! -d sub ; then
11454 mkdir sub
11455fi
11456echo dummy > sub/file
f6bcfd97 11457${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11458RESULT=$?
11459rm -f sub/file check final_file confMake
11460rmdir sub
11461if test "$RESULT" = 0; then
04e7a216 11462 wx_cv_prog_makevpath="yes"
10f2d63a 11463else
04e7a216
VZ
11464 wx_cv_prog_makevpath="no"
11465fi
11466
11467fi
e6cc62c6
VS
11468echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11469echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11470
11471if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11472{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11473You need a make-utility that is able to use the variable
11474VPATH correctly.
11475If your version of make does not support VPATH correctly,
11476please install GNU-make (possibly as gmake), and start
11477configure with the following command:
11478export MAKE=gmake; ./configure for sh-type shells
11479setenv MAKE gmake; ./configure for csh-type shells
11480Also please do remember to use gmake in this case every time
11481you are trying to compile.
e6cc62c6
VS
11482" >&5
11483echo "$as_me: error:
11484You need a make-utility that is able to use the variable
11485VPATH correctly.
11486If your version of make does not support VPATH correctly,
11487please install GNU-make (possibly as gmake), and start
11488configure with the following command:
11489export MAKE=gmake; ./configure for sh-type shells
11490setenv MAKE gmake; ./configure for csh-type shells
11491Also please do remember to use gmake in this case every time
11492you are trying to compile.
11493" >&2;}
11494 { (exit 1); exit 1; }; }
11495fi fi
10f2d63a
VZ
11496for ac_prog in 'bison -y' byacc
11497do
e6cc62c6 11498 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11499set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11500echo "$as_me:$LINENO: checking for $ac_word" >&5
11501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11502if test "${ac_cv_prog_YACC+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11504else
11505 if test -n "$YACC"; then
11506 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11507else
e6cc62c6
VS
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515 ac_cv_prog_YACC="$ac_prog"
11516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11518 fi
11519done
11520done
11521
10f2d63a
VZ
11522fi
11523fi
e6cc62c6 11524YACC=$ac_cv_prog_YACC
10f2d63a 11525if test -n "$YACC"; then
e6cc62c6
VS
11526 echo "$as_me:$LINENO: result: $YACC" >&5
11527echo "${ECHO_T}$YACC" >&6
10f2d63a 11528else
e6cc62c6
VS
11529 echo "$as_me:$LINENO: result: no" >&5
11530echo "${ECHO_T}no" >&6
10f2d63a
VZ
11531fi
11532
e6cc62c6 11533 test -n "$YACC" && break
10f2d63a
VZ
11534done
11535test -n "$YACC" || YACC="yacc"
11536
8284b0c5 11537
e6cc62c6
VS
11538for ac_prog in flex lex
11539do
11540 # Extract the first word of "$ac_prog", so it can be a program name with args.
11541set dummy $ac_prog; ac_word=$2
11542echo "$as_me:$LINENO: checking for $ac_word" >&5
11543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544if test "${ac_cv_prog_LEX+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11546else
11547 if test -n "$LEX"; then
11548 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11549else
e6cc62c6
VS
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_LEX="$ac_prog"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11560 fi
11561done
11562done
11563
10f2d63a
VZ
11564fi
11565fi
e6cc62c6 11566LEX=$ac_cv_prog_LEX
10f2d63a 11567if test -n "$LEX"; then
e6cc62c6
VS
11568 echo "$as_me:$LINENO: result: $LEX" >&5
11569echo "${ECHO_T}$LEX" >&6
10f2d63a 11570else
e6cc62c6
VS
11571 echo "$as_me:$LINENO: result: no" >&5
11572echo "${ECHO_T}no" >&6
10f2d63a
VZ
11573fi
11574
e6cc62c6
VS
11575 test -n "$LEX" && break
11576done
11577test -n "$LEX" || LEX=":"
11578
10f2d63a
VZ
11579if test -z "$LEXLIB"
11580then
e6cc62c6
VS
11581 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11582echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11583if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 ac_check_lib_save_LIBS=$LIBS
11587LIBS="-lfl $LIBS"
11588cat >conftest.$ac_ext <<_ACEOF
11589#line $LINENO "configure"
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595
11596/* Override any gcc2 internal prototype to avoid an error. */
11597#ifdef __cplusplus
11598extern "C"
11599#endif
11600/* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11602char yywrap ();
11603int
11604main ()
11605{
11606yywrap ();
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_lib_fl_yywrap=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628ac_cv_lib_fl_yywrap=no
11629fi
11630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11631LIBS=$ac_check_lib_save_LIBS
11632fi
11633echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11634echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11635if test $ac_cv_lib_fl_yywrap = yes; then
11636 LEXLIB="-lfl"
11637else
11638 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11639echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11640if test "${ac_cv_lib_l_yywrap+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 ac_check_lib_save_LIBS=$LIBS
11644LIBS="-ll $LIBS"
11645cat >conftest.$ac_ext <<_ACEOF
11646#line $LINENO "configure"
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652
247f5006 11653/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11654#ifdef __cplusplus
11655extern "C"
11656#endif
247f5006 11657/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11658 builtin and then its argument prototype would still apply. */
11659char yywrap ();
11660int
11661main ()
11662{
11663yywrap ();
11664 ;
11665 return 0;
11666}
11667_ACEOF
11668rm -f conftest.$ac_objext conftest$ac_exeext
11669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_l_yywrap=yes
11681else
11682 echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685ac_cv_lib_l_yywrap=no
11686fi
11687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688LIBS=$ac_check_lib_save_LIBS
11689fi
11690echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11691echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11692if test $ac_cv_lib_l_yywrap = yes; then
11693 LEXLIB="-ll"
11694fi
10f2d63a 11695
10f2d63a 11696fi
8284b0c5 11697
10f2d63a 11698fi
e6cc62c6
VS
11699
11700if test "x$LEX" != "x:"; then
11701 echo "$as_me:$LINENO: checking lex output file root" >&5
11702echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11703if test "${ac_cv_prog_lex_root+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 # The minimal lex program is just a single line: %%. But some broken lexes
11707# (Solaris, I think it was) want two %% lines, so accommodate them.
11708cat >conftest.l <<_ACEOF
11709%%
11710%%
11711_ACEOF
11712{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11713 (eval $LEX conftest.l) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }
11717if test -f lex.yy.c; then
11718 ac_cv_prog_lex_root=lex.yy
11719elif test -f lexyy.c; then
11720 ac_cv_prog_lex_root=lexyy
8284b0c5 11721else
e6cc62c6
VS
11722 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11723echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11724 { (exit 1); exit 1; }; }
10f2d63a 11725fi
a0b9e27f 11726fi
e6cc62c6
VS
11727echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11728echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11729rm -f conftest.l
11730LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11731
e6cc62c6
VS
11732echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11733echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11734if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11736else
e6cc62c6
VS
11737 # POSIX says lex can declare yytext either as a pointer or an array; the
11738# default is implementation-dependent. Figure out which it is, since
11739# not all implementations provide the %pointer and %array declarations.
11740ac_cv_prog_lex_yytext_pointer=no
11741echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11742ac_save_LIBS=$LIBS
11743LIBS="$LIBS $LEXLIB"
11744cat >conftest.$ac_ext <<_ACEOF
11745`cat $LEX_OUTPUT_ROOT.c`
11746_ACEOF
11747rm -f conftest.$ac_objext conftest$ac_exeext
11748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -s conftest$ac_exeext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11760else
e6cc62c6
VS
11761 echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
10f2d63a 11764fi
e6cc62c6
VS
11765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11766LIBS=$ac_save_LIBS
11767rm -f "${LEX_OUTPUT_ROOT}.c"
11768
11769fi
11770echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11771echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11772if test $ac_cv_prog_lex_yytext_pointer = yes; then
11773
11774cat >>confdefs.h <<\_ACEOF
11775#define YYTEXT_POINTER 1
11776_ACEOF
11777
a0b9e27f 11778fi
e6cc62c6
VS
11779
11780fi
11781
11782echo "$as_me:$LINENO: checking whether ln -s works" >&5
11783echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11784LN_S=$as_ln_s
11785if test "$LN_S" = "ln -s"; then
11786 echo "$as_me:$LINENO: result: yes" >&5
11787echo "${ECHO_T}yes" >&6
10f2d63a 11788else
e6cc62c6
VS
11789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11790echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11791fi
5c6fa7d2 11792
247f5006 11793
2b5f62a0
VZ
11794case "${host}" in
11795 *-pc-os2_emx | *-pc-os2-emx )
11796 LIBS="$LIBS -lstdcpp"
11797 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11798 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11799echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11800if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11802else
e6cc62c6 11803 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11804LIBS="-lcExt $LIBS"
e6cc62c6
VS
11805cat >conftest.$ac_ext <<_ACEOF
11806#line $LINENO "configure"
11807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
11812
2b5f62a0 11813/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11814#ifdef __cplusplus
11815extern "C"
11816#endif
2b5f62a0 11817/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11818 builtin and then its argument prototype would still apply. */
11819char drand48 ();
11820int
11821main ()
11822{
11823drand48 ();
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_lib_cExt_drand48=yes
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845ac_cv_lib_cExt_drand48=no
11846fi
11847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11848LIBS=$ac_check_lib_save_LIBS
11849fi
11850echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11851echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11852if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11853 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11854fi
11855
11856 else
11857 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11858 fi
11859 ;;
11860esac
11861
a0b9e27f 11862
01aa5863
VS
11863if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11864 echo "$as_me:$LINENO: checking for strings.h" >&5
11865echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11866if test "${ac_cv_header_strings_h+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 ac_cv_header_strings_h=no
11870fi
11871echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11872echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11873 if test "$ac_cv_header_strings_h" = "no"; then
11874 echo "$as_me:$LINENO: result: forced no into cache" >&5
11875echo "${ECHO_T}forced no into cache" >&6
11876 else
11877 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11878echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11879 fi
11880fi
11881echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11882echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11883if test "${ac_cv_header_stdc+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886 cat >conftest.$ac_ext <<_ACEOF
11887#line $LINENO "configure"
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893#include <stdlib.h>
11894#include <stdarg.h>
11895#include <string.h>
11896#include <float.h>
247f5006 11897
e6cc62c6
VS
11898int
11899main ()
11900{
90dd450c 11901
e6cc62c6
VS
11902 ;
11903 return 0;
11904}
11905_ACEOF
11906rm -f conftest.$ac_objext
11907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908 (eval $ac_compile) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_header_stdc=yes
8284b0c5 11919else
e6cc62c6
VS
11920 echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923ac_cv_header_stdc=no
21d1c967 11924fi
e6cc62c6 11925rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11926
e6cc62c6
VS
11927if test $ac_cv_header_stdc = yes; then
11928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11929 cat >conftest.$ac_ext <<_ACEOF
11930#line $LINENO "configure"
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936#include <string.h>
11937
11938_ACEOF
11939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11940 $EGREP "memchr" >/dev/null 2>&1; then
11941 :
11942else
11943 ac_cv_header_stdc=no
3a922bb4 11944fi
a0b9e27f 11945rm -f conftest*
e6cc62c6 11946
90dd450c 11947fi
e6cc62c6
VS
11948
11949if test $ac_cv_header_stdc = yes; then
11950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11951 cat >conftest.$ac_ext <<_ACEOF
11952#line $LINENO "configure"
11953/* confdefs.h. */
11954_ACEOF
11955cat confdefs.h >>conftest.$ac_ext
11956cat >>conftest.$ac_ext <<_ACEOF
11957/* end confdefs.h. */
11958#include <stdlib.h>
11959
11960_ACEOF
11961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11962 $EGREP "free" >/dev/null 2>&1; then
11963 :
a0b9e27f 11964else
e6cc62c6 11965 ac_cv_header_stdc=no
21d1c967 11966fi
e6cc62c6 11967rm -f conftest*
247f5006
VZ
11968
11969fi
e6cc62c6
VS
11970
11971if test $ac_cv_header_stdc = yes; then
11972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11973 if test "$cross_compiling" = yes; then
11974 :
11975else
11976 cat >conftest.$ac_ext <<_ACEOF
11977#line $LINENO "configure"
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983#include <ctype.h>
11984#if ((' ' & 0x0FF) == 0x020)
11985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11987#else
11988# define ISLOWER(c) \
11989 (('a' <= (c) && (c) <= 'i') \
11990 || ('j' <= (c) && (c) <= 'r') \
11991 || ('s' <= (c) && (c) <= 'z'))
11992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11993#endif
11994
11995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11996int
11997main ()
11998{
11999 int i;
12000 for (i = 0; i < 256; i++)
12001 if (XOR (islower (i), ISLOWER (i))
12002 || toupper (i) != TOUPPER (i))
12003 exit(2);
12004 exit (0);
12005}
12006_ACEOF
12007rm -f conftest$ac_exeext
12008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 :
a0b9e27f 12019else
e6cc62c6
VS
12020 echo "$as_me: program exited with status $ac_status" >&5
12021echo "$as_me: failed program was:" >&5
12022sed 's/^/| /' conftest.$ac_ext >&5
12023
12024( exit $ac_status )
12025ac_cv_header_stdc=no
12026fi
12027rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12028fi
12029fi
12030fi
12031echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12032echo "${ECHO_T}$ac_cv_header_stdc" >&6
12033if test $ac_cv_header_stdc = yes; then
12034
12035cat >>confdefs.h <<\_ACEOF
12036#define STDC_HEADERS 1
12037_ACEOF
12038
a0b9e27f 12039fi
e6cc62c6
VS
12040
12041# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12052 inttypes.h stdint.h unistd.h
12053do
12054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055echo "$as_me:$LINENO: checking for $ac_header" >&5
12056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12057if eval "test \"\${$as_ac_Header+set}\" = set"; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 cat >conftest.$ac_ext <<_ACEOF
12061#line $LINENO "configure"
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067$ac_includes_default
12068
12069#include <$ac_header>
12070_ACEOF
12071rm -f conftest.$ac_objext
12072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 eval "$as_ac_Header=yes"
12084else
12085 echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088eval "$as_ac_Header=no"
12089fi
12090rm -f conftest.$ac_objext conftest.$ac_ext
12091fi
12092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12094if test `eval echo '${'$as_ac_Header'}'` = yes; then
12095 cat >>confdefs.h <<_ACEOF
12096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12097_ACEOF
12098
12099fi
12100
a0b9e27f 12101done
90dd450c 12102
e6cc62c6
VS
12103
12104
12105for ac_header in strings.h
21d1c967 12106do
e6cc62c6
VS
12107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12108if eval "test \"\${$as_ac_Header+set}\" = set"; then
12109 echo "$as_me:$LINENO: checking for $ac_header" >&5
12110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111if eval "test \"\${$as_ac_Header+set}\" = set"; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113fi
12114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12116else
12117 # Is the header compilable?
12118echo "$as_me:$LINENO: checking $ac_header usability" >&5
12119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12120cat >conftest.$ac_ext <<_ACEOF
12121#line $LINENO "configure"
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127$ac_includes_default
12128#include <$ac_header>
12129_ACEOF
12130rm -f conftest.$ac_objext
12131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132 (eval $ac_compile) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -s conftest.$ac_objext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_header_compiler=yes
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147ac_header_compiler=no
12148fi
12149rm -f conftest.$ac_objext conftest.$ac_ext
12150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12151echo "${ECHO_T}$ac_header_compiler" >&6
12152
12153# Is the header present?
12154echo "$as_me:$LINENO: checking $ac_header presence" >&5
12155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12156cat >conftest.$ac_ext <<_ACEOF
12157#line $LINENO "configure"
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163#include <$ac_header>
12164_ACEOF
12165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev/null; then
12173 if test -s conftest.err; then
12174 ac_cpp_err=$ac_c_preproc_warn_flag
12175 else
12176 ac_cpp_err=
12177 fi
12178else
12179 ac_cpp_err=yes
12180fi
12181if test -z "$ac_cpp_err"; then
12182 ac_header_preproc=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 ac_header_preproc=no
12188fi
12189rm -f conftest.err conftest.$ac_ext
12190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12191echo "${ECHO_T}$ac_header_preproc" >&6
12192
12193# So? What about this header?
12194case $ac_header_compiler:$ac_header_preproc in
12195 yes:no )
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200 (
12201 cat <<\_ASBOX
12202## ------------------------------------ ##
12203## Report this to bug-autoconf@gnu.org. ##
12204## ------------------------------------ ##
12205_ASBOX
12206 ) |
12207 sed "s/^/$as_me: WARNING: /" >&2
12208 ;;
12209 no:yes )
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12216 (
12217 cat <<\_ASBOX
12218## ------------------------------------ ##
12219## Report this to bug-autoconf@gnu.org. ##
12220## ------------------------------------ ##
12221_ASBOX
12222 ) |
12223 sed "s/^/$as_me: WARNING: /" >&2
12224 ;;
12225esac
12226echo "$as_me:$LINENO: checking for $ac_header" >&5
12227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12228if eval "test \"\${$as_ac_Header+set}\" = set"; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12232fi
e6cc62c6
VS
12233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12235
a0b9e27f 12236fi
e6cc62c6
VS
12237if test `eval echo '${'$as_ac_Header'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240_ACEOF
12241
12242fi
12243
12244done
12245
e6cc62c6
VS
12246
12247
12248for ac_header in stdlib.h
12249do
12250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252 echo "$as_me:$LINENO: checking for $ac_header" >&5
12253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12254if eval "test \"\${$as_ac_Header+set}\" = set"; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256fi
12257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12259else
12260 # Is the header compilable?
12261echo "$as_me:$LINENO: checking $ac_header usability" >&5
12262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12263cat >conftest.$ac_ext <<_ACEOF
12264#line $LINENO "configure"
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270$ac_includes_default
12271#include <$ac_header>
12272_ACEOF
12273rm -f conftest.$ac_objext
12274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275 (eval $ac_compile) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_header_compiler=yes
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290ac_header_compiler=no
12291fi
12292rm -f conftest.$ac_objext conftest.$ac_ext
12293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12294echo "${ECHO_T}$ac_header_compiler" >&6
12295
12296# Is the header present?
12297echo "$as_me:$LINENO: checking $ac_header presence" >&5
12298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12299cat >conftest.$ac_ext <<_ACEOF
12300#line $LINENO "configure"
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#include <$ac_header>
12307_ACEOF
12308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } >/dev/null; then
12316 if test -s conftest.err; then
12317 ac_cpp_err=$ac_c_preproc_warn_flag
12318 else
12319 ac_cpp_err=
12320 fi
12321else
12322 ac_cpp_err=yes
12323fi
12324if test -z "$ac_cpp_err"; then
12325 ac_header_preproc=yes
12326else
12327 echo "$as_me: failed program was:" >&5
12328sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_header_preproc=no
12331fi
12332rm -f conftest.err conftest.$ac_ext
12333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12334echo "${ECHO_T}$ac_header_preproc" >&6
12335
12336# So? What about this header?
12337case $ac_header_compiler:$ac_header_preproc in
12338 yes:no )
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 (
12344 cat <<\_ASBOX
12345## ------------------------------------ ##
12346## Report this to bug-autoconf@gnu.org. ##
12347## ------------------------------------ ##
12348_ASBOX
12349 ) |
12350 sed "s/^/$as_me: WARNING: /" >&2
12351 ;;
12352 no:yes )
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12359 (
12360 cat <<\_ASBOX
12361## ------------------------------------ ##
12362## Report this to bug-autoconf@gnu.org. ##
12363## ------------------------------------ ##
12364_ASBOX
12365 ) |
12366 sed "s/^/$as_me: WARNING: /" >&2
12367 ;;
12368esac
12369echo "$as_me:$LINENO: checking for $ac_header" >&5
12370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12371if eval "test \"\${$as_ac_Header+set}\" = set"; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12373else
e6cc62c6
VS
12374 eval "$as_ac_Header=$ac_header_preproc"
12375fi
12376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12378
21d1c967 12379fi
e6cc62c6
VS
12380if test `eval echo '${'$as_ac_Header'}'` = yes; then
12381 cat >>confdefs.h <<_ACEOF
12382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12383_ACEOF
12384
12385fi
12386
21d1c967 12387done
4f14bcd8 12388
5c6fa7d2 12389
e6cc62c6 12390for ac_header in malloc.h
21d1c967 12391do
e6cc62c6
VS
12392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12393if eval "test \"\${$as_ac_Header+set}\" = set"; then
12394 echo "$as_me:$LINENO: checking for $ac_header" >&5
12395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12396if eval "test \"\${$as_ac_Header+set}\" = set"; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398fi
12399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12401else
12402 # Is the header compilable?
12403echo "$as_me:$LINENO: checking $ac_header usability" >&5
12404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12405cat >conftest.$ac_ext <<_ACEOF
12406#line $LINENO "configure"
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412$ac_includes_default
12413#include <$ac_header>
12414_ACEOF
12415rm -f conftest.$ac_objext
12416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_header_compiler=yes
12428else
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432ac_header_compiler=no
12433fi
12434rm -f conftest.$ac_objext conftest.$ac_ext
12435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12436echo "${ECHO_T}$ac_header_compiler" >&6
12437
12438# Is the header present?
12439echo "$as_me:$LINENO: checking $ac_header presence" >&5
12440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12441cat >conftest.$ac_ext <<_ACEOF
12442#line $LINENO "configure"
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448#include <$ac_header>
12449_ACEOF
12450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } >/dev/null; then
12458 if test -s conftest.err; then
12459 ac_cpp_err=$ac_c_preproc_warn_flag
12460 else
12461 ac_cpp_err=
12462 fi
12463else
12464 ac_cpp_err=yes
12465fi
12466if test -z "$ac_cpp_err"; then
12467 ac_header_preproc=yes
12468else
12469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_header_preproc=no
12473fi
12474rm -f conftest.err conftest.$ac_ext
12475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12476echo "${ECHO_T}$ac_header_preproc" >&6
12477
12478# So? What about this header?
12479case $ac_header_compiler:$ac_header_preproc in
12480 yes:no )
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12485 (
12486 cat <<\_ASBOX
12487## ------------------------------------ ##
12488## Report this to bug-autoconf@gnu.org. ##
12489## ------------------------------------ ##
12490_ASBOX
12491 ) |
12492 sed "s/^/$as_me: WARNING: /" >&2
12493 ;;
12494 no:yes )
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12501 (
12502 cat <<\_ASBOX
12503## ------------------------------------ ##
12504## Report this to bug-autoconf@gnu.org. ##
12505## ------------------------------------ ##
12506_ASBOX
12507 ) |
12508 sed "s/^/$as_me: WARNING: /" >&2
12509 ;;
12510esac
12511echo "$as_me:$LINENO: checking for $ac_header" >&5
12512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12513if eval "test \"\${$as_ac_Header+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12517fi
e6cc62c6
VS
12518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12520
21d1c967 12521fi
e6cc62c6
VS
12522if test `eval echo '${'$as_ac_Header'}'` = yes; then
12523 cat >>confdefs.h <<_ACEOF
12524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12525_ACEOF
12526
12527fi
12528
12529done
12530
12531
12532for ac_header in unistd.h
12533do
12534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535if eval "test \"\${$as_ac_Header+set}\" = set"; then
12536 echo "$as_me:$LINENO: checking for $ac_header" >&5
12537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12538if eval "test \"\${$as_ac_Header+set}\" = set"; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540fi
12541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12543else
12544 # Is the header compilable?
12545echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12547cat >conftest.$ac_ext <<_ACEOF
12548#line $LINENO "configure"
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554$ac_includes_default
12555#include <$ac_header>
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_header_compiler=yes
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574ac_header_compiler=no
12575fi
12576rm -f conftest.$ac_objext conftest.$ac_ext
12577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12578echo "${ECHO_T}$ac_header_compiler" >&6
12579
12580# Is the header present?
12581echo "$as_me:$LINENO: checking $ac_header presence" >&5
12582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12583cat >conftest.$ac_ext <<_ACEOF
12584#line $LINENO "configure"
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h. */
12590#include <$ac_header>
12591_ACEOF
12592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } >/dev/null; then
12600 if test -s conftest.err; then
12601 ac_cpp_err=$ac_c_preproc_warn_flag
12602 else
12603 ac_cpp_err=
12604 fi
a0b9e27f 12605else
e6cc62c6
VS
12606 ac_cpp_err=yes
12607fi
12608if test -z "$ac_cpp_err"; then
12609 ac_header_preproc=yes
12610else
12611 echo "$as_me: failed program was:" >&5
12612sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_header_preproc=no
12615fi
12616rm -f conftest.err conftest.$ac_ext
12617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618echo "${ECHO_T}$ac_header_preproc" >&6
12619
12620# So? What about this header?
12621case $ac_header_compiler:$ac_header_preproc in
12622 yes:no )
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12627 (
12628 cat <<\_ASBOX
12629## ------------------------------------ ##
12630## Report this to bug-autoconf@gnu.org. ##
12631## ------------------------------------ ##
12632_ASBOX
12633 ) |
12634 sed "s/^/$as_me: WARNING: /" >&2
12635 ;;
12636 no:yes )
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12643 (
12644 cat <<\_ASBOX
12645## ------------------------------------ ##
12646## Report this to bug-autoconf@gnu.org. ##
12647## ------------------------------------ ##
12648_ASBOX
12649 ) |
12650 sed "s/^/$as_me: WARNING: /" >&2
12651 ;;
12652esac
12653echo "$as_me:$LINENO: checking for $ac_header" >&5
12654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12655if eval "test \"\${$as_ac_Header+set}\" = set"; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 eval "$as_ac_Header=$ac_header_preproc"
12659fi
12660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12662
12663fi
12664if test `eval echo '${'$as_ac_Header'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12667_ACEOF
12668
d4158b5d 12669fi
e6cc62c6 12670
21d1c967 12671done
f6bcfd97 12672
e6cc62c6
VS
12673
12674for ac_header in wchar.h
12675do
12676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12677if eval "test \"\${$as_ac_Header+set}\" = set"; then
12678 echo "$as_me:$LINENO: checking for $ac_header" >&5
12679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12680if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682fi
12683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12685else
12686 # Is the header compilable?
12687echo "$as_me:$LINENO: checking $ac_header usability" >&5
12688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12689cat >conftest.$ac_ext <<_ACEOF
12690#line $LINENO "configure"
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
12696$ac_includes_default
12697#include <$ac_header>
12698_ACEOF
12699rm -f conftest.$ac_objext
12700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_header_compiler=yes
12712else
12713 echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716ac_header_compiler=no
12717fi
12718rm -f conftest.$ac_objext conftest.$ac_ext
12719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12720echo "${ECHO_T}$ac_header_compiler" >&6
12721
12722# Is the header present?
12723echo "$as_me:$LINENO: checking $ac_header presence" >&5
12724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12725cat >conftest.$ac_ext <<_ACEOF
12726#line $LINENO "configure"
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732#include <$ac_header>
12733_ACEOF
12734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } >/dev/null; then
12742 if test -s conftest.err; then
12743 ac_cpp_err=$ac_c_preproc_warn_flag
12744 else
12745 ac_cpp_err=
12746 fi
12747else
12748 ac_cpp_err=yes
12749fi
12750if test -z "$ac_cpp_err"; then
12751 ac_header_preproc=yes
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ac_header_preproc=no
12757fi
12758rm -f conftest.err conftest.$ac_ext
12759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12760echo "${ECHO_T}$ac_header_preproc" >&6
12761
12762# So? What about this header?
12763case $ac_header_compiler:$ac_header_preproc in
12764 yes:no )
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12769 (
12770 cat <<\_ASBOX
12771## ------------------------------------ ##
12772## Report this to bug-autoconf@gnu.org. ##
12773## ------------------------------------ ##
12774_ASBOX
12775 ) |
12776 sed "s/^/$as_me: WARNING: /" >&2
12777 ;;
12778 no:yes )
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12785 (
12786 cat <<\_ASBOX
12787## ------------------------------------ ##
12788## Report this to bug-autoconf@gnu.org. ##
12789## ------------------------------------ ##
12790_ASBOX
12791 ) |
12792 sed "s/^/$as_me: WARNING: /" >&2
12793 ;;
12794esac
12795echo "$as_me:$LINENO: checking for $ac_header" >&5
12796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12797if eval "test \"\${$as_ac_Header+set}\" = set"; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800 eval "$as_ac_Header=$ac_header_preproc"
12801fi
12802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12804
90dd450c 12805fi
e6cc62c6
VS
12806if test `eval echo '${'$as_ac_Header'}'` = yes; then
12807 cat >>confdefs.h <<_ACEOF
12808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12809_ACEOF
12810
12811fi
12812
12813done
90dd450c 12814
e6cc62c6
VS
12815
12816if test "$ac_cv_header_wchar_h" != "yes"; then
12817
12818for ac_header in wcstr.h
21d1c967 12819do
e6cc62c6
VS
12820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12821if eval "test \"\${$as_ac_Header+set}\" = set"; then
12822 echo "$as_me:$LINENO: checking for $ac_header" >&5
12823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12824if eval "test \"\${$as_ac_Header+set}\" = set"; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826fi
12827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12829else
12830 # Is the header compilable?
12831echo "$as_me:$LINENO: checking $ac_header usability" >&5
12832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12833cat >conftest.$ac_ext <<_ACEOF
12834#line $LINENO "configure"
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840$ac_includes_default
12841#include <$ac_header>
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_header_compiler=yes
12856else
12857 echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
12860ac_header_compiler=no
12861fi
12862rm -f conftest.$ac_objext conftest.$ac_ext
12863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12864echo "${ECHO_T}$ac_header_compiler" >&6
12865
12866# Is the header present?
12867echo "$as_me:$LINENO: checking $ac_header presence" >&5
12868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12869cat >conftest.$ac_ext <<_ACEOF
12870#line $LINENO "configure"
12871/* confdefs.h. */
12872_ACEOF
12873cat confdefs.h >>conftest.$ac_ext
12874cat >>conftest.$ac_ext <<_ACEOF
12875/* end confdefs.h. */
12876#include <$ac_header>
12877_ACEOF
12878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_c_preproc_warn_flag
12888 else
12889 ac_cpp_err=
12890 fi
12891else
12892 ac_cpp_err=yes
12893fi
12894if test -z "$ac_cpp_err"; then
12895 ac_header_preproc=yes
12896else
12897 echo "$as_me: failed program was:" >&5
12898sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 ac_header_preproc=no
12901fi
12902rm -f conftest.err conftest.$ac_ext
12903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12904echo "${ECHO_T}$ac_header_preproc" >&6
12905
12906# So? What about this header?
12907case $ac_header_compiler:$ac_header_preproc in
12908 yes:no )
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12913 (
12914 cat <<\_ASBOX
12915## ------------------------------------ ##
12916## Report this to bug-autoconf@gnu.org. ##
12917## ------------------------------------ ##
12918_ASBOX
12919 ) |
12920 sed "s/^/$as_me: WARNING: /" >&2
12921 ;;
12922 no:yes )
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12929 (
12930 cat <<\_ASBOX
12931## ------------------------------------ ##
12932## Report this to bug-autoconf@gnu.org. ##
12933## ------------------------------------ ##
12934_ASBOX
12935 ) |
12936 sed "s/^/$as_me: WARNING: /" >&2
12937 ;;
12938esac
12939echo "$as_me:$LINENO: checking for $ac_header" >&5
12940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12945fi
e6cc62c6
VS
12946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12948
4f14bcd8 12949fi
e6cc62c6
VS
12950if test `eval echo '${'$as_ac_Header'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956
12957done
12958
12959fi
12960
12961
12962for ac_header in fnmatch.h
12963do
12964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12965if eval "test \"\${$as_ac_Header+set}\" = set"; then
12966 echo "$as_me:$LINENO: checking for $ac_header" >&5
12967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12968if eval "test \"\${$as_ac_Header+set}\" = set"; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970fi
12971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12973else
12974 # Is the header compilable?
12975echo "$as_me:$LINENO: checking $ac_header usability" >&5
12976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12977cat >conftest.$ac_ext <<_ACEOF
12978#line $LINENO "configure"
12979/* confdefs.h. */
12980_ACEOF
12981cat confdefs.h >>conftest.$ac_ext
12982cat >>conftest.$ac_ext <<_ACEOF
12983/* end confdefs.h. */
12984$ac_includes_default
12985#include <$ac_header>
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_header_compiler=yes
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
13004ac_header_compiler=no
13005fi
13006rm -f conftest.$ac_objext conftest.$ac_ext
13007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13008echo "${ECHO_T}$ac_header_compiler" >&6
13009
13010# Is the header present?
13011echo "$as_me:$LINENO: checking $ac_header presence" >&5
13012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13013cat >conftest.$ac_ext <<_ACEOF
13014#line $LINENO "configure"
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
13020#include <$ac_header>
13021_ACEOF
13022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null; then
13030 if test -s conftest.err; then
13031 ac_cpp_err=$ac_c_preproc_warn_flag
13032 else
13033 ac_cpp_err=
13034 fi
13035else
13036 ac_cpp_err=yes
13037fi
13038if test -z "$ac_cpp_err"; then
13039 ac_header_preproc=yes
13040else
13041 echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_header_preproc=no
13045fi
13046rm -f conftest.err conftest.$ac_ext
13047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13048echo "${ECHO_T}$ac_header_preproc" >&6
13049
13050# So? What about this header?
13051case $ac_header_compiler:$ac_header_preproc in
13052 yes:no )
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13057 (
13058 cat <<\_ASBOX
13059## ------------------------------------ ##
13060## Report this to bug-autoconf@gnu.org. ##
13061## ------------------------------------ ##
13062_ASBOX
13063 ) |
13064 sed "s/^/$as_me: WARNING: /" >&2
13065 ;;
13066 no:yes )
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13073 (
13074 cat <<\_ASBOX
13075## ------------------------------------ ##
13076## Report this to bug-autoconf@gnu.org. ##
13077## ------------------------------------ ##
13078_ASBOX
13079 ) |
13080 sed "s/^/$as_me: WARNING: /" >&2
13081 ;;
13082esac
13083echo "$as_me:$LINENO: checking for $ac_header" >&5
13084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13085if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13087else
e6cc62c6
VS
13088 eval "$as_ac_Header=$ac_header_preproc"
13089fi
13090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092
21d1c967 13093fi
e6cc62c6
VS
13094if test `eval echo '${'$as_ac_Header'}'` = yes; then
13095 cat >>confdefs.h <<_ACEOF
13096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13097_ACEOF
13098
13099fi
13100
21d1c967 13101done
90dd450c 13102
5c6fa7d2 13103
a0b9e27f 13104if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13105
13106for ac_func in fnmatch
21d1c967 13107do
e6cc62c6
VS
13108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13109echo "$as_me:$LINENO: checking for $ac_func" >&5
13110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13111if eval "test \"\${$as_ac_var+set}\" = set"; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113else
13114 cat >conftest.$ac_ext <<_ACEOF
13115#line $LINENO "configure"
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
a0b9e27f 13121/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13122 which can conflict with char $ac_func (); below.
13123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13124 <limits.h> exists even on freestanding compilers. */
13125#ifdef __STDC__
13126# include <limits.h>
13127#else
13128# include <assert.h>
13129#endif
a0b9e27f 13130/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13131#ifdef __cplusplus
13132extern "C"
13133{
13134#endif
a0b9e27f 13135/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13136 builtin and then its argument prototype would still apply. */
13137char $ac_func ();
a0b9e27f
MB
13138/* The GNU C library defines this for functions which it implements
13139 to always fail with ENOSYS. Some functions are actually named
13140 something starting with __ and the normal name is an alias. */
13141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13142choke me
13143#else
e6cc62c6
VS
13144char (*f) () = $ac_func;
13145#endif
13146#ifdef __cplusplus
13147}
a0b9e27f
MB
13148#endif
13149
e6cc62c6
VS
13150int
13151main ()
13152{
13153return f != $ac_func;
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext conftest$ac_exeext
13159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13160 (eval $ac_link) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -s conftest$ac_exeext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 eval "$as_ac_var=yes"
13171else
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
13175eval "$as_ac_var=no"
13176fi
13177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13178fi
13179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13181if test `eval echo '${'$as_ac_var'}'` = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13184_ACEOF
32832908 13185
21d1c967
GD
13186fi
13187done
90dd450c 13188
a0b9e27f 13189fi
90dd450c 13190
e6cc62c6
VS
13191
13192for ac_header in langinfo.h
21d1c967 13193do
e6cc62c6
VS
13194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13195if eval "test \"\${$as_ac_Header+set}\" = set"; then
13196 echo "$as_me:$LINENO: checking for $ac_header" >&5
13197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13198if eval "test \"\${$as_ac_Header+set}\" = set"; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200fi
13201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13203else
13204 # Is the header compilable?
13205echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13207cat >conftest.$ac_ext <<_ACEOF
13208#line $LINENO "configure"
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214$ac_includes_default
13215#include <$ac_header>
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_header_compiler=yes
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234ac_header_compiler=no
13235fi
13236rm -f conftest.$ac_objext conftest.$ac_ext
13237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238echo "${ECHO_T}$ac_header_compiler" >&6
13239
13240# Is the header present?
13241echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13243cat >conftest.$ac_ext <<_ACEOF
13244#line $LINENO "configure"
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250#include <$ac_header>
13251_ACEOF
13252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } >/dev/null; then
13260 if test -s conftest.err; then
13261 ac_cpp_err=$ac_c_preproc_warn_flag
13262 else
13263 ac_cpp_err=
13264 fi
13265else
13266 ac_cpp_err=yes
13267fi
13268if test -z "$ac_cpp_err"; then
13269 ac_header_preproc=yes
13270else
13271 echo "$as_me: failed program was:" >&5
13272sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_header_preproc=no
13275fi
13276rm -f conftest.err conftest.$ac_ext
13277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278echo "${ECHO_T}$ac_header_preproc" >&6
13279
13280# So? What about this header?
13281case $ac_header_compiler:$ac_header_preproc in
13282 yes:no )
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13287 (
13288 cat <<\_ASBOX
13289## ------------------------------------ ##
13290## Report this to bug-autoconf@gnu.org. ##
13291## ------------------------------------ ##
13292_ASBOX
13293 ) |
13294 sed "s/^/$as_me: WARNING: /" >&2
13295 ;;
13296 no:yes )
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13303 (
13304 cat <<\_ASBOX
13305## ------------------------------------ ##
13306## Report this to bug-autoconf@gnu.org. ##
13307## ------------------------------------ ##
13308_ASBOX
13309 ) |
13310 sed "s/^/$as_me: WARNING: /" >&2
13311 ;;
13312esac
13313echo "$as_me:$LINENO: checking for $ac_header" >&5
13314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13315if eval "test \"\${$as_ac_Header+set}\" = set"; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13319fi
e6cc62c6
VS
13320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13322
4f14bcd8 13323fi
e6cc62c6
VS
13324if test `eval echo '${'$as_ac_Header'}'` = yes; then
13325 cat >>confdefs.h <<_ACEOF
13326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13327_ACEOF
13328
21d1c967 13329fi
e6cc62c6 13330
21d1c967 13331done
3a922bb4 13332
8284b0c5 13333
4f5a7f74
VZ
13334case "${host}" in
13335 *-pc-os2_emx | *-pc-os2-emx )
13336 if test $ac_cv_header_langinfo_h = "yes"; then
13337 LIBS="$LIBS -lintl"
13338 fi
13339 ;;
13340esac
1542ea39 13341
a0b9e27f
MB
13342if test "$wxUSE_GUI" = "yes"; then
13343 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13344
13345for ac_header in X11/XKBlib.h
21d1c967 13346do
e6cc62c6
VS
13347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13348if eval "test \"\${$as_ac_Header+set}\" = set"; then
13349 echo "$as_me:$LINENO: checking for $ac_header" >&5
13350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13351if eval "test \"\${$as_ac_Header+set}\" = set"; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353fi
13354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13356else
13357 # Is the header compilable?
13358echo "$as_me:$LINENO: checking $ac_header usability" >&5
13359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13360cat >conftest.$ac_ext <<_ACEOF
13361#line $LINENO "configure"
13362/* confdefs.h. */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h. */
13367$ac_includes_default
13368#include <$ac_header>
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_header_compiler=yes
13383else
13384 echo "$as_me: failed program was:" >&5
13385sed 's/^/| /' conftest.$ac_ext >&5
13386
13387ac_header_compiler=no
13388fi
13389rm -f conftest.$ac_objext conftest.$ac_ext
13390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13391echo "${ECHO_T}$ac_header_compiler" >&6
13392
13393# Is the header present?
13394echo "$as_me:$LINENO: checking $ac_header presence" >&5
13395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13396cat >conftest.$ac_ext <<_ACEOF
13397#line $LINENO "configure"
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403#include <$ac_header>
13404_ACEOF
13405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13407 ac_status=$?
13408 grep -v '^ *+' conftest.er1 >conftest.err
13409 rm -f conftest.er1
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } >/dev/null; then
13413 if test -s conftest.err; then
13414 ac_cpp_err=$ac_c_preproc_warn_flag
13415 else
13416 ac_cpp_err=
13417 fi
13418else
13419 ac_cpp_err=yes
13420fi
13421if test -z "$ac_cpp_err"; then
13422 ac_header_preproc=yes
13423else
13424 echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
13426
13427 ac_header_preproc=no
13428fi
13429rm -f conftest.err conftest.$ac_ext
13430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13431echo "${ECHO_T}$ac_header_preproc" >&6
13432
13433# So? What about this header?
13434case $ac_header_compiler:$ac_header_preproc in
13435 yes:no )
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13440 (
13441 cat <<\_ASBOX
13442## ------------------------------------ ##
13443## Report this to bug-autoconf@gnu.org. ##
13444## ------------------------------------ ##
13445_ASBOX
13446 ) |
13447 sed "s/^/$as_me: WARNING: /" >&2
13448 ;;
13449 no:yes )
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13456 (
13457 cat <<\_ASBOX
13458## ------------------------------------ ##
13459## Report this to bug-autoconf@gnu.org. ##
13460## ------------------------------------ ##
13461_ASBOX
13462 ) |
13463 sed "s/^/$as_me: WARNING: /" >&2
13464 ;;
13465esac
13466echo "$as_me:$LINENO: checking for $ac_header" >&5
13467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13468if eval "test \"\${$as_ac_Header+set}\" = set"; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13472fi
e6cc62c6
VS
13473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13475
90dd450c 13476fi
e6cc62c6
VS
13477if test `eval echo '${'$as_ac_Header'}'` = yes; then
13478 cat >>confdefs.h <<_ACEOF
13479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480_ACEOF
13481
247f5006 13482fi
e6cc62c6 13483
247f5006
VZ
13484done
13485
a0b9e27f
MB
13486 fi
13487fi
247f5006 13488
247f5006 13489
e6cc62c6
VS
13490echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13491echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13492if test "${ac_cv_c_const+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495 cat >conftest.$ac_ext <<_ACEOF
13496#line $LINENO "configure"
13497/* confdefs.h. */
13498_ACEOF
13499cat confdefs.h >>conftest.$ac_ext
13500cat >>conftest.$ac_ext <<_ACEOF
13501/* end confdefs.h. */
13502
13503int
13504main ()
13505{
13506/* FIXME: Include the comments suggested by Paul. */
13507#ifndef __cplusplus
13508 /* Ultrix mips cc rejects this. */
13509 typedef int charset[2];
13510 const charset x;
13511 /* SunOS 4.1.1 cc rejects this. */
13512 char const *const *ccp;
13513 char **p;
13514 /* NEC SVR4.0.2 mips cc rejects this. */
13515 struct point {int x, y;};
13516 static struct point const zero = {0,0};
13517 /* AIX XL C 1.02.0.0 rejects this.
13518 It does not let you subtract one const X* pointer from another in
13519 an arm of an if-expression whose if-part is not a constant
13520 expression */
13521 const char *g = "string";
13522 ccp = &g + (g ? g-g : 0);
13523 /* HPUX 7.0 cc rejects these. */
13524 ++ccp;
13525 p = (char**) ccp;
13526 ccp = (char const *const *) p;
13527 { /* SCO 3.2v4 cc rejects this. */
13528 char *t;
13529 char const *s = 0 ? (char *) 0 : (char const *) 0;
13530
13531 *t++ = 0;
13532 }
13533 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13534 int x[] = {25, 17};
13535 const int *foo = &x[0];
13536 ++foo;
13537 }
13538 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13539 typedef const int *iptr;
13540 iptr p = 0;
13541 ++p;
13542 }
13543 { /* AIX XL C 1.02.0.0 rejects this saying
13544 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13545 struct s { int j; const int *ap[3]; };
13546 struct s *b; b->j = 5;
13547 }
13548 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13549 const int foo = 10;
13550 }
13551#endif
13552
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557rm -f conftest.$ac_objext
13558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559 (eval $ac_compile) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
a0b9e27f 13569 ac_cv_c_const=yes
247f5006 13570else
e6cc62c6
VS
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574ac_cv_c_const=no
247f5006 13575fi
e6cc62c6 13576rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13577fi
e6cc62c6
VS
13578echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13579echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13580if test $ac_cv_c_const = no; then
e6cc62c6
VS
13581
13582cat >>confdefs.h <<\_ACEOF
13583#define const
13584_ACEOF
10f2d63a 13585
90dd450c 13586fi
81809c07 13587
e6cc62c6
VS
13588echo "$as_me:$LINENO: checking for inline" >&5
13589echo $ECHO_N "checking for inline... $ECHO_C" >&6
13590if test "${ac_cv_c_inline+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13592else
a0b9e27f
MB
13593 ac_cv_c_inline=no
13594for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13595 cat >conftest.$ac_ext <<_ACEOF
13596#line $LINENO "configure"
13597/* confdefs.h. */
13598_ACEOF
13599cat confdefs.h >>conftest.$ac_ext
13600cat >>conftest.$ac_ext <<_ACEOF
13601/* end confdefs.h. */
13602#ifndef __cplusplus
13603typedef int foo_t;
13604static $ac_kw foo_t static_foo () {return 0; }
13605$ac_kw foo_t foo () {return 0; }
13606#endif
a0b9e27f 13607
e6cc62c6
VS
13608_ACEOF
13609rm -f conftest.$ac_objext
13610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
a0b9e27f 13621 ac_cv_c_inline=$ac_kw; break
247f5006 13622else
e6cc62c6
VS
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
247f5006 13626fi
e6cc62c6 13627rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13628done
247f5006
VZ
13629
13630fi
e6cc62c6
VS
13631echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13632echo "${ECHO_T}$ac_cv_c_inline" >&6
13633case $ac_cv_c_inline in
a0b9e27f 13634 inline | yes) ;;
e6cc62c6
VS
13635 no)
13636cat >>confdefs.h <<\_ACEOF
13637#define inline
13638_ACEOF
a0b9e27f 13639 ;;
e6cc62c6 13640 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13641#define inline $ac_cv_c_inline
e6cc62c6 13642_ACEOF
a0b9e27f
MB
13643 ;;
13644esac
247f5006 13645
247f5006 13646
e6cc62c6
VS
13647echo "$as_me:$LINENO: checking for char" >&5
13648echo $ECHO_N "checking for char... $ECHO_C" >&6
13649if test "${ac_cv_type_char+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652 cat >conftest.$ac_ext <<_ACEOF
13653#line $LINENO "configure"
13654/* confdefs.h. */
13655_ACEOF
13656cat confdefs.h >>conftest.$ac_ext
13657cat >>conftest.$ac_ext <<_ACEOF
13658/* end confdefs.h. */
13659$ac_includes_default
13660int
13661main ()
13662{
13663if ((char *) 0)
13664 return 0;
13665if (sizeof (char))
13666 return 0;
13667 ;
13668 return 0;
13669}
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673 (eval $ac_compile) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -s conftest.$ac_objext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_type_char=yes
13684else
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
13688ac_cv_type_char=no
13689fi
13690rm -f conftest.$ac_objext conftest.$ac_ext
13691fi
13692echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13693echo "${ECHO_T}$ac_cv_type_char" >&6
13694
13695echo "$as_me:$LINENO: checking size of char" >&5
13696echo $ECHO_N "checking size of char... $ECHO_C" >&6
13697if test "${ac_cv_sizeof_char+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 if test "$ac_cv_type_char" = yes; then
13701 # The cast to unsigned long works around a bug in the HP C Compiler
13702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13704 # This bug is HP SR number 8606223364.
a0b9e27f 13705 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13706 # Depending upon the size, compute the lo and hi bounds.
13707cat >conftest.$ac_ext <<_ACEOF
13708#line $LINENO "configure"
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
13713/* end confdefs.h. */
13714$ac_includes_default
13715int
13716main ()
13717{
13718static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13719test_array [0] = 0
13720
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_lo=0 ac_mid=0
13738 while :; do
13739 cat >conftest.$ac_ext <<_ACEOF
13740#line $LINENO "configure"
13741/* confdefs.h. */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
13745/* end confdefs.h. */
13746$ac_includes_default
13747int
13748main ()
13749{
13750static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13751test_array [0] = 0
13752
13753 ;
13754 return 0;
13755}
13756_ACEOF
13757rm -f conftest.$ac_objext
13758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_hi=$ac_mid; break
13770else
13771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774ac_lo=`expr $ac_mid + 1`
13775 if test $ac_lo -le $ac_mid; then
13776 ac_lo= ac_hi=
13777 break
13778 fi
13779 ac_mid=`expr 2 '*' $ac_mid + 1`
13780fi
13781rm -f conftest.$ac_objext conftest.$ac_ext
13782 done
a0b9e27f 13783else
e6cc62c6
VS
13784 echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787cat >conftest.$ac_ext <<_ACEOF
13788#line $LINENO "configure"
13789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
13794$ac_includes_default
13795int
13796main ()
13797{
13798static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13799test_array [0] = 0
13800
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext
13806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_hi=-1 ac_mid=-1
13818 while :; do
13819 cat >conftest.$ac_ext <<_ACEOF
13820#line $LINENO "configure"
13821/* confdefs.h. */
13822_ACEOF
13823cat confdefs.h >>conftest.$ac_ext
13824cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */
13826$ac_includes_default
13827int
13828main ()
13829{
13830static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13831test_array [0] = 0
13832
13833 ;
13834 return 0;
13835}
13836_ACEOF
13837rm -f conftest.$ac_objext
13838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_lo=$ac_mid; break
13850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854ac_hi=`expr '(' $ac_mid ')' - 1`
13855 if test $ac_mid -le $ac_hi; then
13856 ac_lo= ac_hi=
13857 break
13858 fi
13859 ac_mid=`expr 2 '*' $ac_mid`
13860fi
13861rm -f conftest.$ac_objext conftest.$ac_ext
13862 done
13863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
13867ac_lo= ac_hi=
13868fi
13869rm -f conftest.$ac_objext conftest.$ac_ext
13870fi
13871rm -f conftest.$ac_objext conftest.$ac_ext
13872# Binary search between lo and hi bounds.
13873while test "x$ac_lo" != "x$ac_hi"; do
13874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13875 cat >conftest.$ac_ext <<_ACEOF
13876#line $LINENO "configure"
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882$ac_includes_default
13883int
13884main ()
13885{
13886static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13887test_array [0] = 0
13888
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -s conftest.$ac_objext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_hi=$ac_mid
13906else
13907 echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
13910ac_lo=`expr '(' $ac_mid ')' + 1`
13911fi
13912rm -f conftest.$ac_objext conftest.$ac_ext
13913done
13914case $ac_lo in
13915?*) ac_cv_sizeof_char=$ac_lo;;
13916'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13917See \`config.log' for more details." >&5
13918echo "$as_me: error: cannot compute sizeof (char), 77
13919See \`config.log' for more details." >&2;}
13920 { (exit 1); exit 1; }; } ;;
13921esac
13922else
13923 if test "$cross_compiling" = yes; then
13924 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13925See \`config.log' for more details." >&5
13926echo "$as_me: error: cannot run test program while cross compiling
13927See \`config.log' for more details." >&2;}
13928 { (exit 1); exit 1; }; }
13929else
13930 cat >conftest.$ac_ext <<_ACEOF
13931#line $LINENO "configure"
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937$ac_includes_default
13938long longval () { return (long) (sizeof (char)); }
13939unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13940#include <stdio.h>
e6cc62c6
VS
13941#include <stdlib.h>
13942int
13943main ()
247f5006 13944{
e6cc62c6
VS
13945
13946 FILE *f = fopen ("conftest.val", "w");
13947 if (! f)
13948 exit (1);
13949 if (((long) (sizeof (char))) < 0)
13950 {
13951 long i = longval ();
13952 if (i != ((long) (sizeof (char))))
13953 exit (1);
13954 fprintf (f, "%ld\n", i);
13955 }
13956 else
13957 {
13958 unsigned long i = ulongval ();
13959 if (i != ((long) (sizeof (char))))
13960 exit (1);
13961 fprintf (f, "%lu\n", i);
13962 }
13963 exit (ferror (f) || fclose (f) != 0);
13964
13965 ;
13966 return 0;
52127426 13967}
e6cc62c6
VS
13968_ACEOF
13969rm -f conftest$ac_exeext
13970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_cv_sizeof_char=`cat conftest.val`
13981else
13982 echo "$as_me: program exited with status $ac_status" >&5
13983echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986( exit $ac_status )
13987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13988See \`config.log' for more details." >&5
13989echo "$as_me: error: cannot compute sizeof (char), 77
13990See \`config.log' for more details." >&2;}
13991 { (exit 1); exit 1; }; }
13992fi
13993rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13994fi
13995fi
13996rm -f conftest.val
247f5006 13997else
a0b9e27f 13998 ac_cv_sizeof_char=0
247f5006 13999fi
247f5006 14000fi
e6cc62c6
VS
14001echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14002echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14003cat >>confdefs.h <<_ACEOF
14004#define SIZEOF_CHAR $ac_cv_sizeof_char
14005_ACEOF
14006
14007
14008echo "$as_me:$LINENO: checking for short" >&5
14009echo $ECHO_N "checking for short... $ECHO_C" >&6
14010if test "${ac_cv_type_short+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 cat >conftest.$ac_ext <<_ACEOF
14014#line $LINENO "configure"
14015/* confdefs.h. */
14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
14020$ac_includes_default
14021int
14022main ()
14023{
14024if ((short *) 0)
14025 return 0;
14026if (sizeof (short))
14027 return 0;
14028 ;
14029 return 0;
14030}
14031_ACEOF
14032rm -f conftest.$ac_objext
14033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -s conftest.$ac_objext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_type_short=yes
14045else
14046 echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049ac_cv_type_short=no
14050fi
14051rm -f conftest.$ac_objext conftest.$ac_ext
14052fi
14053echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14054echo "${ECHO_T}$ac_cv_type_short" >&6
14055
14056echo "$as_me:$LINENO: checking size of short" >&5
14057echo $ECHO_N "checking size of short... $ECHO_C" >&6
14058if test "${ac_cv_sizeof_short+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
14061 if test "$ac_cv_type_short" = yes; then
14062 # The cast to unsigned long works around a bug in the HP C Compiler
14063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065 # This bug is HP SR number 8606223364.
14066 if test "$cross_compiling" = yes; then
14067 # Depending upon the size, compute the lo and hi bounds.
14068cat >conftest.$ac_ext <<_ACEOF
14069#line $LINENO "configure"
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075$ac_includes_default
14076int
14077main ()
14078{
14079static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14080test_array [0] = 0
247f5006 14081
e6cc62c6
VS
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext
14087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_lo=0 ac_mid=0
14099 while :; do
14100 cat >conftest.$ac_ext <<_ACEOF
14101#line $LINENO "configure"
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
14106/* end confdefs.h. */
14107$ac_includes_default
14108int
14109main ()
14110{
14111static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14112test_array [0] = 0
14113
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118rm -f conftest.$ac_objext
14119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120 (eval $ac_compile) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_hi=$ac_mid; break
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_lo=`expr $ac_mid + 1`
14136 if test $ac_lo -le $ac_mid; then
14137 ac_lo= ac_hi=
14138 break
14139 fi
14140 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14141fi
e6cc62c6
VS
14142rm -f conftest.$ac_objext conftest.$ac_ext
14143 done
14144else
14145 echo "$as_me: failed program was:" >&5
14146sed 's/^/| /' conftest.$ac_ext >&5
14147
14148cat >conftest.$ac_ext <<_ACEOF
14149#line $LINENO "configure"
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155$ac_includes_default
14156int
14157main ()
14158{
14159static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14160test_array [0] = 0
247f5006 14161
e6cc62c6
VS
14162 ;
14163 return 0;
14164}
14165_ACEOF
14166rm -f conftest.$ac_objext
14167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168 (eval $ac_compile) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_hi=-1 ac_mid=-1
14179 while :; do
14180 cat >conftest.$ac_ext <<_ACEOF
14181#line $LINENO "configure"
14182/* confdefs.h. */
14183_ACEOF
14184cat confdefs.h >>conftest.$ac_ext
14185cat >>conftest.$ac_ext <<_ACEOF
14186/* end confdefs.h. */
14187$ac_includes_default
14188int
14189main ()
14190{
14191static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14192test_array [0] = 0
247f5006 14193
e6cc62c6
VS
14194 ;
14195 return 0;
14196}
14197_ACEOF
14198rm -f conftest.$ac_objext
14199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_lo=$ac_mid; break
14211else
14212 echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
14215ac_hi=`expr '(' $ac_mid ')' - 1`
14216 if test $ac_mid -le $ac_hi; then
14217 ac_lo= ac_hi=
14218 break
14219 fi
14220 ac_mid=`expr 2 '*' $ac_mid`
14221fi
14222rm -f conftest.$ac_objext conftest.$ac_ext
14223 done
247f5006 14224else
e6cc62c6
VS
14225 echo "$as_me: failed program was:" >&5
14226sed 's/^/| /' conftest.$ac_ext >&5
14227
14228ac_lo= ac_hi=
14229fi
14230rm -f conftest.$ac_objext conftest.$ac_ext
14231fi
14232rm -f conftest.$ac_objext conftest.$ac_ext
14233# Binary search between lo and hi bounds.
14234while test "x$ac_lo" != "x$ac_hi"; do
14235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14236 cat >conftest.$ac_ext <<_ACEOF
14237#line $LINENO "configure"
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
14242/* end confdefs.h. */
14243$ac_includes_default
14244int
14245main ()
14246{
14247static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14248test_array [0] = 0
14249
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254rm -f conftest.$ac_objext
14255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_hi=$ac_mid
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
14271ac_lo=`expr '(' $ac_mid ')' + 1`
14272fi
14273rm -f conftest.$ac_objext conftest.$ac_ext
14274done
14275case $ac_lo in
14276?*) ac_cv_sizeof_short=$ac_lo;;
14277'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14278See \`config.log' for more details." >&5
14279echo "$as_me: error: cannot compute sizeof (short), 77
14280See \`config.log' for more details." >&2;}
14281 { (exit 1); exit 1; }; } ;;
14282esac
247f5006 14283else
e6cc62c6
VS
14284 if test "$cross_compiling" = yes; then
14285 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14286See \`config.log' for more details." >&5
14287echo "$as_me: error: cannot run test program while cross compiling
14288See \`config.log' for more details." >&2;}
14289 { (exit 1); exit 1; }; }
14290else
14291 cat >conftest.$ac_ext <<_ACEOF
14292#line $LINENO "configure"
14293/* confdefs.h. */
14294_ACEOF
14295cat confdefs.h >>conftest.$ac_ext
14296cat >>conftest.$ac_ext <<_ACEOF
14297/* end confdefs.h. */
14298$ac_includes_default
14299long longval () { return (long) (sizeof (short)); }
14300unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14301#include <stdio.h>
e6cc62c6
VS
14302#include <stdlib.h>
14303int
14304main ()
a0b9e27f 14305{
e6cc62c6
VS
14306
14307 FILE *f = fopen ("conftest.val", "w");
14308 if (! f)
14309 exit (1);
14310 if (((long) (sizeof (short))) < 0)
14311 {
14312 long i = longval ();
14313 if (i != ((long) (sizeof (short))))
14314 exit (1);
14315 fprintf (f, "%ld\n", i);
14316 }
14317 else
14318 {
14319 unsigned long i = ulongval ();
14320 if (i != ((long) (sizeof (short))))
14321 exit (1);
14322 fprintf (f, "%lu\n", i);
14323 }
14324 exit (ferror (f) || fclose (f) != 0);
14325
14326 ;
14327 return 0;
a0b9e27f 14328}
e6cc62c6
VS
14329_ACEOF
14330rm -f conftest$ac_exeext
14331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332 (eval $ac_link) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_sizeof_short=`cat conftest.val`
14342else
14343 echo "$as_me: program exited with status $ac_status" >&5
14344echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
14347( exit $ac_status )
14348{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14349See \`config.log' for more details." >&5
14350echo "$as_me: error: cannot compute sizeof (short), 77
14351See \`config.log' for more details." >&2;}
14352 { (exit 1); exit 1; }; }
14353fi
14354rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14355fi
14356fi
14357rm -f conftest.val
247f5006 14358else
a0b9e27f 14359 ac_cv_sizeof_short=0
247f5006 14360fi
247f5006 14361fi
e6cc62c6
VS
14362echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14363echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14364cat >>confdefs.h <<_ACEOF
14365#define SIZEOF_SHORT $ac_cv_sizeof_short
14366_ACEOF
14367
14368
14369echo "$as_me:$LINENO: checking for void *" >&5
14370echo $ECHO_N "checking for void *... $ECHO_C" >&6
14371if test "${ac_cv_type_void_p+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373else
14374 cat >conftest.$ac_ext <<_ACEOF
14375#line $LINENO "configure"
14376/* confdefs.h. */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
14380/* end confdefs.h. */
14381$ac_includes_default
14382int
14383main ()
14384{
14385if ((void * *) 0)
14386 return 0;
14387if (sizeof (void *))
14388 return 0;
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393rm -f conftest.$ac_objext
14394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -s conftest.$ac_objext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_cv_type_void_p=yes
14406else
14407 echo "$as_me: failed program was:" >&5
14408sed 's/^/| /' conftest.$ac_ext >&5
14409
14410ac_cv_type_void_p=no
14411fi
14412rm -f conftest.$ac_objext conftest.$ac_ext
14413fi
14414echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14415echo "${ECHO_T}$ac_cv_type_void_p" >&6
14416
14417echo "$as_me:$LINENO: checking size of void *" >&5
14418echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14419if test "${ac_cv_sizeof_void_p+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422 if test "$ac_cv_type_void_p" = yes; then
14423 # The cast to unsigned long works around a bug in the HP C Compiler
14424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14426 # This bug is HP SR number 8606223364.
14427 if test "$cross_compiling" = yes; then
14428 # Depending upon the size, compute the lo and hi bounds.
14429cat >conftest.$ac_ext <<_ACEOF
14430#line $LINENO "configure"
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436$ac_includes_default
14437int
14438main ()
14439{
14440static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14441test_array [0] = 0
14442
14443 ;
14444 return 0;
14445}
14446_ACEOF
14447rm -f conftest.$ac_objext
14448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14449 (eval $ac_compile) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -s conftest.$ac_objext'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_lo=0 ac_mid=0
14460 while :; do
14461 cat >conftest.$ac_ext <<_ACEOF
14462#line $LINENO "configure"
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469int
14470main ()
14471{
14472static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14473test_array [0] = 0
247f5006 14474
e6cc62c6
VS
14475 ;
14476 return 0;
14477}
14478_ACEOF
14479rm -f conftest.$ac_objext
14480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_hi=$ac_mid; break
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496ac_lo=`expr $ac_mid + 1`
14497 if test $ac_lo -le $ac_mid; then
14498 ac_lo= ac_hi=
14499 break
14500 fi
14501 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14502fi
e6cc62c6
VS
14503rm -f conftest.$ac_objext conftest.$ac_ext
14504 done
14505else
14506 echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509cat >conftest.$ac_ext <<_ACEOF
14510#line $LINENO "configure"
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516$ac_includes_default
14517int
14518main ()
14519{
14520static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14521test_array [0] = 0
247f5006 14522
e6cc62c6
VS
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527rm -f conftest.$ac_objext
14528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_hi=-1 ac_mid=-1
14540 while :; do
14541 cat >conftest.$ac_ext <<_ACEOF
14542#line $LINENO "configure"
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548$ac_includes_default
14549int
14550main ()
14551{
14552static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14553test_array [0] = 0
247f5006 14554
e6cc62c6
VS
14555 ;
14556 return 0;
14557}
14558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14561 (eval $ac_compile) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -s conftest.$ac_objext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_lo=$ac_mid; break
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576ac_hi=`expr '(' $ac_mid ')' - 1`
14577 if test $ac_mid -le $ac_hi; then
14578 ac_lo= ac_hi=
14579 break
14580 fi
14581 ac_mid=`expr 2 '*' $ac_mid`
14582fi
14583rm -f conftest.$ac_objext conftest.$ac_ext
14584 done
a0b9e27f 14585else
e6cc62c6
VS
14586 echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589ac_lo= ac_hi=
14590fi
14591rm -f conftest.$ac_objext conftest.$ac_ext
14592fi
14593rm -f conftest.$ac_objext conftest.$ac_ext
14594# Binary search between lo and hi bounds.
14595while test "x$ac_lo" != "x$ac_hi"; do
14596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14597 cat >conftest.$ac_ext <<_ACEOF
14598#line $LINENO "configure"
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605int
14606main ()
14607{
14608static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14609test_array [0] = 0
14610
14611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_hi=$ac_mid
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_lo=`expr '(' $ac_mid ')' + 1`
14633fi
14634rm -f conftest.$ac_objext conftest.$ac_ext
14635done
14636case $ac_lo in
14637?*) ac_cv_sizeof_void_p=$ac_lo;;
14638'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14639See \`config.log' for more details." >&5
14640echo "$as_me: error: cannot compute sizeof (void *), 77
14641See \`config.log' for more details." >&2;}
14642 { (exit 1); exit 1; }; } ;;
14643esac
247f5006 14644else
e6cc62c6
VS
14645 if test "$cross_compiling" = yes; then
14646 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14647See \`config.log' for more details." >&5
14648echo "$as_me: error: cannot run test program while cross compiling
14649See \`config.log' for more details." >&2;}
14650 { (exit 1); exit 1; }; }
14651else
14652 cat >conftest.$ac_ext <<_ACEOF
14653#line $LINENO "configure"
14654/* confdefs.h. */
14655_ACEOF
14656cat confdefs.h >>conftest.$ac_ext
14657cat >>conftest.$ac_ext <<_ACEOF
14658/* end confdefs.h. */
14659$ac_includes_default
14660long longval () { return (long) (sizeof (void *)); }
14661unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14662#include <stdio.h>
e6cc62c6
VS
14663#include <stdlib.h>
14664int
14665main ()
247f5006 14666{
e6cc62c6
VS
14667
14668 FILE *f = fopen ("conftest.val", "w");
14669 if (! f)
14670 exit (1);
14671 if (((long) (sizeof (void *))) < 0)
14672 {
14673 long i = longval ();
14674 if (i != ((long) (sizeof (void *))))
14675 exit (1);
14676 fprintf (f, "%ld\n", i);
14677 }
14678 else
14679 {
14680 unsigned long i = ulongval ();
14681 if (i != ((long) (sizeof (void *))))
14682 exit (1);
14683 fprintf (f, "%lu\n", i);
14684 }
14685 exit (ferror (f) || fclose (f) != 0);
14686
14687 ;
14688 return 0;
5c6fa7d2 14689}
e6cc62c6
VS
14690_ACEOF
14691rm -f conftest$ac_exeext
14692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693 (eval $ac_link) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_cv_sizeof_void_p=`cat conftest.val`
14703else
14704 echo "$as_me: program exited with status $ac_status" >&5
14705echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708( exit $ac_status )
14709{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14710See \`config.log' for more details." >&5
14711echo "$as_me: error: cannot compute sizeof (void *), 77
14712See \`config.log' for more details." >&2;}
14713 { (exit 1); exit 1; }; }
14714fi
14715rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14716fi
14717fi
14718rm -f conftest.val
a0b9e27f 14719else
a0b9e27f
MB
14720 ac_cv_sizeof_void_p=0
14721fi
a0b9e27f 14722fi
e6cc62c6
VS
14723echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14724echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14725cat >>confdefs.h <<_ACEOF
14726#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14727_ACEOF
14728
14729
14730echo "$as_me:$LINENO: checking for int" >&5
14731echo $ECHO_N "checking for int... $ECHO_C" >&6
14732if test "${ac_cv_type_int+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734else
14735 cat >conftest.$ac_ext <<_ACEOF
14736#line $LINENO "configure"
14737/* confdefs.h. */
14738_ACEOF
14739cat confdefs.h >>conftest.$ac_ext
14740cat >>conftest.$ac_ext <<_ACEOF
14741/* end confdefs.h. */
14742$ac_includes_default
14743int
14744main ()
14745{
14746if ((int *) 0)
14747 return 0;
14748if (sizeof (int))
14749 return 0;
14750 ;
14751 return 0;
14752}
14753_ACEOF
14754rm -f conftest.$ac_objext
14755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14756 (eval $ac_compile) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_type_int=yes
14767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771ac_cv_type_int=no
14772fi
14773rm -f conftest.$ac_objext conftest.$ac_ext
14774fi
14775echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14776echo "${ECHO_T}$ac_cv_type_int" >&6
14777
14778echo "$as_me:$LINENO: checking size of int" >&5
14779echo $ECHO_N "checking size of int... $ECHO_C" >&6
14780if test "${ac_cv_sizeof_int+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 if test "$ac_cv_type_int" = yes; then
14784 # The cast to unsigned long works around a bug in the HP C Compiler
14785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14787 # This bug is HP SR number 8606223364.
14788 if test "$cross_compiling" = yes; then
14789 # Depending upon the size, compute the lo and hi bounds.
14790cat >conftest.$ac_ext <<_ACEOF
14791#line $LINENO "configure"
14792/* confdefs.h. */
14793_ACEOF
14794cat confdefs.h >>conftest.$ac_ext
14795cat >>conftest.$ac_ext <<_ACEOF
14796/* end confdefs.h. */
14797$ac_includes_default
14798int
14799main ()
14800{
14801static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14802test_array [0] = 0
8284b0c5 14803
e6cc62c6
VS
14804 ;
14805 return 0;
14806}
14807_ACEOF
14808rm -f conftest.$ac_objext
14809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14810 (eval $ac_compile) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_lo=0 ac_mid=0
14821 while :; do
14822 cat >conftest.$ac_ext <<_ACEOF
14823#line $LINENO "configure"
14824/* confdefs.h. */
14825_ACEOF
14826cat confdefs.h >>conftest.$ac_ext
14827cat >>conftest.$ac_ext <<_ACEOF
14828/* end confdefs.h. */
14829$ac_includes_default
14830int
14831main ()
14832{
14833static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14834test_array [0] = 0
14835
14836 ;
14837 return 0;
14838}
14839_ACEOF
14840rm -f conftest.$ac_objext
14841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_hi=$ac_mid; break
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857ac_lo=`expr $ac_mid + 1`
14858 if test $ac_lo -le $ac_mid; then
14859 ac_lo= ac_hi=
14860 break
14861 fi
14862 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14863fi
e6cc62c6
VS
14864rm -f conftest.$ac_objext conftest.$ac_ext
14865 done
14866else
14867 echo "$as_me: failed program was:" >&5
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870cat >conftest.$ac_ext <<_ACEOF
14871#line $LINENO "configure"
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877$ac_includes_default
14878int
14879main ()
14880{
14881static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14882test_array [0] = 0
247f5006 14883
e6cc62c6
VS
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_hi=-1 ac_mid=-1
14901 while :; do
14902 cat >conftest.$ac_ext <<_ACEOF
14903#line $LINENO "configure"
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909$ac_includes_default
14910int
14911main ()
14912{
14913static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14914test_array [0] = 0
247f5006 14915
e6cc62c6
VS
14916 ;
14917 return 0;
14918}
14919_ACEOF
14920rm -f conftest.$ac_objext
14921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_lo=$ac_mid; break
14933else
14934 echo "$as_me: failed program was:" >&5
14935sed 's/^/| /' conftest.$ac_ext >&5
14936
14937ac_hi=`expr '(' $ac_mid ')' - 1`
14938 if test $ac_mid -le $ac_hi; then
14939 ac_lo= ac_hi=
14940 break
14941 fi
14942 ac_mid=`expr 2 '*' $ac_mid`
14943fi
14944rm -f conftest.$ac_objext conftest.$ac_ext
14945 done
247f5006 14946else
e6cc62c6
VS
14947 echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950ac_lo= ac_hi=
14951fi
14952rm -f conftest.$ac_objext conftest.$ac_ext
14953fi
14954rm -f conftest.$ac_objext conftest.$ac_ext
14955# Binary search between lo and hi bounds.
14956while test "x$ac_lo" != "x$ac_hi"; do
14957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14958 cat >conftest.$ac_ext <<_ACEOF
14959#line $LINENO "configure"
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965$ac_includes_default
14966int
14967main ()
14968{
14969static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14970test_array [0] = 0
14971
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext
14977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_hi=$ac_mid
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993ac_lo=`expr '(' $ac_mid ')' + 1`
14994fi
14995rm -f conftest.$ac_objext conftest.$ac_ext
14996done
14997case $ac_lo in
14998?*) ac_cv_sizeof_int=$ac_lo;;
14999'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15000See \`config.log' for more details." >&5
15001echo "$as_me: error: cannot compute sizeof (int), 77
15002See \`config.log' for more details." >&2;}
15003 { (exit 1); exit 1; }; } ;;
15004esac
a0b9e27f 15005else
e6cc62c6
VS
15006 if test "$cross_compiling" = yes; then
15007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15008See \`config.log' for more details." >&5
15009echo "$as_me: error: cannot run test program while cross compiling
15010See \`config.log' for more details." >&2;}
15011 { (exit 1); exit 1; }; }
15012else
15013 cat >conftest.$ac_ext <<_ACEOF
15014#line $LINENO "configure"
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020$ac_includes_default
15021long longval () { return (long) (sizeof (int)); }
15022unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15023#include <stdio.h>
e6cc62c6
VS
15024#include <stdlib.h>
15025int
15026main ()
247f5006 15027{
e6cc62c6
VS
15028
15029 FILE *f = fopen ("conftest.val", "w");
15030 if (! f)
15031 exit (1);
15032 if (((long) (sizeof (int))) < 0)
15033 {
15034 long i = longval ();
15035 if (i != ((long) (sizeof (int))))
15036 exit (1);
15037 fprintf (f, "%ld\n", i);
15038 }
15039 else
15040 {
15041 unsigned long i = ulongval ();
15042 if (i != ((long) (sizeof (int))))
15043 exit (1);
15044 fprintf (f, "%lu\n", i);
15045 }
15046 exit (ferror (f) || fclose (f) != 0);
15047
15048 ;
15049 return 0;
247f5006 15050}
e6cc62c6
VS
15051_ACEOF
15052rm -f conftest$ac_exeext
15053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15054 (eval $ac_link) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_sizeof_int=`cat conftest.val`
15064else
15065 echo "$as_me: program exited with status $ac_status" >&5
15066echo "$as_me: failed program was:" >&5
15067sed 's/^/| /' conftest.$ac_ext >&5
15068
15069( exit $ac_status )
15070{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15071See \`config.log' for more details." >&5
15072echo "$as_me: error: cannot compute sizeof (int), 77
15073See \`config.log' for more details." >&2;}
15074 { (exit 1); exit 1; }; }
15075fi
15076rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15077fi
15078fi
15079rm -f conftest.val
6f72b082 15080else
a0b9e27f 15081 ac_cv_sizeof_int=0
21d1c967 15082fi
698dcdb6 15083fi
e6cc62c6
VS
15084echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15085echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15086cat >>confdefs.h <<_ACEOF
15087#define SIZEOF_INT $ac_cv_sizeof_int
15088_ACEOF
15089
15090
15091echo "$as_me:$LINENO: checking for long" >&5
15092echo $ECHO_N "checking for long... $ECHO_C" >&6
15093if test "${ac_cv_type_long+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
15096 cat >conftest.$ac_ext <<_ACEOF
15097#line $LINENO "configure"
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
15103$ac_includes_default
15104int
15105main ()
15106{
15107if ((long *) 0)
15108 return 0;
15109if (sizeof (long))
15110 return 0;
15111 ;
15112 return 0;
15113}
15114_ACEOF
15115rm -f conftest.$ac_objext
15116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_type_long=yes
15128else
15129 echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132ac_cv_type_long=no
15133fi
15134rm -f conftest.$ac_objext conftest.$ac_ext
15135fi
15136echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15137echo "${ECHO_T}$ac_cv_type_long" >&6
15138
15139echo "$as_me:$LINENO: checking size of long" >&5
15140echo $ECHO_N "checking size of long... $ECHO_C" >&6
15141if test "${ac_cv_sizeof_long+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143else
15144 if test "$ac_cv_type_long" = yes; then
15145 # The cast to unsigned long works around a bug in the HP C Compiler
15146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15148 # This bug is HP SR number 8606223364.
15149 if test "$cross_compiling" = yes; then
15150 # Depending upon the size, compute the lo and hi bounds.
15151cat >conftest.$ac_ext <<_ACEOF
15152#line $LINENO "configure"
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158$ac_includes_default
15159int
15160main ()
15161{
15162static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15163test_array [0] = 0
15164
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169rm -f conftest.$ac_objext
15170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -s conftest.$ac_objext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_lo=0 ac_mid=0
15182 while :; do
15183 cat >conftest.$ac_ext <<_ACEOF
15184#line $LINENO "configure"
15185/* confdefs.h. */
15186_ACEOF
15187cat confdefs.h >>conftest.$ac_ext
15188cat >>conftest.$ac_ext <<_ACEOF
15189/* end confdefs.h. */
15190$ac_includes_default
15191int
15192main ()
15193{
15194static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15195test_array [0] = 0
4f14bcd8 15196
e6cc62c6
VS
15197 ;
15198 return 0;
15199}
15200_ACEOF
15201rm -f conftest.$ac_objext
15202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -s conftest.$ac_objext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_hi=$ac_mid; break
15214else
15215 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218ac_lo=`expr $ac_mid + 1`
15219 if test $ac_lo -le $ac_mid; then
15220 ac_lo= ac_hi=
15221 break
15222 fi
15223 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15224fi
e6cc62c6
VS
15225rm -f conftest.$ac_objext conftest.$ac_ext
15226 done
15227else
15228 echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231cat >conftest.$ac_ext <<_ACEOF
15232#line $LINENO "configure"
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238$ac_includes_default
15239int
15240main ()
15241{
15242static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15243test_array [0] = 0
4f14bcd8 15244
e6cc62c6
VS
15245 ;
15246 return 0;
15247}
15248_ACEOF
15249rm -f conftest.$ac_objext
15250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_hi=-1 ac_mid=-1
15262 while :; do
15263 cat >conftest.$ac_ext <<_ACEOF
15264#line $LINENO "configure"
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270$ac_includes_default
15271int
15272main ()
15273{
15274static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15275test_array [0] = 0
5c6fa7d2 15276
e6cc62c6
VS
15277 ;
15278 return 0;
15279}
15280_ACEOF
15281rm -f conftest.$ac_objext
15282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15283 (eval $ac_compile) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -s conftest.$ac_objext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_lo=$ac_mid; break
15294else
15295 echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298ac_hi=`expr '(' $ac_mid ')' - 1`
15299 if test $ac_mid -le $ac_hi; then
15300 ac_lo= ac_hi=
15301 break
15302 fi
15303 ac_mid=`expr 2 '*' $ac_mid`
15304fi
15305rm -f conftest.$ac_objext conftest.$ac_ext
15306 done
247f5006 15307else
e6cc62c6
VS
15308 echo "$as_me: failed program was:" >&5
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
15311ac_lo= ac_hi=
15312fi
15313rm -f conftest.$ac_objext conftest.$ac_ext
15314fi
15315rm -f conftest.$ac_objext conftest.$ac_ext
15316# Binary search between lo and hi bounds.
15317while test "x$ac_lo" != "x$ac_hi"; do
15318 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15319 cat >conftest.$ac_ext <<_ACEOF
15320#line $LINENO "configure"
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326$ac_includes_default
15327int
15328main ()
15329{
15330static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15331test_array [0] = 0
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337rm -f conftest.$ac_objext
15338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339 (eval $ac_compile) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_hi=$ac_mid
15350else
15351 echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
15354ac_lo=`expr '(' $ac_mid ')' + 1`
15355fi
15356rm -f conftest.$ac_objext conftest.$ac_ext
15357done
15358case $ac_lo in
15359?*) ac_cv_sizeof_long=$ac_lo;;
15360'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15361See \`config.log' for more details." >&5
15362echo "$as_me: error: cannot compute sizeof (long), 77
15363See \`config.log' for more details." >&2;}
15364 { (exit 1); exit 1; }; } ;;
15365esac
247f5006 15366else
e6cc62c6
VS
15367 if test "$cross_compiling" = yes; then
15368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15369See \`config.log' for more details." >&5
15370echo "$as_me: error: cannot run test program while cross compiling
15371See \`config.log' for more details." >&2;}
15372 { (exit 1); exit 1; }; }
15373else
15374 cat >conftest.$ac_ext <<_ACEOF
15375#line $LINENO "configure"
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381$ac_includes_default
15382long longval () { return (long) (sizeof (long)); }
15383unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15384#include <stdio.h>
e6cc62c6
VS
15385#include <stdlib.h>
15386int
15387main ()
247f5006 15388{
e6cc62c6
VS
15389
15390 FILE *f = fopen ("conftest.val", "w");
15391 if (! f)
15392 exit (1);
15393 if (((long) (sizeof (long))) < 0)
15394 {
15395 long i = longval ();
15396 if (i != ((long) (sizeof (long))))
15397 exit (1);
15398 fprintf (f, "%ld\n", i);
15399 }
15400 else
15401 {
15402 unsigned long i = ulongval ();
15403 if (i != ((long) (sizeof (long))))
15404 exit (1);
15405 fprintf (f, "%lu\n", i);
15406 }
15407 exit (ferror (f) || fclose (f) != 0);
15408
15409 ;
15410 return 0;
247f5006 15411}
e6cc62c6
VS
15412_ACEOF
15413rm -f conftest$ac_exeext
15414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_cv_sizeof_long=`cat conftest.val`
15425else
15426 echo "$as_me: program exited with status $ac_status" >&5
15427echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430( exit $ac_status )
15431{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15432See \`config.log' for more details." >&5
15433echo "$as_me: error: cannot compute sizeof (long), 77
15434See \`config.log' for more details." >&2;}
15435 { (exit 1); exit 1; }; }
15436fi
15437rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15438fi
15439fi
15440rm -f conftest.val
247f5006 15441else
a0b9e27f 15442 ac_cv_sizeof_long=0
247f5006 15443fi
247f5006 15444fi
e6cc62c6
VS
15445echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15446echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15447cat >>confdefs.h <<_ACEOF
a0b9e27f 15448#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15449_ACEOF
247f5006 15450
a0b9e27f
MB
15451
15452
15453case "${host}" in
15454 arm-*-linux* )
e6cc62c6
VS
15455 echo "$as_me:$LINENO: checking for long long" >&5
15456echo $ECHO_N "checking for long long... $ECHO_C" >&6
15457if test "${ac_cv_type_long_long+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459else
15460 cat >conftest.$ac_ext <<_ACEOF
15461#line $LINENO "configure"
15462/* confdefs.h. */
15463_ACEOF
15464cat confdefs.h >>conftest.$ac_ext
15465cat >>conftest.$ac_ext <<_ACEOF
15466/* end confdefs.h. */
15467$ac_includes_default
15468int
15469main ()
15470{
15471if ((long long *) 0)
15472 return 0;
15473if (sizeof (long long))
15474 return 0;
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_cv_type_long_long=yes
15492else
15493 echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496ac_cv_type_long_long=no
15497fi
15498rm -f conftest.$ac_objext conftest.$ac_ext
15499fi
15500echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15501echo "${ECHO_T}$ac_cv_type_long_long" >&6
15502
15503echo "$as_me:$LINENO: checking size of long long" >&5
15504echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15505if test "${ac_cv_sizeof_long_long+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507else
15508 if test "$ac_cv_type_long_long" = yes; then
15509 # The cast to unsigned long works around a bug in the HP C Compiler
15510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15512 # This bug is HP SR number 8606223364.
a0b9e27f 15513 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15514 # Depending upon the size, compute the lo and hi bounds.
15515cat >conftest.$ac_ext <<_ACEOF
15516#line $LINENO "configure"
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523int
15524main ()
15525{
15526static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15527test_array [0] = 0
15528
15529 ;
15530 return 0;
15531}
15532_ACEOF
15533rm -f conftest.$ac_objext
15534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535 (eval $ac_compile) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -s conftest.$ac_objext'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 ac_lo=0 ac_mid=0
15546 while :; do
15547 cat >conftest.$ac_ext <<_ACEOF
15548#line $LINENO "configure"
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554$ac_includes_default
15555int
15556main ()
15557{
15558static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15559test_array [0] = 0
15560
15561 ;
15562 return 0;
15563}
15564_ACEOF
15565rm -f conftest.$ac_objext
15566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567 (eval $ac_compile) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_hi=$ac_mid; break
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582ac_lo=`expr $ac_mid + 1`
15583 if test $ac_lo -le $ac_mid; then
15584 ac_lo= ac_hi=
15585 break
15586 fi
15587 ac_mid=`expr 2 '*' $ac_mid + 1`
15588fi
15589rm -f conftest.$ac_objext conftest.$ac_ext
15590 done
15591else
15592 echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
15595cat >conftest.$ac_ext <<_ACEOF
15596#line $LINENO "configure"
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603int
15604main ()
15605{
15606static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15607test_array [0] = 0
15608
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615 (eval $ac_compile) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -s conftest.$ac_objext'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_hi=-1 ac_mid=-1
15626 while :; do
15627 cat >conftest.$ac_ext <<_ACEOF
15628#line $LINENO "configure"
15629/* confdefs.h. */
15630_ACEOF
15631cat confdefs.h >>conftest.$ac_ext
15632cat >>conftest.$ac_ext <<_ACEOF
15633/* end confdefs.h. */
15634$ac_includes_default
15635int
15636main ()
15637{
15638static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15639test_array [0] = 0
15640
15641 ;
15642 return 0;
15643}
15644_ACEOF
15645rm -f conftest.$ac_objext
15646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_lo=$ac_mid; break
15658else
15659 echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5
15661
15662ac_hi=`expr '(' $ac_mid ')' - 1`
15663 if test $ac_mid -le $ac_hi; then
15664 ac_lo= ac_hi=
15665 break
15666 fi
15667 ac_mid=`expr 2 '*' $ac_mid`
15668fi
15669rm -f conftest.$ac_objext conftest.$ac_ext
15670 done
15671else
15672 echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
15675ac_lo= ac_hi=
15676fi
15677rm -f conftest.$ac_objext conftest.$ac_ext
15678fi
15679rm -f conftest.$ac_objext conftest.$ac_ext
15680# Binary search between lo and hi bounds.
15681while test "x$ac_lo" != "x$ac_hi"; do
15682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15683 cat >conftest.$ac_ext <<_ACEOF
15684#line $LINENO "configure"
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690$ac_includes_default
15691int
15692main ()
15693{
15694static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15695test_array [0] = 0
15696
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -s conftest.$ac_objext'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_hi=$ac_mid
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718ac_lo=`expr '(' $ac_mid ')' + 1`
15719fi
15720rm -f conftest.$ac_objext conftest.$ac_ext
15721done
15722case $ac_lo in
15723?*) ac_cv_sizeof_long_long=$ac_lo;;
15724'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15725See \`config.log' for more details." >&5
15726echo "$as_me: error: cannot compute sizeof (long long), 77
15727See \`config.log' for more details." >&2;}
15728 { (exit 1); exit 1; }; } ;;
15729esac
a0b9e27f 15730else
e6cc62c6
VS
15731 if test "$cross_compiling" = yes; then
15732 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15733See \`config.log' for more details." >&5
15734echo "$as_me: error: cannot run test program while cross compiling
15735See \`config.log' for more details." >&2;}
15736 { (exit 1); exit 1; }; }
15737else
15738 cat >conftest.$ac_ext <<_ACEOF
15739#line $LINENO "configure"
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745$ac_includes_default
15746long longval () { return (long) (sizeof (long long)); }
15747unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15748#include <stdio.h>
e6cc62c6
VS
15749#include <stdlib.h>
15750int
15751main ()
247f5006 15752{
e6cc62c6
VS
15753
15754 FILE *f = fopen ("conftest.val", "w");
15755 if (! f)
15756 exit (1);
15757 if (((long) (sizeof (long long))) < 0)
15758 {
15759 long i = longval ();
15760 if (i != ((long) (sizeof (long long))))
15761 exit (1);
15762 fprintf (f, "%ld\n", i);
15763 }
15764 else
15765 {
15766 unsigned long i = ulongval ();
15767 if (i != ((long) (sizeof (long long))))
15768 exit (1);
15769 fprintf (f, "%lu\n", i);
15770 }
15771 exit (ferror (f) || fclose (f) != 0);
15772
15773 ;
15774 return 0;
247f5006 15775}
e6cc62c6
VS
15776_ACEOF
15777rm -f conftest$ac_exeext
15778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_cv_sizeof_long_long=`cat conftest.val`
15789else
15790 echo "$as_me: program exited with status $ac_status" >&5
15791echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
15794( exit $ac_status )
15795{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15796See \`config.log' for more details." >&5
15797echo "$as_me: error: cannot compute sizeof (long long), 77
15798See \`config.log' for more details." >&2;}
15799 { (exit 1); exit 1; }; }
15800fi
15801rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15802fi
15803fi
15804rm -f conftest.val
7b4a847f 15805else
a0b9e27f 15806 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15807fi
15808fi
e6cc62c6
VS
15809echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15810echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15811cat >>confdefs.h <<_ACEOF
15812#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15813_ACEOF
15814
15815
15816 ;;
15817 *-hp-hpux* )
15818 echo "$as_me:$LINENO: checking for long long" >&5
15819echo $ECHO_N "checking for long long... $ECHO_C" >&6
15820if test "${ac_cv_type_long_long+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 cat >conftest.$ac_ext <<_ACEOF
15824#line $LINENO "configure"
15825/* confdefs.h. */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h. */
15830$ac_includes_default
15831int
15832main ()
15833{
15834if ((long long *) 0)
15835 return 0;
15836if (sizeof (long long))
15837 return 0;
15838 ;
15839 return 0;
15840}
15841_ACEOF
15842rm -f conftest.$ac_objext
15843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844 (eval $ac_compile) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -s conftest.$ac_objext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 ac_cv_type_long_long=yes
15855else
15856 echo "$as_me: failed program was:" >&5
15857sed 's/^/| /' conftest.$ac_ext >&5
15858
15859ac_cv_type_long_long=no
15860fi
15861rm -f conftest.$ac_objext conftest.$ac_ext
15862fi
15863echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15864echo "${ECHO_T}$ac_cv_type_long_long" >&6
15865
15866echo "$as_me:$LINENO: checking size of long long" >&5
15867echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15868if test "${ac_cv_sizeof_long_long+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870else
15871 if test "$ac_cv_type_long_long" = yes; then
15872 # The cast to unsigned long works around a bug in the HP C Compiler
15873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15875 # This bug is HP SR number 8606223364.
15876 if test "$cross_compiling" = yes; then
15877 # Depending upon the size, compute the lo and hi bounds.
15878cat >conftest.$ac_ext <<_ACEOF
15879#line $LINENO "configure"
15880/* confdefs.h. */
15881_ACEOF
15882cat confdefs.h >>conftest.$ac_ext
15883cat >>conftest.$ac_ext <<_ACEOF
15884/* end confdefs.h. */
15885$ac_includes_default
15886int
15887main ()
15888{
15889static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15890test_array [0] = 0
15891
15892 ;
15893 return 0;
15894}
15895_ACEOF
15896rm -f conftest.$ac_objext
15897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -s conftest.$ac_objext'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_lo=0 ac_mid=0
15909 while :; do
15910 cat >conftest.$ac_ext <<_ACEOF
15911#line $LINENO "configure"
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918int
15919main ()
15920{
15921static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15922test_array [0] = 0
8284b0c5 15923
e6cc62c6
VS
15924 ;
15925 return 0;
15926}
15927_ACEOF
15928rm -f conftest.$ac_objext
15929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_hi=$ac_mid; break
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945ac_lo=`expr $ac_mid + 1`
15946 if test $ac_lo -le $ac_mid; then
15947 ac_lo= ac_hi=
15948 break
15949 fi
15950 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15951fi
e6cc62c6
VS
15952rm -f conftest.$ac_objext conftest.$ac_ext
15953 done
15954else
15955 echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958cat >conftest.$ac_ext <<_ACEOF
15959#line $LINENO "configure"
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
15965$ac_includes_default
15966int
15967main ()
15968{
15969static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15970test_array [0] = 0
a0b9e27f 15971
e6cc62c6
VS
15972 ;
15973 return 0;
15974}
15975_ACEOF
15976rm -f conftest.$ac_objext
15977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978 (eval $ac_compile) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_hi=-1 ac_mid=-1
15989 while :; do
15990 cat >conftest.$ac_ext <<_ACEOF
15991#line $LINENO "configure"
15992/* confdefs.h. */
15993_ACEOF
15994cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */
15997$ac_includes_default
15998int
15999main ()
16000{
16001static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16002test_array [0] = 0
a0b9e27f 16003
e6cc62c6
VS
16004 ;
16005 return 0;
16006}
16007_ACEOF
16008rm -f conftest.$ac_objext
16009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_lo=$ac_mid; break
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025ac_hi=`expr '(' $ac_mid ')' - 1`
16026 if test $ac_mid -le $ac_hi; then
16027 ac_lo= ac_hi=
16028 break
16029 fi
16030 ac_mid=`expr 2 '*' $ac_mid`
16031fi
16032rm -f conftest.$ac_objext conftest.$ac_ext
16033 done
8284b0c5 16034else
e6cc62c6
VS
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038ac_lo= ac_hi=
16039fi
16040rm -f conftest.$ac_objext conftest.$ac_ext
16041fi
16042rm -f conftest.$ac_objext conftest.$ac_ext
16043# Binary search between lo and hi bounds.
16044while test "x$ac_lo" != "x$ac_hi"; do
16045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16046 cat >conftest.$ac_ext <<_ACEOF
16047#line $LINENO "configure"
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054int
16055main ()
16056{
16057static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16058test_array [0] = 0
16059
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066 (eval $ac_compile) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_hi=$ac_mid
16077else
16078 echo "$as_me: failed program was:" >&5
16079sed 's/^/| /' conftest.$ac_ext >&5
16080
16081ac_lo=`expr '(' $ac_mid ')' + 1`
16082fi
16083rm -f conftest.$ac_objext conftest.$ac_ext
16084done
16085case $ac_lo in
16086?*) ac_cv_sizeof_long_long=$ac_lo;;
16087'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16088See \`config.log' for more details." >&5
16089echo "$as_me: error: cannot compute sizeof (long long), 77
16090See \`config.log' for more details." >&2;}
16091 { (exit 1); exit 1; }; } ;;
16092esac
8284b0c5 16093else
e6cc62c6
VS
16094 if test "$cross_compiling" = yes; then
16095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16096See \`config.log' for more details." >&5
16097echo "$as_me: error: cannot run test program while cross compiling
16098See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; }
16100else
16101 cat >conftest.$ac_ext <<_ACEOF
16102#line $LINENO "configure"
16103/* confdefs.h. */
16104_ACEOF
16105cat confdefs.h >>conftest.$ac_ext
16106cat >>conftest.$ac_ext <<_ACEOF
16107/* end confdefs.h. */
16108$ac_includes_default
16109long longval () { return (long) (sizeof (long long)); }
16110unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16111#include <stdio.h>
e6cc62c6
VS
16112#include <stdlib.h>
16113int
16114main ()
8284b0c5 16115{
e6cc62c6
VS
16116
16117 FILE *f = fopen ("conftest.val", "w");
16118 if (! f)
16119 exit (1);
16120 if (((long) (sizeof (long long))) < 0)
16121 {
16122 long i = longval ();
16123 if (i != ((long) (sizeof (long long))))
16124 exit (1);
16125 fprintf (f, "%ld\n", i);
16126 }
16127 else
16128 {
16129 unsigned long i = ulongval ();
16130 if (i != ((long) (sizeof (long long))))
16131 exit (1);
16132 fprintf (f, "%lu\n", i);
16133 }
16134 exit (ferror (f) || fclose (f) != 0);
16135
16136 ;
16137 return 0;
8284b0c5 16138}
e6cc62c6
VS
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_sizeof_long_long=`cat conftest.val`
16152else
16153 echo "$as_me: program exited with status $ac_status" >&5
16154echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157( exit $ac_status )
16158{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16159See \`config.log' for more details." >&5
16160echo "$as_me: error: cannot compute sizeof (long long), 77
16161See \`config.log' for more details." >&2;}
16162 { (exit 1); exit 1; }; }
16163fi
16164rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16165fi
16166fi
16167rm -f conftest.val
5c6fa7d2
RR
16168else
16169 ac_cv_sizeof_long_long=0
52127426 16170fi
4f57cf11 16171fi
e6cc62c6
VS
16172echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16173echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16174cat >>confdefs.h <<_ACEOF
4f57cf11 16175#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16176_ACEOF
4f57cf11
GD
16177
16178
16179 if test "$ac_cv_sizeof_long_long" != "0"; then
16180 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16181 fi
16182 ;;
16183 * )
e6cc62c6
VS
16184 echo "$as_me:$LINENO: checking for long long" >&5
16185echo $ECHO_N "checking for long long... $ECHO_C" >&6
16186if test "${ac_cv_type_long_long+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189 cat >conftest.$ac_ext <<_ACEOF
16190#line $LINENO "configure"
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197int
16198main ()
16199{
16200if ((long long *) 0)
16201 return 0;
16202if (sizeof (long long))
16203 return 0;
16204 ;
16205 return 0;
16206}
16207_ACEOF
16208rm -f conftest.$ac_objext
16209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_type_long_long=yes
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225ac_cv_type_long_long=no
16226fi
16227rm -f conftest.$ac_objext conftest.$ac_ext
16228fi
16229echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16230echo "${ECHO_T}$ac_cv_type_long_long" >&6
16231
16232echo "$as_me:$LINENO: checking size of long long" >&5
16233echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16234if test "${ac_cv_sizeof_long_long+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236else
16237 if test "$ac_cv_type_long_long" = yes; then
16238 # The cast to unsigned long works around a bug in the HP C Compiler
16239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16241 # This bug is HP SR number 8606223364.
4f57cf11 16242 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16243 # Depending upon the size, compute the lo and hi bounds.
16244cat >conftest.$ac_ext <<_ACEOF
16245#line $LINENO "configure"
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
16251$ac_includes_default
16252int
16253main ()
16254{
16255static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16256test_array [0] = 0
16257
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262rm -f conftest.$ac_objext
16263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16264 (eval $ac_compile) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_lo=0 ac_mid=0
16275 while :; do
16276 cat >conftest.$ac_ext <<_ACEOF
16277#line $LINENO "configure"
16278/* confdefs.h. */
16279_ACEOF
16280cat confdefs.h >>conftest.$ac_ext
16281cat >>conftest.$ac_ext <<_ACEOF
16282/* end confdefs.h. */
16283$ac_includes_default
16284int
16285main ()
16286{
16287static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16288test_array [0] = 0
16289
16290 ;
16291 return 0;
16292}
16293_ACEOF
16294rm -f conftest.$ac_objext
16295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -s conftest.$ac_objext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_hi=$ac_mid; break
16307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311ac_lo=`expr $ac_mid + 1`
16312 if test $ac_lo -le $ac_mid; then
16313 ac_lo= ac_hi=
16314 break
16315 fi
16316 ac_mid=`expr 2 '*' $ac_mid + 1`
16317fi
16318rm -f conftest.$ac_objext conftest.$ac_ext
16319 done
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
16324cat >conftest.$ac_ext <<_ACEOF
16325#line $LINENO "configure"
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332int
16333main ()
16334{
16335static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16336test_array [0] = 0
16337
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_hi=-1 ac_mid=-1
16355 while :; do
16356 cat >conftest.$ac_ext <<_ACEOF
16357#line $LINENO "configure"
16358/* confdefs.h. */
16359_ACEOF
16360cat confdefs.h >>conftest.$ac_ext
16361cat >>conftest.$ac_ext <<_ACEOF
16362/* end confdefs.h. */
16363$ac_includes_default
16364int
16365main ()
16366{
16367static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16368test_array [0] = 0
16369
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374rm -f conftest.$ac_objext
16375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16376 (eval $ac_compile) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_lo=$ac_mid; break
16387else
16388 echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
16391ac_hi=`expr '(' $ac_mid ')' - 1`
16392 if test $ac_mid -le $ac_hi; then
16393 ac_lo= ac_hi=
16394 break
16395 fi
16396 ac_mid=`expr 2 '*' $ac_mid`
16397fi
16398rm -f conftest.$ac_objext conftest.$ac_ext
16399 done
4f57cf11 16400else
e6cc62c6
VS
16401 echo "$as_me: failed program was:" >&5
16402sed 's/^/| /' conftest.$ac_ext >&5
16403
16404ac_lo= ac_hi=
16405fi
16406rm -f conftest.$ac_objext conftest.$ac_ext
16407fi
16408rm -f conftest.$ac_objext conftest.$ac_ext
16409# Binary search between lo and hi bounds.
16410while test "x$ac_lo" != "x$ac_hi"; do
16411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16412 cat >conftest.$ac_ext <<_ACEOF
16413#line $LINENO "configure"
16414/* confdefs.h. */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h. */
16419$ac_includes_default
16420int
16421main ()
16422{
16423static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16424test_array [0] = 0
16425
16426 ;
16427 return 0;
16428}
16429_ACEOF
16430rm -f conftest.$ac_objext
16431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_hi=$ac_mid
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447ac_lo=`expr '(' $ac_mid ')' + 1`
16448fi
16449rm -f conftest.$ac_objext conftest.$ac_ext
16450done
16451case $ac_lo in
16452?*) ac_cv_sizeof_long_long=$ac_lo;;
16453'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16454See \`config.log' for more details." >&5
16455echo "$as_me: error: cannot compute sizeof (long long), 77
16456See \`config.log' for more details." >&2;}
16457 { (exit 1); exit 1; }; } ;;
16458esac
16459else
16460 if test "$cross_compiling" = yes; then
16461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16462See \`config.log' for more details." >&5
16463echo "$as_me: error: cannot run test program while cross compiling
16464See \`config.log' for more details." >&2;}
16465 { (exit 1); exit 1; }; }
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
16468#line $LINENO "configure"
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474$ac_includes_default
16475long longval () { return (long) (sizeof (long long)); }
16476unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16477#include <stdio.h>
e6cc62c6
VS
16478#include <stdlib.h>
16479int
16480main ()
4f57cf11 16481{
e6cc62c6
VS
16482
16483 FILE *f = fopen ("conftest.val", "w");
16484 if (! f)
16485 exit (1);
16486 if (((long) (sizeof (long long))) < 0)
16487 {
16488 long i = longval ();
16489 if (i != ((long) (sizeof (long long))))
16490 exit (1);
16491 fprintf (f, "%ld\n", i);
16492 }
16493 else
16494 {
16495 unsigned long i = ulongval ();
16496 if (i != ((long) (sizeof (long long))))
16497 exit (1);
16498 fprintf (f, "%lu\n", i);
16499 }
16500 exit (ferror (f) || fclose (f) != 0);
16501
16502 ;
16503 return 0;
4f57cf11 16504}
e6cc62c6
VS
16505_ACEOF
16506rm -f conftest$ac_exeext
16507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_sizeof_long_long=`cat conftest.val`
16518else
16519 echo "$as_me: program exited with status $ac_status" >&5
16520echo "$as_me: failed program was:" >&5
16521sed 's/^/| /' conftest.$ac_ext >&5
16522
16523( exit $ac_status )
16524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16525See \`config.log' for more details." >&5
16526echo "$as_me: error: cannot compute sizeof (long long), 77
16527See \`config.log' for more details." >&2;}
16528 { (exit 1); exit 1; }; }
16529fi
16530rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16531fi
16532fi
16533rm -f conftest.val
4f57cf11 16534else
4f57cf11
GD
16535 ac_cv_sizeof_long_long=0
16536fi
7b4a847f 16537fi
e6cc62c6
VS
16538echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16539echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16540cat >>confdefs.h <<_ACEOF
21d1c967 16541#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16542_ACEOF
9e691f46 16543
8284b0c5 16544
21d1c967
GD
16545esac
16546
e6cc62c6
VS
16547echo "$as_me:$LINENO: checking size of wchar_t" >&5
16548echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16549if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16551else
e6cc62c6 16552
21d1c967 16553 if test "$cross_compiling" = yes; then
e6cc62c6 16554
2b5f62a0
VZ
16555 case "${host}" in
16556 *-pc-msdosdjgpp )
16557 wx_cv_sizeof_wchar_t=0
16558 ;;
16559 * )
16560 wx_cv_sizeof_wchar_t=4
16561 ;;
16562 esac
e6cc62c6
VS
16563
16564
6f72b082 16565else
e6cc62c6
VS
16566 cat >conftest.$ac_ext <<_ACEOF
16567#line $LINENO "configure"
16568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
21d1c967 16573
2b5f62a0
VZ
16574 /* DJGPP only has fake wchar_t: */
16575 #ifdef __DJGPP__
16576 # error "fake wchar_t"
16577 #endif
21d1c967
GD
16578 #ifdef HAVE_WCHAR_H
16579 # ifdef __CYGWIN__
16580 # include <stddef.h>
16581 # endif
16582 # include <wchar.h>
16583 #endif
16584 #ifdef HAVE_STDLIB_H
16585 # include <stdlib.h>
16586 #endif
16587 #include <stdio.h>
16588 int main()
16589 {
16590 FILE *f=fopen("conftestval", "w");
16591 if (!f) exit(1);
16592 fprintf(f, "%i", sizeof(wchar_t));
16593 exit(0);
16594 }
e6cc62c6
VS
16595
16596_ACEOF
16597rm -f conftest$ac_exeext
16598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
21d1c967 16608 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16609else
e6cc62c6
VS
16610 echo "$as_me: program exited with status $ac_status" >&5
16611echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
16614( exit $ac_status )
16615wx_cv_sizeof_wchar_t=0
6f72b082 16616fi
e6cc62c6 16617rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16618fi
6f72b082 16619
3f345b47 16620fi
e6cc62c6
VS
16621echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16622echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16623
e6cc62c6 16624cat >>confdefs.h <<_ACEOF
21d1c967 16625#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16626_ACEOF
90dd450c 16627
8284b0c5 16628
21d1c967
GD
16629# Check whether --enable-largefile or --disable-largefile was given.
16630if test "${enable_largefile+set}" = set; then
16631 enableval="$enable_largefile"
3f345b47 16632
e6cc62c6 16633fi;
21d1c967
GD
16634if test "$enable_largefile" != no; then
16635 wx_largefile=no
e6cc62c6
VS
16636
16637 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16638echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16639if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642
16643 cat >conftest.$ac_ext <<_ACEOF
16644#line $LINENO "configure"
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
21d1c967
GD
16650#define _FILE_OFFSET_BITS 64
16651 #include <sys/types.h>
e6cc62c6
VS
16652int
16653main ()
16654{
21d1c967
GD
16655typedef struct {
16656 unsigned int field: sizeof(off_t) == 8;
16657} wxlf;
16658
e6cc62c6
VS
16659 ;
16660 return 0;
16661}
16662_ACEOF
16663rm -f conftest.$ac_objext
16664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
21d1c967 16675 ac_cv_sys_file_offset_bits=64
f6bcfd97 16676else
e6cc62c6
VS
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680ac_cv_sys_file_offset_bits=no
247f5006 16681fi
e6cc62c6
VS
16682rm -f conftest.$ac_objext conftest.$ac_ext
16683
a0b9e27f 16684
e6cc62c6
VS
16685fi
16686echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16687echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16688
16689 if test "$ac_cv_sys_file_offset_bits" != no; then
16690 wx_largefile=yes
e6cc62c6 16691 cat >>confdefs.h <<_ACEOF
21d1c967 16692#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16693_ACEOF
21d1c967
GD
16694
16695 fi
16696
16697 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16698
16699 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16700echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16701if test "${ac_cv_sys_large_files+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704
16705 cat >conftest.$ac_ext <<_ACEOF
16706#line $LINENO "configure"
16707/* confdefs.h. */
16708_ACEOF
16709cat confdefs.h >>conftest.$ac_ext
16710cat >>conftest.$ac_ext <<_ACEOF
16711/* end confdefs.h. */
21d1c967
GD
16712#define _LARGE_FILES 1
16713 #include <sys/types.h>
e6cc62c6
VS
16714int
16715main ()
16716{
21d1c967
GD
16717typedef struct {
16718 unsigned int field: sizeof(off_t) == 8;
16719} wxlf;
16720
e6cc62c6
VS
16721 ;
16722 return 0;
16723}
16724_ACEOF
16725rm -f conftest.$ac_objext
16726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
21d1c967 16737 ac_cv_sys_large_files=1
f6bcfd97 16738else
e6cc62c6
VS
16739 echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742ac_cv_sys_large_files=no
247f5006 16743fi
e6cc62c6 16744rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16745
e6cc62c6
VS
16746
16747fi
16748echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16749echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16750
21d1c967
GD
16751 if test "$ac_cv_sys_large_files" != no; then
16752 wx_largefile=yes
e6cc62c6 16753 cat >>confdefs.h <<_ACEOF
21d1c967 16754#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16755_ACEOF
90dd450c 16756
90dd450c
VZ
16757 fi
16758
90dd450c 16759 fi
90dd450c 16760
e6cc62c6
VS
16761 echo "$as_me:$LINENO: checking if large file support is available" >&5
16762echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16763 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16764 cat >>confdefs.h <<\_ACEOF
21d1c967 16765#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16766_ACEOF
90dd450c 16767
90dd450c 16768 fi
e6cc62c6
VS
16769 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16770echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16771fi
90dd450c 16772
8284b0c5 16773
f02444d0 16774if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16775 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16776 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16777 else
e26c13cf 16778 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16779 fi
e26c13cf 16780 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16781fi
16782
e6cc62c6
VS
16783echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16784echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16785if test "${ac_cv_c_bigendian+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16787else
21d1c967
GD
16788 ac_cv_c_bigendian=unknown
16789# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16790cat >conftest.$ac_ext <<_ACEOF
16791#line $LINENO "configure"
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
21d1c967
GD
16797#include <sys/types.h>
16798#include <sys/param.h>
e6cc62c6
VS
16799int
16800main ()
16801{
21d1c967
GD
16802
16803#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16804 bogus endian macros
16805#endif
e6cc62c6
VS
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext
16811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
21d1c967 16822 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16823cat >conftest.$ac_ext <<_ACEOF
16824#line $LINENO "configure"
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
21d1c967
GD
16830#include <sys/types.h>
16831#include <sys/param.h>
e6cc62c6
VS
16832int
16833main ()
16834{
21d1c967
GD
16835
16836#if BYTE_ORDER != BIG_ENDIAN
16837 not big endian
16838#endif
e6cc62c6
VS
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16845 (eval $ac_compile) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
21d1c967 16855 ac_cv_c_bigendian=yes
3f345b47 16856else
e6cc62c6
VS
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860ac_cv_c_bigendian=no
3f345b47 16861fi
e6cc62c6 16862rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16863else
e6cc62c6
VS
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
3f345b47 16867fi
e6cc62c6 16868rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16869if test $ac_cv_c_bigendian = unknown; then
16870if test "$cross_compiling" = yes; then
16871 ac_cv_c_bigendian=unknown
10f2d63a 16872else
e6cc62c6
VS
16873 cat >conftest.$ac_ext <<_ACEOF
16874#line $LINENO "configure"
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
21d1c967
GD
16880main () {
16881 /* Are we little or big endian? From Harbison&Steele. */
16882 union
16883 {
16884 long l;
16885 char c[sizeof (long)];
16886 } u;
16887 u.l = 1;
16888 exit (u.c[sizeof (long) - 1] == 1);
16889}
e6cc62c6
VS
16890_ACEOF
16891rm -f conftest$ac_exeext
16892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893 (eval $ac_link) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
21d1c967 16902 ac_cv_c_bigendian=no
3f345b47 16903else
e6cc62c6
VS
16904 echo "$as_me: program exited with status $ac_status" >&5
16905echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908( exit $ac_status )
16909ac_cv_c_bigendian=yes
247f5006 16910fi
e6cc62c6 16911rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16912fi
3f345b47 16913fi
8168de4c 16914fi
e6cc62c6
VS
16915echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16916echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16917if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16918 { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
16919echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
247f5006
VZ
16920fi
16921if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16922 cat >>confdefs.h <<\_ACEOF
247f5006 16923#define WORDS_BIGENDIAN 1
e6cc62c6 16924_ACEOF
247f5006
VZ
16925
16926fi
16927
16928
e6cc62c6
VS
16929
16930ac_ext=cc
16931ac_cpp='$CXXCPP $CPPFLAGS'
16932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16935echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16936echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16937if test -z "$CXXCPP"; then
e6cc62c6
VS
16938 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 # Double quotes because CXXCPP needs to be expanded
16942 for CXXCPP in "$CXX -E" "/lib/cpp"
16943 do
16944 ac_preproc_ok=false
16945for ac_cxx_preproc_warn_flag in '' yes
16946do
16947 # Use a header file that comes with gcc, so configuring glibc
16948 # with a fresh cross-compiler works.
16949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 # <limits.h> exists even on freestanding compilers.
16951 # On the NeXT, cc -E runs the code through the compiler's parser,
16952 # not just through cpp. "Syntax error" is here to catch this case.
16953 cat >conftest.$ac_ext <<_ACEOF
16954#line $LINENO "configure"
16955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
16960#ifdef __STDC__
16961# include <limits.h>
16962#else
16963# include <assert.h>
16964#endif
16965 Syntax error
16966_ACEOF
16967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } >/dev/null; then
16975 if test -s conftest.err; then
16976 ac_cpp_err=$ac_cxx_preproc_warn_flag
16977 else
16978 ac_cpp_err=
16979 fi
247f5006 16980else
e6cc62c6
VS
16981 ac_cpp_err=yes
16982fi
16983if test -z "$ac_cpp_err"; then
16984 :
16985else
16986 echo "$as_me: failed program was:" >&5
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 # Broken: fails on valid input.
16990continue
16991fi
16992rm -f conftest.err conftest.$ac_ext
16993
16994 # OK, works on sane cases. Now check whether non-existent headers
16995 # can be detected and how.
16996 cat >conftest.$ac_ext <<_ACEOF
16997#line $LINENO "configure"
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
17003#include <ac_nonexistent.h>
17004_ACEOF
17005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } >/dev/null; then
17013 if test -s conftest.err; then
17014 ac_cpp_err=$ac_cxx_preproc_warn_flag
17015 else
17016 ac_cpp_err=
17017 fi
17018else
17019 ac_cpp_err=yes
17020fi
17021if test -z "$ac_cpp_err"; then
17022 # Broken: success on invalid input.
17023continue
17024else
17025 echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 # Passes both tests.
17029ac_preproc_ok=:
17030break
17031fi
17032rm -f conftest.err conftest.$ac_ext
17033
17034done
17035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17036rm -f conftest.err conftest.$ac_ext
17037if $ac_preproc_ok; then
17038 break
17039fi
17040
17041 done
17042 ac_cv_prog_CXXCPP=$CXXCPP
17043
17044fi
17045 CXXCPP=$ac_cv_prog_CXXCPP
17046else
17047 ac_cv_prog_CXXCPP=$CXXCPP
17048fi
17049echo "$as_me:$LINENO: result: $CXXCPP" >&5
17050echo "${ECHO_T}$CXXCPP" >&6
17051ac_preproc_ok=false
17052for ac_cxx_preproc_warn_flag in '' yes
17053do
17054 # Use a header file that comes with gcc, so configuring glibc
17055 # with a fresh cross-compiler works.
17056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057 # <limits.h> exists even on freestanding compilers.
17058 # On the NeXT, cc -E runs the code through the compiler's parser,
17059 # not just through cpp. "Syntax error" is here to catch this case.
17060 cat >conftest.$ac_ext <<_ACEOF
17061#line $LINENO "configure"
17062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
17067#ifdef __STDC__
17068# include <limits.h>
17069#else
17070# include <assert.h>
17071#endif
17072 Syntax error
17073_ACEOF
17074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } >/dev/null; then
17082 if test -s conftest.err; then
17083 ac_cpp_err=$ac_cxx_preproc_warn_flag
17084 else
17085 ac_cpp_err=
17086 fi
17087else
17088 ac_cpp_err=yes
17089fi
17090if test -z "$ac_cpp_err"; then
21d1c967 17091 :
698dcdb6 17092else
e6cc62c6
VS
17093 echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 # Broken: fails on valid input.
17097continue
17098fi
17099rm -f conftest.err conftest.$ac_ext
17100
17101 # OK, works on sane cases. Now check whether non-existent headers
17102 # can be detected and how.
17103 cat >conftest.$ac_ext <<_ACEOF
17104#line $LINENO "configure"
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110#include <ac_nonexistent.h>
17111_ACEOF
17112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_cxx_preproc_warn_flag
17122 else
17123 ac_cpp_err=
17124 fi
17125else
17126 ac_cpp_err=yes
247f5006 17127fi
e6cc62c6
VS
17128if test -z "$ac_cpp_err"; then
17129 # Broken: success on invalid input.
17130continue
17131else
17132 echo "$as_me: failed program was:" >&5
17133sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 # Passes both tests.
17136ac_preproc_ok=:
17137break
328a083c 17138fi
e6cc62c6
VS
17139rm -f conftest.err conftest.$ac_ext
17140
17141done
17142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17143rm -f conftest.err conftest.$ac_ext
17144if $ac_preproc_ok; then
17145 :
17146else
17147 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17148See \`config.log' for more details." >&5
17149echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17150See \`config.log' for more details." >&2;}
17151 { (exit 1); exit 1; }; }
90dd450c 17152fi
e6cc62c6
VS
17153
17154ac_ext=cc
17155ac_cpp='$CXXCPP $CPPFLAGS'
17156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17159
1e6feb95 17160
1725144d 17161
21d1c967 17162 if test "$cross_compiling" = "yes"; then
e6cc62c6 17163 cat >>confdefs.h <<\_ACEOF
21d1c967 17164#define wxUSE_IOSTREAMH 1
e6cc62c6 17165_ACEOF
ab9b9eab 17166
21d1c967 17167 else
e6cc62c6
VS
17168
17169
17170 ac_ext=cc
5c6fa7d2 17171ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17175
52127426 17176
247f5006 17177
e6cc62c6 17178for ac_header in iostream
21d1c967 17179do
e6cc62c6
VS
17180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17181if eval "test \"\${$as_ac_Header+set}\" = set"; then
17182 echo "$as_me:$LINENO: checking for $ac_header" >&5
17183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17184if eval "test \"\${$as_ac_Header+set}\" = set"; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186fi
17187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17189else
17190 # Is the header compilable?
17191echo "$as_me:$LINENO: checking $ac_header usability" >&5
17192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17193cat >conftest.$ac_ext <<_ACEOF
17194#line $LINENO "configure"
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200$ac_includes_default
17201#include <$ac_header>
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_header_compiler=yes
17216else
17217 echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220ac_header_compiler=no
17221fi
17222rm -f conftest.$ac_objext conftest.$ac_ext
17223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224echo "${ECHO_T}$ac_header_compiler" >&6
17225
17226# Is the header present?
17227echo "$as_me:$LINENO: checking $ac_header presence" >&5
17228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17229cat >conftest.$ac_ext <<_ACEOF
17230#line $LINENO "configure"
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236#include <$ac_header>
17237_ACEOF
17238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } >/dev/null; then
17246 if test -s conftest.err; then
17247 ac_cpp_err=$ac_cxx_preproc_warn_flag
17248 else
17249 ac_cpp_err=
17250 fi
17251else
17252 ac_cpp_err=yes
17253fi
17254if test -z "$ac_cpp_err"; then
17255 ac_header_preproc=yes
17256else
17257 echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 ac_header_preproc=no
17261fi
17262rm -f conftest.err conftest.$ac_ext
17263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17264echo "${ECHO_T}$ac_header_preproc" >&6
17265
17266# So? What about this header?
17267case $ac_header_compiler:$ac_header_preproc in
17268 yes:no )
17269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17273 (
17274 cat <<\_ASBOX
17275## ------------------------------------ ##
17276## Report this to bug-autoconf@gnu.org. ##
17277## ------------------------------------ ##
17278_ASBOX
17279 ) |
17280 sed "s/^/$as_me: WARNING: /" >&2
17281 ;;
17282 no:yes )
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17289 (
17290 cat <<\_ASBOX
17291## ------------------------------------ ##
17292## Report this to bug-autoconf@gnu.org. ##
17293## ------------------------------------ ##
17294_ASBOX
17295 ) |
17296 sed "s/^/$as_me: WARNING: /" >&2
17297 ;;
17298esac
17299echo "$as_me:$LINENO: checking for $ac_header" >&5
17300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17301if eval "test \"\${$as_ac_Header+set}\" = set"; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303else
17304 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17305fi
e6cc62c6
VS
17306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17308
90dd450c 17309fi
e6cc62c6
VS
17310if test `eval echo '${'$as_ac_Header'}'` = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17313_ACEOF
17314
90dd450c 17315fi
e6cc62c6 17316
21d1c967 17317done
10f2d63a 17318
8284b0c5 17319
21d1c967
GD
17320 if test "$ac_cv_header_iostream" = "yes" ; then
17321 :
17322 else
e6cc62c6 17323 cat >>confdefs.h <<\_ACEOF
21d1c967 17324#define wxUSE_IOSTREAMH 1
e6cc62c6 17325_ACEOF
788deba1 17326
90dd450c 17327 fi
ab9b9eab 17328
21d1c967 17329 ac_ext=c
21d1c967 17330ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17333ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17334
21d1c967 17335 fi
ab9b9eab 17336
52127426 17337
8284b0c5 17338
e6cc62c6
VS
17339 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17340echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17341if test "${wx_cv_cpp_bool+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17343else
e6cc62c6
VS
17344
17345
17346
17347 ac_ext=cc
5c6fa7d2 17348ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17352
8284b0c5 17353
e6cc62c6
VS
17354 cat >conftest.$ac_ext <<_ACEOF
17355#line $LINENO "configure"
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
21d1c967 17361
e6cc62c6
VS
17362
17363int
17364main ()
17365{
21d1c967
GD
17366
17367 bool b = true;
17368
17369 return 0;
e6cc62c6
VS
17370
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest.$ac_objext
17376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387
21d1c967 17388 wx_cv_cpp_bool=yes
e6cc62c6 17389
698dcdb6 17390else
e6cc62c6
VS
17391 echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394
21d1c967 17395 wx_cv_cpp_bool=no
e6cc62c6
VS
17396
17397
698dcdb6 17398fi
e6cc62c6 17399rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17400
17401 ac_ext=c
21d1c967 17402ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17405ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17406
a0b9e27f 17407
e6cc62c6
VS
17408fi
17409echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17410echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17411
17412 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17413 cat >>confdefs.h <<\_ACEOF
21d1c967 17414#define HAVE_BOOL 1
e6cc62c6 17415_ACEOF
ab9b9eab 17416
21d1c967
GD
17417 fi
17418
52127426 17419
8284b0c5 17420
e6cc62c6
VS
17421 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17422echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17423if test "${wx_cv_explicit+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17425else
e6cc62c6
VS
17426
17427
17428
17429 ac_ext=cc
5c6fa7d2 17430ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17434
8284b0c5 17435
e6cc62c6
VS
17436 cat >conftest.$ac_ext <<_ACEOF
17437#line $LINENO "configure"
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
986ecc86
VZ
17443
17444 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17445
17446int
17447main ()
17448{
986ecc86
VZ
17449
17450 return 0;
e6cc62c6
VS
17451
17452 ;
17453 return 0;
17454}
17455_ACEOF
17456rm -f conftest.$ac_objext
17457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17458 (eval $ac_compile) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468
17469 cat >conftest.$ac_ext <<_ACEOF
17470#line $LINENO "configure"
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
986ecc86
VZ
17476
17477 class Foo { public: explicit Foo(int) {} };
17478 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17479
17480int
17481main ()
17482{
986ecc86
VZ
17483
17484 TakeFoo(17);
17485 return 0;
e6cc62c6
VS
17486
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext
17492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
986ecc86
VZ
17503 wx_cv_explicit=no
17504else
e6cc62c6
VS
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508wx_cv_explicit=yes
17509
986ecc86 17510fi
e6cc62c6
VS
17511rm -f conftest.$ac_objext conftest.$ac_ext
17512
986ecc86 17513else
e6cc62c6
VS
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517wx_cv_explicit=no
17518
986ecc86 17519fi
e6cc62c6 17520rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17521
17522 ac_ext=c
986ecc86 17523ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17526ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17527
a0b9e27f 17528
e6cc62c6
VS
17529fi
17530echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17531echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17532
17533 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17534 cat >>confdefs.h <<\_ACEOF
986ecc86 17535#define HAVE_EXPLICIT 1
e6cc62c6 17536_ACEOF
986ecc86
VZ
17537
17538 fi
17539
8284b0c5 17540
e6cc62c6
VS
17541echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17542echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17543if test "${ac_cv_cxx_const_cast+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17545else
521196a2 17546
521196a2 17547
e6cc62c6
VS
17548 ac_ext=cc
17549ac_cpp='$CXXCPP $CPPFLAGS'
17550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17553
17554 cat >conftest.$ac_ext <<_ACEOF
17555#line $LINENO "configure"
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561
17562int
17563main ()
17564{
521196a2 17565int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17566 ;
17567 return 0;
17568}
17569_ACEOF
17570rm -f conftest.$ac_objext
17571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572 (eval $ac_compile) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -s conftest.$ac_objext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
521196a2
MB
17582 ac_cv_cxx_const_cast=yes
17583else
e6cc62c6
VS
17584 echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
17587ac_cv_cxx_const_cast=no
521196a2 17588fi
e6cc62c6 17589rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17590 ac_ext=c
521196a2 17591ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17594ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17595
17596
17597fi
e6cc62c6
VS
17598echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17599echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17600if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17601
17602cat >>confdefs.h <<\_ACEOF
17603#define HAVE_CONST_CAST
17604_ACEOF
521196a2
MB
17605
17606fi
17607
17608
8284b0c5 17609
21d1c967
GD
17610SEARCH_INCLUDE="\
17611 /usr/local/include \
17612 \
17613 /usr/Motif-1.2/include \
17614 /usr/Motif-2.1/include \
17615 \
17616 /usr/include/Motif1.2 \
17617 /opt/xpm/include/X11 \
17618 /opt/GBxpm/include/ \
17619 /opt/GBxpm/X11/include/ \
17620 \
17621 /usr/Motif1.2/include \
17622 /usr/dt/include \
17623 /usr/openwin/include \
17624 \
17625 /usr/include/Xm \
17626 \
17627 /usr/X11R6/include \
17628 /usr/X11R6.4/include \
17629 /usr/X11R5/include \
17630 /usr/X11R4/include \
17631 \
17632 /usr/include/X11R6 \
17633 /usr/include/X11R5 \
17634 /usr/include/X11R4 \
17635 \
17636 /usr/local/X11R6/include \
17637 /usr/local/X11R5/include \
17638 /usr/local/X11R4/include \
17639 \
17640 /usr/local/include/X11R6 \
17641 /usr/local/include/X11R5 \
17642 /usr/local/include/X11R4 \
17643 \
17644 /usr/X11/include \
17645 /usr/include/X11 \
17646 /usr/local/X11/include \
17647 /usr/local/include/X11 \
17648 \
17649 /usr/X386/include \
17650 /usr/x386/include \
17651 /usr/XFree86/include/X11 \
17652 \
17653 X:/XFree86/include \
17654 X:/XFree86/include/X11 \
17655 \
17656 /usr/include/gtk \
17657 /usr/local/include/gtk \
17658 /usr/include/glib \
17659 /usr/local/include/glib \
17660 \
17661 /usr/include/qt \
17662 /usr/local/include/qt \
17663 \
17664 /usr/include/windows \
17665 /usr/include/wine \
17666 /usr/local/include/wine \
17667 \
17668 /usr/unsupported/include \
17669 /usr/athena/include \
17670 /usr/local/x11r5/include \
17671 /usr/lpp/Xamples/include \
17672 \
2b5f62a0 17673 /usr/openwin/share/include"
21d1c967
GD
17674
17675SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17676
8284b0c5 17677
e6cc62c6 17678cat >confcache <<\_ACEOF
21d1c967
GD
17679# This file is a shell script that caches the results of configure
17680# tests run on this system so they can be shared between configure
e6cc62c6
VS
17681# scripts and configure runs, see configure's option --config-cache.
17682# It is not useful on other systems. If it contains results you don't
17683# want to keep, you may remove or edit it.
21d1c967 17684#
e6cc62c6
VS
17685# config.status only pays attention to the cache file if you give it
17686# the --recheck option to rerun configure.
21d1c967 17687#
e6cc62c6
VS
17688# `ac_cv_env_foo' variables (set or unset) will be overridden when
17689# loading this file, other *unset* `ac_cv_foo' will be assigned the
17690# following values.
17691
17692_ACEOF
17693
21d1c967
GD
17694# The following way of writing the cache mishandles newlines in values,
17695# but we know of no workaround that is simple, portable, and efficient.
17696# So, don't put newlines in cache variables' values.
17697# Ultrix sh set writes to stderr and can't be redirected directly,
17698# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17699{
17700 (set) 2>&1 |
17701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17702 *ac_space=\ *)
17703 # `set' does not quote correctly, so add quotes (double-quote
17704 # substitution turns \\\\ into \\, and sed turns \\ into \).
17705 sed -n \
17706 "s/'/'\\\\''/g;
17707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17708 ;;
17709 *)
17710 # `set' quotes correctly as required by POSIX, so do not add quotes.
17711 sed -n \
17712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17713 ;;
17714 esac;
17715} |
17716 sed '
17717 t clear
17718 : clear
17719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17720 t end
17721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17722 : end' >>confcache
17723if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17724 if test -w $cache_file; then
e6cc62c6
VS
17725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17726 cat confcache >$cache_file
21d1c967
GD
17727 else
17728 echo "not updating unwritable cache $cache_file"
17729 fi
ab9b9eab 17730fi
21d1c967 17731rm -f confcache
ab9b9eab 17732
fe0895cf 17733if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17734 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17735echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17736if test "${wx_cv_lib_glibc21+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739
17740 cat >conftest.$ac_ext <<_ACEOF
17741#line $LINENO "configure"
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
21d1c967 17747#include <features.h>
e6cc62c6
VS
17748int
17749main ()
17750{
ab9b9eab 17751
21d1c967
GD
17752 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17753 #error not glibc2.1
17754 #endif
e6cc62c6
VS
17755
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext
17761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17762 (eval $ac_compile) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772
21d1c967 17773 wx_cv_lib_glibc21=yes
e6cc62c6 17774
698dcdb6 17775else
e6cc62c6
VS
17776 echo "$as_me: failed program was:" >&5
17777sed 's/^/| /' conftest.$ac_ext >&5
17778
17779
21d1c967 17780 wx_cv_lib_glibc21=no
e6cc62c6
VS
17781
17782
247f5006 17783fi
e6cc62c6 17784rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17785
e6cc62c6
VS
17786fi
17787echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17788echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17789 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17790 cat >>confdefs.h <<\_ACEOF
21d1c967 17791#define wxHAVE_GLIBC2 1
e6cc62c6 17792_ACEOF
1e487827 17793
90dd450c 17794 fi
ab9b9eab
VZ
17795fi
17796
5c0a20c3
VZ
17797if test "x$wx_cv_lib_glibc21" = "xyes"; then
17798 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17799 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17800#define _GNU_SOURCE 1
e6cc62c6 17801_ACEOF
5c0a20c3
VZ
17802
17803 fi
17804fi
17805
8284b0c5
MB
17806
17807
21d1c967
GD
17808REGEX_INCLUDE=
17809if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17810 cat >>confdefs.h <<\_ACEOF
21d1c967 17811#define wxUSE_REGEX 1
e6cc62c6 17812_ACEOF
698dcdb6 17813
8284b0c5 17814
21d1c967 17815 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17816 if test "${ac_cv_header_regex_h+set}" = set; then
17817 echo "$as_me:$LINENO: checking for regex.h" >&5
17818echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17819if test "${ac_cv_header_regex_h+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17821fi
17822echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17823echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17824else
17825 # Is the header compilable?
17826echo "$as_me:$LINENO: checking regex.h usability" >&5
17827echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17828cat >conftest.$ac_ext <<_ACEOF
17829#line $LINENO "configure"
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835$ac_includes_default
247f5006 17836#include <regex.h>
e6cc62c6
VS
17837_ACEOF
17838rm -f conftest.$ac_objext
17839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840 (eval $ac_compile) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -s conftest.$ac_objext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_header_compiler=yes
17851else
17852 echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855ac_header_compiler=no
17856fi
17857rm -f conftest.$ac_objext conftest.$ac_ext
17858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17859echo "${ECHO_T}$ac_header_compiler" >&6
17860
17861# Is the header present?
17862echo "$as_me:$LINENO: checking regex.h presence" >&5
17863echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17864cat >conftest.$ac_ext <<_ACEOF
17865#line $LINENO "configure"
17866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
17871#include <regex.h>
17872_ACEOF
17873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } >/dev/null; then
17881 if test -s conftest.err; then
17882 ac_cpp_err=$ac_c_preproc_warn_flag
17883 else
17884 ac_cpp_err=
17885 fi
17886else
17887 ac_cpp_err=yes
17888fi
17889if test -z "$ac_cpp_err"; then
17890 ac_header_preproc=yes
17891else
17892 echo "$as_me: failed program was:" >&5
17893sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 ac_header_preproc=no
17896fi
17897rm -f conftest.err conftest.$ac_ext
17898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17899echo "${ECHO_T}$ac_header_preproc" >&6
17900
17901# So? What about this header?
17902case $ac_header_compiler:$ac_header_preproc in
17903 yes:no )
17904 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17905echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17907echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17908 (
17909 cat <<\_ASBOX
17910## ------------------------------------ ##
17911## Report this to bug-autoconf@gnu.org. ##
17912## ------------------------------------ ##
17913_ASBOX
17914 ) |
17915 sed "s/^/$as_me: WARNING: /" >&2
17916 ;;
17917 no:yes )
17918 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17919echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17921echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17923echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17924 (
17925 cat <<\_ASBOX
17926## ------------------------------------ ##
17927## Report this to bug-autoconf@gnu.org. ##
17928## ------------------------------------ ##
17929_ASBOX
17930 ) |
17931 sed "s/^/$as_me: WARNING: /" >&2
17932 ;;
17933esac
17934echo "$as_me:$LINENO: checking for regex.h" >&5
17935echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17936if test "${ac_cv_header_regex_h+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17938else
17939 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17940fi
e6cc62c6
VS
17941echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17942echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17943
698dcdb6 17944fi
e6cc62c6
VS
17945if test $ac_cv_header_regex_h = yes; then
17946
17947for ac_func in regcomp
21d1c967 17948do
e6cc62c6
VS
17949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17950echo "$as_me:$LINENO: checking for $ac_func" >&5
17951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17952if eval "test \"\${$as_ac_var+set}\" = set"; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955 cat >conftest.$ac_ext <<_ACEOF
17956#line $LINENO "configure"
17957/* confdefs.h. */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h. */
a0b9e27f 17962/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
17963 which can conflict with char $ac_func (); below.
17964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965 <limits.h> exists even on freestanding compilers. */
17966#ifdef __STDC__
17967# include <limits.h>
17968#else
17969# include <assert.h>
17970#endif
21d1c967 17971/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
17972#ifdef __cplusplus
17973extern "C"
17974{
17975#endif
21d1c967 17976/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
17977 builtin and then its argument prototype would still apply. */
17978char $ac_func ();
21d1c967
GD
17979/* The GNU C library defines this for functions which it implements
17980 to always fail with ENOSYS. Some functions are actually named
17981 something starting with __ and the normal name is an alias. */
17982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17983choke me
17984#else
e6cc62c6
VS
17985char (*f) () = $ac_func;
17986#endif
17987#ifdef __cplusplus
17988}
21d1c967 17989#endif
90dd450c 17990
e6cc62c6
VS
17991int
17992main ()
17993{
17994return f != $ac_func;
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext conftest$ac_exeext
18000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001 (eval $ac_link) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 eval "$as_ac_var=yes"
18012else
18013 echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016eval "$as_ac_var=no"
18017fi
18018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18019fi
18020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18022if test `eval echo '${'$as_ac_var'}'` = yes; then
18023 cat >>confdefs.h <<_ACEOF
18024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18025_ACEOF
5c6fa7d2 18026
698dcdb6 18027fi
21d1c967
GD
18028done
18029
ab9b9eab
VZ
18030fi
18031
8284b0c5 18032
e6cc62c6 18033
21d1c967
GD
18034 if test "x$ac_cv_func_regcomp" != "xyes"; then
18035 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18036 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18037echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18038 { (exit 1); exit 1; }; }
21d1c967 18039 else
e6cc62c6
VS
18040 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18041echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18042 wxUSE_REGEX=builtin
18043 fi
18044 else
18045 wxUSE_REGEX=sys
18046 fi
ab9b9eab 18047 fi
90dd450c 18048
21d1c967
GD
18049 if test "$wxUSE_REGEX" = "builtin" ; then
18050 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18051 fi
21d1c967 18052fi
90dd450c 18053
8284b0c5 18054
21d1c967
GD
18055ZLIB_INCLUDE=
18056ZLIB_LINK=
18057if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18058 cat >>confdefs.h <<\_ACEOF
21d1c967 18059#define wxUSE_ZLIB 1
e6cc62c6 18060_ACEOF
21d1c967 18061
8284b0c5 18062
21d1c967 18063 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18064 if test "$USE_DARWIN" = 1; then
18065 system_zlib_h_ok="yes"
18066 else
e6cc62c6
VS
18067 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18068echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18069if test "${ac_cv_header_zlib_h+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18071else
18072 if test "$cross_compiling" = yes; then
89e6bf6d 18073 unset ac_cv_header_zlib_h
e6cc62c6 18074
d643b80e 18075else
e6cc62c6
VS
18076 cat >conftest.$ac_ext <<_ACEOF
18077#line $LINENO "configure"
18078/* confdefs.h. */
18079_ACEOF
18080cat confdefs.h >>conftest.$ac_ext
18081cat >>conftest.$ac_ext <<_ACEOF
18082/* end confdefs.h. */
18083
ef33c576 18084 #include <zlib.h>
d775acfa 18085 #include <stdio.h>
d643b80e 18086
d775acfa
VZ
18087 int main()
18088 {
18089 FILE *f=fopen("conftestval", "w");
18090 if (!f) exit(1);
18091 fprintf(f, "%s",
18092 ZLIB_VERSION[0] == '1' &&
18093 (ZLIB_VERSION[2] > '1' ||
18094 (ZLIB_VERSION[2] == '1' &&
18095 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18096 exit(0);
18097 }
e6cc62c6
VS
18098
18099_ACEOF
18100rm -f conftest$ac_exeext
18101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
d643b80e
VZ
18111 ac_cv_header_zlib_h=`cat conftestval`
18112else
e6cc62c6
VS
18113 echo "$as_me: program exited with status $ac_status" >&5
18114echo "$as_me: failed program was:" >&5
18115sed 's/^/| /' conftest.$ac_ext >&5
18116
18117( exit $ac_status )
18118ac_cv_header_zlib_h=no
d643b80e 18119fi
e6cc62c6 18120rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18121fi
18122
d643b80e 18123fi
e6cc62c6
VS
18124echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18125echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18126 if test "${ac_cv_header_zlib_h+set}" = set; then
18127 echo "$as_me:$LINENO: checking for zlib.h" >&5
18128echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18129if test "${ac_cv_header_zlib_h+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18131fi
18132echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18133echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18134else
e6cc62c6
VS
18135 # Is the header compilable?
18136echo "$as_me:$LINENO: checking zlib.h usability" >&5
18137echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18138cat >conftest.$ac_ext <<_ACEOF
18139#line $LINENO "configure"
18140/* confdefs.h. */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h. */
18145$ac_includes_default
89e6bf6d 18146#include <zlib.h>
e6cc62c6
VS
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_header_compiler=yes
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165ac_header_compiler=no
18166fi
18167rm -f conftest.$ac_objext conftest.$ac_ext
18168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18169echo "${ECHO_T}$ac_header_compiler" >&6
18170
18171# Is the header present?
18172echo "$as_me:$LINENO: checking zlib.h presence" >&5
18173echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18174cat >conftest.$ac_ext <<_ACEOF
18175#line $LINENO "configure"
18176/* confdefs.h. */
18177_ACEOF
18178cat confdefs.h >>conftest.$ac_ext
18179cat >>conftest.$ac_ext <<_ACEOF
18180/* end confdefs.h. */
18181#include <zlib.h>
18182_ACEOF
18183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } >/dev/null; then
18191 if test -s conftest.err; then
18192 ac_cpp_err=$ac_c_preproc_warn_flag
18193 else
18194 ac_cpp_err=
18195 fi
18196else
18197 ac_cpp_err=yes
18198fi
18199if test -z "$ac_cpp_err"; then
18200 ac_header_preproc=yes
18201else
18202 echo "$as_me: failed program was:" >&5
18203sed 's/^/| /' conftest.$ac_ext >&5
18204
18205 ac_header_preproc=no
18206fi
18207rm -f conftest.err conftest.$ac_ext
18208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18209echo "${ECHO_T}$ac_header_preproc" >&6
18210
18211# So? What about this header?
18212case $ac_header_compiler:$ac_header_preproc in
18213 yes:no )
18214 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18215echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18217echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18218 (
18219 cat <<\_ASBOX
18220## ------------------------------------ ##
18221## Report this to bug-autoconf@gnu.org. ##
18222## ------------------------------------ ##
18223_ASBOX
18224 ) |
18225 sed "s/^/$as_me: WARNING: /" >&2
18226 ;;
18227 no:yes )
18228 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18229echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18230 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18231echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18232 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18233echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18234 (
18235 cat <<\_ASBOX
18236## ------------------------------------ ##
18237## Report this to bug-autoconf@gnu.org. ##
18238## ------------------------------------ ##
18239_ASBOX
18240 ) |
18241 sed "s/^/$as_me: WARNING: /" >&2
18242 ;;
18243esac
18244echo "$as_me:$LINENO: checking for zlib.h" >&5
18245echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18246if test "${ac_cv_header_zlib_h+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18248else
e6cc62c6
VS
18249 ac_cv_header_zlib_h=$ac_header_preproc
18250fi
18251echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18252echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18253
89e6bf6d
VZ
18254fi
18255
d643b80e 18256
e6cc62c6 18257
d775acfa
VZ
18258 system_zlib_h_ok=$ac_cv_header_zlib_h
18259 fi
18260
18261 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18262 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18263echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18264if test "${ac_cv_lib_z_deflate+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18266else
e6cc62c6 18267 ac_check_lib_save_LIBS=$LIBS
21d1c967 18268LIBS="-lz $LIBS"
e6cc62c6
VS
18269cat >conftest.$ac_ext <<_ACEOF
18270#line $LINENO "configure"
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
18276
21d1c967 18277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18278#ifdef __cplusplus
18279extern "C"
18280#endif
21d1c967 18281/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18282 builtin and then its argument prototype would still apply. */
18283char deflate ();
18284int
18285main ()
18286{
18287deflate ();
18288 ;
18289 return 0;
18290}
18291_ACEOF
18292rm -f conftest.$ac_objext conftest$ac_exeext
18293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18294 (eval $ac_link) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_z_deflate=yes
18305else
18306 echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309ac_cv_lib_z_deflate=no
18310fi
18311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18312LIBS=$ac_check_lib_save_LIBS
18313fi
18314echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18315echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18316if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18317 ZLIB_LINK=" -lz"
a0b9e27f 18318fi
698dcdb6 18319
d643b80e 18320 fi
247f5006 18321
21d1c967
GD
18322 if test "x$ZLIB_LINK" = "x" ; then
18323 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18324 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18325echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18326 { (exit 1); exit 1; }; }
21d1c967 18327 else
e6cc62c6
VS
18328 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18329echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18330 wxUSE_ZLIB=builtin
18331 fi
18332 else
18333 wxUSE_ZLIB=sys
18334 fi
18335 fi
18336
18337 if test "$wxUSE_ZLIB" = "builtin" ; then
18338 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18339 fi
ab9b9eab
VZ
18340fi
18341
8284b0c5 18342
21d1c967
GD
18343PNG_INCLUDE=
18344PNG_LINK=
18345if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18346 cat >>confdefs.h <<\_ACEOF
21d1c967 18347#define wxUSE_LIBPNG 1
e6cc62c6 18348_ACEOF
90dd450c 18349
8284b0c5 18350
21d1c967 18351 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18352 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18353echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18354 wxUSE_LIBPNG=sys
18355 fi
90dd450c 18356
21d1c967 18357 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18358 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18359echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18360 wxUSE_LIBPNG=builtin
18361 fi
18362
18363 if test "$wxUSE_MGL" != 1 ; then
18364 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18365 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18366echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18367if test "${ac_cv_header_png_h+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18369else
18370 if test "$cross_compiling" = yes; then
89e6bf6d 18371 unset ac_cv_header_png_h
e6cc62c6 18372
5d3f766d 18373else
e6cc62c6
VS
18374 cat >conftest.$ac_ext <<_ACEOF
18375#line $LINENO "configure"
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
18381
ef33c576 18382 #include <png.h>
5d3f766d
VZ
18383 #include <stdio.h>
18384
18385 int main()
18386 {
18387 FILE *f=fopen("conftestval", "w");
18388 if (!f) exit(1);
18389 fprintf(f, "%s",
18390 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18391 exit(0);
18392 }
e6cc62c6
VS
18393
18394_ACEOF
18395rm -f conftest$ac_exeext
18396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18397 (eval $ac_link) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
5d3f766d
VZ
18406 ac_cv_header_png_h=`cat conftestval`
18407else
e6cc62c6
VS
18408 echo "$as_me: program exited with status $ac_status" >&5
18409echo "$as_me: failed program was:" >&5
18410sed 's/^/| /' conftest.$ac_ext >&5
18411
18412( exit $ac_status )
18413ac_cv_header_png_h=no
5d3f766d 18414fi
e6cc62c6 18415rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18416fi
18417
5d3f766d 18418fi
e6cc62c6
VS
18419echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18420echo "${ECHO_T}$ac_cv_header_png_h" >&6
18421 if test "${ac_cv_header_png_h+set}" = set; then
18422 echo "$as_me:$LINENO: checking for png.h" >&5
18423echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18424if test "${ac_cv_header_png_h+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426fi
18427echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18428echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18429else
e6cc62c6
VS
18430 # Is the header compilable?
18431echo "$as_me:$LINENO: checking png.h usability" >&5
18432echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18433cat >conftest.$ac_ext <<_ACEOF
18434#line $LINENO "configure"
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
18440$ac_includes_default
89e6bf6d 18441#include <png.h>
e6cc62c6
VS
18442_ACEOF
18443rm -f conftest.$ac_objext
18444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445 (eval $ac_compile) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -s conftest.$ac_objext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_header_compiler=yes
18456else
18457 echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460ac_header_compiler=no
18461fi
18462rm -f conftest.$ac_objext conftest.$ac_ext
18463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18464echo "${ECHO_T}$ac_header_compiler" >&6
18465
18466# Is the header present?
18467echo "$as_me:$LINENO: checking png.h presence" >&5
18468echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18469cat >conftest.$ac_ext <<_ACEOF
18470#line $LINENO "configure"
18471/* confdefs.h. */
18472_ACEOF
18473cat confdefs.h >>conftest.$ac_ext
18474cat >>conftest.$ac_ext <<_ACEOF
18475/* end confdefs.h. */
18476#include <png.h>
18477_ACEOF
18478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } >/dev/null; then
18486 if test -s conftest.err; then
18487 ac_cpp_err=$ac_c_preproc_warn_flag
18488 else
18489 ac_cpp_err=
18490 fi
18491else
18492 ac_cpp_err=yes
18493fi
18494if test -z "$ac_cpp_err"; then
18495 ac_header_preproc=yes
18496else
18497 echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 ac_header_preproc=no
18501fi
18502rm -f conftest.err conftest.$ac_ext
18503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18504echo "${ECHO_T}$ac_header_preproc" >&6
18505
18506# So? What about this header?
18507case $ac_header_compiler:$ac_header_preproc in
18508 yes:no )
18509 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18510echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18512echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18513 (
18514 cat <<\_ASBOX
18515## ------------------------------------ ##
18516## Report this to bug-autoconf@gnu.org. ##
18517## ------------------------------------ ##
18518_ASBOX
18519 ) |
18520 sed "s/^/$as_me: WARNING: /" >&2
18521 ;;
18522 no:yes )
18523 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18524echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18525 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18526echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18527 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18528echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18529 (
18530 cat <<\_ASBOX
18531## ------------------------------------ ##
18532## Report this to bug-autoconf@gnu.org. ##
18533## ------------------------------------ ##
18534_ASBOX
18535 ) |
18536 sed "s/^/$as_me: WARNING: /" >&2
18537 ;;
18538esac
18539echo "$as_me:$LINENO: checking for png.h" >&5
18540echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18541if test "${ac_cv_header_png_h+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18543else
e6cc62c6
VS
18544 ac_cv_header_png_h=$ac_header_preproc
18545fi
18546echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18547echo "${ECHO_T}$ac_cv_header_png_h" >&6
18548
89e6bf6d
VZ
18549fi
18550
5d3f766d 18551
e6cc62c6 18552
5d3f766d 18553 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18554 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18555echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18556if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18558else
e6cc62c6 18559 ac_check_lib_save_LIBS=$LIBS
21d1c967 18560LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18561cat >conftest.$ac_ext <<_ACEOF
18562#line $LINENO "configure"
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
18568
21d1c967 18569/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18570#ifdef __cplusplus
18571extern "C"
18572#endif
21d1c967 18573/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18574 builtin and then its argument prototype would still apply. */
18575char png_check_sig ();
18576int
18577main ()
18578{
18579png_check_sig ();
18580 ;
18581 return 0;
18582}
18583_ACEOF
18584rm -f conftest.$ac_objext conftest$ac_exeext
18585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18586 (eval $ac_link) 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -s conftest$ac_exeext'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_lib_png_png_check_sig=yes
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601ac_cv_lib_png_png_check_sig=no
18602fi
18603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18604LIBS=$ac_check_lib_save_LIBS
18605fi
18606echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18607echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18608if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18609 PNG_LINK=" -lpng"
a0b9e27f 18610fi
90dd450c 18611
5d3f766d 18612 fi
247f5006 18613
21d1c967
GD
18614 if test "x$PNG_LINK" = "x" ; then
18615 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18616 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18617echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18618 { (exit 1); exit 1; }; }
21d1c967 18619 else
e6cc62c6
VS
18620 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18621echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18622 wxUSE_LIBPNG=builtin
18623 fi
18624 else
2b5f62a0 18625 wxUSE_LIBPNG=sys
21d1c967
GD
18626 fi
18627 fi
18628 fi
90dd450c 18629
21d1c967
GD
18630 if test "$wxUSE_LIBPNG" = "builtin" ; then
18631 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18632 fi
90dd450c 18633
21d1c967 18634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18635fi
18636
8284b0c5 18637
21d1c967
GD
18638JPEG_INCLUDE=
18639JPEG_LINK=
18640if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18641 cat >>confdefs.h <<\_ACEOF
21d1c967 18642#define wxUSE_LIBJPEG 1
e6cc62c6 18643_ACEOF
90dd450c 18644
8284b0c5 18645
21d1c967 18646 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18647 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18648echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18649 wxUSE_LIBJPEG=sys
18650 fi
90dd450c 18651
21d1c967
GD
18652 if test "$wxUSE_MGL" != 1 ; then
18653 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18654 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18655echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18656 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 cat >conftest.$ac_ext <<_ACEOF
18660#line $LINENO "configure"
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
90dd450c 18666
21d1c967
GD
18667 #undef HAVE_STDLIB_H
18668 #include <stdio.h>
18669 #include <jpeglib.h>
90dd450c 18670
e6cc62c6
VS
18671int
18672main ()
18673{
18674
18675
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680rm -f conftest.$ac_objext
18681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682 (eval $ac_compile) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -s conftest.$ac_objext'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
21d1c967 18692 ac_cv_header_jpeglib_h=yes
90dd450c 18693else
e6cc62c6
VS
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697ac_cv_header_jpeglib_h=no
18698
90dd450c 18699fi
e6cc62c6
VS
18700rm -f conftest.$ac_objext conftest.$ac_ext
18701
90dd450c
VZ
18702fi
18703
e6cc62c6
VS
18704 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18705echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18706
21d1c967 18707 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18708 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18709echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18710if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18712else
e6cc62c6 18713 ac_check_lib_save_LIBS=$LIBS
21d1c967 18714LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18715cat >conftest.$ac_ext <<_ACEOF
18716#line $LINENO "configure"
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722
21d1c967 18723/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18724#ifdef __cplusplus
18725extern "C"
18726#endif
21d1c967 18727/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18728 builtin and then its argument prototype would still apply. */
18729char jpeg_read_header ();
18730int
18731main ()
18732{
18733jpeg_read_header ();
18734 ;
18735 return 0;
18736}
18737_ACEOF
18738rm -f conftest.$ac_objext conftest$ac_exeext
18739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740 (eval $ac_link) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -s conftest$ac_exeext'
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 ac_cv_lib_jpeg_jpeg_read_header=yes
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755ac_cv_lib_jpeg_jpeg_read_header=no
18756fi
18757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18758LIBS=$ac_check_lib_save_LIBS
18759fi
18760echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18761echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18762if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18763 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18764fi
18765
21d1c967 18766 fi
90dd450c 18767
21d1c967
GD
18768 if test "x$JPEG_LINK" = "x" ; then
18769 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18770 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18771echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18772 { (exit 1); exit 1; }; }
21d1c967 18773 else
e6cc62c6
VS
18774 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18775echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18776 wxUSE_LIBJPEG=builtin
18777 fi
18778 else
18779 wxUSE_LIBJPEG=sys
18780 fi
18781 fi
18782 fi
90dd450c 18783
21d1c967
GD
18784 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18785 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18786 fi
18787fi
90dd450c 18788
8284b0c5 18789
21d1c967
GD
18790TIFF_INCLUDE=
18791TIFF_LINK=
2b5f62a0 18792TIFF_PREREQ_LINKS=-lm
21d1c967 18793if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18794 cat >>confdefs.h <<\_ACEOF
21d1c967 18795#define wxUSE_LIBTIFF 1
e6cc62c6 18796_ACEOF
21d1c967 18797
8284b0c5 18798
21d1c967 18799 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18800 if test "$wxUSE_LIBJPEG" = "sys"; then
18801 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18802 fi
18803 if test "$wxUSE_ZLIB" = "sys"; then
18804 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18805 fi
e6cc62c6
VS
18806 if test "${ac_cv_header_tiffio_h+set}" = set; then
18807 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18808echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18809if test "${ac_cv_header_tiffio_h+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811fi
18812echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18813echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18814else
18815 # Is the header compilable?
18816echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18817echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18818cat >conftest.$ac_ext <<_ACEOF
18819#line $LINENO "configure"
18820/* confdefs.h. */
18821_ACEOF
18822cat confdefs.h >>conftest.$ac_ext
18823cat >>conftest.$ac_ext <<_ACEOF
18824/* end confdefs.h. */
18825$ac_includes_default
247f5006 18826#include <tiffio.h>
e6cc62c6
VS
18827_ACEOF
18828rm -f conftest.$ac_objext
18829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18830 (eval $ac_compile) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 ac_header_compiler=yes
18841else
18842 echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
18845ac_header_compiler=no
18846fi
18847rm -f conftest.$ac_objext conftest.$ac_ext
18848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18849echo "${ECHO_T}$ac_header_compiler" >&6
18850
18851# Is the header present?
18852echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18853echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18854cat >conftest.$ac_ext <<_ACEOF
18855#line $LINENO "configure"
18856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861#include <tiffio.h>
18862_ACEOF
18863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } >/dev/null; then
18871 if test -s conftest.err; then
18872 ac_cpp_err=$ac_c_preproc_warn_flag
18873 else
18874 ac_cpp_err=
18875 fi
18876else
18877 ac_cpp_err=yes
18878fi
18879if test -z "$ac_cpp_err"; then
18880 ac_header_preproc=yes
18881else
18882 echo "$as_me: failed program was:" >&5
18883sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 ac_header_preproc=no
18886fi
18887rm -f conftest.err conftest.$ac_ext
18888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18889echo "${ECHO_T}$ac_header_preproc" >&6
18890
18891# So? What about this header?
18892case $ac_header_compiler:$ac_header_preproc in
18893 yes:no )
18894 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18895echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18897echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18898 (
18899 cat <<\_ASBOX
18900## ------------------------------------ ##
18901## Report this to bug-autoconf@gnu.org. ##
18902## ------------------------------------ ##
18903_ASBOX
18904 ) |
18905 sed "s/^/$as_me: WARNING: /" >&2
18906 ;;
18907 no:yes )
18908 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18909echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18911echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18913echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18914 (
18915 cat <<\_ASBOX
18916## ------------------------------------ ##
18917## Report this to bug-autoconf@gnu.org. ##
18918## ------------------------------------ ##
18919_ASBOX
18920 ) |
18921 sed "s/^/$as_me: WARNING: /" >&2
18922 ;;
18923esac
18924echo "$as_me:$LINENO: checking for tiffio.h" >&5
18925echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18926if test "${ac_cv_header_tiffio_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928else
18929 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18930fi
e6cc62c6
VS
18931echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18932echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18933
21d1c967 18934fi
e6cc62c6
VS
18935if test $ac_cv_header_tiffio_h = yes; then
18936 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18937echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18938if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18940else
e6cc62c6 18941 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18942LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18943cat >conftest.$ac_ext <<_ACEOF
18944#line $LINENO "configure"
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950
ab9b9eab 18951/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18952#ifdef __cplusplus
18953extern "C"
18954#endif
ab9b9eab 18955/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18956 builtin and then its argument prototype would still apply. */
18957char TIFFError ();
18958int
18959main ()
18960{
18961TIFFError ();
18962 ;
18963 return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext conftest$ac_exeext
18967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18968 (eval $ac_link) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_lib_tiff_TIFFError=yes
18979else
18980 echo "$as_me: failed program was:" >&5
18981sed 's/^/| /' conftest.$ac_ext >&5
18982
18983ac_cv_lib_tiff_TIFFError=no
18984fi
18985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18986LIBS=$ac_check_lib_save_LIBS
18987fi
18988echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
18989echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
18990if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 18991 TIFF_LINK=" -ltiff"
a0b9e27f 18992fi
cd6d6d5b 18993
e6cc62c6 18994
a0b9e27f 18995fi
8284b0c5 18996
247f5006 18997
e6cc62c6 18998
21d1c967
GD
18999 if test "x$TIFF_LINK" = "x" ; then
19000 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19001 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19002echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19003 { (exit 1); exit 1; }; }
90dd450c 19004 else
e6cc62c6
VS
19005 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19006echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19007 wxUSE_LIBTIFF=builtin
d8356fa3 19008 fi
d8356fa3 19009 else
21d1c967 19010 wxUSE_LIBTIFF=sys
d8356fa3 19011 fi
21d1c967 19012 fi
d8356fa3 19013
21d1c967
GD
19014 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19015 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19016 fi
21d1c967 19017fi
10f2d63a 19018
8284b0c5 19019
21d1c967 19020AFMINSTALL=
2b5f62a0 19021WIN32INSTALL=
90dd450c 19022
21d1c967
GD
19023TOOLKIT=
19024TOOLKIT_INCLUDE=
19025WIDGET_SET=
19026
19027if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19028
19029for ac_header in w32api.h
21d1c967 19030do
e6cc62c6
VS
19031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19032if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033 echo "$as_me:$LINENO: checking for $ac_header" >&5
19034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19035if eval "test \"\${$as_ac_Header+set}\" = set"; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037fi
19038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19040else
19041 # Is the header compilable?
19042echo "$as_me:$LINENO: checking $ac_header usability" >&5
19043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19044cat >conftest.$ac_ext <<_ACEOF
19045#line $LINENO "configure"
19046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
19051$ac_includes_default
19052#include <$ac_header>
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -s conftest.$ac_objext'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_header_compiler=yes
19067else
19068 echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
19070
19071ac_header_compiler=no
19072fi
19073rm -f conftest.$ac_objext conftest.$ac_ext
19074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19075echo "${ECHO_T}$ac_header_compiler" >&6
19076
19077# Is the header present?
19078echo "$as_me:$LINENO: checking $ac_header presence" >&5
19079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19080cat >conftest.$ac_ext <<_ACEOF
19081#line $LINENO "configure"
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087#include <$ac_header>
19088_ACEOF
19089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } >/dev/null; then
19097 if test -s conftest.err; then
19098 ac_cpp_err=$ac_c_preproc_warn_flag
19099 else
19100 ac_cpp_err=
19101 fi
19102else
19103 ac_cpp_err=yes
19104fi
19105if test -z "$ac_cpp_err"; then
19106 ac_header_preproc=yes
19107else
19108 echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_header_preproc=no
19112fi
19113rm -f conftest.err conftest.$ac_ext
19114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115echo "${ECHO_T}$ac_header_preproc" >&6
19116
19117# So? What about this header?
19118case $ac_header_compiler:$ac_header_preproc in
19119 yes:no )
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19124 (
19125 cat <<\_ASBOX
19126## ------------------------------------ ##
19127## Report this to bug-autoconf@gnu.org. ##
19128## ------------------------------------ ##
19129_ASBOX
19130 ) |
19131 sed "s/^/$as_me: WARNING: /" >&2
19132 ;;
19133 no:yes )
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19140 (
19141 cat <<\_ASBOX
19142## ------------------------------------ ##
19143## Report this to bug-autoconf@gnu.org. ##
19144## ------------------------------------ ##
19145_ASBOX
19146 ) |
19147 sed "s/^/$as_me: WARNING: /" >&2
19148 ;;
19149esac
19150echo "$as_me:$LINENO: checking for $ac_header" >&5
19151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19152if eval "test \"\${$as_ac_Header+set}\" = set"; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154else
19155 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19156fi
e6cc62c6
VS
19157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19159
21d1c967 19160fi
e6cc62c6
VS
19161if test `eval echo '${'$as_ac_Header'}'` = yes; then
19162 cat >>confdefs.h <<_ACEOF
19163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19164_ACEOF
19165
21d1c967 19166fi
e6cc62c6 19167
21d1c967 19168done
f79bd02d 19169
e6cc62c6
VS
19170 if test "${ac_cv_header_windows_h+set}" = set; then
19171 echo "$as_me:$LINENO: checking for windows.h" >&5
19172echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19173if test "${ac_cv_header_windows_h+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175fi
19176echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19177echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19178else
19179 # Is the header compilable?
19180echo "$as_me:$LINENO: checking windows.h usability" >&5
19181echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19182cat >conftest.$ac_ext <<_ACEOF
19183#line $LINENO "configure"
19184/* confdefs.h. */
19185_ACEOF
19186cat confdefs.h >>conftest.$ac_ext
19187cat >>conftest.$ac_ext <<_ACEOF
19188/* end confdefs.h. */
19189$ac_includes_default
247f5006 19190#include <windows.h>
e6cc62c6
VS
19191_ACEOF
19192rm -f conftest.$ac_objext
19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_header_compiler=yes
19205else
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209ac_header_compiler=no
19210fi
19211rm -f conftest.$ac_objext conftest.$ac_ext
19212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19213echo "${ECHO_T}$ac_header_compiler" >&6
19214
19215# Is the header present?
19216echo "$as_me:$LINENO: checking windows.h presence" >&5
19217echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19218cat >conftest.$ac_ext <<_ACEOF
19219#line $LINENO "configure"
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225#include <windows.h>
19226_ACEOF
19227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } >/dev/null; then
19235 if test -s conftest.err; then
19236 ac_cpp_err=$ac_c_preproc_warn_flag
19237 else
19238 ac_cpp_err=
19239 fi
19240else
19241 ac_cpp_err=yes
19242fi
19243if test -z "$ac_cpp_err"; then
19244 ac_header_preproc=yes
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_header_preproc=no
19250fi
19251rm -f conftest.err conftest.$ac_ext
19252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19253echo "${ECHO_T}$ac_header_preproc" >&6
19254
19255# So? What about this header?
19256case $ac_header_compiler:$ac_header_preproc in
19257 yes:no )
19258 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19259echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19261echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19262 (
19263 cat <<\_ASBOX
19264## ------------------------------------ ##
19265## Report this to bug-autoconf@gnu.org. ##
19266## ------------------------------------ ##
19267_ASBOX
19268 ) |
19269 sed "s/^/$as_me: WARNING: /" >&2
19270 ;;
19271 no:yes )
19272 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19273echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19275echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19276 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19277echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19278 (
19279 cat <<\_ASBOX
19280## ------------------------------------ ##
19281## Report this to bug-autoconf@gnu.org. ##
19282## ------------------------------------ ##
19283_ASBOX
19284 ) |
19285 sed "s/^/$as_me: WARNING: /" >&2
19286 ;;
19287esac
19288echo "$as_me:$LINENO: checking for windows.h" >&5
19289echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19290if test "${ac_cv_header_windows_h+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19294fi
e6cc62c6
VS
19295echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19296echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19297
90dd450c 19298fi
e6cc62c6 19299if test $ac_cv_header_windows_h = yes; then
21d1c967 19300 :
90dd450c 19301else
21d1c967 19302
e6cc62c6
VS
19303 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19304echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19305 { (exit 1); exit 1; }; }
19306
5c6fa7d2 19307fi
7b4a847f 19308
5c6fa7d2 19309
e6cc62c6
VS
19310
19311 echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19312echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19313if test "${wx_cv_w32api_win32_ie+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 19315else
e6cc62c6
VS
19316
19317 cat >conftest.$ac_ext <<_ACEOF
19318#line $LINENO "configure"
19319/* confdefs.h. */
19320_ACEOF
19321cat confdefs.h >>conftest.$ac_ext
19322cat >>conftest.$ac_ext <<_ACEOF
19323/* end confdefs.h. */
21d1c967 19324#include <w32api.h>
e6cc62c6
VS
19325int
19326main ()
19327{
f79bd02d 19328
21d1c967
GD
19329 #define wxCHECK_W32API_VERSION( major, minor ) \
19330 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19331 && ( ( __W32API_MAJOR_VERSION > (major) ) \
19332 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19333
19334 #if !wxCHECK_W32API_VERSION(1,1)
19335 #error You need w32api 1.1 or newer
19336 #endif
e6cc62c6
VS
19337
19338 ;
19339 return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext
19343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344 (eval $ac_compile) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354
21d1c967 19355 wx_cv_w32api_win32_ie=yes
e6cc62c6 19356
f79bd02d 19357else
e6cc62c6
VS
19358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361
21d1c967 19362 wx_cv_w32api_win32_ie=no
e6cc62c6 19363
247f5006 19364fi
e6cc62c6 19365rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19366
e6cc62c6
VS
19367fi
19368echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19369echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
19370 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19371 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19372 fi
f79bd02d 19373
b3dfbbc9 19374 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19375
7bb2947d
MB
19376 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19377 LIBS="$LIBS -loleacc"
19378 fi
19379
21d1c967
GD
19380 case "${host}" in
19381 *-*-cygwin* )
b3dfbbc9 19382 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19383 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19384 esac
f79bd02d 19385
8647bec6
RG
19386 if test "$wxUSE_ODBC" = "sys" ; then
19387 wxUSE_ODBC = "yes"
21d1c967 19388 fi
8647bec6
RG
19389 if test "$wxUSE_ODBC" = "yes" ; then
19390 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19391 cat >>confdefs.h <<\_ACEOF
8647bec6 19392#define wxUSE_ODBC 1
e6cc62c6 19393_ACEOF
f79bd02d 19394
8647bec6 19395 fi
e6cc62c6 19396
21d1c967
GD
19397 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19398 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19399
19400 WIN32INSTALL=win32install
f79bd02d 19401fi
f79bd02d 19402
b2fee376 19403if test "$USE_DARWIN" = 1; then
50bcbd3d 19404 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
19405 CPPFLAGS="$CPPFLAGS -cpp-precomp"
19406 else
19407 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19408 fi
19409fi
19410
21d1c967
GD
19411if test "$wxUSE_GUI" = "yes"; then
19412 USE_GUI=1
f79bd02d 19413
21d1c967 19414 GUI_TK_LIBRARY=
f79bd02d 19415
21d1c967
GD
19416 WXGTK12=
19417 WXGTK127=
19418 WXGTK20=
f79bd02d 19419
21d1c967
GD
19420 if test "$wxUSE_MSW" = 1 ; then
19421 TOOLKIT=MSW
19422 GUIDIST=MSW_DIST
f79bd02d
JS
19423 fi
19424
21d1c967 19425 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19426 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19427echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19428
19429 gtk_version_cached=1
e6cc62c6
VS
19430 if test "${wx_cv_lib_gtk+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19432else
e6cc62c6 19433
21d1c967 19434 gtk_version_cached=0
e6cc62c6
VS
19435 echo "$as_me:$LINENO: result: " >&5
19436echo "${ECHO_T}" >&6
f79bd02d 19437
21d1c967
GD
19438 GTK_MODULES=
19439 if test "$wxUSE_THREADS" = "yes"; then
19440 GTK_MODULES=gthread
19441 fi
f79bd02d 19442
2b5f62a0 19443 wx_cv_lib_gtk=
21d1c967
GD
19444 if test "x$wxUSE_GTK2" = "xyes"; then
19445 # Check whether --enable-gtktest or --disable-gtktest was given.
19446if test "${enable_gtktest+set}" = set; then
19447 enableval="$enable_gtktest"
e6cc62c6 19448
f79bd02d 19449else
21d1c967 19450 enable_gtktest=yes
e6cc62c6 19451fi;
f79bd02d 19452
21d1c967
GD
19453 pkg_config_args=gtk+-2.0
19454 for module in . $GTK_MODULES
19455 do
19456 case "$module" in
e6cc62c6 19457 gthread)
21d1c967
GD
19458 pkg_config_args="$pkg_config_args gthread-2.0"
19459 ;;
19460 esac
19461 done
19462
19463 no_gtk=""
f79bd02d 19464
21d1c967
GD
19465 # Extract the first word of "pkg-config", so it can be a program name with args.
19466set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19467echo "$as_me:$LINENO: checking for $ac_word" >&5
19468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19469if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19471else
e6cc62c6
VS
19472 case $PKG_CONFIG in
19473 [\\/]* | ?:[\\/]*)
21d1c967
GD
19474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19475 ;;
21d1c967 19476 *)
e6cc62c6
VS
19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19478for as_dir in $PATH
19479do
19480 IFS=$as_save_IFS
19481 test -z "$as_dir" && as_dir=.
19482 for ac_exec_ext in '' $ac_executable_extensions; do
19483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19486 break 2
19487 fi
19488done
19489done
19490
21d1c967
GD
19491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19492 ;;
19493esac
f79bd02d 19494fi
e6cc62c6
VS
19495PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19496
21d1c967 19497if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19498 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19499echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19500else
e6cc62c6
VS
19501 echo "$as_me:$LINENO: result: no" >&5
19502echo "${ECHO_T}no" >&6
f79bd02d
JS
19503fi
19504
8284b0c5 19505
21d1c967
GD
19506 if test x$PKG_CONFIG != xno ; then
19507 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19508 :
19509 else
19510 echo *** pkg-config too old; version 0.7 or better required.
19511 no_gtk=yes
19512 PKG_CONFIG=no
19513 fi
19514 else
19515 no_gtk=yes
19516 fi
f79bd02d 19517
21d1c967 19518 min_gtk_version=2.0.0
e6cc62c6
VS
19519 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19520echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19521
21d1c967
GD
19522 if test x$PKG_CONFIG != xno ; then
19523 ## don't try to run the test against uninstalled libtool libs
19524 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19525 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19526 enable_gtktest=no
19527 fi
f79bd02d 19528
21d1c967
GD
19529 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19530 :
19531 else
19532 no_gtk=yes
19533 fi
19534 fi
f79bd02d 19535
21d1c967
GD
19536 if test x"$no_gtk" = x ; then
19537 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19538 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19539 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19541 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19543 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19545 if test "x$enable_gtktest" = "xyes" ; then
19546 ac_save_CFLAGS="$CFLAGS"
19547 ac_save_LIBS="$LIBS"
19548 CFLAGS="$CFLAGS $GTK_CFLAGS"
19549 LIBS="$GTK_LIBS $LIBS"
19550 rm -f conf.gtktest
19551 if test "$cross_compiling" = yes; then
19552 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19553else
e6cc62c6
VS
19554 cat >conftest.$ac_ext <<_ACEOF
19555#line $LINENO "configure"
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
f79bd02d 19561
21d1c967
GD
19562#include <gtk/gtk.h>
19563#include <stdio.h>
19564#include <stdlib.h>
f79bd02d 19565
e6cc62c6 19566int
21d1c967
GD
19567main ()
19568{
19569 int major, minor, micro;
19570 char *tmp_version;
f79bd02d 19571
21d1c967 19572 system ("touch conf.gtktest");
f79bd02d 19573
21d1c967
GD
19574 /* HP/UX 9 (%@#!) writes to sscanf strings */
19575 tmp_version = g_strdup("$min_gtk_version");
19576 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19577 printf("%s, bad version string\n", "$min_gtk_version");
19578 exit(1);
19579 }
f79bd02d 19580
21d1c967
GD
19581 if ((gtk_major_version != $gtk_config_major_version) ||
19582 (gtk_minor_version != $gtk_config_minor_version) ||
19583 (gtk_micro_version != $gtk_config_micro_version))
19584 {
e6cc62c6 19585 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19586 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19587 gtk_major_version, gtk_minor_version, gtk_micro_version);
19588 printf ("*** was found! If pkg-config was correct, then it is best\n");
19589 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19590 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19591 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19592 printf("*** required on your system.\n");
19593 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19594 printf("*** to point to the correct configuration files\n");
e6cc62c6 19595 }
21d1c967
GD
19596 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19597 (gtk_minor_version != GTK_MINOR_VERSION) ||
19598 (gtk_micro_version != GTK_MICRO_VERSION))
19599 {
19600 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19601 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19602 printf("*** library (version %d.%d.%d)\n",
19603 gtk_major_version, gtk_minor_version, gtk_micro_version);
19604 }
19605 else
19606 {
19607 if ((gtk_major_version > major) ||
19608 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19609 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19610 {
19611 return 0;
19612 }
19613 else
19614 {
19615 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19616 gtk_major_version, gtk_minor_version, gtk_micro_version);
19617 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19618 major, minor, micro);
19619 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19620 printf("***\n");
19621 printf("*** If you have already installed a sufficiently new version, this error\n");
19622 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19623 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19624 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19625 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19626 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19627 printf("*** so that the correct libraries are found at run-time))\n");
19628 }
19629 }
19630 return 1;
19631}
f79bd02d 19632
e6cc62c6
VS
19633_ACEOF
19634rm -f conftest$ac_exeext
19635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19636 (eval $ac_link) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
21d1c967 19645 :
f79bd02d 19646else
e6cc62c6
VS
19647 echo "$as_me: program exited with status $ac_status" >&5
19648echo "$as_me: failed program was:" >&5
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
19651( exit $ac_status )
19652no_gtk=yes
f79bd02d 19653fi
e6cc62c6 19654rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19655fi
21d1c967
GD
19656 CFLAGS="$ac_save_CFLAGS"
19657 LIBS="$ac_save_LIBS"
19658 fi
19659 fi
19660 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19661 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19662echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19663 wx_cv_lib_gtk=2.0
21d1c967 19664 else
e6cc62c6
VS
19665 echo "$as_me:$LINENO: result: no" >&5
19666echo "${ECHO_T}no" >&6
21d1c967
GD
19667 if test "$PKG_CONFIG" = "no" ; then
19668 echo "*** A new enough version of pkg-config was not found."
19669 echo "*** See http://pkgconfig.sourceforge.net"
19670 else
19671 if test -f conf.gtktest ; then
19672 :
19673 else
19674 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19675 ac_save_CFLAGS="$CFLAGS"
19676 ac_save_LIBS="$LIBS"
21d1c967
GD
19677 CFLAGS="$CFLAGS $GTK_CFLAGS"
19678 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19679 cat >conftest.$ac_ext <<_ACEOF
19680#line $LINENO "configure"
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
21d1c967
GD
19686
19687#include <gtk/gtk.h>
19688#include <stdio.h>
f79bd02d 19689
e6cc62c6
VS
19690int
19691main ()
19692{
19693 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19694 ;
19695 return 0;
19696}
19697_ACEOF
19698rm -f conftest.$ac_objext conftest$ac_exeext
19699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19700 (eval $ac_link) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -s conftest$ac_exeext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
21d1c967
GD
19710 echo "*** The test program compiled, but did not run. This usually means"
19711 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19712 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19713 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19714 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19715 echo "*** is required on your system"
19716 echo "***"
19717 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19718 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19719else
e6cc62c6
VS
19720 echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19724 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19725fi
e6cc62c6 19726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19727 CFLAGS="$ac_save_CFLAGS"
19728 LIBS="$ac_save_LIBS"
19729 fi
19730 fi
19731 GTK_CFLAGS=""
19732 GTK_LIBS=""
19733 :
19734 fi
e6cc62c6
VS
19735
19736
21d1c967 19737 rm -f conf.gtktest
f79bd02d 19738
2b5f62a0 19739 else
e6cc62c6
VS
19740
19741# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19742if test "${with_gtk_prefix+set}" = set; then
19743 withval="$with_gtk_prefix"
19744 gtk_config_prefix="$withval"
19745else
19746 gtk_config_prefix=""
e6cc62c6 19747fi;
f79bd02d 19748
21d1c967
GD
19749# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19750if test "${with_gtk_exec_prefix+set}" = set; then
19751 withval="$with_gtk_exec_prefix"
19752 gtk_config_exec_prefix="$withval"
19753else
19754 gtk_config_exec_prefix=""
e6cc62c6 19755fi;
21d1c967
GD
19756# Check whether --enable-gtktest or --disable-gtktest was given.
19757if test "${enable_gtktest+set}" = set; then
19758 enableval="$enable_gtktest"
e6cc62c6 19759
21d1c967
GD
19760else
19761 enable_gtktest=yes
e6cc62c6 19762fi;
21d1c967
GD
19763
19764 for module in . $GTK_MODULES
19765 do
19766 case "$module" in
e6cc62c6 19767 gthread)
21d1c967
GD
19768 gtk_config_args="$gtk_config_args gthread"
19769 ;;
19770 esac
19771 done
19772
19773 if test x$gtk_config_exec_prefix != x ; then
19774 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19775 if test x${GTK_CONFIG+set} != xset ; then
19776 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19777 fi
19778 fi
19779 if test x$gtk_config_prefix != x ; then
19780 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19781 if test x${GTK_CONFIG+set} != xset ; then
19782 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19783 fi
19784 fi
19785
19786 # Extract the first word of "gtk-config", so it can be a program name with args.
19787set dummy gtk-config; ac_word=$2
e6cc62c6
VS
19788echo "$as_me:$LINENO: checking for $ac_word" >&5
19789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19790if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19792else
e6cc62c6
VS
19793 case $GTK_CONFIG in
19794 [\\/]* | ?:[\\/]*)
21d1c967
GD
19795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19796 ;;
21d1c967 19797 *)
e6cc62c6
VS
19798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19799for as_dir in $PATH
19800do
19801 IFS=$as_save_IFS
19802 test -z "$as_dir" && as_dir=.
19803 for ac_exec_ext in '' $ac_executable_extensions; do
19804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19805 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19807 break 2
19808 fi
19809done
19810done
19811
21d1c967
GD
19812 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19813 ;;
19814esac
19815fi
e6cc62c6
VS
19816GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19817
21d1c967 19818if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
19819 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19820echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 19821else
e6cc62c6
VS
19822 echo "$as_me:$LINENO: result: no" >&5
19823echo "${ECHO_T}no" >&6
21d1c967
GD
19824fi
19825
19826 min_gtk_version=1.2.7
e6cc62c6
VS
19827 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19828echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
19829 no_gtk=""
19830 if test "$GTK_CONFIG" = "no" ; then
19831 no_gtk=yes
19832 else
19833 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19834 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19835 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19837 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19839 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19841 if test "x$enable_gtktest" = "xyes" ; then
19842 ac_save_CFLAGS="$CFLAGS"
19843 ac_save_LIBS="$LIBS"
19844 CFLAGS="$CFLAGS $GTK_CFLAGS"
19845 LIBS="$GTK_LIBS $LIBS"
19846 rm -f conf.gtktest
19847 if test "$cross_compiling" = yes; then
19848 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19849else
e6cc62c6
VS
19850 cat >conftest.$ac_ext <<_ACEOF
19851#line $LINENO "configure"
19852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
19856/* end confdefs.h. */
f79bd02d 19857
21d1c967
GD
19858#include <gtk/gtk.h>
19859#include <stdio.h>
19860#include <stdlib.h>
f79bd02d 19861
e6cc62c6 19862int
21d1c967
GD
19863main ()
19864{
19865 int major, minor, micro;
19866 char *tmp_version;
19867
19868 system ("touch conf.gtktest");
19869
19870 /* HP/UX 9 (%@#!) writes to sscanf strings */
19871 tmp_version = g_strdup("$min_gtk_version");
19872 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19873 printf("%s, bad version string\n", "$min_gtk_version");
19874 exit(1);
19875 }
90dd450c 19876
21d1c967
GD
19877 if ((gtk_major_version != $gtk_config_major_version) ||
19878 (gtk_minor_version != $gtk_config_minor_version) ||
19879 (gtk_micro_version != $gtk_config_micro_version))
19880 {
e6cc62c6 19881 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19882 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19883 gtk_major_version, gtk_minor_version, gtk_micro_version);
19884 printf ("*** was found! If gtk-config was correct, then it is best\n");
19885 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19886 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19887 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19888 printf("*** required on your system.\n");
19889 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19890 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19891 printf("*** before re-running configure\n");
e6cc62c6 19892 }
21d1c967
GD
19893#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19894 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19895 (gtk_minor_version != GTK_MINOR_VERSION) ||
19896 (gtk_micro_version != GTK_MICRO_VERSION))
19897 {
19898 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19899 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19900 printf("*** library (version %d.%d.%d)\n",
19901 gtk_major_version, gtk_minor_version, gtk_micro_version);
19902 }
19903#endif /* defined (GTK_MAJOR_VERSION) ... */
19904 else
19905 {
19906 if ((gtk_major_version > major) ||
19907 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19908 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19909 {
19910 return 0;
19911 }
19912 else
19913 {
19914 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19915 gtk_major_version, gtk_minor_version, gtk_micro_version);
19916 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19917 major, minor, micro);
19918 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19919 printf("***\n");
19920 printf("*** If you have already installed a sufficiently new version, this error\n");
19921 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19922 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19923 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19924 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19925 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19926 printf("*** so that the correct libraries are found at run-time))\n");
19927 }
19928 }
19929 return 1;
19930}
19931
e6cc62c6
VS
19932_ACEOF
19933rm -f conftest$ac_exeext
19934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19935 (eval $ac_link) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
21d1c967
GD
19944 :
19945else
e6cc62c6
VS
19946 echo "$as_me: program exited with status $ac_status" >&5
19947echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950( exit $ac_status )
19951no_gtk=yes
21d1c967 19952fi
e6cc62c6 19953rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 19954fi
21d1c967
GD
19955 CFLAGS="$ac_save_CFLAGS"
19956 LIBS="$ac_save_LIBS"
19957 fi
19958 fi
19959 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19960 echo "$as_me:$LINENO: result: yes" >&5
19961echo "${ECHO_T}yes" >&6
19962 wx_cv_lib_gtk=1.2.7
21d1c967 19963 else
e6cc62c6
VS
19964 echo "$as_me:$LINENO: result: no" >&5
19965echo "${ECHO_T}no" >&6
21d1c967
GD
19966 if test "$GTK_CONFIG" = "no" ; then
19967 echo "*** The gtk-config script installed by GTK could not be found"
19968 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19969 echo "*** your path, or set the GTK_CONFIG environment variable to the"
19970 echo "*** full path to gtk-config."
19971 else
19972 if test -f conf.gtktest ; then
19973 :
19974 else
19975 echo "*** Could not run GTK test program, checking why..."
19976 CFLAGS="$CFLAGS $GTK_CFLAGS"
19977 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19978 cat >conftest.$ac_ext <<_ACEOF
19979#line $LINENO "configure"
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
21d1c967
GD
19985
19986#include <gtk/gtk.h>
19987#include <stdio.h>
19988
e6cc62c6
VS
19989int
19990main ()
19991{
19992 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19993 ;
19994 return 0;
19995}
19996_ACEOF
19997rm -f conftest.$ac_objext conftest$ac_exeext
19998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999 (eval $ac_link) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
21d1c967
GD
20009 echo "*** The test program compiled, but did not run. This usually means"
20010 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20011 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20012 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20013 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20014 echo "*** is required on your system"
20015 echo "***"
20016 echo "*** If you have an old version installed, it is best to remove it, although"
20017 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20018 echo "***"
20019 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20020 echo "*** came with the system with the command"
20021 echo "***"
e6cc62c6 20022 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20023else
e6cc62c6
VS
20024 echo "$as_me: failed program was:" >&5
20025sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20028 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20029 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20030 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20031fi
e6cc62c6 20032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20033 CFLAGS="$ac_save_CFLAGS"
20034 LIBS="$ac_save_LIBS"
20035 fi
20036 fi
20037 GTK_CFLAGS=""
20038 GTK_LIBS=""
20039 :
20040 fi
e6cc62c6
VS
20041
20042
21d1c967
GD
20043 rm -f conf.gtktest
20044
21d1c967 20045
2b5f62a0 20046 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20047
20048# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20049if test "${with_gtk_prefix+set}" = set; then
20050 withval="$with_gtk_prefix"
20051 gtk_config_prefix="$withval"
20052else
20053 gtk_config_prefix=""
e6cc62c6 20054fi;
f79bd02d 20055
21d1c967
GD
20056# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20057if test "${with_gtk_exec_prefix+set}" = set; then
20058 withval="$with_gtk_exec_prefix"
20059 gtk_config_exec_prefix="$withval"
20060else
20061 gtk_config_exec_prefix=""
e6cc62c6 20062fi;
21d1c967
GD
20063# Check whether --enable-gtktest or --disable-gtktest was given.
20064if test "${enable_gtktest+set}" = set; then
20065 enableval="$enable_gtktest"
e6cc62c6 20066
90dd450c 20067else
21d1c967 20068 enable_gtktest=yes
e6cc62c6 20069fi;
21d1c967
GD
20070
20071 for module in . $GTK_MODULES
20072 do
20073 case "$module" in
e6cc62c6 20074 gthread)
21d1c967
GD
20075 gtk_config_args="$gtk_config_args gthread"
20076 ;;
20077 esac
20078 done
20079
20080 if test x$gtk_config_exec_prefix != x ; then
20081 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20082 if test x${GTK_CONFIG+set} != xset ; then
20083 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20084 fi
20085 fi
20086 if test x$gtk_config_prefix != x ; then
20087 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20088 if test x${GTK_CONFIG+set} != xset ; then
20089 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20090 fi
20091 fi
20092
20093 # Extract the first word of "gtk-config", so it can be a program name with args.
20094set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20095echo "$as_me:$LINENO: checking for $ac_word" >&5
20096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20097if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20099else
e6cc62c6
VS
20100 case $GTK_CONFIG in
20101 [\\/]* | ?:[\\/]*)
21d1c967
GD
20102 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20103 ;;
21d1c967 20104 *)
e6cc62c6
VS
20105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20106for as_dir in $PATH
20107do
20108 IFS=$as_save_IFS
20109 test -z "$as_dir" && as_dir=.
20110 for ac_exec_ext in '' $ac_executable_extensions; do
20111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20112 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20114 break 2
20115 fi
20116done
20117done
20118
21d1c967
GD
20119 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20120 ;;
20121esac
20122fi
e6cc62c6
VS
20123GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20124
21d1c967 20125if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20126 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20127echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20128else
e6cc62c6
VS
20129 echo "$as_me:$LINENO: result: no" >&5
20130echo "${ECHO_T}no" >&6
21d1c967
GD
20131fi
20132
20133 min_gtk_version=1.2.3
e6cc62c6
VS
20134 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20135echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20136 no_gtk=""
20137 if test "$GTK_CONFIG" = "no" ; then
20138 no_gtk=yes
20139 else
20140 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20141 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20142 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20144 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20146 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20148 if test "x$enable_gtktest" = "xyes" ; then
20149 ac_save_CFLAGS="$CFLAGS"
20150 ac_save_LIBS="$LIBS"
20151 CFLAGS="$CFLAGS $GTK_CFLAGS"
20152 LIBS="$GTK_LIBS $LIBS"
20153 rm -f conf.gtktest
20154 if test "$cross_compiling" = yes; then
20155 echo $ac_n "cross compiling; assumed OK... $ac_c"
20156else
e6cc62c6
VS
20157 cat >conftest.$ac_ext <<_ACEOF
20158#line $LINENO "configure"
20159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
21d1c967
GD
20164
20165#include <gtk/gtk.h>
20166#include <stdio.h>
20167#include <stdlib.h>
20168
e6cc62c6 20169int
21d1c967
GD
20170main ()
20171{
20172 int major, minor, micro;
20173 char *tmp_version;
20174
20175 system ("touch conf.gtktest");
20176
20177 /* HP/UX 9 (%@#!) writes to sscanf strings */
20178 tmp_version = g_strdup("$min_gtk_version");
20179 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20180 printf("%s, bad version string\n", "$min_gtk_version");
20181 exit(1);
20182 }
20183
20184 if ((gtk_major_version != $gtk_config_major_version) ||
20185 (gtk_minor_version != $gtk_config_minor_version) ||
20186 (gtk_micro_version != $gtk_config_micro_version))
20187 {
e6cc62c6 20188 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20189 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20190 gtk_major_version, gtk_minor_version, gtk_micro_version);
20191 printf ("*** was found! If gtk-config was correct, then it is best\n");
20192 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20193 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20194 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20195 printf("*** required on your system.\n");
20196 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20197 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20198 printf("*** before re-running configure\n");
e6cc62c6 20199 }
21d1c967
GD
20200#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20201 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20202 (gtk_minor_version != GTK_MINOR_VERSION) ||
20203 (gtk_micro_version != GTK_MICRO_VERSION))
20204 {
20205 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20206 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20207 printf("*** library (version %d.%d.%d)\n",
20208 gtk_major_version, gtk_minor_version, gtk_micro_version);
20209 }
20210#endif /* defined (GTK_MAJOR_VERSION) ... */
20211 else
20212 {
20213 if ((gtk_major_version > major) ||
20214 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20215 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20216 {
20217 return 0;
20218 }
20219 else
20220 {
20221 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20222 gtk_major_version, gtk_minor_version, gtk_micro_version);
20223 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20224 major, minor, micro);
20225 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20226 printf("***\n");
20227 printf("*** If you have already installed a sufficiently new version, this error\n");
20228 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20229 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20230 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20231 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20232 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20233 printf("*** so that the correct libraries are found at run-time))\n");
20234 }
20235 }
20236 return 1;
20237}
20238
e6cc62c6
VS
20239_ACEOF
20240rm -f conftest$ac_exeext
20241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20242 (eval $ac_link) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
21d1c967
GD
20251 :
20252else
e6cc62c6
VS
20253 echo "$as_me: program exited with status $ac_status" >&5
20254echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257( exit $ac_status )
20258no_gtk=yes
21d1c967 20259fi
e6cc62c6 20260rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20261fi
21d1c967
GD
20262 CFLAGS="$ac_save_CFLAGS"
20263 LIBS="$ac_save_LIBS"
20264 fi
20265 fi
20266 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20267 echo "$as_me:$LINENO: result: yes" >&5
20268echo "${ECHO_T}yes" >&6
20269 wx_cv_lib_gtk=1.2.3
21d1c967 20270 else
e6cc62c6
VS
20271 echo "$as_me:$LINENO: result: no" >&5
20272echo "${ECHO_T}no" >&6
21d1c967
GD
20273 if test "$GTK_CONFIG" = "no" ; then
20274 echo "*** The gtk-config script installed by GTK could not be found"
20275 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20276 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20277 echo "*** full path to gtk-config."
20278 else
20279 if test -f conf.gtktest ; then
20280 :
20281 else
20282 echo "*** Could not run GTK test program, checking why..."
20283 CFLAGS="$CFLAGS $GTK_CFLAGS"
20284 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20285 cat >conftest.$ac_ext <<_ACEOF
20286#line $LINENO "configure"
20287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
21d1c967
GD
20292
20293#include <gtk/gtk.h>
20294#include <stdio.h>
f79bd02d 20295
e6cc62c6
VS
20296int
20297main ()
20298{
20299 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext conftest$ac_exeext
20305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -s conftest$ac_exeext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
21d1c967
GD
20316 echo "*** The test program compiled, but did not run. This usually means"
20317 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20318 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20319 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20320 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20321 echo "*** is required on your system"
20322 echo "***"
20323 echo "*** If you have an old version installed, it is best to remove it, although"
20324 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20325 echo "***"
20326 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20327 echo "*** came with the system with the command"
20328 echo "***"
e6cc62c6 20329 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20330else
e6cc62c6
VS
20331 echo "$as_me: failed program was:" >&5
20332sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20335 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20336 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20337 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20338fi
e6cc62c6 20339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20340 CFLAGS="$ac_save_CFLAGS"
20341 LIBS="$ac_save_LIBS"
20342 fi
20343 fi
20344 GTK_CFLAGS=""
20345 GTK_LIBS=""
20346 :
20347 fi
e6cc62c6
VS
20348
20349
21d1c967 20350 rm -f conf.gtktest
f79bd02d 20351
2b5f62a0 20352 fi
21d1c967
GD
20353 fi
20354
20355 if test -z "$wx_cv_lib_gtk"; then
20356 wx_cv_lib_gtk=none
20357 else
20358 wx_cv_cflags_gtk=$GTK_CFLAGS
20359 wx_cv_libs_gtk=$GTK_LIBS
20360 fi
e6cc62c6
VS
20361
20362
5c6fa7d2 20363fi
52127426 20364
8284b0c5 20365
21d1c967 20366 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20367 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20368echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20369 fi
20370
20371 case "$wx_cv_lib_gtk" in
20372 2.0) WXGTK20=1
2b5f62a0 20373 TOOLKIT_VERSION=2
21d1c967
GD
20374 ;;
20375 1.2.7) WXGTK127=1
20376 WXGTK12=1
20377 ;;
20378 1.2.3) WXGTK12=1
20379 ;;
e6cc62c6
VS
20380 *) { { echo "$as_me:$LINENO: error:
20381Please check that gtk-config is in path, the directory
20382where GTK+ libraries are installed (returned by
20383'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20384equivalent variable and GTK+ is version 1.2.3 or above.
20385 " >&5
20386echo "$as_me: error:
247f5006
VZ
20387Please check that gtk-config is in path, the directory
20388where GTK+ libraries are installed (returned by
20389'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20390equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20391 " >&2;}
20392 { (exit 1); exit 1; }; }
21d1c967
GD
20393 ;;
20394 esac
20395
b13cd66e
VZ
20396 if test "$WXGTK20" = 1; then
20397 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20398
f09359cf
VS
20399 succeeded=no
20400
20401 if test -z "$PKG_CONFIG"; then
20402 # Extract the first word of "pkg-config", so it can be a program name with args.
20403set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20404echo "$as_me:$LINENO: checking for $ac_word" >&5
20405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20406if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20408else
e6cc62c6
VS
20409 case $PKG_CONFIG in
20410 [\\/]* | ?:[\\/]*)
f09359cf
VS
20411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20412 ;;
f09359cf 20413 *)
e6cc62c6
VS
20414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415for as_dir in $PATH
20416do
20417 IFS=$as_save_IFS
20418 test -z "$as_dir" && as_dir=.
20419 for ac_exec_ext in '' $ac_executable_extensions; do
20420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20423 break 2
20424 fi
20425done
20426done
20427
f09359cf
VS
20428 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20429 ;;
20430esac
20431fi
e6cc62c6
VS
20432PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20433
f09359cf 20434if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20435 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20436echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20437else
e6cc62c6
VS
20438 echo "$as_me:$LINENO: result: no" >&5
20439echo "${ECHO_T}no" >&6
f09359cf
VS
20440fi
20441
20442 fi
20443
20444 if test "$PKG_CONFIG" = "no" ; then
20445 echo "*** The pkg-config script could not be found. Make sure it is"
20446 echo "*** in your path, or set the PKG_CONFIG environment variable"
20447 echo "*** to the full path to pkg-config."
20448 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20449 else
20450 PKG_CONFIG_MIN_VERSION=0.9.0
20451 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20452 echo "$as_me:$LINENO: checking for pangoft2" >&5
20453echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20454
20455 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20456 echo "$as_me:$LINENO: result: yes" >&5
20457echo "${ECHO_T}yes" >&6
f09359cf
VS
20458 succeeded=yes
20459
e6cc62c6
VS
20460 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20461echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20462 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20463 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20464echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20465
e6cc62c6
VS
20466 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20467echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20468 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20469 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20470echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20471 else
20472 PANGOFT2_CFLAGS=""
20473 PANGOFT2_LIBS=""
e6cc62c6 20474 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20475 ## do set a variable so people can do so.
20476 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20477
f09359cf
VS
20478 fi
20479
e6cc62c6
VS
20480
20481
f09359cf
VS
20482 else
20483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20485 fi
20486 fi
20487
20488 if test $succeeded = yes; then
e6cc62c6 20489
b13cd66e
VZ
20490 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20491 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 20492
f09359cf 20493 else
e6cc62c6
VS
20494
20495 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20496echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20497 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20498
20499
f09359cf
VS
20500 fi
20501
b13cd66e 20502 fi
2b5f62a0
VZ
20503 else
20504 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20505 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20506echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20507 wxUSE_UNICODE=no
20508 fi
20509 fi
20510
20511 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20512
20513for ac_func in poll
2b5f62a0 20514do
e6cc62c6
VS
20515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20516echo "$as_me:$LINENO: checking for $ac_func" >&5
20517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20518if eval "test \"\${$as_ac_var+set}\" = set"; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
20521 cat >conftest.$ac_ext <<_ACEOF
20522#line $LINENO "configure"
20523/* confdefs.h. */
20524_ACEOF
20525cat confdefs.h >>conftest.$ac_ext
20526cat >>conftest.$ac_ext <<_ACEOF
20527/* end confdefs.h. */
2b5f62a0 20528/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20529 which can conflict with char $ac_func (); below.
20530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20531 <limits.h> exists even on freestanding compilers. */
20532#ifdef __STDC__
20533# include <limits.h>
20534#else
20535# include <assert.h>
20536#endif
2b5f62a0 20537/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20538#ifdef __cplusplus
20539extern "C"
20540{
20541#endif
2b5f62a0 20542/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20543 builtin and then its argument prototype would still apply. */
20544char $ac_func ();
2b5f62a0
VZ
20545/* The GNU C library defines this for functions which it implements
20546 to always fail with ENOSYS. Some functions are actually named
20547 something starting with __ and the normal name is an alias. */
20548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20549choke me
20550#else
e6cc62c6
VS
20551char (*f) () = $ac_func;
20552#endif
20553#ifdef __cplusplus
20554}
2b5f62a0
VZ
20555#endif
20556
e6cc62c6
VS
20557int
20558main ()
20559{
20560return f != $ac_func;
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext conftest$ac_exeext
20566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20567 (eval $ac_link) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -s conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 eval "$as_ac_var=yes"
20578else
20579 echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582eval "$as_ac_var=no"
20583fi
20584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20585fi
20586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20588if test `eval echo '${'$as_ac_var'}'` = yes; then
20589 cat >>confdefs.h <<_ACEOF
20590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20591_ACEOF
2b5f62a0 20592
2b5f62a0
VZ
20593fi
20594done
20595
f09359cf
VS
20596 fi
20597
21d1c967
GD
20598 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20599 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
20600
20601 AFMINSTALL=afminstall
20602 TOOLKIT=GTK
20603 GUIDIST=GTK_DIST
20604
e6cc62c6
VS
20605 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20606echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20607if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20609else
e6cc62c6 20610 ac_check_lib_save_LIBS=$LIBS
21d1c967 20611LIBS="-lgdk $LIBS"
e6cc62c6
VS
20612cat >conftest.$ac_ext <<_ACEOF
20613#line $LINENO "configure"
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
20619
5c6fa7d2 20620/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20621#ifdef __cplusplus
20622extern "C"
20623#endif
5c6fa7d2 20624/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20625 builtin and then its argument prototype would still apply. */
20626char gdk_im_open ();
20627int
20628main ()
20629{
20630gdk_im_open ();
20631 ;
20632 return 0;
20633}
20634_ACEOF
20635rm -f conftest.$ac_objext conftest$ac_exeext
20636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20637 (eval $ac_link) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
20641 { ac_try='test -s conftest$ac_exeext'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_lib_gdk_gdk_im_open=yes
20648else
20649 echo "$as_me: failed program was:" >&5
20650sed 's/^/| /' conftest.$ac_ext >&5
20651
20652ac_cv_lib_gdk_gdk_im_open=no
20653fi
20654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20655LIBS=$ac_check_lib_save_LIBS
20656fi
20657echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20658echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20659if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20660 cat >>confdefs.h <<\_ACEOF
21d1c967 20661#define HAVE_XIM 1
e6cc62c6 20662_ACEOF
21d1c967 20663
90dd450c 20664fi
1e6feb95 20665
21d1c967 20666 fi
1e6feb95 20667
21d1c967 20668 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20669 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20670echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20671 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20672 echo "$as_me:$LINENO: result: not found" >&5
20673echo "${ECHO_T}not found" >&6
20674 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20675echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20676 { (exit 1); exit 1; }; }
21d1c967 20677 else
e6cc62c6
VS
20678 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20679echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20680 fi
20681
e6cc62c6
VS
20682 echo "$as_me:$LINENO: checking for libmgl location" >&5
20683echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20684 case "${host}" in
20685 *-*-linux* )
63a76696
VS
20686 if test "x$wxUSE_SHARED" = xyes ; then
20687 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20688 else
20689 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20690 fi
21d1c967
GD
20691 ;;
20692 *-pc-msdosdjgpp )
63a76696 20693 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20694 ;;
20695 *)
e6cc62c6
VS
20696 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20697echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20698 { (exit 1); exit 1; }; }
21d1c967 20699 esac
1e6feb95 20700
21d1c967 20701 mgl_lib_type=""
63a76696
VS
20702 mgl_os=""
20703
20704 for mgl_os_i in $mgl_os_candidates ; do
20705 if test "x$mgl_os" = x ; then
20706 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20707 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20708 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20709 mgl_lib_type=debug
20710 mgl_os=$mgl_os_i
20711 fi
20712 fi
20713 if test "x$mgl_lib_type" = x ; then
20714 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20715 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20716 mgl_lib_type=release
20717 mgl_os=$mgl_os_i
20718 fi
20719 fi
21d1c967 20720 fi
63a76696 20721 done
2224580a 20722
63a76696 20723 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20724 echo "$as_me:$LINENO: result: not found" >&5
20725echo "${ECHO_T}not found" >&6
20726 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20727echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20728 { (exit 1); exit 1; }; }
63a76696 20729 fi
e6cc62c6
VS
20730 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20731echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20732
1d1b75ac
VZ
20733 wxUSE_UNIVERSAL="yes"
20734
21d1c967
GD
20735 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20736 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20737
90dd450c 20738 AFMINSTALL=afminstall
21d1c967
GD
20739 TOOLKIT=MGL
20740 GUIDIST=MGL_DIST
20741 fi
dad6c0ea 20742
21d1c967 20743 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20744 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20745echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20746 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20747 echo "$as_me:$LINENO: result: not found" >&5
20748echo "${ECHO_T}not found" >&6
20749 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20750echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20751 { (exit 1); exit 1; }; }
21d1c967 20752 else
e6cc62c6
VS
20753 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20754echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20755 fi
f6bcfd97 20756
21d1c967 20757 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20758 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20759echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20760 else
e6cc62c6
VS
20761 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20762echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20763 { (exit 1); exit 1; }; }
90dd450c 20764 fi
0b2effe9 20765
21d1c967
GD
20766 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20767 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20768
1d1b75ac
VZ
20769 wxUSE_UNIVERSAL="yes"
20770
21d1c967
GD
20771 AFMINSTALL=afminstall
20772 TOOLKIT=MICROWIN
20773 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
20774
20775 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 20776 fi
f6bcfd97 20777
21d1c967 20778 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
20779 echo "$as_me:$LINENO: checking for X" >&5
20780echo $ECHO_N "checking for X... $ECHO_C" >&6
20781
d8356fa3 20782
21d1c967
GD
20783# Check whether --with-x or --without-x was given.
20784if test "${with_x+set}" = set; then
20785 withval="$with_x"
2224580a 20786
e6cc62c6 20787fi;
21d1c967
GD
20788# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20789if test "x$with_x" = xno; then
20790 # The user explicitly disabled X.
20791 have_x=disabled
20792else
20793 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20794 # Both variables are already set.
20795 have_x=yes
20796 else
e6cc62c6
VS
20797 if test "${ac_cv_have_x+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
20799else
20800 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
20801ac_x_includes=no ac_x_libraries=no
20802rm -fr conftest.dir
20803if mkdir conftest.dir; then
20804 cd conftest.dir
21d1c967 20805 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 20806 cat >Imakefile <<'_ACEOF'
21d1c967
GD
20807acfindx:
20808 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 20809_ACEOF
21d1c967
GD
20810 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20812 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20814 for ac_extension in a so sl; do
20815 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 20816 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
20817 ac_im_usrlibdir=$ac_im_libdir; break
20818 fi
20819 done
20820 # Screen out bogus values from the imake configuration. They are
20821 # bogus both because they are the default anyway, and because
20822 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 20823 case $ac_im_incroot in
21d1c967 20824 /usr/include) ;;
e6cc62c6 20825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 20826 esac
e6cc62c6 20827 case $ac_im_usrlibdir in
21d1c967 20828 /usr/lib | /lib) ;;
e6cc62c6 20829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
20830 esac
20831 fi
20832 cd ..
e6cc62c6 20833 rm -fr conftest.dir
21d1c967 20834fi
10f2d63a 20835
e6cc62c6
VS
20836# Standard set of common directories for X headers.
20837# Check X11 before X11Rn because it is often a symlink to the current release.
20838ac_x_header_dirs='
20839/usr/X11/include
20840/usr/X11R6/include
20841/usr/X11R5/include
20842/usr/X11R4/include
20843
20844/usr/include/X11
20845/usr/include/X11R6
20846/usr/include/X11R5
20847/usr/include/X11R4
20848
20849/usr/local/X11/include
20850/usr/local/X11R6/include
20851/usr/local/X11R5/include
20852/usr/local/X11R4/include
20853
20854/usr/local/include/X11
20855/usr/local/include/X11R6
20856/usr/local/include/X11R5
20857/usr/local/include/X11R4
20858
20859/usr/X386/include
20860/usr/x386/include
20861/usr/XFree86/include/X11
20862
20863/usr/include
20864/usr/local/include
20865/usr/unsupported/include
20866/usr/athena/include
20867/usr/local/x11r5/include
20868/usr/lpp/Xamples/include
20869
20870/usr/openwin/include
20871/usr/openwin/share/include'
20872
20873if test "$ac_x_includes" = no; then
20874 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 20875 # First, try using that file with no special directory specified.
e6cc62c6
VS
20876 cat >conftest.$ac_ext <<_ACEOF
20877#line $LINENO "configure"
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
20883#include <X11/Intrinsic.h>
20884_ACEOF
20885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } >/dev/null; then
20893 if test -s conftest.err; then
20894 ac_cpp_err=$ac_c_preproc_warn_flag
20895 else
20896 ac_cpp_err=
20897 fi
20898else
20899 ac_cpp_err=yes
20900fi
20901if test -z "$ac_cpp_err"; then
21d1c967
GD
20902 # We can compile using X headers with no special include directory.
20903ac_x_includes=
90dd450c 20904else
e6cc62c6
VS
20905 echo "$as_me: failed program was:" >&5
20906sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 for ac_dir in $ac_x_header_dirs; do
20909 if test -r "$ac_dir/X11/Intrinsic.h"; then
20910 ac_x_includes=$ac_dir
20911 break
20912 fi
20913done
3a922bb4 20914fi
e6cc62c6
VS
20915rm -f conftest.err conftest.$ac_ext
20916fi # $ac_x_includes = no
10f2d63a 20917
e6cc62c6 20918if test "$ac_x_libraries" = no; then
21d1c967 20919 # Check for the libraries.
21d1c967
GD
20920 # See if we find them without any special options.
20921 # Don't add to $LIBS permanently.
e6cc62c6
VS
20922 ac_save_LIBS=$LIBS
20923 LIBS="-lXt $LIBS"
20924 cat >conftest.$ac_ext <<_ACEOF
20925#line $LINENO "configure"
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
20931#include <X11/Intrinsic.h>
20932int
20933main ()
20934{
20935XtMalloc (0)
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940rm -f conftest.$ac_objext conftest$ac_exeext
20941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -s conftest$ac_exeext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 LIBS=$ac_save_LIBS
21d1c967
GD
20953# We can link X programs with no special library path.
20954ac_x_libraries=
3a922bb4 20955else
e6cc62c6
VS
20956 echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959LIBS=$ac_save_LIBS
20960for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 20961do
e6cc62c6 20962 # Don't even attempt the hair of trying to link an X program!
21d1c967 20963 for ac_extension in a so sl; do
e6cc62c6 20964 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
20965 ac_x_libraries=$ac_dir
20966 break 2
20967 fi
20968 done
20969done
3a922bb4 20970fi
e6cc62c6
VS
20971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20972fi # $ac_x_libraries = no
90dd450c 20973
e6cc62c6 20974if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
20975 # Didn't find X anywhere. Cache the known absence of X.
20976 ac_cv_have_x="have_x=no"
20977else
20978 # Record where we found X for the cache.
20979 ac_cv_have_x="have_x=yes \
20980 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 20981fi
21d1c967 20982fi
e6cc62c6 20983
21d1c967
GD
20984 fi
20985 eval "$ac_cv_have_x"
20986fi # $with_x != no
90dd450c 20987
21d1c967 20988if test "$have_x" != yes; then
e6cc62c6
VS
20989 echo "$as_me:$LINENO: result: $have_x" >&5
20990echo "${ECHO_T}$have_x" >&6
21d1c967
GD
20991 no_x=yes
20992else
20993 # If each of the values was on the command line, it overrides each guess.
20994 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20995 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20996 # Update the cache value to reflect the command line values.
20997 ac_cv_have_x="have_x=yes \
20998 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
20999 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21000echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21001fi
90dd450c 21002
21d1c967 21003if test "$no_x" = yes; then
90dd450c 21004 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21005
21006cat >>confdefs.h <<\_ACEOF
90dd450c 21007#define X_DISPLAY_MISSING 1
e6cc62c6 21008_ACEOF
90dd450c
VZ
21009
21010 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21011else
21012 if test -n "$x_includes"; then
21013 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21014 fi
3a922bb4 21015
90dd450c
VZ
21016 # It would also be nice to do this for all -L options, not just this one.
21017 if test -n "$x_libraries"; then
21018 X_LIBS="$X_LIBS -L$x_libraries"
21019 # For Solaris; some versions of Sun CC require a space after -R and
21020 # others require no space. Words are not sufficient . . . .
e6cc62c6 21021 case `(uname -sr) 2>/dev/null` in
90dd450c 21022 "SunOS 5"*)
e6cc62c6
VS
21023 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21024echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21025 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21026 cat >conftest.$ac_ext <<_ACEOF
21027#line $LINENO "configure"
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033
21034int
21035main ()
21036{
90dd450c 21037
e6cc62c6
VS
21038 ;
21039 return 0;
21040}
21041_ACEOF
21042rm -f conftest.$ac_objext conftest$ac_exeext
21043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -s conftest$ac_exeext'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
90dd450c 21054 ac_R_nospace=yes
3a922bb4 21055else
e6cc62c6
VS
21056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059ac_R_nospace=no
3a922bb4 21060fi
e6cc62c6 21061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21062 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21063 echo "$as_me:$LINENO: result: no" >&5
21064echo "${ECHO_T}no" >&6
90dd450c
VZ
21065 X_LIBS="$X_LIBS -R$x_libraries"
21066 else
21067 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21068 cat >conftest.$ac_ext <<_ACEOF
21069#line $LINENO "configure"
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h. */
21075
21076int
21077main ()
21078{
6f754473 21079
e6cc62c6
VS
21080 ;
21081 return 0;
21082}
21083_ACEOF
21084rm -f conftest.$ac_objext conftest$ac_exeext
21085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21086 (eval $ac_link) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -s conftest$ac_exeext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
90dd450c
VZ
21096 ac_R_space=yes
21097else
e6cc62c6
VS
21098 echo "$as_me: failed program was:" >&5
21099sed 's/^/| /' conftest.$ac_ext >&5
21100
21101ac_R_space=no
90dd450c 21102fi
e6cc62c6 21103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21104 if test $ac_R_space = yes; then
e6cc62c6
VS
21105 echo "$as_me:$LINENO: result: yes" >&5
21106echo "${ECHO_T}yes" >&6
90dd450c
VZ
21107 X_LIBS="$X_LIBS -R $x_libraries"
21108 else
e6cc62c6
VS
21109 echo "$as_me:$LINENO: result: neither works" >&5
21110echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21111 fi
21112 fi
e6cc62c6 21113 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21114 esac
21115 fi
21116
21117 # Check for system-dependent libraries X programs must link with.
21118 # Do this before checking for the system-independent R6 libraries
21119 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21120
90dd450c
VZ
21121 if test "$ISC" = yes; then
21122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21123 else
e6cc62c6
VS
21124 # Martyn Johnson says this is needed for Ultrix, if the X
21125 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21126 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21127 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21128 cat >conftest.$ac_ext <<_ACEOF
21129#line $LINENO "configure"
21130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
21135
247f5006 21136/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21137#ifdef __cplusplus
21138extern "C"
21139#endif
247f5006 21140/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21141 builtin and then its argument prototype would still apply. */
21142char XOpenDisplay ();
21143int
21144main ()
21145{
21146XOpenDisplay ();
21147 ;
21148 return 0;
21149}
21150_ACEOF
21151rm -f conftest.$ac_objext conftest$ac_exeext
21152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21153 (eval $ac_link) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try='test -s conftest$ac_exeext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 :
21164else
21165 echo "$as_me: failed program was:" >&5
21166sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21167
e6cc62c6
VS
21168echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21169echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21170if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21172else
e6cc62c6
VS
21173 ac_check_lib_save_LIBS=$LIBS
21174LIBS="-ldnet $LIBS"
21175cat >conftest.$ac_ext <<_ACEOF
21176#line $LINENO "configure"
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
a0b9e27f 21182
e6cc62c6
VS
21183/* Override any gcc2 internal prototype to avoid an error. */
21184#ifdef __cplusplus
21185extern "C"
21186#endif
21187/* We use char because int might match the return type of a gcc2
21188 builtin and then its argument prototype would still apply. */
21189char dnet_ntoa ();
21190int
21191main ()
21192{
21193dnet_ntoa ();
21194 ;
21195 return 0;
21196}
21197_ACEOF
21198rm -f conftest.$ac_objext conftest$ac_exeext
21199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21200 (eval $ac_link) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_lib_dnet_dnet_ntoa=yes
21211else
21212 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215ac_cv_lib_dnet_dnet_ntoa=no
21216fi
21217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21218LIBS=$ac_check_lib_save_LIBS
21219fi
21220echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21221echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21222if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21223 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21224fi
21225
90dd450c 21226 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21227 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21228echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21229if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21231else
e6cc62c6 21232 ac_check_lib_save_LIBS=$LIBS
90dd450c 21233LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21234cat >conftest.$ac_ext <<_ACEOF
21235#line $LINENO "configure"
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241
90dd450c 21242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21243#ifdef __cplusplus
21244extern "C"
21245#endif
90dd450c 21246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21247 builtin and then its argument prototype would still apply. */
21248char dnet_ntoa ();
21249int
21250main ()
21251{
21252dnet_ntoa ();
21253 ;
21254 return 0;
21255}
21256_ACEOF
21257rm -f conftest.$ac_objext conftest$ac_exeext
21258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259 (eval $ac_link) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } &&
21263 { ac_try='test -s conftest$ac_exeext'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274ac_cv_lib_dnet_stub_dnet_ntoa=no
21275fi
21276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21277LIBS=$ac_check_lib_save_LIBS
21278fi
21279echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21280echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21281if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21282 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21283fi
21284
90dd450c 21285 fi
e6cc62c6
VS
21286fi
21287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21288 LIBS="$ac_xsave_LIBS"
978f1259 21289
90dd450c
VZ
21290 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21291 # to get the SysV transport functions.
e6cc62c6 21292 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21293 # needs -lnsl.
21294 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21295 # on Irix 5.2, according to T.E. Dickey.
21296 # The functions gethostbyname, getservbyname, and inet_addr are
21297 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21298 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21299echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21300if test "${ac_cv_func_gethostbyname+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21302else
21303 cat >conftest.$ac_ext <<_ACEOF
21304#line $LINENO "configure"
21305/* confdefs.h. */
21306_ACEOF
21307cat confdefs.h >>conftest.$ac_ext
21308cat >>conftest.$ac_ext <<_ACEOF
21309/* end confdefs.h. */
90dd450c 21310/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21311 which can conflict with char gethostbyname (); below.
21312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21313 <limits.h> exists even on freestanding compilers. */
21314#ifdef __STDC__
21315# include <limits.h>
21316#else
21317# include <assert.h>
21318#endif
90dd450c 21319/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21320#ifdef __cplusplus
21321extern "C"
21322{
21323#endif
90dd450c 21324/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21325 builtin and then its argument prototype would still apply. */
21326char gethostbyname ();
90dd450c
VZ
21327/* The GNU C library defines this for functions which it implements
21328 to always fail with ENOSYS. Some functions are actually named
21329 something starting with __ and the normal name is an alias. */
21330#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21331choke me
21332#else
e6cc62c6
VS
21333char (*f) () = gethostbyname;
21334#endif
21335#ifdef __cplusplus
21336}
90dd450c 21337#endif
978f1259 21338
e6cc62c6
VS
21339int
21340main ()
21341{
21342return f != gethostbyname;
21343 ;
21344 return 0;
21345}
21346_ACEOF
21347rm -f conftest.$ac_objext conftest$ac_exeext
21348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
21353 { ac_try='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_func_gethostbyname=yes
21360else
21361 echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
21363
21364ac_cv_func_gethostbyname=no
21365fi
21366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21367fi
21368echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21369echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21370
90dd450c 21371 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21372 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21373echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21374if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21376else
e6cc62c6 21377 ac_check_lib_save_LIBS=$LIBS
90dd450c 21378LIBS="-lnsl $LIBS"
e6cc62c6
VS
21379cat >conftest.$ac_ext <<_ACEOF
21380#line $LINENO "configure"
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386
90dd450c 21387/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21388#ifdef __cplusplus
21389extern "C"
21390#endif
90dd450c 21391/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21392 builtin and then its argument prototype would still apply. */
21393char gethostbyname ();
21394int
21395main ()
21396{
21397gethostbyname ();
21398 ;
21399 return 0;
21400}
21401_ACEOF
21402rm -f conftest.$ac_objext conftest$ac_exeext
21403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21404 (eval $ac_link) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try='test -s conftest$ac_exeext'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_lib_nsl_gethostbyname=yes
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
21419ac_cv_lib_nsl_gethostbyname=no
21420fi
21421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21422LIBS=$ac_check_lib_save_LIBS
21423fi
21424echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21425echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21426if test $ac_cv_lib_nsl_gethostbyname = yes; then
21427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21428fi
247f5006 21429
e6cc62c6
VS
21430 if test $ac_cv_lib_nsl_gethostbyname = no; then
21431 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21432echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21433if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21435else
e6cc62c6
VS
21436 ac_check_lib_save_LIBS=$LIBS
21437LIBS="-lbsd $LIBS"
21438cat >conftest.$ac_ext <<_ACEOF
21439#line $LINENO "configure"
21440/* confdefs.h. */
21441_ACEOF
21442cat confdefs.h >>conftest.$ac_ext
21443cat >>conftest.$ac_ext <<_ACEOF
21444/* end confdefs.h. */
21445
21446/* Override any gcc2 internal prototype to avoid an error. */
21447#ifdef __cplusplus
21448extern "C"
21449#endif
21450/* We use char because int might match the return type of a gcc2
21451 builtin and then its argument prototype would still apply. */
21452char gethostbyname ();
21453int
21454main ()
21455{
21456gethostbyname ();
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext conftest$ac_exeext
21462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try='test -s conftest$ac_exeext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_cv_lib_bsd_gethostbyname=yes
21474else
21475 echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478ac_cv_lib_bsd_gethostbyname=no
21479fi
21480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21481LIBS=$ac_check_lib_save_LIBS
21482fi
21483echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21484echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21485if test $ac_cv_lib_bsd_gethostbyname = yes; then
21486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21487fi
b12915c1 21488
e6cc62c6 21489 fi
90dd450c
VZ
21490 fi
21491
21492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21493 # socket/setsockopt and other routines are undefined under SCO ODT
21494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21495 # on later versions), says Simon Leinen: it contains gethostby*
21496 # variants that don't use the name server (or something). -lsocket
21497 # must be given before -lnsl if both are needed. We assume that
21498 # if connect needs -lnsl, so does gethostbyname.
21499 echo "$as_me:$LINENO: checking for connect" >&5
21500echo $ECHO_N "checking for connect... $ECHO_C" >&6
21501if test "${ac_cv_func_connect+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503else
21504 cat >conftest.$ac_ext <<_ACEOF
21505#line $LINENO "configure"
21506/* confdefs.h. */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h. */
90dd450c 21511/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21512 which can conflict with char connect (); below.
21513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21514 <limits.h> exists even on freestanding compilers. */
21515#ifdef __STDC__
21516# include <limits.h>
21517#else
21518# include <assert.h>
21519#endif
90dd450c 21520/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21521#ifdef __cplusplus
21522extern "C"
21523{
21524#endif
90dd450c 21525/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21526 builtin and then its argument prototype would still apply. */
21527char connect ();
90dd450c
VZ
21528/* The GNU C library defines this for functions which it implements
21529 to always fail with ENOSYS. Some functions are actually named
21530 something starting with __ and the normal name is an alias. */
21531#if defined (__stub_connect) || defined (__stub___connect)
21532choke me
21533#else
e6cc62c6
VS
21534char (*f) () = connect;
21535#endif
21536#ifdef __cplusplus
21537}
90dd450c
VZ
21538#endif
21539
e6cc62c6
VS
21540int
21541main ()
21542{
21543return f != connect;
21544 ;
21545 return 0;
21546}
21547_ACEOF
21548rm -f conftest.$ac_objext conftest$ac_exeext
21549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21550 (eval $ac_link) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
21554 { ac_try='test -s conftest$ac_exeext'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
21560 ac_cv_func_connect=yes
21561else
21562 echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565ac_cv_func_connect=no
21566fi
21567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21570echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21571
90dd450c 21572 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21573 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21574echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21575if test "${ac_cv_lib_socket_connect+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21577else
e6cc62c6 21578 ac_check_lib_save_LIBS=$LIBS
90dd450c 21579LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21580cat >conftest.$ac_ext <<_ACEOF
21581#line $LINENO "configure"
21582/* confdefs.h. */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h. */
21587
90dd450c 21588/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21589#ifdef __cplusplus
21590extern "C"
21591#endif
90dd450c 21592/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21593 builtin and then its argument prototype would still apply. */
21594char connect ();
21595int
21596main ()
21597{
21598connect ();
21599 ;
21600 return 0;
21601}
21602_ACEOF
21603rm -f conftest.$ac_objext conftest$ac_exeext
21604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21605 (eval $ac_link) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -s conftest$ac_exeext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 ac_cv_lib_socket_connect=yes
21616else
21617 echo "$as_me: failed program was:" >&5
21618sed 's/^/| /' conftest.$ac_ext >&5
21619
21620ac_cv_lib_socket_connect=no
21621fi
21622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21623LIBS=$ac_check_lib_save_LIBS
21624fi
21625echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21626echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21627if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21629fi
77e13408 21630
90dd450c 21631 fi
25d0687a 21632
e6cc62c6
VS
21633 # Guillermo Gomez says -lposix is necessary on A/UX.
21634 echo "$as_me:$LINENO: checking for remove" >&5
21635echo $ECHO_N "checking for remove... $ECHO_C" >&6
21636if test "${ac_cv_func_remove+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21638else
21639 cat >conftest.$ac_ext <<_ACEOF
21640#line $LINENO "configure"
21641/* confdefs.h. */
21642_ACEOF
21643cat confdefs.h >>conftest.$ac_ext
21644cat >>conftest.$ac_ext <<_ACEOF
21645/* end confdefs.h. */
90dd450c 21646/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21647 which can conflict with char remove (); below.
21648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21649 <limits.h> exists even on freestanding compilers. */
21650#ifdef __STDC__
21651# include <limits.h>
21652#else
21653# include <assert.h>
21654#endif
90dd450c 21655/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21656#ifdef __cplusplus
21657extern "C"
21658{
21659#endif
90dd450c 21660/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21661 builtin and then its argument prototype would still apply. */
21662char remove ();
90dd450c
VZ
21663/* The GNU C library defines this for functions which it implements
21664 to always fail with ENOSYS. Some functions are actually named
21665 something starting with __ and the normal name is an alias. */
21666#if defined (__stub_remove) || defined (__stub___remove)
21667choke me
21668#else
e6cc62c6
VS
21669char (*f) () = remove;
21670#endif
21671#ifdef __cplusplus
21672}
90dd450c 21673#endif
55e80573 21674
e6cc62c6
VS
21675int
21676main ()
21677{
21678return f != remove;
21679 ;
21680 return 0;
21681}
21682_ACEOF
21683rm -f conftest.$ac_objext conftest$ac_exeext
21684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21685 (eval $ac_link) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -s conftest$ac_exeext'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21695 ac_cv_func_remove=yes
21696else
21697 echo "$as_me: failed program was:" >&5
21698sed 's/^/| /' conftest.$ac_ext >&5
21699
21700ac_cv_func_remove=no
21701fi
21702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21703fi
21704echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21705echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21706
90dd450c 21707 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21708 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21709echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21710if test "${ac_cv_lib_posix_remove+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21712else
e6cc62c6 21713 ac_check_lib_save_LIBS=$LIBS
90dd450c 21714LIBS="-lposix $LIBS"
e6cc62c6
VS
21715cat >conftest.$ac_ext <<_ACEOF
21716#line $LINENO "configure"
21717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
21722
90dd450c 21723/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21724#ifdef __cplusplus
21725extern "C"
21726#endif
90dd450c 21727/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21728 builtin and then its argument prototype would still apply. */
21729char remove ();
21730int
21731main ()
21732{
21733remove ();
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext conftest$ac_exeext
21739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -s conftest$ac_exeext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_lib_posix_remove=yes
21751else
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755ac_cv_lib_posix_remove=no
21756fi
21757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21758LIBS=$ac_check_lib_save_LIBS
21759fi
21760echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21761echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21762if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21764fi
f6bcfd97 21765
6fa882bd
RR
21766 fi
21767
90dd450c 21768 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21769 echo "$as_me:$LINENO: checking for shmat" >&5
21770echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21771if test "${ac_cv_func_shmat+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773else
21774 cat >conftest.$ac_ext <<_ACEOF
21775#line $LINENO "configure"
21776/* confdefs.h. */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h. */
90dd450c 21781/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21782 which can conflict with char shmat (); below.
21783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21784 <limits.h> exists even on freestanding compilers. */
21785#ifdef __STDC__
21786# include <limits.h>
21787#else
21788# include <assert.h>
21789#endif
90dd450c 21790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21791#ifdef __cplusplus
21792extern "C"
21793{
21794#endif
90dd450c 21795/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21796 builtin and then its argument prototype would still apply. */
21797char shmat ();
90dd450c
VZ
21798/* The GNU C library defines this for functions which it implements
21799 to always fail with ENOSYS. Some functions are actually named
21800 something starting with __ and the normal name is an alias. */
21801#if defined (__stub_shmat) || defined (__stub___shmat)
21802choke me
21803#else
e6cc62c6
VS
21804char (*f) () = shmat;
21805#endif
21806#ifdef __cplusplus
21807}
90dd450c 21808#endif
10f2d63a 21809
e6cc62c6
VS
21810int
21811main ()
21812{
21813return f != shmat;
21814 ;
21815 return 0;
21816}
21817_ACEOF
21818rm -f conftest.$ac_objext conftest$ac_exeext
21819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } &&
21824 { ac_try='test -s conftest$ac_exeext'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 ac_cv_func_shmat=yes
21831else
21832 echo "$as_me: failed program was:" >&5
21833sed 's/^/| /' conftest.$ac_ext >&5
21834
21835ac_cv_func_shmat=no
21836fi
21837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21838fi
21839echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21840echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 21841
90dd450c 21842 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
21843 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21844echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21845if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 21847else
e6cc62c6 21848 ac_check_lib_save_LIBS=$LIBS
90dd450c 21849LIBS="-lipc $LIBS"
e6cc62c6
VS
21850cat >conftest.$ac_ext <<_ACEOF
21851#line $LINENO "configure"
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857
8284b0c5 21858/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21859#ifdef __cplusplus
21860extern "C"
21861#endif
90dd450c 21862/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21863 builtin and then its argument prototype would still apply. */
21864char shmat ();
21865int
21866main ()
21867{
21868shmat ();
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext conftest$ac_exeext
21874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875 (eval $ac_link) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -s conftest$ac_exeext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_lib_ipc_shmat=yes
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890ac_cv_lib_ipc_shmat=no
21891fi
21892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21893LIBS=$ac_check_lib_save_LIBS
21894fi
21895echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21896echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21897if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 21898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
21899fi
21900
d558c907 21901 fi
90dd450c 21902 fi
3a922bb4 21903
90dd450c 21904 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 21905 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
21906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21908 # check for ICE first), but we must link in the order -lSM -lICE or
21909 # we get undefined symbols. So assume we have SM if we have ICE.
21910 # These have to be linked with before -lX11, unlike the other
21911 # libraries we check for below, so use a different variable.
e6cc62c6
VS
21912 # John Interrante, Karl Berry
21913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21914echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21915if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917else
21918 ac_check_lib_save_LIBS=$LIBS
f09359cf 21919LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21920cat >conftest.$ac_ext <<_ACEOF
21921#line $LINENO "configure"
21922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
21927
90dd450c 21928/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21929#ifdef __cplusplus
21930extern "C"
21931#endif
90dd450c 21932/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21933 builtin and then its argument prototype would still apply. */
21934char IceConnectionNumber ();
21935int
21936main ()
21937{
21938IceConnectionNumber ();
21939 ;
21940 return 0;
21941}
21942_ACEOF
21943rm -f conftest.$ac_objext conftest$ac_exeext
21944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21945 (eval $ac_link) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -s conftest$ac_exeext'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_cv_lib_ICE_IceConnectionNumber=yes
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960ac_cv_lib_ICE_IceConnectionNumber=no
21961fi
21962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21963LIBS=$ac_check_lib_save_LIBS
21964fi
21965echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21966echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21967if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 21968 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 21969fi
10f2d63a 21970
e6cc62c6 21971 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
21972
21973fi
21974
8284b0c5 21975
90dd450c 21976 if test "$no_x" = "yes"; then
e6cc62c6
VS
21977 { { echo "$as_me:$LINENO: error: X11 not found" >&5
21978echo "$as_me: error: X11 not found" >&2;}
21979 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
21980 fi
21981
21982 GUI_TK_LIBRARY="$X_LIBS"
21983 TOOLKIT_INCLUDE="$X_CFLAGS"
21984 AFMINSTALL=afminstall
21985 COMPILED_X_PROGRAM=0
21986
21d1c967 21987 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
21988 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
21989echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 21990 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
21991 echo "$as_me:$LINENO: result: not found" >&5
21992echo "${ECHO_T}not found" >&6
21993 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
21994echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
21995 { (exit 1); exit 1; }; }
90dd450c 21996 else
e6cc62c6
VS
21997 echo "$as_me:$LINENO: result: $MICROWIN" >&5
21998echo "${ECHO_T}$MICROWIN" >&6
21999 cat >>confdefs.h <<\_ACEOF
21d1c967 22000#define wxUSE_NANOX 1
e6cc62c6 22001_ACEOF
21d1c967 22002
90dd450c
VZ
22003 fi
22004 fi
22005
22006 xpm_link=
e6cc62c6
VS
22007 echo "$as_me:$LINENO: checking for Xpm library" >&5
22008echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22009
90dd450c 22010ac_find_libraries=
2b5f62a0 22011for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22012 do
22013 for ac_extension in a so sl dylib; do
22014 if test -f "$ac_dir/libXpm.$ac_extension"; then
22015 ac_find_libraries=$ac_dir
22016 break 2
22017 fi
22018 done
22019 done
22020
22021 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22022
90dd450c
VZ
22023 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22024 result=$?
22025 if test $result = 0; then
22026 ac_path_to_link=""
22027 else
22028 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22029 fi
90dd450c 22030
21d1c967
GD
22031 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22032 xpm_link=" -lXpm"
e6cc62c6 22033 cat >>confdefs.h <<\_ACEOF
21d1c967 22034#define wxHAVE_LIB_XPM 1
e6cc62c6 22035_ACEOF
90dd450c 22036
e6cc62c6
VS
22037 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22038echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22039 else
e6cc62c6
VS
22040 cat >conftest.$ac_ext <<_ACEOF
22041#line $LINENO "configure"
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
90dd450c 22047
21d1c967 22048 #include <X11/xpm.h>
e6cc62c6
VS
22049
22050int
22051main ()
22052{
6f72b082 22053
21d1c967
GD
22054 int version;
22055 version = XpmLibraryVersion();
e6cc62c6
VS
22056
22057 ;
22058 return 0;
22059}
22060_ACEOF
22061rm -f conftest.$ac_objext
22062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -s conftest.$ac_objext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073
21d1c967 22074 xpm_link=" -lXpm"
e6cc62c6 22075 cat >>confdefs.h <<\_ACEOF
21d1c967 22076#define wxHAVE_LIB_XPM 1
e6cc62c6 22077_ACEOF
90dd450c 22078
e6cc62c6
VS
22079 echo "$as_me:$LINENO: result: found in default search path" >&5
22080echo "${ECHO_T}found in default search path" >&6
21d1c967 22081 COMPILED_X_PROGRAM=0
e6cc62c6 22082
21d1c967 22083else
e6cc62c6
VS
22084 echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087
22088 echo "$as_me:$LINENO: result: no" >&5
22089echo "${ECHO_T}no" >&6
22090 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22091echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22092
22093
6f72b082 22094fi
e6cc62c6 22095rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22096 fi
90dd450c 22097
e6cc62c6
VS
22098 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22099echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22100if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22102else
e6cc62c6 22103 ac_check_lib_save_LIBS=$LIBS
f7f78039 22104LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22105cat >conftest.$ac_ext <<_ACEOF
22106#line $LINENO "configure"
22107/* confdefs.h. */
22108_ACEOF
22109cat confdefs.h >>conftest.$ac_ext
22110cat >>conftest.$ac_ext <<_ACEOF
22111/* end confdefs.h. */
22112
f7f78039 22113/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22114#ifdef __cplusplus
22115extern "C"
22116#endif
f7f78039 22117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22118 builtin and then its argument prototype would still apply. */
22119char XShapeQueryExtension ();
22120int
22121main ()
22122{
22123XShapeQueryExtension ();
22124 ;
22125 return 0;
22126}
22127_ACEOF
22128rm -f conftest.$ac_objext conftest$ac_exeext
22129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22130 (eval $ac_link) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
22134 { ac_try='test -s conftest$ac_exeext'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; }; then
22140 ac_cv_lib_Xext_XShapeQueryExtension=yes
22141else
22142 echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145ac_cv_lib_Xext_XShapeQueryExtension=no
22146fi
22147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22148LIBS=$ac_check_lib_save_LIBS
22149fi
22150echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22151echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22152if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22153
f7f78039
MB
22154 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22155 wxHAVE_XEXT_LIB=1
e6cc62c6 22156
f7f78039
MB
22157fi
22158
22159
2b5f62a0 22160 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22161
2b5f62a0 22162 succeeded=no
90dd450c 22163
2b5f62a0
VZ
22164 if test -z "$PKG_CONFIG"; then
22165 # Extract the first word of "pkg-config", so it can be a program name with args.
22166set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22167echo "$as_me:$LINENO: checking for $ac_word" >&5
22168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22169if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22171else
e6cc62c6
VS
22172 case $PKG_CONFIG in
22173 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22175 ;;
2b5f62a0 22176 *)
e6cc62c6
VS
22177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178for as_dir in $PATH
22179do
22180 IFS=$as_save_IFS
22181 test -z "$as_dir" && as_dir=.
22182 for ac_exec_ext in '' $ac_executable_extensions; do
22183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22186 break 2
22187 fi
22188done
22189done
22190
2b5f62a0
VZ
22191 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22192 ;;
22193esac
22194fi
e6cc62c6
VS
22195PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22196
2b5f62a0 22197if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22198 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22199echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22200else
e6cc62c6
VS
22201 echo "$as_me:$LINENO: result: no" >&5
22202echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22203fi
22204
22205 fi
22206
22207 if test "$PKG_CONFIG" = "no" ; then
22208 echo "*** The pkg-config script could not be found. Make sure it is"
22209 echo "*** in your path, or set the PKG_CONFIG environment variable"
22210 echo "*** to the full path to pkg-config."
22211 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22212 else
22213 PKG_CONFIG_MIN_VERSION=0.9.0
22214 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22215 echo "$as_me:$LINENO: checking for pangox" >&5
22216echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22217
22218 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22219 echo "$as_me:$LINENO: result: yes" >&5
22220echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22221 succeeded=yes
22222
e6cc62c6
VS
22223 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22224echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22225 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22226 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22227echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22228
e6cc62c6
VS
22229 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22230echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22231 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22232 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22233echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22234 else
22235 PANGOX_CFLAGS=""
22236 PANGOX_LIBS=""
e6cc62c6 22237 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22238 ## do set a variable so people can do so.
22239 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22240
2b5f62a0
VZ
22241 fi
22242
e6cc62c6
VS
22243
22244
2b5f62a0
VZ
22245 else
22246 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22247 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22248 fi
22249 fi
22250
22251 if test $succeeded = yes; then
e6cc62c6 22252
2b5f62a0
VZ
22253 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22254 LIBS="$LIBS $PANGOX_LIBS"
e6cc62c6 22255
2b5f62a0 22256 else
e6cc62c6
VS
22257
22258 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22259echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22260 { (exit 1); exit 1; }; }
22261
22262
2b5f62a0
VZ
22263 fi
22264
e6cc62c6 22265
2b5f62a0
VZ
22266 succeeded=no
22267
22268 if test -z "$PKG_CONFIG"; then
22269 # Extract the first word of "pkg-config", so it can be a program name with args.
22270set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22271echo "$as_me:$LINENO: checking for $ac_word" >&5
22272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22273if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22275else
e6cc62c6
VS
22276 case $PKG_CONFIG in
22277 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22278 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22279 ;;
2b5f62a0 22280 *)
e6cc62c6
VS
22281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282for as_dir in $PATH
22283do
22284 IFS=$as_save_IFS
22285 test -z "$as_dir" && as_dir=.
22286 for ac_exec_ext in '' $ac_executable_extensions; do
22287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22288 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22290 break 2
22291 fi
22292done
22293done
22294
2b5f62a0
VZ
22295 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22296 ;;
22297esac
22298fi
e6cc62c6
VS
22299PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22300
2b5f62a0 22301if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22302 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22303echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22304else
e6cc62c6
VS
22305 echo "$as_me:$LINENO: result: no" >&5
22306echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22307fi
22308
22309 fi
22310
22311 if test "$PKG_CONFIG" = "no" ; then
22312 echo "*** The pkg-config script could not be found. Make sure it is"
22313 echo "*** in your path, or set the PKG_CONFIG environment variable"
22314 echo "*** to the full path to pkg-config."
22315 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22316 else
22317 PKG_CONFIG_MIN_VERSION=0.9.0
22318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22319 echo "$as_me:$LINENO: checking for pangoft2" >&5
22320echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22321
22322 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22323 echo "$as_me:$LINENO: result: yes" >&5
22324echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22325 succeeded=yes
22326
e6cc62c6
VS
22327 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22328echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22329 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22330 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22331echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22332
e6cc62c6
VS
22333 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22334echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22335 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22336 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22337echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22338 else
22339 PANGOFT2_CFLAGS=""
22340 PANGOFT2_LIBS=""
e6cc62c6 22341 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22342 ## do set a variable so people can do so.
22343 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22344
2b5f62a0
VZ
22345 fi
22346
e6cc62c6
VS
22347
22348
2b5f62a0
VZ
22349 else
22350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22352 fi
22353 fi
22354
22355 if test $succeeded = yes; then
e6cc62c6 22356
2b5f62a0
VZ
22357 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22358 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 22359
2b5f62a0 22360 else
e6cc62c6
VS
22361
22362 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22363echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22364 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22365
22366
2b5f62a0
VZ
22367 fi
22368
e6cc62c6 22369
2b5f62a0
VZ
22370 succeeded=no
22371
22372 if test -z "$PKG_CONFIG"; then
22373 # Extract the first word of "pkg-config", so it can be a program name with args.
22374set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22375echo "$as_me:$LINENO: checking for $ac_word" >&5
22376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22377if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22379else
e6cc62c6
VS
22380 case $PKG_CONFIG in
22381 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22383 ;;
2b5f62a0 22384 *)
e6cc62c6
VS
22385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22386for as_dir in $PATH
22387do
22388 IFS=$as_save_IFS
22389 test -z "$as_dir" && as_dir=.
22390 for ac_exec_ext in '' $ac_executable_extensions; do
22391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22394 break 2
22395 fi
22396done
22397done
22398
2b5f62a0
VZ
22399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22400 ;;
22401esac
22402fi
e6cc62c6
VS
22403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22404
2b5f62a0 22405if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22406 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22407echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22408else
e6cc62c6
VS
22409 echo "$as_me:$LINENO: result: no" >&5
22410echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22411fi
22412
22413 fi
22414
22415 if test "$PKG_CONFIG" = "no" ; then
22416 echo "*** The pkg-config script could not be found. Make sure it is"
22417 echo "*** in your path, or set the PKG_CONFIG environment variable"
22418 echo "*** to the full path to pkg-config."
22419 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22420 else
22421 PKG_CONFIG_MIN_VERSION=0.9.0
22422 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22423 echo "$as_me:$LINENO: checking for pangoxft" >&5
22424echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22425
22426 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22427 echo "$as_me:$LINENO: result: yes" >&5
22428echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22429 succeeded=yes
22430
e6cc62c6
VS
22431 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22432echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22433 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22434 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22435echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22436
e6cc62c6
VS
22437 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22438echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22439 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22440 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22441echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22442 else
22443 PANGOXFT_CFLAGS=""
22444 PANGOXFT_LIBS=""
e6cc62c6 22445 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22446 ## do set a variable so people can do so.
22447 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22448
2b5f62a0
VZ
22449 fi
22450
e6cc62c6
VS
22451
22452
2b5f62a0
VZ
22453 else
22454 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22455 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22456 fi
22457 fi
22458
22459 if test $succeeded = yes; then
e6cc62c6 22460
2b5f62a0
VZ
22461 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22462 LIBS="$LIBS $PANGOXFT_LIBS"
e6cc62c6 22463
2b5f62a0 22464 else
e6cc62c6
VS
22465
22466 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22467echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22468
22469
2b5f62a0
VZ
22470 fi
22471
22472 fi
22473
22474 wxUSE_UNIVERSAL="yes"
22475
22476 if test "$wxUSE_NANOX" = "yes"; then
22477 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22478 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
2b5f62a0
VZ
22479 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22480 else
22481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22482 fi
22483
22484 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22485 TOOLKIT=X11
22486 GUIDIST=X11_DIST
22487 fi
22488
21d1c967
GD
22489 if test "$wxUSE_MOTIF" = 1; then
22490 if test "$no_x" = yes; then
22491 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22492
22493cat >>confdefs.h <<\_ACEOF
21d1c967 22494#define X_DISPLAY_MISSING 1
e6cc62c6 22495_ACEOF
21d1c967
GD
22496
22497 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22498else
22499 if test -n "$x_includes"; then
22500 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22501 fi
22502
21d1c967
GD
22503 # It would also be nice to do this for all -L options, not just this one.
22504 if test -n "$x_libraries"; then
22505 X_LIBS="$X_LIBS -L$x_libraries"
22506 # For Solaris; some versions of Sun CC require a space after -R and
22507 # others require no space. Words are not sufficient . . . .
e6cc62c6 22508 case `(uname -sr) 2>/dev/null` in
21d1c967 22509 "SunOS 5"*)
e6cc62c6
VS
22510 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22511echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22512 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22513 cat >conftest.$ac_ext <<_ACEOF
22514#line $LINENO "configure"
22515/* confdefs.h. */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h. */
22520
22521int
22522main ()
22523{
21d1c967 22524
e6cc62c6
VS
22525 ;
22526 return 0;
22527}
22528_ACEOF
22529rm -f conftest.$ac_objext conftest$ac_exeext
22530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22531 (eval $ac_link) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } &&
22535 { ac_try='test -s conftest$ac_exeext'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
21d1c967 22541 ac_R_nospace=yes
698dcdb6 22542else
e6cc62c6
VS
22543 echo "$as_me: failed program was:" >&5
22544sed 's/^/| /' conftest.$ac_ext >&5
22545
22546ac_R_nospace=no
10f2d63a 22547fi
e6cc62c6 22548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22549 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22550 echo "$as_me:$LINENO: result: no" >&5
22551echo "${ECHO_T}no" >&6
21d1c967
GD
22552 X_LIBS="$X_LIBS -R$x_libraries"
22553 else
22554 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22555 cat >conftest.$ac_ext <<_ACEOF
22556#line $LINENO "configure"
22557/* confdefs.h. */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h. */
22562
22563int
22564main ()
22565{
f0c87536 22566
e6cc62c6
VS
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573 (eval $ac_link) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -s conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
21d1c967
GD
22583 ac_R_space=yes
22584else
e6cc62c6
VS
22585 echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588ac_R_space=no
21d1c967 22589fi
e6cc62c6 22590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22591 if test $ac_R_space = yes; then
e6cc62c6
VS
22592 echo "$as_me:$LINENO: result: yes" >&5
22593echo "${ECHO_T}yes" >&6
21d1c967
GD
22594 X_LIBS="$X_LIBS -R $x_libraries"
22595 else
e6cc62c6
VS
22596 echo "$as_me:$LINENO: result: neither works" >&5
22597echo "${ECHO_T}neither works" >&6
21d1c967
GD
22598 fi
22599 fi
e6cc62c6 22600 LIBS=$ac_xsave_LIBS
21d1c967
GD
22601 esac
22602 fi
90dd450c 22603
21d1c967
GD
22604 # Check for system-dependent libraries X programs must link with.
22605 # Do this before checking for the system-independent R6 libraries
22606 # (-lICE), since we may need -lsocket or whatever for X linking.
22607
22608 if test "$ISC" = yes; then
22609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22610 else
e6cc62c6
VS
22611 # Martyn Johnson says this is needed for Ultrix, if the X
22612 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22613 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22614 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22615 cat >conftest.$ac_ext <<_ACEOF
22616#line $LINENO "configure"
22617/* confdefs.h. */
22618_ACEOF
22619cat confdefs.h >>conftest.$ac_ext
22620cat >>conftest.$ac_ext <<_ACEOF
22621/* end confdefs.h. */
22622
247f5006 22623/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22624#ifdef __cplusplus
22625extern "C"
22626#endif
247f5006 22627/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22628 builtin and then its argument prototype would still apply. */
22629char XOpenDisplay ();
22630int
22631main ()
22632{
22633XOpenDisplay ();
22634 ;
22635 return 0;
22636}
22637_ACEOF
22638rm -f conftest.$ac_objext conftest$ac_exeext
22639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22640 (eval $ac_link) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } &&
22644 { ac_try='test -s conftest$ac_exeext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 :
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22654
e6cc62c6
VS
22655echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22656echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22657if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22659else
e6cc62c6
VS
22660 ac_check_lib_save_LIBS=$LIBS
22661LIBS="-ldnet $LIBS"
22662cat >conftest.$ac_ext <<_ACEOF
22663#line $LINENO "configure"
22664/* confdefs.h. */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h. */
a0b9e27f 22669
e6cc62c6
VS
22670/* Override any gcc2 internal prototype to avoid an error. */
22671#ifdef __cplusplus
22672extern "C"
22673#endif
22674/* We use char because int might match the return type of a gcc2
22675 builtin and then its argument prototype would still apply. */
22676char dnet_ntoa ();
22677int
22678main ()
22679{
22680dnet_ntoa ();
22681 ;
22682 return 0;
22683}
22684_ACEOF
22685rm -f conftest.$ac_objext conftest$ac_exeext
22686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22687 (eval $ac_link) 2>&5
22688 ac_status=$?
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } &&
22691 { ac_try='test -s conftest$ac_exeext'
22692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; }; then
22697 ac_cv_lib_dnet_dnet_ntoa=yes
22698else
22699 echo "$as_me: failed program was:" >&5
22700sed 's/^/| /' conftest.$ac_ext >&5
22701
22702ac_cv_lib_dnet_dnet_ntoa=no
22703fi
22704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22705LIBS=$ac_check_lib_save_LIBS
22706fi
22707echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22708echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22709if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22710 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22711fi
0fb0dd83 22712
21d1c967 22713 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22714 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22715echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22716if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22718else
e6cc62c6 22719 ac_check_lib_save_LIBS=$LIBS
21d1c967 22720LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22721cat >conftest.$ac_ext <<_ACEOF
22722#line $LINENO "configure"
22723/* confdefs.h. */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h. */
22728
21d1c967 22729/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22730#ifdef __cplusplus
22731extern "C"
22732#endif
21d1c967 22733/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22734 builtin and then its argument prototype would still apply. */
22735char dnet_ntoa ();
22736int
22737main ()
22738{
22739dnet_ntoa ();
22740 ;
22741 return 0;
22742}
22743_ACEOF
22744rm -f conftest.$ac_objext conftest$ac_exeext
22745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22746 (eval $ac_link) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -s conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22757else
22758 echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761ac_cv_lib_dnet_stub_dnet_ntoa=no
22762fi
22763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22764LIBS=$ac_check_lib_save_LIBS
22765fi
22766echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22767echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22768if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22769 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
22770fi
22771
21d1c967 22772 fi
e6cc62c6
VS
22773fi
22774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22775 LIBS="$ac_xsave_LIBS"
90dd450c 22776
21d1c967
GD
22777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22778 # to get the SysV transport functions.
e6cc62c6 22779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
22780 # needs -lnsl.
22781 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22782 # on Irix 5.2, according to T.E. Dickey.
22783 # The functions gethostbyname, getservbyname, and inet_addr are
22784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22785 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22786echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22787if test "${ac_cv_func_gethostbyname+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22789else
22790 cat >conftest.$ac_ext <<_ACEOF
22791#line $LINENO "configure"
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
21d1c967 22797/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22798 which can conflict with char gethostbyname (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22801#ifdef __STDC__
22802# include <limits.h>
22803#else
22804# include <assert.h>
22805#endif
21d1c967 22806/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22807#ifdef __cplusplus
22808extern "C"
22809{
22810#endif
21d1c967 22811/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22812 builtin and then its argument prototype would still apply. */
22813char gethostbyname ();
21d1c967
GD
22814/* The GNU C library defines this for functions which it implements
22815 to always fail with ENOSYS. Some functions are actually named
22816 something starting with __ and the normal name is an alias. */
22817#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22818choke me
22819#else
e6cc62c6
VS
22820char (*f) () = gethostbyname;
22821#endif
22822#ifdef __cplusplus
22823}
21d1c967 22824#endif
90dd450c 22825
e6cc62c6
VS
22826int
22827main ()
22828{
22829return f != gethostbyname;
22830 ;
22831 return 0;
22832}
22833_ACEOF
22834rm -f conftest.$ac_objext conftest$ac_exeext
22835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22836 (eval $ac_link) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -s conftest$ac_exeext'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 ac_cv_func_gethostbyname=yes
22847else
22848 echo "$as_me: failed program was:" >&5
22849sed 's/^/| /' conftest.$ac_ext >&5
22850
22851ac_cv_func_gethostbyname=no
22852fi
22853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22854fi
22855echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22856echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 22857
21d1c967 22858 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22859 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22860echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22861if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22863else
e6cc62c6 22864 ac_check_lib_save_LIBS=$LIBS
21d1c967 22865LIBS="-lnsl $LIBS"
e6cc62c6
VS
22866cat >conftest.$ac_ext <<_ACEOF
22867#line $LINENO "configure"
22868/* confdefs.h. */
22869_ACEOF
22870cat confdefs.h >>conftest.$ac_ext
22871cat >>conftest.$ac_ext <<_ACEOF
22872/* end confdefs.h. */
22873
21d1c967 22874/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22875#ifdef __cplusplus
22876extern "C"
22877#endif
21d1c967 22878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22879 builtin and then its argument prototype would still apply. */
22880char gethostbyname ();
22881int
22882main ()
22883{
22884gethostbyname ();
22885 ;
22886 return 0;
22887}
22888_ACEOF
22889rm -f conftest.$ac_objext conftest$ac_exeext
22890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22891 (eval $ac_link) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } &&
22895 { ac_try='test -s conftest$ac_exeext'
22896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897 (eval $ac_try) 2>&5
22898 ac_status=$?
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; }; then
22901 ac_cv_lib_nsl_gethostbyname=yes
22902else
22903 echo "$as_me: failed program was:" >&5
22904sed 's/^/| /' conftest.$ac_ext >&5
22905
22906ac_cv_lib_nsl_gethostbyname=no
22907fi
22908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22909LIBS=$ac_check_lib_save_LIBS
22910fi
22911echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22912echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22913if test $ac_cv_lib_nsl_gethostbyname = yes; then
22914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22915fi
247f5006 22916
e6cc62c6
VS
22917 if test $ac_cv_lib_nsl_gethostbyname = no; then
22918 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22919echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22920if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22922else
e6cc62c6
VS
22923 ac_check_lib_save_LIBS=$LIBS
22924LIBS="-lbsd $LIBS"
22925cat >conftest.$ac_ext <<_ACEOF
22926#line $LINENO "configure"
22927/* confdefs.h. */
22928_ACEOF
22929cat confdefs.h >>conftest.$ac_ext
22930cat >>conftest.$ac_ext <<_ACEOF
22931/* end confdefs.h. */
22932
22933/* Override any gcc2 internal prototype to avoid an error. */
22934#ifdef __cplusplus
22935extern "C"
22936#endif
22937/* We use char because int might match the return type of a gcc2
22938 builtin and then its argument prototype would still apply. */
22939char gethostbyname ();
22940int
22941main ()
22942{
22943gethostbyname ();
22944 ;
22945 return 0;
22946}
22947_ACEOF
22948rm -f conftest.$ac_objext conftest$ac_exeext
22949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22950 (eval $ac_link) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
22954 { ac_try='test -s conftest$ac_exeext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_lib_bsd_gethostbyname=yes
22961else
22962 echo "$as_me: failed program was:" >&5
22963sed 's/^/| /' conftest.$ac_ext >&5
22964
22965ac_cv_lib_bsd_gethostbyname=no
22966fi
22967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22968LIBS=$ac_check_lib_save_LIBS
22969fi
22970echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22971echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22972if test $ac_cv_lib_bsd_gethostbyname = yes; then
22973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 22974fi
90dd450c 22975
e6cc62c6 22976 fi
90dd450c
VZ
22977 fi
22978
21d1c967
GD
22979 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22980 # socket/setsockopt and other routines are undefined under SCO ODT
22981 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22982 # on later versions), says Simon Leinen: it contains gethostby*
22983 # variants that don't use the name server (or something). -lsocket
22984 # must be given before -lnsl if both are needed. We assume that
22985 # if connect needs -lnsl, so does gethostbyname.
22986 echo "$as_me:$LINENO: checking for connect" >&5
22987echo $ECHO_N "checking for connect... $ECHO_C" >&6
22988if test "${ac_cv_func_connect+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990else
22991 cat >conftest.$ac_ext <<_ACEOF
22992#line $LINENO "configure"
22993/* confdefs.h. */
22994_ACEOF
22995cat confdefs.h >>conftest.$ac_ext
22996cat >>conftest.$ac_ext <<_ACEOF
22997/* end confdefs.h. */
21d1c967 22998/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22999 which can conflict with char connect (); below.
23000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001 <limits.h> exists even on freestanding compilers. */
23002#ifdef __STDC__
23003# include <limits.h>
23004#else
23005# include <assert.h>
23006#endif
21d1c967 23007/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23008#ifdef __cplusplus
23009extern "C"
23010{
23011#endif
21d1c967 23012/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23013 builtin and then its argument prototype would still apply. */
23014char connect ();
21d1c967
GD
23015/* The GNU C library defines this for functions which it implements
23016 to always fail with ENOSYS. Some functions are actually named
23017 something starting with __ and the normal name is an alias. */
23018#if defined (__stub_connect) || defined (__stub___connect)
23019choke me
23020#else
e6cc62c6
VS
23021char (*f) () = connect;
23022#endif
23023#ifdef __cplusplus
23024}
21d1c967 23025#endif
90dd450c 23026
e6cc62c6
VS
23027int
23028main ()
23029{
23030return f != connect;
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext conftest$ac_exeext
23036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23037 (eval $ac_link) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
23041 { ac_try='test -s conftest$ac_exeext'
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; }; then
23047 ac_cv_func_connect=yes
23048else
23049 echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051
23052ac_cv_func_connect=no
23053fi
23054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23055fi
23056echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23057echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23058
21d1c967 23059 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23060 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23061echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23062if test "${ac_cv_lib_socket_connect+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23064else
e6cc62c6 23065 ac_check_lib_save_LIBS=$LIBS
21d1c967 23066LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23067cat >conftest.$ac_ext <<_ACEOF
23068#line $LINENO "configure"
23069/* confdefs.h. */
23070_ACEOF
23071cat confdefs.h >>conftest.$ac_ext
23072cat >>conftest.$ac_ext <<_ACEOF
23073/* end confdefs.h. */
23074
21d1c967 23075/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23076#ifdef __cplusplus
23077extern "C"
23078#endif
21d1c967 23079/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23080 builtin and then its argument prototype would still apply. */
23081char connect ();
23082int
23083main ()
23084{
23085connect ();
23086 ;
23087 return 0;
23088}
23089_ACEOF
23090rm -f conftest.$ac_objext conftest$ac_exeext
23091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23092 (eval $ac_link) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
23096 { ac_try='test -s conftest$ac_exeext'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; }; then
23102 ac_cv_lib_socket_connect=yes
23103else
23104 echo "$as_me: failed program was:" >&5
23105sed 's/^/| /' conftest.$ac_ext >&5
23106
23107ac_cv_lib_socket_connect=no
23108fi
23109rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23110LIBS=$ac_check_lib_save_LIBS
23111fi
23112echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23113echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23114if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23115 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23116fi
90dd450c 23117
21d1c967 23118 fi
90dd450c 23119
e6cc62c6
VS
23120 # Guillermo Gomez says -lposix is necessary on A/UX.
23121 echo "$as_me:$LINENO: checking for remove" >&5
23122echo $ECHO_N "checking for remove... $ECHO_C" >&6
23123if test "${ac_cv_func_remove+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125else
23126 cat >conftest.$ac_ext <<_ACEOF
23127#line $LINENO "configure"
23128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
21d1c967 23133/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23134 which can conflict with char remove (); below.
23135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23136 <limits.h> exists even on freestanding compilers. */
23137#ifdef __STDC__
23138# include <limits.h>
23139#else
23140# include <assert.h>
23141#endif
21d1c967 23142/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23143#ifdef __cplusplus
23144extern "C"
23145{
23146#endif
21d1c967 23147/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23148 builtin and then its argument prototype would still apply. */
23149char remove ();
21d1c967
GD
23150/* The GNU C library defines this for functions which it implements
23151 to always fail with ENOSYS. Some functions are actually named
23152 something starting with __ and the normal name is an alias. */
23153#if defined (__stub_remove) || defined (__stub___remove)
23154choke me
23155#else
e6cc62c6
VS
23156char (*f) () = remove;
23157#endif
23158#ifdef __cplusplus
23159}
21d1c967 23160#endif
90dd450c 23161
e6cc62c6
VS
23162int
23163main ()
23164{
23165return f != remove;
23166 ;
23167 return 0;
23168}
23169_ACEOF
23170rm -f conftest.$ac_objext conftest$ac_exeext
23171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } &&
23176 { ac_try='test -s conftest$ac_exeext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_cv_func_remove=yes
23183else
23184 echo "$as_me: failed program was:" >&5
23185sed 's/^/| /' conftest.$ac_ext >&5
23186
23187ac_cv_func_remove=no
23188fi
23189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23190fi
23191echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23192echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23193
21d1c967 23194 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23195 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23196echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23197if test "${ac_cv_lib_posix_remove+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23199else
e6cc62c6 23200 ac_check_lib_save_LIBS=$LIBS
21d1c967 23201LIBS="-lposix $LIBS"
e6cc62c6
VS
23202cat >conftest.$ac_ext <<_ACEOF
23203#line $LINENO "configure"
23204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
23209
21d1c967 23210/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23211#ifdef __cplusplus
23212extern "C"
23213#endif
21d1c967 23214/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23215 builtin and then its argument prototype would still apply. */
23216char remove ();
23217int
23218main ()
23219{
23220remove ();
23221 ;
23222 return 0;
23223}
23224_ACEOF
23225rm -f conftest.$ac_objext conftest$ac_exeext
23226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227 (eval $ac_link) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_lib_posix_remove=yes
23238else
23239 echo "$as_me: failed program was:" >&5
23240sed 's/^/| /' conftest.$ac_ext >&5
23241
23242ac_cv_lib_posix_remove=no
23243fi
23244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23245LIBS=$ac_check_lib_save_LIBS
23246fi
23247echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23248echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23249if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23250 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23251fi
19bc6aad 23252
90dd450c 23253 fi
19bc6aad 23254
21d1c967 23255 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23256 echo "$as_me:$LINENO: checking for shmat" >&5
23257echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23258if test "${ac_cv_func_shmat+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260else
23261 cat >conftest.$ac_ext <<_ACEOF
23262#line $LINENO "configure"
23263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
21d1c967 23268/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23269 which can conflict with char shmat (); below.
23270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23271 <limits.h> exists even on freestanding compilers. */
23272#ifdef __STDC__
23273# include <limits.h>
23274#else
23275# include <assert.h>
23276#endif
21d1c967 23277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23278#ifdef __cplusplus
23279extern "C"
23280{
23281#endif
21d1c967 23282/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23283 builtin and then its argument prototype would still apply. */
23284char shmat ();
21d1c967
GD
23285/* The GNU C library defines this for functions which it implements
23286 to always fail with ENOSYS. Some functions are actually named
23287 something starting with __ and the normal name is an alias. */
23288#if defined (__stub_shmat) || defined (__stub___shmat)
23289choke me
23290#else
e6cc62c6
VS
23291char (*f) () = shmat;
23292#endif
23293#ifdef __cplusplus
23294}
21d1c967 23295#endif
90dd450c 23296
e6cc62c6
VS
23297int
23298main ()
23299{
23300return f != shmat;
23301 ;
23302 return 0;
23303}
23304_ACEOF
23305rm -f conftest.$ac_objext conftest$ac_exeext
23306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23307 (eval $ac_link) 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
23311 { ac_try='test -s conftest$ac_exeext'
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ac_cv_func_shmat=yes
23318else
23319 echo "$as_me: failed program was:" >&5
23320sed 's/^/| /' conftest.$ac_ext >&5
23321
23322ac_cv_func_shmat=no
23323fi
23324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23327echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23328
21d1c967 23329 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23330 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23331echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23332if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23334else
e6cc62c6 23335 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23336LIBS="-lipc $LIBS"
e6cc62c6
VS
23337cat >conftest.$ac_ext <<_ACEOF
23338#line $LINENO "configure"
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344
5c6fa7d2 23345/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23346#ifdef __cplusplus
23347extern "C"
23348#endif
5c6fa7d2 23349/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23350 builtin and then its argument prototype would still apply. */
23351char shmat ();
23352int
23353main ()
23354{
23355shmat ();
23356 ;
23357 return 0;
23358}
23359_ACEOF
23360rm -f conftest.$ac_objext conftest$ac_exeext
23361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23362 (eval $ac_link) 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
23366 { ac_try='test -s conftest$ac_exeext'
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_lib_ipc_shmat=yes
23373else
23374 echo "$as_me: failed program was:" >&5
23375sed 's/^/| /' conftest.$ac_ext >&5
23376
23377ac_cv_lib_ipc_shmat=no
23378fi
23379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23380LIBS=$ac_check_lib_save_LIBS
23381fi
23382echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23383echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23384if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23386fi
90dd450c 23387
90dd450c 23388 fi
21d1c967 23389 fi
10f2d63a 23390
21d1c967 23391 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23392 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23393 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23394 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23395 # check for ICE first), but we must link in the order -lSM -lICE or
23396 # we get undefined symbols. So assume we have SM if we have ICE.
23397 # These have to be linked with before -lX11, unlike the other
23398 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23399 # John Interrante, Karl Berry
23400 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23401echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23402if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23404else
23405 ac_check_lib_save_LIBS=$LIBS
f09359cf 23406LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23407cat >conftest.$ac_ext <<_ACEOF
23408#line $LINENO "configure"
23409/* confdefs.h. */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h. */
23414
21d1c967 23415/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23416#ifdef __cplusplus
23417extern "C"
23418#endif
21d1c967 23419/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23420 builtin and then its argument prototype would still apply. */
23421char IceConnectionNumber ();
23422int
23423main ()
23424{
23425IceConnectionNumber ();
23426 ;
23427 return 0;
23428}
23429_ACEOF
23430rm -f conftest.$ac_objext conftest$ac_exeext
23431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23432 (eval $ac_link) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } &&
23436 { ac_try='test -s conftest$ac_exeext'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; }; then
23442 ac_cv_lib_ICE_IceConnectionNumber=yes
23443else
23444 echo "$as_me: failed program was:" >&5
23445sed 's/^/| /' conftest.$ac_ext >&5
23446
23447ac_cv_lib_ICE_IceConnectionNumber=no
23448fi
23449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23450LIBS=$ac_check_lib_save_LIBS
23451fi
23452echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23453echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23454if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23455 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23456fi
21d1c967 23457
e6cc62c6 23458 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23459
10f2d63a
VZ
23460fi
23461
8284b0c5 23462
21d1c967 23463 if test "$no_x" = "yes"; then
e6cc62c6
VS
23464 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23465echo "$as_me: error: X11 not found" >&2;}
23466 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23467 fi
23468
2b5f62a0
VZ
23469 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23470 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23471 AFMINSTALL=afminstall
23472 COMPILED_X_PROGRAM=0
23473
e6cc62c6
VS
23474 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23475echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23476
21d1c967 23477ac_find_includes=
2b5f62a0 23478for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23479 do
23480 if test -f "$ac_dir/Xm/Xm.h"; then
23481 ac_find_includes=$ac_dir
23482 break
23483 fi
23484 done
23485
23486 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23487 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23488echo "${ECHO_T}found in $ac_find_includes" >&6
23489
2b5f62a0 23490 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23491 ac_path_to_include=""
23492 else
2b5f62a0
VZ
23493 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23494 result=$?
23495 if test $result = 0; then
23496 ac_path_to_include=""
23497 else
23498 ac_path_to_include=" -I$ac_find_includes"
23499 fi
dd0e4a90
VZ
23500 fi
23501
23502 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23503 else
e6cc62c6
VS
23504 cat >conftest.$ac_ext <<_ACEOF
23505#line $LINENO "configure"
23506/* confdefs.h. */
23507_ACEOF
23508cat confdefs.h >>conftest.$ac_ext
23509cat >>conftest.$ac_ext <<_ACEOF
23510/* end confdefs.h. */
21d1c967
GD
23511
23512 #include <Xm/Xm.h>
e6cc62c6
VS
23513
23514int
23515main ()
23516{
21d1c967
GD
23517
23518 int version;
23519 version = xmUseVersion;
e6cc62c6
VS
23520
23521 ;
23522 return 0;
23523}
23524_ACEOF
23525rm -f conftest.$ac_objext
23526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23527 (eval $ac_compile) 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } &&
23531 { ac_try='test -s conftest.$ac_objext'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537
23538 echo "$as_me:$LINENO: result: found in default search path" >&5
23539echo "${ECHO_T}found in default search path" >&6
21d1c967 23540 COMPILED_X_PROGRAM=1
e6cc62c6 23541
10f2d63a 23542else
e6cc62c6
VS
23543 echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546
23547 echo "$as_me:$LINENO: result: no" >&5
23548echo "${ECHO_T}no" >&6
23549 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23550echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23551 { (exit 1); exit 1; }; }
23552
23553
10f2d63a 23554fi
e6cc62c6 23555rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23556 fi
10f2d63a 23557
21d1c967 23558 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23559 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23560echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23561
21d1c967 23562ac_find_libraries=
2b5f62a0 23563for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23564 do
23565 for ac_extension in a so sl dylib; do
23566 if test -f "$ac_dir/libXm.$ac_extension"; then
23567 ac_find_libraries=$ac_dir
23568 break 2
23569 fi
23570 done
23571 done
23572
23573 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23574 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23575echo "${ECHO_T}found at $ac_find_libraries" >&6
23576
21d1c967 23577
21d1c967
GD
23578 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23579 result=$?
23580 if test $result = 0; then
23581 ac_path_to_link=""
23582 else
23583 ac_path_to_link=" -L$ac_find_libraries"
23584 fi
23585
21d1c967 23586 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23587 else
dd0e4a90
VZ
23588 save_CFLAGS=$CFLAGS
23589 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23590
e6cc62c6
VS
23591 cat >conftest.$ac_ext <<_ACEOF
23592#line $LINENO "configure"
23593/* confdefs.h. */
23594_ACEOF
23595cat confdefs.h >>conftest.$ac_ext
23596cat >>conftest.$ac_ext <<_ACEOF
23597/* end confdefs.h. */
21d1c967
GD
23598
23599 #include <Xm/Xm.h>
e6cc62c6
VS
23600
23601int
23602main ()
23603{
21d1c967
GD
23604
23605 int version;
23606 version = xmUseVersion;
e6cc62c6
VS
23607
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext
23613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23614 (eval $ac_compile) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
23618 { ac_try='test -s conftest.$ac_objext'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624
23625 echo "$as_me:$LINENO: result: found in default search path" >&5
23626echo "${ECHO_T}found in default search path" >&6
21d1c967 23627 COMPILED_X_PROGRAM=1
e6cc62c6 23628
d836ee96 23629else
e6cc62c6
VS
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633
23634 echo "$as_me:$LINENO: result: no" >&5
23635echo "${ECHO_T}no" >&6
23636 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23637echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23638 { (exit 1); exit 1; }; }
23639
23640
d836ee96 23641fi
e6cc62c6 23642rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23643
23644 CFLAGS=$save_CFLAGS
21d1c967
GD
23645 fi
23646 fi
23647
23648 xpm_link=
e6cc62c6
VS
23649 echo "$as_me:$LINENO: checking for Xpm library" >&5
23650echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23651
21d1c967 23652ac_find_libraries=
2b5f62a0 23653for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23654 do
23655 for ac_extension in a so sl dylib; do
23656 if test -f "$ac_dir/libXpm.$ac_extension"; then
23657 ac_find_libraries=$ac_dir
23658 break 2
23659 fi
23660 done
23661 done
23662
23663 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23664
21d1c967
GD
23665 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23666 result=$?
23667 if test $result = 0; then
23668 ac_path_to_link=""
23669 else
23670 ac_path_to_link=" -L$ac_find_libraries"
23671 fi
23672
23673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23674
21d1c967 23675 xpm_link=" -lXpm"
e6cc62c6 23676 cat >>confdefs.h <<\_ACEOF
21d1c967 23677#define wxHAVE_LIB_XPM 1
e6cc62c6 23678_ACEOF
90dd450c 23679
e6cc62c6
VS
23680 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23681echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23682 else
dd0e4a90
VZ
23683 save_CFLAGS=$CFLAGS
23684 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23685
e6cc62c6
VS
23686 cat >conftest.$ac_ext <<_ACEOF
23687#line $LINENO "configure"
23688/* confdefs.h. */
23689_ACEOF
23690cat confdefs.h >>conftest.$ac_ext
23691cat >>conftest.$ac_ext <<_ACEOF
23692/* end confdefs.h. */
21d1c967
GD
23693
23694 #include <X11/xpm.h>
e6cc62c6
VS
23695
23696int
23697main ()
23698{
21d1c967
GD
23699
23700 int version;
23701 version = XpmLibraryVersion();
e6cc62c6
VS
23702
23703 ;
23704 return 0;
23705}
23706_ACEOF
23707rm -f conftest.$ac_objext
23708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23709 (eval $ac_compile) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
23713 { ac_try='test -s conftest.$ac_objext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719
21d1c967 23720 xpm_link=" -lXpm"
e6cc62c6 23721 cat >>confdefs.h <<\_ACEOF
21d1c967 23722#define wxHAVE_LIB_XPM 1
e6cc62c6 23723_ACEOF
21d1c967 23724
e6cc62c6
VS
23725 echo "$as_me:$LINENO: result: found in default search path" >&5
23726echo "${ECHO_T}found in default search path" >&6
21d1c967 23727 COMPILED_X_PROGRAM=0
e6cc62c6 23728
d836ee96 23729else
e6cc62c6
VS
23730 echo "$as_me: failed program was:" >&5
23731sed 's/^/| /' conftest.$ac_ext >&5
23732
23733
23734 echo "$as_me:$LINENO: result: no" >&5
23735echo "${ECHO_T}no" >&6
23736 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23737echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23738
23739
d836ee96 23740fi
e6cc62c6 23741rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23742
23743 CFLAGS=$save_CFLAGS
21d1c967
GD
23744 fi
23745
e6cc62c6
VS
23746 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23747echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23748 libp_link=""
23749 libsm_ice_link=""
23750 libs_found=0
23751 for libp in "" " -lXp"; do
23752 if test "$libs_found" = "0"; then
23753 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23754 if test "$libs_found" = "0"; then
6a30f1c8
MB
23755 save_LIBS="$LIBS"
23756 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23757 save_CFLAGS=$CFLAGS
23758 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23759
e6cc62c6
VS
23760 cat >conftest.$ac_ext <<_ACEOF
23761#line $LINENO "configure"
23762/* confdefs.h. */
23763_ACEOF
23764cat confdefs.h >>conftest.$ac_ext
23765cat >>conftest.$ac_ext <<_ACEOF
23766/* end confdefs.h. */
17234b26 23767
6a30f1c8
MB
23768 #include <Xm/Xm.h>
23769 #include <Xm/List.h>
e6cc62c6
VS
23770
23771int
23772main ()
23773{
6a30f1c8
MB
23774
23775 XmString string = NULL;
23776 Widget w = NULL;
23777 int position = 0;
23778 XmListAddItem(w, string, position);
e6cc62c6
VS
23779
23780 ;
23781 return 0;
23782}
23783_ACEOF
23784rm -f conftest.$ac_objext conftest$ac_exeext
23785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23786 (eval $ac_link) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } &&
23790 { ac_try='test -s conftest$ac_exeext'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; }; then
23796
6a30f1c8
MB
23797 libp_link="$libp"
23798 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
23799 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23800echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 23801 libs_found=1
e6cc62c6 23802
6a30f1c8 23803else
e6cc62c6
VS
23804 echo "$as_me: failed program was:" >&5
23805sed 's/^/| /' conftest.$ac_ext >&5
23806
23807
23808
6a30f1c8 23809fi
e6cc62c6 23810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 23811
6a30f1c8 23812 LIBS="$save_LIBS"
dd0e4a90 23813 CFLAGS=$save_CFLAGS
6a30f1c8
MB
23814 fi
23815 done
23816 fi
23817 done
23818
23819 if test "$libs_found" = "0"; then
e6cc62c6
VS
23820 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23821echo "${ECHO_T}can't find the right libraries" >&6
23822 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23823echo "$as_me: error: can't link a simple motif program" >&2;}
23824 { (exit 1); exit 1; }; }
6a30f1c8
MB
23825 fi
23826
da494b40
MB
23827 save_CFLAGS=$CFLAGS
23828 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
23829 echo "$as_me:$LINENO: checking for Motif 2" >&5
23830echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23831 cat >conftest.$ac_ext <<_ACEOF
23832#line $LINENO "configure"
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
da494b40
MB
23838
23839 #include <Xm/Xm.h>
e6cc62c6
VS
23840
23841int
23842main ()
23843{
da494b40
MB
23844
23845 #if XmVersion < 2000
23846 #error "Not Motif 2"
23847 #endif
e6cc62c6
VS
23848
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23855 (eval $ac_compile) 2>&5
23856 ac_status=$?
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -s conftest.$ac_objext'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; }; then
23865
23866 cat >>confdefs.h <<\_ACEOF
da494b40 23867#define __WXMOTIF20__ 1
e6cc62c6
VS
23868_ACEOF
23869
23870 echo "$as_me:$LINENO: result: found" >&5
23871echo "${ECHO_T}found" >&6
da494b40 23872
da494b40 23873else
e6cc62c6
VS
23874 echo "$as_me: failed program was:" >&5
23875sed 's/^/| /' conftest.$ac_ext >&5
23876
23877
23878 cat >>confdefs.h <<\_ACEOF
da494b40 23879#define __WXMOTIF20__ 0
e6cc62c6
VS
23880_ACEOF
23881
23882 echo "$as_me:$LINENO: result: not found" >&5
23883echo "${ECHO_T}not found" >&6
da494b40 23884
da494b40 23885fi
e6cc62c6 23886rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
23887 CFLAGS=$save_CFLAGS
23888
6a30f1c8 23889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 23890 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
23891 TOOLKIT=MOTIF
23892 GUIDIST=MOTIF_DIST
f7f78039
MB
23893 wxHAVE_XEXT_LIB=1
23894 fi
23895
23896 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23897 test "$wxHAVE_XEXT_LIB" = 1; then
23898 save_CFLAGS="$CFLAGS"
23899 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23900
e6cc62c6
VS
23901 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23902echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23903 cat >conftest.$ac_ext <<_ACEOF
23904#line $LINENO "configure"
23905/* confdefs.h. */
23906_ACEOF
23907cat confdefs.h >>conftest.$ac_ext
23908cat >>conftest.$ac_ext <<_ACEOF
23909/* end confdefs.h. */
23910
23911 #include <X11/Xlib.h>
f7f78039 23912 #include <X11/extensions/shape.h>
e6cc62c6
VS
23913
23914int
23915main ()
23916{
f7f78039
MB
23917
23918 int dummy1, dummy2;
23919 XShapeQueryExtension((Display*)NULL,
23920 (int*)NULL, (int*)NULL);
e6cc62c6
VS
23921
23922 ;
23923 return 0;
23924}
23925_ACEOF
23926rm -f conftest.$ac_objext
23927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23928 (eval $ac_compile) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
23932 { ac_try='test -s conftest.$ac_objext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938
23939 cat >>confdefs.h <<\_ACEOF
f7f78039 23940#define HAVE_XSHAPE 1
e6cc62c6
VS
23941_ACEOF
23942
23943 echo "$as_me:$LINENO: result: found" >&5
23944echo "${ECHO_T}found" >&6
f7f78039 23945
f7f78039 23946else
e6cc62c6
VS
23947 echo "$as_me: failed program was:" >&5
23948sed 's/^/| /' conftest.$ac_ext >&5
23949
23950
23951 echo "$as_me:$LINENO: result: not found" >&5
23952echo "${ECHO_T}not found" >&6
23953
f7f78039 23954fi
e6cc62c6 23955rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 23956 CFLAGS="$save_CFLAGS"
21d1c967
GD
23957 fi
23958
23959 if test "$wxUSE_MAC" = 1; then
0c98a14e 23960 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 23961
0c98a14e 23962 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
23963 TOOLKIT=MAC
23964 GUIDIST=MACX_DIST
23965 fi
23966
ac0c4cc3
DE
23967 if test "$wxUSE_COCOA" = 1; then
23968 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
23969 TOOLKIT=COCOA
23970 GUIDIST=COCOA_DIST
23971 fi
23972
21d1c967
GD
23973 if test "$wxUSE_PM" = 1; then
23974 TOOLKIT=PM
23975 GUIDIST=GTK_DIST
e6cc62c6
VS
23976 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
23977echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 23978 wxUSE_THREADS="no"
21d1c967
GD
23979 fi
23980
23981 if test "$TOOLKIT" = "PM" ; then
23982 TOOLKIT_DIR="os2"
23983 else
23984 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
23985 fi
23986
23987 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
23988
23989 if test "$wxUSE_UNIVERSAL" = "yes"; then
23990 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
23991
23992 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
23993 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
23994
23995 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
23996 if test "$wxUSE_X11" = 1; then
23997 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
23998 else
23999 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24000 fi
24001 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24002 WIDGET_SET=univ
24003 else
24004 ALL_OBJECTS="\$(GUIOBJS)"
24005 ALL_SOURCES="\$(ALL_SOURCES)"
24006 ALL_HEADERS="\$(ALL_HEADERS)"
24007 fi
24008
24009 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24010
24011 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24012 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24013 fi
24014
24015 if test "$wxUSE_HTML" = "yes"; then
24016 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24017 fi
24018
24019 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24020 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24021 fi
24022 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24023 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24024 fi
24025 if test "$wxUSE_LIBPNG" = "builtin" ; then
24026 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24027 fi
24028
24029 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24030 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24031else
21d1c967
GD
24032 USE_GUI=0
24033
24034 TOOLKIT_DIR="base"
24035
24036 if test "$USE_WIN32" = 1 ; then
24037 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24038 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24039
24040 TOOLKIT="MSW"
24041 else
24042 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24043 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24044 fi
24045
24046 ALL_SOURCES="\$(ALL_SOURCES)"
24047 ALL_HEADERS="\$(ALL_HEADERS)"
24048
24049 PORT_FILES="\${top_srcdir}/src/files.lst"
24050
24051 GUIDIST="BASE_DIST"
24052 DISTDIR="wxBase"
d836ee96
VZ
24053fi
24054
8284b0c5 24055
8647bec6
RG
24056
24057
24058IODBC_C_SRC=""
24059
24060
24061if test "$TOOLKIT" != "MSW" ; then
24062
24063 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24064 cat >>confdefs.h <<\_ACEOF
8647bec6 24065#define wxUSE_ODBC 1
e6cc62c6 24066_ACEOF
8647bec6
RG
24067
24068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24069
8647bec6
RG
24070 WXODBCFLAG="-D_IODBC_"
24071
24072
24073 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24074
24075 if test "${ac_cv_header_sql_h+set}" = set; then
24076 echo "$as_me:$LINENO: checking for sql.h" >&5
24077echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24078if test "${ac_cv_header_sql_h+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080fi
24081echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24082echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24083else
24084 # Is the header compilable?
24085echo "$as_me:$LINENO: checking sql.h usability" >&5
24086echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24087cat >conftest.$ac_ext <<_ACEOF
24088#line $LINENO "configure"
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
24094$ac_includes_default
8647bec6 24095#include <sql.h>
e6cc62c6
VS
24096_ACEOF
24097rm -f conftest.$ac_objext
24098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24099 (eval $ac_compile) 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -s conftest.$ac_objext'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; }; then
24109 ac_header_compiler=yes
24110else
24111 echo "$as_me: failed program was:" >&5
24112sed 's/^/| /' conftest.$ac_ext >&5
24113
24114ac_header_compiler=no
24115fi
24116rm -f conftest.$ac_objext conftest.$ac_ext
24117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24118echo "${ECHO_T}$ac_header_compiler" >&6
24119
24120# Is the header present?
24121echo "$as_me:$LINENO: checking sql.h presence" >&5
24122echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24123cat >conftest.$ac_ext <<_ACEOF
24124#line $LINENO "configure"
24125/* confdefs.h. */
24126_ACEOF
24127cat confdefs.h >>conftest.$ac_ext
24128cat >>conftest.$ac_ext <<_ACEOF
24129/* end confdefs.h. */
24130#include <sql.h>
24131_ACEOF
24132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } >/dev/null; then
24140 if test -s conftest.err; then
24141 ac_cpp_err=$ac_c_preproc_warn_flag
24142 else
24143 ac_cpp_err=
24144 fi
24145else
24146 ac_cpp_err=yes
24147fi
24148if test -z "$ac_cpp_err"; then
24149 ac_header_preproc=yes
24150else
24151 echo "$as_me: failed program was:" >&5
24152sed 's/^/| /' conftest.$ac_ext >&5
24153
24154 ac_header_preproc=no
24155fi
24156rm -f conftest.err conftest.$ac_ext
24157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24158echo "${ECHO_T}$ac_header_preproc" >&6
24159
24160# So? What about this header?
24161case $ac_header_compiler:$ac_header_preproc in
24162 yes:no )
24163 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24164echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24165 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24166echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24167 (
24168 cat <<\_ASBOX
24169## ------------------------------------ ##
24170## Report this to bug-autoconf@gnu.org. ##
24171## ------------------------------------ ##
24172_ASBOX
24173 ) |
24174 sed "s/^/$as_me: WARNING: /" >&2
24175 ;;
24176 no:yes )
24177 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24178echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24179 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24180echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24181 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24182echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24183 (
24184 cat <<\_ASBOX
24185## ------------------------------------ ##
24186## Report this to bug-autoconf@gnu.org. ##
24187## ------------------------------------ ##
24188_ASBOX
24189 ) |
24190 sed "s/^/$as_me: WARNING: /" >&2
24191 ;;
24192esac
24193echo "$as_me:$LINENO: checking for sql.h" >&5
24194echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24195if test "${ac_cv_header_sql_h+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24197else
e6cc62c6
VS
24198 ac_cv_header_sql_h=$ac_header_preproc
24199fi
24200echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24201echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24202
8647bec6
RG
24203fi
24204
e6cc62c6
VS
24205
24206 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24207echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24208if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24210else
e6cc62c6
VS
24211 ac_func_search_save_LIBS=$LIBS
24212ac_cv_search_SQLAllocEnv=no
24213cat >conftest.$ac_ext <<_ACEOF
24214#line $LINENO "configure"
24215/* confdefs.h. */
24216_ACEOF
24217cat confdefs.h >>conftest.$ac_ext
24218cat >>conftest.$ac_ext <<_ACEOF
24219/* end confdefs.h. */
24220
8647bec6 24221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24222#ifdef __cplusplus
24223extern "C"
24224#endif
8647bec6 24225/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24226 builtin and then its argument prototype would still apply. */
24227char SQLAllocEnv ();
24228int
24229main ()
24230{
24231SQLAllocEnv ();
24232 ;
24233 return 0;
24234}
24235_ACEOF
24236rm -f conftest.$ac_objext conftest$ac_exeext
24237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24238 (eval $ac_link) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } &&
24242 { ac_try='test -s conftest$ac_exeext'
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
8647bec6
RG
24248 ac_cv_search_SQLAllocEnv="none required"
24249else
e6cc62c6
VS
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
8647bec6 24253fi
e6cc62c6
VS
24254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24255if test "$ac_cv_search_SQLAllocEnv" = no; then
24256 for ac_lib in iodbc unixodbc odbc ; do
24257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24258 cat >conftest.$ac_ext <<_ACEOF
24259#line $LINENO "configure"
24260/* confdefs.h. */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h. */
24265
8647bec6 24266/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24267#ifdef __cplusplus
24268extern "C"
24269#endif
8647bec6 24270/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24271 builtin and then its argument prototype would still apply. */
24272char SQLAllocEnv ();
24273int
24274main ()
24275{
24276SQLAllocEnv ();
24277 ;
24278 return 0;
24279}
24280_ACEOF
24281rm -f conftest.$ac_objext conftest$ac_exeext
24282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24283 (eval $ac_link) 2>&5
24284 ac_status=$?
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } &&
24287 { ac_try='test -s conftest$ac_exeext'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24294break
24295else
e6cc62c6
VS
24296 echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
8647bec6 24299fi
e6cc62c6
VS
24300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24301 done
8647bec6 24302fi
e6cc62c6
VS
24303LIBS=$ac_func_search_save_LIBS
24304fi
24305echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24306echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24307if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24308 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24309
24310else
24311
24312 wxUSE_ODBC=builtin;
24313 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24314echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24315
8647bec6 24316fi
e6cc62c6 24317
fd3d7534
RG
24318 fi
24319 if test "$wxUSE_ODBC" != "sys" ; then
24320 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24321 fi
24322
24323 fi
e6cc62c6 24324
6232543b 24325fi
21d1c967
GD
24326
24327if test "$wxUSE_REGEX" = "builtin" ; then
24328 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24329fi
21d1c967
GD
24330if test "$wxUSE_ZLIB" = "builtin" ; then
24331 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24332fi
24333
8284b0c5 24334
21d1c967 24335if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24336 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24337 OPENGL_LIBS="-framework OpenGL -framework AGL"
24338 elif test "$wxUSE_MSW" = 1; then
24339 OPENGL_LIBS="-lopengl32 -lglu32"
24340 else
01aa5863
VS
24341
24342
24343ac_find_includes=
24344for ac_dir in $SEARCH_INCLUDE /usr/include;
24345 do
24346 if test -f "$ac_dir/GL/gl.h"; then
24347 ac_find_includes=$ac_dir
24348 break
24349 fi
24350 done
24351
24352 if test "$ac_find_includes" != "" ; then
24353 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24354echo "${ECHO_T}found in $ac_find_includes" >&6
24355 set -x
24356
24357 if test "x$ac_find_includes" = "x/usr/include"; then
24358 ac_path_to_include=""
24359 else
24360 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24361 result=$?
24362 if test $result = 0; then
24363 ac_path_to_include=""
24364 else
24365 ac_path_to_include=" -I$ac_find_includes"
24366 fi
24367 fi
24368
24369 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24370 set +x
24371 fi
24372
e6cc62c6
VS
24373 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24374 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24375echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24376if test "${ac_cv_header_GL_gl_h+set}" = set; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24378fi
24379echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24380echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24381else
24382 # Is the header compilable?
24383echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24384echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24385cat >conftest.$ac_ext <<_ACEOF
24386#line $LINENO "configure"
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392$ac_includes_default
21d1c967 24393#include <GL/gl.h>
e6cc62c6
VS
24394_ACEOF
24395rm -f conftest.$ac_objext
24396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24397 (eval $ac_compile) 2>&5
24398 ac_status=$?
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
24401 { ac_try='test -s conftest.$ac_objext'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24407 ac_header_compiler=yes
24408else
24409 echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412ac_header_compiler=no
24413fi
24414rm -f conftest.$ac_objext conftest.$ac_ext
24415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24416echo "${ECHO_T}$ac_header_compiler" >&6
24417
24418# Is the header present?
24419echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24420echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24421cat >conftest.$ac_ext <<_ACEOF
24422#line $LINENO "configure"
24423/* confdefs.h. */
24424_ACEOF
24425cat confdefs.h >>conftest.$ac_ext
24426cat >>conftest.$ac_ext <<_ACEOF
24427/* end confdefs.h. */
24428#include <GL/gl.h>
24429_ACEOF
24430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } >/dev/null; then
24438 if test -s conftest.err; then
24439 ac_cpp_err=$ac_c_preproc_warn_flag
24440 else
24441 ac_cpp_err=
24442 fi
24443else
24444 ac_cpp_err=yes
24445fi
24446if test -z "$ac_cpp_err"; then
24447 ac_header_preproc=yes
24448else
24449 echo "$as_me: failed program was:" >&5
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
24452 ac_header_preproc=no
24453fi
24454rm -f conftest.err conftest.$ac_ext
24455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24456echo "${ECHO_T}$ac_header_preproc" >&6
24457
24458# So? What about this header?
24459case $ac_header_compiler:$ac_header_preproc in
24460 yes:no )
24461 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24462echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24464echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24465 (
24466 cat <<\_ASBOX
24467## ------------------------------------ ##
24468## Report this to bug-autoconf@gnu.org. ##
24469## ------------------------------------ ##
24470_ASBOX
24471 ) |
24472 sed "s/^/$as_me: WARNING: /" >&2
24473 ;;
24474 no:yes )
24475 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24476echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24477 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24478echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24479 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24480echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24481 (
24482 cat <<\_ASBOX
24483## ------------------------------------ ##
24484## Report this to bug-autoconf@gnu.org. ##
24485## ------------------------------------ ##
24486_ASBOX
24487 ) |
24488 sed "s/^/$as_me: WARNING: /" >&2
24489 ;;
24490esac
24491echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24492echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24493if test "${ac_cv_header_GL_gl_h+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24495else
24496 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24497fi
e6cc62c6
VS
24498echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24499echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24500
698dcdb6 24501fi
e6cc62c6
VS
24502if test $ac_cv_header_GL_gl_h = yes; then
24503
89e3b3e4
VZ
24504 found_gl=0
24505
e6cc62c6
VS
24506 echo "$as_me:$LINENO: checking for -lGL" >&5
24507echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24508
21d1c967 24509ac_find_libraries=
2b5f62a0 24510for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24511 do
24512 for ac_extension in a so sl dylib; do
24513 if test -f "$ac_dir/libGL.$ac_extension"; then
24514 ac_find_libraries=$ac_dir
24515 break 2
24516 fi
24517 done
24518 done
24519
24520 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24521
21d1c967
GD
24522 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24523 result=$?
24524 if test $result = 0; then
24525 ac_path_to_link=""
24526 else
24527 ac_path_to_link=" -L$ac_find_libraries"
24528 fi
24529
89e3b3e4
VZ
24530 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24531 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24532 fi
89e3b3e4 24533
e6cc62c6 24534
89e3b3e4
VZ
24535ac_find_libraries=
24536for ac_dir in $SEARCH_LIB /usr/lib;
24537 do
24538 for ac_extension in a so sl dylib; do
24539 if test -f "$ac_dir/libGLU.$ac_extension"; then
24540 ac_find_libraries=$ac_dir
24541 break 2
24542 fi
24543 done
24544 done
24545
24546 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24547
89e3b3e4
VZ
24548 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24549 result=$?
24550 if test $result = 0; then
24551 ac_path_to_link=""
24552 else
24553 ac_path_to_link=" -L$ac_find_libraries"
24554 fi
24555
24556 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24557 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24558 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24559 fi
24560
24561 found_gl=1
24562 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24563 echo "$as_me:$LINENO: result: yes" >&5
24564echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24565 fi
24566 fi
24567
24568 if "$found_gl" != 1; then
e6cc62c6
VS
24569 echo "$as_me:$LINENO: result: no" >&5
24570echo "${ECHO_T}no" >&6
24571 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24572echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24573
21d1c967 24574ac_find_libraries=
2b5f62a0 24575for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24576 do
24577 for ac_extension in a so sl dylib; do
24578 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24579 ac_find_libraries=$ac_dir
24580 break 2
24581 fi
24582 done
24583 done
24584
24585 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24586
21d1c967
GD
24587 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24588 result=$?
24589 if test $result = 0; then
24590 ac_path_to_link=""
24591 else
24592 ac_path_to_link=" -L$ac_find_libraries"
24593 fi
24594
24595 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24596 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24597 echo "$as_me:$LINENO: result: yes" >&5
24598echo "${ECHO_T}yes" >&6
21d1c967 24599 else
e6cc62c6
VS
24600 echo "$as_me:$LINENO: result: no" >&5
24601echo "${ECHO_T}no" >&6
21d1c967
GD
24602 fi
24603 fi
e6cc62c6 24604
5c6fa7d2 24605fi
52127426 24606
8284b0c5 24607
e6cc62c6 24608
21d1c967 24609 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24610 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24611echo "$as_me: error: OpenGL libraries not available" >&2;}
24612 { (exit 1); exit 1; }; }
21d1c967
GD
24613 fi
24614 fi
90dd450c 24615
21d1c967 24616 if test "$wxUSE_OPENGL" = "yes"; then
e6cc62c6 24617 cat >>confdefs.h <<\_ACEOF
21d1c967 24618#define wxUSE_OPENGL 1
e6cc62c6 24619_ACEOF
21d1c967 24620
e6cc62c6 24621 cat >>confdefs.h <<\_ACEOF
21d1c967 24622#define wxUSE_GLCANVAS 1
e6cc62c6 24623_ACEOF
21d1c967
GD
24624
24625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24626 fi
10f2d63a 24627fi
21d1c967
GD
24628
24629if test -z "$TOOLKIT_VPATH" ; then
24630 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24631fi
21d1c967
GD
24632
24633if test -n "$TOOLKIT" ; then
24634 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24635fi
24636
fe0895cf 24637UNICODE=0
21d1c967
GD
24638lib_unicode_suffix=
24639if test "$wxUSE_UNICODE" = "yes"; then
24640 lib_unicode_suffix=u
fe0895cf 24641 UNICODE=1
90dd450c 24642fi
698dcdb6 24643
21d1c967 24644lib_debug_suffix=
fe0895cf 24645BUILD=release
21d1c967
GD
24646if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24647 lib_debug_suffix=d
fe0895cf 24648 BUILD=debug
21d1c967 24649fi
698dcdb6 24650
2b5f62a0
VZ
24651WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24652
24653TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24654TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24655
24656if test "$cross_compiling" = "yes"; then
24657 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24658 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24659fi
24660
24661WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24662WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24663WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24664
24665WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24666WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24667
24668WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24669WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24670WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24671WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24672
24673case "${host}" in
24674 *-*-cygwin* | *-*-mingw32* )
24675
e6cc62c6
VS
24676
24677
17234b26 24678 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
24679 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24680 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24681 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24682 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24683 else
24684 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24685 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24686 fi
24687 ;;
24688
24689 *-*-darwin* )
e6cc62c6 24690
05159a27
GD
24691 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24692 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24693
24694 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24695 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24696 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24697 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24698
21d1c967 24699 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24700 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24701 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24702 fi
24703 ;;
24704esac
24705
24706WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24707WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24708
24709WXCONFIG_LIBS="-l${WX_LIBRARY}"
24710WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24711
24712if test "$wxUSE_OPENGL" = "yes"; then
24713 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24714 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24715fi
24716
8284b0c5
MB
24717
24718
21d1c967
GD
24719if test "$wxUSE_SHARED" = "yes"; then
24720 case "${host}" in
24721 *-pc-os2_emx | *-pc-os2-emx | \
24722 *-pc-msdosdjgpp )
24723 wxUSE_SHARED=no
e6cc62c6
VS
24724 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24725echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24726 ;;
24727 esac
24728fi
24729
fe0895cf 24730SHARED=0
2b5f62a0 24731if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24732 SHARED=1
2b5f62a0
VZ
24733
24734 if test "$wxUSE_OPENGL" = "yes"; then
24735 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
24736 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
24737 else
24738 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24739 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
24740 fi
24741
24742 if test "$GCC" = "yes"; then
24743 PIC_FLAG="-fPIC"
24744 fi
24745
24746
e6cc62c6 24747
2b5f62a0
VZ
24748 found_versioning=no
24749
e6cc62c6 24750
2b5f62a0 24751 if test $found_versioning = no ; then
e6cc62c6
VS
24752 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24753echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24754if test "${wx_cv_version_script+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24756else
e6cc62c6 24757
2b5f62a0
VZ
24758 echo "VER_1 { *; };" >conftest.sym
24759 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 24760
2b5f62a0
VZ
24761 if { ac_try='
24762 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
24763 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; } ; then
2b5f62a0
VZ
24769 if test -s conftest.stderr ; then
24770 wx_cv_version_script=no
24771 else
24772 wx_cv_version_script=yes
24773 fi
24774 else
24775 wx_cv_version_script=no
24776 fi
24777 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 24778
e6cc62c6
VS
24779fi
24780echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24781echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 24782 if test $wx_cv_version_script = yes ; then
e6cc62c6 24783 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
24784 fi
24785 fi
21d1c967 24786
21d1c967
GD
24787
24788 SHARED_LD="${CXX} -shared -o"
24789
24790 case "${host}" in
24791 *-hp-hpux* )
ad2622f1 24792 if test "$GCC" = "yes"; then
85d5e282 24793 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
24794 else
24795 LDFLAGS="$LDFLAGS -L/usr/lib"
24796
24797 SHARED_LD="${CXX} -b -o"
24798 PIC_FLAG="+Z"
24799 fi
24800
24801 if test "$wxUSE_OPENGL" = "yes"; then
24802 WX_ALL_INSTALLED="preinstall_gl"
24803 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
24804 else
24805 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24806 fi
24807 ;;
24808
fe0895cf 24809 *-*-linux* | *-*-gnu* )
21d1c967 24810 if test "$GCC" != "yes"; then
e6cc62c6
VS
24811 echo "$as_me:$LINENO: checking for Intel compiler" >&5
24812echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
24813if test "${wx_cv_prog_icc+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24815else
90dd450c 24816
e6cc62c6
VS
24817 cat >conftest.$ac_ext <<_ACEOF
24818#line $LINENO "configure"
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
24824
24825int
24826main ()
24827{
90dd450c 24828
21d1c967
GD
24829 #ifndef __INTEL_COMPILER
24830 #error Not icc
24831 #endif
e6cc62c6
VS
24832
24833 ;
24834 return 0;
24835}
24836_ACEOF
24837rm -f conftest.$ac_objext
24838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24839 (eval $ac_compile) 2>&5
24840 ac_status=$?
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); } &&
24843 { ac_try='test -s conftest.$ac_objext'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; }; then
21d1c967 24849 wx_cv_prog_icc=yes
6232543b 24850else
e6cc62c6
VS
24851 echo "$as_me: failed program was:" >&5
24852sed 's/^/| /' conftest.$ac_ext >&5
24853
24854wx_cv_prog_icc=no
24855
247f5006 24856fi
e6cc62c6 24857rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 24858
e6cc62c6
VS
24859fi
24860echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
24861echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
24862 if test "$wx_cv_prog_icc" = "yes"; then
24863 PIC_FLAG="-KPIC"
24864 fi
24865 fi
24866
e6cc62c6 24867 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
24868 ;;
24869
24870 *-*-solaris2* )
24871 if test "$GCC" = yes ; then
24872 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
24873
24874 saveLdflags="$LDFLAGS"
24875 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
24876 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24877echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24878 cat >conftest.$ac_ext <<_ACEOF
24879#line $LINENO "configure"
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885
24886int
24887main ()
24888{
fe0895cf 24889
e6cc62c6
VS
24890 ;
24891 return 0;
24892}
24893_ACEOF
24894rm -f conftest.$ac_objext conftest$ac_exeext
24895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24896 (eval $ac_link) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } &&
24900 { ac_try='test -s conftest$ac_exeext'
24901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906
24907 echo "$as_me:$LINENO: result: yes" >&5
24908echo "${ECHO_T}yes" >&6
24909 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24910
24911else
24912 echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915
24916 echo "$as_me:$LINENO: result: no" >&5
24917echo "${ECHO_T}no" >&6
24918 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24919echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 24920 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
24921 cat >conftest.$ac_ext <<_ACEOF
24922#line $LINENO "configure"
24923/* confdefs.h. */
24924_ACEOF
24925cat confdefs.h >>conftest.$ac_ext
24926cat >>conftest.$ac_ext <<_ACEOF
24927/* end confdefs.h. */
24928
24929int
24930main ()
24931{
24932
24933 ;
24934 return 0;
24935}
24936_ACEOF
24937rm -f conftest.$ac_objext conftest$ac_exeext
24938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24939 (eval $ac_link) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
24943 { ac_try='test -s conftest$ac_exeext'
24944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; }; then
24949
24950 echo "$as_me:$LINENO: result: yes" >&5
24951echo "${ECHO_T}yes" >&6
24952 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
24953else
24954 echo "$as_me: failed program was:" >&5
24955sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 24956
fe0895cf 24957
e6cc62c6
VS
24958 echo "$as_me:$LINENO: result: no" >&5
24959echo "${ECHO_T}no" >&6
24960
fe0895cf 24961fi
e6cc62c6
VS
24962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24963
24964fi
24965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 24966 LDFLAGS="$saveLdflags"
21d1c967
GD
24967 else
24968 SHARED_LD="${CXX} -G -o"
24969 PIC_FLAG="-KPIC"
e6cc62c6 24970 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
24971 fi
24972 ;;
24973
24974 *-*-darwin* )
b2fee376
GD
24975 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
24976 CFLAGS="$CFLAGS -fno-common"
24977 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
24978 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
24979 PIC_FLAG="-dynamic -fPIC"
21d1c967
GD
24980 ;;
24981
24982 *-*-aix* )
2b5f62a0
VZ
24983 if test "$GCC" != "yes"; then
24984 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 24985set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
24986echo "$as_me:$LINENO: checking for $ac_word" >&5
24987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24988if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
24990else
24991 if test -n "$AIX_CXX_LD"; then
24992 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
24993else
e6cc62c6
VS
24994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24995for as_dir in $PATH
24996do
24997 IFS=$as_save_IFS
24998 test -z "$as_dir" && as_dir=.
24999 for ac_exec_ext in '' $ac_executable_extensions; do
25000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25001 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
25002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25003 break 2
25004 fi
25005done
25006done
25007
321d2b14
VZ
25008 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
25009fi
25010fi
e6cc62c6 25011AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 25012if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
25013 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
25014echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 25015else
e6cc62c6
VS
25016 echo "$as_me:$LINENO: result: no" >&5
25017echo "${ECHO_T}no" >&6
321d2b14
VZ
25018fi
25019
8284b0c5 25020
2b5f62a0
VZ
25021 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
25022 fi
21d1c967
GD
25023 ;;
25024
25025 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
25026 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
25027
25028 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
25029 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25030
25031 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
25032
f657dbe7
MB
25033 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
25034 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
25035
25036 if test "$wxUSE_OPENGL" = "yes"; then
25037 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
25038 fi
25039 ;;
25040
25041 *-*-beos* )
25042 SHARED_LD="${LD} -shared -o"
25043 ;;
25044
2b5f62a0
VZ
25045 *-*-irix* )
25046 if test "$GCC" != "yes"; then
25047 PIC_FLAG="-KPIC"
25048 fi
25049 ;;
25050
21d1c967
GD
25051 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
25052 *-*-sunos4* | \
21d1c967
GD
25053 *-*-osf* | \
25054 *-*-dgux5* | \
25055 *-*-sysv5* )
25056 ;;
25057
25058 *)
e6cc62c6
VS
25059 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
25060echo "$as_me: error: unknown system type $host." >&2;}
25061 { (exit 1); exit 1; }; }
21d1c967
GD
25062 esac
25063
25064 if test "x$WX_TARGET_LIBRARY" = "x"; then
25065 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25066 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25067 fi
25068
25069 WX_TARGET_LIBRARY_TYPE="so"
25070 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25071fi
10f2d63a 25072
21d1c967
GD
25073if test "$wxUSE_SHARED" = "no"; then
25074
25075 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25076 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25077 fi
25078
ac0c4cc3 25079 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25080 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25081 fi
25082
25083 if test "$wxUSE_OPENGL" = "yes"; then
25084 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25085 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25086 else
25087 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25088 fi
25089
25090 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25091 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25092
25093 WX_TARGET_LIBRARY_TYPE="a"
25094 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25095
25096 STATIC_FLAG="yes"
25097else
25098 STATIC_FLAG="no"
90dd450c 25099fi
1e487827 25100
93fac604
VZ
25101MACRESCOMP="@#"
25102MACSETFILE="@#"
36825681 25103MACRESWXCONFIG="#"
21d1c967 25104if test "$wxUSE_MAC" = 1; then
e6cc62c6 25105 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25106 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25107 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25108 # Extract the first word of "Rez", so it can be a program name with args.
25109set dummy Rez; ac_word=$2
e6cc62c6
VS
25110echo "$as_me:$LINENO: checking for $ac_word" >&5
25111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25112if test "${ac_cv_prog_RESCOMP+set}" = set; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25114else
21d1c967
GD
25115 if test -n "$RESCOMP"; then
25116 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25117else
e6cc62c6
VS
25118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25119for as_dir in $PATH
25120do
25121 IFS=$as_save_IFS
25122 test -z "$as_dir" && as_dir=.
25123 for ac_exec_ext in '' $ac_executable_extensions; do
25124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25125 ac_cv_prog_RESCOMP="Rez"
25126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25127 break 2
25128 fi
25129done
25130done
25131
21d1c967 25132 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25133fi
b93d0d08 25134fi
e6cc62c6 25135RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25136if test -n "$RESCOMP"; then
e6cc62c6
VS
25137 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25138echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25139else
e6cc62c6
VS
25140 echo "$as_me:$LINENO: result: no" >&5
25141echo "${ECHO_T}no" >&6
90dd450c 25142fi
b93d0d08 25143
21d1c967
GD
25144 # Extract the first word of "DeRez", so it can be a program name with args.
25145set dummy DeRez; ac_word=$2
e6cc62c6
VS
25146echo "$as_me:$LINENO: checking for $ac_word" >&5
25147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25148if test "${ac_cv_prog_DEREZ+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25150else
21d1c967
GD
25151 if test -n "$DEREZ"; then
25152 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25153else
e6cc62c6
VS
25154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25155for as_dir in $PATH
25156do
25157 IFS=$as_save_IFS
25158 test -z "$as_dir" && as_dir=.
25159 for ac_exec_ext in '' $ac_executable_extensions; do
25160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25161 ac_cv_prog_DEREZ="DeRez"
25162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25163 break 2
25164 fi
25165done
25166done
25167
21d1c967 25168 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25169fi
90dd450c 25170fi
e6cc62c6 25171DEREZ=$ac_cv_prog_DEREZ
21d1c967 25172if test -n "$DEREZ"; then
e6cc62c6
VS
25173 echo "$as_me:$LINENO: result: $DEREZ" >&5
25174echo "${ECHO_T}$DEREZ" >&6
90dd450c 25175else
e6cc62c6
VS
25176 echo "$as_me:$LINENO: result: no" >&5
25177echo "${ECHO_T}no" >&6
3a922bb4 25178fi
698dcdb6 25179
36825681
GD
25180 # Extract the first word of "SetFile", so it can be a program name with args.
25181set dummy SetFile; ac_word=$2
e6cc62c6
VS
25182echo "$as_me:$LINENO: checking for $ac_word" >&5
25183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25184if test "${ac_cv_prog_SETFILE+set}" = set; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25186else
25187 if test -n "$SETFILE"; then
25188 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25189else
e6cc62c6
VS
25190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25191for as_dir in $PATH
25192do
25193 IFS=$as_save_IFS
25194 test -z "$as_dir" && as_dir=.
25195 for ac_exec_ext in '' $ac_executable_extensions; do
25196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25197 ac_cv_prog_SETFILE="SetFile"
25198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25199 break 2
25200 fi
25201done
25202done
25203
36825681
GD
25204 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25205fi
25206fi
e6cc62c6 25207SETFILE=$ac_cv_prog_SETFILE
36825681 25208if test -n "$SETFILE"; then
e6cc62c6
VS
25209 echo "$as_me:$LINENO: result: $SETFILE" >&5
25210echo "${ECHO_T}$SETFILE" >&6
36825681 25211else
e6cc62c6
VS
25212 echo "$as_me:$LINENO: result: no" >&5
25213echo "${ECHO_T}no" >&6
36825681
GD
25214fi
25215
21d1c967 25216 MACOSX_BUNDLE="bundle"
36825681
GD
25217 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25218 MACSETFILE="\$(SETFILE)"
9711d31e 25219 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25220elif test "$wxUSE_COCOA" = 1; then
25221 # Extract the first word of "Rez", so it can be a program name with args.
25222set dummy Rez; ac_word=$2
e6cc62c6
VS
25223echo "$as_me:$LINENO: checking for $ac_word" >&5
25224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25225if test "${ac_cv_prog_RESCOMP+set}" = set; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25227else
25228 if test -n "$RESCOMP"; then
25229 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25230else
e6cc62c6
VS
25231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25232for as_dir in $PATH
25233do
25234 IFS=$as_save_IFS
25235 test -z "$as_dir" && as_dir=.
25236 for ac_exec_ext in '' $ac_executable_extensions; do
25237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25238 ac_cv_prog_RESCOMP="Rez"
25239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25240 break 2
25241 fi
25242done
25243done
25244
64440d77
DE
25245 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25246fi
25247fi
e6cc62c6 25248RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25249if test -n "$RESCOMP"; then
e6cc62c6
VS
25250 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25251echo "${ECHO_T}$RESCOMP" >&6
64440d77 25252else
e6cc62c6
VS
25253 echo "$as_me:$LINENO: result: no" >&5
25254echo "${ECHO_T}no" >&6
64440d77
DE
25255fi
25256
25257 # Extract the first word of "DeRez", so it can be a program name with args.
25258set dummy DeRez; ac_word=$2
e6cc62c6
VS
25259echo "$as_me:$LINENO: checking for $ac_word" >&5
25260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25261if test "${ac_cv_prog_DEREZ+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25263else
25264 if test -n "$DEREZ"; then
25265 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25266else
e6cc62c6
VS
25267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25268for as_dir in $PATH
25269do
25270 IFS=$as_save_IFS
25271 test -z "$as_dir" && as_dir=.
25272 for ac_exec_ext in '' $ac_executable_extensions; do
25273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25274 ac_cv_prog_DEREZ="DeRez"
25275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25276 break 2
25277 fi
25278done
25279done
25280
64440d77
DE
25281 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25282fi
25283fi
e6cc62c6 25284DEREZ=$ac_cv_prog_DEREZ
64440d77 25285if test -n "$DEREZ"; then
e6cc62c6
VS
25286 echo "$as_me:$LINENO: result: $DEREZ" >&5
25287echo "${ECHO_T}$DEREZ" >&6
64440d77 25288else
e6cc62c6
VS
25289 echo "$as_me:$LINENO: result: no" >&5
25290echo "${ECHO_T}no" >&6
64440d77
DE
25291fi
25292
25293 # Extract the first word of "SetFile", so it can be a program name with args.
25294set dummy SetFile; ac_word=$2
e6cc62c6
VS
25295echo "$as_me:$LINENO: checking for $ac_word" >&5
25296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25297if test "${ac_cv_prog_SETFILE+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25299else
25300 if test -n "$SETFILE"; then
25301 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25302else
e6cc62c6
VS
25303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25304for as_dir in $PATH
25305do
25306 IFS=$as_save_IFS
25307 test -z "$as_dir" && as_dir=.
25308 for ac_exec_ext in '' $ac_executable_extensions; do
25309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25310 ac_cv_prog_SETFILE="SetFile"
25311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25312 break 2
25313 fi
25314done
25315done
25316
64440d77
DE
25317 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25318fi
25319fi
e6cc62c6 25320SETFILE=$ac_cv_prog_SETFILE
64440d77 25321if test -n "$SETFILE"; then
e6cc62c6
VS
25322 echo "$as_me:$LINENO: result: $SETFILE" >&5
25323echo "${ECHO_T}$SETFILE" >&6
64440d77 25324else
e6cc62c6
VS
25325 echo "$as_me:$LINENO: result: no" >&5
25326echo "${ECHO_T}no" >&6
64440d77
DE
25327fi
25328
25329 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25330 MACSETFILE="\$(SETFILE)"
9711d31e 25331 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25332else
25333 if test "$wxUSE_PM" = 1; then
36825681 25334 MACRESCOMP="emxbind -ep"
90dd450c 25335 fi
4f14bcd8 25336fi
10f2d63a 25337
8284b0c5 25338
e6cc62c6
VS
25339echo "$as_me:$LINENO: checking for mode_t" >&5
25340echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25341if test "${ac_cv_type_mode_t+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25343else
e6cc62c6
VS
25344 cat >conftest.$ac_ext <<_ACEOF
25345#line $LINENO "configure"
25346/* confdefs.h. */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h. */
25351$ac_includes_default
25352int
25353main ()
25354{
25355if ((mode_t *) 0)
25356 return 0;
25357if (sizeof (mode_t))
25358 return 0;
25359 ;
25360 return 0;
25361}
25362_ACEOF
25363rm -f conftest.$ac_objext
25364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25365 (eval $ac_compile) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } &&
25369 { ac_try='test -s conftest.$ac_objext'
25370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371 (eval $ac_try) 2>&5
25372 ac_status=$?
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; }; then
25375 ac_cv_type_mode_t=yes
a0b9e27f 25376else
e6cc62c6
VS
25377 echo "$as_me: failed program was:" >&5
25378sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25379
e6cc62c6 25380ac_cv_type_mode_t=no
a0b9e27f 25381fi
e6cc62c6 25382rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25383fi
e6cc62c6
VS
25384echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25385echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25386if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25387 :
25388else
a0b9e27f 25389
e6cc62c6
VS
25390cat >>confdefs.h <<_ACEOF
25391#define mode_t int
25392_ACEOF
8284b0c5
MB
25393
25394fi
25395
e6cc62c6
VS
25396echo "$as_me:$LINENO: checking for off_t" >&5
25397echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25398if test "${ac_cv_type_off_t+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25400else
e6cc62c6
VS
25401 cat >conftest.$ac_ext <<_ACEOF
25402#line $LINENO "configure"
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408$ac_includes_default
25409int
25410main ()
25411{
25412if ((off_t *) 0)
25413 return 0;
25414if (sizeof (off_t))
25415 return 0;
25416 ;
25417 return 0;
25418}
25419_ACEOF
25420rm -f conftest.$ac_objext
25421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25422 (eval $ac_compile) 2>&5
25423 ac_status=$?
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } &&
25426 { ac_try='test -s conftest.$ac_objext'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_type_off_t=yes
5c6fa7d2 25433else
e6cc62c6
VS
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25436
e6cc62c6 25437ac_cv_type_off_t=no
8284b0c5 25438fi
e6cc62c6 25439rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25440fi
e6cc62c6
VS
25441echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25442echo "${ECHO_T}$ac_cv_type_off_t" >&6
25443if test $ac_cv_type_off_t = yes; then
25444 :
247f5006
VZ
25445else
25446
e6cc62c6 25447cat >>confdefs.h <<_ACEOF
90dd450c 25448#define off_t long
e6cc62c6 25449_ACEOF
10f2d63a 25450
90dd450c 25451fi
10f2d63a 25452
e6cc62c6
VS
25453echo "$as_me:$LINENO: checking for pid_t" >&5
25454echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25455if test "${ac_cv_type_pid_t+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25457else
e6cc62c6
VS
25458 cat >conftest.$ac_ext <<_ACEOF
25459#line $LINENO "configure"
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465$ac_includes_default
25466int
25467main ()
25468{
25469if ((pid_t *) 0)
25470 return 0;
25471if (sizeof (pid_t))
25472 return 0;
25473 ;
25474 return 0;
25475}
25476_ACEOF
25477rm -f conftest.$ac_objext
25478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25479 (eval $ac_compile) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -s conftest.$ac_objext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
90dd450c 25489 ac_cv_type_pid_t=yes
698dcdb6 25490else
e6cc62c6
VS
25491 echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25493
e6cc62c6
VS
25494ac_cv_type_pid_t=no
25495fi
25496rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25497fi
e6cc62c6
VS
25498echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25499echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25500if test $ac_cv_type_pid_t = yes; then
25501 :
25502else
25503
25504cat >>confdefs.h <<_ACEOF
90dd450c 25505#define pid_t int
e6cc62c6 25506_ACEOF
10f2d63a 25507
7b4a847f
RR
25508fi
25509
e6cc62c6
VS
25510echo "$as_me:$LINENO: checking for size_t" >&5
25511echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25512if test "${ac_cv_type_size_t+set}" = set; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25514else
e6cc62c6
VS
25515 cat >conftest.$ac_ext <<_ACEOF
25516#line $LINENO "configure"
25517/* confdefs.h. */
25518_ACEOF
25519cat confdefs.h >>conftest.$ac_ext
25520cat >>conftest.$ac_ext <<_ACEOF
25521/* end confdefs.h. */
25522$ac_includes_default
25523int
25524main ()
25525{
25526if ((size_t *) 0)
25527 return 0;
25528if (sizeof (size_t))
25529 return 0;
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext
25535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536 (eval $ac_compile) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } &&
25540 { ac_try='test -s conftest.$ac_objext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
90dd450c 25546 ac_cv_type_size_t=yes
18dbb1f6 25547else
e6cc62c6
VS
25548 echo "$as_me: failed program was:" >&5
25549sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25550
e6cc62c6 25551ac_cv_type_size_t=no
a0b9e27f 25552fi
e6cc62c6
VS
25553rm -f conftest.$ac_objext conftest.$ac_ext
25554fi
25555echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25556echo "${ECHO_T}$ac_cv_type_size_t" >&6
25557if test $ac_cv_type_size_t = yes; then
25558 :
25559else
25560
25561cat >>confdefs.h <<_ACEOF
90dd450c 25562#define size_t unsigned
e6cc62c6 25563_ACEOF
90dd450c
VZ
25564
25565fi
25566
e6cc62c6
VS
25567echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25568echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25569if test "${ac_cv_type_uid_t+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25571else
e6cc62c6
VS
25572 cat >conftest.$ac_ext <<_ACEOF
25573#line $LINENO "configure"
25574/* confdefs.h. */
25575_ACEOF
25576cat confdefs.h >>conftest.$ac_ext
25577cat >>conftest.$ac_ext <<_ACEOF
25578/* end confdefs.h. */
90dd450c 25579#include <sys/types.h>
e6cc62c6
VS
25580
25581_ACEOF
90dd450c 25582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25583 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25584 ac_cv_type_uid_t=yes
b3e8d00a 25585else
90dd450c 25586 ac_cv_type_uid_t=no
b3e8d00a 25587fi
90dd450c 25588rm -f conftest*
b3e8d00a 25589
4f14bcd8 25590fi
e6cc62c6
VS
25591echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25592echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25593if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25594
25595cat >>confdefs.h <<\_ACEOF
90dd450c 25596#define uid_t int
e6cc62c6 25597_ACEOF
247f5006 25598
e6cc62c6
VS
25599
25600cat >>confdefs.h <<\_ACEOF
90dd450c 25601#define gid_t int
e6cc62c6 25602_ACEOF
4f14bcd8 25603
b3e8d00a 25604fi
b3e8d00a 25605
8284b0c5
MB
25606
25607
e6cc62c6
VS
25608
25609ac_ext=cc
4f14bcd8 25610ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25614
25615echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25616echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25617if test "${wx_cv_size_t_is_uint+set}" = set; then
25618 echo $ECHO_N "(cached) $ECHO_C" >&6
25619else
25620
25621 cat >conftest.$ac_ext <<_ACEOF
25622#line $LINENO "configure"
25623/* confdefs.h. */
25624_ACEOF
25625cat confdefs.h >>conftest.$ac_ext
25626cat >>conftest.$ac_ext <<_ACEOF
25627/* end confdefs.h. */
90dd450c 25628#include <stddef.h>
e6cc62c6
VS
25629int
25630main ()
25631{
90dd450c
VZ
25632
25633 return 0; }
25634
25635 struct Foo { void foo(size_t); void foo(unsigned int); };
25636
25637 int bar() {
e6cc62c6
VS
25638
25639 ;
25640 return 0;
25641}
25642_ACEOF
25643rm -f conftest.$ac_objext
25644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25645 (eval $ac_compile) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -s conftest.$ac_objext'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
90dd450c 25655 wx_cv_size_t_is_uint=no
698dcdb6 25656else
e6cc62c6
VS
25657 echo "$as_me: failed program was:" >&5
25658sed 's/^/| /' conftest.$ac_ext >&5
25659
25660wx_cv_size_t_is_uint=yes
8284b0c5 25661
247f5006 25662fi
e6cc62c6
VS
25663rm -f conftest.$ac_objext conftest.$ac_ext
25664
a0b9e27f 25665
e6cc62c6
VS
25666fi
25667echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25668echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25669
90dd450c 25670if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25671 cat >>confdefs.h <<\_ACEOF
90dd450c 25672#define wxSIZE_T_IS_UINT 1
e6cc62c6 25673_ACEOF
698dcdb6 25674
90dd450c 25675else
e6cc62c6
VS
25676 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25677echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25678if test "${wx_cv_size_t_is_ulong+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25680else
e6cc62c6
VS
25681 cat >conftest.$ac_ext <<_ACEOF
25682#line $LINENO "configure"
25683/* confdefs.h. */
25684_ACEOF
25685cat confdefs.h >>conftest.$ac_ext
25686cat >>conftest.$ac_ext <<_ACEOF
25687/* end confdefs.h. */
90dd450c 25688#include <stddef.h>
e6cc62c6
VS
25689int
25690main ()
25691{
90dd450c
VZ
25692
25693 return 0; }
25694
25695 struct Foo { void foo(size_t); void foo(unsigned long); };
25696
25697 int bar() {
e6cc62c6
VS
25698
25699 ;
25700 return 0;
25701}
25702_ACEOF
25703rm -f conftest.$ac_objext
25704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25705 (eval $ac_compile) 2>&5
25706 ac_status=$?
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } &&
25709 { ac_try='test -s conftest.$ac_objext'
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
90dd450c 25715 wx_cv_size_t_is_ulong=no
698dcdb6 25716else
e6cc62c6
VS
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720wx_cv_size_t_is_ulong=yes
25721
247f5006 25722fi
e6cc62c6 25723rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25724
e6cc62c6
VS
25725fi
25726echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25727echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25728
90dd450c 25729 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25730 cat >>confdefs.h <<\_ACEOF
90dd450c 25731#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25732_ACEOF
4f14bcd8
GD
25733
25734 fi
90dd450c 25735fi
1e487827 25736
90dd450c 25737ac_ext=c
4f14bcd8 25738ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25741ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25742
5c6fa7d2 25743
8284b0c5 25744
e6cc62c6
VS
25745echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25746echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25747if test "${wx_cv_struct_pw_gecos+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25749else
e6cc62c6
VS
25750
25751 cat >conftest.$ac_ext <<_ACEOF
25752#line $LINENO "configure"
25753/* confdefs.h. */
25754_ACEOF
25755cat confdefs.h >>conftest.$ac_ext
25756cat >>conftest.$ac_ext <<_ACEOF
25757/* end confdefs.h. */
90dd450c 25758#include <pwd.h>
e6cc62c6
VS
25759int
25760main ()
25761{
f6bcfd97 25762
90dd450c
VZ
25763 char *p;
25764 struct passwd *pw;
25765 p = pw->pw_gecos;
e6cc62c6
VS
25766
25767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext
25772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>&5
25774 ac_status=$?
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } &&
25777 { ac_try='test -s conftest.$ac_objext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783
90dd450c 25784 wx_cv_struct_pw_gecos=yes
e6cc62c6 25785
10f2d63a 25786else
e6cc62c6
VS
25787 echo "$as_me: failed program was:" >&5
25788sed 's/^/| /' conftest.$ac_ext >&5
25789
25790
90dd450c 25791 wx_cv_struct_pw_gecos=no
e6cc62c6 25792
247f5006
VZ
25793
25794fi
e6cc62c6 25795rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25796
e6cc62c6
VS
25797
25798fi
25799echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25800echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25801
90dd450c 25802if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25803 cat >>confdefs.h <<\_ACEOF
90dd450c 25804#define HAVE_PW_GECOS 1
e6cc62c6 25805_ACEOF
c521c494 25806
90dd450c 25807fi
4f14bcd8 25808
8284b0c5 25809
d29b553b 25810if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25811 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25812#define wxUSE_WCHAR_T 1
e6cc62c6 25813_ACEOF
d74f4b5a 25814
8284b0c5 25815
d74f4b5a
VZ
25816 WCSLEN_FOUND=0
25817 WCHAR_LINK=
e6cc62c6
VS
25818
25819for ac_func in wcslen
7a30264c 25820do
e6cc62c6
VS
25821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25822echo "$as_me:$LINENO: checking for $ac_func" >&5
25823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25824if eval "test \"\${$as_ac_var+set}\" = set"; then
25825 echo $ECHO_N "(cached) $ECHO_C" >&6
25826else
25827 cat >conftest.$ac_ext <<_ACEOF
25828#line $LINENO "configure"
25829/* confdefs.h. */
25830_ACEOF
25831cat confdefs.h >>conftest.$ac_ext
25832cat >>conftest.$ac_ext <<_ACEOF
25833/* end confdefs.h. */
7a30264c 25834/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25835 which can conflict with char $ac_func (); below.
25836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25837 <limits.h> exists even on freestanding compilers. */
25838#ifdef __STDC__
25839# include <limits.h>
25840#else
25841# include <assert.h>
25842#endif
4f14bcd8 25843/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25844#ifdef __cplusplus
25845extern "C"
25846{
25847#endif
4f14bcd8 25848/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25849 builtin and then its argument prototype would still apply. */
25850char $ac_func ();
7a30264c
VZ
25851/* The GNU C library defines this for functions which it implements
25852 to always fail with ENOSYS. Some functions are actually named
25853 something starting with __ and the normal name is an alias. */
25854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25855choke me
25856#else
e6cc62c6
VS
25857char (*f) () = $ac_func;
25858#endif
25859#ifdef __cplusplus
25860}
7a30264c
VZ
25861#endif
25862
e6cc62c6
VS
25863int
25864main ()
25865{
25866return f != $ac_func;
25867 ;
25868 return 0;
25869}
25870_ACEOF
25871rm -f conftest.$ac_objext conftest$ac_exeext
25872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25873 (eval $ac_link) 2>&5
25874 ac_status=$?
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
25877 { ac_try='test -s conftest$ac_exeext'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 eval "$as_ac_var=yes"
25884else
25885 echo "$as_me: failed program was:" >&5
25886sed 's/^/| /' conftest.$ac_ext >&5
25887
25888eval "$as_ac_var=no"
25889fi
25890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25891fi
25892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25894if test `eval echo '${'$as_ac_var'}'` = yes; then
25895 cat >>confdefs.h <<_ACEOF
25896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25897_ACEOF
d74f4b5a 25898 WCSLEN_FOUND=1
7a30264c
VZ
25899fi
25900done
9d8deca0 25901
8284b0c5 25902
d74f4b5a 25903 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25904 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25905 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25906echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25907if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25908 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25909else
e6cc62c6 25910 ac_check_lib_save_LIBS=$LIBS
7a30264c 25911LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25912cat >conftest.$ac_ext <<_ACEOF
25913#line $LINENO "configure"
25914/* confdefs.h. */
25915_ACEOF
25916cat confdefs.h >>conftest.$ac_ext
25917cat >>conftest.$ac_ext <<_ACEOF
25918/* end confdefs.h. */
25919
4f14bcd8 25920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25921#ifdef __cplusplus
25922extern "C"
25923#endif
4f14bcd8 25924/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25925 builtin and then its argument prototype would still apply. */
25926char wcslen ();
25927int
25928main ()
25929{
25930wcslen ();
25931 ;
25932 return 0;
25933}
25934_ACEOF
25935rm -f conftest.$ac_objext conftest$ac_exeext
25936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25937 (eval $ac_link) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } &&
25941 { ac_try='test -s conftest$ac_exeext'
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; }; then
25947 ac_cv_lib_msvcrt_wcslen=yes
25948else
25949 echo "$as_me: failed program was:" >&5
25950sed 's/^/| /' conftest.$ac_ext >&5
25951
25952ac_cv_lib_msvcrt_wcslen=no
25953fi
25954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25955LIBS=$ac_check_lib_save_LIBS
25956fi
25957echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25958echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25959if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 25960 WCHAR_OK=1
d29b553b 25961fi
698dcdb6 25962
7a30264c 25963 else
e6cc62c6
VS
25964 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25965echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25966if test "${ac_cv_lib_w_wcslen+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25968else
e6cc62c6 25969 ac_check_lib_save_LIBS=$LIBS
7a30264c 25970LIBS="-lw $LIBS"
e6cc62c6
VS
25971cat >conftest.$ac_ext <<_ACEOF
25972#line $LINENO "configure"
25973/* confdefs.h. */
25974_ACEOF
25975cat confdefs.h >>conftest.$ac_ext
25976cat >>conftest.$ac_ext <<_ACEOF
25977/* end confdefs.h. */
25978
4f14bcd8 25979/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25980#ifdef __cplusplus
25981extern "C"
25982#endif
4f14bcd8 25983/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25984 builtin and then its argument prototype would still apply. */
25985char wcslen ();
25986int
25987main ()
25988{
25989wcslen ();
25990 ;
25991 return 0;
25992}
25993_ACEOF
25994rm -f conftest.$ac_objext conftest$ac_exeext
25995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25996 (eval $ac_link) 2>&5
25997 ac_status=$?
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } &&
26000 { ac_try='test -s conftest$ac_exeext'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; }; then
26006 ac_cv_lib_w_wcslen=yes
26007else
26008 echo "$as_me: failed program was:" >&5
26009sed 's/^/| /' conftest.$ac_ext >&5
26010
26011ac_cv_lib_w_wcslen=no
26012fi
26013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26014LIBS=$ac_check_lib_save_LIBS
26015fi
26016echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26017echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26018if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26019
7a30264c 26020 WCHAR_LINK=" -lw"
d74f4b5a 26021 WCSLEN_FOUND=1
e6cc62c6 26022
4f14bcd8 26023fi
10f2d63a 26024
7a30264c 26025 fi
d29b553b 26026 fi
95c8801c 26027
d74f4b5a 26028 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26029 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26030#define HAVE_WCSLEN 1
e6cc62c6 26031_ACEOF
10f2d63a 26032
d74f4b5a 26033 fi
52127426 26034
e6cc62c6
VS
26035
26036for ac_func in wcsrtombs
eb4efbdc 26037do
e6cc62c6
VS
26038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26039echo "$as_me:$LINENO: checking for $ac_func" >&5
26040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26041if eval "test \"\${$as_ac_var+set}\" = set"; then
26042 echo $ECHO_N "(cached) $ECHO_C" >&6
26043else
26044 cat >conftest.$ac_ext <<_ACEOF
26045#line $LINENO "configure"
26046/* confdefs.h. */
26047_ACEOF
26048cat confdefs.h >>conftest.$ac_ext
26049cat >>conftest.$ac_ext <<_ACEOF
26050/* end confdefs.h. */
eb4efbdc 26051/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26052 which can conflict with char $ac_func (); below.
26053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26054 <limits.h> exists even on freestanding compilers. */
26055#ifdef __STDC__
26056# include <limits.h>
26057#else
26058# include <assert.h>
26059#endif
eb4efbdc 26060/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26061#ifdef __cplusplus
26062extern "C"
26063{
26064#endif
4f14bcd8 26065/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26066 builtin and then its argument prototype would still apply. */
26067char $ac_func ();
10f2d63a
VZ
26068/* The GNU C library defines this for functions which it implements
26069 to always fail with ENOSYS. Some functions are actually named
26070 something starting with __ and the normal name is an alias. */
247f5006 26071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26072choke me
26073#else
e6cc62c6
VS
26074char (*f) () = $ac_func;
26075#endif
26076#ifdef __cplusplus
26077}
10f2d63a
VZ
26078#endif
26079
e6cc62c6
VS
26080int
26081main ()
26082{
26083return f != $ac_func;
26084 ;
26085 return 0;
26086}
26087_ACEOF
26088rm -f conftest.$ac_objext conftest$ac_exeext
26089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26090 (eval $ac_link) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); } &&
26094 { ac_try='test -s conftest$ac_exeext'
26095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; }; then
26100 eval "$as_ac_var=yes"
26101else
26102 echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105eval "$as_ac_var=no"
26106fi
26107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26108fi
26109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26111if test `eval echo '${'$as_ac_var'}'` = yes; then
26112 cat >>confdefs.h <<_ACEOF
26113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26114_ACEOF
270a909e 26115
4f14bcd8 26116fi
247f5006 26117done
1e487827 26118
af15babd 26119else
e6cc62c6
VS
26120 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26121echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26122fi
52127426 26123
8284b0c5 26124
e6cc62c6
VS
26125
26126ac_ext=cc
247f5006 26127ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26131
af15babd 26132
247f5006
VZ
26133
26134for ac_func in vsnprintf
26135do
e6cc62c6
VS
26136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26137echo "$as_me:$LINENO: checking for $ac_func" >&5
26138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26139if eval "test \"\${$as_ac_var+set}\" = set"; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26141else
26142 cat >conftest.$ac_ext <<_ACEOF
26143#line $LINENO "configure"
26144/* confdefs.h. */
26145_ACEOF
26146cat confdefs.h >>conftest.$ac_ext
26147cat >>conftest.$ac_ext <<_ACEOF
26148/* end confdefs.h. */
247f5006 26149/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26150 which can conflict with char $ac_func (); below.
26151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26152 <limits.h> exists even on freestanding compilers. */
26153#ifdef __STDC__
26154# include <limits.h>
26155#else
26156# include <assert.h>
26157#endif
247f5006
VZ
26158/* Override any gcc2 internal prototype to avoid an error. */
26159#ifdef __cplusplus
26160extern "C"
e6cc62c6 26161{
247f5006
VZ
26162#endif
26163/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26164 builtin and then its argument prototype would still apply. */
26165char $ac_func ();
247f5006
VZ
26166/* The GNU C library defines this for functions which it implements
26167 to always fail with ENOSYS. Some functions are actually named
26168 something starting with __ and the normal name is an alias. */
26169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26170choke me
26171#else
e6cc62c6
VS
26172char (*f) () = $ac_func;
26173#endif
26174#ifdef __cplusplus
26175}
247f5006 26176#endif
af15babd 26177
e6cc62c6
VS
26178int
26179main ()
26180{
26181return f != $ac_func;
26182 ;
26183 return 0;
26184}
26185_ACEOF
26186rm -f conftest.$ac_objext conftest$ac_exeext
26187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188 (eval $ac_link) 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } &&
26192 { ac_try='test -s conftest$ac_exeext'
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; }; then
26198 eval "$as_ac_var=yes"
26199else
26200 echo "$as_me: failed program was:" >&5
26201sed 's/^/| /' conftest.$ac_ext >&5
26202
26203eval "$as_ac_var=no"
26204fi
26205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26206fi
26207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26209if test `eval echo '${'$as_ac_var'}'` = yes; then
26210 cat >>confdefs.h <<_ACEOF
26211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26212_ACEOF
52127426 26213
5c6fa7d2 26214fi
247f5006 26215done
8284b0c5 26216
4f14bcd8 26217
8d90d2f2 26218if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26219 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26220echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26221if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26222 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26223else
e6cc62c6
VS
26224
26225 cat >conftest.$ac_ext <<_ACEOF
26226#line $LINENO "configure"
26227/* confdefs.h. */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h. */
8d90d2f2
VZ
26232
26233 #include <stdio.h>
26234 #include <stdarg.h>
e6cc62c6
VS
26235
26236int
26237main ()
26238{
8d90d2f2
VZ
26239
26240 char *buf;
26241 va_list ap;
26242 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26243
26244 ;
26245 return 0;
26246}
26247_ACEOF
26248rm -f conftest.$ac_objext
26249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26250 (eval $ac_compile) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } &&
26254 { ac_try='test -s conftest.$ac_objext'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
8d90d2f2
VZ
26260 wx_cv_func_vsnprintf_decl=yes
26261else
e6cc62c6
VS
26262 echo "$as_me: failed program was:" >&5
26263sed 's/^/| /' conftest.$ac_ext >&5
26264
26265wx_cv_func_vsnprintf_decl=no
26266
8d90d2f2 26267fi
e6cc62c6
VS
26268rm -f conftest.$ac_objext conftest.$ac_ext
26269
8d90d2f2 26270
e6cc62c6
VS
26271fi
26272echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26273echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26274
26275 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26276 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26277#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26278_ACEOF
8d90d2f2
VZ
26279
26280 fi
26281fi
26282
247f5006 26283if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26284
26285
26286
26287for ac_func in fputwc wprintf vswprintf
d74f4b5a 26288do
e6cc62c6
VS
26289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26290echo "$as_me:$LINENO: checking for $ac_func" >&5
26291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26292if eval "test \"\${$as_ac_var+set}\" = set"; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294else
26295 cat >conftest.$ac_ext <<_ACEOF
26296#line $LINENO "configure"
26297/* confdefs.h. */
26298_ACEOF
26299cat confdefs.h >>conftest.$ac_ext
26300cat >>conftest.$ac_ext <<_ACEOF
26301/* end confdefs.h. */
d74f4b5a 26302/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26303 which can conflict with char $ac_func (); below.
26304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26305 <limits.h> exists even on freestanding compilers. */
26306#ifdef __STDC__
26307# include <limits.h>
26308#else
26309# include <assert.h>
26310#endif
d74f4b5a 26311/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26312#ifdef __cplusplus
26313extern "C"
e6cc62c6 26314{
247f5006 26315#endif
d74f4b5a 26316/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26317 builtin and then its argument prototype would still apply. */
26318char $ac_func ();
d74f4b5a
VZ
26319/* The GNU C library defines this for functions which it implements
26320 to always fail with ENOSYS. Some functions are actually named
26321 something starting with __ and the normal name is an alias. */
26322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26323choke me
26324#else
e6cc62c6
VS
26325char (*f) () = $ac_func;
26326#endif
26327#ifdef __cplusplus
26328}
d74f4b5a
VZ
26329#endif
26330
e6cc62c6
VS
26331int
26332main ()
26333{
26334return f != $ac_func;
26335 ;
26336 return 0;
26337}
26338_ACEOF
26339rm -f conftest.$ac_objext conftest$ac_exeext
26340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26341 (eval $ac_link) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -s conftest$ac_exeext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 eval "$as_ac_var=yes"
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356eval "$as_ac_var=no"
26357fi
26358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26359fi
26360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26362if test `eval echo '${'$as_ac_var'}'` = yes; then
26363 cat >>confdefs.h <<_ACEOF
26364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26365_ACEOF
d74f4b5a 26366
d74f4b5a
VZ
26367fi
26368done
26369
8d90d2f2 26370
e6cc62c6
VS
26371 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26372echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26374#line $LINENO "configure"
26375/* confdefs.h. */
26376_ACEOF
26377cat confdefs.h >>conftest.$ac_ext
26378cat >>conftest.$ac_ext <<_ACEOF
26379/* end confdefs.h. */
79668cae 26380#include <wchar.h>
e6cc62c6
VS
26381int
26382main ()
26383{
79668cae 26384&_vsnwprintf;
e6cc62c6
VS
26385 ;
26386 return 0;
26387}
26388_ACEOF
26389rm -f conftest.$ac_objext
26390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391 (eval $ac_compile) 2>&5
26392 ac_status=$?
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -s conftest.$ac_objext'
26396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); }; }; then
26401 echo "$as_me:$LINENO: result: yes" >&5
26402echo "${ECHO_T}yes" >&6
26403 cat >>confdefs.h <<\_ACEOF
79668cae 26404#define HAVE__VSNWPRINTF 1
e6cc62c6 26405_ACEOF
79668cae
MB
26406
26407else
e6cc62c6
VS
26408 echo "$as_me: failed program was:" >&5
26409sed 's/^/| /' conftest.$ac_ext >&5
26410
26411echo "$as_me:$LINENO: result: no" >&5
26412echo "${ECHO_T}no" >&6
79668cae 26413fi
e6cc62c6 26414rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26415fi
26416
247f5006
VZ
26417ac_ext=c
26418ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26421ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26422
26423
26424
26425
4f14bcd8 26426if test "$TOOLKIT" != "MSW"; then
af15babd 26427
8284b0c5
MB
26428
26429
e6cc62c6
VS
26430
26431ac_ext=cc
4f14bcd8 26432ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26436
52127426 26437
e6cc62c6
VS
26438
26439
26440# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26441if test "${with_libiconv_prefix+set}" = set; then
26442 withval="$with_libiconv_prefix"
e6cc62c6 26443
b040e242
VS
26444 for dir in `echo "$withval" | tr : ' '`; do
26445 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26446 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26447 done
b040e242 26448
e6cc62c6 26449fi;
b040e242 26450
e6cc62c6
VS
26451 echo "$as_me:$LINENO: checking for iconv" >&5
26452echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26453if test "${am_cv_func_iconv+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26455else
e6cc62c6 26456
b040e242
VS
26457 am_cv_func_iconv="no, consider installing GNU libiconv"
26458 am_cv_lib_iconv=no
e6cc62c6
VS
26459 cat >conftest.$ac_ext <<_ACEOF
26460#line $LINENO "configure"
26461/* confdefs.h. */
26462_ACEOF
26463cat confdefs.h >>conftest.$ac_ext
26464cat >>conftest.$ac_ext <<_ACEOF
26465/* end confdefs.h. */
b040e242 26466#include <stdlib.h>
4f14bcd8 26467#include <iconv.h>
e6cc62c6
VS
26468int
26469main ()
26470{
b040e242
VS
26471iconv_t cd = iconv_open("","");
26472 iconv(cd,NULL,NULL,NULL,NULL);
26473 iconv_close(cd);
e6cc62c6
VS
26474 ;
26475 return 0;
26476}
26477_ACEOF
26478rm -f conftest.$ac_objext conftest$ac_exeext
26479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26480 (eval $ac_link) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
26484 { ac_try='test -s conftest$ac_exeext'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
b040e242 26490 am_cv_func_iconv=yes
af15babd 26491else
e6cc62c6
VS
26492 echo "$as_me: failed program was:" >&5
26493sed 's/^/| /' conftest.$ac_ext >&5
26494
b040e242 26495fi
e6cc62c6 26496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26497 if test "$am_cv_func_iconv" != yes; then
26498 am_save_LIBS="$LIBS"
26499 LIBS="$LIBS -liconv"
e6cc62c6
VS
26500 cat >conftest.$ac_ext <<_ACEOF
26501#line $LINENO "configure"
26502/* confdefs.h. */
26503_ACEOF
26504cat confdefs.h >>conftest.$ac_ext
26505cat >>conftest.$ac_ext <<_ACEOF
26506/* end confdefs.h. */
b040e242
VS
26507#include <stdlib.h>
26508#include <iconv.h>
e6cc62c6
VS
26509int
26510main ()
26511{
b040e242
VS
26512iconv_t cd = iconv_open("","");
26513 iconv(cd,NULL,NULL,NULL,NULL);
26514 iconv_close(cd);
e6cc62c6
VS
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext conftest$ac_exeext
26520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26521 (eval $ac_link) 2>&5
26522 ac_status=$?
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
26525 { ac_try='test -s conftest$ac_exeext'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; }; then
b040e242
VS
26531 am_cv_lib_iconv=yes
26532 am_cv_func_iconv=yes
26533else
e6cc62c6
VS
26534 echo "$as_me: failed program was:" >&5
26535sed 's/^/| /' conftest.$ac_ext >&5
26536
af15babd 26537fi
e6cc62c6 26538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26539 LIBS="$am_save_LIBS"
26540 fi
247f5006 26541
e6cc62c6
VS
26542fi
26543echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26544echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26545 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26546
26547cat >>confdefs.h <<\_ACEOF
b040e242 26548#define HAVE_ICONV 1
e6cc62c6 26549_ACEOF
b040e242 26550
e6cc62c6
VS
26551 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26552echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26553if test "${wx_cv_func_iconv_const+set}" = set; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26555else
e6cc62c6
VS
26556 cat >conftest.$ac_ext <<_ACEOF
26557#line $LINENO "configure"
26558/* confdefs.h. */
26559_ACEOF
26560cat confdefs.h >>conftest.$ac_ext
26561cat >>conftest.$ac_ext <<_ACEOF
26562/* end confdefs.h. */
b040e242
VS
26563
26564#include <stdlib.h>
26565#include <iconv.h>
26566extern
26567#ifdef __cplusplus
26568"C"
26569#endif
26570#if defined(__STDC__) || defined(__cplusplus)
26571size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26572#else
26573size_t iconv();
26574#endif
af15babd 26575
e6cc62c6
VS
26576int
26577main ()
26578{
26579
26580 ;
26581 return 0;
26582}
26583_ACEOF
26584rm -f conftest.$ac_objext
26585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -s conftest.$ac_objext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
b7043674 26596 wx_cv_func_iconv_const="no"
b040e242 26597else
e6cc62c6
VS
26598 echo "$as_me: failed program was:" >&5
26599sed 's/^/| /' conftest.$ac_ext >&5
26600
26601wx_cv_func_iconv_const="yes"
26602
247f5006 26603fi
e6cc62c6 26604rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26605
e6cc62c6
VS
26606fi
26607echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26608echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26609
26610 iconv_const=
1c405bb5 26611 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26612 iconv_const="const"
26613 fi
26614
e6cc62c6
VS
26615
26616cat >>confdefs.h <<_ACEOF
f09359cf 26617#define ICONV_CONST $iconv_const
e6cc62c6 26618_ACEOF
b040e242
VS
26619
26620 fi
26621 LIBICONV=
26622 if test "$am_cv_lib_iconv" = yes; then
26623 LIBICONV="-liconv"
26624 fi
e6cc62c6 26625
b040e242
VS
26626
26627LIBS="$LIBICONV $LIBS"
4f14bcd8 26628ac_ext=c
4f14bcd8 26629ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26632ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26633
5c6fa7d2 26634
8284b0c5 26635if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26636
26637for ac_func in sigaction
af15babd 26638do
e6cc62c6
VS
26639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26640echo "$as_me:$LINENO: checking for $ac_func" >&5
26641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26642if eval "test \"\${$as_ac_var+set}\" = set"; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644else
26645 cat >conftest.$ac_ext <<_ACEOF
26646#line $LINENO "configure"
26647/* confdefs.h. */
26648_ACEOF
26649cat confdefs.h >>conftest.$ac_ext
26650cat >>conftest.$ac_ext <<_ACEOF
26651/* end confdefs.h. */
af15babd 26652/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26653 which can conflict with char $ac_func (); below.
26654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26655 <limits.h> exists even on freestanding compilers. */
26656#ifdef __STDC__
26657# include <limits.h>
26658#else
26659# include <assert.h>
26660#endif
af15babd 26661/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26662#ifdef __cplusplus
26663extern "C"
26664{
26665#endif
af15babd 26666/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26667 builtin and then its argument prototype would still apply. */
26668char $ac_func ();
af15babd
VZ
26669/* The GNU C library defines this for functions which it implements
26670 to always fail with ENOSYS. Some functions are actually named
26671 something starting with __ and the normal name is an alias. */
26672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26673choke me
26674#else
e6cc62c6
VS
26675char (*f) () = $ac_func;
26676#endif
26677#ifdef __cplusplus
26678}
af15babd
VZ
26679#endif
26680
e6cc62c6
VS
26681int
26682main ()
26683{
26684return f != $ac_func;
26685 ;
26686 return 0;
26687}
26688_ACEOF
26689rm -f conftest.$ac_objext conftest$ac_exeext
26690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26691 (eval $ac_link) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } &&
26695 { ac_try='test -s conftest$ac_exeext'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 eval "$as_ac_var=yes"
26702else
26703 echo "$as_me: failed program was:" >&5
26704sed 's/^/| /' conftest.$ac_ext >&5
26705
26706eval "$as_ac_var=no"
26707fi
26708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26709fi
26710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26712if test `eval echo '${'$as_ac_var'}'` = yes; then
26713 cat >>confdefs.h <<_ACEOF
26714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26715_ACEOF
7b4a847f 26716
4f14bcd8
GD
26717fi
26718done
26719
8284b0c5 26720
4f14bcd8 26721 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26722 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26723echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26724 wxUSE_ON_FATAL_EXCEPTION=no
26725 fi
26726
26727 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26728
26729
26730 ac_ext=cc
5c6fa7d2 26731ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26735
5c6fa7d2 26736
e6cc62c6
VS
26737 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26738echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26739if test "${wx_cv_type_sa_handler+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26741else
e6cc62c6
VS
26742
26743 cat >conftest.$ac_ext <<_ACEOF
26744#line $LINENO "configure"
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
4f14bcd8 26750#include <signal.h>
e6cc62c6
VS
26751int
26752main ()
26753{
4f14bcd8
GD
26754
26755 extern void testSigHandler(int);
26756
26757 struct sigaction sa;
26758 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26759
26760 ;
26761 return 0;
26762}
26763_ACEOF
26764rm -f conftest.$ac_objext
26765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26766 (eval $ac_compile) 2>&5
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
26770 { ac_try='test -s conftest.$ac_objext'
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
26776
4f14bcd8 26777 wx_cv_type_sa_handler=int
e6cc62c6 26778
af15babd 26779else
e6cc62c6
VS
26780 echo "$as_me: failed program was:" >&5
26781sed 's/^/| /' conftest.$ac_ext >&5
26782
26783
4f14bcd8 26784 wx_cv_type_sa_handler=void
e6cc62c6 26785
247f5006 26786fi
e6cc62c6 26787rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26788
e6cc62c6
VS
26789fi
26790echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26791echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26792
26793 ac_ext=c
4f14bcd8 26794ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26798
8284b0c5 26799
e6cc62c6 26800 cat >>confdefs.h <<_ACEOF
4f14bcd8 26801#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26802_ACEOF
af15babd 26803
4f14bcd8
GD
26804 fi
26805fi
af15babd 26806
e6cc62c6
VS
26807
26808
a1d22ad7 26809for ac_func in mkstemp mktemp
af15babd 26810do
e6cc62c6
VS
26811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26812echo "$as_me:$LINENO: checking for $ac_func" >&5
26813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26814if eval "test \"\${$as_ac_var+set}\" = set"; then
26815 echo $ECHO_N "(cached) $ECHO_C" >&6
26816else
26817 cat >conftest.$ac_ext <<_ACEOF
26818#line $LINENO "configure"
26819/* confdefs.h. */
26820_ACEOF
26821cat confdefs.h >>conftest.$ac_ext
26822cat >>conftest.$ac_ext <<_ACEOF
26823/* end confdefs.h. */
af15babd 26824/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26825 which can conflict with char $ac_func (); below.
26826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26827 <limits.h> exists even on freestanding compilers. */
26828#ifdef __STDC__
26829# include <limits.h>
26830#else
26831# include <assert.h>
26832#endif
af15babd 26833/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26834#ifdef __cplusplus
26835extern "C"
26836{
26837#endif
af15babd 26838/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26839 builtin and then its argument prototype would still apply. */
26840char $ac_func ();
af15babd
VZ
26841/* The GNU C library defines this for functions which it implements
26842 to always fail with ENOSYS. Some functions are actually named
26843 something starting with __ and the normal name is an alias. */
26844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26845choke me
26846#else
e6cc62c6
VS
26847char (*f) () = $ac_func;
26848#endif
26849#ifdef __cplusplus
26850}
af15babd
VZ
26851#endif
26852
e6cc62c6
VS
26853int
26854main ()
26855{
26856return f != $ac_func;
26857 ;
26858 return 0;
26859}
26860_ACEOF
26861rm -f conftest.$ac_objext conftest$ac_exeext
26862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26863 (eval $ac_link) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); } &&
26867 { ac_try='test -s conftest$ac_exeext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26873 eval "$as_ac_var=yes"
26874else
26875 echo "$as_me: failed program was:" >&5
26876sed 's/^/| /' conftest.$ac_ext >&5
26877
26878eval "$as_ac_var=no"
26879fi
26880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26881fi
26882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26884if test `eval echo '${'$as_ac_var'}'` = yes; then
26885 cat >>confdefs.h <<_ACEOF
26886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26887_ACEOF
ade35f11 26888 break
ade35f11
VZ
26889fi
26890done
26891
8284b0c5 26892
e6cc62c6
VS
26893echo "$as_me:$LINENO: checking for statfs" >&5
26894echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26895if test "${wx_cv_func_statfs+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26897else
e6cc62c6
VS
26898 cat >conftest.$ac_ext <<_ACEOF
26899#line $LINENO "configure"
26900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
4f14bcd8
GD
26905
26906 #if defined(__BSD__)
26907 #include <sys/param.h>
26908 #include <sys/mount.h>
26909 #else
26910 #include <sys/vfs.h>
26911 #endif
e6cc62c6
VS
26912
26913int
26914main ()
26915{
4f14bcd8
GD
26916
26917 long l;
26918 struct statfs fs;
26919 statfs("/", &fs);
26920 l = fs.f_bsize;
26921 l += fs.f_blocks;
26922 l += fs.f_bavail;
e6cc62c6
VS
26923
26924 ;
26925 return 0;
26926}
26927_ACEOF
26928rm -f conftest.$ac_objext
26929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26930 (eval $ac_compile) 2>&5
26931 ac_status=$?
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } &&
26934 { ac_try='test -s conftest.$ac_objext'
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; }; then
26940
4f14bcd8 26941 wx_cv_func_statfs=yes
e6cc62c6 26942
4f14bcd8 26943else
e6cc62c6
VS
26944 echo "$as_me: failed program was:" >&5
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
26947
4f14bcd8 26948 wx_cv_func_statfs=no
e6cc62c6 26949
8284b0c5 26950
247f5006 26951fi
e6cc62c6 26952rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26953
e6cc62c6
VS
26954fi
26955echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26956echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
26957
26958if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 26959 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 26960 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26961#define HAVE_STATFS 1
e6cc62c6 26962_ACEOF
4f14bcd8
GD
26963
26964else
e6cc62c6
VS
26965 echo "$as_me:$LINENO: checking for statvfs" >&5
26966echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26967if test "${wx_cv_func_statvfs+set}" = set; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26969else
e6cc62c6
VS
26970 cat >conftest.$ac_ext <<_ACEOF
26971#line $LINENO "configure"
26972/* confdefs.h. */
26973_ACEOF
26974cat confdefs.h >>conftest.$ac_ext
26975cat >>conftest.$ac_ext <<_ACEOF
26976/* end confdefs.h. */
af15babd 26977
54ab82b3
VZ
26978 #include <stddef.h>
26979 #include <sys/statvfs.h>
e6cc62c6
VS
26980
26981int
26982main ()
26983{
af15babd 26984
54ab82b3 26985 statvfs("/", NULL);
e6cc62c6
VS
26986
26987 ;
26988 return 0;
26989}
26990_ACEOF
26991rm -f conftest.$ac_objext
26992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26993 (eval $ac_compile) 2>&5
26994 ac_status=$?
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } &&
26997 { ac_try='test -s conftest.$ac_objext'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; }; then
54ab82b3 27003 wx_cv_func_statvfs=yes
af15babd 27004else
e6cc62c6
VS
27005 echo "$as_me: failed program was:" >&5
27006sed 's/^/| /' conftest.$ac_ext >&5
27007
27008wx_cv_func_statvfs=no
27009
247f5006 27010fi
e6cc62c6 27011rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27012
e6cc62c6
VS
27013fi
27014echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27015echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27016
4f14bcd8 27017 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27018
27019
27020 ac_ext=cc
54ab82b3 27021ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27025
27026
e6cc62c6
VS
27027 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27028echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27029if test "${wx_cv_type_statvfs_t+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27031else
e6cc62c6
VS
27032 cat >conftest.$ac_ext <<_ACEOF
27033#line $LINENO "configure"
27034/* confdefs.h. */
27035_ACEOF
27036cat confdefs.h >>conftest.$ac_ext
27037cat >>conftest.$ac_ext <<_ACEOF
27038/* end confdefs.h. */
54ab82b3
VZ
27039
27040 #include <sys/statvfs.h>
e6cc62c6
VS
27041
27042int
27043main ()
27044{
54ab82b3
VZ
27045
27046 long l;
27047 statvfs_t fs;
27048 statvfs("/", &fs);
27049 l = fs.f_bsize;
27050 l += fs.f_blocks;
27051 l += fs.f_bavail;
e6cc62c6
VS
27052
27053 ;
27054 return 0;
27055}
27056_ACEOF
27057rm -f conftest.$ac_objext
27058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27059 (eval $ac_compile) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } &&
27063 { ac_try='test -s conftest.$ac_objext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
54ab82b3
VZ
27069 wx_cv_type_statvfs_t=statvfs_t
27070else
e6cc62c6
VS
27071 echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074
27075 cat >conftest.$ac_ext <<_ACEOF
27076#line $LINENO "configure"
27077/* confdefs.h. */
27078_ACEOF
27079cat confdefs.h >>conftest.$ac_ext
27080cat >>conftest.$ac_ext <<_ACEOF
27081/* end confdefs.h. */
54ab82b3
VZ
27082
27083 #include <sys/statvfs.h>
e6cc62c6
VS
27084
27085int
27086main ()
27087{
54ab82b3
VZ
27088
27089 long l;
65d8ef1e 27090 struct statvfs fs;
54ab82b3
VZ
27091 statvfs("/", &fs);
27092 l = fs.f_bsize;
27093 l += fs.f_blocks;
27094 l += fs.f_bavail;
e6cc62c6
VS
27095
27096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext
27101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27102 (eval $ac_compile) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); } &&
27106 { ac_try='test -s conftest.$ac_objext'
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27109 ac_status=$?
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; }; then
54ab82b3
VZ
27112 wx_cv_type_statvfs_t="struct statvfs"
27113else
e6cc62c6
VS
27114 echo "$as_me: failed program was:" >&5
27115sed 's/^/| /' conftest.$ac_ext >&5
27116
27117wx_cv_type_statvfs_t="unknown"
27118
54ab82b3 27119fi
e6cc62c6
VS
27120rm -f conftest.$ac_objext conftest.$ac_ext
27121
27122
54ab82b3 27123fi
e6cc62c6 27124rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27125
e6cc62c6
VS
27126fi
27127echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27128echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27129
27130 ac_ext=c
54ab82b3 27131ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27134ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27135
27136
27137 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27138 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27139#define HAVE_STATVFS 1
e6cc62c6 27140_ACEOF
af15babd 27141
54ab82b3 27142 fi
4f14bcd8 27143 else
54ab82b3 27144 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27145 fi
27146fi
af15babd 27147
54ab82b3 27148if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27149 cat >>confdefs.h <<_ACEOF
54ab82b3 27150#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27151_ACEOF
54ab82b3
VZ
27152
27153else
e6cc62c6
VS
27154 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27155echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27156fi
27157
4f14bcd8 27158if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27159
27160
27161for ac_func in fcntl flock
af15babd 27162do
e6cc62c6
VS
27163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27164echo "$as_me:$LINENO: checking for $ac_func" >&5
27165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27166if eval "test \"\${$as_ac_var+set}\" = set"; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27168else
27169 cat >conftest.$ac_ext <<_ACEOF
27170#line $LINENO "configure"
27171/* confdefs.h. */
27172_ACEOF
27173cat confdefs.h >>conftest.$ac_ext
27174cat >>conftest.$ac_ext <<_ACEOF
27175/* end confdefs.h. */
af15babd 27176/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27177 which can conflict with char $ac_func (); below.
27178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27179 <limits.h> exists even on freestanding compilers. */
27180#ifdef __STDC__
27181# include <limits.h>
27182#else
27183# include <assert.h>
27184#endif
af15babd 27185/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27186#ifdef __cplusplus
27187extern "C"
27188{
27189#endif
af15babd 27190/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27191 builtin and then its argument prototype would still apply. */
27192char $ac_func ();
af15babd
VZ
27193/* The GNU C library defines this for functions which it implements
27194 to always fail with ENOSYS. Some functions are actually named
27195 something starting with __ and the normal name is an alias. */
27196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27197choke me
27198#else
e6cc62c6
VS
27199char (*f) () = $ac_func;
27200#endif
27201#ifdef __cplusplus
27202}
af15babd
VZ
27203#endif
27204
e6cc62c6
VS
27205int
27206main ()
27207{
27208return f != $ac_func;
27209 ;
27210 return 0;
27211}
27212_ACEOF
27213rm -f conftest.$ac_objext conftest$ac_exeext
27214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27215 (eval $ac_link) 2>&5
27216 ac_status=$?
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
27219 { ac_try='test -s conftest$ac_exeext'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; }; then
27225 eval "$as_ac_var=yes"
27226else
27227 echo "$as_me: failed program was:" >&5
27228sed 's/^/| /' conftest.$ac_ext >&5
27229
27230eval "$as_ac_var=no"
27231fi
27232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27233fi
27234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27236if test `eval echo '${'$as_ac_var'}'` = yes; then
27237 cat >>confdefs.h <<_ACEOF
27238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27239_ACEOF
4f14bcd8 27240 break
af15babd
VZ
27241fi
27242done
27243
8284b0c5 27244
4f14bcd8 27245 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27246 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27247echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27248 wxUSE_SNGLINST_CHECKER=no
27249 fi
27250fi
af15babd 27251
e6cc62c6 27252
4f14bcd8 27253for ac_func in timegm
af15babd 27254do
e6cc62c6
VS
27255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27256echo "$as_me:$LINENO: checking for $ac_func" >&5
27257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27258if eval "test \"\${$as_ac_var+set}\" = set"; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27260else
27261 cat >conftest.$ac_ext <<_ACEOF
27262#line $LINENO "configure"
27263/* confdefs.h. */
27264_ACEOF
27265cat confdefs.h >>conftest.$ac_ext
27266cat >>conftest.$ac_ext <<_ACEOF
27267/* end confdefs.h. */
af15babd 27268/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27269 which can conflict with char $ac_func (); below.
27270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27271 <limits.h> exists even on freestanding compilers. */
27272#ifdef __STDC__
27273# include <limits.h>
27274#else
27275# include <assert.h>
27276#endif
af15babd 27277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27278#ifdef __cplusplus
27279extern "C"
27280{
27281#endif
af15babd 27282/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27283 builtin and then its argument prototype would still apply. */
27284char $ac_func ();
af15babd
VZ
27285/* The GNU C library defines this for functions which it implements
27286 to always fail with ENOSYS. Some functions are actually named
27287 something starting with __ and the normal name is an alias. */
247f5006
VZ
27288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27289choke me
27290#else
e6cc62c6
VS
27291char (*f) () = $ac_func;
27292#endif
27293#ifdef __cplusplus
27294}
247f5006
VZ
27295#endif
27296
e6cc62c6
VS
27297int
27298main ()
27299{
27300return f != $ac_func;
27301 ;
27302 return 0;
27303}
27304_ACEOF
27305rm -f conftest.$ac_objext conftest$ac_exeext
27306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27307 (eval $ac_link) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
27311 { ac_try='test -s conftest$ac_exeext'
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 eval "$as_ac_var=yes"
27318else
27319 echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322eval "$as_ac_var=no"
27323fi
27324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27325fi
27326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27328if test `eval echo '${'$as_ac_var'}'` = yes; then
27329 cat >>confdefs.h <<_ACEOF
27330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27331_ACEOF
703e0a69 27332
af15babd
VZ
27333fi
27334done
27335
8284b0c5 27336
e6cc62c6
VS
27337
27338
4f14bcd8 27339for ac_func in putenv setenv
10f2d63a 27340do
e6cc62c6
VS
27341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27342echo "$as_me:$LINENO: checking for $ac_func" >&5
27343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27344if eval "test \"\${$as_ac_var+set}\" = set"; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 cat >conftest.$ac_ext <<_ACEOF
27348#line $LINENO "configure"
27349/* confdefs.h. */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h. */
af15babd 27354/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27355 which can conflict with char $ac_func (); below.
27356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27357 <limits.h> exists even on freestanding compilers. */
27358#ifdef __STDC__
27359# include <limits.h>
27360#else
27361# include <assert.h>
27362#endif
af15babd 27363/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27364#ifdef __cplusplus
27365extern "C"
27366{
27367#endif
af15babd 27368/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27369 builtin and then its argument prototype would still apply. */
27370char $ac_func ();
af15babd
VZ
27371/* The GNU C library defines this for functions which it implements
27372 to always fail with ENOSYS. Some functions are actually named
27373 something starting with __ and the normal name is an alias. */
27374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27375choke me
27376#else
e6cc62c6
VS
27377char (*f) () = $ac_func;
27378#endif
27379#ifdef __cplusplus
27380}
af15babd
VZ
27381#endif
27382
e6cc62c6
VS
27383int
27384main ()
27385{
27386return f != $ac_func;
27387 ;
27388 return 0;
27389}
27390_ACEOF
27391rm -f conftest.$ac_objext conftest$ac_exeext
27392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27393 (eval $ac_link) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -s conftest$ac_exeext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 eval "$as_ac_var=yes"
27404else
27405 echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408eval "$as_ac_var=no"
27409fi
27410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27411fi
27412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27414if test `eval echo '${'$as_ac_var'}'` = yes; then
27415 cat >>confdefs.h <<_ACEOF
27416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27417_ACEOF
4f14bcd8 27418 break
af15babd 27419fi
af15babd
VZ
27420done
27421
8284b0c5 27422
4f14bcd8
GD
27423HAVE_SOME_SLEEP_FUNC=0
27424if test "$USE_BEOS" = 1; then
e6cc62c6 27425 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27426#define HAVE_SLEEP 1
e6cc62c6 27427_ACEOF
af15babd 27428
4f14bcd8 27429 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27430fi
27431
4f14bcd8 27432if test "$USE_DARWIN" = 1; then
e6cc62c6 27433 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27434#define HAVE_USLEEP 1
e6cc62c6 27435_ACEOF
10f2d63a 27436
4f14bcd8 27437 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27438fi
27439
4f14bcd8
GD
27440if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27441 POSIX4_LINK=
e6cc62c6
VS
27442
27443for ac_func in nanosleep
4f14bcd8 27444do
e6cc62c6
VS
27445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27446echo "$as_me:$LINENO: checking for $ac_func" >&5
27447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27448if eval "test \"\${$as_ac_var+set}\" = set"; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450else
27451 cat >conftest.$ac_ext <<_ACEOF
27452#line $LINENO "configure"
27453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
4f14bcd8 27458/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27459 which can conflict with char $ac_func (); below.
27460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27461 <limits.h> exists even on freestanding compilers. */
27462#ifdef __STDC__
27463# include <limits.h>
27464#else
27465# include <assert.h>
27466#endif
10f2d63a 27467/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27468#ifdef __cplusplus
27469extern "C"
27470{
27471#endif
10f2d63a 27472/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27473 builtin and then its argument prototype would still apply. */
27474char $ac_func ();
4f14bcd8
GD
27475/* The GNU C library defines this for functions which it implements
27476 to always fail with ENOSYS. Some functions are actually named
27477 something starting with __ and the normal name is an alias. */
27478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27479choke me
27480#else
e6cc62c6
VS
27481char (*f) () = $ac_func;
27482#endif
27483#ifdef __cplusplus
27484}
4f14bcd8
GD
27485#endif
27486
e6cc62c6
VS
27487int
27488main ()
27489{
27490return f != $ac_func;
27491 ;
27492 return 0;
27493}
27494_ACEOF
27495rm -f conftest.$ac_objext conftest$ac_exeext
27496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497 (eval $ac_link) 2>&5
27498 ac_status=$?
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } &&
27501 { ac_try='test -s conftest$ac_exeext'
27502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 eval "$as_ac_var=yes"
27508else
27509 echo "$as_me: failed program was:" >&5
27510sed 's/^/| /' conftest.$ac_ext >&5
27511
27512eval "$as_ac_var=no"
27513fi
27514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27515fi
27516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27518if test `eval echo '${'$as_ac_var'}'` = yes; then
27519 cat >>confdefs.h <<_ACEOF
27520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27521_ACEOF
27522 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27523#define HAVE_NANOSLEEP 1
e6cc62c6 27524_ACEOF
4f14bcd8 27525
10f2d63a 27526else
e6cc62c6
VS
27527
27528 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27529echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27530if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27532else
e6cc62c6 27533 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27534LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27535cat >conftest.$ac_ext <<_ACEOF
27536#line $LINENO "configure"
27537/* confdefs.h. */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h. */
27542
10f2d63a 27543/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27544#ifdef __cplusplus
27545extern "C"
27546#endif
10f2d63a 27547/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27548 builtin and then its argument prototype would still apply. */
27549char nanosleep ();
27550int
27551main ()
27552{
27553nanosleep ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
27558rm -f conftest.$ac_objext conftest$ac_exeext
27559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27560 (eval $ac_link) 2>&5
27561 ac_status=$?
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
27564 { ac_try='test -s conftest$ac_exeext'
27565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; }; then
27570 ac_cv_lib_posix4_nanosleep=yes
27571else
27572 echo "$as_me: failed program was:" >&5
27573sed 's/^/| /' conftest.$ac_ext >&5
27574
27575ac_cv_lib_posix4_nanosleep=no
27576fi
27577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27578LIBS=$ac_check_lib_save_LIBS
27579fi
27580echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27581echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27582if test $ac_cv_lib_posix4_nanosleep = yes; then
27583
27584 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27585#define HAVE_NANOSLEEP 1
e6cc62c6 27586_ACEOF
4f14bcd8 27587
3d63bc3a 27588 POSIX4_LINK=" -lposix4"
e6cc62c6 27589
10f2d63a 27590else
10f2d63a 27591
e6cc62c6
VS
27592
27593for ac_func in usleep
4f14bcd8 27594do
e6cc62c6
VS
27595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27596echo "$as_me:$LINENO: checking for $ac_func" >&5
27597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27598if eval "test \"\${$as_ac_var+set}\" = set"; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27600else
27601 cat >conftest.$ac_ext <<_ACEOF
27602#line $LINENO "configure"
27603/* confdefs.h. */
27604_ACEOF
27605cat confdefs.h >>conftest.$ac_ext
27606cat >>conftest.$ac_ext <<_ACEOF
27607/* end confdefs.h. */
4f14bcd8 27608/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27609 which can conflict with char $ac_func (); below.
27610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27611 <limits.h> exists even on freestanding compilers. */
27612#ifdef __STDC__
27613# include <limits.h>
27614#else
27615# include <assert.h>
27616#endif
4f14bcd8 27617/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27618#ifdef __cplusplus
27619extern "C"
27620{
27621#endif
4f14bcd8 27622/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27623 builtin and then its argument prototype would still apply. */
27624char $ac_func ();
4f14bcd8
GD
27625/* The GNU C library defines this for functions which it implements
27626 to always fail with ENOSYS. Some functions are actually named
27627 something starting with __ and the normal name is an alias. */
27628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27629choke me
27630#else
e6cc62c6
VS
27631char (*f) () = $ac_func;
27632#endif
27633#ifdef __cplusplus
27634}
4f14bcd8
GD
27635#endif
27636
e6cc62c6
VS
27637int
27638main ()
27639{
27640return f != $ac_func;
27641 ;
27642 return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext conftest$ac_exeext
27646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27647 (eval $ac_link) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -s conftest$ac_exeext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 eval "$as_ac_var=yes"
27658else
27659 echo "$as_me: failed program was:" >&5
27660sed 's/^/| /' conftest.$ac_ext >&5
27661
27662eval "$as_ac_var=no"
27663fi
27664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27665fi
27666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27668if test `eval echo '${'$as_ac_var'}'` = yes; then
27669 cat >>confdefs.h <<_ACEOF
27670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27671_ACEOF
27672 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27673#define HAVE_USLEEP 1
e6cc62c6 27674_ACEOF
4f14bcd8 27675
698dcdb6 27676else
e6cc62c6
VS
27677 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27678echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27679
10f2d63a 27680fi
4f14bcd8 27681done
10f2d63a 27682
e6cc62c6
VS
27683
27684
6232543b 27685fi
10f2d63a 27686
e6cc62c6
VS
27687
27688
1e487827 27689fi
4f14bcd8 27690done
703e0a69 27691
10f2d63a
VZ
27692fi
27693
e6cc62c6
VS
27694
27695
4f14bcd8 27696for ac_func in uname gethostname
70846f0a 27697do
e6cc62c6
VS
27698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27699echo "$as_me:$LINENO: checking for $ac_func" >&5
27700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27701if eval "test \"\${$as_ac_var+set}\" = set"; then
27702 echo $ECHO_N "(cached) $ECHO_C" >&6
27703else
27704 cat >conftest.$ac_ext <<_ACEOF
27705#line $LINENO "configure"
27706/* confdefs.h. */
27707_ACEOF
27708cat confdefs.h >>conftest.$ac_ext
27709cat >>conftest.$ac_ext <<_ACEOF
27710/* end confdefs.h. */
70846f0a 27711/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27712 which can conflict with char $ac_func (); below.
27713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27714 <limits.h> exists even on freestanding compilers. */
27715#ifdef __STDC__
27716# include <limits.h>
27717#else
27718# include <assert.h>
27719#endif
70846f0a 27720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27721#ifdef __cplusplus
27722extern "C"
27723{
27724#endif
70846f0a 27725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27726 builtin and then its argument prototype would still apply. */
27727char $ac_func ();
70846f0a
VZ
27728/* The GNU C library defines this for functions which it implements
27729 to always fail with ENOSYS. Some functions are actually named
27730 something starting with __ and the normal name is an alias. */
27731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27732choke me
27733#else
e6cc62c6
VS
27734char (*f) () = $ac_func;
27735#endif
27736#ifdef __cplusplus
27737}
70846f0a
VZ
27738#endif
27739
e6cc62c6
VS
27740int
27741main ()
27742{
27743return f != $ac_func;
27744 ;
27745 return 0;
27746}
27747_ACEOF
27748rm -f conftest.$ac_objext conftest$ac_exeext
27749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750 (eval $ac_link) 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
27754 { ac_try='test -s conftest$ac_exeext'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }; then
27760 eval "$as_ac_var=yes"
27761else
27762 echo "$as_me: failed program was:" >&5
27763sed 's/^/| /' conftest.$ac_ext >&5
27764
27765eval "$as_ac_var=no"
27766fi
27767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27768fi
27769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27771if test `eval echo '${'$as_ac_var'}'` = yes; then
27772 cat >>confdefs.h <<_ACEOF
27773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27774_ACEOF
4f14bcd8 27775 break
70846f0a
VZ
27776fi
27777done
27778
8284b0c5
MB
27779
27780
e6cc62c6
VS
27781
27782ac_ext=cc
4f14bcd8 27783ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27787
8284b0c5 27788
4f14bcd8
GD
27789
27790for ac_func in strtok_r
10f2d63a 27791do
e6cc62c6
VS
27792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27793echo "$as_me:$LINENO: checking for $ac_func" >&5
27794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27795if eval "test \"\${$as_ac_var+set}\" = set"; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27797else
27798 cat >conftest.$ac_ext <<_ACEOF
27799#line $LINENO "configure"
27800/* confdefs.h. */
27801_ACEOF
27802cat confdefs.h >>conftest.$ac_ext
27803cat >>conftest.$ac_ext <<_ACEOF
27804/* end confdefs.h. */
4f14bcd8 27805/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27806 which can conflict with char $ac_func (); below.
27807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27808 <limits.h> exists even on freestanding compilers. */
27809#ifdef __STDC__
27810# include <limits.h>
27811#else
27812# include <assert.h>
27813#endif
4f14bcd8
GD
27814/* Override any gcc2 internal prototype to avoid an error. */
27815#ifdef __cplusplus
27816extern "C"
e6cc62c6 27817{
4f14bcd8
GD
27818#endif
27819/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27820 builtin and then its argument prototype would still apply. */
27821char $ac_func ();
4f14bcd8
GD
27822/* The GNU C library defines this for functions which it implements
27823 to always fail with ENOSYS. Some functions are actually named
27824 something starting with __ and the normal name is an alias. */
27825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27826choke me
27827#else
e6cc62c6
VS
27828char (*f) () = $ac_func;
27829#endif
27830#ifdef __cplusplus
27831}
4f14bcd8
GD
27832#endif
27833
e6cc62c6
VS
27834int
27835main ()
27836{
27837return f != $ac_func;
27838 ;
27839 return 0;
27840}
27841_ACEOF
27842rm -f conftest.$ac_objext conftest$ac_exeext
27843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844 (eval $ac_link) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } &&
27848 { ac_try='test -s conftest$ac_exeext'
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; }; then
27854 eval "$as_ac_var=yes"
27855else
27856 echo "$as_me: failed program was:" >&5
27857sed 's/^/| /' conftest.$ac_ext >&5
27858
27859eval "$as_ac_var=no"
27860fi
27861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27862fi
27863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27865if test `eval echo '${'$as_ac_var'}'` = yes; then
27866 cat >>confdefs.h <<_ACEOF
27867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27868_ACEOF
4f14bcd8 27869
10f2d63a
VZ
27870fi
27871done
27872
8284b0c5 27873
4f14bcd8 27874ac_ext=c
4f14bcd8 27875ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27879
5c6fa7d2 27880
8284b0c5 27881INET_LINK=
e6cc62c6 27882
4f14bcd8
GD
27883for ac_func in inet_addr
27884do
e6cc62c6
VS
27885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27886echo "$as_me:$LINENO: checking for $ac_func" >&5
27887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27888if eval "test \"\${$as_ac_var+set}\" = set"; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891 cat >conftest.$ac_ext <<_ACEOF
27892#line $LINENO "configure"
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
4f14bcd8 27898/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27899 which can conflict with char $ac_func (); below.
27900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27901 <limits.h> exists even on freestanding compilers. */
27902#ifdef __STDC__
27903# include <limits.h>
27904#else
27905# include <assert.h>
27906#endif
10f2d63a 27907/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27908#ifdef __cplusplus
27909extern "C"
27910{
27911#endif
10f2d63a 27912/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27913 builtin and then its argument prototype would still apply. */
27914char $ac_func ();
4f14bcd8
GD
27915/* The GNU C library defines this for functions which it implements
27916 to always fail with ENOSYS. Some functions are actually named
27917 something starting with __ and the normal name is an alias. */
27918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27919choke me
27920#else
e6cc62c6
VS
27921char (*f) () = $ac_func;
27922#endif
27923#ifdef __cplusplus
27924}
4f14bcd8
GD
27925#endif
27926
e6cc62c6
VS
27927int
27928main ()
27929{
27930return f != $ac_func;
27931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext conftest$ac_exeext
27936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937 (eval $ac_link) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -s conftest$ac_exeext'
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
27947 eval "$as_ac_var=yes"
27948else
27949 echo "$as_me: failed program was:" >&5
27950sed 's/^/| /' conftest.$ac_ext >&5
27951
27952eval "$as_ac_var=no"
27953fi
27954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27955fi
27956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27958if test `eval echo '${'$as_ac_var'}'` = yes; then
27959 cat >>confdefs.h <<_ACEOF
27960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27961_ACEOF
27962 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27963#define HAVE_INET_ADDR 1
e6cc62c6 27964_ACEOF
10f2d63a
VZ
27965
27966else
e6cc62c6
VS
27967
27968 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27969echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27970if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27972else
e6cc62c6 27973 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27974LIBS="-lnsl $LIBS"
e6cc62c6
VS
27975cat >conftest.$ac_ext <<_ACEOF
27976#line $LINENO "configure"
27977/* confdefs.h. */
27978_ACEOF
27979cat confdefs.h >>conftest.$ac_ext
27980cat >>conftest.$ac_ext <<_ACEOF
27981/* end confdefs.h. */
27982
10f2d63a 27983/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27984#ifdef __cplusplus
27985extern "C"
27986#endif
10f2d63a 27987/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27988 builtin and then its argument prototype would still apply. */
27989char inet_addr ();
27990int
27991main ()
27992{
27993inet_addr ();
27994 ;
27995 return 0;
27996}
27997_ACEOF
27998rm -f conftest.$ac_objext conftest$ac_exeext
27999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28000 (eval $ac_link) 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
28004 { ac_try='test -s conftest$ac_exeext'
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; }; then
28010 ac_cv_lib_nsl_inet_addr=yes
28011else
28012 echo "$as_me: failed program was:" >&5
28013sed 's/^/| /' conftest.$ac_ext >&5
28014
28015ac_cv_lib_nsl_inet_addr=no
28016fi
28017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28018LIBS=$ac_check_lib_save_LIBS
28019fi
28020echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28021echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28022if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28023 INET_LINK="nsl"
10f2d63a 28024else
e6cc62c6
VS
28025 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28026echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28027if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28029else
e6cc62c6 28030 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28031LIBS="-lresolv $LIBS"
e6cc62c6
VS
28032cat >conftest.$ac_ext <<_ACEOF
28033#line $LINENO "configure"
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039
5c6fa7d2 28040/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28041#ifdef __cplusplus
28042extern "C"
28043#endif
5c6fa7d2 28044/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28045 builtin and then its argument prototype would still apply. */
28046char inet_addr ();
28047int
28048main ()
28049{
28050inet_addr ();
28051 ;
28052 return 0;
28053}
28054_ACEOF
28055rm -f conftest.$ac_objext conftest$ac_exeext
28056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057 (eval $ac_link) 2>&5
28058 ac_status=$?
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } &&
28061 { ac_try='test -s conftest$ac_exeext'
28062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063 (eval $ac_try) 2>&5
28064 ac_status=$?
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); }; }; then
28067 ac_cv_lib_resolv_inet_addr=yes
28068else
28069 echo "$as_me: failed program was:" >&5
28070sed 's/^/| /' conftest.$ac_ext >&5
28071
28072ac_cv_lib_resolv_inet_addr=no
28073fi
28074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28075LIBS=$ac_check_lib_save_LIBS
28076fi
28077echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28078echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28079if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28080 INET_LINK="resolv"
698dcdb6 28081else
e6cc62c6
VS
28082 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28083echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28084if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28085 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28086else
e6cc62c6 28087 ac_check_lib_save_LIBS=$LIBS
3c011993 28088LIBS="-lsocket $LIBS"
e6cc62c6
VS
28089cat >conftest.$ac_ext <<_ACEOF
28090#line $LINENO "configure"
28091/* confdefs.h. */
28092_ACEOF
28093cat confdefs.h >>conftest.$ac_ext
28094cat >>conftest.$ac_ext <<_ACEOF
28095/* end confdefs.h. */
28096
3c011993 28097/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28098#ifdef __cplusplus
28099extern "C"
28100#endif
3c011993 28101/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28102 builtin and then its argument prototype would still apply. */
28103char inet_addr ();
28104int
28105main ()
28106{
28107inet_addr ();
28108 ;
28109 return 0;
28110}
28111_ACEOF
28112rm -f conftest.$ac_objext conftest$ac_exeext
28113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28114 (eval $ac_link) 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
28118 { ac_try='test -s conftest$ac_exeext'
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; }; then
28124 ac_cv_lib_socket_inet_addr=yes
28125else
28126 echo "$as_me: failed program was:" >&5
28127sed 's/^/| /' conftest.$ac_ext >&5
28128
28129ac_cv_lib_socket_inet_addr=no
28130fi
28131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28132LIBS=$ac_check_lib_save_LIBS
28133fi
28134echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28135echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28136if test $ac_cv_lib_socket_inet_addr = yes; then
28137 INET_LINK="socket"
4f14bcd8 28138
8284b0c5 28139fi
e6cc62c6 28140
698dcdb6 28141
7b4a847f 28142fi
e6cc62c6
VS
28143
28144
a0b9e27f 28145fi
579d8138 28146
e6cc62c6
VS
28147
28148
5c6fa7d2 28149fi
e6cc62c6
VS
28150done
28151
28152
28153
28154for ac_func in inet_aton
28155do
28156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28157echo "$as_me:$LINENO: checking for $ac_func" >&5
28158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28159if eval "test \"\${$as_ac_var+set}\" = set"; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
28162 cat >conftest.$ac_ext <<_ACEOF
28163#line $LINENO "configure"
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169/* System header to define __stub macros and hopefully few prototypes,
28170 which can conflict with char $ac_func (); below.
28171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28172 <limits.h> exists even on freestanding compilers. */
28173#ifdef __STDC__
28174# include <limits.h>
28175#else
28176# include <assert.h>
28177#endif
28178/* Override any gcc2 internal prototype to avoid an error. */
28179#ifdef __cplusplus
28180extern "C"
28181{
28182#endif
28183/* We use char because int might match the return type of a gcc2
28184 builtin and then its argument prototype would still apply. */
28185char $ac_func ();
28186/* The GNU C library defines this for functions which it implements
28187 to always fail with ENOSYS. Some functions are actually named
28188 something starting with __ and the normal name is an alias. */
28189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28190choke me
28191#else
28192char (*f) () = $ac_func;
28193#endif
28194#ifdef __cplusplus
28195}
28196#endif
28197
28198int
28199main ()
28200{
28201return f != $ac_func;
28202 ;
28203 return 0;
28204}
28205_ACEOF
28206rm -f conftest.$ac_objext conftest$ac_exeext
28207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28208 (eval $ac_link) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
28212 { ac_try='test -s conftest$ac_exeext'
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 eval "$as_ac_var=yes"
28219else
28220 echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223eval "$as_ac_var=no"
28224fi
28225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28226fi
28227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28229if test `eval echo '${'$as_ac_var'}'` = yes; then
28230 cat >>confdefs.h <<_ACEOF
28231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28232_ACEOF
28233 cat >>confdefs.h <<\_ACEOF
28234#define HAVE_INET_ATON 1
28235_ACEOF
28236
28237else
28238
28239 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28240echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28241echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28242if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28244else
28245 ac_check_lib_save_LIBS=$LIBS
28246LIBS="-l$INET_LINK $LIBS"
28247cat >conftest.$ac_ext <<_ACEOF
28248#line $LINENO "configure"
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254
28255/* Override any gcc2 internal prototype to avoid an error. */
28256#ifdef __cplusplus
28257extern "C"
28258#endif
28259/* We use char because int might match the return type of a gcc2
28260 builtin and then its argument prototype would still apply. */
28261char inet_aton ();
28262int
28263main ()
28264{
28265inet_aton ();
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28272 (eval $ac_link) 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
28276 { ac_try='test -s conftest$ac_exeext'
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; }; then
28282 eval "$as_ac_Lib=yes"
28283else
28284 echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287eval "$as_ac_Lib=no"
28288fi
28289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28290LIBS=$ac_check_lib_save_LIBS
28291fi
28292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28293echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28294if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28295 cat >>confdefs.h <<\_ACEOF
28296#define HAVE_INET_ATON 1
28297_ACEOF
52127426 28298
a0b9e27f 28299fi
247f5006 28300
8284b0c5 28301
698dcdb6 28302fi
4f14bcd8
GD
28303done
28304
8284b0c5 28305
e6cc62c6
VS
28306if test "x$INET_LINK" != "x"; then
28307 cat >>confdefs.h <<\_ACEOF
28308#define HAVE_INET_ADDR 1
28309_ACEOF
28310
28311 INET_LINK=" -l$INET_LINK"
28312fi
28313
28314fi
a0b9e27f 28315
a0b9e27f 28316
4f14bcd8 28317
e6cc62c6
VS
28318ESD_LINK=
28319if test "${ac_cv_header_esd_h+set}" = set; then
28320 echo "$as_me:$LINENO: checking for esd.h" >&5
28321echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28322if test "${ac_cv_header_esd_h+set}" = set; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28324fi
28325echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28326echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28327else
28328 # Is the header compilable?
28329echo "$as_me:$LINENO: checking esd.h usability" >&5
28330echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28331cat >conftest.$ac_ext <<_ACEOF
28332#line $LINENO "configure"
28333/* confdefs.h. */
28334_ACEOF
28335cat confdefs.h >>conftest.$ac_ext
28336cat >>conftest.$ac_ext <<_ACEOF
28337/* end confdefs.h. */
28338$ac_includes_default
28339#include <esd.h>
28340_ACEOF
28341rm -f conftest.$ac_objext
28342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28343 (eval $ac_compile) 2>&5
28344 ac_status=$?
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } &&
28347 { ac_try='test -s conftest.$ac_objext'
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28353 ac_header_compiler=yes
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358ac_header_compiler=no
28359fi
28360rm -f conftest.$ac_objext conftest.$ac_ext
28361echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28362echo "${ECHO_T}$ac_header_compiler" >&6
28363
28364# Is the header present?
28365echo "$as_me:$LINENO: checking esd.h presence" >&5
28366echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28367cat >conftest.$ac_ext <<_ACEOF
28368#line $LINENO "configure"
28369/* confdefs.h. */
28370_ACEOF
28371cat confdefs.h >>conftest.$ac_ext
28372cat >>conftest.$ac_ext <<_ACEOF
28373/* end confdefs.h. */
28374#include <esd.h>
28375_ACEOF
28376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28378 ac_status=$?
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } >/dev/null; then
28384 if test -s conftest.err; then
28385 ac_cpp_err=$ac_c_preproc_warn_flag
28386 else
28387 ac_cpp_err=
28388 fi
a0b9e27f 28389else
e6cc62c6
VS
28390 ac_cpp_err=yes
28391fi
28392if test -z "$ac_cpp_err"; then
28393 ac_header_preproc=yes
28394else
28395 echo "$as_me: failed program was:" >&5
28396sed 's/^/| /' conftest.$ac_ext >&5
28397
28398 ac_header_preproc=no
28399fi
28400rm -f conftest.err conftest.$ac_ext
28401echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28402echo "${ECHO_T}$ac_header_preproc" >&6
28403
28404# So? What about this header?
28405case $ac_header_compiler:$ac_header_preproc in
28406 yes:no )
28407 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28408echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28409 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28410echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28411 (
28412 cat <<\_ASBOX
28413## ------------------------------------ ##
28414## Report this to bug-autoconf@gnu.org. ##
28415## ------------------------------------ ##
28416_ASBOX
28417 ) |
28418 sed "s/^/$as_me: WARNING: /" >&2
28419 ;;
28420 no:yes )
28421 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28422echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28423 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28424echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28425 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28426echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28427 (
28428 cat <<\_ASBOX
28429## ------------------------------------ ##
28430## Report this to bug-autoconf@gnu.org. ##
28431## ------------------------------------ ##
28432_ASBOX
28433 ) |
28434 sed "s/^/$as_me: WARNING: /" >&2
28435 ;;
28436esac
28437echo "$as_me:$LINENO: checking for esd.h" >&5
28438echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28439if test "${ac_cv_header_esd_h+set}" = set; then
28440 echo $ECHO_N "(cached) $ECHO_C" >&6
28441else
28442 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28443fi
e6cc62c6
VS
28444echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28445echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28446
e6cc62c6
VS
28447fi
28448if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28449
e6cc62c6
VS
28450 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28451echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28452if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28454else
e6cc62c6
VS
28455 ac_check_lib_save_LIBS=$LIBS
28456LIBS="-lesd $LIBS"
28457cat >conftest.$ac_ext <<_ACEOF
28458#line $LINENO "configure"
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
28464
6232543b 28465/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28466#ifdef __cplusplus
28467extern "C"
28468#endif
6232543b 28469/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28470 builtin and then its argument prototype would still apply. */
28471char esd_close ();
28472int
28473main ()
28474{
28475esd_close ();
28476 ;
28477 return 0;
28478}
28479_ACEOF
28480rm -f conftest.$ac_objext conftest$ac_exeext
28481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28482 (eval $ac_link) 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); } &&
28486 { ac_try='test -s conftest$ac_exeext'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; }; then
28492 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28493else
e6cc62c6
VS
28494 echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28496
e6cc62c6 28497ac_cv_lib_esd_esd_close=no
10f2d63a 28498fi
e6cc62c6
VS
28499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28500LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28501fi
e6cc62c6
VS
28502echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28503echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28504if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28505
e6cc62c6 28506 ESD_LINK="-lesd"
10f2d63a 28507
e6cc62c6 28508fi
8284b0c5 28509
4f14bcd8 28510
6232543b 28511fi
10f2d63a 28512
703e0a69 28513
8284b0c5 28514
e6cc62c6
VS
28515
28516
28517cat >confcache <<\_ACEOF
4f14bcd8
GD
28518# This file is a shell script that caches the results of configure
28519# tests run on this system so they can be shared between configure
e6cc62c6
VS
28520# scripts and configure runs, see configure's option --config-cache.
28521# It is not useful on other systems. If it contains results you don't
28522# want to keep, you may remove or edit it.
4f14bcd8 28523#
e6cc62c6
VS
28524# config.status only pays attention to the cache file if you give it
28525# the --recheck option to rerun configure.
4f14bcd8 28526#
e6cc62c6
VS
28527# `ac_cv_env_foo' variables (set or unset) will be overridden when
28528# loading this file, other *unset* `ac_cv_foo' will be assigned the
28529# following values.
28530
28531_ACEOF
28532
4f14bcd8
GD
28533# The following way of writing the cache mishandles newlines in values,
28534# but we know of no workaround that is simple, portable, and efficient.
28535# So, don't put newlines in cache variables' values.
28536# Ultrix sh set writes to stderr and can't be redirected directly,
28537# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28538{
28539 (set) 2>&1 |
28540 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28541 *ac_space=\ *)
28542 # `set' does not quote correctly, so add quotes (double-quote
28543 # substitution turns \\\\ into \\, and sed turns \\ into \).
28544 sed -n \
28545 "s/'/'\\\\''/g;
28546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28547 ;;
28548 *)
28549 # `set' quotes correctly as required by POSIX, so do not add quotes.
28550 sed -n \
28551 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28552 ;;
28553 esac;
28554} |
28555 sed '
28556 t clear
28557 : clear
28558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28559 t end
28560 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28561 : end' >>confcache
28562if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28563 if test -w $cache_file; then
e6cc62c6
VS
28564 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28565 cat confcache >$cache_file
f6bcfd97 28566 else
4f14bcd8 28567 echo "not updating unwritable cache $cache_file"
f6bcfd97 28568 fi
4f14bcd8
GD
28569fi
28570rm -f confcache
f6bcfd97 28571
8284b0c5 28572
009fead0 28573CPP_MT_FLAG=
4f14bcd8
GD
28574if test "$TOOLKIT" != "MSW"; then
28575
e6cc62c6 28576
7274f1c7 28577 THREADS_LINK=
009fead0 28578 THREADS_CFLAGS=
7274f1c7
RL
28579
28580 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28581 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28582 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28583echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28584 wxUSE_THREADS="no"
28585 fi
4f14bcd8 28586 fi
4f14bcd8 28587
7274f1c7 28588 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28589
28590
009fead0
VZ
28591 THREAD_OPTS="-pthread"
28592 case "${host}" in
28593 *-*-solaris2* | *-*-sunos4* )
28594 if test "x$GCC" = "xyes"; then
126be6b4 28595 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28596 else
28597 THREAD_OPTS="-mt $THREAD_OPTS"
28598 fi
28599 ;;
28600 *-*-freebsd*)
28601 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28602 ;;
17234b26
MB
28603 *-*-darwin* | *-*-cygwin* )
28604 THREAD_OPTS=""
4101db81 28605 ;;
8f4a9a10 28606 *-*-aix*)
009fead0
VZ
28607 THREAD_OPTS="pthreads"
28608 ;;
4f5a7f74
VZ
28609 *-hp-hpux* )
28610 if test "x$GCC" != "xyes"; then
28611 THREAD_OPTS=""
28612 fi
89e3b3e4
VZ
28613 ;;
28614
28615 *-*-irix* )
28616 if test "x$GCC" = "xyes"; then
28617 THREAD_OPTS=""
28618 fi
28619 ;;
28620
28621 *-*-*UnixWare*)
28622 if test "x$GCC" != "xyes"; then
28623 THREAD_OPTS="-Ethread"
28624 fi
28625 ;;
009fead0 28626 esac
4f14bcd8 28627
02a1dfba 28628 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28629
009fead0
VZ
28630 THREADS_OK=no
28631 for flag in $THREAD_OPTS; do
28632 case $flag in
28633 none)
e6cc62c6
VS
28634 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28635echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28636 ;;
698dcdb6 28637
009fead0 28638 -*)
e6cc62c6
VS
28639 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28640echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28641 THREADS_CFLAGS="$flag"
28642 ;;
698dcdb6 28643
009fead0 28644 *)
e6cc62c6
VS
28645 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28646echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28647 THREADS_LINK="-l$flag"
28648 ;;
28649 esac
10f2d63a 28650
009fead0
VZ
28651 save_LIBS="$LIBS"
28652 save_CFLAGS="$CFLAGS"
28653 LIBS="$THREADS_LINK $LIBS"
04727afd 28654 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28655
e6cc62c6
VS
28656 cat >conftest.$ac_ext <<_ACEOF
28657#line $LINENO "configure"
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
009fead0 28663#include <pthread.h>
e6cc62c6
VS
28664int
28665main ()
28666{
009fead0 28667pthread_create(0,0,0,0);
e6cc62c6
VS
28668 ;
28669 return 0;
28670}
28671_ACEOF
28672rm -f conftest.$ac_objext conftest$ac_exeext
28673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28674 (eval $ac_link) 2>&5
28675 ac_status=$?
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); } &&
28678 { ac_try='test -s conftest$ac_exeext'
28679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28680 (eval $ac_try) 2>&5
28681 ac_status=$?
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); }; }; then
009fead0 28684 THREADS_OK=yes
10f2d63a 28685else
e6cc62c6
VS
28686 echo "$as_me: failed program was:" >&5
28687sed 's/^/| /' conftest.$ac_ext >&5
28688
6232543b 28689fi
e6cc62c6 28690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28691
009fead0
VZ
28692 LIBS="$save_LIBS"
28693 CFLAGS="$save_CFLAGS"
d9b9876f 28694
e6cc62c6
VS
28695 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28696echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28697 if test "x$THREADS_OK" = "xyes"; then
28698 break;
28699 fi
d9b9876f 28700
009fead0
VZ
28701 THREADS_LINK=""
28702 THREADS_CFLAGS=""
28703 done
4f14bcd8 28704
009fead0
VZ
28705 if test "x$THREADS_OK" != "xyes"; then
28706 wxUSE_THREADS=no
e6cc62c6
VS
28707 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28708echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28709 else
db82f09e
VZ
28710 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28711 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28712
e6cc62c6
VS
28713 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28714echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28715 flag=no
28716 case "${host}" in
2b5f62a0
VZ
28717 *-aix*)
28718 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28719 flag="-D_THREAD_SAFE"
28720 ;;
28721 *-freebsd*)
009fead0
VZ
28722 flag="-D_THREAD_SAFE"
28723 ;;
06313569
GD
28724 *-hp-hpux* )
28725 flag="-D_REENTRANT"
4f5a7f74
VZ
28726 if test "x$GCC" != "xyes"; then
28727 flag="$flag -D_RWSTD_MULTI_THREAD"
28728 fi
06313569 28729 ;;
009fead0
VZ
28730 *solaris* | alpha*-osf*)
28731 flag="-D_REENTRANT"
28732 ;;
28733 esac
e6cc62c6
VS
28734 echo "$as_me:$LINENO: result: ${flag}" >&5
28735echo "${ECHO_T}${flag}" >&6
009fead0 28736 if test "x$flag" != xno; then
04727afd 28737 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28738 fi
28739
009fead0 28740 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28741 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28742 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28743 fi
28744 fi
4f14bcd8 28745 fi
4f14bcd8 28746
7274f1c7 28747 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28748
28749for ac_func in thr_setconcurrency
4f14bcd8 28750do
e6cc62c6
VS
28751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28752echo "$as_me:$LINENO: checking for $ac_func" >&5
28753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28754if eval "test \"\${$as_ac_var+set}\" = set"; then
28755 echo $ECHO_N "(cached) $ECHO_C" >&6
28756else
28757 cat >conftest.$ac_ext <<_ACEOF
28758#line $LINENO "configure"
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
4f14bcd8 28764/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28765 which can conflict with char $ac_func (); below.
28766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28767 <limits.h> exists even on freestanding compilers. */
28768#ifdef __STDC__
28769# include <limits.h>
28770#else
28771# include <assert.h>
28772#endif
4f14bcd8 28773/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28774#ifdef __cplusplus
28775extern "C"
28776{
28777#endif
4f14bcd8 28778/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28779 builtin and then its argument prototype would still apply. */
28780char $ac_func ();
4f14bcd8
GD
28781/* The GNU C library defines this for functions which it implements
28782 to always fail with ENOSYS. Some functions are actually named
28783 something starting with __ and the normal name is an alias. */
28784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28785choke me
28786#else
e6cc62c6
VS
28787char (*f) () = $ac_func;
28788#endif
28789#ifdef __cplusplus
28790}
4f14bcd8
GD
28791#endif
28792
e6cc62c6
VS
28793int
28794main ()
28795{
28796return f != $ac_func;
28797 ;
28798 return 0;
28799}
28800_ACEOF
28801rm -f conftest.$ac_objext conftest$ac_exeext
28802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28803 (eval $ac_link) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } &&
28807 { ac_try='test -s conftest$ac_exeext'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; }; then
28813 eval "$as_ac_var=yes"
28814else
28815 echo "$as_me: failed program was:" >&5
28816sed 's/^/| /' conftest.$ac_ext >&5
28817
28818eval "$as_ac_var=no"
28819fi
28820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28821fi
28822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28824if test `eval echo '${'$as_ac_var'}'` = yes; then
28825 cat >>confdefs.h <<_ACEOF
28826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28827_ACEOF
698dcdb6 28828
10f2d63a 28829fi
4f14bcd8 28830done
10f2d63a 28831
8284b0c5 28832
e6cc62c6
VS
28833
28834for ac_header in sched.h
4f14bcd8 28835do
e6cc62c6
VS
28836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28837if eval "test \"\${$as_ac_Header+set}\" = set"; then
28838 echo "$as_me:$LINENO: checking for $ac_header" >&5
28839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28840if eval "test \"\${$as_ac_Header+set}\" = set"; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28842fi
28843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28845else
28846 # Is the header compilable?
28847echo "$as_me:$LINENO: checking $ac_header usability" >&5
28848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28849cat >conftest.$ac_ext <<_ACEOF
28850#line $LINENO "configure"
28851/* confdefs.h. */
28852_ACEOF
28853cat confdefs.h >>conftest.$ac_ext
28854cat >>conftest.$ac_ext <<_ACEOF
28855/* end confdefs.h. */
28856$ac_includes_default
28857#include <$ac_header>
28858_ACEOF
28859rm -f conftest.$ac_objext
28860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28861 (eval $ac_compile) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } &&
28865 { ac_try='test -s conftest.$ac_objext'
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 ac_header_compiler=yes
28872else
28873 echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876ac_header_compiler=no
28877fi
28878rm -f conftest.$ac_objext conftest.$ac_ext
28879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28880echo "${ECHO_T}$ac_header_compiler" >&6
28881
28882# Is the header present?
28883echo "$as_me:$LINENO: checking $ac_header presence" >&5
28884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28885cat >conftest.$ac_ext <<_ACEOF
28886#line $LINENO "configure"
28887/* confdefs.h. */
28888_ACEOF
28889cat confdefs.h >>conftest.$ac_ext
28890cat >>conftest.$ac_ext <<_ACEOF
28891/* end confdefs.h. */
28892#include <$ac_header>
28893_ACEOF
28894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28896 ac_status=$?
28897 grep -v '^ *+' conftest.er1 >conftest.err
28898 rm -f conftest.er1
28899 cat conftest.err >&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } >/dev/null; then
28902 if test -s conftest.err; then
28903 ac_cpp_err=$ac_c_preproc_warn_flag
28904 else
28905 ac_cpp_err=
28906 fi
28907else
28908 ac_cpp_err=yes
28909fi
28910if test -z "$ac_cpp_err"; then
28911 ac_header_preproc=yes
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 ac_header_preproc=no
28917fi
28918rm -f conftest.err conftest.$ac_ext
28919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920echo "${ECHO_T}$ac_header_preproc" >&6
28921
28922# So? What about this header?
28923case $ac_header_compiler:$ac_header_preproc in
28924 yes:no )
28925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28929 (
28930 cat <<\_ASBOX
28931## ------------------------------------ ##
28932## Report this to bug-autoconf@gnu.org. ##
28933## ------------------------------------ ##
28934_ASBOX
28935 ) |
28936 sed "s/^/$as_me: WARNING: /" >&2
28937 ;;
28938 no:yes )
28939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28945 (
28946 cat <<\_ASBOX
28947## ------------------------------------ ##
28948## Report this to bug-autoconf@gnu.org. ##
28949## ------------------------------------ ##
28950_ASBOX
28951 ) |
28952 sed "s/^/$as_me: WARNING: /" >&2
28953 ;;
28954esac
28955echo "$as_me:$LINENO: checking for $ac_header" >&5
28956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28957if eval "test \"\${$as_ac_Header+set}\" = set"; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
28959else
28960 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 28961fi
e6cc62c6
VS
28962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28964
10f2d63a 28965fi
e6cc62c6
VS
28966if test `eval echo '${'$as_ac_Header'}'` = yes; then
28967 cat >>confdefs.h <<_ACEOF
28968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28969_ACEOF
28970
f6bcfd97 28971fi
e6cc62c6 28972
4f14bcd8 28973done
f6bcfd97 28974
009fead0 28975 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
28976 echo "$as_me:$LINENO: checking for sched_yield" >&5
28977echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28978if test "${ac_cv_func_sched_yield+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980else
28981 cat >conftest.$ac_ext <<_ACEOF
28982#line $LINENO "configure"
28983/* confdefs.h. */
28984_ACEOF
28985cat confdefs.h >>conftest.$ac_ext
28986cat >>conftest.$ac_ext <<_ACEOF
28987/* end confdefs.h. */
009fead0 28988/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28989 which can conflict with char sched_yield (); below.
28990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28991 <limits.h> exists even on freestanding compilers. */
28992#ifdef __STDC__
28993# include <limits.h>
28994#else
28995# include <assert.h>
28996#endif
4f14bcd8 28997/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28998#ifdef __cplusplus
28999extern "C"
29000{
29001#endif
4f14bcd8 29002/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29003 builtin and then its argument prototype would still apply. */
29004char sched_yield ();
009fead0
VZ
29005/* The GNU C library defines this for functions which it implements
29006 to always fail with ENOSYS. Some functions are actually named
29007 something starting with __ and the normal name is an alias. */
29008#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29009choke me
29010#else
e6cc62c6
VS
29011char (*f) () = sched_yield;
29012#endif
29013#ifdef __cplusplus
29014}
009fead0
VZ
29015#endif
29016
e6cc62c6
VS
29017int
29018main ()
29019{
29020return f != sched_yield;
29021 ;
29022 return 0;
29023}
29024_ACEOF
29025rm -f conftest.$ac_objext conftest$ac_exeext
29026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29027 (eval $ac_link) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } &&
29031 { ac_try='test -s conftest$ac_exeext'
29032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29033 (eval $ac_try) 2>&5
29034 ac_status=$?
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); }; }; then
29037 ac_cv_func_sched_yield=yes
29038else
29039 echo "$as_me: failed program was:" >&5
29040sed 's/^/| /' conftest.$ac_ext >&5
29041
29042ac_cv_func_sched_yield=no
29043fi
29044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29045fi
29046echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29047echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29048if test $ac_cv_func_sched_yield = yes; then
29049 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29050#define HAVE_SCHED_YIELD 1
e6cc62c6 29051_ACEOF
10f2d63a 29052
4f14bcd8 29053else
009fead0 29054
e6cc62c6
VS
29055 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29056echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29057if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29059else
e6cc62c6 29060 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29061LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29062cat >conftest.$ac_ext <<_ACEOF
29063#line $LINENO "configure"
29064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
29069
4f14bcd8 29070/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29071#ifdef __cplusplus
29072extern "C"
29073#endif
4f14bcd8 29074/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29075 builtin and then its argument prototype would still apply. */
29076char sched_yield ();
29077int
29078main ()
29079{
29080sched_yield ();
29081 ;
29082 return 0;
29083}
29084_ACEOF
29085rm -f conftest.$ac_objext conftest$ac_exeext
29086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29087 (eval $ac_link) 2>&5
29088 ac_status=$?
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } &&
29091 { ac_try='test -s conftest$ac_exeext'
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; }; then
29097 ac_cv_lib_posix4_sched_yield=yes
29098else
29099 echo "$as_me: failed program was:" >&5
29100sed 's/^/| /' conftest.$ac_ext >&5
29101
29102ac_cv_lib_posix4_sched_yield=no
29103fi
29104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29105LIBS=$ac_check_lib_save_LIBS
29106fi
29107echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29108echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29109if test $ac_cv_lib_posix4_sched_yield = yes; then
29110 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29111#define HAVE_SCHED_YIELD 1
e6cc62c6 29112_ACEOF
3d63bc3a 29113 POSIX4_LINK=" -lposix4"
4f14bcd8 29114else
e6cc62c6
VS
29115 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29116echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29117
54276ccf
VZ
29118fi
29119
e6cc62c6
VS
29120
29121
4f14bcd8 29122fi
698dcdb6 29123
009fead0 29124 fi
10f2d63a 29125
7274f1c7 29126 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29127 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29128echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29129if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29131else
29132 cat >conftest.$ac_ext <<_ACEOF
29133#line $LINENO "configure"
29134/* confdefs.h. */
29135_ACEOF
29136cat confdefs.h >>conftest.$ac_ext
29137cat >>conftest.$ac_ext <<_ACEOF
29138/* end confdefs.h. */
009fead0 29139/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29140 which can conflict with char pthread_attr_getschedpolicy (); below.
29141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29142 <limits.h> exists even on freestanding compilers. */
29143#ifdef __STDC__
29144# include <limits.h>
29145#else
29146# include <assert.h>
29147#endif
4f14bcd8 29148/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29149#ifdef __cplusplus
29150extern "C"
29151{
29152#endif
4f14bcd8 29153/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29154 builtin and then its argument prototype would still apply. */
29155char pthread_attr_getschedpolicy ();
009fead0
VZ
29156/* The GNU C library defines this for functions which it implements
29157 to always fail with ENOSYS. Some functions are actually named
29158 something starting with __ and the normal name is an alias. */
29159#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29160choke me
29161#else
e6cc62c6
VS
29162char (*f) () = pthread_attr_getschedpolicy;
29163#endif
29164#ifdef __cplusplus
29165}
009fead0
VZ
29166#endif
29167
e6cc62c6
VS
29168int
29169main ()
29170{
29171return f != pthread_attr_getschedpolicy;
29172 ;
29173 return 0;
29174}
29175_ACEOF
29176rm -f conftest.$ac_objext conftest$ac_exeext
29177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29178 (eval $ac_link) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } &&
29182 { ac_try='test -s conftest$ac_exeext'
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
29188 ac_cv_func_pthread_attr_getschedpolicy=yes
29189else
29190 echo "$as_me: failed program was:" >&5
29191sed 's/^/| /' conftest.$ac_ext >&5
29192
29193ac_cv_func_pthread_attr_getschedpolicy=no
29194fi
29195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29196fi
29197echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29198echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29199if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29200 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29201echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29202if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29204else
29205 cat >conftest.$ac_ext <<_ACEOF
29206#line $LINENO "configure"
29207/* confdefs.h. */
29208_ACEOF
29209cat confdefs.h >>conftest.$ac_ext
29210cat >>conftest.$ac_ext <<_ACEOF
29211/* end confdefs.h. */
a0b9e27f 29212/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29213 which can conflict with char pthread_attr_setschedparam (); below.
29214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215 <limits.h> exists even on freestanding compilers. */
29216#ifdef __STDC__
29217# include <limits.h>
29218#else
29219# include <assert.h>
29220#endif
422107f9 29221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29222#ifdef __cplusplus
29223extern "C"
29224{
29225#endif
422107f9 29226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29227 builtin and then its argument prototype would still apply. */
29228char pthread_attr_setschedparam ();
009fead0
VZ
29229/* The GNU C library defines this for functions which it implements
29230 to always fail with ENOSYS. Some functions are actually named
29231 something starting with __ and the normal name is an alias. */
29232#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29233choke me
29234#else
e6cc62c6
VS
29235char (*f) () = pthread_attr_setschedparam;
29236#endif
29237#ifdef __cplusplus
29238}
009fead0
VZ
29239#endif
29240
e6cc62c6
VS
29241int
29242main ()
29243{
29244return f != pthread_attr_setschedparam;
29245 ;
29246 return 0;
29247}
29248_ACEOF
29249rm -f conftest.$ac_objext conftest$ac_exeext
29250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29251 (eval $ac_link) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -s conftest$ac_exeext'
29256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257 (eval $ac_try) 2>&5
29258 ac_status=$?
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); }; }; then
29261 ac_cv_func_pthread_attr_setschedparam=yes
29262else
29263 echo "$as_me: failed program was:" >&5
29264sed 's/^/| /' conftest.$ac_ext >&5
29265
29266ac_cv_func_pthread_attr_setschedparam=no
29267fi
29268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29269fi
29270echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29271echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29272if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29273 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29274echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29275if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29276 echo $ECHO_N "(cached) $ECHO_C" >&6
29277else
29278 cat >conftest.$ac_ext <<_ACEOF
29279#line $LINENO "configure"
29280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
ef33c576 29285/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29286 which can conflict with char sched_get_priority_max (); below.
29287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29288 <limits.h> exists even on freestanding compilers. */
29289#ifdef __STDC__
29290# include <limits.h>
29291#else
29292# include <assert.h>
29293#endif
4f14bcd8 29294/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29295#ifdef __cplusplus
29296extern "C"
29297{
29298#endif
4f14bcd8 29299/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29300 builtin and then its argument prototype would still apply. */
29301char sched_get_priority_max ();
009fead0
VZ
29302/* The GNU C library defines this for functions which it implements
29303 to always fail with ENOSYS. Some functions are actually named
29304 something starting with __ and the normal name is an alias. */
29305#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29306choke me
29307#else
e6cc62c6
VS
29308char (*f) () = sched_get_priority_max;
29309#endif
29310#ifdef __cplusplus
29311}
009fead0
VZ
29312#endif
29313
e6cc62c6
VS
29314int
29315main ()
29316{
29317return f != sched_get_priority_max;
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext conftest$ac_exeext
29323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29324 (eval $ac_link) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } &&
29328 { ac_try='test -s conftest$ac_exeext'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_func_sched_get_priority_max=yes
29335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339ac_cv_func_sched_get_priority_max=no
29340fi
29341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29342fi
29343echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29344echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29345if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29346 HAVE_PRIOR_FUNCS=1
29347else
e6cc62c6
VS
29348 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29349echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29350if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29351 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29352else
e6cc62c6 29353 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29354LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29355cat >conftest.$ac_ext <<_ACEOF
29356#line $LINENO "configure"
29357/* confdefs.h. */
29358_ACEOF
29359cat confdefs.h >>conftest.$ac_ext
29360cat >>conftest.$ac_ext <<_ACEOF
29361/* end confdefs.h. */
29362
422107f9 29363/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29364#ifdef __cplusplus
29365extern "C"
29366#endif
422107f9 29367/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29368 builtin and then its argument prototype would still apply. */
29369char sched_get_priority_max ();
29370int
29371main ()
29372{
29373sched_get_priority_max ();
29374 ;
29375 return 0;
29376}
29377_ACEOF
29378rm -f conftest.$ac_objext conftest$ac_exeext
29379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29380 (eval $ac_link) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
29384 { ac_try='test -s conftest$ac_exeext'
29385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386 (eval $ac_try) 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; }; then
29390 ac_cv_lib_posix4_sched_get_priority_max=yes
29391else
29392 echo "$as_me: failed program was:" >&5
29393sed 's/^/| /' conftest.$ac_ext >&5
29394
29395ac_cv_lib_posix4_sched_get_priority_max=no
29396fi
29397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29398LIBS=$ac_check_lib_save_LIBS
29399fi
29400echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29401echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29402if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29403
7274f1c7
RL
29404 HAVE_PRIOR_FUNCS=1
29405 POSIX4_LINK=" -lposix4"
e6cc62c6 29406
4f14bcd8 29407fi
463abc64 29408
e6cc62c6 29409
328a083c 29410fi
463abc64 29411
e6cc62c6 29412
7b4a847f 29413fi
579d8138 29414
e6cc62c6 29415
5c6fa7d2 29416fi
52127426 29417
8284b0c5 29418
7274f1c7 29419 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29420 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29421#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29422_ACEOF
463abc64 29423
7274f1c7 29424 else
e6cc62c6
VS
29425 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29426echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29427 fi
463abc64 29428
e6cc62c6
VS
29429 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29430echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29431if test "${ac_cv_func_pthread_cancel+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29433else
29434 cat >conftest.$ac_ext <<_ACEOF
29435#line $LINENO "configure"
29436/* confdefs.h. */
29437_ACEOF
29438cat confdefs.h >>conftest.$ac_ext
29439cat >>conftest.$ac_ext <<_ACEOF
29440/* end confdefs.h. */
009fead0 29441/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29442 which can conflict with char pthread_cancel (); below.
29443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29444 <limits.h> exists even on freestanding compilers. */
29445#ifdef __STDC__
29446# include <limits.h>
29447#else
29448# include <assert.h>
29449#endif
422107f9 29450/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29451#ifdef __cplusplus
29452extern "C"
29453{
29454#endif
422107f9 29455/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29456 builtin and then its argument prototype would still apply. */
29457char pthread_cancel ();
009fead0
VZ
29458/* The GNU C library defines this for functions which it implements
29459 to always fail with ENOSYS. Some functions are actually named
29460 something starting with __ and the normal name is an alias. */
29461#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29462choke me
29463#else
e6cc62c6
VS
29464char (*f) () = pthread_cancel;
29465#endif
29466#ifdef __cplusplus
29467}
009fead0
VZ
29468#endif
29469
e6cc62c6
VS
29470int
29471main ()
29472{
29473return f != pthread_cancel;
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478rm -f conftest.$ac_objext conftest$ac_exeext
29479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29480 (eval $ac_link) 2>&5
29481 ac_status=$?
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } &&
29484 { ac_try='test -s conftest$ac_exeext'
29485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486 (eval $ac_try) 2>&5
29487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; }; then
29490 ac_cv_func_pthread_cancel=yes
29491else
29492 echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495ac_cv_func_pthread_cancel=no
29496fi
29497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29498fi
29499echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29500echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29501if test $ac_cv_func_pthread_cancel = yes; then
29502 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29503#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29504_ACEOF
4f14bcd8 29505
698dcdb6 29506else
e6cc62c6
VS
29507 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29508echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29509fi
29510
5c6fa7d2 29511
e6cc62c6
VS
29512 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29513echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29514if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29516else
e6cc62c6
VS
29517
29518 cat >conftest.$ac_ext <<_ACEOF
29519#line $LINENO "configure"
29520/* confdefs.h. */
29521_ACEOF
29522cat confdefs.h >>conftest.$ac_ext
29523cat >>conftest.$ac_ext <<_ACEOF
29524/* end confdefs.h. */
4f14bcd8 29525#include <pthread.h>
e6cc62c6
VS
29526int
29527main ()
29528{
4f14bcd8 29529
7274f1c7
RL
29530 pthread_cleanup_push(NULL, NULL);
29531 pthread_cleanup_pop(0);
e6cc62c6
VS
29532
29533 ;
29534 return 0;
29535}
29536_ACEOF
29537rm -f conftest.$ac_objext
29538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29539 (eval $ac_compile) 2>&5
29540 ac_status=$?
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -s conftest.$ac_objext'
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549
7274f1c7 29550 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29551
4f14bcd8 29552else
e6cc62c6
VS
29553 echo "$as_me: failed program was:" >&5
29554sed 's/^/| /' conftest.$ac_ext >&5
29555
29556
7274f1c7 29557 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29558
247f5006 29559fi
e6cc62c6 29560rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29561
e6cc62c6
VS
29562fi
29563echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29564echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29565
7274f1c7 29566 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29567 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29568#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29569_ACEOF
c7a2bf27 29570
7274f1c7 29571 fi
4f14bcd8 29572
e6cc62c6
VS
29573
29574 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29575echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29576if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29578else
e6cc62c6
VS
29579
29580 cat >conftest.$ac_ext <<_ACEOF
29581#line $LINENO "configure"
29582/* confdefs.h. */
29583_ACEOF
29584cat confdefs.h >>conftest.$ac_ext
29585cat >>conftest.$ac_ext <<_ACEOF
29586/* end confdefs.h. */
4f14bcd8 29587#include <pthread.h>
e6cc62c6
VS
29588int
29589main ()
29590{
4f14bcd8 29591
7274f1c7
RL
29592 pthread_mutexattr_t attr;
29593 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29594
29595 ;
29596 return 0;
29597}
29598_ACEOF
29599rm -f conftest.$ac_objext
29600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29601 (eval $ac_compile) 2>&5
29602 ac_status=$?
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
29605 { ac_try='test -s conftest.$ac_objext'
29606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607 (eval $ac_try) 2>&5
29608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; }; then
29611
7274f1c7 29612 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29613
3fed1840 29614else
e6cc62c6
VS
29615 echo "$as_me: failed program was:" >&5
29616sed 's/^/| /' conftest.$ac_ext >&5
29617
29618
7274f1c7 29619 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29620
29621
247f5006 29622fi
e6cc62c6 29623rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29624
e6cc62c6
VS
29625fi
29626echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29627echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29628
7274f1c7 29629 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29630 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29631#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29632_ACEOF
4f14bcd8 29633
7274f1c7 29634 else
e6cc62c6
VS
29635 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29636echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29637if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29639else
29640
29641 cat >conftest.$ac_ext <<_ACEOF
29642#line $LINENO "configure"
29643/* confdefs.h. */
29644_ACEOF
29645cat confdefs.h >>conftest.$ac_ext
29646cat >>conftest.$ac_ext <<_ACEOF
29647/* end confdefs.h. */
4f14bcd8 29648#include <pthread.h>
e6cc62c6
VS
29649int
29650main ()
29651{
4f14bcd8 29652
7274f1c7 29653 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29654
29655 ;
29656 return 0;
29657}
29658_ACEOF
29659rm -f conftest.$ac_objext
29660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29661 (eval $ac_compile) 2>&5
29662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } &&
29665 { ac_try='test -s conftest.$ac_objext'
29666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29667 (eval $ac_try) 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671
7274f1c7 29672 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29673
698dcdb6 29674else
e6cc62c6
VS
29675 echo "$as_me: failed program was:" >&5
29676sed 's/^/| /' conftest.$ac_ext >&5
29677
29678
7274f1c7 29679 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29680
29681
247f5006 29682fi
e6cc62c6 29683rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29684
e6cc62c6
VS
29685fi
29686echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29687echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29688 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29689 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29690#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29691_ACEOF
3fed1840 29692
7274f1c7 29693 else
e6cc62c6
VS
29694 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29695echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29696 fi
29697 fi
7274f1c7 29698 fi
3fed1840 29699
a0b9e27f
MB
29700else
29701 if test "$wxUSE_THREADS" = "yes" ; then
29702 case "${host}" in
29703 *-*-mingw32* )
e6cc62c6
VS
29704 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29705echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29706if test "${wx_cv_cflags_mthread+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29708else
e6cc62c6 29709
ca8e52b3
VZ
29710 CFLAGS_OLD="$CFLAGS"
29711 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29712 cat >conftest.$ac_ext <<_ACEOF
29713#line $LINENO "configure"
29714/* confdefs.h. */
29715_ACEOF
29716cat confdefs.h >>conftest.$ac_ext
29717cat >>conftest.$ac_ext <<_ACEOF
29718/* end confdefs.h. */
29719
29720int
29721main ()
29722{
ca8e52b3 29723
e6cc62c6
VS
29724 ;
29725 return 0;
29726}
29727_ACEOF
29728rm -f conftest.$ac_objext
29729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29730 (eval $ac_compile) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -s conftest.$ac_objext'
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
ca8e52b3
VZ
29740 wx_cv_cflags_mthread=yes
29741else
e6cc62c6
VS
29742 echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745wx_cv_cflags_mthread=no
29746
ca8e52b3 29747fi
e6cc62c6
VS
29748rm -f conftest.$ac_objext conftest.$ac_ext
29749
ca8e52b3 29750
e6cc62c6
VS
29751fi
29752echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29753echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29754
29755 if test "$wx_cv_cflags_mthread" = "yes"; then
29756 CXXFLAGS="$CXXFLAGS -mthreads"
29757 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29758 LDFLAGS="$LDFLAGS -mthreads"
29759 else
29760 CFLAGS="$CFLAGS_OLD"
29761 fi
a0b9e27f
MB
29762 ;;
29763 esac
29764 fi
4f14bcd8
GD
29765fi
29766
29767if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29768 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29769#define wxUSE_THREADS 1
e6cc62c6 29770_ACEOF
7b6058cd 29771
8284b0c5 29772
4f14bcd8 29773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29774else
4f14bcd8 29775 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29776 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29777echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29778 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29779 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29780 echo "$as_me:$LINENO: result: yes" >&5
29781echo "${ECHO_T}yes" >&6
4f14bcd8 29782 else
e6cc62c6
VS
29783 echo "$as_me:$LINENO: result: no" >&5
29784echo "${ECHO_T}no" >&6
4f14bcd8
GD
29785 fi
29786 fi
29787fi
29788
29789if test "$WXGTK20" = 1 ; then
e6cc62c6 29790 cat >>confdefs.h <<_ACEOF
4f14bcd8 29791#define __WXGTK20__ $WXGTK20
e6cc62c6 29792_ACEOF
4f14bcd8
GD
29793
29794 WXGTK12=1
10f2d63a 29795fi
4f14bcd8
GD
29796
29797if test "$WXGTK12" = 1 ; then
e6cc62c6 29798 cat >>confdefs.h <<_ACEOF
4f14bcd8 29799#define __WXGTK12__ $WXGTK12
e6cc62c6 29800_ACEOF
4f14bcd8 29801
10f2d63a 29802fi
698dcdb6 29803
4f14bcd8 29804if test "$WXGTK127" = 1 ; then
e6cc62c6 29805 cat >>confdefs.h <<_ACEOF
4f14bcd8 29806#define __WXGTK127__ $WXGTK127
e6cc62c6 29807_ACEOF
4f14bcd8 29808
698dcdb6 29809fi
10f2d63a 29810
4f14bcd8
GD
29811WXDEBUG=
29812
29813if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29814 WXDEBUG="-g"
29815 wxUSE_OPTIMISE=no
698dcdb6 29816fi
4f14bcd8
GD
29817
29818if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29819 wxUSE_DEBUG_INFO=yes
29820 WXDEBUG="-ggdb"
10f2d63a
VZ
29821fi
29822
4f14bcd8 29823if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29824 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29825#define WXDEBUG 1
e6cc62c6 29826_ACEOF
4f14bcd8
GD
29827
29828 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29829else
4f14bcd8
GD
29830 if test "$wxUSE_GTK" = 1 ; then
29831 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29832 fi
29833fi
29834
29835if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29836 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29837#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29838_ACEOF
4f14bcd8 29839
e6cc62c6 29840 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29841#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29842_ACEOF
4f14bcd8 29843
e6cc62c6 29844 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29845#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29846_ACEOF
4f14bcd8
GD
29847
29848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29849fi
29850
29851if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29852 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29853fi
29854
29855PROFILE=
29856if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29857 PROFILE=" -pg"
10f2d63a
VZ
29858fi
29859
009fead0
VZ
29860CODE_GEN_FLAGS=
29861CODE_GEN_FLAGS_CXX=
88e30f2b 29862if test "$GCC" = "yes" ; then
4f14bcd8
GD
29863 if test "$wxUSE_NO_RTTI" = "yes" ; then
29864 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29865 fi
4f14bcd8
GD
29866 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29867 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29868 fi
29869 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29870 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29871 fi
4f14bcd8
GD
29872 if test "$USE_WIN32" = 1 ; then
29873 # I'm not even really sure what this was ever added to solve,
29874 # but someone added it for mingw native builds, so I guess
29875 # they had a reason, right??
29876 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29877 fi
1d1b75ac 29878
2b5f62a0 29879 case "${host}" in
1d1b75ac
VZ
29880 powerpc*-*-aix* )
29881 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29882 ;;
2b5f62a0
VZ
29883 *-hppa* )
29884 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29885 ;;
1d1b75ac 29886 esac
4f14bcd8
GD
29887fi
29888
af7b5345 29889OPTIMISE=
4f14bcd8 29890if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29891 if test "$GCC" = yes ; then
29892 OPTIMISE="-O0"
29893 fi
4f14bcd8
GD
29894else
29895 if test "$GCC" = yes ; then
29896 OPTIMISE="-O2"
af7b5345
VZ
29897
29898 case "${host}" in
4f14bcd8
GD
29899 i586-*-*|i686-*-* )
29900 OPTIMISE="${OPTIMISE} "
29901 ;;
29902 esac
29903 else
29904 OPTIMISE="-O"
29905 fi
29906fi
29907
8d90d2f2 29908
4f14bcd8 29909if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29910 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29911#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29912_ACEOF
4f14bcd8 29913
8284b0c5 29914
4f14bcd8
GD
29915 WXWIN_COMPATIBILITY_2_2="yes"
29916fi
29917
65d8ef1e 29918if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 29919 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29920#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 29921_ACEOF
4f14bcd8 29922
8d90d2f2
VZ
29923
29924 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
29925fi
29926
65d8ef1e 29927if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 29928 cat >>confdefs.h <<\_ACEOF
65d8ef1e 29929#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 29930_ACEOF
65d8ef1e
VS
29931
29932fi
29933
8284b0c5 29934
10f2d63a 29935if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 29936 cat >>confdefs.h <<\_ACEOF
10f2d63a 29937#define wxUSE_GUI 1
e6cc62c6 29938_ACEOF
10f2d63a 29939
8284b0c5 29940
10f2d63a 29941 else
e6cc62c6 29942 cat >>confdefs.h <<\_ACEOF
10f2d63a 29943#define wxUSE_NOGUI 1
e6cc62c6 29944_ACEOF
10f2d63a
VZ
29945
29946fi
29947
8284b0c5 29948
10f2d63a 29949if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 29950 cat >>confdefs.h <<\_ACEOF
10f2d63a 29951#define wxUSE_UNIX 1
e6cc62c6 29952_ACEOF
10f2d63a
VZ
29953
29954fi
29955
8284b0c5 29956
10f2d63a 29957if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 29958 cat >>confdefs.h <<\_ACEOF
10f2d63a 29959#define wxUSE_APPLE_IEEE 1
e6cc62c6 29960_ACEOF
10f2d63a
VZ
29961
29962fi
29963
1e6feb95 29964if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 29965 cat >>confdefs.h <<\_ACEOF
1e6feb95 29966#define wxUSE_TIMER 1
e6cc62c6 29967_ACEOF
1e6feb95
VZ
29968
29969fi
29970
10f2d63a 29971if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 29972 cat >>confdefs.h <<\_ACEOF
10f2d63a 29973#define wxUSE_WAVE 1
e6cc62c6 29974_ACEOF
10f2d63a
VZ
29975
29976fi
29977
1e6feb95 29978if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 29979 cat >>confdefs.h <<\_ACEOF
1e6feb95 29980#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 29981_ACEOF
1e6feb95
VZ
29982
29983fi
29984
29985if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 29986 cat >>confdefs.h <<\_ACEOF
1e6feb95 29987#define wxUSE_STOPWATCH 1
e6cc62c6 29988_ACEOF
1e6feb95
VZ
29989
29990fi
29991
29992if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 29993 cat >>confdefs.h <<\_ACEOF
1e6feb95 29994#define wxUSE_DATETIME 1
e6cc62c6 29995_ACEOF
1e6feb95
VZ
29996
29997fi
29998
10f2d63a 29999if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30000 cat >>confdefs.h <<\_ACEOF
10f2d63a 30001#define wxUSE_FILE 1
e6cc62c6 30002_ACEOF
10f2d63a
VZ
30003
30004fi
30005
1e6feb95 30006if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30007 cat >>confdefs.h <<\_ACEOF
1e6feb95 30008#define wxUSE_FFILE 1
e6cc62c6 30009_ACEOF
1e6feb95
VZ
30010
30011fi
30012
24528b0c 30013if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30014 cat >>confdefs.h <<\_ACEOF
24528b0c 30015#define wxUSE_FILESYSTEM 1
e6cc62c6 30016_ACEOF
24528b0c
VS
30017
30018fi
30019
10f2d63a 30020if test "$wxUSE_FS_INET" = "yes"; then
e6cc62c6 30021 cat >>confdefs.h <<\_ACEOF
10f2d63a 30022#define wxUSE_FS_INET 1
e6cc62c6 30023_ACEOF
10f2d63a
VZ
30024
30025fi
30026
30027if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30028 cat >>confdefs.h <<\_ACEOF
10f2d63a 30029#define wxUSE_FS_ZIP 1
e6cc62c6 30030_ACEOF
10f2d63a
VZ
30031
30032fi
30033
30034if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30035 cat >>confdefs.h <<\_ACEOF
10f2d63a 30036#define wxUSE_ZIPSTREAM 1
e6cc62c6 30037_ACEOF
10f2d63a
VZ
30038
30039fi
30040
eb4efbdc 30041if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30042 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30043#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30044_ACEOF
eb4efbdc
VZ
30045
30046fi
30047
4f3c5f06 30048if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30049 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30050#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30051_ACEOF
4f3c5f06
VZ
30052
30053fi
30054
10f2d63a 30055if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30056 cat >>confdefs.h <<\_ACEOF
10f2d63a 30057#define wxUSE_BUSYINFO 1
e6cc62c6 30058_ACEOF
10f2d63a
VZ
30059
30060fi
30061
30062if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30063 cat >>confdefs.h <<\_ACEOF
10f2d63a 30064#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30065_ACEOF
10f2d63a
VZ
30066
30067fi
30068
a3a584a7 30069if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30070 cat >>confdefs.h <<\_ACEOF
a3a584a7 30071#define wxUSE_TEXTBUFFER 1
e6cc62c6 30072_ACEOF
a3a584a7
VZ
30073
30074fi
30075
10f2d63a 30076if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30077 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30078 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30079echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30080 else
e6cc62c6 30081 cat >>confdefs.h <<\_ACEOF
10f2d63a 30082#define wxUSE_TEXTFILE 1
e6cc62c6 30083_ACEOF
10f2d63a
VZ
30084
30085 fi
30086fi
30087
30088if test "$wxUSE_CONFIG" = "yes" ; then
30089 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30090 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30091echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30092 else
e6cc62c6 30093 cat >>confdefs.h <<\_ACEOF
10f2d63a 30094#define wxUSE_CONFIG 1
e6cc62c6 30095_ACEOF
10f2d63a
VZ
30096
30097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30098 fi
30099fi
30100
30101if test "$wxUSE_INTL" = "yes" ; then
30102 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30103 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30104echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30105 else
e6cc62c6 30106 cat >>confdefs.h <<\_ACEOF
10f2d63a 30107#define wxUSE_INTL 1
e6cc62c6 30108_ACEOF
10f2d63a
VZ
30109
30110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30111 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30112 fi
30113fi
30114
30115if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30116 cat >>confdefs.h <<\_ACEOF
10f2d63a 30117#define wxUSE_LOG 1
e6cc62c6 30118_ACEOF
10f2d63a 30119
8284b0c5 30120
d73be714 30121 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30122 cat >>confdefs.h <<\_ACEOF
d73be714 30123#define wxUSE_LOGGUI 1
e6cc62c6 30124_ACEOF
d73be714
VZ
30125
30126 fi
30127
30128 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30129 cat >>confdefs.h <<\_ACEOF
d73be714 30130#define wxUSE_LOGWINDOW 1
e6cc62c6 30131_ACEOF
69d27ff7
MB
30132
30133 fi
30134
30135 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30136 cat >>confdefs.h <<\_ACEOF
69d27ff7 30137#define wxUSE_LOG_DIALOG 1
e6cc62c6 30138_ACEOF
d73be714
VZ
30139
30140 fi
10f2d63a
VZ
30141fi
30142
30143if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30144 cat >>confdefs.h <<\_ACEOF
10f2d63a 30145#define wxUSE_LONGLONG 1
e6cc62c6 30146_ACEOF
10f2d63a
VZ
30147
30148fi
30149
e8f65ba6 30150if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30151 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30152#define wxUSE_GEOMETRY 1
e6cc62c6 30153_ACEOF
e8f65ba6
RR
30154
30155fi
30156
10f2d63a 30157if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30158 cat >>confdefs.h <<\_ACEOF
10f2d63a 30159#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30160_ACEOF
10f2d63a 30161
70f7a477 30162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30163fi
30164
30165if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30166 cat >>confdefs.h <<\_ACEOF
10f2d63a 30167#define wxUSE_STREAMS 1
e6cc62c6 30168_ACEOF
10f2d63a
VZ
30169
30170fi
30171
5c6fa7d2 30172
8284b0c5 30173if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30174
30175for ac_func in strptime
83307f33 30176do
e6cc62c6
VS
30177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30178echo "$as_me:$LINENO: checking for $ac_func" >&5
30179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30180if eval "test \"\${$as_ac_var+set}\" = set"; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30182else
30183 cat >conftest.$ac_ext <<_ACEOF
30184#line $LINENO "configure"
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
83307f33 30190/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30191 which can conflict with char $ac_func (); below.
30192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30193 <limits.h> exists even on freestanding compilers. */
30194#ifdef __STDC__
30195# include <limits.h>
30196#else
30197# include <assert.h>
30198#endif
83307f33 30199/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30200#ifdef __cplusplus
30201extern "C"
30202{
30203#endif
83307f33 30204/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30205 builtin and then its argument prototype would still apply. */
30206char $ac_func ();
83307f33
VZ
30207/* The GNU C library defines this for functions which it implements
30208 to always fail with ENOSYS. Some functions are actually named
30209 something starting with __ and the normal name is an alias. */
30210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30211choke me
30212#else
e6cc62c6
VS
30213char (*f) () = $ac_func;
30214#endif
30215#ifdef __cplusplus
30216}
83307f33
VZ
30217#endif
30218
e6cc62c6
VS
30219int
30220main ()
30221{
30222return f != $ac_func;
30223 ;
30224 return 0;
30225}
30226_ACEOF
30227rm -f conftest.$ac_objext conftest$ac_exeext
30228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30229 (eval $ac_link) 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } &&
30233 { ac_try='test -s conftest$ac_exeext'
30234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235 (eval $ac_try) 2>&5
30236 ac_status=$?
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; }; then
30239 eval "$as_ac_var=yes"
30240else
30241 echo "$as_me: failed program was:" >&5
30242sed 's/^/| /' conftest.$ac_ext >&5
30243
30244eval "$as_ac_var=no"
30245fi
30246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30247fi
30248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30250if test `eval echo '${'$as_ac_var'}'` = yes; then
30251 cat >>confdefs.h <<_ACEOF
30252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30253_ACEOF
83307f33 30254
83307f33
VZ
30255fi
30256done
30257
5c6fa7d2 30258
e6cc62c6
VS
30259 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30260echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30261if test "${wx_cv_var_timezone+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30263else
e6cc62c6
VS
30264
30265 cat >conftest.$ac_ext <<_ACEOF
30266#line $LINENO "configure"
30267/* confdefs.h. */
30268_ACEOF
30269cat confdefs.h >>conftest.$ac_ext
30270cat >>conftest.$ac_ext <<_ACEOF
30271/* end confdefs.h. */
360d6699 30272
b4085ce6 30273 #include <time.h>
e6cc62c6
VS
30274
30275int
30276main ()
30277{
360d6699
VZ
30278
30279 int tz;
4f11a343 30280 tz = timezone;
e6cc62c6
VS
30281
30282 ;
30283 return 0;
30284}
30285_ACEOF
30286rm -f conftest.$ac_objext
30287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30288 (eval $ac_compile) 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } &&
30292 { ac_try='test -s conftest.$ac_objext'
30293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
30298
4f11a343 30299 wx_cv_var_timezone=timezone
e6cc62c6 30300
360d6699 30301else
e6cc62c6
VS
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305
30306 cat >conftest.$ac_ext <<_ACEOF
30307#line $LINENO "configure"
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
360d6699 30313
b4085ce6 30314 #include <time.h>
e6cc62c6
VS
30315
30316int
30317main ()
30318{
360d6699
VZ
30319
30320 int tz;
30321 tz = _timezone;
e6cc62c6
VS
30322
30323 ;
30324 return 0;
30325}
30326_ACEOF
30327rm -f conftest.$ac_objext
30328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30329 (eval $ac_compile) 2>&5
30330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } &&
30333 { ac_try='test -s conftest.$ac_objext'
30334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30335 (eval $ac_try) 2>&5
30336 ac_status=$?
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); }; }; then
30339
360d6699 30340 wx_cv_var_timezone=_timezone
e6cc62c6 30341
5357c8e8 30342else
e6cc62c6
VS
30343 echo "$as_me: failed program was:" >&5
30344sed 's/^/| /' conftest.$ac_ext >&5
30345
30346
30347 cat >conftest.$ac_ext <<_ACEOF
30348#line $LINENO "configure"
30349/* confdefs.h. */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h. */
5357c8e8 30354
b4085ce6 30355 #include <time.h>
e6cc62c6
VS
30356
30357int
30358main ()
30359{
5357c8e8
VZ
30360
30361 int tz;
4f11a343 30362 tz = __timezone;
e6cc62c6
VS
30363
30364 ;
30365 return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30370 (eval $ac_compile) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380
4f11a343 30381 wx_cv_var_timezone=__timezone
e6cc62c6 30382
360d6699 30383else
e6cc62c6
VS
30384 echo "$as_me: failed program was:" >&5
30385sed 's/^/| /' conftest.$ac_ext >&5
30386
30387
f9bc1684 30388 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30389 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30390echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30391 fi
e6cc62c6
VS
30392
30393
7b4a847f 30394fi
e6cc62c6
VS
30395rm -f conftest.$ac_objext conftest.$ac_ext
30396
30397
5c6fa7d2 30398fi
e6cc62c6
VS
30399rm -f conftest.$ac_objext conftest.$ac_ext
30400
30401
247f5006 30402fi
e6cc62c6 30403rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30404
e6cc62c6
VS
30405
30406fi
30407echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30408echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30409
f9bc1684 30410 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30411 cat >>confdefs.h <<_ACEOF
360d6699 30412#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30413_ACEOF
360d6699 30414
f9bc1684 30415 fi
698dcdb6 30416
e6cc62c6
VS
30417
30418for ac_func in localtime
afc31813 30419do
e6cc62c6
VS
30420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30421echo "$as_me:$LINENO: checking for $ac_func" >&5
30422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30423if eval "test \"\${$as_ac_var+set}\" = set"; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
30427#line $LINENO "configure"
30428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
afc31813 30433/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30434 which can conflict with char $ac_func (); below.
30435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30436 <limits.h> exists even on freestanding compilers. */
30437#ifdef __STDC__
30438# include <limits.h>
30439#else
30440# include <assert.h>
30441#endif
afc31813 30442/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30443#ifdef __cplusplus
30444extern "C"
30445{
30446#endif
afc31813 30447/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30448 builtin and then its argument prototype would still apply. */
30449char $ac_func ();
afc31813
VZ
30450/* The GNU C library defines this for functions which it implements
30451 to always fail with ENOSYS. Some functions are actually named
30452 something starting with __ and the normal name is an alias. */
30453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30454choke me
30455#else
e6cc62c6
VS
30456char (*f) () = $ac_func;
30457#endif
30458#ifdef __cplusplus
30459}
afc31813
VZ
30460#endif
30461
e6cc62c6
VS
30462int
30463main ()
30464{
30465return f != $ac_func;
30466 ;
30467 return 0;
30468}
30469_ACEOF
30470rm -f conftest.$ac_objext conftest$ac_exeext
30471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30472 (eval $ac_link) 2>&5
30473 ac_status=$?
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } &&
30476 { ac_try='test -s conftest$ac_exeext'
30477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478 (eval $ac_try) 2>&5
30479 ac_status=$?
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); }; }; then
30482 eval "$as_ac_var=yes"
30483else
30484 echo "$as_me: failed program was:" >&5
30485sed 's/^/| /' conftest.$ac_ext >&5
30486
30487eval "$as_ac_var=no"
30488fi
30489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30490fi
30491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30493if test `eval echo '${'$as_ac_var'}'` = yes; then
30494 cat >>confdefs.h <<_ACEOF
30495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30496_ACEOF
afc31813 30497
afc31813
VZ
30498fi
30499done
30500
5c6fa7d2 30501
8284b0c5 30502 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30503 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30504echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30505if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30507else
e6cc62c6
VS
30508
30509 cat >conftest.$ac_ext <<_ACEOF
30510#line $LINENO "configure"
30511/* confdefs.h. */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h. */
0470b1e6 30516
b4085ce6 30517 #include <time.h>
e6cc62c6
VS
30518
30519int
30520main ()
30521{
0470b1e6
VZ
30522
30523 struct tm tm;
30524 tm.tm_gmtoff++;
e6cc62c6
VS
30525
30526 ;
30527 return 0;
30528}
30529_ACEOF
30530rm -f conftest.$ac_objext
30531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30532 (eval $ac_compile) 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -s conftest.$ac_objext'
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542
f03a98d8 30543 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30544
0470b1e6 30545else
e6cc62c6
VS
30546 echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
30549wx_cv_struct_tm_has_gmtoff=no
30550
247f5006 30551fi
e6cc62c6 30552rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30553
e6cc62c6
VS
30554fi
30555echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30556echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30557 fi
30558
30559 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30560 cat >>confdefs.h <<\_ACEOF
6232543b 30561#define WX_GMTOFF_IN_TM 1
e6cc62c6 30562_ACEOF
0470b1e6 30563
3fcdd07b
VZ
30564 fi
30565
e6cc62c6
VS
30566
30567
30568for ac_func in gettimeofday ftime
3fcdd07b 30569do
e6cc62c6
VS
30570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30571echo "$as_me:$LINENO: checking for $ac_func" >&5
30572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30573if eval "test \"\${$as_ac_var+set}\" = set"; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30575else
30576 cat >conftest.$ac_ext <<_ACEOF
30577#line $LINENO "configure"
30578/* confdefs.h. */
30579_ACEOF
30580cat confdefs.h >>conftest.$ac_ext
30581cat >>conftest.$ac_ext <<_ACEOF
30582/* end confdefs.h. */
3fcdd07b 30583/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30584 which can conflict with char $ac_func (); below.
30585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30586 <limits.h> exists even on freestanding compilers. */
30587#ifdef __STDC__
30588# include <limits.h>
30589#else
30590# include <assert.h>
30591#endif
3fcdd07b 30592/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30593#ifdef __cplusplus
30594extern "C"
30595{
30596#endif
3fcdd07b 30597/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30598 builtin and then its argument prototype would still apply. */
30599char $ac_func ();
3fcdd07b
VZ
30600/* The GNU C library defines this for functions which it implements
30601 to always fail with ENOSYS. Some functions are actually named
30602 something starting with __ and the normal name is an alias. */
30603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30604choke me
30605#else
e6cc62c6
VS
30606char (*f) () = $ac_func;
30607#endif
30608#ifdef __cplusplus
30609}
3fcdd07b
VZ
30610#endif
30611
e6cc62c6
VS
30612int
30613main ()
30614{
30615return f != $ac_func;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext conftest$ac_exeext
30621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30622 (eval $ac_link) 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
30626 { ac_try='test -s conftest$ac_exeext'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; }; then
30632 eval "$as_ac_var=yes"
30633else
30634 echo "$as_me: failed program was:" >&5
30635sed 's/^/| /' conftest.$ac_ext >&5
30636
30637eval "$as_ac_var=no"
30638fi
30639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30640fi
30641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30643if test `eval echo '${'$as_ac_var'}'` = yes; then
30644 cat >>confdefs.h <<_ACEOF
30645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30646_ACEOF
3fcdd07b 30647 break
3fcdd07b
VZ
30648fi
30649done
30650
698dcdb6 30651
8284b0c5 30652 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30653 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30654echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30655if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
30657else
30658
30659
30660
30661 ac_ext=cc
5c6fa7d2 30662ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30666
8284b0c5 30667
e6cc62c6
VS
30668 cat >conftest.$ac_ext <<_ACEOF
30669#line $LINENO "configure"
30670/* confdefs.h. */
30671_ACEOF
30672cat confdefs.h >>conftest.$ac_ext
30673cat >>conftest.$ac_ext <<_ACEOF
30674/* end confdefs.h. */
afc31813
VZ
30675
30676 #include <sys/time.h>
30677 #include <unistd.h>
e6cc62c6
VS
30678
30679int
30680main ()
30681{
afc31813
VZ
30682
30683 struct timeval tv;
776862b4 30684 gettimeofday(&tv, NULL);
e6cc62c6
VS
30685
30686 ;
30687 return 0;
30688}
30689_ACEOF
30690rm -f conftest.$ac_objext
30691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30692 (eval $ac_compile) 2>&5
30693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
30696 { ac_try='test -s conftest.$ac_objext'
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; }; then
afc31813 30702 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30703else
e6cc62c6
VS
30704 echo "$as_me: failed program was:" >&5
30705sed 's/^/| /' conftest.$ac_ext >&5
30706
30707cat >conftest.$ac_ext <<_ACEOF
30708#line $LINENO "configure"
30709/* confdefs.h. */
30710_ACEOF
30711cat confdefs.h >>conftest.$ac_ext
30712cat >>conftest.$ac_ext <<_ACEOF
30713/* end confdefs.h. */
afc31813
VZ
30714
30715 #include <sys/time.h>
30716 #include <unistd.h>
e6cc62c6
VS
30717
30718int
30719main ()
30720{
afc31813
VZ
30721
30722 struct timeval tv;
30723 gettimeofday(&tv);
e6cc62c6
VS
30724
30725 ;
30726 return 0;
30727}
30728_ACEOF
30729rm -f conftest.$ac_objext
30730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30731 (eval $ac_compile) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } &&
30735 { ac_try='test -s conftest.$ac_objext'
30736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30737 (eval $ac_try) 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; }; then
afc31813 30741 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30742else
e6cc62c6
VS
30743 echo "$as_me: failed program was:" >&5
30744sed 's/^/| /' conftest.$ac_ext >&5
30745
30746
30747 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30748echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30749 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30750
30751
10f2d63a 30752fi
e6cc62c6
VS
30753rm -f conftest.$ac_objext conftest.$ac_ext
30754
10f2d63a 30755fi
e6cc62c6 30756rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30757 ac_ext=c
10f2d63a 30758ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30761ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30762
a0b9e27f 30763
e6cc62c6
VS
30764fi
30765echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30766echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30767
afc31813 30768 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30769 cat >>confdefs.h <<\_ACEOF
afc31813 30770#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30771_ACEOF
afc31813
VZ
30772
30773 fi
30774 fi
30775
afc31813
VZ
30776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30777fi
30778
8284b0c5 30779
52127426 30780if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30781 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30782 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30783echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30784 wxUSE_SOCKETS="no"
30785 fi
0feee163 30786fi
b089607b 30787
0feee163
VZ
30788if test "$wxUSE_SOCKETS" = "yes"; then
30789 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30790 echo "$as_me:$LINENO: checking for socket" >&5
30791echo $ECHO_N "checking for socket... $ECHO_C" >&6
30792if test "${ac_cv_func_socket+set}" = set; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795 cat >conftest.$ac_ext <<_ACEOF
30796#line $LINENO "configure"
30797/* confdefs.h. */
30798_ACEOF
30799cat confdefs.h >>conftest.$ac_ext
30800cat >>conftest.$ac_ext <<_ACEOF
30801/* end confdefs.h. */
c63c7106 30802/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30803 which can conflict with char socket (); below.
30804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30805 <limits.h> exists even on freestanding compilers. */
30806#ifdef __STDC__
30807# include <limits.h>
30808#else
30809# include <assert.h>
30810#endif
c63c7106 30811/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30812#ifdef __cplusplus
30813extern "C"
30814{
30815#endif
c63c7106 30816/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30817 builtin and then its argument prototype would still apply. */
30818char socket ();
c63c7106
VZ
30819/* The GNU C library defines this for functions which it implements
30820 to always fail with ENOSYS. Some functions are actually named
30821 something starting with __ and the normal name is an alias. */
30822#if defined (__stub_socket) || defined (__stub___socket)
30823choke me
30824#else
e6cc62c6
VS
30825char (*f) () = socket;
30826#endif
30827#ifdef __cplusplus
30828}
c63c7106
VZ
30829#endif
30830
e6cc62c6
VS
30831int
30832main ()
30833{
30834return f != socket;
30835 ;
30836 return 0;
30837}
30838_ACEOF
30839rm -f conftest.$ac_objext conftest$ac_exeext
30840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841 (eval $ac_link) 2>&5
30842 ac_status=$?
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } &&
30845 { ac_try='test -s conftest$ac_exeext'
30846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847 (eval $ac_try) 2>&5
30848 ac_status=$?
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); }; }; then
30851 ac_cv_func_socket=yes
30852else
30853 echo "$as_me: failed program was:" >&5
30854sed 's/^/| /' conftest.$ac_ext >&5
30855
30856ac_cv_func_socket=no
30857fi
30858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30859fi
30860echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30861echo "${ECHO_T}$ac_cv_func_socket" >&6
30862if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30863 :
30864else
e6cc62c6
VS
30865 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30866echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30867if test "${ac_cv_lib_socket_socket+set}" = set; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30869else
e6cc62c6 30870 ac_check_lib_save_LIBS=$LIBS
c63c7106 30871LIBS="-lsocket $LIBS"
e6cc62c6
VS
30872cat >conftest.$ac_ext <<_ACEOF
30873#line $LINENO "configure"
30874/* confdefs.h. */
30875_ACEOF
30876cat confdefs.h >>conftest.$ac_ext
30877cat >>conftest.$ac_ext <<_ACEOF
30878/* end confdefs.h. */
30879
c63c7106 30880/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30881#ifdef __cplusplus
30882extern "C"
30883#endif
c63c7106 30884/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30885 builtin and then its argument prototype would still apply. */
30886char socket ();
30887int
30888main ()
30889{
30890socket ();
30891 ;
30892 return 0;
30893}
30894_ACEOF
30895rm -f conftest.$ac_objext conftest$ac_exeext
30896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30897 (eval $ac_link) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } &&
30901 { ac_try='test -s conftest$ac_exeext'
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 ac_cv_lib_socket_socket=yes
30908else
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
30912ac_cv_lib_socket_socket=no
30913fi
30914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30915LIBS=$ac_check_lib_save_LIBS
30916fi
30917echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30918echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30919if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
30920 if test "$INET_LINK" != " -lsocket"; then
30921 INET_LINK="$INET_LINK -lsocket"
30922 fi
c63c7106 30923else
afc31813 30924
e6cc62c6
VS
30925 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30926echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 30927 wxUSE_SOCKETS=no
e6cc62c6
VS
30928
30929
6232543b 30930fi
b089607b 30931
e6cc62c6 30932
1e487827 30933fi
afc31813 30934
3a922bb4 30935 fi
0feee163 30936fi
51a9faba 30937
0feee163
VZ
30938if test "$wxUSE_SOCKETS" = "yes" ; then
30939 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30940 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30941echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30942if test "${wx_cv_type_getsockname3+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30944else
e6cc62c6
VS
30945
30946 cat >conftest.$ac_ext <<_ACEOF
30947#line $LINENO "configure"
30948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
51a9faba 30953
3a922bb4
RL
30954 #include <sys/types.h>
30955 #include <sys/socket.h>
e6cc62c6
VS
30956
30957int
30958main ()
30959{
51a9faba 30960
3a922bb4
RL
30961 socklen_t len;
30962 getsockname(0, 0, &len);
e6cc62c6
VS
30963
30964 ;
30965 return 0;
30966}
30967_ACEOF
30968rm -f conftest.$ac_objext
30969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30970 (eval $ac_compile) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } &&
30974 { ac_try='test -s conftest.$ac_objext'
30975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976 (eval $ac_try) 2>&5
30977 ac_status=$?
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
51a9faba 30980 wx_cv_type_getsockname3=socklen_t
afc31813 30981else
e6cc62c6
VS
30982 echo "$as_me: failed program was:" >&5
30983sed 's/^/| /' conftest.$ac_ext >&5
30984
30985
9711d31e
GD
30986 CFLAGS_OLD="$CFLAGS"
30987 if test "$GCC" = yes ; then
30988 CFLAGS="$CFLAGS -Werror"
30989 fi
30990
e6cc62c6
VS
30991 cat >conftest.$ac_ext <<_ACEOF
30992#line $LINENO "configure"
30993/* confdefs.h. */
30994_ACEOF
30995cat confdefs.h >>conftest.$ac_ext
30996cat >>conftest.$ac_ext <<_ACEOF
30997/* end confdefs.h. */
51a9faba 30998
9711d31e
GD
30999 #include <sys/types.h>
31000 #include <sys/socket.h>
e6cc62c6
VS
31001
31002int
31003main ()
31004{
51a9faba 31005
9711d31e
GD
31006 size_t len;
31007 getsockname(0, 0, &len);
e6cc62c6
VS
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext
31014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31015 (eval $ac_compile) 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); } &&
31019 { ac_try='test -s conftest.$ac_objext'
31020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
51a9faba 31025 wx_cv_type_getsockname3=size_t
afc31813 31026else
e6cc62c6
VS
31027 echo "$as_me: failed program was:" >&5
31028sed 's/^/| /' conftest.$ac_ext >&5
31029
31030cat >conftest.$ac_ext <<_ACEOF
31031#line $LINENO "configure"
31032/* confdefs.h. */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h. */
51a9faba 31037
9711d31e
GD
31038 #include <sys/types.h>
31039 #include <sys/socket.h>
e6cc62c6
VS
31040
31041int
31042main ()
31043{
51a9faba 31044
9711d31e
GD
31045 int len;
31046 getsockname(0, 0, &len);
e6cc62c6
VS
31047
31048 ;
31049 return 0;
31050}
31051_ACEOF
31052rm -f conftest.$ac_objext
31053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31054 (eval $ac_compile) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } &&
31058 { ac_try='test -s conftest.$ac_objext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
51a9faba 31064 wx_cv_type_getsockname3=int
afc31813 31065else
e6cc62c6
VS
31066 echo "$as_me: failed program was:" >&5
31067sed 's/^/| /' conftest.$ac_ext >&5
31068
31069wx_cv_type_getsockname3=unknown
31070
afc31813 31071fi
e6cc62c6
VS
31072rm -f conftest.$ac_objext conftest.$ac_ext
31073
afc31813 31074fi
e6cc62c6 31075rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31076
31077 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31078
31079
247f5006 31080fi
e6cc62c6 31081rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31082
e6cc62c6
VS
31083fi
31084echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31085echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31086
3a922bb4
RL
31087 if test "$wx_cv_type_getsockname3" = "unknown"; then
31088 wxUSE_SOCKETS=no
e6cc62c6
VS
31089 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31090echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31091 else
e6cc62c6 31092 cat >>confdefs.h <<_ACEOF
51a9faba 31093#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31094_ACEOF
51a9faba 31095
3a922bb4 31096 fi
51a9faba
VZ
31097 fi
31098fi
afc31813 31099
51a9faba 31100if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31101 cat >>confdefs.h <<\_ACEOF
afc31813 31102#define wxUSE_SOCKETS 1
e6cc62c6 31103_ACEOF
afc31813 31104
70f7a477 31105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31106fi
31107
8284b0c5 31108
dc3d889d
VZ
31109if test "$wxUSE_GUI" = "yes"; then
31110
ac0c4cc3 31111 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31112 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31113echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
31114 wxUSE_JOYSTICK=no
31115 fi
31116 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
31117 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31118echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31119 wxUSE_JOYSTICK=no
f79bd02d
JS
31120 fi
31121 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31122 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31123echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31124 wxUSE_JOYSTICK=no
156b2523
GD
31125 fi
31126
3a922bb4
RL
31127 if test "$TOOLKIT" != "MSW"; then
31128 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31129
31130for ac_header in linux/joystick.h
10f2d63a 31131do
e6cc62c6
VS
31132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31133if eval "test \"\${$as_ac_Header+set}\" = set"; then
31134 echo "$as_me:$LINENO: checking for $ac_header" >&5
31135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31136if eval "test \"\${$as_ac_Header+set}\" = set"; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31138fi
31139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31141else
31142 # Is the header compilable?
31143echo "$as_me:$LINENO: checking $ac_header usability" >&5
31144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31145cat >conftest.$ac_ext <<_ACEOF
31146#line $LINENO "configure"
31147/* confdefs.h. */
31148_ACEOF
31149cat confdefs.h >>conftest.$ac_ext
31150cat >>conftest.$ac_ext <<_ACEOF
31151/* end confdefs.h. */
31152$ac_includes_default
31153#include <$ac_header>
31154_ACEOF
31155rm -f conftest.$ac_objext
31156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31157 (eval $ac_compile) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
31161 { ac_try='test -s conftest.$ac_objext'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31167 ac_header_compiler=yes
31168else
31169 echo "$as_me: failed program was:" >&5
31170sed 's/^/| /' conftest.$ac_ext >&5
31171
31172ac_header_compiler=no
31173fi
31174rm -f conftest.$ac_objext conftest.$ac_ext
31175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31176echo "${ECHO_T}$ac_header_compiler" >&6
31177
31178# Is the header present?
31179echo "$as_me:$LINENO: checking $ac_header presence" >&5
31180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31181cat >conftest.$ac_ext <<_ACEOF
31182#line $LINENO "configure"
31183/* confdefs.h. */
31184_ACEOF
31185cat confdefs.h >>conftest.$ac_ext
31186cat >>conftest.$ac_ext <<_ACEOF
31187/* end confdefs.h. */
31188#include <$ac_header>
31189_ACEOF
31190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31192 ac_status=$?
31193 grep -v '^ *+' conftest.er1 >conftest.err
31194 rm -f conftest.er1
31195 cat conftest.err >&5
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); } >/dev/null; then
31198 if test -s conftest.err; then
31199 ac_cpp_err=$ac_c_preproc_warn_flag
31200 else
31201 ac_cpp_err=
31202 fi
31203else
31204 ac_cpp_err=yes
31205fi
31206if test -z "$ac_cpp_err"; then
31207 ac_header_preproc=yes
31208else
31209 echo "$as_me: failed program was:" >&5
31210sed 's/^/| /' conftest.$ac_ext >&5
31211
31212 ac_header_preproc=no
31213fi
31214rm -f conftest.err conftest.$ac_ext
31215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31216echo "${ECHO_T}$ac_header_preproc" >&6
31217
31218# So? What about this header?
31219case $ac_header_compiler:$ac_header_preproc in
31220 yes:no )
31221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31225 (
31226 cat <<\_ASBOX
31227## ------------------------------------ ##
31228## Report this to bug-autoconf@gnu.org. ##
31229## ------------------------------------ ##
31230_ASBOX
31231 ) |
31232 sed "s/^/$as_me: WARNING: /" >&2
31233 ;;
31234 no:yes )
31235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31241 (
31242 cat <<\_ASBOX
31243## ------------------------------------ ##
31244## Report this to bug-autoconf@gnu.org. ##
31245## ------------------------------------ ##
31246_ASBOX
31247 ) |
31248 sed "s/^/$as_me: WARNING: /" >&2
31249 ;;
31250esac
31251echo "$as_me:$LINENO: checking for $ac_header" >&5
31252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31253if eval "test \"\${$as_ac_Header+set}\" = set"; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31255else
31256 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31257fi
e6cc62c6
VS
31258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31260
10f2d63a 31261fi
e6cc62c6
VS
31262if test `eval echo '${'$as_ac_Header'}'` = yes; then
31263 cat >>confdefs.h <<_ACEOF
31264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31265_ACEOF
31266
247f5006 31267fi
e6cc62c6 31268
10f2d63a
VZ
31269done
31270
3a922bb4
RL
31271 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31272 wxUSE_JOYSTICK=no
e6cc62c6
VS
31273 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31274echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31275 fi
31276 fi
31277 fi
b089607b 31278
3a922bb4 31279 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31280 cat >>confdefs.h <<\_ACEOF
10f2d63a 31281#define wxUSE_JOYSTICK 1
e6cc62c6 31282_ACEOF
10f2d63a 31283
3a922bb4
RL
31284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31285 fi
dc3d889d
VZ
31286fi
31287
8284b0c5 31288
b089607b
VZ
31289if test "$TOOLKIT" != "MSW"; then
31290
3a922bb4
RL
31291 HAVE_DL_FUNCS=0
31292 HAVE_SHL_FUNCS=0
0b9ab0bd 31293 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31294 if test "$USE_DARWIN" = 1; then
31295 HAVE_DL_FUNCS=1
31296 else
e6cc62c6
VS
31297
31298for ac_func in dlopen
10f2d63a 31299do
e6cc62c6
VS
31300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31301echo "$as_me:$LINENO: checking for $ac_func" >&5
31302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31303if eval "test \"\${$as_ac_var+set}\" = set"; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31305else
31306 cat >conftest.$ac_ext <<_ACEOF
31307#line $LINENO "configure"
31308/* confdefs.h. */
31309_ACEOF
31310cat confdefs.h >>conftest.$ac_ext
31311cat >>conftest.$ac_ext <<_ACEOF
31312/* end confdefs.h. */
10f2d63a 31313/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31314 which can conflict with char $ac_func (); below.
31315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31316 <limits.h> exists even on freestanding compilers. */
31317#ifdef __STDC__
31318# include <limits.h>
31319#else
31320# include <assert.h>
31321#endif
10f2d63a 31322/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31323#ifdef __cplusplus
31324extern "C"
31325{
31326#endif
10f2d63a 31327/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31328 builtin and then its argument prototype would still apply. */
31329char $ac_func ();
10f2d63a
VZ
31330/* The GNU C library defines this for functions which it implements
31331 to always fail with ENOSYS. Some functions are actually named
31332 something starting with __ and the normal name is an alias. */
31333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31334choke me
31335#else
e6cc62c6
VS
31336char (*f) () = $ac_func;
31337#endif
31338#ifdef __cplusplus
31339}
10f2d63a
VZ
31340#endif
31341
e6cc62c6
VS
31342int
31343main ()
31344{
31345return f != $ac_func;
31346 ;
31347 return 0;
31348}
31349_ACEOF
31350rm -f conftest.$ac_objext conftest$ac_exeext
31351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31352 (eval $ac_link) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -s conftest$ac_exeext'
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 eval "$as_ac_var=yes"
31363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
31367eval "$as_ac_var=no"
31368fi
31369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31370fi
31371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31372echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31373if test `eval echo '${'$as_ac_var'}'` = yes; then
31374 cat >>confdefs.h <<_ACEOF
31375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31376_ACEOF
31377
31378 cat >>confdefs.h <<\_ACEOF
10f2d63a 31379#define HAVE_DLOPEN 1
e6cc62c6 31380_ACEOF
10f2d63a 31381
3a922bb4 31382 HAVE_DL_FUNCS=1
e6cc62c6 31383
10f2d63a 31384else
e6cc62c6
VS
31385
31386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31387echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31388if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31390else
e6cc62c6 31391 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31392LIBS="-ldl $LIBS"
e6cc62c6
VS
31393cat >conftest.$ac_ext <<_ACEOF
31394#line $LINENO "configure"
31395/* confdefs.h. */
31396_ACEOF
31397cat confdefs.h >>conftest.$ac_ext
31398cat >>conftest.$ac_ext <<_ACEOF
31399/* end confdefs.h. */
31400
10f2d63a 31401/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31402#ifdef __cplusplus
31403extern "C"
31404#endif
10f2d63a 31405/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31406 builtin and then its argument prototype would still apply. */
31407char dlopen ();
31408int
31409main ()
31410{
31411dlopen ();
31412 ;
31413 return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext conftest$ac_exeext
31417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31418 (eval $ac_link) 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); } &&
31422 { ac_try='test -s conftest$ac_exeext'
31423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424 (eval $ac_try) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; }; then
31428 ac_cv_lib_dl_dlopen=yes
31429else
31430 echo "$as_me: failed program was:" >&5
31431sed 's/^/| /' conftest.$ac_ext >&5
31432
31433ac_cv_lib_dl_dlopen=no
31434fi
31435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31436LIBS=$ac_check_lib_save_LIBS
31437fi
31438echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31439echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31440if test $ac_cv_lib_dl_dlopen = yes; then
31441
31442 cat >>confdefs.h <<\_ACEOF
10f2d63a 31443#define HAVE_DLOPEN 1
e6cc62c6 31444_ACEOF
10f2d63a 31445
3a922bb4 31446 HAVE_DL_FUNCS=1
3d63bc3a 31447 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31448
10f2d63a 31449else
10f2d63a 31450
e6cc62c6
VS
31451
31452for ac_func in shl_load
10f2d63a 31453do
e6cc62c6
VS
31454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31455echo "$as_me:$LINENO: checking for $ac_func" >&5
31456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31457if eval "test \"\${$as_ac_var+set}\" = set"; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31459else
31460 cat >conftest.$ac_ext <<_ACEOF
31461#line $LINENO "configure"
31462/* confdefs.h. */
31463_ACEOF
31464cat confdefs.h >>conftest.$ac_ext
31465cat >>conftest.$ac_ext <<_ACEOF
31466/* end confdefs.h. */
10f2d63a 31467/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31468 which can conflict with char $ac_func (); below.
31469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31470 <limits.h> exists even on freestanding compilers. */
31471#ifdef __STDC__
31472# include <limits.h>
31473#else
31474# include <assert.h>
31475#endif
10f2d63a 31476/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31477#ifdef __cplusplus
31478extern "C"
31479{
31480#endif
10f2d63a 31481/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31482 builtin and then its argument prototype would still apply. */
31483char $ac_func ();
10f2d63a
VZ
31484/* The GNU C library defines this for functions which it implements
31485 to always fail with ENOSYS. Some functions are actually named
31486 something starting with __ and the normal name is an alias. */
31487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31488choke me
31489#else
e6cc62c6
VS
31490char (*f) () = $ac_func;
31491#endif
31492#ifdef __cplusplus
31493}
10f2d63a
VZ
31494#endif
31495
e6cc62c6
VS
31496int
31497main ()
31498{
31499return f != $ac_func;
31500 ;
31501 return 0;
31502}
31503_ACEOF
31504rm -f conftest.$ac_objext conftest$ac_exeext
31505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31506 (eval $ac_link) 2>&5
31507 ac_status=$?
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } &&
31510 { ac_try='test -s conftest$ac_exeext'
31511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31512 (eval $ac_try) 2>&5
31513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
31516 eval "$as_ac_var=yes"
31517else
31518 echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
31521eval "$as_ac_var=no"
31522fi
31523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31524fi
31525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31527if test `eval echo '${'$as_ac_var'}'` = yes; then
31528 cat >>confdefs.h <<_ACEOF
31529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31530_ACEOF
31531
31532 cat >>confdefs.h <<\_ACEOF
10f2d63a 31533#define HAVE_SHL_LOAD 1
e6cc62c6 31534_ACEOF
10f2d63a 31535
3a922bb4 31536 HAVE_SHL_FUNCS=1
e6cc62c6 31537
10f2d63a 31538else
e6cc62c6
VS
31539
31540 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31541echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31542if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31543 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31544else
e6cc62c6 31545 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31546LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31547cat >conftest.$ac_ext <<_ACEOF
31548#line $LINENO "configure"
31549/* confdefs.h. */
31550_ACEOF
31551cat confdefs.h >>conftest.$ac_ext
31552cat >>conftest.$ac_ext <<_ACEOF
31553/* end confdefs.h. */
31554
8284b0c5 31555/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31556#ifdef __cplusplus
31557extern "C"
31558#endif
f6bcfd97 31559/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31560 builtin and then its argument prototype would still apply. */
31561char dld ();
31562int
31563main ()
31564{
31565dld ();
31566 ;
31567 return 0;
31568}
31569_ACEOF
31570rm -f conftest.$ac_objext conftest$ac_exeext
31571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31572 (eval $ac_link) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); } &&
31576 { ac_try='test -s conftest$ac_exeext'
31577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578 (eval $ac_try) 2>&5
31579 ac_status=$?
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); }; }; then
31582 ac_cv_lib_shl_load_dld=yes
31583else
31584 echo "$as_me: failed program was:" >&5
31585sed 's/^/| /' conftest.$ac_ext >&5
31586
31587ac_cv_lib_shl_load_dld=no
31588fi
31589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31590LIBS=$ac_check_lib_save_LIBS
31591fi
31592echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31593echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31594if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31595
3a922bb4 31596 HAVE_SHL_FUNCS=1
3d63bc3a 31597 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31598
f6bcfd97
BP
31599fi
31600
e6cc62c6 31601
10f2d63a
VZ
31602fi
31603done
31604
e6cc62c6 31605
10f2d63a
VZ
31606fi
31607
e6cc62c6 31608
10f2d63a
VZ
31609fi
31610done
31611
5c6fa7d2 31612
8284b0c5 31613 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31614
31615for ac_func in dlerror
f6bcfd97 31616do
e6cc62c6
VS
31617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31618echo "$as_me:$LINENO: checking for $ac_func" >&5
31619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31620if eval "test \"\${$as_ac_var+set}\" = set"; then
31621 echo $ECHO_N "(cached) $ECHO_C" >&6
31622else
31623 cat >conftest.$ac_ext <<_ACEOF
31624#line $LINENO "configure"
31625/* confdefs.h. */
31626_ACEOF
31627cat confdefs.h >>conftest.$ac_ext
31628cat >>conftest.$ac_ext <<_ACEOF
31629/* end confdefs.h. */
f6bcfd97 31630/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31631 which can conflict with char $ac_func (); below.
31632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31633 <limits.h> exists even on freestanding compilers. */
31634#ifdef __STDC__
31635# include <limits.h>
31636#else
31637# include <assert.h>
31638#endif
f6bcfd97 31639/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31640#ifdef __cplusplus
31641extern "C"
31642{
31643#endif
f6bcfd97 31644/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31645 builtin and then its argument prototype would still apply. */
31646char $ac_func ();
f6bcfd97
BP
31647/* The GNU C library defines this for functions which it implements
31648 to always fail with ENOSYS. Some functions are actually named
31649 something starting with __ and the normal name is an alias. */
31650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31651choke me
31652#else
e6cc62c6
VS
31653char (*f) () = $ac_func;
31654#endif
31655#ifdef __cplusplus
31656}
f6bcfd97
BP
31657#endif
31658
e6cc62c6
VS
31659int
31660main ()
31661{
31662return f != $ac_func;
31663 ;
31664 return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext conftest$ac_exeext
31668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31669 (eval $ac_link) 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } &&
31673 { ac_try='test -s conftest$ac_exeext'
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 eval "$as_ac_var=yes"
31680else
31681 echo "$as_me: failed program was:" >&5
31682sed 's/^/| /' conftest.$ac_ext >&5
31683
31684eval "$as_ac_var=no"
31685fi
31686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31687fi
31688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31690if test `eval echo '${'$as_ac_var'}'` = yes; then
31691 cat >>confdefs.h <<_ACEOF
31692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31693_ACEOF
31694 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31695#define HAVE_DLERROR 1
e6cc62c6 31696_ACEOF
f6bcfd97
BP
31697
31698else
e6cc62c6
VS
31699 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31700echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31701if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31703else
e6cc62c6 31704 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31705LIBS="-ldl $LIBS"
e6cc62c6
VS
31706cat >conftest.$ac_ext <<_ACEOF
31707#line $LINENO "configure"
31708/* confdefs.h. */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h. */
31713
f6bcfd97 31714/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31715#ifdef __cplusplus
31716extern "C"
31717#endif
f6bcfd97 31718/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31719 builtin and then its argument prototype would still apply. */
31720char dlerror ();
31721int
31722main ()
31723{
31724dlerror ();
31725 ;
31726 return 0;
31727}
31728_ACEOF
31729rm -f conftest.$ac_objext conftest$ac_exeext
31730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31731 (eval $ac_link) 2>&5
31732 ac_status=$?
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
31735 { ac_try='test -s conftest$ac_exeext'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31738 ac_status=$?
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; }; then
31741 ac_cv_lib_dl_dlerror=yes
31742else
31743 echo "$as_me: failed program was:" >&5
31744sed 's/^/| /' conftest.$ac_ext >&5
31745
31746ac_cv_lib_dl_dlerror=no
31747fi
31748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31749LIBS=$ac_check_lib_save_LIBS
31750fi
31751echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31752echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31753if test $ac_cv_lib_dl_dlerror = yes; then
31754 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31755#define HAVE_DLERROR 1
e6cc62c6 31756_ACEOF
f6bcfd97 31757
f6bcfd97
BP
31758fi
31759
31760fi
31761done
31762
3a922bb4
RL
31763 fi
31764 fi
f6bcfd97 31765
3a922bb4
RL
31766 if test "$HAVE_DL_FUNCS" = 0; then
31767 if test "$HAVE_SHL_FUNCS" = 0; then
31768 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31769 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31770echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31771 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31772 wxUSE_DYNLIB_CLASS=no
31773 else
e6cc62c6
VS
31774 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31775echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31776 fi
31777 fi
10f2d63a
VZ
31778 fi
31779 fi
31780fi
31781
0b9ab0bd 31782if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31783 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31784#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31785_ACEOF
0b9ab0bd
RL
31786
31787elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31788 cat >>confdefs.h <<\_ACEOF
10f2d63a 31789#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31790_ACEOF
10f2d63a
VZ
31791
31792fi
31793
8284b0c5 31794
1e6feb95 31795if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31796 cat >>confdefs.h <<\_ACEOF
1e6feb95 31797#define wxUSE_FONTMAP 1
e6cc62c6 31798_ACEOF
1e6feb95
VZ
31799
31800fi
31801
10f2d63a 31802if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31803 cat >>confdefs.h <<\_ACEOF
10f2d63a 31804#define wxUSE_UNICODE 1
e6cc62c6 31805_ACEOF
10f2d63a 31806
8284b0c5 31807
bbc3925a
VS
31808 if test "$wxUSE_MSW" != 1; then
31809 wxUSE_UNICODE_MSLU=no
31810 fi
a72a4bfa
VS
31811
31812 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31813 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31814echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31815if test "${ac_cv_lib_unicows_main+set}" = set; then
31816 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31817else
e6cc62c6 31818 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31819LIBS="-lunicows $LIBS"
e6cc62c6
VS
31820cat >conftest.$ac_ext <<_ACEOF
31821#line $LINENO "configure"
31822/* confdefs.h. */
31823_ACEOF
31824cat confdefs.h >>conftest.$ac_ext
31825cat >>conftest.$ac_ext <<_ACEOF
31826/* end confdefs.h. */
a72a4bfa 31827
8284b0c5 31828
e6cc62c6
VS
31829int
31830main ()
31831{
31832main ();
31833 ;
31834 return 0;
31835}
31836_ACEOF
31837rm -f conftest.$ac_objext conftest$ac_exeext
31838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31839 (eval $ac_link) 2>&5
31840 ac_status=$?
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -s conftest$ac_exeext'
31844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31845 (eval $ac_try) 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; }; then
31849 ac_cv_lib_unicows_main=yes
31850else
31851 echo "$as_me: failed program was:" >&5
31852sed 's/^/| /' conftest.$ac_ext >&5
31853
31854ac_cv_lib_unicows_main=no
31855fi
31856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31857LIBS=$ac_check_lib_save_LIBS
31858fi
31859echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31860echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31861if test $ac_cv_lib_unicows_main = yes; then
31862
31863 cat >>confdefs.h <<\_ACEOF
a72a4bfa 31864#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
31865_ACEOF
31866
a72a4bfa 31867
a72a4bfa 31868else
a72a4bfa 31869
e6cc62c6
VS
31870 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31871 Applications will only run on Windows NT/2000/XP!" >&5
31872echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31873 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 31874 wxUSE_UNICODE_MSLU=no
e6cc62c6 31875
a72a4bfa
VS
31876fi
31877
31878 fi
10f2d63a
VZ
31879fi
31880
10f2d63a 31881if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 31882 cat >>confdefs.h <<\_ACEOF
10f2d63a 31883#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 31884_ACEOF
10f2d63a
VZ
31885
31886fi
31887
8284b0c5 31888
10f2d63a 31889if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 31890 cat >>confdefs.h <<\_ACEOF
10f2d63a 31891#define wxUSE_POSTSCRIPT 1
e6cc62c6 31892_ACEOF
10f2d63a
VZ
31893
31894fi
31895
e6cc62c6 31896cat >>confdefs.h <<\_ACEOF
10f2d63a 31897#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 31898_ACEOF
10f2d63a 31899
8284b0c5 31900
e6cc62c6 31901cat >>confdefs.h <<\_ACEOF
10f2d63a 31902#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 31903_ACEOF
10f2d63a 31904
8284b0c5
MB
31905
31906
10f2d63a 31907if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 31908 cat >>confdefs.h <<\_ACEOF
10f2d63a 31909#define wxUSE_CONSTRAINTS 1
e6cc62c6 31910_ACEOF
10f2d63a
VZ
31911
31912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31913fi
31914
31915if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 31916
8284b0c5 31917
bb811f17 31918 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
e6cc62c6 31919 cat >>confdefs.h <<\_ACEOF
10f2d63a 31920#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 31921_ACEOF
10f2d63a 31922
bb811f17
JS
31923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31924 fi
10f2d63a
VZ
31925fi
31926
31927if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 31928 cat >>confdefs.h <<\_ACEOF
10f2d63a 31929#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 31930_ACEOF
10f2d63a
VZ
31931
31932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31933 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31935 fi
31936fi
31937
31938if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 31939 cat >>confdefs.h <<\_ACEOF
10f2d63a 31940#define wxUSE_HELP 1
e6cc62c6 31941_ACEOF
10f2d63a
VZ
31942
31943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 31944
77e13408 31945 if test "$wxUSE_MSW" = 1; then
031d8228 31946 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 31947 cat >>confdefs.h <<\_ACEOF
29fd3c0c 31948#define wxUSE_MS_HTML_HELP 1
e6cc62c6 31949_ACEOF
29fd3c0c 31950
3e44f09d 31951 fi
3379ed37 31952 fi
031d8228
VS
31953
31954 if test "$wxUSE_WXHTML_HELP" = "yes"; then
31955 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 31956 cat >>confdefs.h <<\_ACEOF
031d8228 31957#define wxUSE_WXHTML_HELP 1
e6cc62c6 31958_ACEOF
031d8228
VS
31959
31960 else
e6cc62c6
VS
31961 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
31962echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
31963 wxUSE_WXHTML_HELP=no
31964 fi
31965 fi
10f2d63a
VZ
31966fi
31967
31968if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
31969 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
31970 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
31971echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 31972 else
e6cc62c6 31973 cat >>confdefs.h <<\_ACEOF
10f2d63a 31974#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 31975_ACEOF
10f2d63a
VZ
31976
31977 fi
31978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
31979fi
31980
e6cc62c6
VS
31981if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
31982 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
31983echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
31984 { (exit 1); exit 1; }; }
31985fi
31986
31987
31988if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
31989 -o "$wxUSE_CLIPBOARD" = "yes" \
31990 -o "$wxUSE_OLE" = "yes" \
31991 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
31992
31993for ac_header in ole2.h
31994do
31995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31996if eval "test \"\${$as_ac_Header+set}\" = set"; then
31997 echo "$as_me:$LINENO: checking for $ac_header" >&5
31998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31999if eval "test \"\${$as_ac_Header+set}\" = set"; then
32000 echo $ECHO_N "(cached) $ECHO_C" >&6
32001fi
32002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32004else
32005 # Is the header compilable?
32006echo "$as_me:$LINENO: checking $ac_header usability" >&5
32007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32008cat >conftest.$ac_ext <<_ACEOF
32009#line $LINENO "configure"
32010/* confdefs.h. */
32011_ACEOF
32012cat confdefs.h >>conftest.$ac_ext
32013cat >>conftest.$ac_ext <<_ACEOF
32014/* end confdefs.h. */
32015$ac_includes_default
32016#include <$ac_header>
32017_ACEOF
32018rm -f conftest.$ac_objext
32019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32020 (eval $ac_compile) 2>&5
32021 ac_status=$?
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } &&
32024 { ac_try='test -s conftest.$ac_objext'
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; }; then
32030 ac_header_compiler=yes
32031else
32032 echo "$as_me: failed program was:" >&5
32033sed 's/^/| /' conftest.$ac_ext >&5
32034
32035ac_header_compiler=no
32036fi
32037rm -f conftest.$ac_objext conftest.$ac_ext
32038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32039echo "${ECHO_T}$ac_header_compiler" >&6
32040
32041# Is the header present?
32042echo "$as_me:$LINENO: checking $ac_header presence" >&5
32043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32044cat >conftest.$ac_ext <<_ACEOF
32045#line $LINENO "configure"
32046/* confdefs.h. */
32047_ACEOF
32048cat confdefs.h >>conftest.$ac_ext
32049cat >>conftest.$ac_ext <<_ACEOF
32050/* end confdefs.h. */
32051#include <$ac_header>
32052_ACEOF
32053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32055 ac_status=$?
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } >/dev/null; then
32061 if test -s conftest.err; then
32062 ac_cpp_err=$ac_c_preproc_warn_flag
32063 else
32064 ac_cpp_err=
32065 fi
32066else
32067 ac_cpp_err=yes
32068fi
32069if test -z "$ac_cpp_err"; then
32070 ac_header_preproc=yes
32071else
32072 echo "$as_me: failed program was:" >&5
32073sed 's/^/| /' conftest.$ac_ext >&5
32074
32075 ac_header_preproc=no
32076fi
32077rm -f conftest.err conftest.$ac_ext
32078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32079echo "${ECHO_T}$ac_header_preproc" >&6
32080
32081# So? What about this header?
32082case $ac_header_compiler:$ac_header_preproc in
32083 yes:no )
32084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32088 (
32089 cat <<\_ASBOX
32090## ------------------------------------ ##
32091## Report this to bug-autoconf@gnu.org. ##
32092## ------------------------------------ ##
32093_ASBOX
32094 ) |
32095 sed "s/^/$as_me: WARNING: /" >&2
32096 ;;
32097 no:yes )
32098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32104 (
32105 cat <<\_ASBOX
32106## ------------------------------------ ##
32107## Report this to bug-autoconf@gnu.org. ##
32108## ------------------------------------ ##
32109_ASBOX
32110 ) |
32111 sed "s/^/$as_me: WARNING: /" >&2
32112 ;;
32113esac
32114echo "$as_me:$LINENO: checking for $ac_header" >&5
32115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32116if eval "test \"\${$as_ac_Header+set}\" = set"; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119 eval "$as_ac_Header=$ac_header_preproc"
32120fi
32121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32123
10f2d63a 32124fi
e6cc62c6
VS
32125if test `eval echo '${'$as_ac_Header'}'` = yes; then
32126 cat >>confdefs.h <<_ACEOF
32127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32128_ACEOF
10f2d63a 32129
10f2d63a 32130fi
e6cc62c6 32131
10f2d63a
VZ
32132done
32133
8284b0c5 32134
2b9bdf71
VZ
32135 if test "$ac_cv_header_ole2_h" = "yes" ; then
32136 if test "$GCC" = yes ; then
8284b0c5
MB
32137
32138
e6cc62c6
VS
32139 ac_ext=cc
32140ac_cpp='$CXXCPP $CPPFLAGS'
32141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145
32146 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32147echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32148 cat >conftest.$ac_ext <<_ACEOF
32149#line $LINENO "configure"
32150/* confdefs.h. */
32151_ACEOF
32152cat confdefs.h >>conftest.$ac_ext
32153cat >>conftest.$ac_ext <<_ACEOF
32154/* end confdefs.h. */
8284b0c5
MB
32155#include <windows.h>
32156 #include <ole2.h>
e6cc62c6
VS
32157int
32158main ()
32159{
8284b0c5 32160
e6cc62c6
VS
32161 ;
32162 return 0;
32163}
32164_ACEOF
32165rm -f conftest.$ac_objext
32166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32167 (eval $ac_compile) 2>&5
32168 ac_status=$?
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32174 ac_status=$?
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
32177 echo "$as_me:$LINENO: result: no" >&5
32178echo "${ECHO_T}no" >&6
32179else
32180 echo "$as_me: failed program was:" >&5
32181sed 's/^/| /' conftest.$ac_ext >&5
32182
32183echo "$as_me:$LINENO: result: yes" >&5
32184echo "${ECHO_T}yes" >&6
8284b0c5
MB
32185 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32186fi
e6cc62c6 32187rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32188 ac_ext=c
8284b0c5 32189ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32192ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32193
2b9bdf71 32194 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32195 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32196 cat >>confdefs.h <<\_ACEOF
4f11a343 32197#define wxUSE_OLE 1
e6cc62c6 32198_ACEOF
4f11a343 32199
8284b0c5 32200
2b9bdf71
VZ
32201 fi
32202
e6cc62c6 32203 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32204#define wxUSE_DATAOBJ 1
e6cc62c6 32205_ACEOF
2b9bdf71
VZ
32206
32207 else
e6cc62c6
VS
32208 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32209echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32210
32211 wxUSE_CLIPBOARD=no
32212 wxUSE_DRAG_AND_DROP=no
32213 wxUSE_DATAOBJ=no
3bce6687
JS
32214 wxUSE_OLE=no
32215 fi
32216
32217 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32218 cat >>confdefs.h <<\_ACEOF
3bce6687 32219#define wxUSE_METAFILE 1
e6cc62c6 32220_ACEOF
3bce6687
JS
32221
32222
e6cc62c6 32223 cat >>confdefs.h <<\_ACEOF
3bce6687 32224#define wxUSE_ENH_METAFILE 1
e6cc62c6 32225_ACEOF
3bce6687
JS
32226
32227 fi
32228fi
32229
2b9bdf71
VZ
32230if test "$wxUSE_IPC" = "yes"; then
32231 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32232 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32233echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32234 fi
32235
e6cc62c6 32236 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32237#define wxUSE_IPC 1
e6cc62c6 32238_ACEOF
2b9bdf71
VZ
32239
32240fi
32241
32242if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32243 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32244 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32245echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32246 wxUSE_CLIPBOARD=no
32247 fi
32248
32249 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32250 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32251#define wxUSE_CLIPBOARD 1
e6cc62c6 32252_ACEOF
2b9bdf71 32253
8284b0c5 32254
e6cc62c6 32255 cat >>confdefs.h <<\_ACEOF
673f4220 32256#define wxUSE_DATAOBJ 1
e6cc62c6 32257_ACEOF
673f4220 32258
6c657b52 32259 fi
2b9bdf71
VZ
32260fi
32261
32262if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32263 if test "$wxUSE_GTK" = 1; then
32264 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32265 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32266echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32267 wxUSE_DRAG_AND_DROP=no
32268 fi
32269 fi
32270
2b9bdf71 32271 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32272 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32273echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32274 wxUSE_DRAG_AND_DROP=no
32275 fi
32276
f79bd02d 32277 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32278 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32279echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32280 wxUSE_DRAG_AND_DROP=no
32281 fi
32282
6c657b52 32283 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32284 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32285echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32286 wxUSE_DRAG_AND_DROP=no
32287 fi
32288
10f2d63a 32289 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32290 cat >>confdefs.h <<\_ACEOF
10f2d63a 32291#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32292_ACEOF
10f2d63a
VZ
32293
32294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32295 fi
32296
32297fi
32298
32299if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32300 cat >>confdefs.h <<\_ACEOF
10f2d63a 32301#define wxUSE_SPLINES 1
e6cc62c6 32302_ACEOF
10f2d63a
VZ
32303
32304fi
32305
8284b0c5 32306
1e6feb95
VZ
32307USES_CONTROLS=0
32308if test "$wxUSE_CONTROLS" = "yes"; then
32309 USES_CONTROLS=1
32310fi
32311
10f2d63a 32312if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32313 cat >>confdefs.h <<\_ACEOF
10f2d63a 32314#define wxUSE_ACCEL 1
e6cc62c6 32315_ACEOF
10f2d63a 32316
1e6feb95
VZ
32317 USES_CONTROLS=1
32318fi
32319
32320if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32321 cat >>confdefs.h <<\_ACEOF
1e6feb95 32322#define wxUSE_BUTTON 1
e6cc62c6 32323_ACEOF
1e6feb95
VZ
32324
32325 USES_CONTROLS=1
32326fi
32327
32328if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32329 cat >>confdefs.h <<\_ACEOF
1e6feb95 32330#define wxUSE_BMPBUTTON 1
e6cc62c6 32331_ACEOF
1e6feb95
VZ
32332
32333 USES_CONTROLS=1
32334fi
32335
32336if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32337 cat >>confdefs.h <<\_ACEOF
1e6feb95 32338#define wxUSE_CALENDARCTRL 1
e6cc62c6 32339_ACEOF
1e6feb95
VZ
32340
32341 USES_CONTROLS=1
32342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32343fi
32344
32345if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32346 cat >>confdefs.h <<\_ACEOF
10f2d63a 32347#define wxUSE_CARET 1
e6cc62c6 32348_ACEOF
10f2d63a 32349
1e6feb95 32350 USES_CONTROLS=1
10f2d63a
VZ
32351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32352fi
32353
32354if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32355 cat >>confdefs.h <<\_ACEOF
10f2d63a 32356#define wxUSE_COMBOBOX 1
e6cc62c6 32357_ACEOF
10f2d63a 32358
1e6feb95 32359 USES_CONTROLS=1
10f2d63a
VZ
32360fi
32361
32362if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32363 cat >>confdefs.h <<\_ACEOF
10f2d63a 32364#define wxUSE_CHOICE 1
e6cc62c6 32365_ACEOF
10f2d63a 32366
1e6feb95 32367 USES_CONTROLS=1
10f2d63a
VZ
32368fi
32369
32370if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32371 cat >>confdefs.h <<\_ACEOF
10f2d63a 32372#define wxUSE_CHECKBOX 1
e6cc62c6 32373_ACEOF
10f2d63a 32374
1e6feb95 32375 USES_CONTROLS=1
10f2d63a
VZ
32376fi
32377
32378if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32379 cat >>confdefs.h <<\_ACEOF
10f2d63a 32380#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32381_ACEOF
10f2d63a 32382
1e6feb95 32383 USES_CONTROLS=1
10f2d63a
VZ
32384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32385fi
32386
da494b40 32387if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32388 cat >>confdefs.h <<\_ACEOF
da494b40 32389#define wxUSE_DISPLAY 1
e6cc62c6 32390_ACEOF
da494b40
MB
32391
32392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32393fi
32394
10f2d63a 32395if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32396 cat >>confdefs.h <<\_ACEOF
10f2d63a 32397#define wxUSE_GAUGE 1
e6cc62c6 32398_ACEOF
10f2d63a 32399
1e6feb95 32400 USES_CONTROLS=1
10f2d63a
VZ
32401fi
32402
d6a55c4b 32403if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32404 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32405#define wxUSE_GRID 1
e6cc62c6 32406_ACEOF
10f2d63a 32407
1e6feb95 32408 USES_CONTROLS=1
d6a55c4b 32409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32410fi
32411
32412if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32413 cat >>confdefs.h <<\_ACEOF
10f2d63a 32414#define wxUSE_IMAGLIST 1
e6cc62c6 32415_ACEOF
10f2d63a
VZ
32416
32417fi
32418
32419if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32420 cat >>confdefs.h <<\_ACEOF
10f2d63a 32421#define wxUSE_LISTBOX 1
e6cc62c6 32422_ACEOF
10f2d63a 32423
1e6feb95 32424 USES_CONTROLS=1
10f2d63a
VZ
32425fi
32426
32427if test "$wxUSE_LISTCTRL" = "yes"; then
32428 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32429 cat >>confdefs.h <<\_ACEOF
10f2d63a 32430#define wxUSE_LISTCTRL 1
e6cc62c6 32431_ACEOF
10f2d63a 32432
1e6feb95 32433 USES_CONTROLS=1
10f2d63a
VZ
32434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32435 else
e6cc62c6
VS
32436 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32437echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32438 fi
32439fi
32440
32441if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32442 cat >>confdefs.h <<\_ACEOF
10f2d63a 32443#define wxUSE_NOTEBOOK 1
e6cc62c6 32444_ACEOF
10f2d63a 32445
1e6feb95 32446 USES_CONTROLS=1
10f2d63a
VZ
32447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32448fi
32449
24176f2c 32450
10f2d63a 32451if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32452 cat >>confdefs.h <<\_ACEOF
10f2d63a 32453#define wxUSE_RADIOBOX 1
e6cc62c6 32454_ACEOF
10f2d63a 32455
1e6feb95 32456 USES_CONTROLS=1
10f2d63a
VZ
32457fi
32458
32459if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32460 cat >>confdefs.h <<\_ACEOF
10f2d63a 32461#define wxUSE_RADIOBTN 1
e6cc62c6 32462_ACEOF
10f2d63a 32463
1e6feb95 32464 USES_CONTROLS=1
10f2d63a
VZ
32465fi
32466
32467if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32468 cat >>confdefs.h <<\_ACEOF
10f2d63a 32469#define wxUSE_SASH 1
e6cc62c6 32470_ACEOF
10f2d63a
VZ
32471
32472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32473fi
32474
32475if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32476 cat >>confdefs.h <<\_ACEOF
10f2d63a 32477#define wxUSE_SCROLLBAR 1
e6cc62c6 32478_ACEOF
10f2d63a 32479
1e6feb95 32480 USES_CONTROLS=1
741a9306 32481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32482fi
32483
32484if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32485 cat >>confdefs.h <<\_ACEOF
10f2d63a 32486#define wxUSE_SLIDER 1
e6cc62c6 32487_ACEOF
10f2d63a 32488
1e6feb95 32489 USES_CONTROLS=1
10f2d63a
VZ
32490fi
32491
32492if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32493 cat >>confdefs.h <<\_ACEOF
10f2d63a 32494#define wxUSE_SPINBTN 1
e6cc62c6 32495_ACEOF
10f2d63a 32496
1e6feb95 32497 USES_CONTROLS=1
10f2d63a
VZ
32498fi
32499
56cfaa52 32500if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32501 cat >>confdefs.h <<\_ACEOF
56cfaa52 32502#define wxUSE_SPINCTRL 1
e6cc62c6 32503_ACEOF
56cfaa52 32504
1e6feb95 32505 USES_CONTROLS=1
56cfaa52
RR
32506fi
32507
10f2d63a 32508if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32509 cat >>confdefs.h <<\_ACEOF
10f2d63a 32510#define wxUSE_SPLITTER 1
e6cc62c6 32511_ACEOF
10f2d63a
VZ
32512
32513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32514fi
32515
32516if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32517 cat >>confdefs.h <<\_ACEOF
10f2d63a 32518#define wxUSE_STATBMP 1
e6cc62c6 32519_ACEOF
10f2d63a 32520
1e6feb95 32521 USES_CONTROLS=1
10f2d63a
VZ
32522fi
32523
32524if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32525 cat >>confdefs.h <<\_ACEOF
10f2d63a 32526#define wxUSE_STATBOX 1
e6cc62c6 32527_ACEOF
10f2d63a 32528
1e6feb95
VZ
32529 USES_CONTROLS=1
32530fi
32531
32532if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32533 cat >>confdefs.h <<\_ACEOF
1e6feb95 32534#define wxUSE_STATTEXT 1
e6cc62c6 32535_ACEOF
1e6feb95
VZ
32536
32537 USES_CONTROLS=1
10f2d63a
VZ
32538fi
32539
32540if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32541 cat >>confdefs.h <<\_ACEOF
10f2d63a 32542#define wxUSE_STATLINE 1
e6cc62c6 32543_ACEOF
10f2d63a 32544
89e6bf6d 32545 USES_CONTROLS=1
10f2d63a
VZ
32546fi
32547
32548if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32549 cat >>confdefs.h <<\_ACEOF
10f2d63a 32550#define wxUSE_STATUSBAR 1
e6cc62c6 32551_ACEOF
10f2d63a 32552
1e6feb95 32553 USES_CONTROLS=1
698dcdb6 32554
2286341c 32555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32556fi
32557
32558if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32559 cat >>confdefs.h <<\_ACEOF
10f2d63a 32560#define wxUSE_TAB_DIALOG 1
e6cc62c6 32561_ACEOF
10f2d63a
VZ
32562
32563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32564fi
32565
1e6feb95 32566if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32567 cat >>confdefs.h <<\_ACEOF
1e6feb95 32568#define wxUSE_TEXTCTRL 1
e6cc62c6 32569_ACEOF
1e6feb95
VZ
32570
32571 USES_CONTROLS=1
32572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32573fi
32574
1db8dc4a 32575if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32576 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32577 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32578echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32579 wxUSE_TOGGLEBTN=no
32580 fi
32581 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32582 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32583echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32584 wxUSE_TOGGLEBTN=no
32585 fi
32586
32587 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32588 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32589#define wxUSE_TOGGLEBTN 1
e6cc62c6 32590_ACEOF
1db8dc4a 32591
1e6feb95 32592 USES_CONTROLS=1
a45d7ab7 32593 fi
1db8dc4a
VZ
32594fi
32595
360d6699 32596if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32597 cat >>confdefs.h <<\_ACEOF
360d6699 32598#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32599_ACEOF
360d6699
VZ
32600
32601 wxUSE_TOOLBAR="yes"
1e6feb95 32602 USES_CONTROLS=1
360d6699
VZ
32603fi
32604
10f2d63a 32605if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32606 cat >>confdefs.h <<\_ACEOF
10f2d63a 32607#define wxUSE_TOOLBAR 1
e6cc62c6 32608_ACEOF
10f2d63a 32609
1e6feb95 32610 USES_CONTROLS=1
698dcdb6 32611
360d6699
VZ
32612 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32613 wxUSE_TOOLBAR_NATIVE="yes"
32614 fi
32615
1e6feb95 32616 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32617 cat >>confdefs.h <<\_ACEOF
360d6699 32618#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32619_ACEOF
360d6699 32620
1e6feb95
VZ
32621 USES_CONTROLS=1
32622 fi
32623
32624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32625fi
32626
10f2d63a
VZ
32627if test "$wxUSE_TOOLTIPS" = "yes"; then
32628 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32629 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32630echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32631 else
89e6bf6d 32632 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32633 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32634echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32635 else
e6cc62c6 32636 cat >>confdefs.h <<\_ACEOF
10f2d63a 32637#define wxUSE_TOOLTIPS 1
e6cc62c6 32638_ACEOF
10f2d63a
VZ
32639
32640 fi
32641 fi
32642fi
32643
32644if test "$wxUSE_TREECTRL" = "yes"; then
32645 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32646 cat >>confdefs.h <<\_ACEOF
10f2d63a 32647#define wxUSE_TREECTRL 1
e6cc62c6 32648_ACEOF
10f2d63a 32649
1e6feb95 32650 USES_CONTROLS=1
10f2d63a
VZ
32651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32652 else
e6cc62c6
VS
32653 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32654echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32655 fi
32656fi
32657
9f41d601 32658if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32659 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32660 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32661echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32662 else
485cf710 32663 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32664 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32665echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32666 else
3c011993 32667 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32668 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32669echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32670 else
e6cc62c6 32671 cat >>confdefs.h <<\_ACEOF
9f41d601 32672#define wxUSE_POPUPWIN 1
e6cc62c6 32673_ACEOF
9f41d601 32674
8284b0c5 32675
3c011993
VZ
32676 USES_CONTROLS=1
32677 fi
485cf710 32678 fi
6abe4b65 32679 fi
9f41d601
RR
32680fi
32681
dd964dcc 32682if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32683 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32684 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32685echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32686 else
e6cc62c6 32687 cat >>confdefs.h <<\_ACEOF
dd964dcc 32688#define wxUSE_TIPWINDOW 1
e6cc62c6 32689_ACEOF
dd964dcc 32690
3c011993 32691 fi
dd964dcc
VZ
32692fi
32693
1e6feb95 32694if test "$USES_CONTROLS" = 1; then
e6cc62c6 32695 cat >>confdefs.h <<\_ACEOF
1e6feb95 32696#define wxUSE_CONTROLS 1
e6cc62c6 32697_ACEOF
10f2d63a 32698
10f2d63a
VZ
32699fi
32700
8284b0c5 32701
1e6feb95 32702
24fd6d87 32703if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32704 cat >>confdefs.h <<\_ACEOF
24fd6d87 32705#define wxUSE_DRAGIMAGE 1
e6cc62c6 32706_ACEOF
24fd6d87
VZ
32707
32708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32709fi
32710
7bb2947d 32711if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32712 cat >>confdefs.h <<\_ACEOF
7bb2947d 32713#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32714_ACEOF
7bb2947d
MB
32715
32716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32717fi
32718
1e6feb95 32719if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32720 cat >>confdefs.h <<\_ACEOF
1e6feb95 32721#define wxUSE_MENUS 1
e6cc62c6 32722_ACEOF
10f2d63a 32723
1e6feb95 32724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32725fi
32726
1e6feb95 32727if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32728 cat >>confdefs.h <<\_ACEOF
1e6feb95 32729#define wxUSE_METAFILE 1
e6cc62c6 32730_ACEOF
10f2d63a 32731
10f2d63a
VZ
32732fi
32733
1e6feb95 32734if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32735 cat >>confdefs.h <<\_ACEOF
1e6feb95 32736#define wxUSE_MIMETYPE 1
e6cc62c6 32737_ACEOF
10f2d63a 32738
10f2d63a
VZ
32739fi
32740
3e44f09d 32741if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32742 cat >>confdefs.h <<\_ACEOF
3e44f09d 32743#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32744_ACEOF
3e44f09d 32745
321d2b14
VZ
32746if test "$TOOLKIT" = "MSW"; then
32747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32748fi
32749
3e44f09d
VZ
32750fi
32751
4cdb0ab0 32752if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 32753 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32754 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32755echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
32756 wxUSE_PROTOCOL=no
32757 fi
32758
32759 if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32760 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32761#define wxUSE_PROTOCOL 1
e6cc62c6 32762_ACEOF
4cdb0ab0 32763
8284b0c5 32764
3954f9ca 32765 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
e6cc62c6 32766 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32767#define wxUSE_PROTOCOL_HTTP 1
e6cc62c6 32768_ACEOF
4cdb0ab0 32769
3954f9ca
VS
32770 fi
32771 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32773#define wxUSE_PROTOCOL_FTP 1
e6cc62c6 32774_ACEOF
4cdb0ab0 32775
3954f9ca
VS
32776 fi
32777 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
e6cc62c6 32778 cat >>confdefs.h <<\_ACEOF
3954f9ca 32779#define wxUSE_PROTOCOL_FILE 1
e6cc62c6 32780_ACEOF
3954f9ca
VS
32781
32782 fi
4cdb0ab0 32783 fi
3954f9ca
VS
32784fi
32785
32786if test "$wxUSE_URL" = "yes"; then
32787 if test "$wxUSE_PROTOCOL" != "yes"; then
e6cc62c6
VS
32788 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32789echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
32790 wxUSE_URL=no
32791 fi
32792 if test "$wxUSE_URL" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
3954f9ca 32794#define wxUSE_URL 1
e6cc62c6 32795_ACEOF
4cdb0ab0
VS
32796
32797 fi
32798fi
32799
10f2d63a 32800if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32801 cat >>confdefs.h <<\_ACEOF
10f2d63a 32802#define wxUSE_MINIFRAME 1
e6cc62c6 32803_ACEOF
10f2d63a
VZ
32804
32805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32806fi
32807
32808if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32809 cat >>confdefs.h <<\_ACEOF
10f2d63a 32810#define wxUSE_HTML 1
e6cc62c6 32811_ACEOF
10f2d63a 32812
d2739ea6 32813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
10f2d63a
VZ
32814fi
32815
32816if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32817 cat >>confdefs.h <<\_ACEOF
1e487827 32818#define wxUSE_VALIDATORS 1
e6cc62c6 32819_ACEOF
703e0a69 32820
698dcdb6
VZ
32821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32822fi
32823
edae8572 32824if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32825 cat >>confdefs.h <<\_ACEOF
edae8572 32826#define wxUSE_PALETTE 1
e6cc62c6 32827_ACEOF
edae8572
VZ
32828
32829fi
32830
698dcdb6 32831if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32832 cat >>confdefs.h <<\_ACEOF
698dcdb6 32833#define wxUSE_IMAGE 1
e6cc62c6 32834_ACEOF
698dcdb6
VZ
32835
32836fi
32837
32838if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32839 cat >>confdefs.h <<\_ACEOF
698dcdb6 32840#define wxUSE_GIF 1
e6cc62c6 32841_ACEOF
698dcdb6
VZ
32842
32843fi
32844
32845if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32846 cat >>confdefs.h <<\_ACEOF
698dcdb6 32847#define wxUSE_PCX 1
e6cc62c6 32848_ACEOF
698dcdb6
VZ
32849
32850fi
32851
4b6b4dfc 32852if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32853 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32854#define wxUSE_IFF 1
e6cc62c6 32855_ACEOF
4b6b4dfc
RR
32856
32857fi
32858
698dcdb6 32859if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
698dcdb6 32861#define wxUSE_PNM 1
e6cc62c6 32862_ACEOF
698dcdb6
VZ
32863
32864fi
32865
32866if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32867 cat >>confdefs.h <<\_ACEOF
698dcdb6 32868#define wxUSE_XPM 1
e6cc62c6 32869_ACEOF
698dcdb6
VZ
32870
32871fi
32872
658974ae 32873if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32874 cat >>confdefs.h <<\_ACEOF
658974ae 32875#define wxUSE_ICO_CUR 1
e6cc62c6 32876_ACEOF
658974ae
VS
32877
32878fi
32879
a72a4bfa
VS
32880if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32881 LIBS=" -lunicows $LIBS"
32882fi
32883
8284b0c5 32884
1e6feb95 32885if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32886 cat >>confdefs.h <<\_ACEOF
1e6feb95 32887#define wxUSE_CHOICEDLG 1
e6cc62c6 32888_ACEOF
1e6feb95
VZ
32889
32890fi
32891
32892if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32893 cat >>confdefs.h <<\_ACEOF
1e6feb95 32894#define wxUSE_COLOURDLG 1
e6cc62c6 32895_ACEOF
1e6feb95
VZ
32896
32897fi
32898
32899if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32900 cat >>confdefs.h <<\_ACEOF
1e6feb95 32901#define wxUSE_FILEDLG 1
e6cc62c6 32902_ACEOF
1e6feb95
VZ
32903
32904fi
32905
8db37e06 32906if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 32907 cat >>confdefs.h <<\_ACEOF
8db37e06 32908#define wxUSE_FINDREPLDLG 1
e6cc62c6 32909_ACEOF
8db37e06
VZ
32910
32911fi
32912
1e6feb95 32913if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 32914 cat >>confdefs.h <<\_ACEOF
1e6feb95 32915#define wxUSE_FONTDLG 1
e6cc62c6 32916_ACEOF
1e6feb95
VZ
32917
32918fi
32919
32920if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 32921 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
32922 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32923echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 32924 else
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
1e6feb95 32926#define wxUSE_DIRDLG 1
e6cc62c6 32927_ACEOF
1e6feb95 32928
1e6feb95
VZ
32929 fi
32930fi
32931
32932if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
1e6feb95 32934#define wxUSE_MSGDLG 1
e6cc62c6 32935_ACEOF
1e6feb95
VZ
32936
32937fi
32938
32939if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 32940 cat >>confdefs.h <<\_ACEOF
1e6feb95 32941#define wxUSE_NUMBERDLG 1
e6cc62c6 32942_ACEOF
1e6feb95
VZ
32943
32944fi
32945
32946if test "$wxUSE_PROGRESSDLG" = "yes"; then
32947 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32948 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32949echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 32950 else
e6cc62c6 32951 cat >>confdefs.h <<\_ACEOF
1e6feb95 32952#define wxUSE_PROGRESSDLG 1
e6cc62c6 32953_ACEOF
1e6feb95
VZ
32954
32955 fi
32956fi
32957
cbca9943 32958if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 32959 cat >>confdefs.h <<\_ACEOF
cbca9943 32960#define wxUSE_SPLASH 1
e6cc62c6 32961_ACEOF
cbca9943
VZ
32962
32963fi
32964
1e6feb95
VZ
32965if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32966 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32967 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32968echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 32969 else
e6cc62c6 32970 cat >>confdefs.h <<\_ACEOF
1e6feb95 32971#define wxUSE_STARTUP_TIPS 1
e6cc62c6 32972_ACEOF
1e6feb95 32973
7b4a847f
RR
32974 fi
32975fi
579d8138 32976
8284b0c5 32977if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 32978 cat >>confdefs.h <<\_ACEOF
8284b0c5 32979#define wxUSE_TEXTDLG 1
e6cc62c6 32980_ACEOF
8284b0c5
MB
32981
32982fi
32983
32984if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 32985 cat >>confdefs.h <<\_ACEOF
8284b0c5 32986#define wxUSE_WIZARDDLG 1
e6cc62c6 32987_ACEOF
8284b0c5
MB
32988
32989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
32990fi
32991
32992
32993if test "$cross_compiling" = "yes"; then
32994 OSINFO="\"$host\""
32995else
32996 OSINFO=`uname -s -r -m`
32997 OSINFO="\"$OSINFO\""
32998fi
32999
e6cc62c6 33000cat >>confdefs.h <<_ACEOF
8284b0c5 33001#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33002_ACEOF
8284b0c5
MB
33003
33004
33005
33006if test "x$prefix" != "xNONE"; then
33007 wxPREFIX=$prefix
33008else
33009 wxPREFIX=$ac_default_prefix
33010fi
33011
e6cc62c6 33012cat >>confdefs.h <<_ACEOF
8284b0c5 33013#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33014_ACEOF
8284b0c5
MB
33015
33016
e6cc62c6 33017top_builddir_wxconfig=`pwd`
52c71b80 33018
8284b0c5
MB
33019
33020
33021
33022if test "$wxUSE_MAC" = 1 ; then
33023 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33024fi
ac0c4cc3
DE
33025if test "$wxUSE_COCOA" = 1 ; then
33026 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33027fi
8284b0c5
MB
33028
33029
2b5f62a0
VZ
33030LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33031
33032have_cos=0
33033have_floor=0
e6cc62c6 33034
2b5f62a0
VZ
33035for ac_func in cos
33036do
e6cc62c6
VS
33037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33038echo "$as_me:$LINENO: checking for $ac_func" >&5
33039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33040if eval "test \"\${$as_ac_var+set}\" = set"; then
33041 echo $ECHO_N "(cached) $ECHO_C" >&6
33042else
33043 cat >conftest.$ac_ext <<_ACEOF
33044#line $LINENO "configure"
33045/* confdefs.h. */
33046_ACEOF
33047cat confdefs.h >>conftest.$ac_ext
33048cat >>conftest.$ac_ext <<_ACEOF
33049/* end confdefs.h. */
2b5f62a0 33050/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33051 which can conflict with char $ac_func (); below.
33052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33053 <limits.h> exists even on freestanding compilers. */
33054#ifdef __STDC__
33055# include <limits.h>
33056#else
33057# include <assert.h>
33058#endif
2b5f62a0 33059/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33060#ifdef __cplusplus
33061extern "C"
33062{
33063#endif
2b5f62a0 33064/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33065 builtin and then its argument prototype would still apply. */
33066char $ac_func ();
2b5f62a0
VZ
33067/* The GNU C library defines this for functions which it implements
33068 to always fail with ENOSYS. Some functions are actually named
33069 something starting with __ and the normal name is an alias. */
33070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33071choke me
33072#else
e6cc62c6
VS
33073char (*f) () = $ac_func;
33074#endif
33075#ifdef __cplusplus
33076}
2b5f62a0
VZ
33077#endif
33078
e6cc62c6
VS
33079int
33080main ()
33081{
33082return f != $ac_func;
33083 ;
33084 return 0;
33085}
33086_ACEOF
33087rm -f conftest.$ac_objext conftest$ac_exeext
33088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089 (eval $ac_link) 2>&5
33090 ac_status=$?
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } &&
33093 { ac_try='test -s conftest$ac_exeext'
33094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33095 (eval $ac_try) 2>&5
33096 ac_status=$?
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); }; }; then
33099 eval "$as_ac_var=yes"
33100else
33101 echo "$as_me: failed program was:" >&5
33102sed 's/^/| /' conftest.$ac_ext >&5
33103
33104eval "$as_ac_var=no"
33105fi
33106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33107fi
33108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33110if test `eval echo '${'$as_ac_var'}'` = yes; then
33111 cat >>confdefs.h <<_ACEOF
33112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33113_ACEOF
2b5f62a0 33114 have_cos=1
2b5f62a0
VZ
33115fi
33116done
33117
e6cc62c6 33118
2b5f62a0
VZ
33119for ac_func in floor
33120do
e6cc62c6
VS
33121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33122echo "$as_me:$LINENO: checking for $ac_func" >&5
33123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33124if eval "test \"\${$as_ac_var+set}\" = set"; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33126else
33127 cat >conftest.$ac_ext <<_ACEOF
33128#line $LINENO "configure"
33129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
2b5f62a0 33134/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33135 which can conflict with char $ac_func (); below.
33136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33137 <limits.h> exists even on freestanding compilers. */
33138#ifdef __STDC__
33139# include <limits.h>
33140#else
33141# include <assert.h>
33142#endif
2b5f62a0 33143/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33144#ifdef __cplusplus
33145extern "C"
33146{
33147#endif
2b5f62a0 33148/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33149 builtin and then its argument prototype would still apply. */
33150char $ac_func ();
2b5f62a0
VZ
33151/* The GNU C library defines this for functions which it implements
33152 to always fail with ENOSYS. Some functions are actually named
33153 something starting with __ and the normal name is an alias. */
33154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33155choke me
33156#else
e6cc62c6
VS
33157char (*f) () = $ac_func;
33158#endif
33159#ifdef __cplusplus
33160}
2b5f62a0
VZ
33161#endif
33162
e6cc62c6
VS
33163int
33164main ()
33165{
33166return f != $ac_func;
33167 ;
33168 return 0;
33169}
33170_ACEOF
33171rm -f conftest.$ac_objext conftest$ac_exeext
33172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33173 (eval $ac_link) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); } &&
33177 { ac_try='test -s conftest$ac_exeext'
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 eval "$as_ac_var=yes"
33184else
33185 echo "$as_me: failed program was:" >&5
33186sed 's/^/| /' conftest.$ac_ext >&5
33187
33188eval "$as_ac_var=no"
33189fi
33190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33191fi
33192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33194if test `eval echo '${'$as_ac_var'}'` = yes; then
33195 cat >>confdefs.h <<_ACEOF
33196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33197_ACEOF
2b5f62a0 33198 have_floor=1
2b5f62a0
VZ
33199fi
33200done
33201
e6cc62c6
VS
33202echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33203echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33204if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33205 echo "$as_me:$LINENO: result: yes" >&5
33206echo "${ECHO_T}yes" >&6
2b5f62a0 33207else
e6cc62c6
VS
33208 echo "$as_me:$LINENO: result: no" >&5
33209echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33210 LIBS="$LIBS -lm"
33211 # use different functions to avoid configure caching
33212 have_sin=0
33213 have_ceil=0
e6cc62c6
VS
33214
33215for ac_func in sin
2b5f62a0 33216do
e6cc62c6
VS
33217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33218echo "$as_me:$LINENO: checking for $ac_func" >&5
33219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33220if eval "test \"\${$as_ac_var+set}\" = set"; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33222else
33223 cat >conftest.$ac_ext <<_ACEOF
33224#line $LINENO "configure"
33225/* confdefs.h. */
33226_ACEOF
33227cat confdefs.h >>conftest.$ac_ext
33228cat >>conftest.$ac_ext <<_ACEOF
33229/* end confdefs.h. */
2b5f62a0 33230/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33231 which can conflict with char $ac_func (); below.
33232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33233 <limits.h> exists even on freestanding compilers. */
33234#ifdef __STDC__
33235# include <limits.h>
33236#else
33237# include <assert.h>
33238#endif
2b5f62a0 33239/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33240#ifdef __cplusplus
33241extern "C"
33242{
33243#endif
2b5f62a0 33244/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33245 builtin and then its argument prototype would still apply. */
33246char $ac_func ();
2b5f62a0
VZ
33247/* The GNU C library defines this for functions which it implements
33248 to always fail with ENOSYS. Some functions are actually named
33249 something starting with __ and the normal name is an alias. */
33250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33251choke me
33252#else
e6cc62c6
VS
33253char (*f) () = $ac_func;
33254#endif
33255#ifdef __cplusplus
33256}
2b5f62a0
VZ
33257#endif
33258
e6cc62c6
VS
33259int
33260main ()
33261{
33262return f != $ac_func;
33263 ;
33264 return 0;
33265}
33266_ACEOF
33267rm -f conftest.$ac_objext conftest$ac_exeext
33268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33269 (eval $ac_link) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
33273 { ac_try='test -s conftest$ac_exeext'
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 eval "$as_ac_var=yes"
33280else
33281 echo "$as_me: failed program was:" >&5
33282sed 's/^/| /' conftest.$ac_ext >&5
33283
33284eval "$as_ac_var=no"
33285fi
33286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33287fi
33288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33290if test `eval echo '${'$as_ac_var'}'` = yes; then
33291 cat >>confdefs.h <<_ACEOF
33292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33293_ACEOF
2b5f62a0 33294 have_sin=1
2b5f62a0
VZ
33295fi
33296done
33297
e6cc62c6
VS
33298
33299for ac_func in ceil
2b5f62a0 33300do
e6cc62c6
VS
33301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33302echo "$as_me:$LINENO: checking for $ac_func" >&5
33303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33304if eval "test \"\${$as_ac_var+set}\" = set"; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
33307 cat >conftest.$ac_ext <<_ACEOF
33308#line $LINENO "configure"
33309/* confdefs.h. */
33310_ACEOF
33311cat confdefs.h >>conftest.$ac_ext
33312cat >>conftest.$ac_ext <<_ACEOF
33313/* end confdefs.h. */
2b5f62a0 33314/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33315 which can conflict with char $ac_func (); below.
33316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33317 <limits.h> exists even on freestanding compilers. */
33318#ifdef __STDC__
33319# include <limits.h>
33320#else
33321# include <assert.h>
33322#endif
2b5f62a0 33323/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33324#ifdef __cplusplus
33325extern "C"
33326{
33327#endif
2b5f62a0 33328/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33329 builtin and then its argument prototype would still apply. */
33330char $ac_func ();
2b5f62a0
VZ
33331/* The GNU C library defines this for functions which it implements
33332 to always fail with ENOSYS. Some functions are actually named
33333 something starting with __ and the normal name is an alias. */
33334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33335choke me
33336#else
e6cc62c6
VS
33337char (*f) () = $ac_func;
33338#endif
33339#ifdef __cplusplus
33340}
2b5f62a0
VZ
33341#endif
33342
e6cc62c6
VS
33343int
33344main ()
33345{
33346return f != $ac_func;
33347 ;
33348 return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext conftest$ac_exeext
33352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33353 (eval $ac_link) 2>&5
33354 ac_status=$?
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
33357 { ac_try='test -s conftest$ac_exeext'
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; }; then
33363 eval "$as_ac_var=yes"
33364else
33365 echo "$as_me: failed program was:" >&5
33366sed 's/^/| /' conftest.$ac_ext >&5
33367
33368eval "$as_ac_var=no"
33369fi
33370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33371fi
33372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33374if test `eval echo '${'$as_ac_var'}'` = yes; then
33375 cat >>confdefs.h <<_ACEOF
33376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33377_ACEOF
2b5f62a0 33378 have_ceil=1
2b5f62a0
VZ
33379fi
33380done
33381
e6cc62c6
VS
33382 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33383echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33384 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33385 echo "$as_me:$LINENO: result: yes" >&5
33386echo "${ECHO_T}yes" >&6
2b5f62a0 33387 else
e6cc62c6
VS
33388 echo "$as_me:$LINENO: result: no" >&5
33389echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33390 # not sure we should warn the user, crash, etc.
33391 fi
33392fi
8284b0c5
MB
33393
33394if test "$wxUSE_GUI" = "yes"; then
33395
33396 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
33397
e6cc62c6 33398
8284b0c5
MB
33399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33400 drawing dynamic erase event exec font image \
1542ea39 33401 minimal propsize rotate shaped widgets"
b625909c
VS
33402
33403 if test "$wxUSE_MONOLITHIC" != "yes"; then
33404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33405 fi
8284b0c5
MB
33406else
33407 SAMPLES_SUBDIRS="console"
33408fi
33409
33410
e6cc62c6 33411INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33412-I\${top_srcdir}/include \
33413$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33414$TOOLKIT_INCLUDE"
33415
fddeb06b
VS
33416if test "$GXX" = yes ; then
33417 CXXWARNINGS="-Wall"
33418 fi
33419
33420EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33421
33422CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
33423CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33424CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
33425LIBS=`echo $LIBS | sed 's/ \+/ /g'`
33426
33427LDFLAGS="$LDFLAGS $PROFILE"
33428
8284b0c5
MB
33429if test "$wxUSE_GTK" = 1; then
33430 WXCONFIG_INCLUDE=
33431else
33432 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33433fi
33434
fe0895cf
VS
33435if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33436 WXUNIV=1
33437else
33438 WXUNIV=0
8284b0c5
MB
33439fi
33440
8284b0c5
MB
33441
33442
33443
33444
33445
33446
33447
fe0895cf 33448EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
8284b0c5 33449
9747f85d
VS
33450if test $wxUSE_MONOLITHIC = "yes" ; then
33451 MONOLITHIC=1
33452else
33453 MONOLITHIC=0
33454fi
8284b0c5 33455
8ee2dd05
VS
33456VENDOR="custom"
33457OFFICIAL_BUILD=0
33458
33459
33460
8284b0c5
MB
33461
33462
33463
33464
33465
33466
fe0895cf 33467TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33468
33469
33470
33471
33472
fe0895cf 33473 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33474
33475 if test -n "$ac_tool_prefix"; then
33476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33477set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33478echo "$as_me:$LINENO: checking for $ac_word" >&5
33479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33480if test "${ac_cv_prog_RANLIB+set}" = set; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33482else
fe0895cf
VS
33483 if test -n "$RANLIB"; then
33484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33485else
e6cc62c6
VS
33486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33487for as_dir in $PATH
33488do
33489 IFS=$as_save_IFS
33490 test -z "$as_dir" && as_dir=.
33491 for ac_exec_ext in '' $ac_executable_extensions; do
33492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33495 break 2
33496 fi
33497done
33498done
33499
10f2d63a 33500fi
10f2d63a 33501fi
e6cc62c6 33502RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33503if test -n "$RANLIB"; then
e6cc62c6
VS
33504 echo "$as_me:$LINENO: result: $RANLIB" >&5
33505echo "${ECHO_T}$RANLIB" >&6
33506else
33507 echo "$as_me:$LINENO: result: no" >&5
33508echo "${ECHO_T}no" >&6
33509fi
33510
33511fi
33512if test -z "$ac_cv_prog_RANLIB"; then
33513 ac_ct_RANLIB=$RANLIB
33514 # Extract the first word of "ranlib", so it can be a program name with args.
33515set dummy ranlib; ac_word=$2
33516echo "$as_me:$LINENO: checking for $ac_word" >&5
33517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33518if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33519 echo $ECHO_N "(cached) $ECHO_C" >&6
33520else
33521 if test -n "$ac_ct_RANLIB"; then
33522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33523else
33524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33525for as_dir in $PATH
33526do
33527 IFS=$as_save_IFS
33528 test -z "$as_dir" && as_dir=.
33529 for ac_exec_ext in '' $ac_executable_extensions; do
33530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33531 ac_cv_prog_ac_ct_RANLIB="ranlib"
33532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33533 break 2
33534 fi
33535done
33536done
33537
33538 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33539fi
33540fi
33541ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33542if test -n "$ac_ct_RANLIB"; then
33543 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33544echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33545else
e6cc62c6
VS
33546 echo "$as_me:$LINENO: result: no" >&5
33547echo "${ECHO_T}no" >&6
33548fi
33549
33550 RANLIB=$ac_ct_RANLIB
33551else
33552 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33553fi
665bbe97 33554
fe0895cf
VS
33555 # Find a good install program. We prefer a C program (faster),
33556# so one script is as good as another. But avoid the broken or
33557# incompatible versions:
33558# SysV /etc/install, /usr/sbin/install
33559# SunOS /usr/etc/install
33560# IRIX /sbin/install
33561# AIX /bin/install
e6cc62c6 33562# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33566# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33567echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33569if test -z "$INSTALL"; then
e6cc62c6
VS
33570if test "${ac_cv_path_install+set}" = set; then
33571 echo $ECHO_N "(cached) $ECHO_C" >&6
33572else
33573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33574for as_dir in $PATH
33575do
33576 IFS=$as_save_IFS
33577 test -z "$as_dir" && as_dir=.
33578 # Account for people who put trailing slashes in PATH elements.
33579case $as_dir/ in
33580 ./ | .// | /cC/* | \
33581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33582 /usr/ucb/* ) ;;
33583 *)
33584 # OSF1 and SCO ODT 3.0 have their own names for install.
33585 # Don't use installbsd from OSF since it installs stuff as root
33586 # by default.
33587 for ac_prog in ginstall scoinst install; do
33588 for ac_exec_ext in '' $ac_executable_extensions; do
33589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33590 if test $ac_prog = install &&
33591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33592 # AIX install. It has an incompatible calling convention.
33593 :
33594 elif test $ac_prog = install &&
33595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33596 # program-specific install script used by HP pwplus--don't use.
33597 :
33598 else
33599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33600 break 3
33601 fi
33602 fi
fe0895cf 33603 done
e6cc62c6
VS
33604 done
33605 ;;
33606esac
33607done
33608
fe0895cf
VS
33609
33610fi
33611 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33612 INSTALL=$ac_cv_path_install
fe0895cf
VS
33613 else
33614 # As a last resort, use the slow shell script. We don't cache a
33615 # path for INSTALL within a source directory, because that will
33616 # break other packages using the cache if that directory is
33617 # removed, or if the path is relative.
e6cc62c6 33618 INSTALL=$ac_install_sh
fe0895cf
VS
33619 fi
33620fi
e6cc62c6
VS
33621echo "$as_me:$LINENO: result: $INSTALL" >&5
33622echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33623
33624# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33625# It thinks the first close brace ends the variable substitution.
33626test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33627
e6cc62c6 33628test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33629
33630test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33631
e6cc62c6
VS
33632 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33633echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33634LN_S=$as_ln_s
33635if test "$LN_S" = "ln -s"; then
33636 echo "$as_me:$LINENO: result: yes" >&5
33637echo "${ECHO_T}yes" >&6
fe0895cf 33638else
e6cc62c6
VS
33639 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33640echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33641fi
33642
33643
e6cc62c6
VS
33644 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33645echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33646set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33647if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33649else
e6cc62c6 33650 cat >conftest.make <<\_ACEOF
fe0895cf 33651all:
e6cc62c6
VS
33652 @echo 'ac_maketemp="$(MAKE)"'
33653_ACEOF
fe0895cf 33654# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33655eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33656if test -n "$ac_maketemp"; then
33657 eval ac_cv_prog_make_${ac_make}_set=yes
33658else
33659 eval ac_cv_prog_make_${ac_make}_set=no
33660fi
e6cc62c6 33661rm -f conftest.make
fe0895cf
VS
33662fi
33663if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33664 echo "$as_me:$LINENO: result: yes" >&5
33665echo "${ECHO_T}yes" >&6
fe0895cf
VS
33666 SET_MAKE=
33667else
e6cc62c6
VS
33668 echo "$as_me:$LINENO: result: no" >&5
33669echo "${ECHO_T}no" >&6
fe0895cf
VS
33670 SET_MAKE="MAKE=${MAKE-make}"
33671fi
33672
e6cc62c6
VS
33673
33674
fe0895cf
VS
33675 if test "$build" != "$host" ; then
33676 AR=$host_alias-ar
33677 STRIP=$host_alias-strip
33678 else
33679 # Extract the first word of "ar", so it can be a program name with args.
33680set dummy ar; ac_word=$2
e6cc62c6
VS
33681echo "$as_me:$LINENO: checking for $ac_word" >&5
33682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33683if test "${ac_cv_prog_AR+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33685else
33686 if test -n "$AR"; then
33687 ac_cv_prog_AR="$AR" # Let the user override the test.
33688else
e6cc62c6
VS
33689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33690for as_dir in $PATH
33691do
33692 IFS=$as_save_IFS
33693 test -z "$as_dir" && as_dir=.
33694 for ac_exec_ext in '' $ac_executable_extensions; do
33695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33696 ac_cv_prog_AR="ar"
33697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33698 break 2
33699 fi
33700done
33701done
33702
fe0895cf
VS
33703 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33704fi
33705fi
e6cc62c6 33706AR=$ac_cv_prog_AR
fe0895cf 33707if test -n "$AR"; then
e6cc62c6
VS
33708 echo "$as_me:$LINENO: result: $AR" >&5
33709echo "${ECHO_T}$AR" >&6
fe0895cf 33710else
e6cc62c6
VS
33711 echo "$as_me:$LINENO: result: no" >&5
33712echo "${ECHO_T}no" >&6
fe0895cf
VS
33713fi
33714
33715 # Extract the first word of "strip", so it can be a program name with args.
33716set dummy strip; ac_word=$2
e6cc62c6
VS
33717echo "$as_me:$LINENO: checking for $ac_word" >&5
33718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33719if test "${ac_cv_prog_STRIP+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33721else
33722 if test -n "$STRIP"; then
33723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33724else
e6cc62c6
VS
33725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33726for as_dir in $PATH
33727do
33728 IFS=$as_save_IFS
33729 test -z "$as_dir" && as_dir=.
33730 for ac_exec_ext in '' $ac_executable_extensions; do
33731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33732 ac_cv_prog_STRIP="strip"
33733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33734 break 2
33735 fi
33736done
33737done
33738
fe0895cf
VS
33739 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33740fi
33741fi
e6cc62c6 33742STRIP=$ac_cv_prog_STRIP
fe0895cf 33743if test -n "$STRIP"; then
e6cc62c6
VS
33744 echo "$as_me:$LINENO: result: $STRIP" >&5
33745echo "${ECHO_T}$STRIP" >&6
fe0895cf 33746else
e6cc62c6
VS
33747 echo "$as_me:$LINENO: result: no" >&5
33748echo "${ECHO_T}no" >&6
fe0895cf
VS
33749fi
33750
33751 fi
33752
33753 case ${host} in
33754 *-hp-hpux* )
33755 INSTALL_DIR="mkdir"
33756 ;;
33757 *) INSTALL_DIR="$INSTALL -d"
33758 ;;
33759 esac
e6cc62c6 33760
fe0895cf 33761
6b9d41a5
VS
33762 LDFLAGS_GUI=
33763 case ${host} in
33764 *-*-cygwin* | *-*-mingw32* )
33765 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33766 esac
33767
33768
fe0895cf 33769 fi
e6cc62c6
VS
33770
33771 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33772echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33773if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33774 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33775else
e6cc62c6 33776
fe0895cf
VS
33777 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33778 egrep -s GNU > /dev/null); then
33779 bakefile_cv_prog_makeisgnu="yes"
33780 else
33781 bakefile_cv_prog_makeisgnu="no"
33782 fi
fe0895cf 33783
e6cc62c6 33784fi
49b0a3aa
VS
33785echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33786echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
33787
33788 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33789 IF_GNU_MAKE=""
33790 else
33791 IF_GNU_MAKE="#"
33792 fi
fe0895cf 33793
e6cc62c6
VS
33794
33795
fe0895cf
VS
33796 PLATFORM_UNIX=0
33797 PLATFORM_WIN32=0
33798 PLATFORM_MSDOS=0
33799 PLATFORM_MAC=0
33800 PLATFORM_MACOSX=0
e6cc62c6 33801
fe0895cf
VS
33802 case "${host}" in
33803 *-*-cygwin* | *-*-mingw32* )
33804 PLATFORM_WIN32=1
33805 ;;
33806 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33807 PLATFORM_MSDOS=1
33808 ;;
33809 powerpc-*-darwin* )
33810 PLATFORM_MAC=1
33811 PLATFORM_MACOSX=1
33812 ;;
33813 * )
33814 PLATFORM_UNIX=1
33815 ;;
33816 esac
33817
fe0895cf 33818
e6cc62c6
VS
33819
33820
33821
33822
33823
33824
fe0895cf
VS
33825 SO_SUFFIX="so"
33826 EXEEXT=""
33827 DLLPREFIX=lib
e6cc62c6 33828
fe0895cf
VS
33829 case "${host}" in
33830 *-hp-hpux* )
33831 SO_SUFFIX="sl"
33832 ;;
33833 *-*-aix* )
33834 SO_SUFFIX="a"
33835 ;;
33836 *-*-cygwin* | *-*-mingw32* )
33837 SO_SUFFIX="dll"
33838 EXEEXT=".exe"
33839 DLLPREFIX=""
33840 ;;
33841 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33842 EXEEXT=".exe"
33843 DLLPREFIX=""
33844 ;;
33845 powerpc-*-darwin* )
33846 SO_SUFFIX="dylib"
33847 ;;
33848 esac
33849
fe0895cf 33850
e6cc62c6
VS
33851
33852
33853
33854
fe0895cf
VS
33855 SHARED_LD_CC="\$(CC) -shared -o"
33856 SHARED_LD_CXX="\$(CXX) -shared -o"
33857
33858 if test "x$GCC" = "xyes"; then
33859 PIC_FLAG="-fPIC"
33860 fi
33861
33862 case "${host}" in
33863 *-hp-hpux* )
33864 if test "x$GCC" = "xyes"; then
33865 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33866 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33867 else
33868 LDFLAGS="$LDFLAGS -L/usr/lib"
33869
33870 SHARED_LD_CC="${CC} -b -o"
33871 SHARED_LD_CXX="${CXX} -b -o"
33872 PIC_FLAG="+Z"
33873 fi
33874 ;;
33875
33876 *-*-linux* )
33877 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33878 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33879echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33880if test "${bakefile_cv_prog_icc+set}" = set; then
33881 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33882else
fe0895cf 33883
e6cc62c6
VS
33884 cat >conftest.$ac_ext <<_ACEOF
33885#line $LINENO "configure"
33886/* confdefs.h. */
33887_ACEOF
33888cat confdefs.h >>conftest.$ac_ext
33889cat >>conftest.$ac_ext <<_ACEOF
33890/* end confdefs.h. */
33891
33892int
33893main ()
33894{
fe0895cf
VS
33895
33896 #ifndef __INTEL_COMPILER
33897 #error Not icc
33898 #endif
e6cc62c6
VS
33899
33900 ;
33901 return 0;
33902}
33903_ACEOF
33904rm -f conftest.$ac_objext
33905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33906 (eval $ac_compile) 2>&5
33907 ac_status=$?
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } &&
33910 { ac_try='test -s conftest.$ac_objext'
33911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33912 (eval $ac_try) 2>&5
33913 ac_status=$?
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; }; then
fe0895cf
VS
33916 bakefile_cv_prog_icc=yes
33917else
e6cc62c6
VS
33918 echo "$as_me: failed program was:" >&5
33919sed 's/^/| /' conftest.$ac_ext >&5
33920
33921bakefile_cv_prog_icc=no
33922
fe0895cf 33923fi
e6cc62c6 33924rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 33925
e6cc62c6
VS
33926fi
33927echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33928echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
33929 if test "$bakefile_cv_prog_icc" = "yes"; then
33930 PIC_FLAG="-KPIC"
33931 fi
33932 fi
33933 ;;
33934
33935 *-*-solaris2* )
33936 if test "x$GCC" != xyes ; then
33937 SHARED_LD_CC="${CC} -G -o"
33938 SHARED_LD_CXX="${CXX} -G -o"
33939 PIC_FLAG="-KPIC"
33940 fi
33941 ;;
33942
33943 *-*-darwin* )
33944 CFLAGS="$CFLAGS -fno-common"
33945 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
33946
33947
fe0895cf
VS
33948 cat <<EOF >shared-ld-sh
33949#!/bin/sh
33950#-----------------------------------------------------------------------------
33951#-- Name: distrib/mac/shared-ld-sh
33952#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
33953#-- Author: Gilles Depeyrot
33954#-- Copyright: (c) 2002 Gilles Depeyrot
33955#-- Licence: any use permitted
33956#-----------------------------------------------------------------------------
33957
33958verbose=0
33959args=""
33960objects=""
33961
33962while test \${#} -gt 0; do
33963 case \${1} in
33964
33965 -v)
33966 verbose=1
33967 ;;
33968
33969 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33970 # collect these options and values
33971 args="\${args} \${1} \${2}"
33972 shift
33973 ;;
33974
33975 -l*|-L*|-flat_namespace)
33976 # collect these options
33977 args="\${args} \${1}"
33978 ;;
33979
33980 -dynamiclib)
33981 # skip these options
33982 ;;
33983
33984 -*)
33985 echo "shared-ld: unhandled option '\${1}'"
33986 exit 1
33987 ;;
33988
33989 *.o | *.a)
33990 # collect object files
33991 objects="\${objects} \${1}"
33992 ;;
33993
33994 *)
33995 echo "shared-ld: unhandled argument '\${1}'"
33996 exit 1
33997 ;;
33998
33999 esac
34000 shift
34001done
34002
34003#
34004# Link one module containing all the others
34005#
34006if test \${verbose} = 1; then
34007 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34008fi
34009c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34010status=\$?
34011if test \${status} != 0; then
34012 exit \${status}
34013fi
34014
34015#
34016# Link the shared library from the single module created
34017#
34018if test \${verbose} = 1; then
34019 echo "cc -dynamiclib master.\$\$.o \${args}"
34020fi
34021c++ -dynamiclib master.\$\$.o \${args}
34022status=\$?
34023if test \${status} != 0; then
34024 exit \${status}
34025fi
34026
34027#
34028# Remove intermediate module
34029#
34030rm -f master.\$\$.o
34031
34032exit 0
34033EOF
34034 chmod +x shared-ld-sh
34035
34036 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34037 SHARED_LD_CXX="$SHARED_LD_CC"
34038 PIC_FLAG="-dynamic -fPIC"
34039 ;;
34040
34041 *-*-aix* )
34042 if test "x$GCC" != "xyes"; then
34043 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34044set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34045echo "$as_me:$LINENO: checking for $ac_word" >&5
34046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34047if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34049else
34050 if test -n "$AIX_CXX_LD"; then
34051 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34052else
e6cc62c6
VS
34053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34054for as_dir in $PATH
34055do
34056 IFS=$as_save_IFS
34057 test -z "$as_dir" && as_dir=.
34058 for ac_exec_ext in '' $ac_executable_extensions; do
34059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34060 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34062 break 2
34063 fi
34064done
34065done
34066
fe0895cf
VS
34067 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34068fi
34069fi
e6cc62c6 34070AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34071if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34072 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34073echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34074else
e6cc62c6
VS
34075 echo "$as_me:$LINENO: result: no" >&5
34076echo "${ECHO_T}no" >&6
fe0895cf
VS
34077fi
34078
34079 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34080 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34081 fi
34082 ;;
34083
34084 *-*-beos* )
34085 SHARED_LD_CC="${LD} -shared -o"
34086 SHARED_LD_CXX="${LD} -shared -o"
34087 ;;
34088
34089 *-*-irix* )
34090 if test "x$GCC" != "xyes"; then
34091 PIC_FLAG="-KPIC"
34092 fi
34093 ;;
e6cc62c6 34094
fe0895cf
VS
34095 *-*-cygwin* | *-*-mingw32* )
34096 PIC_FLAG=""
34097 ;;
e6cc62c6 34098
fe0895cf
VS
34099 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34100 *-*-sunos4* | \
34101 *-*-osf* | \
34102 *-*-dgux5* | \
34103 *-*-sysv5* )
34104 ;;
34105
34106 *)
e6cc62c6
VS
34107 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34108echo "$as_me: error: unknown system type $host." >&2;}
34109 { (exit 1); exit 1; }; }
fe0895cf
VS
34110 esac
34111
fe0895cf 34112
e6cc62c6
VS
34113
34114
34115
34116
fe0895cf
VS
34117 USE_SOVERSION=0
34118 USE_SOVERLINUX=0
34119 USE_SOVERSOLARIS=0
34120 USE_SOSYMLINKS=0
34121 USE_MACVERSION=0
34122 SONAME_FLAG=
34123
34124 case "${host}" in
34125 *-*-linux* )
34126 SONAME_FLAG="-Wl,-soname,"
34127 USE_SOVERSION=1
34128 USE_SOVERLINUX=1
34129 USE_SOSYMLINKS=1
34130 ;;
34131
34132 *-*-solaris2* )
34133 SONAME_FLAG="-h "
34134 USE_SOVERSION=1
34135 USE_SOVERSOLARIS=1
34136 USE_SOSYMLINKS=1
34137 ;;
34138
34139 *-*-darwin* )
34140 USE_MACVERSION=1
34141 USE_SOVERSION=1
34142 USE_SOSYMLINKS=1
e6cc62c6 34143 ;;
fe0895cf
VS
34144 esac
34145
fe0895cf 34146
e6cc62c6
VS
34147
34148
34149
34150
34151
34152
34153
49b0a3aa
VS
34154 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34155echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34156 DEPS_TRACKING=0
34157
fe0895cf 34158 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34159 DEPSMODE=gcc
34160 DEPS_TRACKING=1
34161 echo "$as_me:$LINENO: result: gcc" >&5
34162echo "${ECHO_T}gcc" >&6
34163 else
34164 echo "$as_me:$LINENO: result: none" >&5
34165echo "${ECHO_T}none" >&6
34166 fi
34167
34168 if test $DEPS_TRACKING = 1 ; then
34169 cat <<EOF >bk-deps
34170#!/bin/sh
34171
34172# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34173# It is used to track C/C++ files dependencies in portable way.
34174#
34175# Permission is given to use this file in any way.
34176
34177DEPSMODE=$DEPSMODE
34178DEPSDIR=.deps
34179
34180mkdir -p \$DEPSDIR
34181
34182if test \$DEPSMODE = gcc ; then
34183 \${*} -MMD
34184 status=\${?}
34185 if test \${status} != 0 ; then
34186 exit \${status}
34187 fi
34188 # move created file to the location we want it in:
34189 while test \${#} -gt 0; do
34190 case "\${1}" in
34191 -o )
34192 shift
34193 objfile=\${1}
34194 ;;
34195 -* )
34196 ;;
34197 * )
34198 srcfile=\${1}
34199 ;;
34200 esac
34201 shift
34202 done
34203 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34204 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34205 if test -f \$depfile ; then
34206 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34207 rm -f \$depfile
34208 else
34209 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34210 if test -f \$depfile ; then
4c8b7f4b 34211 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34212 rm -f \$depfile
34213 fi
34214 fi
49b0a3aa
VS
34215 exit 0
34216else
34217 \${*}
34218 exit \${?}
34219fi
34220EOF
34221 chmod +x bk-deps
fe0895cf 34222 fi
fe0895cf 34223
e6cc62c6
VS
34224
34225
34226
fe0895cf
VS
34227 RESCOMP=
34228 SETFILE=
34229
e6cc62c6 34230 case ${host} in
fe0895cf
VS
34231 *-*-cygwin* | *-*-mingw32* )
34232 if test "$build" != "$host" ; then
34233 RESCOMP=$host_alias-windres
34234 else
34235 # Extract the first word of "windres", so it can be a program name with args.
34236set dummy windres; ac_word=$2
e6cc62c6
VS
34237echo "$as_me:$LINENO: checking for $ac_word" >&5
34238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34239if test "${ac_cv_prog_RESCOMP+set}" = set; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34241else
34242 if test -n "$RESCOMP"; then
34243 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34244else
e6cc62c6
VS
34245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34246for as_dir in $PATH
34247do
34248 IFS=$as_save_IFS
34249 test -z "$as_dir" && as_dir=.
34250 for ac_exec_ext in '' $ac_executable_extensions; do
34251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34252 ac_cv_prog_RESCOMP="windres"
34253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34254 break 2
34255 fi
34256done
34257done
34258
fe0895cf
VS
34259 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34260fi
34261fi
e6cc62c6 34262RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34263if test -n "$RESCOMP"; then
e6cc62c6
VS
34264 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34265echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34266else
e6cc62c6
VS
34267 echo "$as_me:$LINENO: result: no" >&5
34268echo "${ECHO_T}no" >&6
fe0895cf
VS
34269fi
34270
34271 fi
34272 ;;
e6cc62c6 34273
fe0895cf
VS
34274 *-*-darwin* )
34275 # Extract the first word of "Rez", so it can be a program name with args.
34276set dummy Rez; ac_word=$2
e6cc62c6
VS
34277echo "$as_me:$LINENO: checking for $ac_word" >&5
34278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34279if test "${ac_cv_prog_RESCOMP+set}" = set; then
34280 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34281else
34282 if test -n "$RESCOMP"; then
34283 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34284else
e6cc62c6
VS
34285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34286for as_dir in $PATH
34287do
34288 IFS=$as_save_IFS
34289 test -z "$as_dir" && as_dir=.
34290 for ac_exec_ext in '' $ac_executable_extensions; do
34291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34292 ac_cv_prog_RESCOMP="Rez"
34293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34294 break 2
34295 fi
34296done
34297done
34298
fe0895cf
VS
34299 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34300fi
34301fi
e6cc62c6 34302RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34303if test -n "$RESCOMP"; then
e6cc62c6
VS
34304 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34305echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34306else
e6cc62c6
VS
34307 echo "$as_me:$LINENO: result: no" >&5
34308echo "${ECHO_T}no" >&6
fe0895cf
VS
34309fi
34310
34311 # Extract the first word of "SetFile", so it can be a program name with args.
34312set dummy SetFile; ac_word=$2
e6cc62c6
VS
34313echo "$as_me:$LINENO: checking for $ac_word" >&5
34314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34315if test "${ac_cv_prog_SETFILE+set}" = set; then
34316 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34317else
34318 if test -n "$SETFILE"; then
34319 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34320else
e6cc62c6
VS
34321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34322for as_dir in $PATH
34323do
34324 IFS=$as_save_IFS
34325 test -z "$as_dir" && as_dir=.
34326 for ac_exec_ext in '' $ac_executable_extensions; do
34327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34328 ac_cv_prog_SETFILE="SetFile"
34329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34330 break 2
34331 fi
34332done
34333done
34334
fe0895cf
VS
34335 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34336fi
34337fi
e6cc62c6 34338SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34339if test -n "$SETFILE"; then
e6cc62c6
VS
34340 echo "$as_me:$LINENO: result: $SETFILE" >&5
34341echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34342else
e6cc62c6
VS
34343 echo "$as_me:$LINENO: result: no" >&5
34344echo "${ECHO_T}no" >&6
fe0895cf
VS
34345fi
34346
34347 ;;
34348 esac
34349
fe0895cf
VS
34350
34351
e6cc62c6
VS
34352
34353
34354
34355
8ee2dd05
VS
34356 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34357 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34358 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
6b9d41a5
VS
34359 fi
34360
f95cd8fa
VS
34361 COND_DEPS_TRACKING_0="#"
34362 if test "x$DEPS_TRACKING" = "x0" ; then
34363 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34364 fi
34365
8ee2dd05
VS
34366 COND_DEPS_TRACKING_1="#"
34367 if test "x$DEPS_TRACKING" = "x1" ; then
34368 COND_DEPS_TRACKING_1=""
34369 fi
34370
34371 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34372 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34373 COND_TOOLKIT_MOTIF_USE_GUI_1=""
6b9d41a5
VS
34374 fi
34375
8ee2dd05
VS
34376 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34377 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34378 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
34379 fi
34380
34381 COND_TOOLKIT_COCOA_USE_GUI_1="#"
34382 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
34383 COND_TOOLKIT_COCOA_USE_GUI_1=""
6b9d41a5
VS
34384 fi
34385
34386 COND_USE_SOVERSOLARIS_1="#"
34387 if test "x$USE_SOVERSOLARIS" = "x1" ; then
c7dfb5bb 34388 COND_USE_SOVERSOLARIS_1=""
6b9d41a5
VS
34389 fi
34390
8ee2dd05
VS
34391 COND_MONOLITHIC_1="#"
34392 if test "x$MONOLITHIC" = "x1" ; then
34393 COND_MONOLITHIC_1=""
fe0895cf 34394 fi
e6cc62c6 34395
8ee2dd05
VS
34396 COND_UNICODE_1="#"
34397 if test "x$UNICODE" = "x1" ; then
34398 COND_UNICODE_1=""
f95cd8fa
VS
34399 fi
34400
8ee2dd05
VS
34401 COND_MONOLITHIC_0="#"
34402 if test "x$MONOLITHIC" = "x0" ; then
34403 COND_MONOLITHIC_0=""
34404 fi
34405
34406 COND_TOOLKIT_MGL="#"
34407 if test "x$TOOLKIT" = "xMGL" ; then
34408 COND_TOOLKIT_MGL=""
34409 fi
34410
34411 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34412 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34413 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
34414 fi
34415
f95cd8fa
VS
34416 COND_WXUSE_ODBC_BUILTIN="#"
34417 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34418 COND_WXUSE_ODBC_BUILTIN=""
34419 fi
34420
8ee2dd05
VS
34421 COND_USE_SOVERSION_0="#"
34422 if test "x$USE_SOVERSION" = "x0" ; then
34423 COND_USE_SOVERSION_0=""
f95cd8fa
VS
34424 fi
34425
8ee2dd05
VS
34426 COND_WXUNIV_1="#"
34427 if test "x$WXUNIV" = "x1" ; then
34428 COND_WXUNIV_1=""
e6cc62c6
VS
34429 fi
34430
8ee2dd05
VS
34431 COND_PLATFORM_UNIX_1="#"
34432 if test "x$PLATFORM_UNIX" = "x1" ; then
34433 COND_PLATFORM_UNIX_1=""
fe0895cf 34434 fi
e6cc62c6 34435
8ee2dd05
VS
34436 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34437 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34438 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 34439 fi
e6cc62c6 34440
8ee2dd05
VS
34441 COND_WXUSE_REGEX_BUILTIN="#"
34442 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34443 COND_WXUSE_REGEX_BUILTIN=""
f95cd8fa
VS
34444 fi
34445
8ee2dd05
VS
34446 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34447 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34448 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
fe0895cf 34449 fi
e6cc62c6 34450
8ee2dd05
VS
34451 COND_MONOLITHIC_1_SHARED_0="#"
34452 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34453 COND_MONOLITHIC_1_SHARED_0=""
fe0895cf 34454 fi
e6cc62c6 34455
8ee2dd05
VS
34456 COND_MONOLITHIC_1_SHARED_1="#"
34457 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34458 COND_MONOLITHIC_1_SHARED_1=""
34459 fi
34460
8ee2dd05
VS
34461 COND_TOOLKIT_X11="#"
34462 if test "x$TOOLKIT" = "xX11" ; then
34463 COND_TOOLKIT_X11=""
34464 fi
34465
34466 COND_OFFICIAL_BUILD_0="#"
34467 if test "x$OFFICIAL_BUILD" = "x0" ; then
34468 COND_OFFICIAL_BUILD_0=""
34469 fi
34470
34471 COND_TOOLKIT_OS2="#"
34472 if test "x$TOOLKIT" = "xOS2" ; then
34473 COND_TOOLKIT_OS2=""
34474 fi
34475
34476 COND_TOOLKIT_MGL_USE_GUI_1="#"
34477 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34478 COND_TOOLKIT_MGL_USE_GUI_1=""
34479 fi
34480
f95cd8fa
VS
34481 COND_WXUSE_ZLIB_BUILTIN="#"
34482 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34483 COND_WXUSE_ZLIB_BUILTIN=""
34484 fi
34485
8ee2dd05
VS
34486 COND_TOOLKIT_MOTIF="#"
34487 if test "x$TOOLKIT" = "xMOTIF" ; then
34488 COND_TOOLKIT_MOTIF=""
fe0895cf 34489 fi
e6cc62c6 34490
8ee2dd05
VS
34491 COND_MONOLITHIC_0_SHARED_1="#"
34492 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34493 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34494 fi
e6cc62c6 34495
8ee2dd05
VS
34496 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34497 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34498 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34499 fi
34500
34501 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34502 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34503 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
34504 fi
34505
34506 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34507 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34508 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
34509 fi
34510
34511 COND_MONOLITHIC_0_SHARED_0="#"
34512 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34513 COND_MONOLITHIC_0_SHARED_0=""
f95cd8fa
VS
34514 fi
34515
34516 COND_USE_GUI_1="#"
34517 if test "x$USE_GUI" = "x1" ; then
34518 COND_USE_GUI_1=""
34519 fi
34520
8ee2dd05
VS
34521 COND_USE_GUI_0="#"
34522 if test "x$USE_GUI" = "x0" ; then
34523 COND_USE_GUI_0=""
34524 fi
34525
8ee2dd05
VS
34526 COND_TOOLKIT_MSW="#"
34527 if test "x$TOOLKIT" = "xMSW" ; then
34528 COND_TOOLKIT_MSW=""
34529 fi
34530
34531 COND_TOOLKIT_X11_USE_GUI_1="#"
34532 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34533 COND_TOOLKIT_X11_USE_GUI_1=""
34534 fi
34535
34536 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34537 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34538 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
34539 fi
34540
34541 COND_BUILD_DEBUG="#"
34542 if test "x$BUILD" = "xdebug" ; then
34543 COND_BUILD_DEBUG=""
34544 fi
34545
34546 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34547 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34548 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
34549 fi
34550
f95cd8fa
VS
34551 COND_WXUSE_LIBTIFF_BUILTIN="#"
34552 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34553 COND_WXUSE_LIBTIFF_BUILTIN=""
34554 fi
34555
8ee2dd05
VS
34556 COND_OFFICIAL_BUILD_1="#"
34557 if test "x$OFFICIAL_BUILD" = "x1" ; then
34558 COND_OFFICIAL_BUILD_1=""
fe0895cf 34559 fi
e6cc62c6 34560
8ee2dd05
VS
34561 COND_BUILD_RELEASE="#"
34562 if test "x$BUILD" = "xrelease" ; then
34563 COND_BUILD_RELEASE=""
34564 fi
34565
8ee2dd05
VS
34566 COND_USE_SOVERLINUX_1="#"
34567 if test "x$USE_SOVERLINUX" = "x1" ; then
34568 COND_USE_SOVERLINUX_1=""
34569 fi
34570
34571 COND_USE_SOSYMLINKS_1="#"
34572 if test "x$USE_SOSYMLINKS" = "x1" ; then
34573 COND_USE_SOSYMLINKS_1=""
fe0895cf 34574 fi
e6cc62c6 34575
9747f85d
VS
34576 COND_TOOLKIT_COCOA="#"
34577 if test "x$TOOLKIT" = "xCOCOA" ; then
c7dfb5bb 34578 COND_TOOLKIT_COCOA=""
fe0895cf 34579 fi
e6cc62c6 34580
8ee2dd05
VS
34581 COND_PLATFORM_MACOSX_1="#"
34582 if test "x$PLATFORM_MACOSX" = "x1" ; then
34583 COND_PLATFORM_MACOSX_1=""
f95cd8fa
VS
34584 fi
34585
8ee2dd05
VS
34586 COND_WXUSE_LIBJPEG_BUILTIN="#"
34587 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34588 COND_WXUSE_LIBJPEG_BUILTIN=""
9747f85d
VS
34589 fi
34590
f95cd8fa
VS
34591 COND_WXUSE_LIBPNG_BUILTIN="#"
34592 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34593 COND_WXUSE_LIBPNG_BUILTIN=""
34594 fi
34595
8ee2dd05
VS
34596 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34597 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34598 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
9747f85d
VS
34599 fi
34600
8ee2dd05
VS
34601 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34602 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34603 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
f95cd8fa
VS
34604 fi
34605
8ee2dd05
VS
34606 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34607 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34608 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34609 fi
34610
e6cc62c6 34611 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
34612 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34613 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 34614 fi
e6cc62c6
VS
34615
34616 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
34617 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34618 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
34619 fi
34620
8ee2dd05
VS
34621 COND_TOOLKIT_GTK="#"
34622 if test "x$TOOLKIT" = "xGTK" ; then
34623 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34624 fi
34625
8ee2dd05
VS
34626 COND_PLATFORM_WIN32_0="#"
34627 if test "x$PLATFORM_WIN32" = "x0" ; then
34628 COND_PLATFORM_WIN32_0=""
34629 fi
34630
34631 COND_PLATFORM_WIN32_1="#"
34632 if test "x$PLATFORM_WIN32" = "x1" ; then
34633 COND_PLATFORM_WIN32_1=""
f95cd8fa
VS
34634 fi
34635
8ee2dd05
VS
34636 COND_TOOLKIT_GTK_USE_GUI_1="#"
34637 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34638 COND_TOOLKIT_GTK_USE_GUI_1=""
fe0895cf 34639 fi
e6cc62c6 34640
8ee2dd05
VS
34641 COND_TOOLKIT_MAC="#"
34642 if test "x$TOOLKIT" = "xMAC" ; then
34643 COND_TOOLKIT_MAC=""
b625909c
VS
34644 fi
34645
8ee2dd05
VS
34646 COND_TOOLKIT_MSW_USE_GUI_1="#"
34647 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34648 COND_TOOLKIT_MSW_USE_GUI_1=""
b625909c
VS
34649 fi
34650
8ee2dd05
VS
34651 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34652 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34653 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
b625909c
VS
34654 fi
34655
fddeb06b
VS
34656 COND_SHARED_1="#"
34657 if test "x$SHARED" = "x1" ; then
34658 COND_SHARED_1=""
34659 fi
fe0895cf 34660
fddeb06b
VS
34661 COND_PLATFORM_MAC_1="#"
34662 if test "x$PLATFORM_MAC" = "x1" ; then
34663 COND_PLATFORM_MAC_1=""
34664 fi
fe0895cf 34665
fddeb06b
VS
34666 COND_SHARED_0="#"
34667 if test "x$SHARED" = "x0" ; then
34668 COND_SHARED_0=""
34669 fi
fe0895cf 34670
fe0895cf 34671
fe0895cf 34672
fe0895cf 34673
fe0895cf
VS
34674
34675
fddeb06b 34676SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
fe0895cf 34771
f0290fca
VS
34772
34773
e6cc62c6
VS
34774
34775
34776
34777echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34778echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34779set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34780if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34781 echo $ECHO_N "(cached) $ECHO_C" >&6
34782else
34783 cat >conftest.make <<\_ACEOF
34784all:
34785 @echo 'ac_maketemp="$(MAKE)"'
34786_ACEOF
34787# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34788eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34789if test -n "$ac_maketemp"; then
34790 eval ac_cv_prog_make_${ac_make}_set=yes
34791else
34792 eval ac_cv_prog_make_${ac_make}_set=no
34793fi
34794rm -f conftest.make
34795fi
34796if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34797 echo "$as_me:$LINENO: result: yes" >&5
34798echo "${ECHO_T}yes" >&6
34799 SET_MAKE=
34800else
34801 echo "$as_me:$LINENO: result: no" >&5
34802echo "${ECHO_T}no" >&6
34803 SET_MAKE="MAKE=${MAKE-make}"
34804fi
34805
34806
34807if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34808 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34809fi
34810
34811 ac_config_headers="$ac_config_headers setup.h"
34812
34813
81345eef 34814 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
34815
34816
34817 ac_config_commands="$ac_config_commands default"
34818
34819
9de9b8f0 34820
6c3e36af
VZ
34821if test "$wxUSE_GUI" = "yes"; then
34822 SUBDIRS="samples demos utils contrib"
34823else SUBDIRS="samples utils"
34824fi
e6cc62c6 34825
166263e6 34826for subdir in `echo $SUBDIRS`; do
9747f85d 34827 if test -d ${srcdir}/${subdir} ; then
6c3e36af 34828 if test "$wxUSE_GUI" = "yes"; then
166263e6
VZ
34829 if test ${subdir} = "samples"; then
34830 for sample in `echo $SAMPLES_SUBDIRS`; do
34831 if test -d $srcdir/samples/$sample; then
34832 makefiles="samples/$sample/Makefile.in $makefiles"
34833 fi
34834 done
34835 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34836 fi
6c3e36af
VZ
34837 else if test ${subdir} = "samples"; then
34838 makefiles="samples/console/Makefile.in"
34839 else makefiles="utils/HelpGen/Makefile.in \
34840 utils/HelpGen/src/Makefile.in \
34841 utils/makegen/Makefile.in"
34842 fi
34843 fi
34844
9747f85d
VS
34845 for mkin in $makefiles ; do
34846 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34847 ac_config_files="$ac_config_files $mk"
e6cc62c6 34848
9747f85d
VS
34849 done
34850 fi
34851done
e6cc62c6 34852
9de9b8f0 34853
e6cc62c6
VS
34854cat >confcache <<\_ACEOF
34855# This file is a shell script that caches the results of configure
34856# tests run on this system so they can be shared between configure
34857# scripts and configure runs, see configure's option --config-cache.
34858# It is not useful on other systems. If it contains results you don't
34859# want to keep, you may remove or edit it.
34860#
34861# config.status only pays attention to the cache file if you give it
34862# the --recheck option to rerun configure.
34863#
34864# `ac_cv_env_foo' variables (set or unset) will be overridden when
34865# loading this file, other *unset* `ac_cv_foo' will be assigned the
34866# following values.
34867
34868_ACEOF
34869
34870# The following way of writing the cache mishandles newlines in values,
34871# but we know of no workaround that is simple, portable, and efficient.
34872# So, don't put newlines in cache variables' values.
34873# Ultrix sh set writes to stderr and can't be redirected directly,
34874# and sets the high bit in the cache file unless we assign to the vars.
34875{
34876 (set) 2>&1 |
34877 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34878 *ac_space=\ *)
34879 # `set' does not quote correctly, so add quotes (double-quote
34880 # substitution turns \\\\ into \\, and sed turns \\ into \).
34881 sed -n \
34882 "s/'/'\\\\''/g;
34883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34884 ;;
34885 *)
34886 # `set' quotes correctly as required by POSIX, so do not add quotes.
34887 sed -n \
34888 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34889 ;;
34890 esac;
34891} |
34892 sed '
34893 t clear
34894 : clear
34895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34896 t end
34897 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34898 : end' >>confcache
34899if diff $cache_file confcache >/dev/null 2>&1; then :; else
34900 if test -w $cache_file; then
34901 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34902 cat confcache >$cache_file
34903 else
34904 echo "not updating unwritable cache $cache_file"
34905 fi
34906fi
34907rm -f confcache
34908
34909test "x$prefix" = xNONE && prefix=$ac_default_prefix
34910# Let make expand exec_prefix.
34911test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34912
34913# VPATH may cause trouble with some makes, so we remove $(srcdir),
34914# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34915# trailing colons and then remove the whole line if VPATH becomes empty
34916# (actually we leave an empty line to preserve line numbers).
34917if test "x$srcdir" = x.; then
34918 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34919s/:*\$(srcdir):*/:/;
34920s/:*\${srcdir}:*/:/;
34921s/:*@srcdir@:*/:/;
34922s/^\([^=]*=[ ]*\):*/\1/;
34923s/:*$//;
34924s/^[^=]*=[ ]*$//;
34925}'
34926fi
34927
34928DEFS=-DHAVE_CONFIG_H
34929
34930ac_libobjs=
34931ac_ltlibobjs=
34932for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34933 # 1. Remove the extension, and $U if already installed.
34934 ac_i=`echo "$ac_i" |
34935 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34936 # 2. Add them.
34937 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34938 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34939done
34940LIBOBJS=$ac_libobjs
34941
34942LTLIBOBJS=$ac_ltlibobjs
34943
34944
34945
34946: ${CONFIG_STATUS=./config.status}
34947ac_clean_files_save=$ac_clean_files
34948ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34949{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34950echo "$as_me: creating $CONFIG_STATUS" >&6;}
34951cat >$CONFIG_STATUS <<_ACEOF
34952#! $SHELL
34953# Generated by $as_me.
34954# Run this file to recreate the current configuration.
34955# Compiler output produced by configure, useful for debugging
34956# configure, is in config.log if it exists.
34957
34958debug=false
34959ac_cs_recheck=false
34960ac_cs_silent=false
34961SHELL=\${CONFIG_SHELL-$SHELL}
34962_ACEOF
34963
34964cat >>$CONFIG_STATUS <<\_ACEOF
34965## --------------------- ##
34966## M4sh Initialization. ##
34967## --------------------- ##
34968
34969# Be Bourne compatible
34970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34971 emulate sh
34972 NULLCMD=:
34973 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34974 # is contrary to our usage. Disable this feature.
34975 alias -g '${1+"$@"}'='"$@"'
34976elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34977 set -o posix
34978fi
34979
34980# Support unset when possible.
34981if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34982 as_unset=unset
34983else
34984 as_unset=false
34985fi
34986
34987
34988# Work around bugs in pre-3.0 UWIN ksh.
34989$as_unset ENV MAIL MAILPATH
34990PS1='$ '
34991PS2='> '
34992PS4='+ '
34993
34994# NLS nuisances.
34995for as_var in \
34996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34998 LC_TELEPHONE LC_TIME
34999do
35000 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35001 eval $as_var=C; export $as_var
35002 else
35003 $as_unset $as_var
35004 fi
35005done
35006
35007# Required to use basename.
35008if expr a : '\(a\)' >/dev/null 2>&1; then
35009 as_expr=expr
35010else
35011 as_expr=false
35012fi
35013
35014if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35015 as_basename=basename
35016else
35017 as_basename=false
35018fi
35019
35020
35021# Name of the executable.
35022as_me=`$as_basename "$0" ||
35023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35024 X"$0" : 'X\(//\)$' \| \
35025 X"$0" : 'X\(/\)$' \| \
35026 . : '\(.\)' 2>/dev/null ||
35027echo X/"$0" |
35028 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35029 /^X\/\(\/\/\)$/{ s//\1/; q; }
35030 /^X\/\(\/\).*/{ s//\1/; q; }
35031 s/.*/./; q'`
35032
35033
35034# PATH needs CR, and LINENO needs CR and PATH.
35035# Avoid depending upon Character Ranges.
35036as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35037as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35038as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35039as_cr_digits='0123456789'
35040as_cr_alnum=$as_cr_Letters$as_cr_digits
35041
35042# The user is always right.
35043if test "${PATH_SEPARATOR+set}" != set; then
35044 echo "#! /bin/sh" >conf$$.sh
35045 echo "exit 0" >>conf$$.sh
35046 chmod +x conf$$.sh
35047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35048 PATH_SEPARATOR=';'
35049 else
35050 PATH_SEPARATOR=:
35051 fi
35052 rm -f conf$$.sh
35053fi
35054
35055
35056 as_lineno_1=$LINENO
35057 as_lineno_2=$LINENO
35058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35059 test "x$as_lineno_1" != "x$as_lineno_2" &&
35060 test "x$as_lineno_3" = "x$as_lineno_2" || {
35061 # Find who we are. Look in the path if we contain no path at all
35062 # relative or not.
35063 case $0 in
35064 *[\\/]* ) as_myself=$0 ;;
35065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35066for as_dir in $PATH
35067do
35068 IFS=$as_save_IFS
35069 test -z "$as_dir" && as_dir=.
35070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35071done
35072
35073 ;;
35074 esac
35075 # We did not find ourselves, most probably we were run as `sh COMMAND'
35076 # in which case we are not to be found in the path.
35077 if test "x$as_myself" = x; then
35078 as_myself=$0
35079 fi
35080 if test ! -f "$as_myself"; then
35081 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35082echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35083 { (exit 1); exit 1; }; }
35084 fi
35085 case $CONFIG_SHELL in
35086 '')
35087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35088for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35089do
35090 IFS=$as_save_IFS
35091 test -z "$as_dir" && as_dir=.
35092 for as_base in sh bash ksh sh5; do
35093 case $as_dir in
35094 /*)
35095 if ("$as_dir/$as_base" -c '
35096 as_lineno_1=$LINENO
35097 as_lineno_2=$LINENO
35098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35099 test "x$as_lineno_1" != "x$as_lineno_2" &&
35100 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35101 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35102 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35103 CONFIG_SHELL=$as_dir/$as_base
35104 export CONFIG_SHELL
35105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35106 fi;;
35107 esac
35108 done
35109done
35110;;
35111 esac
35112
35113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35114 # uniformly replaced by the line number. The first 'sed' inserts a
35115 # line-number line before each line; the second 'sed' does the real
35116 # work. The second script uses 'N' to pair each line-number line
35117 # with the numbered line, and appends trailing '-' during
35118 # substitution so that $LINENO is not a special case at line end.
35119 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35120 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35121 sed '=' <$as_myself |
35122 sed '
35123 N
35124 s,$,-,
35125 : loop
35126 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35127 t loop
35128 s,-$,,
35129 s,^['$as_cr_digits']*\n,,
35130 ' >$as_me.lineno &&
35131 chmod +x $as_me.lineno ||
35132 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35133echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35134 { (exit 1); exit 1; }; }
35135
35136 # Don't try to exec as it changes $[0], causing all sort of problems
35137 # (the dirname of $[0] is not the place where we might find the
35138 # original and so on. Autoconf is especially sensible to this).
35139 . ./$as_me.lineno
35140 # Exit status is that of the last command.
35141 exit
35142}
35143
35144
35145case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35146 *c*,-n*) ECHO_N= ECHO_C='
35147' ECHO_T=' ' ;;
35148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35150esac
35151
35152if expr a : '\(a\)' >/dev/null 2>&1; then
35153 as_expr=expr
35154else
35155 as_expr=false
35156fi
35157
35158rm -f conf$$ conf$$.exe conf$$.file
35159echo >conf$$.file
35160if ln -s conf$$.file conf$$ 2>/dev/null; then
35161 # We could just check for DJGPP; but this test a) works b) is more generic
35162 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35163 if test -f conf$$.exe; then
35164 # Don't use ln at all; we don't have any links
35165 as_ln_s='cp -p'
35166 else
35167 as_ln_s='ln -s'
35168 fi
35169elif ln conf$$.file conf$$ 2>/dev/null; then
35170 as_ln_s=ln
35171else
35172 as_ln_s='cp -p'
35173fi
35174rm -f conf$$ conf$$.exe conf$$.file
35175
35176if mkdir -p . 2>/dev/null; then
35177 as_mkdir_p=:
35178else
35179 as_mkdir_p=false
35180fi
35181
35182as_executable_p="test -f"
35183
35184# Sed expression to map a string onto a valid CPP name.
35185as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35186
35187# Sed expression to map a string onto a valid variable name.
35188as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35189
35190
35191# IFS
35192# We need space, tab and new line, in precisely that order.
35193as_nl='
35194'
35195IFS=" $as_nl"
35196
35197# CDPATH.
35198$as_unset CDPATH
35199
35200exec 6>&1
35201
35202# Open the log real soon, to keep \$[0] and so on meaningful, and to
35203# report actual input values of CONFIG_FILES etc. instead of their
35204# values after options handling. Logging --version etc. is OK.
35205exec 5>>config.log
35206{
35207 echo
35208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35209## Running $as_me. ##
35210_ASBOX
35211} >&5
35212cat >&5 <<_CSEOF
35213
35214This file was extended by wxWindows $as_me 2.5.0, which was
35215generated by GNU Autoconf 2.57. Invocation command line was
35216
35217 CONFIG_FILES = $CONFIG_FILES
35218 CONFIG_HEADERS = $CONFIG_HEADERS
35219 CONFIG_LINKS = $CONFIG_LINKS
35220 CONFIG_COMMANDS = $CONFIG_COMMANDS
35221 $ $0 $@
35222
35223_CSEOF
35224echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35225echo >&5
35226_ACEOF
35227
35228# Files that config.status was made for.
35229if test -n "$ac_config_files"; then
35230 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35231fi
35232
35233if test -n "$ac_config_headers"; then
35234 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35235fi
35236
35237if test -n "$ac_config_links"; then
35238 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35239fi
35240
35241if test -n "$ac_config_commands"; then
35242 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35243fi
35244
35245cat >>$CONFIG_STATUS <<\_ACEOF
35246
35247ac_cs_usage="\
35248\`$as_me' instantiates files from templates according to the
35249current configuration.
35250
35251Usage: $0 [OPTIONS] [FILE]...
35252
35253 -h, --help print this help, then exit
35254 -V, --version print version number, then exit
35255 -q, --quiet do not print progress messages
35256 -d, --debug don't remove temporary files
35257 --recheck update $as_me by reconfiguring in the same conditions
35258 --file=FILE[:TEMPLATE]
35259 instantiate the configuration file FILE
35260 --header=FILE[:TEMPLATE]
35261 instantiate the configuration header FILE
35262
35263Configuration files:
35264$config_files
35265
35266Configuration headers:
35267$config_headers
35268
35269Configuration commands:
35270$config_commands
35271
35272Report bugs to <bug-autoconf@gnu.org>."
35273_ACEOF
35274
35275cat >>$CONFIG_STATUS <<_ACEOF
35276ac_cs_version="\\
35277wxWindows config.status 2.5.0
35278configured by $0, generated by GNU Autoconf 2.57,
35279 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35280
35281Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35282Free Software Foundation, Inc.
35283This config.status script is free software; the Free Software Foundation
35284gives unlimited permission to copy, distribute and modify it."
35285srcdir=$srcdir
35286INSTALL="$INSTALL"
35287_ACEOF
35288
35289cat >>$CONFIG_STATUS <<\_ACEOF
35290# If no file are specified by the user, then we need to provide default
35291# value. By we need to know if files were specified by the user.
35292ac_need_defaults=:
35293while test $# != 0
35294do
35295 case $1 in
35296 --*=*)
35297 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35298 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35299 ac_shift=:
35300 ;;
35301 -*)
35302 ac_option=$1
35303 ac_optarg=$2
35304 ac_shift=shift
35305 ;;
35306 *) # This is not an option, so the user has probably given explicit
35307 # arguments.
35308 ac_option=$1
35309 ac_need_defaults=false;;
35310 esac
35311
35312 case $ac_option in
35313 # Handling of the options.
35314_ACEOF
35315cat >>$CONFIG_STATUS <<\_ACEOF
35316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35317 ac_cs_recheck=: ;;
35318 --version | --vers* | -V )
35319 echo "$ac_cs_version"; exit 0 ;;
35320 --he | --h)
35321 # Conflict between --help and --header
35322 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35323Try \`$0 --help' for more information." >&5
35324echo "$as_me: error: ambiguous option: $1
35325Try \`$0 --help' for more information." >&2;}
35326 { (exit 1); exit 1; }; };;
35327 --help | --hel | -h )
35328 echo "$ac_cs_usage"; exit 0 ;;
35329 --debug | --d* | -d )
35330 debug=: ;;
35331 --file | --fil | --fi | --f )
35332 $ac_shift
35333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35334 ac_need_defaults=false;;
35335 --header | --heade | --head | --hea )
35336 $ac_shift
35337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35338 ac_need_defaults=false;;
35339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35341 ac_cs_silent=: ;;
35342
35343 # This is an error.
35344 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35345Try \`$0 --help' for more information." >&5
35346echo "$as_me: error: unrecognized option: $1
35347Try \`$0 --help' for more information." >&2;}
35348 { (exit 1); exit 1; }; } ;;
35349
35350 *) ac_config_targets="$ac_config_targets $1" ;;
35351
35352 esac
35353 shift
35354done
35355
35356ac_configure_extra_args=
35357
35358if $ac_cs_silent; then
35359 exec 6>/dev/null
35360 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35361fi
35362
e6cc62c6
VS
35363_ACEOF
35364cat >>$CONFIG_STATUS <<_ACEOF
35365if \$ac_cs_recheck; then
35366 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35367 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35368fi
35369
e6cc62c6 35370_ACEOF
fe0895cf 35371
e6cc62c6 35372cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35373#
e6cc62c6 35374# INIT-COMMANDS section.
10f2d63a 35375#
10f2d63a 35376
a0b9e27f 35377
e6cc62c6
VS
35378 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35379 LN_S="${LN_S}"
10f2d63a 35380
10f2d63a 35381
10f2d63a 35382
e6cc62c6 35383_ACEOF
8284b0c5 35384
52127426 35385
247f5006 35386
e6cc62c6
VS
35387cat >>$CONFIG_STATUS <<\_ACEOF
35388for ac_config_target in $ac_config_targets
247f5006 35389do
e6cc62c6
VS
35390 case "$ac_config_target" in
35391 # Handling of arguments.
81345eef
VZ
35392 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35393 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35394 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35395 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35396 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35397 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35398 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35399echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35400 { (exit 1); exit 1; }; };;
247f5006
VZ
35401 esac
35402done
35403
e6cc62c6
VS
35404# If the user did not use the arguments to specify the items to instantiate,
35405# then the envvar interface is used. Set only those that are not.
35406# We use the long form for the default assignment because of an extremely
35407# bizarre bug on SunOS 4.1.3.
35408if $ac_need_defaults; then
35409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35412fi
35413
35414# Have a temporary directory for convenience. Make it in the build tree
35415# simply because there is no reason to put it here, and in addition,
35416# creating and moving files from /tmp can sometimes cause problems.
35417# Create a temporary directory, and hook for its removal unless debugging.
35418$debug ||
35419{
35420 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35421 trap '{ (exit 1); exit 1; }' 1 2 13 15
35422}
247f5006 35423
e6cc62c6 35424# Create a (secure) tmp directory for tmp files.
247f5006 35425
e6cc62c6
VS
35426{
35427 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35428 test -n "$tmp" && test -d "$tmp"
35429} ||
35430{
35431 tmp=./confstat$$-$RANDOM
35432 (umask 077 && mkdir $tmp)
35433} ||
35434{
35435 echo "$me: cannot create a temporary directory in ." >&2
35436 { (exit 1); exit 1; }
35437}
35438
35439_ACEOF
35440
35441cat >>$CONFIG_STATUS <<_ACEOF
35442
35443#
35444# CONFIG_FILES section.
35445#
247f5006 35446
e6cc62c6
VS
35447# No need to generate the scripts if there are no CONFIG_FILES.
35448# This happens for instance when ./config.status config.h
35449if test -n "\$CONFIG_FILES"; then
35450 # Protect against being on the right side of a sed subst in config.status.
35451 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35452 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35453s,@SHELL@,$SHELL,;t t
35454s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35455s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35456s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35457s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35458s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35459s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35460s,@exec_prefix@,$exec_prefix,;t t
35461s,@prefix@,$prefix,;t t
35462s,@program_transform_name@,$program_transform_name,;t t
35463s,@bindir@,$bindir,;t t
35464s,@sbindir@,$sbindir,;t t
35465s,@libexecdir@,$libexecdir,;t t
35466s,@datadir@,$datadir,;t t
35467s,@sysconfdir@,$sysconfdir,;t t
35468s,@sharedstatedir@,$sharedstatedir,;t t
35469s,@localstatedir@,$localstatedir,;t t
35470s,@libdir@,$libdir,;t t
35471s,@includedir@,$includedir,;t t
35472s,@oldincludedir@,$oldincludedir,;t t
35473s,@infodir@,$infodir,;t t
35474s,@mandir@,$mandir,;t t
35475s,@build_alias@,$build_alias,;t t
35476s,@host_alias@,$host_alias,;t t
35477s,@target_alias@,$target_alias,;t t
35478s,@DEFS@,$DEFS,;t t
35479s,@ECHO_C@,$ECHO_C,;t t
35480s,@ECHO_N@,$ECHO_N,;t t
35481s,@ECHO_T@,$ECHO_T,;t t
35482s,@LIBS@,$LIBS,;t t
35483s,@build@,$build,;t t
35484s,@build_cpu@,$build_cpu,;t t
35485s,@build_vendor@,$build_vendor,;t t
35486s,@build_os@,$build_os,;t t
35487s,@host@,$host,;t t
35488s,@host_cpu@,$host_cpu,;t t
35489s,@host_vendor@,$host_vendor,;t t
35490s,@host_os@,$host_os,;t t
35491s,@target@,$target,;t t
35492s,@target_cpu@,$target_cpu,;t t
35493s,@target_vendor@,$target_vendor,;t t
35494s,@target_os@,$target_os,;t t
35495s,@CC@,$CC,;t t
35496s,@CFLAGS@,$CFLAGS,;t t
35497s,@LDFLAGS@,$LDFLAGS,;t t
35498s,@CPPFLAGS@,$CPPFLAGS,;t t
35499s,@ac_ct_CC@,$ac_ct_CC,;t t
35500s,@EXEEXT@,$EXEEXT,;t t
35501s,@OBJEXT@,$OBJEXT,;t t
35502s,@CPP@,$CPP,;t t
35503s,@EGREP@,$EGREP,;t t
35504s,@CXX@,$CXX,;t t
35505s,@CXXFLAGS@,$CXXFLAGS,;t t
35506s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35507s,@RANLIB@,$RANLIB,;t t
35508s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35509s,@AR@,$AR,;t t
35510s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35511s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35512s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35513s,@STRIP@,$STRIP,;t t
35514s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35515s,@YACC@,$YACC,;t t
35516s,@LEX@,$LEX,;t t
35517s,@LEXLIB@,$LEXLIB,;t t
35518s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35519s,@LN_S@,$LN_S,;t t
35520s,@CXXCPP@,$CXXCPP,;t t
35521s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35522s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35523s,@GTK_LIBS@,$GTK_LIBS,;t t
35524s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35525s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35526s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35527s,@X_CFLAGS@,$X_CFLAGS,;t t
35528s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35529s,@X_LIBS@,$X_LIBS,;t t
35530s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35531s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35532s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35533s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35534s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35535s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35536s,@RESCOMP@,$RESCOMP,;t t
35537s,@DEREZ@,$DEREZ,;t t
35538s,@SETFILE@,$SETFILE,;t t
35539s,@LIBICONV@,$LIBICONV,;t t
35540s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35541s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35542s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35543s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35544s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35545s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
35546s,@VENDOR@,$VENDOR,;t t
35547s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
35548s,@WXUNIV@,$WXUNIV,;t t
35549s,@MONOLITHIC@,$MONOLITHIC,;t t
35550s,@EXTRALIBS@,$EXTRALIBS,;t t
35551s,@UNICODE@,$UNICODE,;t t
35552s,@BUILD@,$BUILD,;t t
35553s,@SHARED@,$SHARED,;t t
35554s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35555s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35556s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35557s,@SET_MAKE@,$SET_MAKE,;t t
35558s,@MAKE_SET@,$MAKE_SET,;t t
35559s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 35560s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
35561s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35562s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35563s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35564s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35565s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35566s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35567s,@DLLPREFIX@,$DLLPREFIX,;t t
35568s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35569s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35570s,@PIC_FLAG@,$PIC_FLAG,;t t
35571s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35572s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35573s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35574s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35575s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35576s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35577s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
8ee2dd05 35578s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
f95cd8fa 35579s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05
VS
35580s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
35581s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
8ee2dd05
VS
35582s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
35583s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
6b9d41a5 35584s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
8ee2dd05
VS
35585s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35586s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35587s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
9747f85d 35588s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
8ee2dd05 35589s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35590s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
6b9d41a5 35591s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
8ee2dd05 35592s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
f95cd8fa 35593s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
8ee2dd05 35594s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
f95cd8fa 35595s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
8ee2dd05
VS
35596s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
35597s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35598s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
8ee2dd05
VS
35599s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35600s,@COND_OFFICIAL_BUILD_0@,$COND_OFFICIAL_BUILD_0,;t t
35601s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35602s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
8ee2dd05 35603s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9747f85d 35604s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
8ee2dd05
VS
35605s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
35606s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
35607s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
35608s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
35609s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35610s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
35611s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
8ee2dd05
VS
35612s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35613s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
35614s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
35615s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35616s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
35617s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35618s,@COND_OFFICIAL_BUILD_1@,$COND_OFFICIAL_BUILD_1,;t t
35619s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
8ee2dd05
VS
35620s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35621s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
9747f85d 35622s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
8ee2dd05
VS
35623s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35624s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
f95cd8fa 35625s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
8ee2dd05
VS
35626s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
35627s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
35628s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
9747f85d
VS
35629s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35630s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
8ee2dd05 35631s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
8ee2dd05
VS
35632s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35633s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35634s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
35635s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
35636s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
35637s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
fddeb06b
VS
35638s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35639s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35640s,@COND_SHARED_0@,$COND_SHARED_0,;t t
e6cc62c6
VS
35641s,@LEX_STEM@,$LEX_STEM,;t t
35642s,@PATH_IFS@,$PATH_IFS,;t t
35643s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35644s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35645s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35646s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35647s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35648s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35649s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35650s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35651s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35652s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35653s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35654s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35655s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35656s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35657s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35658s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35659s,@WX_ALL@,$WX_ALL,;t t
35660s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35661s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
35662s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35663s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35664s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35665s,@USE_GUI@,$USE_GUI,;t t
35666s,@AFMINSTALL@,$AFMINSTALL,;t t
35667s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35668s,@TOOLKIT@,$TOOLKIT,;t t
35669s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35670s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35671s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35672s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35673s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35674s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35675s,@cross_compiling@,$cross_compiling,;t t
35676s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35677s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35678s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35679s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35680s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35681s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35682s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
35683s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35684s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
35685s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35686s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35687s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35688s,@GUIDIST@,$GUIDIST,;t t
35689s,@PORT_FILES@,$PORT_FILES,;t t
35690s,@DISTDIR@,$DISTDIR,;t t
35691s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35692s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35693s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35694s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35695s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35696s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35697s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35698s,@RESFLAGS@,$RESFLAGS,;t t
35699s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35700s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35701s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35702s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35703s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35704s,@MACRESCOMP@,$MACRESCOMP,;t t
35705s,@MACSETFILE@,$MACSETFILE,;t t
35706s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35707s,@GCC@,$GCC,;t t
35708s,@DLLTOOL@,$DLLTOOL,;t t
35709s,@AS@,$AS,;t t
35710s,@NM@,$NM,;t t
35711s,@LD@,$LD,;t t
35712s,@MAKEINFO@,$MAKEINFO,;t t
35713s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35714s,@ESD_LINK@,$ESD_LINK,;t t
35715s,@LIBOBJS@,$LIBOBJS,;t t
35716s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35717CEOF
35718
e6cc62c6
VS
35719_ACEOF
35720
35721 cat >>$CONFIG_STATUS <<\_ACEOF
35722 # Split the substitutions into bite-sized pieces for seds with
35723 # small command number limits, like on Digital OSF/1 and HP-UX.
35724 ac_max_sed_lines=48
35725 ac_sed_frag=1 # Number of current file.
35726 ac_beg=1 # First line for current file.
35727 ac_end=$ac_max_sed_lines # Line after last line for current file.
35728 ac_more_lines=:
35729 ac_sed_cmds=
35730 while $ac_more_lines; do
35731 if test $ac_beg -gt 1; then
35732 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35733 else
e6cc62c6
VS
35734 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35735 fi
35736 if test ! -s $tmp/subs.frag; then
35737 ac_more_lines=false
35738 else
35739 # The purpose of the label and of the branching condition is to
35740 # speed up the sed processing (if there are no `@' at all, there
35741 # is no need to browse any of the substitutions).
35742 # These are the two extra sed commands mentioned above.
35743 (echo ':t
35744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35745 if test -z "$ac_sed_cmds"; then
35746 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35747 else
35748 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35749 fi
35750 ac_sed_frag=`expr $ac_sed_frag + 1`
35751 ac_beg=$ac_end
35752 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35753 fi
e6cc62c6
VS
35754 done
35755 if test -z "$ac_sed_cmds"; then
35756 ac_sed_cmds=cat
10f2d63a 35757 fi
e6cc62c6 35758fi # test -n "$CONFIG_FILES"
10f2d63a 35759
e6cc62c6
VS
35760_ACEOF
35761cat >>$CONFIG_STATUS <<\_ACEOF
35762for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35764 case $ac_file in
35765 - | *:- | *:-:* ) # input from stdin
35766 cat >$tmp/stdin
35767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35771 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35772 esac
247f5006 35773
e6cc62c6
VS
35774 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35777 X"$ac_file" : 'X\(//\)[^/]' \| \
35778 X"$ac_file" : 'X\(//\)$' \| \
35779 X"$ac_file" : 'X\(/\)' \| \
35780 . : '\(.\)' 2>/dev/null ||
35781echo X"$ac_file" |
35782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35784 /^X\(\/\/\)$/{ s//\1/; q; }
35785 /^X\(\/\).*/{ s//\1/; q; }
35786 s/.*/./; q'`
35787 { if $as_mkdir_p; then
35788 mkdir -p "$ac_dir"
a0b9e27f 35789 else
e6cc62c6
VS
35790 as_dir="$ac_dir"
35791 as_dirs=
35792 while test ! -d "$as_dir"; do
35793 as_dirs="$as_dir $as_dirs"
35794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35796 X"$as_dir" : 'X\(//\)[^/]' \| \
35797 X"$as_dir" : 'X\(//\)$' \| \
35798 X"$as_dir" : 'X\(/\)' \| \
35799 . : '\(.\)' 2>/dev/null ||
35800echo X"$as_dir" |
35801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35803 /^X\(\/\/\)$/{ s//\1/; q; }
35804 /^X\(\/\).*/{ s//\1/; q; }
35805 s/.*/./; q'`
35806 done
35807 test ! -n "$as_dirs" || mkdir $as_dirs
35808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35809echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35810 { (exit 1); exit 1; }; }; }
35811
35812 ac_builddir=.
35813
35814if test "$ac_dir" != .; then
35815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35816 # A "../" for each directory in $ac_dir_suffix.
35817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35818else
35819 ac_dir_suffix= ac_top_builddir=
35820fi
247f5006 35821
e6cc62c6
VS
35822case $srcdir in
35823 .) # No --srcdir option. We are building in place.
35824 ac_srcdir=.
35825 if test -z "$ac_top_builddir"; then
35826 ac_top_srcdir=.
35827 else
35828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35829 fi ;;
35830 [\\/]* | ?:[\\/]* ) # Absolute path.
35831 ac_srcdir=$srcdir$ac_dir_suffix;
35832 ac_top_srcdir=$srcdir ;;
247f5006 35833 *) # Relative path.
e6cc62c6
VS
35834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35836esac
35837# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35838# absolute.
35839ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35840ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35841ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35842ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 35843
247f5006 35844
e6cc62c6
VS
35845 case $INSTALL in
35846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 35848 esac
247f5006 35849
e6cc62c6
VS
35850 if test x"$ac_file" != x-; then
35851 { echo "$as_me:$LINENO: creating $ac_file" >&5
35852echo "$as_me: creating $ac_file" >&6;}
35853 rm -f "$ac_file"
35854 fi
35855 # Let's still pretend it is `configure' which instantiates (i.e., don't
35856 # use $as_me), people would be surprised to read:
35857 # /* config.h. Generated by config.status. */
35858 if test x"$ac_file" = x-; then
35859 configure_input=
35860 else
35861 configure_input="$ac_file. "
35862 fi
35863 configure_input=$configure_input"Generated from `echo $ac_file_in |
35864 sed 's,.*/,,'` by configure."
35865
35866 # First look for the input files in the build tree, otherwise in the
35867 # src tree.
35868 ac_file_inputs=`IFS=:
35869 for f in $ac_file_in; do
35870 case $f in
35871 -) echo $tmp/stdin ;;
35872 [\\/$]*)
35873 # Absolute (can't be DOS-style, as IFS=:)
35874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35875echo "$as_me: error: cannot find input file: $f" >&2;}
35876 { (exit 1); exit 1; }; }
35877 echo $f;;
35878 *) # Relative
35879 if test -f "$f"; then
35880 # Build tree
35881 echo $f
35882 elif test -f "$srcdir/$f"; then
35883 # Source tree
35884 echo $srcdir/$f
35885 else
35886 # /dev/null tree
35887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35888echo "$as_me: error: cannot find input file: $f" >&2;}
35889 { (exit 1); exit 1; }; }
35890 fi;;
35891 esac
35892 done` || { (exit 1); exit 1; }
35893_ACEOF
35894cat >>$CONFIG_STATUS <<_ACEOF
35895 sed "$ac_vpsub
35896$extrasub
35897_ACEOF
35898cat >>$CONFIG_STATUS <<\_ACEOF
35899:t
35900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35901s,@configure_input@,$configure_input,;t t
35902s,@srcdir@,$ac_srcdir,;t t
35903s,@abs_srcdir@,$ac_abs_srcdir,;t t
35904s,@top_srcdir@,$ac_top_srcdir,;t t
35905s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35906s,@builddir@,$ac_builddir,;t t
35907s,@abs_builddir@,$ac_abs_builddir,;t t
35908s,@top_builddir@,$ac_top_builddir,;t t
35909s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35910s,@INSTALL@,$ac_INSTALL,;t t
35911" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35912 rm -f $tmp/stdin
35913 if test x"$ac_file" != x-; then
35914 mv $tmp/out $ac_file
35915 else
35916 cat $tmp/out
35917 rm -f $tmp/out
35918 fi
35919
35920done
35921_ACEOF
35922cat >>$CONFIG_STATUS <<\_ACEOF
35923
35924#
35925# CONFIG_HEADER section.
35926#
10f2d63a
VZ
35927
35928# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35929# NAME is the cpp macro being defined and VALUE is the value it is being given.
35930#
35931# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
35932ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35933ac_dB='[ ].*$,\1#\2'
35934ac_dC=' '
35935ac_dD=',;t'
35936# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35937ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35938ac_uB='$,\1#\2define\3'
10f2d63a 35939ac_uC=' '
e6cc62c6
VS
35940ac_uD=',;t'
35941
35942for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 35943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35944 case $ac_file in
35945 - | *:- | *:-:* ) # input from stdin
35946 cat >$tmp/stdin
35947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35951 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
35952 esac
35953
e6cc62c6
VS
35954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35955echo "$as_me: creating $ac_file" >&6;}
35956
35957 # First look for the input files in the build tree, otherwise in the
35958 # src tree.
35959 ac_file_inputs=`IFS=:
35960 for f in $ac_file_in; do
35961 case $f in
35962 -) echo $tmp/stdin ;;
35963 [\\/$]*)
35964 # Absolute (can't be DOS-style, as IFS=:)
35965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35966echo "$as_me: error: cannot find input file: $f" >&2;}
35967 { (exit 1); exit 1; }; }
35968 echo $f;;
35969 *) # Relative
35970 if test -f "$f"; then
35971 # Build tree
35972 echo $f
35973 elif test -f "$srcdir/$f"; then
35974 # Source tree
35975 echo $srcdir/$f
35976 else
35977 # /dev/null tree
35978 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35979echo "$as_me: error: cannot find input file: $f" >&2;}
35980 { (exit 1); exit 1; }; }
35981 fi;;
35982 esac
35983 done` || { (exit 1); exit 1; }
35984 # Remove the trailing spaces.
35985 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35986
35987_ACEOF
35988
35989# Transform confdefs.h into two sed scripts, `conftest.defines' and
35990# `conftest.undefs', that substitutes the proper values into
35991# config.h.in to produce config.h. The first handles `#define'
35992# templates, and the second `#undef' templates.
35993# And first: Protect against being on the right side of a sed subst in
35994# config.status. Protect against being in an unquoted here document
35995# in config.status.
35996rm -f conftest.defines conftest.undefs
35997# Using a here document instead of a string reduces the quoting nightmare.
35998# Putting comments in sed scripts is not portable.
35999#
36000# `end' is used to avoid that the second main sed command (meant for
36001# 0-ary CPP macros) applies to n-ary macro definitions.
36002# See the Autoconf documentation for `clear'.
36003cat >confdef2sed.sed <<\_ACEOF
36004s/[\\&,]/\\&/g
36005s,[\\$`],\\&,g
36006t clear
36007: clear
36008s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36009t end
36010s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36011: end
36012_ACEOF
36013# If some macros were called several times there might be several times
36014# the same #defines, which is useless. Nevertheless, we may not want to
36015# sort them, since we want the *last* AC-DEFINE to be honored.
36016uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36017sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36018rm -f confdef2sed.sed
10f2d63a
VZ
36019
36020# This sed command replaces #undef with comments. This is necessary, for
36021# example, in the case of _POSIX_SOURCE, which is predefined and required
36022# on some systems where configure will not decide to define it.
e6cc62c6
VS
36023cat >>conftest.undefs <<\_ACEOF
36024s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36025_ACEOF
36026
36027# Break up conftest.defines because some shells have a limit on the size
36028# of here documents, and old seds have small limits too (100 cmds).
36029echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36030echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36031echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36032echo ' :' >>$CONFIG_STATUS
36033rm -f conftest.tail
36034while grep . conftest.defines >/dev/null
36035do
36036 # Write a limited-size here document to $tmp/defines.sed.
36037 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36038 # Speed up: don't consider the non `#define' lines.
36039 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36040 # Work around the forget-to-reset-the-flag bug.
36041 echo 't clr' >>$CONFIG_STATUS
36042 echo ': clr' >>$CONFIG_STATUS
36043 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36044 echo 'CEOF
36045 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36046 rm -f $tmp/in
36047 mv $tmp/out $tmp/in
36048' >>$CONFIG_STATUS
36049 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36050 rm -f conftest.defines
36051 mv conftest.tail conftest.defines
36052done
36053rm -f conftest.defines
36054echo ' fi # grep' >>$CONFIG_STATUS
36055echo >>$CONFIG_STATUS
10f2d63a 36056
e6cc62c6
VS
36057# Break up conftest.undefs because some shells have a limit on the size
36058# of here documents, and old seds have small limits too (100 cmds).
36059echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36060rm -f conftest.tail
e6cc62c6 36061while grep . conftest.undefs >/dev/null
10f2d63a 36062do
e6cc62c6
VS
36063 # Write a limited-size here document to $tmp/undefs.sed.
36064 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36065 # Speed up: don't consider the non `#undef'
36066 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36067 # Work around the forget-to-reset-the-flag bug.
36068 echo 't clr' >>$CONFIG_STATUS
36069 echo ': clr' >>$CONFIG_STATUS
36070 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36071 echo 'CEOF
e6cc62c6
VS
36072 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36073 rm -f $tmp/in
36074 mv $tmp/out $tmp/in
36075' >>$CONFIG_STATUS
36076 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36077 rm -f conftest.undefs
36078 mv conftest.tail conftest.undefs
10f2d63a 36079done
e6cc62c6
VS
36080rm -f conftest.undefs
36081
36082cat >>$CONFIG_STATUS <<\_ACEOF
36083 # Let's still pretend it is `configure' which instantiates (i.e., don't
36084 # use $as_me), people would be surprised to read:
36085 # /* config.h. Generated by config.status. */
36086 if test x"$ac_file" = x-; then
36087 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36088 else
e6cc62c6 36089 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36090 fi
e6cc62c6
VS
36091 cat $tmp/in >>$tmp/config.h
36092 rm -f $tmp/in
36093 if test x"$ac_file" != x-; then
36094 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36095 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36096echo "$as_me: $ac_file is unchanged" >&6;}
36097 else
36098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36100 X"$ac_file" : 'X\(//\)[^/]' \| \
36101 X"$ac_file" : 'X\(//\)$' \| \
36102 X"$ac_file" : 'X\(/\)' \| \
36103 . : '\(.\)' 2>/dev/null ||
36104echo X"$ac_file" |
36105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36107 /^X\(\/\/\)$/{ s//\1/; q; }
36108 /^X\(\/\).*/{ s//\1/; q; }
36109 s/.*/./; q'`
36110 { if $as_mkdir_p; then
36111 mkdir -p "$ac_dir"
36112 else
36113 as_dir="$ac_dir"
36114 as_dirs=
36115 while test ! -d "$as_dir"; do
36116 as_dirs="$as_dir $as_dirs"
36117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36119 X"$as_dir" : 'X\(//\)[^/]' \| \
36120 X"$as_dir" : 'X\(//\)$' \| \
36121 X"$as_dir" : 'X\(/\)' \| \
36122 . : '\(.\)' 2>/dev/null ||
36123echo X"$as_dir" |
36124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36126 /^X\(\/\/\)$/{ s//\1/; q; }
36127 /^X\(\/\).*/{ s//\1/; q; }
36128 s/.*/./; q'`
36129 done
36130 test ! -n "$as_dirs" || mkdir $as_dirs
36131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36133 { (exit 1); exit 1; }; }; }
a0b9e27f 36134
e6cc62c6
VS
36135 rm -f $ac_file
36136 mv $tmp/config.h $ac_file
36137 fi
36138 else
36139 cat $tmp/config.h
36140 rm -f $tmp/config.h
36141 fi
36142done
36143_ACEOF
36144cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36145
e6cc62c6
VS
36146#
36147# CONFIG_COMMANDS section.
36148#
36149for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36150 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36151 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36152 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36153$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36154 X"$ac_dest" : 'X\(//\)[^/]' \| \
36155 X"$ac_dest" : 'X\(//\)$' \| \
36156 X"$ac_dest" : 'X\(/\)' \| \
36157 . : '\(.\)' 2>/dev/null ||
36158echo X"$ac_dest" |
36159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36161 /^X\(\/\/\)$/{ s//\1/; q; }
36162 /^X\(\/\).*/{ s//\1/; q; }
36163 s/.*/./; q'`
36164 ac_builddir=.
36165
36166if test "$ac_dir" != .; then
36167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36168 # A "../" for each directory in $ac_dir_suffix.
36169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36170else
36171 ac_dir_suffix= ac_top_builddir=
36172fi
36173
36174case $srcdir in
36175 .) # No --srcdir option. We are building in place.
36176 ac_srcdir=.
36177 if test -z "$ac_top_builddir"; then
36178 ac_top_srcdir=.
36179 else
36180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36181 fi ;;
36182 [\\/]* | ?:[\\/]* ) # Absolute path.
36183 ac_srcdir=$srcdir$ac_dir_suffix;
36184 ac_top_srcdir=$srcdir ;;
36185 *) # Relative path.
36186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36188esac
36189# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36190# absolute.
36191ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36192ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36193ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36194ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36195
36196
36197 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36198echo "$as_me: executing $ac_dest commands" >&6;}
36199 case $ac_dest in
36200 default )
652d930d 36201 if test ! -h wx-config; then
991a5759 36202 chmod +x wx-config
3a922bb4
RL
36203 mv wx-config wx${TOOLCHAIN_NAME}-config
36204 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36205 fi
665bbe97 36206
00cf1208
RR
36207 if test ! -d lib; then
36208 mkdir lib
36209 fi
36210 if test ! -d lib/wx; then
36211 mkdir lib/wx
36212 fi
36213 if test ! -d lib/wx/include; then
36214 mkdir lib/wx/include
36215 fi
3a922bb4
RL
36216 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36217 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36218 fi
3a922bb4
RL
36219 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36220 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36221 fi
36222 if test -f setup.h; then
3a922bb4 36223 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36224 fi
e6cc62c6
VS
36225 ;;
36226 esac
36227done
36228_ACEOF
2224580a 36229
e6cc62c6 36230cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36231
e6cc62c6
VS
36232{ (exit 0); exit 0; }
36233_ACEOF
36234chmod +x $CONFIG_STATUS
36235ac_clean_files=$ac_clean_files_save
36236
36237
36238# configure is writing to config.log, and then calls config.status.
36239# config.status does its own redirection, appending to config.log.
36240# Unfortunately, on DOS this fails, as config.log is still kept open
36241# by configure, so config.status won't be able to write to it; its
36242# output is simply discarded. So we exec the FD to /dev/null,
36243# effectively closing config.log, so it can be properly (re)opened and
36244# appended to by config.status. When coming back to configure, we
36245# need to make the FD available again.
36246if test "$no_create" != yes; then
36247 ac_cs_success=:
36248 ac_config_status_args=
36249 test "$silent" = yes &&
36250 ac_config_status_args="$ac_config_status_args --quiet"
36251 exec 5>/dev/null
36252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36253 exec 5>>config.log
36254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36255 # would make configure fail if this is the last instruction.
36256 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36257fi
36258
8284b0c5 36259
2b5f62a0
VZ
36260echo
36261echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36262echo ""
36263echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36264echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36265
36266echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36267echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36268echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36269
0c98a14e
GD
36270echo " What level of wxWindows compatibility should be enabled?"
36271echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36272echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36273echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36274
2b5f62a0
VZ
36275echo " Which libraries should wxWindows use?"
36276echo " jpeg ${wxUSE_LIBJPEG-none}"
36277echo " png ${wxUSE_LIBPNG-none}"
36278echo " regex ${wxUSE_REGEX}"
36279echo " tiff ${wxUSE_LIBTIFF-none}"
36280echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36281echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
36282
36283echo ""
36284