]>
Commit | Line | Data |
---|---|---|
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 |
17 | if 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+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 VS |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
41 | # NLS nuisances. |
42 | for 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 | |
46 | do | |
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 | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
54 | # Required to use basename. |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
fe0895cf | 60 | |
e6cc62c6 VS |
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
68 | # Name of the executable. |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo 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. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fe0895cf | 88 | |
e6cc62c6 VS |
89 | # The user is always right. |
90 | if 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 | |
100 | fi | |
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 | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
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 | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
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 | |
155 | done | |
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 |
190 | case `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= ;; | |
195 | esac | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
203 | rm -f conf$$ conf$$.exe conf$$.file |
204 | echo >conf$$.file | |
205 | if 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 | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_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. |
233 | as_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. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $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. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${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. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_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 | ||
672abd7a | 314 | ac_subdirs_all="$ac_subdirs_all src/expat" |
40b46a49 | 315 | ac_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 LN_S CXXCPP subdirs 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 RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI 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_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI 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 LIBOBJS LTLIBOBJS' |
e6cc62c6 | 316 | ac_subst_files='' |
10f2d63a VZ |
317 | |
318 | # Initialize some variables set by options. | |
e6cc62c6 VS |
319 | ac_init_help= |
320 | ac_init_version=false | |
10f2d63a VZ |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
e6cc62c6 | 323 | cache_file=/dev/null |
10f2d63a | 324 | exec_prefix=NONE |
10f2d63a | 325 | no_create= |
10f2d63a VZ |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
10f2d63a VZ |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
e6cc62c6 VS |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
10f2d63a VZ |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
10f2d63a VZ |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
e6cc62c6 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
e6cc62c6 | 370 | case $ac_option in |
10f2d63a VZ |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 375 | bindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 378 | ac_prev=build_alias ;; |
10f2d63a | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 380 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
10f2d63a VZ |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
e6cc62c6 | 396 | datadir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -disable-* | --disable-*) | |
e6cc62c6 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 400 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
406 | |
407 | -enable-* | --enable-*) | |
e6cc62c6 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 409 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
416 | *) ac_optarg=yes ;; |
417 | esac | |
e6cc62c6 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 427 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
e6cc62c6 VS |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
10f2d63a VZ |
439 | |
440 | -host | --host | --hos | --ho) | |
e6cc62c6 | 441 | ac_prev=host_alias ;; |
10f2d63a | 442 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 443 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 450 | includedir=$ac_optarg ;; |
10f2d63a VZ |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 455 | infodir=$ac_optarg ;; |
10f2d63a VZ |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 460 | libdir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 467 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 476 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 481 | mandir=$ac_optarg ;; |
10f2d63a VZ |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 488 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 502 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 507 | prefix=$ac_optarg ;; |
10f2d63a VZ |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 514 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 521 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 538 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
e6cc62c6 | 548 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
e6cc62c6 | 559 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 564 | site=$ac_optarg ;; |
10f2d63a VZ |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 569 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 576 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 579 | ac_prev=target_alias ;; |
10f2d63a | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 581 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
e6cc62c6 VS |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
10f2d63a VZ |
588 | |
589 | -with-* | --with-*) | |
e6cc62c6 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 591 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
10f2d63a | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
598 | *) ac_optarg=yes ;; |
599 | esac | |
e6cc62c6 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
601 | |
602 | -without-* | --without-*) | |
e6cc62c6 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 604 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 620 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 627 | x_libraries=$ac_optarg ;; |
10f2d63a | 628 | |
e6cc62c6 VS |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
632 | ;; |
633 | ||
e6cc62c6 VS |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
10f2d63a | 644 | *) |
e6cc62c6 VS |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
a0b9e27f | 659 | fi |
a0b9e27f | 660 | |
e6cc62c6 VS |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
8284b0c5 | 671 | |
e6cc62c6 VS |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 675 | do |
e6cc62c6 VS |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
681 | esac |
682 | done | |
683 | ||
e6cc62c6 VS |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
247f5006 | 701 | |
e6cc62c6 VS |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 706 | |
10f2d63a VZ |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
10f2d63a VZ |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
10f2d63a | 735 | else |
e6cc62c6 VS |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
738 | fi |
739 | fi | |
e6cc62c6 VS |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ac_env_CXX_set=${CXX+set} | |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
784 | ac_env_CXXCPP_set=${CXXCPP+set} | |
785 | ac_env_CXXCPP_value=$CXXCPP | |
786 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
787 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 788 | |
e6cc62c6 VS |
789 | # |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
796 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
10f2d63a | 797 | |
e6cc62c6 | 798 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 799 | |
e6cc62c6 VS |
800 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
801 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 802 | |
e6cc62c6 VS |
803 | Defaults for the options are specified in brackets. |
804 | ||
805 | Configuration: | |
806 | -h, --help display this help and exit | |
807 | --help=short display options specific to this package | |
808 | --help=recursive display the short help of all the included packages | |
809 | -V, --version display version information and exit | |
810 | -q, --quiet, --silent do not print \`checking...' messages | |
811 | --cache-file=FILE cache test results in FILE [disabled] | |
812 | -C, --config-cache alias for \`--cache-file=config.cache' | |
813 | -n, --no-create do not create output files | |
814 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
815 | ||
816 | _ACEOF | |
817 | ||
818 | cat <<_ACEOF | |
819 | Installation directories: | |
820 | --prefix=PREFIX install architecture-independent files in PREFIX | |
821 | [$ac_default_prefix] | |
822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
823 | [PREFIX] | |
824 | ||
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
862 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
863 | esac | |
864 | cat <<\_ACEOF | |
865 | ||
866 | Optional Features: | |
867 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
868 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
869 | --enable-gui use GUI classes | |
9747f85d | 870 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
871 | --enable-universal use wxWindows GUI controls instead of native ones |
872 | --enable-nanox use NanoX | |
873 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
874 | --enable-shared create shared library code | |
e6cc62c6 VS |
875 | --enable-optimise create optimised code |
876 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 877 | --enable-stl use STL for containers |
e6cc62c6 VS |
878 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
879 | --enable-debug_info create code with debugging information | |
880 | --enable-debug_gdb create code with extra GDB debugging information | |
881 | --enable-debug_cntxt use wxDebugContext | |
882 | --enable-mem_tracing create code with memory tracing | |
883 | --enable-profile create code with profiling information | |
884 | --enable-no_rtti create code without RTTI information | |
885 | --enable-no_exceptions create code without C++ exceptions handling | |
886 | --enable-permissive compile code disregarding strict ANSI | |
887 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
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 | |
029b47ad VS |
1026 | --enable-official_build official build of wxWindows (win32 DLL only) |
1027 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1028 | --disable-largefile omit support for large files |
1029 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1030 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1031 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1032 | |
1033 | Optional Packages: | |
1034 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1035 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1036 | --with-gtk use GTK+ | |
1037 | --with-motif use Motif/Lesstif | |
1038 | --with-mac use Mac OS X | |
1039 | --with-cocoa use Cocoa | |
1040 | --with-wine use Wine | |
1041 | --with-msw use MS-Windows | |
1042 | --with-pm use OS/2 Presentation Manager | |
1043 | --with-mgl use SciTech MGL | |
1044 | --with-microwin use MicroWindows | |
1045 | --with-x11 use X11 | |
1046 | --with-libpng use libpng (PNG image format) | |
1047 | --with-libjpeg use libjpeg (JPEG file format) | |
1048 | --with-libtiff use libtiff (TIFF file format) | |
1049 | --with-opengl use OpenGL (or Mesa) | |
1050 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1051 | --with-regex enable support for wxRegEx class | |
1052 | --with-zlib use zlib for LZW compression | |
1053 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1054 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1055 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1056 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1057 | --with-x use the X Window System | |
1058 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1059 | ||
1060 | Some influential environment variables: | |
1061 | CC C compiler command | |
1062 | CFLAGS C compiler flags | |
1063 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1064 | nonstandard directory <lib dir> | |
1065 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1066 | headers in a nonstandard directory <include dir> | |
1067 | CPP C preprocessor | |
1068 | CXX C++ compiler command | |
1069 | CXXFLAGS C++ compiler flags | |
1070 | CXXCPP C++ preprocessor | |
1071 | ||
1072 | Use these variables to override the choices made by `configure' or to help | |
1073 | it to find libraries and programs with nonstandard names/locations. | |
1074 | ||
1075 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1076 | _ACEOF | |
1077 | fi | |
1078 | ||
1079 | if test "$ac_init_help" = "recursive"; then | |
1080 | # If there are subdirs, report their specific --help. | |
1081 | ac_popdir=`pwd` | |
1082 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1083 | test -d $ac_dir || continue | |
1084 | ac_builddir=. | |
1085 | ||
1086 | if test "$ac_dir" != .; then | |
1087 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1088 | # A "../" for each directory in $ac_dir_suffix. | |
1089 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1090 | else | |
1091 | ac_dir_suffix= ac_top_builddir= | |
1092 | fi | |
1093 | ||
1094 | case $srcdir in | |
1095 | .) # No --srcdir option. We are building in place. | |
1096 | ac_srcdir=. | |
1097 | if test -z "$ac_top_builddir"; then | |
1098 | ac_top_srcdir=. | |
1099 | else | |
1100 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1101 | fi ;; | |
1102 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1103 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1104 | ac_top_srcdir=$srcdir ;; | |
1105 | *) # Relative path. | |
1106 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1107 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1108 | esac | |
1109 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1110 | # absolute. | |
1111 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1112 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1113 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1114 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1115 | ||
1116 | cd $ac_dir | |
1117 | # Check for guested configure; otherwise get Cygnus style configure. | |
1118 | if test -f $ac_srcdir/configure.gnu; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1121 | elif test -f $ac_srcdir/configure; then | |
1122 | echo | |
1123 | $SHELL $ac_srcdir/configure --help=recursive | |
1124 | elif test -f $ac_srcdir/configure.ac || | |
1125 | test -f $ac_srcdir/configure.in; then | |
1126 | echo | |
1127 | $ac_configure --help | |
1128 | else | |
1129 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1130 | fi | |
1131 | cd $ac_popdir | |
1132 | done | |
1133 | fi | |
8284b0c5 | 1134 | |
e6cc62c6 VS |
1135 | test -n "$ac_init_help" && exit 0 |
1136 | if $ac_init_version; then | |
1137 | cat <<\_ACEOF | |
1138 | wxWindows configure 2.5.0 | |
1139 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1140 | |
e6cc62c6 VS |
1141 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1142 | Free Software Foundation, Inc. | |
1143 | This configure script is free software; the Free Software Foundation | |
1144 | gives unlimited permission to copy, distribute and modify it. | |
1145 | _ACEOF | |
1146 | exit 0 | |
7c66a493 | 1147 | fi |
e6cc62c6 VS |
1148 | exec 5>config.log |
1149 | cat >&5 <<_ACEOF | |
1150 | This file contains any messages produced by compilers while | |
1151 | running configure, to aid debugging if configure makes a mistake. | |
1152 | ||
1153 | It was created by wxWindows $as_me 2.5.0, which was | |
1154 | generated by GNU Autoconf 2.57. Invocation command line was | |
1155 | ||
1156 | $ $0 $@ | |
1157 | ||
1158 | _ACEOF | |
1159 | { | |
1160 | cat <<_ASUNAME | |
1161 | ## --------- ## | |
1162 | ## Platform. ## | |
1163 | ## --------- ## | |
1164 | ||
1165 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1166 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1167 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1168 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1169 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1170 | ||
1171 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1172 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1173 | ||
1174 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1176 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1177 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1178 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1180 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1181 | ||
1182 | _ASUNAME | |
1183 | ||
1184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1185 | for as_dir in $PATH | |
1186 | do | |
1187 | IFS=$as_save_IFS | |
1188 | test -z "$as_dir" && as_dir=. | |
1189 | echo "PATH: $as_dir" | |
1190 | done | |
1191 | ||
1192 | } >&5 | |
1193 | ||
1194 | cat >&5 <<_ACEOF | |
1195 | ||
1196 | ||
1197 | ## ----------- ## | |
1198 | ## Core tests. ## | |
1199 | ## ----------- ## | |
1200 | ||
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | # Keep a trace of the command line. | |
1205 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1206 | # Strip out --silent because we don't want to record it for future runs. | |
1207 | # Also quote any args containing shell meta-characters. | |
1208 | # Make two passes to allow for proper duplicate-argument suppression. | |
1209 | ac_configure_args= | |
1210 | ac_configure_args0= | |
1211 | ac_configure_args1= | |
1212 | ac_sep= | |
1213 | ac_must_keep_next=false | |
1214 | for ac_pass in 1 2 | |
1215 | do | |
1216 | for ac_arg | |
1217 | do | |
1218 | case $ac_arg in | |
1219 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1220 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1221 | | -silent | --silent | --silen | --sile | --sil) | |
1222 | continue ;; | |
1223 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1224 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1225 | esac | |
1226 | case $ac_pass in | |
1227 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1228 | 2) | |
1229 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1230 | if test $ac_must_keep_next = true; then | |
1231 | ac_must_keep_next=false # Got value, back to normal. | |
1232 | else | |
1233 | case $ac_arg in | |
1234 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1235 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1236 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1237 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1238 | case "$ac_configure_args0 " in | |
1239 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1240 | esac | |
1241 | ;; | |
1242 | -* ) ac_must_keep_next=true ;; | |
1243 | esac | |
1244 | fi | |
1245 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1246 | # Get rid of the leading space. | |
1247 | ac_sep=" " | |
1248 | ;; | |
1249 | esac | |
1250 | done | |
1251 | done | |
1252 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1253 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1254 | ||
1255 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1256 | # config.log. We remove comments because anyway the quotes in there | |
1257 | # would cause problems or look ugly. | |
1258 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1259 | # such as our DU 5.0 friend, will then `close' the trap. | |
1260 | trap 'exit_status=$? | |
1261 | # Save into config.log some information that might help in debugging. | |
1262 | { | |
1263 | echo | |
1264 | ||
1265 | cat <<\_ASBOX | |
1266 | ## ---------------- ## | |
1267 | ## Cache variables. ## | |
1268 | ## ---------------- ## | |
1269 | _ASBOX | |
1270 | echo | |
1271 | # The following way of writing the cache mishandles newlines in values, | |
1272 | { | |
1273 | (set) 2>&1 | | |
1274 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1275 | *ac_space=\ *) | |
1276 | sed -n \ | |
1277 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1278 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1279 | ;; | |
1280 | *) | |
1281 | sed -n \ | |
1282 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1283 | ;; | |
1284 | esac; | |
1285 | } | |
1286 | echo | |
1287 | ||
1288 | cat <<\_ASBOX | |
1289 | ## ----------------- ## | |
1290 | ## Output variables. ## | |
1291 | ## ----------------- ## | |
1292 | _ASBOX | |
1293 | echo | |
1294 | for ac_var in $ac_subst_vars | |
1295 | do | |
1296 | eval ac_val=$`echo $ac_var` | |
1297 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1298 | done | sort | |
1299 | echo | |
1300 | ||
1301 | if test -n "$ac_subst_files"; then | |
1302 | cat <<\_ASBOX | |
1303 | ## ------------- ## | |
1304 | ## Output files. ## | |
1305 | ## ------------- ## | |
1306 | _ASBOX | |
1307 | echo | |
1308 | for ac_var in $ac_subst_files | |
1309 | do | |
1310 | eval ac_val=$`echo $ac_var` | |
1311 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1312 | done | sort | |
1313 | echo | |
1314 | fi | |
1315 | ||
1316 | if test -s confdefs.h; then | |
1317 | cat <<\_ASBOX | |
1318 | ## ----------- ## | |
1319 | ## confdefs.h. ## | |
1320 | ## ----------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | sed "/^$/d" confdefs.h | sort | |
1324 | echo | |
1325 | fi | |
1326 | test "$ac_signal" != 0 && | |
1327 | echo "$as_me: caught signal $ac_signal" | |
1328 | echo "$as_me: exit $exit_status" | |
1329 | } >&5 | |
1330 | rm -f core core.* *.core && | |
1331 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1332 | exit $exit_status | |
1333 | ' 0 | |
1334 | for ac_signal in 1 2 13 15; do | |
1335 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1336 | done | |
1337 | ac_signal=0 | |
1338 | ||
1339 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1340 | rm -rf conftest* confdefs.h | |
1341 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1342 | echo >confdefs.h | |
1343 | ||
1344 | # Predefined preprocessor variables. | |
1345 | ||
1346 | cat >>confdefs.h <<_ACEOF | |
1347 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1348 | _ACEOF | |
1349 | ||
1350 | ||
1351 | cat >>confdefs.h <<_ACEOF | |
1352 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1353 | _ACEOF | |
1354 | ||
1355 | ||
1356 | cat >>confdefs.h <<_ACEOF | |
1357 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1358 | _ACEOF | |
1359 | ||
1360 | ||
1361 | cat >>confdefs.h <<_ACEOF | |
1362 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1363 | _ACEOF | |
1364 | ||
1365 | ||
1366 | cat >>confdefs.h <<_ACEOF | |
1367 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1368 | _ACEOF | |
1369 | ||
1370 | ||
1371 | # Let the site file select an alternate cache file if it wants to. | |
1372 | # Prefer explicitly selected file to automatically selected ones. | |
1373 | if test -z "$CONFIG_SITE"; then | |
1374 | if test "x$prefix" != xNONE; then | |
1375 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1376 | else | |
1377 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1378 | fi | |
1379 | fi | |
1380 | for ac_site_file in $CONFIG_SITE; do | |
1381 | if test -r "$ac_site_file"; then | |
1382 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1383 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1384 | sed 's/^/| /' "$ac_site_file" >&5 | |
1385 | . "$ac_site_file" | |
1386 | fi | |
1387 | done | |
1388 | ||
1389 | if test -r "$cache_file"; then | |
1390 | # Some versions of bash will fail to source /dev/null (special | |
1391 | # files actually), so we avoid doing that. | |
1392 | if test -f "$cache_file"; then | |
1393 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1394 | echo "$as_me: loading cache $cache_file" >&6;} | |
1395 | case $cache_file in | |
1396 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1397 | *) . ./$cache_file;; | |
1398 | esac | |
1399 | fi | |
1400 | else | |
1401 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1402 | echo "$as_me: creating cache $cache_file" >&6;} | |
1403 | >$cache_file | |
1404 | fi | |
1405 | ||
1406 | # Check that the precious variables saved in the cache have kept the same | |
1407 | # value. | |
1408 | ac_cache_corrupted=false | |
1409 | for ac_var in `(set) 2>&1 | | |
1410 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1411 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1412 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1413 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1414 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1415 | case $ac_old_set,$ac_new_set in | |
1416 | set,) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,set) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,);; | |
1425 | *) | |
1426 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1427 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1428 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1429 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1430 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1431 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1432 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1433 | ac_cache_corrupted=: | |
1434 | fi;; | |
1435 | esac | |
1436 | # Pass precious variables to config.status. | |
1437 | if test "$ac_new_set" = set; then | |
1438 | case $ac_new_val in | |
1439 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1440 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1441 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1442 | esac | |
1443 | case " $ac_configure_args " in | |
1444 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1445 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1446 | esac | |
1447 | fi | |
1448 | done | |
1449 | if $ac_cache_corrupted; then | |
1450 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1451 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1452 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1453 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1454 | { (exit 1); exit 1; }; } | |
1455 | fi | |
1456 | ||
1457 | ac_ext=c | |
1458 | ac_cpp='$CPP $CPPFLAGS' | |
1459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
698dcdb6 | 1479 | |
8284b0c5 | 1480 | |
7c66a493 | 1481 | |
a0b9e27f MB |
1482 | |
1483 | ||
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
a0b9e27f | 1487 | |
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
e6cc62c6 VS |
1490 | |
1491 | ||
1492 | ac_aux_dir= | |
1493 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1494 | if 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/install.sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/shtool; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1505 | break | |
1506 | fi | |
1507 | done | |
1508 | if test -z "$ac_aux_dir"; then | |
1509 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1510 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1514 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1515 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1516 | ||
1517 | # Make sure we can run config.sub. | |
1518 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1519 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1520 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | ||
1523 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1524 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1525 | if test "${ac_cv_build+set}" = set; then | |
1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1527 | else | |
1528 | ac_cv_build_alias=$build_alias | |
1529 | test -z "$ac_cv_build_alias" && | |
1530 | ac_cv_build_alias=`$ac_config_guess` | |
1531 | test -z "$ac_cv_build_alias" && | |
1532 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1533 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1536 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1537 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ||
1540 | fi | |
1541 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1542 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1543 | build=$ac_cv_build | |
1544 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1545 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1546 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1547 | ||
1548 | ||
1549 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1550 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1551 | if test "${ac_cv_host+set}" = set; then | |
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1553 | else | |
1554 | ac_cv_host_alias=$host_alias | |
1555 | test -z "$ac_cv_host_alias" && | |
1556 | ac_cv_host_alias=$ac_cv_build_alias | |
1557 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1558 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1559 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1560 | { (exit 1); exit 1; }; } | |
1561 | ||
1562 | fi | |
1563 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1564 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1565 | host=$ac_cv_host | |
1566 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1567 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1568 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1569 | ||
1570 | ||
1571 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1572 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_target+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_target_alias=$target_alias | |
1577 | test "x$ac_cv_target_alias" = "x" && | |
1578 | ac_cv_target_alias=$ac_cv_host_alias | |
1579 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1580 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1581 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | fi | |
1585 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1586 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1587 | target=$ac_cv_target | |
1588 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1589 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1590 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1591 | ||
1592 | ||
1593 | # The aliases save the names the user supplied, while $host etc. | |
1594 | # will get canonicalized. | |
1595 | test -n "$target_alias" && | |
7c66a493 VZ |
1596 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1597 | NONENONEs,x,x, && | |
1598 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1599 | |
1600 | ||
a0b9e27f | 1601 | |
10f2d63a | 1602 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1603 | WX_MINOR_VERSION_NUMBER=5 |
1604 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1605 | |
10f2d63a | 1606 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1607 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1608 | |
978f1259 RL |
1609 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1610 | ||
34bed6d9 | 1611 | WX_CURRENT=0 |
6426998c RL |
1612 | WX_REVISION=0 |
1613 | WX_AGE=0 | |
1614 | ||
8284b0c5 MB |
1615 | |
1616 | ||
10f2d63a VZ |
1617 | USE_UNIX=1 |
1618 | USE_WIN32=0 | |
f9bc1684 | 1619 | USE_DOS=0 |
b12915c1 | 1620 | USE_BEOS=0 |
1216f52d | 1621 | USE_MAC=0 |
b12915c1 | 1622 | |
10f2d63a | 1623 | USE_AIX= |
fe0895cf VS |
1624 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1625 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1626 | USE_LINUX= |
f6bcfd97 | 1627 | USE_NETBSD= |
89e3b3e4 | 1628 | USE_OPENBSD= |
fe0895cf VS |
1629 | USE_OSF= USE_SGI= |
1630 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1631 | USE_ULTRIX= |
89e3b3e4 VZ |
1632 | USE_UNIXWARE= |
1633 | ||
1634 | USE_ALPHA= | |
10f2d63a | 1635 | |
ab9b9eab VZ |
1636 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1637 | ||
ac0c4cc3 | 1638 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1639 | |
ac0c4cc3 | 1640 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1641 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1642 | DEFAULT_wxUSE_MAC=0 |
1643 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1644 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_MOTIF=0 |
1646 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1647 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1648 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1649 | |
ac0c4cc3 | 1650 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1651 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1652 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1653 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1654 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1655 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1656 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1657 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1658 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1659 | |
d6a55c4b | 1660 | PROGRAM_EXT= |
3a922bb4 | 1661 | SO_SUFFIX=so |
fe0895cf | 1662 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1663 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1664 | |
10f2d63a VZ |
1665 | case "${host}" in |
1666 | *-hp-hpux* ) | |
1667 | USE_HPUX=1 | |
1668 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1669 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1670 | SO_SUFFIX=sl |
e6cc62c6 | 1671 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1672 | #define __HPUX__ 1 |
e6cc62c6 | 1673 | _ACEOF |
10f2d63a VZ |
1674 | |
1675 | ;; | |
1676 | *-*-linux* ) | |
1677 | USE_LINUX=1 | |
e6cc62c6 | 1678 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1679 | #define __LINUX__ 1 |
e6cc62c6 | 1680 | _ACEOF |
10f2d63a VZ |
1681 | |
1682 | TMP=`uname -m` | |
1683 | if test "x$TMP" = "xalpha"; then | |
1684 | USE_ALPHA=1 | |
e6cc62c6 | 1685 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1686 | #define __ALPHA__ 1 |
e6cc62c6 | 1687 | _ACEOF |
fe0895cf VS |
1688 | |
1689 | fi | |
1690 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1691 | ;; | |
1692 | *-*-gnu* ) | |
1693 | USE_GNU=1 | |
e6cc62c6 | 1694 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1695 | #define __GNU__ 1 |
e6cc62c6 | 1696 | _ACEOF |
fe0895cf VS |
1697 | |
1698 | TMP=`uname -m` | |
1699 | if test "x$TMP" = "xalpha"; then | |
1700 | USE_ALPHA=1 | |
e6cc62c6 | 1701 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1702 | #define __ALPHA__ 1 |
e6cc62c6 | 1703 | _ACEOF |
10f2d63a VZ |
1704 | |
1705 | fi | |
1706 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1707 | ;; | |
1708 | *-*-irix5* | *-*-irix6* ) | |
1709 | USE_SGI=1 | |
1710 | USE_SVR4=1 | |
e6cc62c6 | 1711 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1712 | #define __SGI__ 1 |
e6cc62c6 | 1713 | _ACEOF |
10f2d63a | 1714 | |
e6cc62c6 | 1715 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1716 | #define __SVR4__ 1 |
e6cc62c6 | 1717 | _ACEOF |
10f2d63a VZ |
1718 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1720 | ;; | |
1721 | *-*-solaris2* ) | |
1722 | USE_SUN=1 | |
1723 | USE_SOLARIS=1 | |
1724 | USE_SVR4=1 | |
e6cc62c6 | 1725 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1726 | #define __SUN__ 1 |
e6cc62c6 | 1727 | _ACEOF |
10f2d63a | 1728 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1730 | #define __SOLARIS__ 1 |
e6cc62c6 | 1731 | _ACEOF |
10f2d63a | 1732 | |
e6cc62c6 | 1733 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1734 | #define __SVR4__ 1 |
e6cc62c6 | 1735 | _ACEOF |
10f2d63a VZ |
1736 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1738 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1739 | ;; |
1740 | *-*-sunos4* ) | |
1741 | USE_SUN=1 | |
1742 | USE_SUNOS=1 | |
1743 | USE_BSD=1 | |
e6cc62c6 | 1744 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1745 | #define __SUN__ 1 |
e6cc62c6 | 1746 | _ACEOF |
10f2d63a | 1747 | |
e6cc62c6 | 1748 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1749 | #define __SUNOS__ 1 |
e6cc62c6 | 1750 | _ACEOF |
10f2d63a | 1751 | |
e6cc62c6 | 1752 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1753 | #define __BSD__ 1 |
e6cc62c6 | 1754 | _ACEOF |
10f2d63a VZ |
1755 | |
1756 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1757 | ;; | |
f6bcfd97 | 1758 | *-*-freebsd*) |
10f2d63a VZ |
1759 | USE_BSD=1 |
1760 | USE_FREEBSD=1 | |
e6cc62c6 | 1761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1762 | #define __FREEBSD__ 1 |
e6cc62c6 | 1763 | _ACEOF |
10f2d63a | 1764 | |
e6cc62c6 | 1765 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1766 | #define __BSD__ 1 |
e6cc62c6 | 1767 | _ACEOF |
95c8801c VS |
1768 | |
1769 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1770 | ;; | |
1771 | *-*-openbsd*) | |
1772 | USE_BSD=1 | |
1773 | USE_OPENBSD=1 | |
e6cc62c6 | 1774 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1775 | #define __OPENBSD__ 1 |
e6cc62c6 | 1776 | _ACEOF |
95c8801c | 1777 | |
e6cc62c6 | 1778 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1779 | #define __BSD__ 1 |
e6cc62c6 | 1780 | _ACEOF |
f6bcfd97 BP |
1781 | |
1782 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1783 | ;; | |
1784 | *-*-netbsd*) | |
1785 | USE_BSD=1 | |
1786 | USE_NETBSD=1 | |
e6cc62c6 | 1787 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1788 | #define __NETBSD__ 1 |
e6cc62c6 | 1789 | _ACEOF |
f6bcfd97 | 1790 | |
e6cc62c6 | 1791 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1792 | #define __BSD__ 1 |
e6cc62c6 | 1793 | _ACEOF |
10f2d63a VZ |
1794 | |
1795 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1796 | ;; | |
1797 | *-*-osf* ) | |
1798 | USE_ALPHA=1 | |
1799 | USE_OSF=1 | |
e6cc62c6 | 1800 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1801 | #define __ALPHA__ 1 |
e6cc62c6 | 1802 | _ACEOF |
10f2d63a | 1803 | |
e6cc62c6 | 1804 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1805 | #define __OSF__ 1 |
e6cc62c6 | 1806 | _ACEOF |
10f2d63a VZ |
1807 | |
1808 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1809 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1810 | ;; |
1811 | *-*-dgux5* ) | |
1812 | USE_ALPHA=1 | |
1813 | USE_SVR4=1 | |
e6cc62c6 | 1814 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1815 | #define __ALPHA__ 1 |
e6cc62c6 | 1816 | _ACEOF |
10f2d63a | 1817 | |
e6cc62c6 | 1818 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1819 | #define __SVR4__ 1 |
e6cc62c6 | 1820 | _ACEOF |
10f2d63a VZ |
1821 | |
1822 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1823 | ;; | |
1824 | *-*-sysv5* ) | |
1825 | USE_SYSV=1 | |
1826 | USE_SVR4=1 | |
e6cc62c6 | 1827 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1828 | #define __SYSV__ 1 |
e6cc62c6 | 1829 | _ACEOF |
10f2d63a | 1830 | |
e6cc62c6 | 1831 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1832 | #define __SVR4__ 1 |
e6cc62c6 | 1833 | _ACEOF |
10f2d63a VZ |
1834 | |
1835 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1836 | ;; | |
1837 | *-*-aix* ) | |
1838 | USE_AIX=1 | |
1839 | USE_SYSV=1 | |
1840 | USE_SVR4=1 | |
2b5f62a0 | 1841 | SO_SUFFIX=a |
e6cc62c6 | 1842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1843 | #define __AIX__ 1 |
e6cc62c6 | 1844 | _ACEOF |
10f2d63a | 1845 | |
e6cc62c6 | 1846 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1847 | #define __SYSV__ 1 |
e6cc62c6 | 1848 | _ACEOF |
10f2d63a | 1849 | |
e6cc62c6 | 1850 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1851 | #define __SVR4__ 1 |
e6cc62c6 | 1852 | _ACEOF |
10f2d63a VZ |
1853 | |
1854 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1855 | ;; | |
1856 | ||
89e3b3e4 VZ |
1857 | *-*-*UnixWare*) |
1858 | USE_SYSV=1 | |
1859 | USE_SVR4=1 | |
1860 | USE_UNIXWARE=1 | |
e6cc62c6 | 1861 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1862 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1863 | _ACEOF |
89e3b3e4 VZ |
1864 | |
1865 | ;; | |
1866 | ||
1c8183e2 | 1867 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1868 | SO_SUFFIX=dll |
cf27ef00 | 1869 | PROGRAM_EXT=".exe" |
7b7a7637 | 1870 | RESCOMP=windres |
10f2d63a VZ |
1871 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1872 | ;; | |
1873 | ||
f9bc1684 VS |
1874 | *-pc-msdosdjgpp ) |
1875 | USE_UNIX=0 | |
1876 | USE_DOS=1 | |
e6cc62c6 | 1877 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1878 | #define __DOS__ 1 |
e6cc62c6 | 1879 | _ACEOF |
f9bc1684 VS |
1880 | |
1881 | PROGRAM_EXT=".exe" | |
1882 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1883 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1884 | ;; |
1885 | ||
6fa882bd | 1886 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1887 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1888 | #define __EMX__ 1 |
e6cc62c6 | 1889 | _ACEOF |
10f2d63a | 1890 | |
cf27ef00 | 1891 | PROGRAM_EXT=".exe" |
e07802fc | 1892 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 VS |
1893 | CXX=gcc |
1894 | LIBS="$LIBS -lstdcpp" | |
d5fc095c VS |
1895 | ac_executable_extensions=".exe" |
1896 | export ac_executable_extensions | |
1897 | ac_save_IFS="$IFS" | |
1898 | IFS="\\" | |
1899 | ac_TEMP_PATH= | |
1900 | for ac_dir in $PATH; do | |
1901 | IFS=$ac_save_IFS | |
1902 | if test -z "$ac_TEMP_PATH"; then | |
1903 | ac_TEMP_PATH="$ac_dir" | |
1904 | else | |
1905 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1906 | fi | |
1907 | done | |
1908 | export PATH="$ac_TEMP_PATH" | |
1909 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1910 | ;; |
1911 | ||
d08b457b GD |
1912 | powerpc-*-darwin* ) |
1913 | USE_BSD=1 | |
f11bdd03 | 1914 | USE_DARWIN=1 |
3a922bb4 | 1915 | SO_SUFFIX=dylib |
e6cc62c6 | 1916 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1917 | #define __BSD__ 1 |
e6cc62c6 | 1918 | _ACEOF |
b4085ce6 | 1919 | |
e6cc62c6 | 1920 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1921 | #define __DARWIN__ 1 |
e6cc62c6 | 1922 | _ACEOF |
d08b457b | 1923 | |
e6cc62c6 | 1924 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1925 | #define __POWERPC__ 1 |
e6cc62c6 | 1926 | _ACEOF |
82d43113 | 1927 | |
e6cc62c6 | 1928 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1929 | #define TARGET_CARBON 1 |
e6cc62c6 | 1930 | _ACEOF |
b4085ce6 GD |
1931 | |
1932 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1933 | ;; | |
1934 | ||
b12915c1 VZ |
1935 | *-*-beos* ) |
1936 | USE_BEOS=1 | |
e6cc62c6 | 1937 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1938 | #define __BEOS__ 1 |
e6cc62c6 | 1939 | _ACEOF |
b12915c1 VZ |
1940 | |
1941 | ;; | |
1942 | ||
10f2d63a | 1943 | *) |
e6cc62c6 VS |
1944 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1945 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1946 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1947 | esac |
1948 | ||
8284b0c5 MB |
1949 | |
1950 | ||
1951 | ||
1952 | wx_arg_cache_file="configarg.cache" | |
1953 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1954 | rm -f ${wx_arg_cache_file}.tmp |
1955 | touch ${wx_arg_cache_file}.tmp | |
1956 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1957 | |
10f2d63a VZ |
1958 | |
1959 | DEBUG_CONFIGURE=0 | |
1960 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1961 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1962 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1963 | |
d8356fa3 VZ |
1964 | DEFAULT_wxUSE_NANOX=no |
1965 | ||
10f2d63a VZ |
1966 | DEFAULT_wxUSE_THREADS=yes |
1967 | ||
1968 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1969 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1970 | DEFAULT_wxUSE_PROFILE=no |
1971 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1972 | DEFAULT_wxUSE_NO_RTTI=no |
1973 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1974 | DEFAULT_wxUSE_PERMISSIVE=no |
1975 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1976 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1977 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1978 | DEFAULT_wxUSE_MEM_TRACING=no | |
1979 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1980 | DEFAULT_wxUSE_DMALLOC=no | |
1981 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1982 | ||
1983 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1984 | DEFAULT_wxUSE_LOGWINDOW=no |
1985 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1986 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1987 | |
1988 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1989 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1990 | |
3e44f09d | 1991 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
1992 | DEFAULT_wxUSE_XML=no |
1993 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
1994 | DEFAULT_wxUSE_ZLIB=no |
1995 | DEFAULT_wxUSE_LIBPNG=no | |
1996 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1997 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1998 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1999 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2000 | |
eb4efbdc | 2001 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2002 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2003 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2004 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2005 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2006 | DEFAULT_wxUSE_TIMER=no |
2007 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2008 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2009 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2010 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2011 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
2012 | DEFAULT_wxUSE_WAVE=no |
2013 | DEFAULT_wxUSE_INTL=no | |
2014 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2015 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2016 | DEFAULT_wxUSE_STREAMS=no |
2017 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2018 | DEFAULT_wxUSE_OLE=no |
2019 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2020 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2021 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2022 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2023 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2024 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2025 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2026 | |
2027 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2028 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2029 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2030 | ||
10f2d63a VZ |
2031 | DEFAULT_wxUSE_CLIPBOARD=no |
2032 | DEFAULT_wxUSE_TOOLTIPS=no | |
2033 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2034 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2035 | DEFAULT_wxUSE_SPLINES=no |
2036 | ||
2037 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2038 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2039 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2040 | ||
10f2d63a VZ |
2041 | DEFAULT_wxUSE_RESOURCES=no |
2042 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2043 | DEFAULT_wxUSE_IPC=no | |
2044 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2045 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2046 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2047 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2048 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2049 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2050 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2051 | DEFAULT_wxUSE_PROTOCOL=no | |
2052 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2053 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2054 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2055 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2056 | |
10f2d63a | 2057 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2058 | DEFAULT_wxUSE_CHOICEDLG=no |
2059 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2060 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2061 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2062 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2063 | DEFAULT_wxUSE_FONTDLG=no |
2064 | DEFAULT_wxUSE_MSGDLG=no | |
2065 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2066 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2067 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2068 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2069 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2070 | DEFAULT_wxUSE_WIZARDDLG=no |
2071 | ||
1e6feb95 | 2072 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2073 | DEFAULT_wxUSE_MINIFRAME=no |
2074 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2075 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2076 | DEFAULT_wxUSE_FS_INET=no |
2077 | DEFAULT_wxUSE_FS_ZIP=no | |
2078 | DEFAULT_wxUSE_BUSYINFO=no | |
2079 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2080 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2081 | |
2082 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2083 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2084 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2085 | DEFAULT_wxUSE_CALCTRL=no |
2086 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2087 | DEFAULT_wxUSE_CHECKBOX=no |
2088 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2089 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2090 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2091 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2092 | DEFAULT_wxUSE_GAUGE=no |
2093 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2094 | DEFAULT_wxUSE_IMAGLIST=no |
2095 | DEFAULT_wxUSE_LISTBOX=no | |
2096 | DEFAULT_wxUSE_LISTCTRL=no | |
2097 | DEFAULT_wxUSE_NOTEBOOK=no | |
2098 | DEFAULT_wxUSE_RADIOBOX=no | |
2099 | DEFAULT_wxUSE_RADIOBTN=no | |
2100 | DEFAULT_wxUSE_SASH=no | |
2101 | DEFAULT_wxUSE_SCROLLBAR=no | |
2102 | DEFAULT_wxUSE_SLIDER=no | |
2103 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2104 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2105 | DEFAULT_wxUSE_SPLITTER=no |
2106 | DEFAULT_wxUSE_STATBMP=no | |
2107 | DEFAULT_wxUSE_STATBOX=no | |
2108 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2109 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2110 | DEFAULT_wxUSE_STATUSBAR=yes |
2111 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2112 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2113 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2114 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2115 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2116 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2117 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2118 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2119 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2120 | |
2121 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2122 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2123 | DEFAULT_wxUSE_WCSRTOMBS=no |
2124 | ||
edae8572 | 2125 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2126 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2127 | DEFAULT_wxUSE_GIF=no |
2128 | DEFAULT_wxUSE_PCX=no | |
2129 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2130 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2131 | DEFAULT_wxUSE_XPM=no |
658974ae | 2132 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2133 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2134 | |
e9e0dc15 | 2135 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2136 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2137 | else |
1e6feb95 | 2138 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2139 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2140 | |
d8356fa3 VZ |
2141 | DEFAULT_wxUSE_NANOX=no |
2142 | ||
10f2d63a VZ |
2143 | DEFAULT_wxUSE_THREADS=yes |
2144 | ||
2145 | DEFAULT_wxUSE_SHARED=yes | |
2146 | DEFAULT_wxUSE_OPTIMISE=yes | |
2147 | DEFAULT_wxUSE_PROFILE=no | |
2148 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2149 | DEFAULT_wxUSE_NO_RTTI=no |
2150 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2151 | DEFAULT_wxUSE_PERMISSIVE=no |
2152 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2153 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2154 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2155 | DEFAULT_wxUSE_MEM_TRACING=no | |
2156 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2157 | DEFAULT_wxUSE_DMALLOC=no | |
2158 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2159 | ||
2160 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2161 | DEFAULT_wxUSE_LOGWINDOW=yes |
2162 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2163 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2164 | |
2165 | DEFAULT_wxUSE_GUI=yes | |
2166 | ||
831b3152 | 2167 | DEFAULT_wxUSE_REGEX=yes |
672abd7a VS |
2168 | DEFAULT_wxUSE_XML=yes |
2169 | DEFAULT_wxUSE_EXPAT=yes | |
10f2d63a VZ |
2170 | DEFAULT_wxUSE_ZLIB=yes |
2171 | DEFAULT_wxUSE_LIBPNG=yes | |
2172 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2173 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2174 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2175 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2176 | |
eb4efbdc | 2177 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2178 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2179 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2180 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2181 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2182 | DEFAULT_wxUSE_TIMER=yes |
2183 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2184 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2185 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2186 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2187 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2188 | DEFAULT_wxUSE_WAVE=no |
2189 | DEFAULT_wxUSE_INTL=yes | |
2190 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2191 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2192 | DEFAULT_wxUSE_STREAMS=yes |
2193 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2194 | DEFAULT_wxUSE_OLE=yes |
2195 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2196 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2197 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2198 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2199 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2200 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2201 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2202 | |
2203 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2204 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2205 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2206 | ||
10f2d63a VZ |
2207 | DEFAULT_wxUSE_CLIPBOARD=yes |
2208 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2209 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2210 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2211 | DEFAULT_wxUSE_SPLINES=yes |
2212 | ||
2213 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2214 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2215 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2216 | ||
2b5f62a0 | 2217 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2218 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2219 | DEFAULT_wxUSE_IPC=yes | |
2220 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2221 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2222 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2223 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2224 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2225 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2226 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2227 | DEFAULT_wxUSE_PROTOCOL=yes |
2228 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2229 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2230 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2231 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2232 | |
2233 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2234 | DEFAULT_wxUSE_CHOICEDLG=yes |
2235 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2236 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2237 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2238 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2239 | DEFAULT_wxUSE_FONTDLG=yes |
2240 | DEFAULT_wxUSE_MSGDLG=yes | |
2241 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2242 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2243 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2244 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2245 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2246 | DEFAULT_wxUSE_WIZARDDLG=yes |
2247 | ||
1e6feb95 | 2248 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2249 | DEFAULT_wxUSE_MINIFRAME=yes |
2250 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2251 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2252 | DEFAULT_wxUSE_FS_INET=yes |
2253 | DEFAULT_wxUSE_FS_ZIP=yes | |
2254 | DEFAULT_wxUSE_BUSYINFO=yes | |
2255 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2256 | DEFAULT_wxUSE_VALIDATORS=yes | |
2257 | ||
2258 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2259 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2260 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2261 | DEFAULT_wxUSE_CALCTRL=yes |
2262 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2263 | DEFAULT_wxUSE_CHECKBOX=yes |
2264 | DEFAULT_wxUSE_CHECKLST=yes | |
2265 | DEFAULT_wxUSE_CHOICE=yes | |
2266 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2267 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2268 | DEFAULT_wxUSE_GAUGE=yes |
2269 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2270 | DEFAULT_wxUSE_IMAGLIST=yes |
2271 | DEFAULT_wxUSE_LISTBOX=yes | |
2272 | DEFAULT_wxUSE_LISTCTRL=yes | |
2273 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2274 | DEFAULT_wxUSE_RADIOBOX=yes | |
2275 | DEFAULT_wxUSE_RADIOBTN=yes | |
2276 | DEFAULT_wxUSE_SASH=yes | |
2277 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2278 | DEFAULT_wxUSE_SLIDER=yes | |
2279 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2280 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2281 | DEFAULT_wxUSE_SPLITTER=yes |
2282 | DEFAULT_wxUSE_STATBMP=yes | |
2283 | DEFAULT_wxUSE_STATBOX=yes | |
2284 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2285 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2286 | DEFAULT_wxUSE_STATUSBAR=yes |
2287 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2288 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2289 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2290 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2291 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2292 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2293 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2294 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2295 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2296 | |
2297 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2298 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2299 | DEFAULT_wxUSE_WCSRTOMBS=no |
2300 | ||
edae8572 | 2301 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2302 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2303 | DEFAULT_wxUSE_GIF=yes |
2304 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2305 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2306 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2307 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2308 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2309 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2310 | |
e9e0dc15 | 2311 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2312 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2313 | fi |
2314 | ||
8284b0c5 MB |
2315 | |
2316 | ||
10f2d63a | 2317 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2318 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2319 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2320 | has_toolkit_in_cache=1 |
2321 | eval "DEFAULT_$LINE" | |
2322 | eval "CACHE_$toolkit=1" | |
2323 | fi | |
2324 | done | |
2325 | ||
8284b0c5 MB |
2326 | |
2327 | ||
5005acfe | 2328 | enablestring= |
e6cc62c6 VS |
2329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2330 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2331 | no_cache=0 |
2332 | # Check whether --enable-gui or --disable-gui was given. | |
2333 | if test "${enable_gui+set}" = set; then | |
2334 | enableval="$enable_gui" | |
e6cc62c6 | 2335 | |
10f2d63a VZ |
2336 | if test "$enableval" = yes; then |
2337 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2338 | else | |
2339 | ac_cv_use_gui='wxUSE_GUI=no' | |
2340 | fi | |
e6cc62c6 | 2341 | |
10f2d63a | 2342 | else |
e6cc62c6 | 2343 | |
10f2d63a VZ |
2344 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2352 | |
e6cc62c6 | 2353 | fi; |
10f2d63a VZ |
2354 | |
2355 | eval "$ac_cv_use_gui" | |
2356 | if test "$no_cache" != 1; then | |
2357 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2358 | fi | |
2359 | ||
2360 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2361 | echo "$as_me:$LINENO: result: yes" >&5 |
2362 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2363 | else |
e6cc62c6 VS |
2364 | echo "$as_me:$LINENO: result: no" >&5 |
2365 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2366 | fi |
e6cc62c6 | 2367 | |
10f2d63a | 2368 | |
9747f85d VS |
2369 | enablestring= |
2370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2371 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2372 | no_cache=0 | |
2373 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2374 | if test "${enable_monolithic+set}" = set; then | |
2375 | enableval="$enable_monolithic" | |
2376 | ||
2377 | if test "$enableval" = yes; then | |
2378 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2379 | else | |
2380 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2381 | fi | |
2382 | ||
2383 | else | |
2384 | ||
2385 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2386 | if test "x$LINE" != x ; then | |
2387 | eval "DEFAULT_$LINE" | |
2388 | else | |
2389 | no_cache=1 | |
2390 | fi | |
2391 | ||
2392 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2393 | ||
2394 | fi; | |
2395 | ||
2396 | eval "$ac_cv_use_monolithic" | |
2397 | if test "$no_cache" != 1; then | |
2398 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2399 | fi | |
2400 | ||
2401 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2402 | echo "$as_me:$LINENO: result: yes" >&5 | |
2403 | echo "${ECHO_T}yes" >&6 | |
2404 | else | |
2405 | echo "$as_me:$LINENO: result: no" >&5 | |
2406 | echo "${ECHO_T}no" >&6 | |
2407 | fi | |
2408 | ||
2409 | ||
b12915c1 | 2410 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2411 | |
8284b0c5 | 2412 | |
5005acfe | 2413 | enablestring= |
e6cc62c6 VS |
2414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2415 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2416 | no_cache=0 |
2417 | # Check whether --enable-universal or --disable-universal was given. | |
2418 | if test "${enable_universal+set}" = set; then | |
2419 | enableval="$enable_universal" | |
e6cc62c6 | 2420 | |
1e6feb95 VZ |
2421 | if test "$enableval" = yes; then |
2422 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2423 | else | |
2424 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2425 | fi | |
e6cc62c6 | 2426 | |
1e6feb95 | 2427 | else |
e6cc62c6 | 2428 | |
1e6feb95 VZ |
2429 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2430 | if test "x$LINE" != x ; then | |
2431 | eval "DEFAULT_$LINE" | |
2432 | else | |
2433 | no_cache=1 | |
2434 | fi | |
2435 | ||
2436 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2437 | |
e6cc62c6 | 2438 | fi; |
1e6feb95 VZ |
2439 | |
2440 | eval "$ac_cv_use_universal" | |
2441 | if test "$no_cache" != 1; then | |
2442 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2443 | fi | |
2444 | ||
2445 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2446 | echo "$as_me:$LINENO: result: yes" >&5 |
2447 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2448 | else |
e6cc62c6 VS |
2449 | echo "$as_me:$LINENO: result: no" >&5 |
2450 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2451 | fi |
e6cc62c6 VS |
2452 | |
2453 | ||
10f2d63a VZ |
2454 | # Check whether --with-gtk or --without-gtk was given. |
2455 | if test "${with_gtk+set}" = set; then | |
2456 | withval="$with_gtk" | |
2457 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2458 | fi; |
10f2d63a VZ |
2459 | |
2460 | # Check whether --with-motif or --without-motif was given. | |
2461 | if test "${with_motif+set}" = set; then | |
2462 | withval="$with_motif" | |
2463 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2464 | fi; |
10f2d63a | 2465 | |
b4085ce6 GD |
2466 | # Check whether --with-mac or --without-mac was given. |
2467 | if test "${with_mac+set}" = set; then | |
2468 | withval="$with_mac" | |
2469 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2470 | fi; |
b4085ce6 | 2471 | |
ac0c4cc3 DE |
2472 | # Check whether --with-cocoa or --without-cocoa was given. |
2473 | if test "${with_cocoa+set}" = set; then | |
2474 | withval="$with_cocoa" | |
2475 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2476 | fi; |
ac0c4cc3 | 2477 | |
10f2d63a VZ |
2478 | # Check whether --with-wine or --without-wine was given. |
2479 | if test "${with_wine+set}" = set; then | |
2480 | withval="$with_wine" | |
89e6bf6d | 2481 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2482 | fi; |
10f2d63a | 2483 | |
77e13408 RL |
2484 | # Check whether --with-msw or --without-msw was given. |
2485 | if test "${with_msw+set}" = set; then | |
2486 | withval="$with_msw" | |
b4efce5e | 2487 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2488 | fi; |
10f2d63a | 2489 | |
e07802fc VZ |
2490 | # Check whether --with-pm or --without-pm was given. |
2491 | if test "${with_pm+set}" = set; then | |
2492 | withval="$with_pm" | |
2493 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2494 | fi; |
698dcdb6 | 2495 | |
1e6feb95 VZ |
2496 | # Check whether --with-mgl or --without-mgl was given. |
2497 | if test "${with_mgl+set}" = set; then | |
2498 | withval="$with_mgl" | |
6c657b52 | 2499 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2500 | fi; |
1e6feb95 | 2501 | |
1725144d RR |
2502 | # Check whether --with-microwin or --without-microwin was given. |
2503 | if test "${with_microwin+set}" = set; then | |
2504 | withval="$with_microwin" | |
2505 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2506 | fi; |
1725144d | 2507 | |
f79bd02d JS |
2508 | # Check whether --with-x11 or --without-x11 was given. |
2509 | if test "${with_x11+set}" = set; then | |
2510 | withval="$with_x11" | |
3c011993 | 2511 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2512 | fi; |
a0b9e27f | 2513 | |
5005acfe | 2514 | enablestring= |
e6cc62c6 VS |
2515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2516 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2517 | no_cache=0 |
ba875e66 VZ |
2518 | # Check whether --enable-nanox or --disable-nanox was given. |
2519 | if test "${enable_nanox+set}" = set; then | |
2520 | enableval="$enable_nanox" | |
e6cc62c6 | 2521 | |
d8356fa3 | 2522 | if test "$enableval" = yes; then |
ba875e66 | 2523 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2524 | else |
ba875e66 | 2525 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2526 | fi |
e6cc62c6 | 2527 | |
d8356fa3 | 2528 | else |
e6cc62c6 | 2529 | |
d8356fa3 VZ |
2530 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2531 | if test "x$LINE" != x ; then | |
2532 | eval "DEFAULT_$LINE" | |
2533 | else | |
2534 | no_cache=1 | |
2535 | fi | |
2536 | ||
ba875e66 | 2537 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2538 | |
e6cc62c6 | 2539 | fi; |
d8356fa3 | 2540 | |
ba875e66 | 2541 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2542 | if test "$no_cache" != 1; then |
ba875e66 | 2543 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2544 | fi |
2545 | ||
2546 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2547 | echo "$as_me:$LINENO: result: yes" >&5 |
2548 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2549 | else |
e6cc62c6 VS |
2550 | echo "$as_me:$LINENO: result: no" >&5 |
2551 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2552 | fi |
e6cc62c6 | 2553 | |
8284b0c5 | 2554 | |
d74f4b5a | 2555 | |
5005acfe | 2556 | enablestring= |
e6cc62c6 VS |
2557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2558 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2559 | no_cache=0 |
2560 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2561 | if test "${enable_gtk2+set}" = set; then |
2562 | enableval="$enable_gtk2" | |
e6cc62c6 | 2563 | |
d74f4b5a VZ |
2564 | if test "$enableval" = yes; then |
2565 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2566 | else | |
2567 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2568 | fi | |
e6cc62c6 | 2569 | |
10f2d63a | 2570 | else |
e6cc62c6 | 2571 | |
d74f4b5a VZ |
2572 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2573 | if test "x$LINE" != x ; then | |
2574 | eval "DEFAULT_$LINE" | |
2575 | else | |
2576 | no_cache=1 | |
2577 | fi | |
2578 | ||
2579 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2580 | |
e6cc62c6 | 2581 | fi; |
328a083c | 2582 | |
d74f4b5a VZ |
2583 | eval "$ac_cv_use_gtk2" |
2584 | if test "$no_cache" != 1; then | |
2585 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2586 | fi | |
2587 | ||
2588 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2589 | echo "$as_me:$LINENO: result: yes" >&5 |
2590 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2591 | else |
e6cc62c6 VS |
2592 | echo "$as_me:$LINENO: result: no" >&5 |
2593 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2594 | fi |
d74f4b5a | 2595 | |
5c6fa7d2 | 2596 | |
e6cc62c6 VS |
2597 | |
2598 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2599 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2600 | no_cache=0 |
e6cc62c6 VS |
2601 | |
2602 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2603 | if test "${with_libpng+set}" = set; then |
2604 | withval="$with_libpng" | |
e6cc62c6 | 2605 | |
10f2d63a | 2606 | if test "$withval" = yes; then |
b12915c1 | 2607 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2608 | elif test "$withval" = no; then |
b12915c1 | 2609 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2610 | elif test "$withval" = sys; then |
2611 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2612 | elif test "$withval" = builtin; then |
2613 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2614 | else |
e6cc62c6 VS |
2615 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2616 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2617 | { (exit 1); exit 1; }; } | |
10f2d63a | 2618 | fi |
e6cc62c6 | 2619 | |
10f2d63a | 2620 | else |
e6cc62c6 | 2621 | |
b12915c1 | 2622 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2623 | if test "x$LINE" != x ; then |
2624 | eval "DEFAULT_$LINE" | |
2625 | else | |
2626 | no_cache=1 | |
2627 | fi | |
2628 | ||
b12915c1 | 2629 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2630 | |
e6cc62c6 | 2631 | fi; |
10f2d63a | 2632 | |
b12915c1 | 2633 | eval "$ac_cv_use_libpng" |
10f2d63a | 2634 | if test "$no_cache" != 1; then |
b12915c1 | 2635 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2636 | fi |
2637 | ||
b12915c1 | 2638 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2639 | echo "$as_me:$LINENO: result: yes" >&5 |
2640 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2641 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2642 | echo "$as_me:$LINENO: result: no" >&5 |
2643 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2644 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2645 | echo "$as_me:$LINENO: result: system version" >&5 |
2646 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2647 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2648 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2649 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2650 | else |
e6cc62c6 VS |
2651 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2652 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2653 | { (exit 1); exit 1; }; } | |
10f2d63a | 2654 | fi |
10f2d63a | 2655 | |
e6cc62c6 VS |
2656 | |
2657 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2658 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2659 | no_cache=0 |
e6cc62c6 VS |
2660 | |
2661 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2662 | if test "${with_libjpeg+set}" = set; then |
2663 | withval="$with_libjpeg" | |
e6cc62c6 | 2664 | |
10f2d63a | 2665 | if test "$withval" = yes; then |
b12915c1 | 2666 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2667 | elif test "$withval" = no; then |
b12915c1 | 2668 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2669 | elif test "$withval" = sys; then |
2670 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2671 | elif test "$withval" = builtin; then |
2672 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2673 | else |
e6cc62c6 VS |
2674 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2675 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2676 | { (exit 1); exit 1; }; } | |
10f2d63a | 2677 | fi |
e6cc62c6 | 2678 | |
10f2d63a | 2679 | else |
e6cc62c6 | 2680 | |
b12915c1 | 2681 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2682 | if test "x$LINE" != x ; then |
2683 | eval "DEFAULT_$LINE" | |
2684 | else | |
2685 | no_cache=1 | |
2686 | fi | |
2687 | ||
b12915c1 | 2688 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2689 | |
e6cc62c6 | 2690 | fi; |
10f2d63a | 2691 | |
b12915c1 | 2692 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2693 | if test "$no_cache" != 1; then |
b12915c1 | 2694 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2695 | fi |
2696 | ||
b12915c1 | 2697 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2698 | echo "$as_me:$LINENO: result: yes" >&5 |
2699 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2700 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2701 | echo "$as_me:$LINENO: result: no" >&5 |
2702 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2703 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2704 | echo "$as_me:$LINENO: result: system version" >&5 |
2705 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2706 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2707 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2708 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2709 | else |
e6cc62c6 VS |
2710 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2711 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2712 | { (exit 1); exit 1; }; } | |
10f2d63a | 2713 | fi |
10f2d63a | 2714 | |
e6cc62c6 VS |
2715 | |
2716 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2717 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2718 | no_cache=0 |
e6cc62c6 VS |
2719 | |
2720 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2721 | if test "${with_libtiff+set}" = set; then |
2722 | withval="$with_libtiff" | |
e6cc62c6 | 2723 | |
10f2d63a | 2724 | if test "$withval" = yes; then |
b12915c1 | 2725 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2726 | elif test "$withval" = no; then |
b12915c1 | 2727 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2728 | elif test "$withval" = sys; then |
2729 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2730 | elif test "$withval" = builtin; then |
2731 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2732 | else |
e6cc62c6 VS |
2733 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2734 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2735 | { (exit 1); exit 1; }; } | |
10f2d63a | 2736 | fi |
e6cc62c6 | 2737 | |
10f2d63a | 2738 | else |
e6cc62c6 | 2739 | |
b12915c1 | 2740 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2741 | if test "x$LINE" != x ; then |
2742 | eval "DEFAULT_$LINE" | |
2743 | else | |
2744 | no_cache=1 | |
2745 | fi | |
2746 | ||
b12915c1 | 2747 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2748 | |
e6cc62c6 | 2749 | fi; |
10f2d63a | 2750 | |
b12915c1 | 2751 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2752 | if test "$no_cache" != 1; then |
b12915c1 | 2753 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2754 | fi |
2755 | ||
b12915c1 | 2756 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2757 | echo "$as_me:$LINENO: result: yes" >&5 |
2758 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2759 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2760 | echo "$as_me:$LINENO: result: no" >&5 |
2761 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2762 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2763 | echo "$as_me:$LINENO: result: system version" >&5 |
2764 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2765 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2766 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2767 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2768 | else |
e6cc62c6 VS |
2769 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2770 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2771 | { (exit 1); exit 1; }; } | |
10f2d63a | 2772 | fi |
10f2d63a | 2773 | |
e6cc62c6 VS |
2774 | |
2775 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2776 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2777 | no_cache=0 |
e6cc62c6 VS |
2778 | |
2779 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2780 | if test "${with_opengl+set}" = set; then |
2781 | withval="$with_opengl" | |
e6cc62c6 | 2782 | |
10f2d63a | 2783 | if test "$withval" = yes; then |
b12915c1 | 2784 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2785 | else |
b12915c1 | 2786 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2787 | fi |
e6cc62c6 | 2788 | |
10f2d63a | 2789 | else |
e6cc62c6 | 2790 | |
b12915c1 | 2791 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2792 | if test "x$LINE" != x ; then |
2793 | eval "DEFAULT_$LINE" | |
2794 | else | |
2795 | no_cache=1 | |
2796 | fi | |
2797 | ||
b12915c1 | 2798 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2799 | |
e6cc62c6 | 2800 | fi; |
10f2d63a | 2801 | |
b12915c1 | 2802 | eval "$ac_cv_use_opengl" |
10f2d63a | 2803 | if test "$no_cache" != 1; then |
b12915c1 | 2804 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2805 | fi |
2806 | ||
b12915c1 | 2807 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2808 | echo "$as_me:$LINENO: result: yes" >&5 |
2809 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2810 | else |
e6cc62c6 VS |
2811 | echo "$as_me:$LINENO: result: no" >&5 |
2812 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2813 | fi |
e6cc62c6 | 2814 | |
10f2d63a | 2815 | |
b12915c1 VZ |
2816 | fi |
2817 | ||
5c6fa7d2 | 2818 | |
e6cc62c6 VS |
2819 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2820 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2821 | no_cache=0 |
e6cc62c6 VS |
2822 | |
2823 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2824 | if test "${with_dmalloc+set}" = set; then |
2825 | withval="$with_dmalloc" | |
e6cc62c6 | 2826 | |
c7a2bf27 | 2827 | if test "$withval" = yes; then |
b12915c1 | 2828 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2829 | else |
b12915c1 | 2830 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2831 | fi |
e6cc62c6 | 2832 | |
c7a2bf27 | 2833 | else |
e6cc62c6 | 2834 | |
b12915c1 | 2835 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2836 | if test "x$LINE" != x ; then |
2837 | eval "DEFAULT_$LINE" | |
2838 | else | |
2839 | no_cache=1 | |
2840 | fi | |
2841 | ||
b12915c1 | 2842 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2843 | |
e6cc62c6 | 2844 | fi; |
c7a2bf27 | 2845 | |
b12915c1 | 2846 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2847 | if test "$no_cache" != 1; then |
b12915c1 | 2848 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2849 | fi |
2850 | ||
b12915c1 | 2851 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2852 | echo "$as_me:$LINENO: result: yes" >&5 |
2853 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2854 | else |
e6cc62c6 VS |
2855 | echo "$as_me:$LINENO: result: no" >&5 |
2856 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2857 | fi |
c7a2bf27 | 2858 | |
e6cc62c6 VS |
2859 | |
2860 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2861 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2862 | no_cache=0 |
e6cc62c6 VS |
2863 | |
2864 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2865 | if test "${with_regex+set}" = set; then |
2866 | withval="$with_regex" | |
e6cc62c6 | 2867 | |
3e44f09d VZ |
2868 | if test "$withval" = yes; then |
2869 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2870 | elif test "$withval" = no; then | |
2871 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2872 | elif test "$withval" = sys; then | |
2873 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2874 | elif test "$withval" = builtin; then |
2875 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2876 | else |
e6cc62c6 VS |
2877 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2878 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2879 | { (exit 1); exit 1; }; } | |
3e44f09d | 2880 | fi |
e6cc62c6 | 2881 | |
3e44f09d | 2882 | else |
e6cc62c6 | 2883 | |
3e44f09d VZ |
2884 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2885 | if test "x$LINE" != x ; then | |
2886 | eval "DEFAULT_$LINE" | |
2887 | else | |
2888 | no_cache=1 | |
2889 | fi | |
2890 | ||
2891 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2892 | |
e6cc62c6 | 2893 | fi; |
3e44f09d VZ |
2894 | |
2895 | eval "$ac_cv_use_regex" | |
2896 | if test "$no_cache" != 1; then | |
2897 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2898 | fi | |
2899 | ||
2900 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2901 | echo "$as_me:$LINENO: result: yes" >&5 |
2902 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2903 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2904 | echo "$as_me:$LINENO: result: no" >&5 |
2905 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2906 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2907 | echo "$as_me:$LINENO: result: system version" >&5 |
2908 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2909 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2910 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2911 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2912 | else |
e6cc62c6 VS |
2913 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2914 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2915 | { (exit 1); exit 1; }; } | |
3e44f09d | 2916 | fi |
3e44f09d | 2917 | |
e6cc62c6 VS |
2918 | |
2919 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2920 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2921 | no_cache=0 |
e6cc62c6 VS |
2922 | |
2923 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2924 | if test "${with_zlib+set}" = set; then |
2925 | withval="$with_zlib" | |
e6cc62c6 | 2926 | |
10f2d63a | 2927 | if test "$withval" = yes; then |
b12915c1 | 2928 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2929 | elif test "$withval" = no; then |
b12915c1 | 2930 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2931 | elif test "$withval" = sys; then |
2932 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2933 | elif test "$withval" = builtin; then |
2934 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2935 | else |
e6cc62c6 VS |
2936 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2937 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2938 | { (exit 1); exit 1; }; } | |
10f2d63a | 2939 | fi |
e6cc62c6 | 2940 | |
10f2d63a | 2941 | else |
e6cc62c6 | 2942 | |
b12915c1 | 2943 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2944 | if test "x$LINE" != x ; then |
2945 | eval "DEFAULT_$LINE" | |
2946 | else | |
2947 | no_cache=1 | |
2948 | fi | |
2949 | ||
b12915c1 | 2950 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2951 | |
e6cc62c6 | 2952 | fi; |
10f2d63a | 2953 | |
b12915c1 | 2954 | eval "$ac_cv_use_zlib" |
10f2d63a | 2955 | if test "$no_cache" != 1; then |
b12915c1 | 2956 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2957 | fi |
2958 | ||
b12915c1 | 2959 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2960 | echo "$as_me:$LINENO: result: yes" >&5 |
2961 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2962 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2963 | echo "$as_me:$LINENO: result: no" >&5 |
2964 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2965 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2966 | echo "$as_me:$LINENO: result: system version" >&5 |
2967 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2968 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2969 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2970 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2971 | else |
e6cc62c6 VS |
2972 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2973 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2974 | { (exit 1); exit 1; }; } | |
10f2d63a | 2975 | fi |
10f2d63a | 2976 | |
e6cc62c6 VS |
2977 | |
2978 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2979 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2980 | no_cache=0 |
e6cc62c6 VS |
2981 | |
2982 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2983 | if test "${with_odbc+set}" = set; then |
2984 | withval="$with_odbc" | |
e6cc62c6 | 2985 | |
10f2d63a VZ |
2986 | if test "$withval" = yes; then |
2987 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2988 | elif test "$withval" = no; then |
10f2d63a | 2989 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2990 | elif test "$withval" = sys; then |
2991 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2992 | elif test "$withval" = builtin; then | |
2993 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2994 | else | |
e6cc62c6 VS |
2995 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2996 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2997 | { (exit 1); exit 1; }; } | |
10f2d63a | 2998 | fi |
e6cc62c6 | 2999 | |
10f2d63a | 3000 | else |
e6cc62c6 | 3001 | |
10f2d63a VZ |
3002 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3003 | if test "x$LINE" != x ; then | |
3004 | eval "DEFAULT_$LINE" | |
3005 | else | |
3006 | no_cache=1 | |
3007 | fi | |
3008 | ||
3009 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3010 | |
e6cc62c6 | 3011 | fi; |
10f2d63a VZ |
3012 | |
3013 | eval "$ac_cv_use_odbc" | |
3014 | if test "$no_cache" != 1; then | |
3015 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3016 | fi | |
3017 | ||
3018 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3019 | echo "$as_me:$LINENO: result: yes" >&5 |
3020 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3021 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3022 | echo "$as_me:$LINENO: result: no" >&5 |
3023 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3024 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3025 | echo "$as_me:$LINENO: result: system version" >&5 |
3026 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3027 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3028 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3029 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3030 | else |
e6cc62c6 VS |
3031 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3032 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3033 | { (exit 1); exit 1; }; } | |
10f2d63a | 3034 | fi |
e6cc62c6 | 3035 | |
52127426 | 3036 | |
672abd7a VS |
3037 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3038 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3039 | no_cache=0 | |
3040 | ||
3041 | # Check whether --with-expat or --without-expat was given. | |
3042 | if test "${with_expat+set}" = set; then | |
3043 | withval="$with_expat" | |
3044 | ||
3045 | if test "$withval" = yes; then | |
3046 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3047 | elif test "$withval" = no; then | |
3048 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3049 | elif test "$withval" = sys; then | |
3050 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3051 | elif test "$withval" = builtin; then | |
3052 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3053 | else | |
3054 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3055 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3056 | { (exit 1); exit 1; }; } | |
3057 | fi | |
3058 | ||
3059 | else | |
3060 | ||
3061 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3062 | if test "x$LINE" != x ; then | |
3063 | eval "DEFAULT_$LINE" | |
3064 | else | |
3065 | no_cache=1 | |
3066 | fi | |
3067 | ||
3068 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3069 | ||
3070 | fi; | |
3071 | ||
3072 | eval "$ac_cv_use_expat" | |
3073 | if test "$no_cache" != 1; then | |
3074 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3075 | fi | |
3076 | ||
3077 | if test "$wxUSE_EXPAT" = yes; then | |
3078 | echo "$as_me:$LINENO: result: yes" >&5 | |
3079 | echo "${ECHO_T}yes" >&6 | |
3080 | elif test "$wxUSE_EXPAT" = no; then | |
3081 | echo "$as_me:$LINENO: result: no" >&5 | |
3082 | echo "${ECHO_T}no" >&6 | |
3083 | elif test "$wxUSE_EXPAT" = sys; then | |
3084 | echo "$as_me:$LINENO: result: system version" >&5 | |
3085 | echo "${ECHO_T}system version" >&6 | |
3086 | elif test "$wxUSE_EXPAT" = builtin; then | |
3087 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3088 | echo "${ECHO_T}builtin version" >&6 | |
3089 | else | |
3090 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3091 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3092 | { (exit 1); exit 1; }; } | |
3093 | fi | |
3094 | ||
3095 | ||
8284b0c5 MB |
3096 | |
3097 | ||
5005acfe | 3098 | enablestring= |
e6cc62c6 VS |
3099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3100 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3101 | no_cache=0 |
3102 | # Check whether --enable-shared or --disable-shared was given. | |
3103 | if test "${enable_shared+set}" = set; then | |
3104 | enableval="$enable_shared" | |
e6cc62c6 | 3105 | |
10f2d63a VZ |
3106 | if test "$enableval" = yes; then |
3107 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3108 | else | |
3109 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3110 | fi | |
e6cc62c6 | 3111 | |
10f2d63a | 3112 | else |
e6cc62c6 | 3113 | |
10f2d63a VZ |
3114 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3115 | if test "x$LINE" != x ; then | |
3116 | eval "DEFAULT_$LINE" | |
3117 | else | |
3118 | no_cache=1 | |
3119 | fi | |
3120 | ||
3121 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3122 | |
e6cc62c6 | 3123 | fi; |
10f2d63a VZ |
3124 | |
3125 | eval "$ac_cv_use_shared" | |
3126 | if test "$no_cache" != 1; then | |
3127 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3128 | fi | |
3129 | ||
3130 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3131 | echo "$as_me:$LINENO: result: yes" >&5 |
3132 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3133 | else |
e6cc62c6 VS |
3134 | echo "$as_me:$LINENO: result: no" >&5 |
3135 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3136 | fi |
e6cc62c6 | 3137 | |
10f2d63a | 3138 | |
5005acfe | 3139 | enablestring= |
e6cc62c6 VS |
3140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3141 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3142 | no_cache=0 |
3143 | # Check whether --enable-optimise or --disable-optimise was given. | |
3144 | if test "${enable_optimise+set}" = set; then | |
3145 | enableval="$enable_optimise" | |
e6cc62c6 | 3146 | |
10f2d63a VZ |
3147 | if test "$enableval" = yes; then |
3148 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3149 | else | |
3150 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3151 | fi | |
e6cc62c6 | 3152 | |
10f2d63a | 3153 | else |
e6cc62c6 | 3154 | |
10f2d63a VZ |
3155 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3156 | if test "x$LINE" != x ; then | |
3157 | eval "DEFAULT_$LINE" | |
3158 | else | |
3159 | no_cache=1 | |
3160 | fi | |
3161 | ||
3162 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3163 | |
e6cc62c6 | 3164 | fi; |
10f2d63a VZ |
3165 | |
3166 | eval "$ac_cv_use_optimise" | |
3167 | if test "$no_cache" != 1; then | |
3168 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3169 | fi | |
3170 | ||
3171 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3172 | echo "$as_me:$LINENO: result: yes" >&5 |
3173 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3174 | else |
e6cc62c6 VS |
3175 | echo "$as_me:$LINENO: result: no" >&5 |
3176 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3177 | fi |
e6cc62c6 | 3178 | |
10f2d63a | 3179 | |
5005acfe | 3180 | enablestring= |
e6cc62c6 VS |
3181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3182 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3183 | no_cache=0 |
3184 | # Check whether --enable-debug or --disable-debug was given. | |
3185 | if test "${enable_debug+set}" = set; then | |
3186 | enableval="$enable_debug" | |
e6cc62c6 | 3187 | |
10f2d63a VZ |
3188 | if test "$enableval" = yes; then |
3189 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3190 | else | |
3191 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3192 | fi | |
e6cc62c6 | 3193 | |
10f2d63a | 3194 | else |
e6cc62c6 | 3195 | |
10f2d63a VZ |
3196 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3197 | if test "x$LINE" != x ; then | |
3198 | eval "DEFAULT_$LINE" | |
3199 | else | |
3200 | no_cache=1 | |
3201 | fi | |
3202 | ||
3203 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3204 | |
e6cc62c6 | 3205 | fi; |
10f2d63a VZ |
3206 | |
3207 | eval "$ac_cv_use_debug" | |
3208 | if test "$no_cache" != 1; then | |
3209 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3210 | fi | |
3211 | ||
3212 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3213 | echo "$as_me:$LINENO: result: yes" >&5 |
3214 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3215 | else |
e6cc62c6 VS |
3216 | echo "$as_me:$LINENO: result: no" >&5 |
3217 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3218 | fi |
e6cc62c6 | 3219 | |
52127426 | 3220 | |
df5168c4 MB |
3221 | enablestring= |
3222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3223 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3224 | no_cache=0 | |
3225 | # Check whether --enable-stl or --disable-stl was given. | |
3226 | if test "${enable_stl+set}" = set; then | |
3227 | enableval="$enable_stl" | |
3228 | ||
3229 | if test "$enableval" = yes; then | |
3230 | ac_cv_use_stl='wxUSE_STL=yes' | |
3231 | else | |
3232 | ac_cv_use_stl='wxUSE_STL=no' | |
3233 | fi | |
3234 | ||
3235 | else | |
3236 | ||
3237 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3238 | if test "x$LINE" != x ; then | |
3239 | eval "DEFAULT_$LINE" | |
3240 | else | |
3241 | no_cache=1 | |
3242 | fi | |
3243 | ||
3244 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3245 | ||
3246 | fi; | |
3247 | ||
3248 | eval "$ac_cv_use_stl" | |
3249 | if test "$no_cache" != 1; then | |
3250 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3251 | fi | |
3252 | ||
3253 | if test "$wxUSE_STL" = yes; then | |
3254 | echo "$as_me:$LINENO: result: yes" >&5 | |
3255 | echo "${ECHO_T}yes" >&6 | |
3256 | else | |
3257 | echo "$as_me:$LINENO: result: no" >&5 | |
3258 | echo "${ECHO_T}no" >&6 | |
3259 | fi | |
3260 | ||
3261 | ||
10f2d63a VZ |
3262 | if test "$wxUSE_DEBUG" = "yes"; then |
3263 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3264 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3265 | BUILD=debug |
10f2d63a VZ |
3266 | elif test "$wxUSE_DEBUG" = "no"; then |
3267 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3268 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3269 | BUILD=release |
10f2d63a VZ |
3270 | fi |
3271 | ||
8284b0c5 | 3272 | |
5005acfe | 3273 | enablestring= |
e6cc62c6 VS |
3274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3275 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3276 | no_cache=0 |
3277 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3278 | if test "${enable_debug_flag+set}" = set; then | |
3279 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3280 | |
10f2d63a VZ |
3281 | if test "$enableval" = yes; then |
3282 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3283 | else | |
3284 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3285 | fi | |
e6cc62c6 | 3286 | |
10f2d63a | 3287 | else |
e6cc62c6 | 3288 | |
10f2d63a VZ |
3289 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3290 | if test "x$LINE" != x ; then | |
3291 | eval "DEFAULT_$LINE" | |
3292 | else | |
3293 | no_cache=1 | |
3294 | fi | |
3295 | ||
3296 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3297 | |
e6cc62c6 | 3298 | fi; |
10f2d63a VZ |
3299 | |
3300 | eval "$ac_cv_use_debug_flag" | |
3301 | if test "$no_cache" != 1; then | |
3302 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3303 | fi | |
3304 | ||
3305 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3306 | echo "$as_me:$LINENO: result: yes" >&5 |
3307 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3308 | else |
e6cc62c6 VS |
3309 | echo "$as_me:$LINENO: result: no" >&5 |
3310 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3311 | fi |
e6cc62c6 | 3312 | |
10f2d63a | 3313 | |
5005acfe | 3314 | enablestring= |
e6cc62c6 VS |
3315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3316 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3317 | no_cache=0 |
3318 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3319 | if test "${enable_debug_info+set}" = set; then | |
3320 | enableval="$enable_debug_info" | |
e6cc62c6 | 3321 | |
10f2d63a VZ |
3322 | if test "$enableval" = yes; then |
3323 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3324 | else | |
3325 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3326 | fi | |
e6cc62c6 | 3327 | |
10f2d63a | 3328 | else |
e6cc62c6 | 3329 | |
10f2d63a VZ |
3330 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3331 | if test "x$LINE" != x ; then | |
3332 | eval "DEFAULT_$LINE" | |
3333 | else | |
3334 | no_cache=1 | |
3335 | fi | |
3336 | ||
3337 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3338 | |
e6cc62c6 | 3339 | fi; |
10f2d63a VZ |
3340 | |
3341 | eval "$ac_cv_use_debug_info" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3347 | echo "$as_me:$LINENO: result: yes" >&5 |
3348 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3349 | else |
e6cc62c6 VS |
3350 | echo "$as_me:$LINENO: result: no" >&5 |
3351 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3352 | fi |
e6cc62c6 | 3353 | |
10f2d63a | 3354 | |
5005acfe | 3355 | enablestring= |
e6cc62c6 VS |
3356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3357 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3358 | no_cache=0 |
3359 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3360 | if test "${enable_debug_gdb+set}" = set; then | |
3361 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3362 | |
10f2d63a VZ |
3363 | if test "$enableval" = yes; then |
3364 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3365 | else | |
3366 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3367 | fi | |
e6cc62c6 | 3368 | |
10f2d63a | 3369 | else |
e6cc62c6 | 3370 | |
10f2d63a VZ |
3371 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3372 | if test "x$LINE" != x ; then | |
3373 | eval "DEFAULT_$LINE" | |
3374 | else | |
3375 | no_cache=1 | |
3376 | fi | |
3377 | ||
3378 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3379 | |
e6cc62c6 | 3380 | fi; |
10f2d63a VZ |
3381 | |
3382 | eval "$ac_cv_use_debug_gdb" | |
3383 | if test "$no_cache" != 1; then | |
3384 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3385 | fi | |
3386 | ||
3387 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3388 | echo "$as_me:$LINENO: result: yes" >&5 |
3389 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3390 | else |
e6cc62c6 VS |
3391 | echo "$as_me:$LINENO: result: no" >&5 |
3392 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3393 | fi |
e6cc62c6 | 3394 | |
10f2d63a | 3395 | |
5005acfe | 3396 | enablestring= |
e6cc62c6 VS |
3397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3398 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3399 | no_cache=0 |
3400 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3401 | if test "${enable_debug_cntxt+set}" = set; then | |
3402 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3403 | |
10f2d63a VZ |
3404 | if test "$enableval" = yes; then |
3405 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3406 | else | |
3407 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3408 | fi | |
e6cc62c6 | 3409 | |
10f2d63a | 3410 | else |
e6cc62c6 | 3411 | |
10f2d63a VZ |
3412 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3413 | if test "x$LINE" != x ; then | |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
3419 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3420 | |
e6cc62c6 | 3421 | fi; |
10f2d63a VZ |
3422 | |
3423 | eval "$ac_cv_use_debug_cntxt" | |
3424 | if test "$no_cache" != 1; then | |
3425 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3426 | fi | |
3427 | ||
3428 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3429 | echo "$as_me:$LINENO: result: yes" >&5 |
3430 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3431 | else |
e6cc62c6 VS |
3432 | echo "$as_me:$LINENO: result: no" >&5 |
3433 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3434 | fi |
e6cc62c6 | 3435 | |
10f2d63a | 3436 | |
5005acfe | 3437 | enablestring= |
e6cc62c6 VS |
3438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3439 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3440 | no_cache=0 |
3441 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3442 | if test "${enable_mem_tracing+set}" = set; then | |
3443 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3444 | |
10f2d63a VZ |
3445 | if test "$enableval" = yes; then |
3446 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3447 | else | |
3448 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3449 | fi | |
e6cc62c6 | 3450 | |
10f2d63a | 3451 | else |
e6cc62c6 | 3452 | |
10f2d63a VZ |
3453 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3454 | if test "x$LINE" != x ; then | |
3455 | eval "DEFAULT_$LINE" | |
3456 | else | |
3457 | no_cache=1 | |
3458 | fi | |
3459 | ||
3460 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3461 | |
e6cc62c6 | 3462 | fi; |
10f2d63a VZ |
3463 | |
3464 | eval "$ac_cv_use_mem_tracing" | |
3465 | if test "$no_cache" != 1; then | |
3466 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3467 | fi | |
3468 | ||
3469 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3470 | echo "$as_me:$LINENO: result: yes" >&5 |
3471 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3472 | else |
e6cc62c6 VS |
3473 | echo "$as_me:$LINENO: result: no" >&5 |
3474 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3475 | fi |
e6cc62c6 | 3476 | |
10f2d63a | 3477 | |
5005acfe | 3478 | enablestring= |
e6cc62c6 VS |
3479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3480 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3481 | no_cache=0 |
3482 | # Check whether --enable-profile or --disable-profile was given. | |
3483 | if test "${enable_profile+set}" = set; then | |
3484 | enableval="$enable_profile" | |
e6cc62c6 | 3485 | |
10f2d63a VZ |
3486 | if test "$enableval" = yes; then |
3487 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3488 | else | |
3489 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3490 | fi | |
e6cc62c6 | 3491 | |
10f2d63a | 3492 | else |
e6cc62c6 | 3493 | |
10f2d63a VZ |
3494 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3495 | if test "x$LINE" != x ; then | |
3496 | eval "DEFAULT_$LINE" | |
3497 | else | |
3498 | no_cache=1 | |
3499 | fi | |
3500 | ||
3501 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3502 | |
e6cc62c6 | 3503 | fi; |
10f2d63a VZ |
3504 | |
3505 | eval "$ac_cv_use_profile" | |
3506 | if test "$no_cache" != 1; then | |
3507 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3508 | fi | |
3509 | ||
3510 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3511 | echo "$as_me:$LINENO: result: yes" >&5 |
3512 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3513 | else |
e6cc62c6 VS |
3514 | echo "$as_me:$LINENO: result: no" >&5 |
3515 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3516 | fi |
e6cc62c6 | 3517 | |
10f2d63a | 3518 | |
5005acfe | 3519 | enablestring= |
e6cc62c6 VS |
3520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3521 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3522 | no_cache=0 |
3523 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3524 | if test "${enable_no_rtti+set}" = set; then | |
3525 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3526 | |
10f2d63a VZ |
3527 | if test "$enableval" = yes; then |
3528 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3529 | else | |
3530 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3531 | fi | |
e6cc62c6 | 3532 | |
10f2d63a | 3533 | else |
e6cc62c6 | 3534 | |
10f2d63a VZ |
3535 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3536 | if test "x$LINE" != x ; then | |
3537 | eval "DEFAULT_$LINE" | |
3538 | else | |
3539 | no_cache=1 | |
3540 | fi | |
3541 | ||
3542 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3543 | |
e6cc62c6 | 3544 | fi; |
10f2d63a VZ |
3545 | |
3546 | eval "$ac_cv_use_no_rtti" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3552 | echo "$as_me:$LINENO: result: yes" >&5 |
3553 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3554 | else |
e6cc62c6 VS |
3555 | echo "$as_me:$LINENO: result: no" >&5 |
3556 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3557 | fi |
e6cc62c6 | 3558 | |
10f2d63a | 3559 | |
5005acfe | 3560 | enablestring= |
e6cc62c6 VS |
3561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3562 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3563 | no_cache=0 |
3564 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3565 | if test "${enable_no_exceptions+set}" = set; then | |
3566 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3567 | |
10f2d63a VZ |
3568 | if test "$enableval" = yes; then |
3569 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3570 | else | |
3571 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3572 | fi | |
e6cc62c6 | 3573 | |
10f2d63a | 3574 | else |
e6cc62c6 | 3575 | |
10f2d63a VZ |
3576 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3577 | if test "x$LINE" != x ; then | |
3578 | eval "DEFAULT_$LINE" | |
3579 | else | |
3580 | no_cache=1 | |
3581 | fi | |
3582 | ||
3583 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3584 | |
e6cc62c6 | 3585 | fi; |
10f2d63a VZ |
3586 | |
3587 | eval "$ac_cv_use_no_exceptions" | |
3588 | if test "$no_cache" != 1; then | |
3589 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3590 | fi | |
3591 | ||
3592 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3593 | echo "$as_me:$LINENO: result: yes" >&5 |
3594 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3595 | else |
e6cc62c6 VS |
3596 | echo "$as_me:$LINENO: result: no" >&5 |
3597 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3598 | fi |
e6cc62c6 | 3599 | |
10f2d63a | 3600 | |
5005acfe | 3601 | enablestring= |
e6cc62c6 VS |
3602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3603 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3604 | no_cache=0 |
3605 | # Check whether --enable-permissive or --disable-permissive was given. | |
3606 | if test "${enable_permissive+set}" = set; then | |
3607 | enableval="$enable_permissive" | |
e6cc62c6 | 3608 | |
10f2d63a VZ |
3609 | if test "$enableval" = yes; then |
3610 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3611 | else | |
3612 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3613 | fi | |
e6cc62c6 | 3614 | |
10f2d63a | 3615 | else |
e6cc62c6 | 3616 | |
10f2d63a VZ |
3617 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3618 | if test "x$LINE" != x ; then | |
3619 | eval "DEFAULT_$LINE" | |
3620 | else | |
3621 | no_cache=1 | |
3622 | fi | |
3623 | ||
3624 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3625 | |
e6cc62c6 | 3626 | fi; |
10f2d63a VZ |
3627 | |
3628 | eval "$ac_cv_use_permissive" | |
3629 | if test "$no_cache" != 1; then | |
3630 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3631 | fi | |
3632 | ||
3633 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3634 | echo "$as_me:$LINENO: result: yes" >&5 |
3635 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3636 | else |
e6cc62c6 VS |
3637 | echo "$as_me:$LINENO: result: no" >&5 |
3638 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3639 | fi |
e6cc62c6 | 3640 | |
10f2d63a | 3641 | |
5005acfe | 3642 | enablestring= |
e6cc62c6 VS |
3643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3644 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3645 | no_cache=0 |
3646 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3647 | if test "${enable_no_deps+set}" = set; then | |
3648 | enableval="$enable_no_deps" | |
e6cc62c6 | 3649 | |
10f2d63a VZ |
3650 | if test "$enableval" = yes; then |
3651 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3652 | else | |
3653 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3654 | fi | |
e6cc62c6 | 3655 | |
10f2d63a | 3656 | else |
e6cc62c6 | 3657 | |
10f2d63a VZ |
3658 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3659 | if test "x$LINE" != x ; then | |
3660 | eval "DEFAULT_$LINE" | |
3661 | else | |
3662 | no_cache=1 | |
3663 | fi | |
3664 | ||
3665 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3666 | |
e6cc62c6 | 3667 | fi; |
10f2d63a VZ |
3668 | |
3669 | eval "$ac_cv_use_no_deps" | |
3670 | if test "$no_cache" != 1; then | |
3671 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3672 | fi | |
3673 | ||
3674 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3675 | echo "$as_me:$LINENO: result: yes" >&5 |
3676 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3677 | else |
e6cc62c6 VS |
3678 | echo "$as_me:$LINENO: result: no" >&5 |
3679 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3680 | fi |
e6cc62c6 | 3681 | |
52127426 | 3682 | |
8284b0c5 | 3683 | |
65d8ef1e | 3684 | enablestring= |
e6cc62c6 VS |
3685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3686 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3687 | no_cache=0 |
3688 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3689 | if test "${enable_compat22+set}" = set; then | |
3690 | enableval="$enable_compat22" | |
e6cc62c6 | 3691 | |
54276ccf VZ |
3692 | if test "$enableval" = yes; then |
3693 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3694 | else | |
3695 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3696 | fi | |
e6cc62c6 | 3697 | |
54276ccf | 3698 | else |
e6cc62c6 | 3699 | |
54276ccf VZ |
3700 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3701 | if test "x$LINE" != x ; then | |
3702 | eval "DEFAULT_$LINE" | |
3703 | else | |
3704 | no_cache=1 | |
3705 | fi | |
3706 | ||
3707 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3708 | |
e6cc62c6 | 3709 | fi; |
54276ccf VZ |
3710 | |
3711 | eval "$ac_cv_use_compat22" | |
3712 | if test "$no_cache" != 1; then | |
3713 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3714 | fi | |
3715 | ||
3716 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3717 | echo "$as_me:$LINENO: result: yes" >&5 |
3718 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3719 | else |
e6cc62c6 VS |
3720 | echo "$as_me:$LINENO: result: no" >&5 |
3721 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3722 | fi |
e6cc62c6 | 3723 | |
54276ccf | 3724 | |
65d8ef1e | 3725 | enablestring=disable |
e6cc62c6 VS |
3726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3727 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3728 | no_cache=0 |
3729 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3730 | if test "${enable_compat24+set}" = set; then | |
3731 | enableval="$enable_compat24" | |
e6cc62c6 | 3732 | |
65d8ef1e VS |
3733 | if test "$enableval" = yes; then |
3734 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3735 | else | |
3736 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3737 | fi | |
e6cc62c6 | 3738 | |
65d8ef1e | 3739 | else |
e6cc62c6 | 3740 | |
65d8ef1e VS |
3741 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3742 | if test "x$LINE" != x ; then | |
3743 | eval "DEFAULT_$LINE" | |
3744 | else | |
3745 | no_cache=1 | |
3746 | fi | |
3747 | ||
3748 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3749 | |
e6cc62c6 | 3750 | fi; |
65d8ef1e VS |
3751 | |
3752 | eval "$ac_cv_use_compat24" | |
3753 | if test "$no_cache" != 1; then | |
3754 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3755 | fi | |
3756 | ||
3757 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3758 | echo "$as_me:$LINENO: result: yes" >&5 |
3759 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3760 | else |
e6cc62c6 VS |
3761 | echo "$as_me:$LINENO: result: no" >&5 |
3762 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3763 | fi |
e6cc62c6 | 3764 | |
65d8ef1e | 3765 | |
3bd8fb5f RD |
3766 | # Check whether --enable-rpath or --disable-rpath was given. |
3767 | if test "${enable_rpath+set}" = set; then | |
3768 | enableval="$enable_rpath" | |
3769 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3770 | fi; |
3bd8fb5f RD |
3771 | |
3772 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3773 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3774 | fi | |
3775 | ||
8284b0c5 MB |
3776 | |
3777 | ||
3778 | ||
5005acfe | 3779 | enablestring= |
e6cc62c6 VS |
3780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3781 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3782 | no_cache=0 |
3783 | # Check whether --enable-intl or --disable-intl was given. | |
3784 | if test "${enable_intl+set}" = set; then | |
3785 | enableval="$enable_intl" | |
e6cc62c6 | 3786 | |
10f2d63a VZ |
3787 | if test "$enableval" = yes; then |
3788 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3789 | else | |
3790 | ac_cv_use_intl='wxUSE_INTL=no' | |
3791 | fi | |
e6cc62c6 | 3792 | |
10f2d63a | 3793 | else |
e6cc62c6 | 3794 | |
10f2d63a VZ |
3795 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3796 | if test "x$LINE" != x ; then | |
3797 | eval "DEFAULT_$LINE" | |
3798 | else | |
3799 | no_cache=1 | |
3800 | fi | |
3801 | ||
3802 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3803 | |
e6cc62c6 | 3804 | fi; |
10f2d63a VZ |
3805 | |
3806 | eval "$ac_cv_use_intl" | |
3807 | if test "$no_cache" != 1; then | |
3808 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3809 | fi | |
3810 | ||
3811 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3812 | echo "$as_me:$LINENO: result: yes" >&5 |
3813 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3814 | else |
e6cc62c6 VS |
3815 | echo "$as_me:$LINENO: result: no" >&5 |
3816 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3817 | fi |
e6cc62c6 | 3818 | |
10f2d63a | 3819 | |
5005acfe | 3820 | enablestring= |
e6cc62c6 VS |
3821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3822 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3823 | no_cache=0 |
3824 | # Check whether --enable-config or --disable-config was given. | |
3825 | if test "${enable_config+set}" = set; then | |
3826 | enableval="$enable_config" | |
e6cc62c6 | 3827 | |
10f2d63a VZ |
3828 | if test "$enableval" = yes; then |
3829 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3830 | else | |
3831 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3832 | fi | |
e6cc62c6 | 3833 | |
10f2d63a | 3834 | else |
e6cc62c6 | 3835 | |
10f2d63a VZ |
3836 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3837 | if test "x$LINE" != x ; then | |
3838 | eval "DEFAULT_$LINE" | |
3839 | else | |
3840 | no_cache=1 | |
3841 | fi | |
3842 | ||
3843 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3844 | |
e6cc62c6 | 3845 | fi; |
10f2d63a VZ |
3846 | |
3847 | eval "$ac_cv_use_config" | |
3848 | if test "$no_cache" != 1; then | |
3849 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3850 | fi | |
3851 | ||
3852 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3853 | echo "$as_me:$LINENO: result: yes" >&5 |
3854 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3855 | else |
e6cc62c6 VS |
3856 | echo "$as_me:$LINENO: result: no" >&5 |
3857 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3858 | fi |
e6cc62c6 | 3859 | |
52127426 | 3860 | |
8284b0c5 | 3861 | |
5005acfe | 3862 | enablestring= |
e6cc62c6 VS |
3863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3864 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3865 | no_cache=0 |
3866 | # Check whether --enable-protocols or --disable-protocols was given. | |
3867 | if test "${enable_protocols+set}" = set; then | |
3868 | enableval="$enable_protocols" | |
e6cc62c6 | 3869 | |
a1622950 VZ |
3870 | if test "$enableval" = yes; then |
3871 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3872 | else | |
3873 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3874 | fi | |
e6cc62c6 | 3875 | |
a1622950 | 3876 | else |
e6cc62c6 | 3877 | |
a1622950 VZ |
3878 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3879 | if test "x$LINE" != x ; then | |
3880 | eval "DEFAULT_$LINE" | |
3881 | else | |
3882 | no_cache=1 | |
3883 | fi | |
3884 | ||
3885 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3886 | |
e6cc62c6 | 3887 | fi; |
a1622950 VZ |
3888 | |
3889 | eval "$ac_cv_use_protocols" | |
3890 | if test "$no_cache" != 1; then | |
3891 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3892 | fi | |
3893 | ||
3894 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3895 | echo "$as_me:$LINENO: result: yes" >&5 |
3896 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3897 | else |
e6cc62c6 VS |
3898 | echo "$as_me:$LINENO: result: no" >&5 |
3899 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3900 | fi |
e6cc62c6 | 3901 | |
a1622950 | 3902 | |
5005acfe | 3903 | enablestring= |
e6cc62c6 VS |
3904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3905 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3906 | no_cache=0 |
3907 | # Check whether --enable-ftp or --disable-ftp was given. | |
3908 | if test "${enable_ftp+set}" = set; then | |
3909 | enableval="$enable_ftp" | |
e6cc62c6 | 3910 | |
a1622950 VZ |
3911 | if test "$enableval" = yes; then |
3912 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3913 | else | |
3914 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3915 | fi | |
e6cc62c6 | 3916 | |
a1622950 | 3917 | else |
e6cc62c6 | 3918 | |
a1622950 VZ |
3919 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3920 | if test "x$LINE" != x ; then | |
3921 | eval "DEFAULT_$LINE" | |
3922 | else | |
3923 | no_cache=1 | |
3924 | fi | |
3925 | ||
3926 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3927 | |
e6cc62c6 | 3928 | fi; |
a1622950 VZ |
3929 | |
3930 | eval "$ac_cv_use_ftp" | |
3931 | if test "$no_cache" != 1; then | |
3932 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3933 | fi | |
3934 | ||
3935 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3936 | echo "$as_me:$LINENO: result: yes" >&5 |
3937 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3938 | else |
e6cc62c6 VS |
3939 | echo "$as_me:$LINENO: result: no" >&5 |
3940 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3941 | fi |
e6cc62c6 | 3942 | |
a1622950 | 3943 | |
5005acfe | 3944 | enablestring= |
e6cc62c6 VS |
3945 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3946 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3947 | no_cache=0 |
3948 | # Check whether --enable-http or --disable-http was given. | |
3949 | if test "${enable_http+set}" = set; then | |
3950 | enableval="$enable_http" | |
e6cc62c6 | 3951 | |
a1622950 VZ |
3952 | if test "$enableval" = yes; then |
3953 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3954 | else | |
3955 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3956 | fi | |
e6cc62c6 | 3957 | |
a1622950 | 3958 | else |
e6cc62c6 | 3959 | |
a1622950 VZ |
3960 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3961 | if test "x$LINE" != x ; then | |
3962 | eval "DEFAULT_$LINE" | |
3963 | else | |
3964 | no_cache=1 | |
3965 | fi | |
3966 | ||
3967 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3968 | |
e6cc62c6 | 3969 | fi; |
a1622950 VZ |
3970 | |
3971 | eval "$ac_cv_use_http" | |
3972 | if test "$no_cache" != 1; then | |
3973 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3974 | fi | |
3975 | ||
3976 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3977 | echo "$as_me:$LINENO: result: yes" >&5 |
3978 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3979 | else |
e6cc62c6 VS |
3980 | echo "$as_me:$LINENO: result: no" >&5 |
3981 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3982 | fi |
e6cc62c6 | 3983 | |
a1622950 | 3984 | |
5005acfe | 3985 | enablestring= |
e6cc62c6 VS |
3986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3987 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3988 | no_cache=0 |
3989 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3990 | if test "${enable_fileproto+set}" = set; then | |
3991 | enableval="$enable_fileproto" | |
e6cc62c6 | 3992 | |
a1622950 VZ |
3993 | if test "$enableval" = yes; then |
3994 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3995 | else | |
3996 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3997 | fi | |
e6cc62c6 | 3998 | |
a1622950 | 3999 | else |
e6cc62c6 | 4000 | |
a1622950 VZ |
4001 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4002 | if test "x$LINE" != x ; then | |
4003 | eval "DEFAULT_$LINE" | |
4004 | else | |
4005 | no_cache=1 | |
4006 | fi | |
4007 | ||
4008 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4009 | |
e6cc62c6 | 4010 | fi; |
a1622950 VZ |
4011 | |
4012 | eval "$ac_cv_use_fileproto" | |
4013 | if test "$no_cache" != 1; then | |
4014 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4015 | fi | |
4016 | ||
4017 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4018 | echo "$as_me:$LINENO: result: yes" >&5 |
4019 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4020 | else |
e6cc62c6 VS |
4021 | echo "$as_me:$LINENO: result: no" >&5 |
4022 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4023 | fi |
e6cc62c6 | 4024 | |
a1622950 | 4025 | |
5005acfe | 4026 | enablestring= |
e6cc62c6 VS |
4027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4028 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4029 | no_cache=0 |
4030 | # Check whether --enable-sockets or --disable-sockets was given. | |
4031 | if test "${enable_sockets+set}" = set; then | |
4032 | enableval="$enable_sockets" | |
e6cc62c6 | 4033 | |
10f2d63a VZ |
4034 | if test "$enableval" = yes; then |
4035 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4036 | else | |
4037 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4038 | fi | |
e6cc62c6 | 4039 | |
10f2d63a | 4040 | else |
e6cc62c6 | 4041 | |
10f2d63a VZ |
4042 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4043 | if test "x$LINE" != x ; then | |
4044 | eval "DEFAULT_$LINE" | |
4045 | else | |
4046 | no_cache=1 | |
4047 | fi | |
4048 | ||
4049 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4050 | |
e6cc62c6 | 4051 | fi; |
10f2d63a VZ |
4052 | |
4053 | eval "$ac_cv_use_sockets" | |
4054 | if test "$no_cache" != 1; then | |
4055 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4056 | fi | |
4057 | ||
4058 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4059 | echo "$as_me:$LINENO: result: yes" >&5 |
4060 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4061 | else |
e6cc62c6 VS |
4062 | echo "$as_me:$LINENO: result: no" >&5 |
4063 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4064 | fi |
e6cc62c6 | 4065 | |
8284b0c5 | 4066 | |
5005acfe | 4067 | enablestring= |
e6cc62c6 VS |
4068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4069 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4070 | no_cache=0 |
4071 | # Check whether --enable-ole or --disable-ole was given. | |
4072 | if test "${enable_ole+set}" = set; then | |
4073 | enableval="$enable_ole" | |
e6cc62c6 | 4074 | |
3bce6687 JS |
4075 | if test "$enableval" = yes; then |
4076 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4077 | else | |
4078 | ac_cv_use_ole='wxUSE_OLE=no' | |
4079 | fi | |
e6cc62c6 | 4080 | |
3bce6687 | 4081 | else |
e6cc62c6 | 4082 | |
3bce6687 JS |
4083 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4084 | if test "x$LINE" != x ; then | |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
4090 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4091 | |
e6cc62c6 | 4092 | fi; |
3bce6687 JS |
4093 | |
4094 | eval "$ac_cv_use_ole" | |
4095 | if test "$no_cache" != 1; then | |
4096 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4097 | fi | |
4098 | ||
4099 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4100 | echo "$as_me:$LINENO: result: yes" >&5 |
4101 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4102 | else |
e6cc62c6 VS |
4103 | echo "$as_me:$LINENO: result: no" >&5 |
4104 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4105 | fi |
e6cc62c6 | 4106 | |
3bce6687 | 4107 | |
5005acfe | 4108 | enablestring= |
e6cc62c6 VS |
4109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4110 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4111 | no_cache=0 |
4112 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4113 | if test "${enable_dataobj+set}" = set; then | |
4114 | enableval="$enable_dataobj" | |
e6cc62c6 | 4115 | |
3bce6687 JS |
4116 | if test "$enableval" = yes; then |
4117 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4118 | else | |
4119 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4120 | fi | |
e6cc62c6 | 4121 | |
3bce6687 | 4122 | else |
e6cc62c6 | 4123 | |
3bce6687 JS |
4124 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4125 | if test "x$LINE" != x ; then | |
4126 | eval "DEFAULT_$LINE" | |
4127 | else | |
4128 | no_cache=1 | |
4129 | fi | |
4130 | ||
4131 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4132 | |
e6cc62c6 | 4133 | fi; |
3bce6687 JS |
4134 | |
4135 | eval "$ac_cv_use_dataobj" | |
4136 | if test "$no_cache" != 1; then | |
4137 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4138 | fi | |
4139 | ||
4140 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4141 | echo "$as_me:$LINENO: result: yes" >&5 |
4142 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4143 | else |
e6cc62c6 VS |
4144 | echo "$as_me:$LINENO: result: no" >&5 |
4145 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4146 | fi |
e6cc62c6 | 4147 | |
3bce6687 | 4148 | |
52127426 | 4149 | |
5005acfe | 4150 | enablestring= |
e6cc62c6 VS |
4151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4152 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4153 | no_cache=0 |
eb4efbdc VZ |
4154 | # Check whether --enable-ipc or --disable-ipc was given. |
4155 | if test "${enable_ipc+set}" = set; then | |
4156 | enableval="$enable_ipc" | |
e6cc62c6 | 4157 | |
10f2d63a | 4158 | if test "$enableval" = yes; then |
eb4efbdc | 4159 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4160 | else |
eb4efbdc | 4161 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4162 | fi |
e6cc62c6 | 4163 | |
10f2d63a | 4164 | else |
e6cc62c6 | 4165 | |
eb4efbdc | 4166 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4167 | if test "x$LINE" != x ; then |
4168 | eval "DEFAULT_$LINE" | |
4169 | else | |
4170 | no_cache=1 | |
4171 | fi | |
4172 | ||
eb4efbdc | 4173 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4174 | |
e6cc62c6 | 4175 | fi; |
10f2d63a | 4176 | |
eb4efbdc | 4177 | eval "$ac_cv_use_ipc" |
10f2d63a | 4178 | if test "$no_cache" != 1; then |
eb4efbdc | 4179 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4180 | fi |
4181 | ||
eb4efbdc | 4182 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4183 | echo "$as_me:$LINENO: result: yes" >&5 |
4184 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4185 | else |
e6cc62c6 VS |
4186 | echo "$as_me:$LINENO: result: no" >&5 |
4187 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4188 | fi |
e6cc62c6 | 4189 | |
52127426 | 4190 | |
8284b0c5 | 4191 | |
5005acfe | 4192 | enablestring= |
e6cc62c6 VS |
4193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4194 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4195 | no_cache=0 |
4196 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4197 | if test "${enable_cmdline+set}" = set; then | |
4198 | enableval="$enable_cmdline" | |
e6cc62c6 | 4199 | |
1e6feb95 VZ |
4200 | if test "$enableval" = yes; then |
4201 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4202 | else | |
4203 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4204 | fi | |
e6cc62c6 | 4205 | |
1e6feb95 | 4206 | else |
e6cc62c6 | 4207 | |
1e6feb95 VZ |
4208 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4209 | if test "x$LINE" != x ; then | |
4210 | eval "DEFAULT_$LINE" | |
4211 | else | |
4212 | no_cache=1 | |
4213 | fi | |
4214 | ||
4215 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4216 | |
e6cc62c6 | 4217 | fi; |
1e6feb95 VZ |
4218 | |
4219 | eval "$ac_cv_use_cmdline" | |
4220 | if test "$no_cache" != 1; then | |
4221 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4222 | fi | |
4223 | ||
4224 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4225 | echo "$as_me:$LINENO: result: yes" >&5 |
4226 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4227 | else |
e6cc62c6 VS |
4228 | echo "$as_me:$LINENO: result: no" >&5 |
4229 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4230 | fi |
e6cc62c6 | 4231 | |
1e6feb95 | 4232 | |
5005acfe | 4233 | enablestring= |
e6cc62c6 VS |
4234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4235 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4236 | no_cache=0 |
4237 | # Check whether --enable-datetime or --disable-datetime was given. | |
4238 | if test "${enable_datetime+set}" = set; then | |
4239 | enableval="$enable_datetime" | |
e6cc62c6 | 4240 | |
1e6feb95 VZ |
4241 | if test "$enableval" = yes; then |
4242 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4243 | else | |
4244 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4245 | fi | |
e6cc62c6 | 4246 | |
1e6feb95 | 4247 | else |
e6cc62c6 | 4248 | |
1e6feb95 VZ |
4249 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4250 | if test "x$LINE" != x ; then | |
4251 | eval "DEFAULT_$LINE" | |
4252 | else | |
4253 | no_cache=1 | |
4254 | fi | |
4255 | ||
4256 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4257 | |
e6cc62c6 | 4258 | fi; |
1e6feb95 VZ |
4259 | |
4260 | eval "$ac_cv_use_datetime" | |
4261 | if test "$no_cache" != 1; then | |
4262 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4263 | fi | |
4264 | ||
4265 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4266 | echo "$as_me:$LINENO: result: yes" >&5 |
4267 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4268 | else |
e6cc62c6 VS |
4269 | echo "$as_me:$LINENO: result: no" >&5 |
4270 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4271 | fi |
e6cc62c6 | 4272 | |
1e6feb95 | 4273 | |
5005acfe | 4274 | enablestring= |
e6cc62c6 VS |
4275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4276 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4277 | no_cache=0 |
4278 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4279 | if test "${enable_stopwatch+set}" = set; then | |
4280 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4281 | |
1e6feb95 VZ |
4282 | if test "$enableval" = yes; then |
4283 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4284 | else | |
4285 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4286 | fi | |
e6cc62c6 | 4287 | |
1e6feb95 | 4288 | else |
e6cc62c6 | 4289 | |
1e6feb95 VZ |
4290 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4291 | if test "x$LINE" != x ; then | |
4292 | eval "DEFAULT_$LINE" | |
4293 | else | |
4294 | no_cache=1 | |
4295 | fi | |
4296 | ||
4297 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4298 | |
e6cc62c6 | 4299 | fi; |
1e6feb95 VZ |
4300 | |
4301 | eval "$ac_cv_use_stopwatch" | |
4302 | if test "$no_cache" != 1; then | |
4303 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4304 | fi | |
4305 | ||
4306 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4307 | echo "$as_me:$LINENO: result: yes" >&5 |
4308 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4309 | else |
e6cc62c6 VS |
4310 | echo "$as_me:$LINENO: result: no" >&5 |
4311 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4312 | fi |
e6cc62c6 | 4313 | |
1e6feb95 | 4314 | |
5005acfe | 4315 | enablestring= |
e6cc62c6 VS |
4316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4317 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4318 | no_cache=0 |
eb4efbdc VZ |
4319 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4320 | if test "${enable_dialupman+set}" = set; then | |
4321 | enableval="$enable_dialupman" | |
e6cc62c6 | 4322 | |
10f2d63a | 4323 | if test "$enableval" = yes; then |
eb4efbdc | 4324 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4325 | else |
eb4efbdc | 4326 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4327 | fi |
e6cc62c6 | 4328 | |
10f2d63a | 4329 | else |
e6cc62c6 | 4330 | |
eb4efbdc | 4331 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4332 | if test "x$LINE" != x ; then |
4333 | eval "DEFAULT_$LINE" | |
4334 | else | |
4335 | no_cache=1 | |
4336 | fi | |
4337 | ||
eb4efbdc | 4338 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4339 | |
e6cc62c6 | 4340 | fi; |
10f2d63a | 4341 | |
eb4efbdc | 4342 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4343 | if test "$no_cache" != 1; then |
eb4efbdc | 4344 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4345 | fi |
4346 | ||
eb4efbdc | 4347 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4348 | echo "$as_me:$LINENO: result: yes" >&5 |
4349 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4350 | else |
e6cc62c6 VS |
4351 | echo "$as_me:$LINENO: result: no" >&5 |
4352 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4353 | fi |
e6cc62c6 | 4354 | |
10f2d63a | 4355 | |
5005acfe | 4356 | enablestring= |
e6cc62c6 VS |
4357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4358 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4359 | no_cache=0 |
4360 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4361 | if test "${enable_apple_ieee+set}" = set; then | |
4362 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4363 | |
10f2d63a VZ |
4364 | if test "$enableval" = yes; then |
4365 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4366 | else | |
4367 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4368 | fi | |
e6cc62c6 | 4369 | |
10f2d63a | 4370 | else |
e6cc62c6 | 4371 | |
10f2d63a VZ |
4372 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4373 | if test "x$LINE" != x ; then | |
4374 | eval "DEFAULT_$LINE" | |
4375 | else | |
4376 | no_cache=1 | |
4377 | fi | |
4378 | ||
4379 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4380 | |
e6cc62c6 | 4381 | fi; |
10f2d63a VZ |
4382 | |
4383 | eval "$ac_cv_use_apple_ieee" | |
4384 | if test "$no_cache" != 1; then | |
4385 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4386 | fi | |
4387 | ||
4388 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4389 | echo "$as_me:$LINENO: result: yes" >&5 |
4390 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4391 | else |
e6cc62c6 VS |
4392 | echo "$as_me:$LINENO: result: no" >&5 |
4393 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4394 | fi |
e6cc62c6 | 4395 | |
10f2d63a | 4396 | |
5005acfe | 4397 | enablestring= |
e6cc62c6 VS |
4398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4399 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4400 | no_cache=0 |
1e6feb95 VZ |
4401 | # Check whether --enable-timer or --disable-timer was given. |
4402 | if test "${enable_timer+set}" = set; then | |
4403 | enableval="$enable_timer" | |
e6cc62c6 | 4404 | |
10f2d63a | 4405 | if test "$enableval" = yes; then |
1e6feb95 | 4406 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4407 | else |
1e6feb95 | 4408 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4409 | fi |
e6cc62c6 | 4410 | |
10f2d63a | 4411 | else |
e6cc62c6 | 4412 | |
1e6feb95 | 4413 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4414 | if test "x$LINE" != x ; then |
4415 | eval "DEFAULT_$LINE" | |
4416 | else | |
4417 | no_cache=1 | |
4418 | fi | |
4419 | ||
1e6feb95 | 4420 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4421 | |
e6cc62c6 | 4422 | fi; |
10f2d63a | 4423 | |
1e6feb95 | 4424 | eval "$ac_cv_use_timer" |
10f2d63a | 4425 | if test "$no_cache" != 1; then |
1e6feb95 | 4426 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4427 | fi |
4428 | ||
1e6feb95 | 4429 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4430 | echo "$as_me:$LINENO: result: yes" >&5 |
4431 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4432 | else |
e6cc62c6 VS |
4433 | echo "$as_me:$LINENO: result: no" >&5 |
4434 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4435 | fi |
e6cc62c6 | 4436 | |
10f2d63a | 4437 | |
5005acfe | 4438 | enablestring= |
e6cc62c6 VS |
4439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4440 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4441 | no_cache=0 |
4442 | # Check whether --enable-wave or --disable-wave was given. | |
4443 | if test "${enable_wave+set}" = set; then | |
4444 | enableval="$enable_wave" | |
e6cc62c6 | 4445 | |
10f2d63a VZ |
4446 | if test "$enableval" = yes; then |
4447 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4448 | else | |
4449 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4450 | fi | |
e6cc62c6 | 4451 | |
10f2d63a | 4452 | else |
e6cc62c6 | 4453 | |
10f2d63a VZ |
4454 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4455 | if test "x$LINE" != x ; then | |
4456 | eval "DEFAULT_$LINE" | |
4457 | else | |
4458 | no_cache=1 | |
4459 | fi | |
4460 | ||
4461 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4462 | |
e6cc62c6 | 4463 | fi; |
10f2d63a VZ |
4464 | |
4465 | eval "$ac_cv_use_wave" | |
4466 | if test "$no_cache" != 1; then | |
4467 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4468 | fi | |
4469 | ||
4470 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4471 | echo "$as_me:$LINENO: result: yes" >&5 |
4472 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4473 | else |
e6cc62c6 VS |
4474 | echo "$as_me:$LINENO: result: no" >&5 |
4475 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4476 | fi |
e6cc62c6 | 4477 | |
10f2d63a | 4478 | |
5005acfe | 4479 | enablestring= |
e6cc62c6 VS |
4480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4481 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4482 | no_cache=0 |
4483 | # Check whether --enable-fraction or --disable-fraction was given. | |
4484 | if test "${enable_fraction+set}" = set; then | |
4485 | enableval="$enable_fraction" | |
e6cc62c6 | 4486 | |
10f2d63a VZ |
4487 | if test "$enableval" = yes; then |
4488 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4489 | else | |
4490 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4491 | fi | |
e6cc62c6 | 4492 | |
10f2d63a | 4493 | else |
e6cc62c6 | 4494 | |
10f2d63a VZ |
4495 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4496 | if test "x$LINE" != x ; then | |
4497 | eval "DEFAULT_$LINE" | |
4498 | else | |
4499 | no_cache=1 | |
4500 | fi | |
4501 | ||
4502 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4503 | |
e6cc62c6 | 4504 | fi; |
10f2d63a VZ |
4505 | |
4506 | eval "$ac_cv_use_fraction" | |
4507 | if test "$no_cache" != 1; then | |
4508 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4509 | fi | |
4510 | ||
4511 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4512 | echo "$as_me:$LINENO: result: yes" >&5 |
4513 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4514 | else |
e6cc62c6 VS |
4515 | echo "$as_me:$LINENO: result: no" >&5 |
4516 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4517 | fi |
e6cc62c6 | 4518 | |
10f2d63a | 4519 | |
5005acfe | 4520 | enablestring= |
e6cc62c6 VS |
4521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4522 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4523 | no_cache=0 |
4524 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4525 | if test "${enable_dynlib+set}" = set; then | |
4526 | enableval="$enable_dynlib" | |
e6cc62c6 | 4527 | |
10f2d63a VZ |
4528 | if test "$enableval" = yes; then |
4529 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4530 | else | |
4531 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4532 | fi | |
e6cc62c6 | 4533 | |
10f2d63a | 4534 | else |
e6cc62c6 | 4535 | |
10f2d63a VZ |
4536 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4537 | if test "x$LINE" != x ; then | |
4538 | eval "DEFAULT_$LINE" | |
4539 | else | |
4540 | no_cache=1 | |
4541 | fi | |
4542 | ||
4543 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4544 | |
e6cc62c6 | 4545 | fi; |
10f2d63a VZ |
4546 | |
4547 | eval "$ac_cv_use_dynlib" | |
4548 | if test "$no_cache" != 1; then | |
4549 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4550 | fi | |
4551 | ||
4552 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4553 | echo "$as_me:$LINENO: result: yes" >&5 |
4554 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4555 | else |
e6cc62c6 VS |
4556 | echo "$as_me:$LINENO: result: no" >&5 |
4557 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4558 | fi |
e6cc62c6 | 4559 | |
10f2d63a | 4560 | |
5005acfe | 4561 | enablestring= |
e6cc62c6 VS |
4562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4563 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4564 | no_cache=0 |
4565 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4566 | if test "${enable_dynamicloader+set}" = set; then | |
4567 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4568 | |
0b9ab0bd RL |
4569 | if test "$enableval" = yes; then |
4570 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4571 | else | |
4572 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4573 | fi | |
e6cc62c6 | 4574 | |
0b9ab0bd | 4575 | else |
e6cc62c6 | 4576 | |
0b9ab0bd RL |
4577 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4578 | if test "x$LINE" != x ; then | |
4579 | eval "DEFAULT_$LINE" | |
4580 | else | |
4581 | no_cache=1 | |
4582 | fi | |
4583 | ||
4584 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4585 | |
e6cc62c6 | 4586 | fi; |
0b9ab0bd RL |
4587 | |
4588 | eval "$ac_cv_use_dynamicloader" | |
4589 | if test "$no_cache" != 1; then | |
4590 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4591 | fi | |
4592 | ||
4593 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4594 | echo "$as_me:$LINENO: result: yes" >&5 |
4595 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4596 | else |
e6cc62c6 VS |
4597 | echo "$as_me:$LINENO: result: no" >&5 |
4598 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4599 | fi |
e6cc62c6 | 4600 | |
0b9ab0bd | 4601 | |
5005acfe | 4602 | enablestring= |
e6cc62c6 VS |
4603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4604 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4605 | no_cache=0 |
4606 | # Check whether --enable-longlong or --disable-longlong was given. | |
4607 | if test "${enable_longlong+set}" = set; then | |
4608 | enableval="$enable_longlong" | |
e6cc62c6 | 4609 | |
10f2d63a VZ |
4610 | if test "$enableval" = yes; then |
4611 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4612 | else | |
4613 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4614 | fi | |
e6cc62c6 | 4615 | |
10f2d63a | 4616 | else |
e6cc62c6 | 4617 | |
10f2d63a VZ |
4618 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4619 | if test "x$LINE" != x ; then | |
4620 | eval "DEFAULT_$LINE" | |
4621 | else | |
4622 | no_cache=1 | |
4623 | fi | |
4624 | ||
4625 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4626 | |
e6cc62c6 | 4627 | fi; |
10f2d63a VZ |
4628 | |
4629 | eval "$ac_cv_use_longlong" | |
4630 | if test "$no_cache" != 1; then | |
4631 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4632 | fi | |
4633 | ||
4634 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4635 | echo "$as_me:$LINENO: result: yes" >&5 |
4636 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4637 | else |
e6cc62c6 VS |
4638 | echo "$as_me:$LINENO: result: no" >&5 |
4639 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4640 | fi |
e6cc62c6 | 4641 | |
10f2d63a | 4642 | |
5005acfe | 4643 | enablestring= |
e6cc62c6 VS |
4644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4645 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4646 | no_cache=0 |
4647 | # Check whether --enable-geometry or --disable-geometry was given. | |
4648 | if test "${enable_geometry+set}" = set; then | |
4649 | enableval="$enable_geometry" | |
e6cc62c6 | 4650 | |
e8f65ba6 RR |
4651 | if test "$enableval" = yes; then |
4652 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4653 | else | |
4654 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4655 | fi | |
e6cc62c6 | 4656 | |
e8f65ba6 | 4657 | else |
e6cc62c6 | 4658 | |
e8f65ba6 RR |
4659 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4660 | if test "x$LINE" != x ; then | |
4661 | eval "DEFAULT_$LINE" | |
4662 | else | |
4663 | no_cache=1 | |
4664 | fi | |
4665 | ||
4666 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4667 | |
e6cc62c6 | 4668 | fi; |
e8f65ba6 RR |
4669 | |
4670 | eval "$ac_cv_use_geometry" | |
4671 | if test "$no_cache" != 1; then | |
4672 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4673 | fi | |
4674 | ||
4675 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4676 | echo "$as_me:$LINENO: result: yes" >&5 |
4677 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4678 | else |
e6cc62c6 VS |
4679 | echo "$as_me:$LINENO: result: no" >&5 |
4680 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4681 | fi |
e6cc62c6 | 4682 | |
e8f65ba6 | 4683 | |
5005acfe | 4684 | enablestring= |
e6cc62c6 VS |
4685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4686 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4687 | no_cache=0 |
4688 | # Check whether --enable-log or --disable-log was given. | |
4689 | if test "${enable_log+set}" = set; then | |
4690 | enableval="$enable_log" | |
e6cc62c6 | 4691 | |
10f2d63a VZ |
4692 | if test "$enableval" = yes; then |
4693 | ac_cv_use_log='wxUSE_LOG=yes' | |
4694 | else | |
4695 | ac_cv_use_log='wxUSE_LOG=no' | |
4696 | fi | |
e6cc62c6 | 4697 | |
10f2d63a | 4698 | else |
e6cc62c6 | 4699 | |
10f2d63a VZ |
4700 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4701 | if test "x$LINE" != x ; then | |
4702 | eval "DEFAULT_$LINE" | |
4703 | else | |
4704 | no_cache=1 | |
4705 | fi | |
4706 | ||
4707 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4708 | |
e6cc62c6 | 4709 | fi; |
10f2d63a VZ |
4710 | |
4711 | eval "$ac_cv_use_log" | |
4712 | if test "$no_cache" != 1; then | |
4713 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4714 | fi | |
4715 | ||
4716 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4717 | echo "$as_me:$LINENO: result: yes" >&5 |
4718 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4719 | else |
e6cc62c6 VS |
4720 | echo "$as_me:$LINENO: result: no" >&5 |
4721 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4722 | fi |
e6cc62c6 | 4723 | |
10f2d63a | 4724 | |
5005acfe | 4725 | enablestring= |
e6cc62c6 VS |
4726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4727 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4728 | no_cache=0 |
4729 | # Check whether --enable-streams or --disable-streams was given. | |
4730 | if test "${enable_streams+set}" = set; then | |
4731 | enableval="$enable_streams" | |
e6cc62c6 | 4732 | |
10f2d63a VZ |
4733 | if test "$enableval" = yes; then |
4734 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4735 | else | |
4736 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4737 | fi | |
e6cc62c6 | 4738 | |
10f2d63a | 4739 | else |
e6cc62c6 | 4740 | |
10f2d63a VZ |
4741 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4742 | if test "x$LINE" != x ; then | |
4743 | eval "DEFAULT_$LINE" | |
4744 | else | |
4745 | no_cache=1 | |
4746 | fi | |
4747 | ||
4748 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4749 | |
e6cc62c6 | 4750 | fi; |
10f2d63a VZ |
4751 | |
4752 | eval "$ac_cv_use_streams" | |
4753 | if test "$no_cache" != 1; then | |
4754 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4755 | fi | |
4756 | ||
4757 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4758 | echo "$as_me:$LINENO: result: yes" >&5 |
4759 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4760 | else |
e6cc62c6 VS |
4761 | echo "$as_me:$LINENO: result: no" >&5 |
4762 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4763 | fi |
e6cc62c6 | 4764 | |
10f2d63a | 4765 | |
5005acfe | 4766 | enablestring= |
e6cc62c6 VS |
4767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4768 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4769 | no_cache=0 |
4770 | # Check whether --enable-file or --disable-file was given. | |
4771 | if test "${enable_file+set}" = set; then | |
4772 | enableval="$enable_file" | |
e6cc62c6 | 4773 | |
10f2d63a VZ |
4774 | if test "$enableval" = yes; then |
4775 | ac_cv_use_file='wxUSE_FILE=yes' | |
4776 | else | |
4777 | ac_cv_use_file='wxUSE_FILE=no' | |
4778 | fi | |
e6cc62c6 | 4779 | |
10f2d63a | 4780 | else |
e6cc62c6 | 4781 | |
10f2d63a VZ |
4782 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4783 | if test "x$LINE" != x ; then | |
4784 | eval "DEFAULT_$LINE" | |
4785 | else | |
4786 | no_cache=1 | |
4787 | fi | |
4788 | ||
4789 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4790 | |
e6cc62c6 | 4791 | fi; |
10f2d63a VZ |
4792 | |
4793 | eval "$ac_cv_use_file" | |
4794 | if test "$no_cache" != 1; then | |
4795 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4796 | fi | |
4797 | ||
4798 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4799 | echo "$as_me:$LINENO: result: yes" >&5 |
4800 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4801 | else |
e6cc62c6 VS |
4802 | echo "$as_me:$LINENO: result: no" >&5 |
4803 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4804 | fi |
e6cc62c6 | 4805 | |
10f2d63a | 4806 | |
5005acfe | 4807 | enablestring= |
e6cc62c6 VS |
4808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4809 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4810 | no_cache=0 |
1e6feb95 VZ |
4811 | # Check whether --enable-ffile or --disable-ffile was given. |
4812 | if test "${enable_ffile+set}" = set; then | |
4813 | enableval="$enable_ffile" | |
e6cc62c6 | 4814 | |
10f2d63a | 4815 | if test "$enableval" = yes; then |
1e6feb95 | 4816 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4817 | else |
1e6feb95 | 4818 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4819 | fi |
e6cc62c6 | 4820 | |
10f2d63a | 4821 | else |
e6cc62c6 | 4822 | |
1e6feb95 | 4823 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4824 | if test "x$LINE" != x ; then |
4825 | eval "DEFAULT_$LINE" | |
4826 | else | |
4827 | no_cache=1 | |
4828 | fi | |
4829 | ||
1e6feb95 | 4830 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4831 | |
e6cc62c6 | 4832 | fi; |
10f2d63a | 4833 | |
1e6feb95 | 4834 | eval "$ac_cv_use_ffile" |
10f2d63a | 4835 | if test "$no_cache" != 1; then |
1e6feb95 | 4836 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4837 | fi |
4838 | ||
1e6feb95 | 4839 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4840 | echo "$as_me:$LINENO: result: yes" >&5 |
4841 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4842 | else |
e6cc62c6 VS |
4843 | echo "$as_me:$LINENO: result: no" >&5 |
4844 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4845 | fi |
e6cc62c6 | 4846 | |
10f2d63a | 4847 | |
5005acfe | 4848 | enablestring= |
e6cc62c6 VS |
4849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4850 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4851 | no_cache=0 |
4852 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4853 | if test "${enable_textbuf+set}" = set; then | |
4854 | enableval="$enable_textbuf" | |
e6cc62c6 | 4855 | |
a3a584a7 VZ |
4856 | if test "$enableval" = yes; then |
4857 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4858 | else | |
4859 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4860 | fi | |
e6cc62c6 | 4861 | |
a3a584a7 | 4862 | else |
e6cc62c6 | 4863 | |
a3a584a7 VZ |
4864 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4865 | if test "x$LINE" != x ; then | |
4866 | eval "DEFAULT_$LINE" | |
4867 | else | |
4868 | no_cache=1 | |
4869 | fi | |
4870 | ||
4871 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4872 | |
e6cc62c6 | 4873 | fi; |
a3a584a7 VZ |
4874 | |
4875 | eval "$ac_cv_use_textbuf" | |
4876 | if test "$no_cache" != 1; then | |
4877 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4878 | fi | |
4879 | ||
4880 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4881 | echo "$as_me:$LINENO: result: yes" >&5 |
4882 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4883 | else |
e6cc62c6 VS |
4884 | echo "$as_me:$LINENO: result: no" >&5 |
4885 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4886 | fi |
e6cc62c6 | 4887 | |
a3a584a7 | 4888 | |
5005acfe | 4889 | enablestring= |
e6cc62c6 VS |
4890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4891 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4892 | no_cache=0 |
1e6feb95 VZ |
4893 | # Check whether --enable-textfile or --disable-textfile was given. |
4894 | if test "${enable_textfile+set}" = set; then | |
4895 | enableval="$enable_textfile" | |
e6cc62c6 | 4896 | |
10f2d63a | 4897 | if test "$enableval" = yes; then |
1e6feb95 | 4898 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4899 | else |
1e6feb95 | 4900 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4901 | fi |
e6cc62c6 | 4902 | |
10f2d63a | 4903 | else |
e6cc62c6 | 4904 | |
1e6feb95 | 4905 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4906 | if test "x$LINE" != x ; then |
4907 | eval "DEFAULT_$LINE" | |
4908 | else | |
4909 | no_cache=1 | |
4910 | fi | |
4911 | ||
1e6feb95 | 4912 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4913 | |
e6cc62c6 | 4914 | fi; |
10f2d63a | 4915 | |
1e6feb95 | 4916 | eval "$ac_cv_use_textfile" |
10f2d63a | 4917 | if test "$no_cache" != 1; then |
1e6feb95 | 4918 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4919 | fi |
4920 | ||
1e6feb95 | 4921 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4922 | echo "$as_me:$LINENO: result: yes" >&5 |
4923 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4924 | else |
e6cc62c6 VS |
4925 | echo "$as_me:$LINENO: result: no" >&5 |
4926 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4927 | fi |
e6cc62c6 | 4928 | |
10f2d63a | 4929 | |
5005acfe | 4930 | enablestring= |
e6cc62c6 VS |
4931 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4932 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4933 | no_cache=0 |
1e6feb95 VZ |
4934 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4935 | if test "${enable_fontmap+set}" = set; then | |
4936 | enableval="$enable_fontmap" | |
e6cc62c6 | 4937 | |
10f2d63a | 4938 | if test "$enableval" = yes; then |
1e6feb95 | 4939 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4940 | else |
1e6feb95 | 4941 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4942 | fi |
e6cc62c6 | 4943 | |
10f2d63a | 4944 | else |
e6cc62c6 | 4945 | |
1e6feb95 | 4946 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4947 | if test "x$LINE" != x ; then |
4948 | eval "DEFAULT_$LINE" | |
4949 | else | |
4950 | no_cache=1 | |
4951 | fi | |
4952 | ||
1e6feb95 | 4953 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4954 | |
e6cc62c6 | 4955 | fi; |
10f2d63a | 4956 | |
1e6feb95 | 4957 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4958 | if test "$no_cache" != 1; then |
1e6feb95 | 4959 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4960 | fi |
4961 | ||
1e6feb95 | 4962 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4963 | echo "$as_me:$LINENO: result: yes" >&5 |
4964 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4965 | else |
e6cc62c6 VS |
4966 | echo "$as_me:$LINENO: result: no" >&5 |
4967 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4968 | fi |
e6cc62c6 | 4969 | |
10f2d63a | 4970 | |
5005acfe | 4971 | enablestring= |
e6cc62c6 VS |
4972 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4973 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4974 | no_cache=0 |
1e6feb95 VZ |
4975 | # Check whether --enable-unicode or --disable-unicode was given. |
4976 | if test "${enable_unicode+set}" = set; then | |
4977 | enableval="$enable_unicode" | |
e6cc62c6 | 4978 | |
1e6feb95 VZ |
4979 | if test "$enableval" = yes; then |
4980 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4981 | else | |
4982 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4983 | fi | |
e6cc62c6 | 4984 | |
1e6feb95 | 4985 | else |
e6cc62c6 | 4986 | |
1e6feb95 VZ |
4987 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4988 | if test "x$LINE" != x ; then | |
4989 | eval "DEFAULT_$LINE" | |
4990 | else | |
4991 | no_cache=1 | |
4992 | fi | |
4993 | ||
4994 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4995 | |
e6cc62c6 | 4996 | fi; |
1e6feb95 VZ |
4997 | |
4998 | eval "$ac_cv_use_unicode" | |
4999 | if test "$no_cache" != 1; then | |
5000 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5001 | fi | |
5002 | ||
5003 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
5004 | echo "$as_me:$LINENO: result: yes" >&5 |
5005 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5006 | else |
e6cc62c6 VS |
5007 | echo "$as_me:$LINENO: result: no" >&5 |
5008 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5009 | fi |
e6cc62c6 | 5010 | |
1e6feb95 | 5011 | |
5005acfe | 5012 | enablestring= |
e6cc62c6 VS |
5013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5014 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5015 | no_cache=0 |
5016 | # Check whether --enable-mslu or --disable-mslu was given. | |
5017 | if test "${enable_mslu+set}" = set; then | |
5018 | enableval="$enable_mslu" | |
e6cc62c6 | 5019 | |
a72a4bfa VS |
5020 | if test "$enableval" = yes; then |
5021 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5022 | else | |
5023 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5024 | fi | |
e6cc62c6 | 5025 | |
a72a4bfa | 5026 | else |
e6cc62c6 | 5027 | |
a72a4bfa VS |
5028 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5029 | if test "x$LINE" != x ; then | |
5030 | eval "DEFAULT_$LINE" | |
5031 | else | |
5032 | no_cache=1 | |
5033 | fi | |
5034 | ||
5035 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5036 | |
e6cc62c6 | 5037 | fi; |
a72a4bfa VS |
5038 | |
5039 | eval "$ac_cv_use_mslu" | |
5040 | if test "$no_cache" != 1; then | |
5041 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5042 | fi | |
5043 | ||
5044 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5045 | echo "$as_me:$LINENO: result: yes" >&5 |
5046 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5047 | else |
e6cc62c6 VS |
5048 | echo "$as_me:$LINENO: result: no" >&5 |
5049 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5050 | fi |
e6cc62c6 | 5051 | |
a72a4bfa | 5052 | |
5005acfe | 5053 | enablestring= |
e6cc62c6 VS |
5054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5055 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5056 | no_cache=0 |
5057 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5058 | if test "${enable_wxprintfv+set}" = set; then | |
5059 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5060 | |
1e6feb95 | 5061 | if test "$enableval" = yes; then |
10f2d63a VZ |
5062 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5063 | else | |
5064 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5065 | fi | |
e6cc62c6 | 5066 | |
10f2d63a | 5067 | else |
e6cc62c6 | 5068 | |
10f2d63a VZ |
5069 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5070 | if test "x$LINE" != x ; then | |
5071 | eval "DEFAULT_$LINE" | |
5072 | else | |
5073 | no_cache=1 | |
5074 | fi | |
5075 | ||
5076 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5077 | |
e6cc62c6 | 5078 | fi; |
10f2d63a VZ |
5079 | |
5080 | eval "$ac_cv_use_wxprintfv" | |
5081 | if test "$no_cache" != 1; then | |
5082 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5083 | fi | |
5084 | ||
5085 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5086 | echo "$as_me:$LINENO: result: yes" >&5 |
5087 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5088 | else |
e6cc62c6 VS |
5089 | echo "$as_me:$LINENO: result: no" >&5 |
5090 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5091 | fi |
e6cc62c6 | 5092 | |
10f2d63a | 5093 | |
5005acfe | 5094 | enablestring= |
e6cc62c6 VS |
5095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5096 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5097 | no_cache=0 |
5098 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5099 | if test "${enable_std_iostreams+set}" = set; then | |
5100 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5101 | |
10f2d63a VZ |
5102 | if test "$enableval" = yes; then |
5103 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5104 | else | |
5105 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5106 | fi | |
e6cc62c6 | 5107 | |
10f2d63a | 5108 | else |
e6cc62c6 | 5109 | |
10f2d63a VZ |
5110 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | else | |
5114 | no_cache=1 | |
5115 | fi | |
5116 | ||
5117 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5118 | |
e6cc62c6 | 5119 | fi; |
10f2d63a VZ |
5120 | |
5121 | eval "$ac_cv_use_std_iostreams" | |
5122 | if test "$no_cache" != 1; then | |
5123 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5124 | fi | |
5125 | ||
5126 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5127 | echo "$as_me:$LINENO: result: yes" >&5 |
5128 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5129 | else |
e6cc62c6 VS |
5130 | echo "$as_me:$LINENO: result: no" >&5 |
5131 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5132 | fi |
e6cc62c6 | 5133 | |
10f2d63a | 5134 | |
5005acfe | 5135 | enablestring= |
e6cc62c6 VS |
5136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5137 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5138 | no_cache=0 |
5139 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5140 | if test "${enable_filesystem+set}" = set; then | |
5141 | enableval="$enable_filesystem" | |
e6cc62c6 | 5142 | |
24528b0c VS |
5143 | if test "$enableval" = yes; then |
5144 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5145 | else | |
5146 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5147 | fi | |
e6cc62c6 | 5148 | |
24528b0c | 5149 | else |
e6cc62c6 | 5150 | |
24528b0c VS |
5151 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5152 | if test "x$LINE" != x ; then | |
5153 | eval "DEFAULT_$LINE" | |
5154 | else | |
5155 | no_cache=1 | |
5156 | fi | |
5157 | ||
5158 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5159 | |
e6cc62c6 | 5160 | fi; |
24528b0c VS |
5161 | |
5162 | eval "$ac_cv_use_filesystem" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5168 | echo "$as_me:$LINENO: result: yes" >&5 |
5169 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5170 | else |
e6cc62c6 VS |
5171 | echo "$as_me:$LINENO: result: no" >&5 |
5172 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5173 | fi |
e6cc62c6 | 5174 | |
24528b0c | 5175 | |
5005acfe | 5176 | enablestring= |
e6cc62c6 VS |
5177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5178 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5179 | no_cache=0 |
5180 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5181 | if test "${enable_fs_inet+set}" = set; then | |
5182 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5183 | |
10f2d63a VZ |
5184 | if test "$enableval" = yes; then |
5185 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5186 | else | |
5187 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5188 | fi | |
e6cc62c6 | 5189 | |
10f2d63a | 5190 | else |
e6cc62c6 | 5191 | |
10f2d63a VZ |
5192 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5193 | if test "x$LINE" != x ; then | |
5194 | eval "DEFAULT_$LINE" | |
5195 | else | |
5196 | no_cache=1 | |
5197 | fi | |
5198 | ||
5199 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5200 | |
e6cc62c6 | 5201 | fi; |
10f2d63a VZ |
5202 | |
5203 | eval "$ac_cv_use_fs_inet" | |
5204 | if test "$no_cache" != 1; then | |
5205 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5206 | fi | |
5207 | ||
5208 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5209 | echo "$as_me:$LINENO: result: yes" >&5 |
5210 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5211 | else |
e6cc62c6 VS |
5212 | echo "$as_me:$LINENO: result: no" >&5 |
5213 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5214 | fi |
e6cc62c6 | 5215 | |
10f2d63a | 5216 | |
5005acfe | 5217 | enablestring= |
e6cc62c6 VS |
5218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5219 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5220 | no_cache=0 |
5221 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5222 | if test "${enable_fs_zip+set}" = set; then | |
5223 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5224 | |
10f2d63a VZ |
5225 | if test "$enableval" = yes; then |
5226 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5227 | else | |
5228 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5229 | fi | |
e6cc62c6 | 5230 | |
10f2d63a | 5231 | else |
e6cc62c6 | 5232 | |
10f2d63a VZ |
5233 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5234 | if test "x$LINE" != x ; then | |
5235 | eval "DEFAULT_$LINE" | |
5236 | else | |
5237 | no_cache=1 | |
5238 | fi | |
5239 | ||
5240 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5241 | |
e6cc62c6 | 5242 | fi; |
10f2d63a VZ |
5243 | |
5244 | eval "$ac_cv_use_fs_zip" | |
5245 | if test "$no_cache" != 1; then | |
5246 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5247 | fi | |
5248 | ||
5249 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5250 | echo "$as_me:$LINENO: result: yes" >&5 |
5251 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5252 | else |
e6cc62c6 VS |
5253 | echo "$as_me:$LINENO: result: no" >&5 |
5254 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5255 | fi |
e6cc62c6 | 5256 | |
10f2d63a | 5257 | |
5005acfe | 5258 | enablestring= |
e6cc62c6 VS |
5259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5260 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5261 | no_cache=0 |
5262 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5263 | if test "${enable_zipstream+set}" = set; then | |
5264 | enableval="$enable_zipstream" | |
e6cc62c6 | 5265 | |
10f2d63a VZ |
5266 | if test "$enableval" = yes; then |
5267 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5268 | else | |
5269 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5270 | fi | |
e6cc62c6 | 5271 | |
10f2d63a | 5272 | else |
e6cc62c6 | 5273 | |
10f2d63a VZ |
5274 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5275 | if test "x$LINE" != x ; then | |
5276 | eval "DEFAULT_$LINE" | |
5277 | else | |
5278 | no_cache=1 | |
5279 | fi | |
5280 | ||
5281 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5282 | |
e6cc62c6 | 5283 | fi; |
10f2d63a VZ |
5284 | |
5285 | eval "$ac_cv_use_zipstream" | |
5286 | if test "$no_cache" != 1; then | |
5287 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5288 | fi | |
5289 | ||
5290 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5291 | echo "$as_me:$LINENO: result: yes" >&5 |
5292 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5293 | else |
e6cc62c6 VS |
5294 | echo "$as_me:$LINENO: result: no" >&5 |
5295 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5296 | fi |
e6cc62c6 | 5297 | |
8284b0c5 | 5298 | |
52127426 | 5299 | |
5005acfe | 5300 | enablestring= |
e6cc62c6 VS |
5301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5302 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5303 | no_cache=0 |
5304 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5305 | if test "${enable_catch_segvs+set}" = set; then | |
5306 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5307 | |
eb4efbdc VZ |
5308 | if test "$enableval" = yes; then |
5309 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5310 | else | |
5311 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5312 | fi | |
e6cc62c6 | 5313 | |
eb4efbdc | 5314 | else |
e6cc62c6 | 5315 | |
eb4efbdc VZ |
5316 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5317 | if test "x$LINE" != x ; then | |
5318 | eval "DEFAULT_$LINE" | |
5319 | else | |
5320 | no_cache=1 | |
5321 | fi | |
5322 | ||
5323 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5324 | |
e6cc62c6 | 5325 | fi; |
eb4efbdc VZ |
5326 | |
5327 | eval "$ac_cv_use_catch_segvs" | |
5328 | if test "$no_cache" != 1; then | |
5329 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5330 | fi | |
5331 | ||
5332 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5333 | echo "$as_me:$LINENO: result: yes" >&5 |
5334 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5335 | else |
e6cc62c6 VS |
5336 | echo "$as_me:$LINENO: result: no" >&5 |
5337 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5338 | fi |
e6cc62c6 | 5339 | |
eb4efbdc | 5340 | |
5005acfe | 5341 | enablestring= |
e6cc62c6 VS |
5342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5343 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5344 | no_cache=0 |
5345 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5346 | if test "${enable_snglinst+set}" = set; then | |
5347 | enableval="$enable_snglinst" | |
e6cc62c6 | 5348 | |
4f3c5f06 VZ |
5349 | if test "$enableval" = yes; then |
5350 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5351 | else | |
5352 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5353 | fi | |
e6cc62c6 | 5354 | |
4f3c5f06 | 5355 | else |
e6cc62c6 | 5356 | |
4f3c5f06 VZ |
5357 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5358 | if test "x$LINE" != x ; then | |
5359 | eval "DEFAULT_$LINE" | |
5360 | else | |
5361 | no_cache=1 | |
5362 | fi | |
5363 | ||
5364 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5365 | |
e6cc62c6 | 5366 | fi; |
4f3c5f06 VZ |
5367 | |
5368 | eval "$ac_cv_use_snglinst" | |
5369 | if test "$no_cache" != 1; then | |
5370 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5371 | fi | |
5372 | ||
5373 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5374 | echo "$as_me:$LINENO: result: yes" >&5 |
5375 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5376 | else |
e6cc62c6 VS |
5377 | echo "$as_me:$LINENO: result: no" >&5 |
5378 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5379 | fi |
e6cc62c6 | 5380 | |
52127426 | 5381 | |
8284b0c5 | 5382 | |
5005acfe | 5383 | enablestring= |
e6cc62c6 VS |
5384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5385 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5386 | no_cache=0 |
5387 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5388 | if test "${enable_mimetype+set}" = set; then | |
5389 | enableval="$enable_mimetype" | |
e6cc62c6 | 5390 | |
1e6feb95 VZ |
5391 | if test "$enableval" = yes; then |
5392 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5393 | else | |
5394 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5395 | fi | |
e6cc62c6 | 5396 | |
1e6feb95 | 5397 | else |
e6cc62c6 | 5398 | |
1e6feb95 VZ |
5399 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5400 | if test "x$LINE" != x ; then | |
5401 | eval "DEFAULT_$LINE" | |
5402 | else | |
5403 | no_cache=1 | |
5404 | fi | |
5405 | ||
5406 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5407 | |
e6cc62c6 | 5408 | fi; |
1e6feb95 VZ |
5409 | |
5410 | eval "$ac_cv_use_mimetype" | |
5411 | if test "$no_cache" != 1; then | |
5412 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5413 | fi | |
5414 | ||
5415 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5416 | echo "$as_me:$LINENO: result: yes" >&5 |
5417 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5418 | else |
e6cc62c6 VS |
5419 | echo "$as_me:$LINENO: result: no" >&5 |
5420 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5421 | fi |
e6cc62c6 | 5422 | |
1e6feb95 | 5423 | |
5005acfe | 5424 | enablestring= |
e6cc62c6 VS |
5425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5426 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5427 | no_cache=0 |
5428 | # Check whether --enable-system_options or --disable-system_options was given. | |
5429 | if test "${enable_system_options+set}" = set; then | |
5430 | enableval="$enable_system_options" | |
e6cc62c6 | 5431 | |
3e44f09d VZ |
5432 | if test "$enableval" = yes; then |
5433 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5434 | else | |
5435 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5436 | fi | |
e6cc62c6 | 5437 | |
3e44f09d | 5438 | else |
e6cc62c6 | 5439 | |
3e44f09d VZ |
5440 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5441 | if test "x$LINE" != x ; then | |
5442 | eval "DEFAULT_$LINE" | |
5443 | else | |
5444 | no_cache=1 | |
5445 | fi | |
5446 | ||
5447 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5448 | |
e6cc62c6 | 5449 | fi; |
3e44f09d VZ |
5450 | |
5451 | eval "$ac_cv_use_system_options" | |
5452 | if test "$no_cache" != 1; then | |
5453 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5454 | fi | |
5455 | ||
5456 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5457 | echo "$as_me:$LINENO: result: yes" >&5 |
5458 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5459 | else |
e6cc62c6 VS |
5460 | echo "$as_me:$LINENO: result: no" >&5 |
5461 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5462 | fi |
e6cc62c6 | 5463 | |
8284b0c5 | 5464 | |
52127426 | 5465 | |
5005acfe | 5466 | enablestring= |
e6cc62c6 VS |
5467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5468 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5469 | no_cache=0 |
5470 | # Check whether --enable-url or --disable-url was given. | |
5471 | if test "${enable_url+set}" = set; then | |
5472 | enableval="$enable_url" | |
e6cc62c6 | 5473 | |
4cdb0ab0 VS |
5474 | if test "$enableval" = yes; then |
5475 | ac_cv_use_url='wxUSE_URL=yes' | |
5476 | else | |
5477 | ac_cv_use_url='wxUSE_URL=no' | |
5478 | fi | |
e6cc62c6 | 5479 | |
4cdb0ab0 | 5480 | else |
e6cc62c6 | 5481 | |
4cdb0ab0 VS |
5482 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5483 | if test "x$LINE" != x ; then | |
5484 | eval "DEFAULT_$LINE" | |
5485 | else | |
5486 | no_cache=1 | |
5487 | fi | |
5488 | ||
5489 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5490 | |
e6cc62c6 | 5491 | fi; |
4cdb0ab0 VS |
5492 | |
5493 | eval "$ac_cv_use_url" | |
5494 | if test "$no_cache" != 1; then | |
5495 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5496 | fi | |
5497 | ||
5498 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5499 | echo "$as_me:$LINENO: result: yes" >&5 |
5500 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5501 | else |
e6cc62c6 VS |
5502 | echo "$as_me:$LINENO: result: no" >&5 |
5503 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5504 | fi |
e6cc62c6 | 5505 | |
4cdb0ab0 | 5506 | |
5005acfe | 5507 | enablestring= |
e6cc62c6 VS |
5508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5509 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5510 | no_cache=0 |
5511 | # Check whether --enable-protocol or --disable-protocol was given. | |
5512 | if test "${enable_protocol+set}" = set; then | |
5513 | enableval="$enable_protocol" | |
e6cc62c6 | 5514 | |
4cdb0ab0 VS |
5515 | if test "$enableval" = yes; then |
5516 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5517 | else | |
5518 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5519 | fi | |
e6cc62c6 | 5520 | |
4cdb0ab0 | 5521 | else |
e6cc62c6 | 5522 | |
4cdb0ab0 VS |
5523 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5524 | if test "x$LINE" != x ; then | |
5525 | eval "DEFAULT_$LINE" | |
5526 | else | |
5527 | no_cache=1 | |
5528 | fi | |
5529 | ||
5530 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5531 | |
e6cc62c6 | 5532 | fi; |
4cdb0ab0 VS |
5533 | |
5534 | eval "$ac_cv_use_protocol" | |
5535 | if test "$no_cache" != 1; then | |
5536 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5537 | fi | |
5538 | ||
5539 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5540 | echo "$as_me:$LINENO: result: yes" >&5 |
5541 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5542 | else |
e6cc62c6 VS |
5543 | echo "$as_me:$LINENO: result: no" >&5 |
5544 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5545 | fi |
e6cc62c6 | 5546 | |
4cdb0ab0 | 5547 | |
5005acfe | 5548 | enablestring= |
e6cc62c6 VS |
5549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5550 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5551 | no_cache=0 |
5552 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5553 | if test "${enable_protocol_http+set}" = set; then | |
5554 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5555 | |
4cdb0ab0 VS |
5556 | if test "$enableval" = yes; then |
5557 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5558 | else | |
5559 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5560 | fi | |
e6cc62c6 | 5561 | |
4cdb0ab0 | 5562 | else |
e6cc62c6 | 5563 | |
4cdb0ab0 VS |
5564 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5565 | if test "x$LINE" != x ; then | |
5566 | eval "DEFAULT_$LINE" | |
5567 | else | |
5568 | no_cache=1 | |
5569 | fi | |
5570 | ||
5571 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5572 | |
e6cc62c6 | 5573 | fi; |
4cdb0ab0 VS |
5574 | |
5575 | eval "$ac_cv_use_protocol_http" | |
5576 | if test "$no_cache" != 1; then | |
5577 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5578 | fi | |
5579 | ||
5580 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5581 | echo "$as_me:$LINENO: result: yes" >&5 |
5582 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5583 | else |
e6cc62c6 VS |
5584 | echo "$as_me:$LINENO: result: no" >&5 |
5585 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5586 | fi |
e6cc62c6 | 5587 | |
4cdb0ab0 | 5588 | |
5005acfe | 5589 | enablestring= |
e6cc62c6 VS |
5590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5591 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5592 | no_cache=0 |
5593 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5594 | if test "${enable_protocol_ftp+set}" = set; then | |
5595 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5596 | |
4cdb0ab0 VS |
5597 | if test "$enableval" = yes; then |
5598 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5599 | else | |
5600 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5601 | fi | |
e6cc62c6 | 5602 | |
4cdb0ab0 | 5603 | else |
e6cc62c6 | 5604 | |
4cdb0ab0 VS |
5605 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5606 | if test "x$LINE" != x ; then | |
5607 | eval "DEFAULT_$LINE" | |
5608 | else | |
5609 | no_cache=1 | |
5610 | fi | |
5611 | ||
5612 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5613 | |
e6cc62c6 | 5614 | fi; |
4cdb0ab0 VS |
5615 | |
5616 | eval "$ac_cv_use_protocol_ftp" | |
5617 | if test "$no_cache" != 1; then | |
5618 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5619 | fi | |
5620 | ||
5621 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5622 | echo "$as_me:$LINENO: result: yes" >&5 |
5623 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5624 | else |
e6cc62c6 VS |
5625 | echo "$as_me:$LINENO: result: no" >&5 |
5626 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5627 | fi |
e6cc62c6 | 5628 | |
4cdb0ab0 | 5629 | |
5005acfe | 5630 | enablestring= |
e6cc62c6 VS |
5631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5632 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5633 | no_cache=0 |
5634 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5635 | if test "${enable_protocol_file+set}" = set; then | |
5636 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5637 | |
4cdb0ab0 VS |
5638 | if test "$enableval" = yes; then |
5639 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5640 | else | |
5641 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5642 | fi | |
e6cc62c6 | 5643 | |
4cdb0ab0 | 5644 | else |
e6cc62c6 | 5645 | |
4cdb0ab0 VS |
5646 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5647 | if test "x$LINE" != x ; then | |
5648 | eval "DEFAULT_$LINE" | |
5649 | else | |
5650 | no_cache=1 | |
5651 | fi | |
5652 | ||
5653 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5654 | |
e6cc62c6 | 5655 | fi; |
4cdb0ab0 VS |
5656 | |
5657 | eval "$ac_cv_use_protocol_file" | |
5658 | if test "$no_cache" != 1; then | |
5659 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5660 | fi | |
5661 | ||
5662 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5663 | echo "$as_me:$LINENO: result: yes" >&5 |
5664 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5665 | else |
e6cc62c6 VS |
5666 | echo "$as_me:$LINENO: result: no" >&5 |
5667 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5668 | fi |
e6cc62c6 | 5669 | |
52127426 | 5670 | |
8284b0c5 MB |
5671 | |
5672 | ||
5673 | ||
5005acfe | 5674 | enablestring= |
e6cc62c6 VS |
5675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5676 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5677 | no_cache=0 |
5678 | # Check whether --enable-threads or --disable-threads was given. | |
5679 | if test "${enable_threads+set}" = set; then | |
5680 | enableval="$enable_threads" | |
e6cc62c6 | 5681 | |
10f2d63a VZ |
5682 | if test "$enableval" = yes; then |
5683 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5684 | else | |
5685 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5686 | fi | |
e6cc62c6 | 5687 | |
10f2d63a | 5688 | else |
e6cc62c6 | 5689 | |
10f2d63a VZ |
5690 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5691 | if test "x$LINE" != x ; then | |
5692 | eval "DEFAULT_$LINE" | |
5693 | else | |
5694 | no_cache=1 | |
5695 | fi | |
5696 | ||
5697 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5698 | |
e6cc62c6 | 5699 | fi; |
10f2d63a VZ |
5700 | |
5701 | eval "$ac_cv_use_threads" | |
5702 | if test "$no_cache" != 1; then | |
5703 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5704 | fi | |
5705 | ||
5706 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5707 | echo "$as_me:$LINENO: result: yes" >&5 |
5708 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5709 | else |
e6cc62c6 VS |
5710 | echo "$as_me:$LINENO: result: no" >&5 |
5711 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5712 | fi |
e6cc62c6 | 5713 | |
10f2d63a | 5714 | |
b12915c1 VZ |
5715 | if test "$wxUSE_GUI" = "yes"; then |
5716 | ||
8284b0c5 MB |
5717 | |
5718 | ||
5005acfe | 5719 | enablestring= |
e6cc62c6 VS |
5720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5721 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5722 | no_cache=0 |
5723 | # Check whether --enable-docview or --disable-docview was given. | |
5724 | if test "${enable_docview+set}" = set; then | |
5725 | enableval="$enable_docview" | |
e6cc62c6 | 5726 | |
10f2d63a VZ |
5727 | if test "$enableval" = yes; then |
5728 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5729 | else | |
5730 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5731 | fi | |
e6cc62c6 | 5732 | |
10f2d63a | 5733 | else |
e6cc62c6 | 5734 | |
10f2d63a VZ |
5735 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5736 | if test "x$LINE" != x ; then | |
5737 | eval "DEFAULT_$LINE" | |
5738 | else | |
5739 | no_cache=1 | |
5740 | fi | |
5741 | ||
5742 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5743 | |
e6cc62c6 | 5744 | fi; |
10f2d63a VZ |
5745 | |
5746 | eval "$ac_cv_use_docview" | |
5747 | if test "$no_cache" != 1; then | |
5748 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5749 | fi | |
5750 | ||
5751 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5752 | echo "$as_me:$LINENO: result: yes" >&5 |
5753 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5754 | else |
e6cc62c6 VS |
5755 | echo "$as_me:$LINENO: result: no" >&5 |
5756 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5757 | fi |
e6cc62c6 | 5758 | |
10f2d63a | 5759 | |
5005acfe | 5760 | enablestring= |
e6cc62c6 VS |
5761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5762 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5763 | no_cache=0 |
5764 | # Check whether --enable-help or --disable-help was given. | |
5765 | if test "${enable_help+set}" = set; then | |
5766 | enableval="$enable_help" | |
e6cc62c6 | 5767 | |
10f2d63a VZ |
5768 | if test "$enableval" = yes; then |
5769 | ac_cv_use_help='wxUSE_HELP=yes' | |
5770 | else | |
5771 | ac_cv_use_help='wxUSE_HELP=no' | |
5772 | fi | |
e6cc62c6 | 5773 | |
10f2d63a | 5774 | else |
e6cc62c6 | 5775 | |
10f2d63a VZ |
5776 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5777 | if test "x$LINE" != x ; then | |
5778 | eval "DEFAULT_$LINE" | |
5779 | else | |
5780 | no_cache=1 | |
5781 | fi | |
5782 | ||
5783 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5784 | |
e6cc62c6 | 5785 | fi; |
10f2d63a VZ |
5786 | |
5787 | eval "$ac_cv_use_help" | |
5788 | if test "$no_cache" != 1; then | |
5789 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5790 | fi | |
5791 | ||
5792 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5793 | echo "$as_me:$LINENO: result: yes" >&5 |
5794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5795 | else |
e6cc62c6 VS |
5796 | echo "$as_me:$LINENO: result: no" >&5 |
5797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5798 | fi |
e6cc62c6 | 5799 | |
10f2d63a | 5800 | |
5005acfe | 5801 | enablestring= |
e6cc62c6 VS |
5802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5803 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5804 | no_cache=0 |
5805 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5806 | if test "${enable_mshtmlhelp+set}" = set; then | |
5807 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5808 | |
29fd3c0c VS |
5809 | if test "$enableval" = yes; then |
5810 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5811 | else | |
5812 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5813 | fi | |
e6cc62c6 | 5814 | |
29fd3c0c | 5815 | else |
e6cc62c6 | 5816 | |
29fd3c0c VS |
5817 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5818 | if test "x$LINE" != x ; then | |
5819 | eval "DEFAULT_$LINE" | |
5820 | else | |
5821 | no_cache=1 | |
5822 | fi | |
5823 | ||
5824 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5825 | |
e6cc62c6 | 5826 | fi; |
29fd3c0c VS |
5827 | |
5828 | eval "$ac_cv_use_mshtmlhelp" | |
5829 | if test "$no_cache" != 1; then | |
5830 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5831 | fi | |
5832 | ||
5833 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5834 | echo "$as_me:$LINENO: result: yes" >&5 |
5835 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5836 | else |
e6cc62c6 VS |
5837 | echo "$as_me:$LINENO: result: no" >&5 |
5838 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5839 | fi |
e6cc62c6 | 5840 | |
29fd3c0c | 5841 | |
5005acfe | 5842 | enablestring= |
e6cc62c6 VS |
5843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5844 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5845 | no_cache=0 |
5846 | # Check whether --enable-html or --disable-html was given. | |
5847 | if test "${enable_html+set}" = set; then | |
5848 | enableval="$enable_html" | |
e6cc62c6 | 5849 | |
3379ed37 VZ |
5850 | if test "$enableval" = yes; then |
5851 | ac_cv_use_html='wxUSE_HTML=yes' | |
5852 | else | |
5853 | ac_cv_use_html='wxUSE_HTML=no' | |
5854 | fi | |
e6cc62c6 | 5855 | |
3379ed37 | 5856 | else |
e6cc62c6 | 5857 | |
3379ed37 VZ |
5858 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5859 | if test "x$LINE" != x ; then | |
5860 | eval "DEFAULT_$LINE" | |
5861 | else | |
5862 | no_cache=1 | |
5863 | fi | |
5864 | ||
5865 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5866 | |
e6cc62c6 | 5867 | fi; |
3379ed37 VZ |
5868 | |
5869 | eval "$ac_cv_use_html" | |
5870 | if test "$no_cache" != 1; then | |
5871 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5872 | fi | |
5873 | ||
5874 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5875 | echo "$as_me:$LINENO: result: yes" >&5 |
5876 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5877 | else |
e6cc62c6 VS |
5878 | echo "$as_me:$LINENO: result: no" >&5 |
5879 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5880 | fi |
e6cc62c6 | 5881 | |
3379ed37 | 5882 | |
5005acfe | 5883 | enablestring= |
e6cc62c6 VS |
5884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5885 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5886 | no_cache=0 |
5887 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5888 | if test "${enable_htmlhelp+set}" = set; then | |
5889 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5890 | |
3379ed37 VZ |
5891 | if test "$enableval" = yes; then |
5892 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5893 | else | |
5894 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5895 | fi | |
e6cc62c6 | 5896 | |
3379ed37 | 5897 | else |
e6cc62c6 | 5898 | |
3379ed37 VZ |
5899 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5900 | if test "x$LINE" != x ; then | |
5901 | eval "DEFAULT_$LINE" | |
5902 | else | |
5903 | no_cache=1 | |
5904 | fi | |
5905 | ||
5906 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5907 | |
e6cc62c6 | 5908 | fi; |
3379ed37 VZ |
5909 | |
5910 | eval "$ac_cv_use_htmlhelp" | |
5911 | if test "$no_cache" != 1; then | |
5912 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5913 | fi | |
5914 | ||
5915 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5916 | echo "$as_me:$LINENO: result: yes" >&5 |
5917 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5918 | else |
e6cc62c6 VS |
5919 | echo "$as_me:$LINENO: result: no" >&5 |
5920 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5921 | fi |
e6cc62c6 | 5922 | |
3379ed37 | 5923 | |
5005acfe | 5924 | enablestring= |
e6cc62c6 VS |
5925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5926 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5927 | no_cache=0 |
5928 | # Check whether --enable-constraints or --disable-constraints was given. | |
5929 | if test "${enable_constraints+set}" = set; then | |
5930 | enableval="$enable_constraints" | |
e6cc62c6 | 5931 | |
10f2d63a VZ |
5932 | if test "$enableval" = yes; then |
5933 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5934 | else | |
5935 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5936 | fi | |
e6cc62c6 | 5937 | |
10f2d63a | 5938 | else |
e6cc62c6 | 5939 | |
10f2d63a VZ |
5940 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5941 | if test "x$LINE" != x ; then | |
5942 | eval "DEFAULT_$LINE" | |
5943 | else | |
5944 | no_cache=1 | |
5945 | fi | |
5946 | ||
5947 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5948 | |
e6cc62c6 | 5949 | fi; |
10f2d63a VZ |
5950 | |
5951 | eval "$ac_cv_use_constraints" | |
5952 | if test "$no_cache" != 1; then | |
5953 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5954 | fi | |
5955 | ||
5956 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5957 | echo "$as_me:$LINENO: result: yes" >&5 |
5958 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5959 | else |
e6cc62c6 VS |
5960 | echo "$as_me:$LINENO: result: no" >&5 |
5961 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5962 | fi |
e6cc62c6 | 5963 | |
10f2d63a | 5964 | |
5005acfe | 5965 | enablestring= |
e6cc62c6 VS |
5966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5967 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5968 | no_cache=0 |
5969 | # Check whether --enable-printarch or --disable-printarch was given. | |
5970 | if test "${enable_printarch+set}" = set; then | |
5971 | enableval="$enable_printarch" | |
e6cc62c6 | 5972 | |
10f2d63a VZ |
5973 | if test "$enableval" = yes; then |
5974 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5975 | else | |
5976 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5977 | fi | |
e6cc62c6 | 5978 | |
10f2d63a | 5979 | else |
e6cc62c6 | 5980 | |
10f2d63a VZ |
5981 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5982 | if test "x$LINE" != x ; then | |
5983 | eval "DEFAULT_$LINE" | |
5984 | else | |
5985 | no_cache=1 | |
5986 | fi | |
5987 | ||
5988 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5989 | |
e6cc62c6 | 5990 | fi; |
10f2d63a VZ |
5991 | |
5992 | eval "$ac_cv_use_printarch" | |
5993 | if test "$no_cache" != 1; then | |
5994 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5995 | fi | |
5996 | ||
5997 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5998 | echo "$as_me:$LINENO: result: yes" >&5 |
5999 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6000 | else |
e6cc62c6 VS |
6001 | echo "$as_me:$LINENO: result: no" >&5 |
6002 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6003 | fi |
e6cc62c6 | 6004 | |
10f2d63a | 6005 | |
5005acfe | 6006 | enablestring= |
e6cc62c6 VS |
6007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6008 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6009 | no_cache=0 |
6010 | # Check whether --enable-mdi or --disable-mdi was given. | |
6011 | if test "${enable_mdi+set}" = set; then | |
6012 | enableval="$enable_mdi" | |
e6cc62c6 | 6013 | |
10f2d63a VZ |
6014 | if test "$enableval" = yes; then |
6015 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6016 | else | |
6017 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6018 | fi | |
e6cc62c6 | 6019 | |
10f2d63a | 6020 | else |
e6cc62c6 | 6021 | |
10f2d63a VZ |
6022 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6023 | if test "x$LINE" != x ; then | |
6024 | eval "DEFAULT_$LINE" | |
6025 | else | |
6026 | no_cache=1 | |
6027 | fi | |
6028 | ||
6029 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6030 | |
e6cc62c6 | 6031 | fi; |
10f2d63a VZ |
6032 | |
6033 | eval "$ac_cv_use_mdi" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6039 | echo "$as_me:$LINENO: result: yes" >&5 |
6040 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6041 | else |
e6cc62c6 VS |
6042 | echo "$as_me:$LINENO: result: no" >&5 |
6043 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6044 | fi |
e6cc62c6 | 6045 | |
698dcdb6 | 6046 | |
5005acfe | 6047 | enablestring= |
e6cc62c6 VS |
6048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6049 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6050 | no_cache=0 |
6051 | # Check whether --enable-loggui or --disable-loggui was given. | |
6052 | if test "${enable_loggui+set}" = set; then | |
6053 | enableval="$enable_loggui" | |
e6cc62c6 | 6054 | |
1e6feb95 VZ |
6055 | if test "$enableval" = yes; then |
6056 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6057 | else | |
6058 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6059 | fi | |
e6cc62c6 | 6060 | |
1e6feb95 | 6061 | else |
e6cc62c6 | 6062 | |
1e6feb95 VZ |
6063 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6064 | if test "x$LINE" != x ; then | |
6065 | eval "DEFAULT_$LINE" | |
6066 | else | |
6067 | no_cache=1 | |
6068 | fi | |
6069 | ||
6070 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6071 | |
e6cc62c6 | 6072 | fi; |
1e6feb95 VZ |
6073 | |
6074 | eval "$ac_cv_use_loggui" | |
6075 | if test "$no_cache" != 1; then | |
6076 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6077 | fi | |
6078 | ||
6079 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6080 | echo "$as_me:$LINENO: result: yes" >&5 |
6081 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6082 | else |
e6cc62c6 VS |
6083 | echo "$as_me:$LINENO: result: no" >&5 |
6084 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6085 | fi |
e6cc62c6 | 6086 | |
1e6feb95 | 6087 | |
5005acfe | 6088 | enablestring= |
e6cc62c6 VS |
6089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6090 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6091 | no_cache=0 |
6092 | # Check whether --enable-logwin or --disable-logwin was given. | |
6093 | if test "${enable_logwin+set}" = set; then | |
6094 | enableval="$enable_logwin" | |
e6cc62c6 | 6095 | |
1e6feb95 VZ |
6096 | if test "$enableval" = yes; then |
6097 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6098 | else | |
6099 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6100 | fi | |
e6cc62c6 | 6101 | |
1e6feb95 | 6102 | else |
e6cc62c6 | 6103 | |
1e6feb95 VZ |
6104 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6105 | if test "x$LINE" != x ; then | |
6106 | eval "DEFAULT_$LINE" | |
6107 | else | |
6108 | no_cache=1 | |
6109 | fi | |
6110 | ||
6111 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6112 | |
e6cc62c6 | 6113 | fi; |
1e6feb95 VZ |
6114 | |
6115 | eval "$ac_cv_use_logwin" | |
6116 | if test "$no_cache" != 1; then | |
6117 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6118 | fi | |
6119 | ||
6120 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6121 | echo "$as_me:$LINENO: result: yes" >&5 |
6122 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6123 | else |
e6cc62c6 VS |
6124 | echo "$as_me:$LINENO: result: no" >&5 |
6125 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6126 | fi |
e6cc62c6 | 6127 | |
1e6feb95 | 6128 | |
5005acfe | 6129 | enablestring= |
e6cc62c6 VS |
6130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6131 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6132 | no_cache=0 |
6133 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6134 | if test "${enable_logdialog+set}" = set; then | |
6135 | enableval="$enable_logdialog" | |
e6cc62c6 | 6136 | |
69d27ff7 MB |
6137 | if test "$enableval" = yes; then |
6138 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6139 | else | |
6140 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6141 | fi | |
e6cc62c6 | 6142 | |
69d27ff7 | 6143 | else |
e6cc62c6 | 6144 | |
69d27ff7 MB |
6145 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6146 | if test "x$LINE" != x ; then | |
6147 | eval "DEFAULT_$LINE" | |
6148 | else | |
6149 | no_cache=1 | |
6150 | fi | |
6151 | ||
6152 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6153 | |
e6cc62c6 | 6154 | fi; |
69d27ff7 MB |
6155 | |
6156 | eval "$ac_cv_use_logdialog" | |
6157 | if test "$no_cache" != 1; then | |
6158 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6159 | fi | |
6160 | ||
6161 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6162 | echo "$as_me:$LINENO: result: yes" >&5 |
6163 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6164 | else |
e6cc62c6 VS |
6165 | echo "$as_me:$LINENO: result: no" >&5 |
6166 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6167 | fi |
e6cc62c6 | 6168 | |
8284b0c5 | 6169 | |
52127426 | 6170 | |
5005acfe | 6171 | enablestring= |
e6cc62c6 VS |
6172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6173 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6174 | no_cache=0 |
6175 | # Check whether --enable-postscript or --disable-postscript was given. | |
6176 | if test "${enable_postscript+set}" = set; then | |
6177 | enableval="$enable_postscript" | |
e6cc62c6 | 6178 | |
10f2d63a VZ |
6179 | if test "$enableval" = yes; then |
6180 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6181 | else | |
6182 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6183 | fi | |
e6cc62c6 | 6184 | |
10f2d63a | 6185 | else |
e6cc62c6 | 6186 | |
10f2d63a VZ |
6187 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6188 | if test "x$LINE" != x ; then | |
6189 | eval "DEFAULT_$LINE" | |
6190 | else | |
6191 | no_cache=1 | |
6192 | fi | |
6193 | ||
6194 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6195 | |
e6cc62c6 | 6196 | fi; |
10f2d63a VZ |
6197 | |
6198 | eval "$ac_cv_use_postscript" | |
6199 | if test "$no_cache" != 1; then | |
6200 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6201 | fi | |
6202 | ||
6203 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6204 | echo "$as_me:$LINENO: result: yes" >&5 |
6205 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6206 | else |
e6cc62c6 VS |
6207 | echo "$as_me:$LINENO: result: no" >&5 |
6208 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6209 | fi |
e6cc62c6 | 6210 | |
8284b0c5 MB |
6211 | |
6212 | ||
52127426 | 6213 | |
8284b0c5 | 6214 | |
5005acfe | 6215 | enablestring= |
e6cc62c6 VS |
6216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6217 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6218 | no_cache=0 |
3c907f20 VZ |
6219 | # Check whether --enable-prologio or --disable-prologio was given. |
6220 | if test "${enable_prologio+set}" = set; then | |
6221 | enableval="$enable_prologio" | |
e6cc62c6 | 6222 | |
10f2d63a | 6223 | if test "$enableval" = yes; then |
3c907f20 | 6224 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6225 | else |
3c907f20 | 6226 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6227 | fi |
e6cc62c6 | 6228 | |
10f2d63a | 6229 | else |
e6cc62c6 | 6230 | |
3c907f20 | 6231 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6232 | if test "x$LINE" != x ; then |
6233 | eval "DEFAULT_$LINE" | |
6234 | else | |
6235 | no_cache=1 | |
6236 | fi | |
6237 | ||
3c907f20 | 6238 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6239 | |
e6cc62c6 | 6240 | fi; |
10f2d63a | 6241 | |
3c907f20 | 6242 | eval "$ac_cv_use_prologio" |
10f2d63a | 6243 | if test "$no_cache" != 1; then |
3c907f20 | 6244 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6245 | fi |
6246 | ||
3c907f20 | 6247 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6248 | echo "$as_me:$LINENO: result: yes" >&5 |
6249 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6250 | else |
e6cc62c6 VS |
6251 | echo "$as_me:$LINENO: result: no" >&5 |
6252 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6253 | fi |
e6cc62c6 | 6254 | |
8284b0c5 | 6255 | |
5005acfe | 6256 | enablestring= |
e6cc62c6 VS |
6257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6258 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6259 | no_cache=0 |
3c907f20 VZ |
6260 | # Check whether --enable-resources or --disable-resources was given. |
6261 | if test "${enable_resources+set}" = set; then | |
6262 | enableval="$enable_resources" | |
e6cc62c6 | 6263 | |
10f2d63a | 6264 | if test "$enableval" = yes; then |
3c907f20 | 6265 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6266 | else |
3c907f20 | 6267 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6268 | fi |
e6cc62c6 | 6269 | |
10f2d63a | 6270 | else |
e6cc62c6 | 6271 | |
3c907f20 | 6272 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6273 | if test "x$LINE" != x ; then |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
3c907f20 | 6279 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6280 | |
e6cc62c6 | 6281 | fi; |
10f2d63a | 6282 | |
3c907f20 | 6283 | eval "$ac_cv_use_resources" |
10f2d63a | 6284 | if test "$no_cache" != 1; then |
3c907f20 | 6285 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6286 | fi |
6287 | ||
3c907f20 | 6288 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6289 | echo "$as_me:$LINENO: result: yes" >&5 |
6290 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6291 | else |
e6cc62c6 VS |
6292 | echo "$as_me:$LINENO: result: no" >&5 |
6293 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6294 | fi |
e6cc62c6 | 6295 | |
8284b0c5 MB |
6296 | |
6297 | ||
52127426 | 6298 | |
5005acfe | 6299 | enablestring= |
e6cc62c6 VS |
6300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6301 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6302 | no_cache=0 |
6303 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6304 | if test "${enable_clipboard+set}" = set; then | |
6305 | enableval="$enable_clipboard" | |
e6cc62c6 | 6306 | |
10f2d63a VZ |
6307 | if test "$enableval" = yes; then |
6308 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6309 | else | |
6310 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6311 | fi | |
e6cc62c6 | 6312 | |
10f2d63a | 6313 | else |
e6cc62c6 | 6314 | |
10f2d63a VZ |
6315 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6316 | if test "x$LINE" != x ; then | |
6317 | eval "DEFAULT_$LINE" | |
6318 | else | |
6319 | no_cache=1 | |
6320 | fi | |
6321 | ||
6322 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6323 | |
e6cc62c6 | 6324 | fi; |
10f2d63a VZ |
6325 | |
6326 | eval "$ac_cv_use_clipboard" | |
6327 | if test "$no_cache" != 1; then | |
6328 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6329 | fi | |
6330 | ||
6331 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6332 | echo "$as_me:$LINENO: result: yes" >&5 |
6333 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6334 | else |
e6cc62c6 VS |
6335 | echo "$as_me:$LINENO: result: no" >&5 |
6336 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6337 | fi |
e6cc62c6 | 6338 | |
10f2d63a | 6339 | |
5005acfe | 6340 | enablestring= |
e6cc62c6 VS |
6341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6342 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6343 | no_cache=0 |
6344 | # Check whether --enable-dnd or --disable-dnd was given. | |
6345 | if test "${enable_dnd+set}" = set; then | |
6346 | enableval="$enable_dnd" | |
e6cc62c6 | 6347 | |
10f2d63a VZ |
6348 | if test "$enableval" = yes; then |
6349 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6350 | else | |
6351 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6352 | fi | |
e6cc62c6 | 6353 | |
10f2d63a | 6354 | else |
e6cc62c6 | 6355 | |
10f2d63a VZ |
6356 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6357 | if test "x$LINE" != x ; then | |
6358 | eval "DEFAULT_$LINE" | |
6359 | else | |
6360 | no_cache=1 | |
6361 | fi | |
6362 | ||
6363 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6364 | |
e6cc62c6 | 6365 | fi; |
10f2d63a VZ |
6366 | |
6367 | eval "$ac_cv_use_dnd" | |
6368 | if test "$no_cache" != 1; then | |
6369 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6370 | fi | |
6371 | ||
6372 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6373 | echo "$as_me:$LINENO: result: yes" >&5 |
6374 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6375 | else |
e6cc62c6 VS |
6376 | echo "$as_me:$LINENO: result: no" >&5 |
6377 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6378 | fi |
e6cc62c6 | 6379 | |
10f2d63a | 6380 | |
5005acfe | 6381 | enablestring= |
e6cc62c6 VS |
6382 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6383 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6384 | no_cache=0 |
6385 | # Check whether --enable-metafile or --disable-metafile was given. | |
6386 | if test "${enable_metafile+set}" = set; then | |
6387 | enableval="$enable_metafile" | |
e6cc62c6 | 6388 | |
b64f0a5f RL |
6389 | if test "$enableval" = yes; then |
6390 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6391 | else | |
6392 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6393 | fi | |
e6cc62c6 | 6394 | |
b64f0a5f | 6395 | else |
e6cc62c6 | 6396 | |
b64f0a5f RL |
6397 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6405 | |
e6cc62c6 | 6406 | fi; |
b64f0a5f RL |
6407 | |
6408 | eval "$ac_cv_use_metafile" | |
6409 | if test "$no_cache" != 1; then | |
6410 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6411 | fi | |
6412 | ||
6413 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6414 | echo "$as_me:$LINENO: result: yes" >&5 |
6415 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6416 | else |
e6cc62c6 VS |
6417 | echo "$as_me:$LINENO: result: no" >&5 |
6418 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6419 | fi |
e6cc62c6 | 6420 | |
52127426 | 6421 | |
8284b0c5 | 6422 | |
52127426 | 6423 | |
8284b0c5 | 6424 | |
5005acfe | 6425 | enablestring= |
e6cc62c6 VS |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6428 | no_cache=0 |
6429 | # Check whether --enable-controls or --disable-controls was given. | |
6430 | if test "${enable_controls+set}" = set; then | |
6431 | enableval="$enable_controls" | |
e6cc62c6 | 6432 | |
10f2d63a VZ |
6433 | if test "$enableval" = yes; then |
6434 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6435 | else | |
6436 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6437 | fi | |
e6cc62c6 | 6438 | |
10f2d63a | 6439 | else |
e6cc62c6 | 6440 | |
10f2d63a VZ |
6441 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6449 | |
e6cc62c6 | 6450 | fi; |
10f2d63a VZ |
6451 | |
6452 | eval "$ac_cv_use_controls" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6458 | echo "$as_me:$LINENO: result: yes" >&5 |
6459 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6460 | else |
e6cc62c6 VS |
6461 | echo "$as_me:$LINENO: result: no" >&5 |
6462 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6463 | fi |
e6cc62c6 | 6464 | |
10f2d63a VZ |
6465 | |
6466 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6467 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6468 | DEFAULT_wxUSE_BMPBUTTON=yes |
6469 | DEFAULT_wxUSE_BUTTON=yes | |
6470 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6471 | DEFAULT_wxUSE_CARET=yes |
6472 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6473 | DEFAULT_wxUSE_CHECKBOX=yes |
6474 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6475 | DEFAULT_wxUSE_CHOICE=yes | |
6476 | DEFAULT_wxUSE_GAUGE=yes | |
6477 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6478 | DEFAULT_wxUSE_IMAGLIST=yes |
6479 | DEFAULT_wxUSE_LISTBOX=yes | |
6480 | DEFAULT_wxUSE_LISTCTRL=yes | |
6481 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6482 | DEFAULT_wxUSE_RADIOBOX=yes | |
6483 | DEFAULT_wxUSE_RADIOBTN=yes | |
6484 | DEFAULT_wxUSE_SASH=yes | |
6485 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6486 | DEFAULT_wxUSE_SLIDER=yes | |
6487 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6488 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6489 | DEFAULT_wxUSE_SPLITTER=yes |
6490 | DEFAULT_wxUSE_STATBMP=yes | |
6491 | DEFAULT_wxUSE_STATBOX=yes | |
6492 | DEFAULT_wxUSE_STATLINE=yes | |
6493 | DEFAULT_wxUSE_STATUSBAR=yes | |
6494 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6495 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6496 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6497 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6498 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6499 | DEFAULT_wxUSE_TOOLTIPS=yes |
6500 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6501 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6502 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6503 | elif test "$wxUSE_CONTROLS" = "no"; then |
6504 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6505 | DEFAULT_wxUSE_BMPBUTTON=no |
6506 | DEFAULT_wxUSE_BUTTON=no | |
6507 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6508 | DEFAULT_wxUSE_CARET=no |
6509 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6510 | DEFAULT_wxUSE_CHECKBOX=no |
6511 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6512 | DEFAULT_wxUSE_CHOICE=no | |
6513 | DEFAULT_wxUSE_GAUGE=no | |
6514 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6515 | DEFAULT_wxUSE_IMAGLIST=no |
6516 | DEFAULT_wxUSE_LISTBOX=no | |
6517 | DEFAULT_wxUSE_LISTCTRL=no | |
6518 | DEFAULT_wxUSE_NOTEBOOK=no | |
6519 | DEFAULT_wxUSE_RADIOBOX=no | |
6520 | DEFAULT_wxUSE_RADIOBTN=no | |
6521 | DEFAULT_wxUSE_SASH=no | |
6522 | DEFAULT_wxUSE_SCROLLBAR=no | |
6523 | DEFAULT_wxUSE_SLIDER=no | |
6524 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6525 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6526 | DEFAULT_wxUSE_SPLITTER=no |
6527 | DEFAULT_wxUSE_STATBMP=no | |
6528 | DEFAULT_wxUSE_STATBOX=no | |
6529 | DEFAULT_wxUSE_STATLINE=no | |
6530 | DEFAULT_wxUSE_STATUSBAR=no | |
6531 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6532 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6533 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6534 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6535 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6536 | DEFAULT_wxUSE_TOOLTIPS=no |
6537 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6538 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6539 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6540 | fi |
6541 | ||
ac0c4cc3 DE |
6542 | ## FIXME: This is a blatant hack |
6543 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6544 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6545 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6546 | # Generic notebook requires tab dialog |
6547 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6548 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6549 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6550 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6551 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6552 | fi |
6553 | ||
8284b0c5 | 6554 | |
5005acfe | 6555 | enablestring= |
e6cc62c6 VS |
6556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6557 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6558 | no_cache=0 |
6559 | # Check whether --enable-accel or --disable-accel was given. | |
6560 | if test "${enable_accel+set}" = set; then | |
6561 | enableval="$enable_accel" | |
e6cc62c6 | 6562 | |
10f2d63a VZ |
6563 | if test "$enableval" = yes; then |
6564 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6565 | else | |
6566 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6567 | fi | |
e6cc62c6 | 6568 | |
10f2d63a | 6569 | else |
e6cc62c6 | 6570 | |
10f2d63a VZ |
6571 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6572 | if test "x$LINE" != x ; then | |
6573 | eval "DEFAULT_$LINE" | |
6574 | else | |
6575 | no_cache=1 | |
6576 | fi | |
6577 | ||
6578 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6579 | |
e6cc62c6 | 6580 | fi; |
10f2d63a VZ |
6581 | |
6582 | eval "$ac_cv_use_accel" | |
6583 | if test "$no_cache" != 1; then | |
6584 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6585 | fi | |
6586 | ||
6587 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6588 | echo "$as_me:$LINENO: result: yes" >&5 |
6589 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6590 | else |
e6cc62c6 VS |
6591 | echo "$as_me:$LINENO: result: no" >&5 |
6592 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6593 | fi |
e6cc62c6 | 6594 | |
10f2d63a | 6595 | |
5005acfe | 6596 | enablestring= |
e6cc62c6 VS |
6597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6598 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6599 | no_cache=0 |
1e6feb95 VZ |
6600 | # Check whether --enable-button or --disable-button was given. |
6601 | if test "${enable_button+set}" = set; then | |
6602 | enableval="$enable_button" | |
e6cc62c6 | 6603 | |
10f2d63a | 6604 | if test "$enableval" = yes; then |
1e6feb95 | 6605 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6606 | else |
1e6feb95 | 6607 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6608 | fi |
e6cc62c6 | 6609 | |
10f2d63a | 6610 | else |
e6cc62c6 | 6611 | |
1e6feb95 | 6612 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6613 | if test "x$LINE" != x ; then |
6614 | eval "DEFAULT_$LINE" | |
6615 | else | |
6616 | no_cache=1 | |
6617 | fi | |
6618 | ||
1e6feb95 | 6619 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6620 | |
e6cc62c6 | 6621 | fi; |
10f2d63a | 6622 | |
1e6feb95 | 6623 | eval "$ac_cv_use_button" |
10f2d63a | 6624 | if test "$no_cache" != 1; then |
1e6feb95 | 6625 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6626 | fi |
6627 | ||
1e6feb95 | 6628 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6629 | echo "$as_me:$LINENO: result: yes" >&5 |
6630 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6631 | else |
e6cc62c6 VS |
6632 | echo "$as_me:$LINENO: result: no" >&5 |
6633 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6634 | fi |
e6cc62c6 | 6635 | |
10f2d63a | 6636 | |
5005acfe | 6637 | enablestring= |
e6cc62c6 VS |
6638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6639 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6640 | no_cache=0 |
6641 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6642 | if test "${enable_bmpbutton+set}" = set; then | |
6643 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6644 | |
10f2d63a VZ |
6645 | if test "$enableval" = yes; then |
6646 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6647 | else | |
6648 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6649 | fi | |
e6cc62c6 | 6650 | |
10f2d63a | 6651 | else |
e6cc62c6 | 6652 | |
10f2d63a VZ |
6653 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6654 | if test "x$LINE" != x ; then | |
6655 | eval "DEFAULT_$LINE" | |
6656 | else | |
6657 | no_cache=1 | |
6658 | fi | |
6659 | ||
6660 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6661 | |
e6cc62c6 | 6662 | fi; |
10f2d63a VZ |
6663 | |
6664 | eval "$ac_cv_use_bmpbutton" | |
6665 | if test "$no_cache" != 1; then | |
6666 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6667 | fi | |
6668 | ||
6669 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6670 | echo "$as_me:$LINENO: result: yes" >&5 |
6671 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6672 | else |
e6cc62c6 VS |
6673 | echo "$as_me:$LINENO: result: no" >&5 |
6674 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6675 | fi |
e6cc62c6 | 6676 | |
10f2d63a | 6677 | |
5005acfe | 6678 | enablestring= |
e6cc62c6 VS |
6679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6680 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6681 | no_cache=0 |
6682 | # Check whether --enable-calendar or --disable-calendar was given. | |
6683 | if test "${enable_calendar+set}" = set; then | |
6684 | enableval="$enable_calendar" | |
e6cc62c6 | 6685 | |
1e6feb95 VZ |
6686 | if test "$enableval" = yes; then |
6687 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6688 | else | |
6689 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6690 | fi | |
e6cc62c6 | 6691 | |
1e6feb95 | 6692 | else |
e6cc62c6 | 6693 | |
1e6feb95 VZ |
6694 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6695 | if test "x$LINE" != x ; then | |
6696 | eval "DEFAULT_$LINE" | |
6697 | else | |
6698 | no_cache=1 | |
6699 | fi | |
6700 | ||
6701 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6702 | |
e6cc62c6 | 6703 | fi; |
1e6feb95 VZ |
6704 | |
6705 | eval "$ac_cv_use_calendar" | |
6706 | if test "$no_cache" != 1; then | |
6707 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6708 | fi | |
6709 | ||
6710 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6711 | echo "$as_me:$LINENO: result: yes" >&5 |
6712 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6713 | else |
e6cc62c6 VS |
6714 | echo "$as_me:$LINENO: result: no" >&5 |
6715 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6716 | fi |
e6cc62c6 | 6717 | |
1e6feb95 | 6718 | |
5005acfe | 6719 | enablestring= |
e6cc62c6 VS |
6720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6721 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6722 | no_cache=0 |
6723 | # Check whether --enable-caret or --disable-caret was given. | |
6724 | if test "${enable_caret+set}" = set; then | |
6725 | enableval="$enable_caret" | |
e6cc62c6 | 6726 | |
1e6feb95 VZ |
6727 | if test "$enableval" = yes; then |
6728 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6729 | else | |
6730 | ac_cv_use_caret='wxUSE_CARET=no' | |
6731 | fi | |
e6cc62c6 | 6732 | |
1e6feb95 | 6733 | else |
e6cc62c6 | 6734 | |
1e6feb95 VZ |
6735 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6736 | if test "x$LINE" != x ; then | |
6737 | eval "DEFAULT_$LINE" | |
6738 | else | |
6739 | no_cache=1 | |
6740 | fi | |
6741 | ||
6742 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6743 | |
e6cc62c6 | 6744 | fi; |
1e6feb95 VZ |
6745 | |
6746 | eval "$ac_cv_use_caret" | |
6747 | if test "$no_cache" != 1; then | |
6748 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6749 | fi | |
6750 | ||
6751 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6752 | echo "$as_me:$LINENO: result: yes" >&5 |
6753 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6754 | else |
e6cc62c6 VS |
6755 | echo "$as_me:$LINENO: result: no" >&5 |
6756 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6757 | fi |
e6cc62c6 | 6758 | |
1e6feb95 | 6759 | |
5005acfe | 6760 | enablestring= |
e6cc62c6 VS |
6761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6762 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6763 | no_cache=0 |
6764 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6765 | if test "${enable_checkbox+set}" = set; then | |
6766 | enableval="$enable_checkbox" | |
e6cc62c6 | 6767 | |
10f2d63a VZ |
6768 | if test "$enableval" = yes; then |
6769 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6770 | else | |
6771 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6772 | fi | |
e6cc62c6 | 6773 | |
10f2d63a | 6774 | else |
e6cc62c6 | 6775 | |
10f2d63a VZ |
6776 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6777 | if test "x$LINE" != x ; then | |
6778 | eval "DEFAULT_$LINE" | |
6779 | else | |
6780 | no_cache=1 | |
6781 | fi | |
6782 | ||
6783 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6784 | |
e6cc62c6 | 6785 | fi; |
10f2d63a VZ |
6786 | |
6787 | eval "$ac_cv_use_checkbox" | |
6788 | if test "$no_cache" != 1; then | |
6789 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6790 | fi | |
6791 | ||
6792 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6793 | echo "$as_me:$LINENO: result: yes" >&5 |
6794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6795 | else |
e6cc62c6 VS |
6796 | echo "$as_me:$LINENO: result: no" >&5 |
6797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6798 | fi |
e6cc62c6 | 6799 | |
10f2d63a | 6800 | |
5005acfe | 6801 | enablestring= |
e6cc62c6 VS |
6802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6803 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6804 | no_cache=0 |
6805 | # Check whether --enable-checklst or --disable-checklst was given. | |
6806 | if test "${enable_checklst+set}" = set; then | |
6807 | enableval="$enable_checklst" | |
e6cc62c6 | 6808 | |
10f2d63a VZ |
6809 | if test "$enableval" = yes; then |
6810 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6811 | else | |
6812 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6813 | fi | |
e6cc62c6 | 6814 | |
10f2d63a | 6815 | else |
e6cc62c6 | 6816 | |
10f2d63a VZ |
6817 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6818 | if test "x$LINE" != x ; then | |
6819 | eval "DEFAULT_$LINE" | |
6820 | else | |
6821 | no_cache=1 | |
6822 | fi | |
6823 | ||
6824 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6825 | |
e6cc62c6 | 6826 | fi; |
10f2d63a VZ |
6827 | |
6828 | eval "$ac_cv_use_checklst" | |
6829 | if test "$no_cache" != 1; then | |
6830 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6831 | fi | |
6832 | ||
6833 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6834 | echo "$as_me:$LINENO: result: yes" >&5 |
6835 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6836 | else |
e6cc62c6 VS |
6837 | echo "$as_me:$LINENO: result: no" >&5 |
6838 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6839 | fi |
e6cc62c6 | 6840 | |
10f2d63a | 6841 | |
5005acfe | 6842 | enablestring= |
e6cc62c6 VS |
6843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6844 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6845 | no_cache=0 |
6846 | # Check whether --enable-choice or --disable-choice was given. | |
6847 | if test "${enable_choice+set}" = set; then | |
6848 | enableval="$enable_choice" | |
e6cc62c6 | 6849 | |
10f2d63a VZ |
6850 | if test "$enableval" = yes; then |
6851 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6852 | else | |
6853 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6854 | fi | |
e6cc62c6 | 6855 | |
10f2d63a | 6856 | else |
e6cc62c6 | 6857 | |
10f2d63a VZ |
6858 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6859 | if test "x$LINE" != x ; then | |
6860 | eval "DEFAULT_$LINE" | |
6861 | else | |
6862 | no_cache=1 | |
6863 | fi | |
6864 | ||
6865 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6866 | |
e6cc62c6 | 6867 | fi; |
10f2d63a VZ |
6868 | |
6869 | eval "$ac_cv_use_choice" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6875 | echo "$as_me:$LINENO: result: yes" >&5 |
6876 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6877 | else |
e6cc62c6 VS |
6878 | echo "$as_me:$LINENO: result: no" >&5 |
6879 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6880 | fi |
e6cc62c6 | 6881 | |
10f2d63a | 6882 | |
5005acfe | 6883 | enablestring= |
e6cc62c6 VS |
6884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6885 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6886 | no_cache=0 |
6887 | # Check whether --enable-combobox or --disable-combobox was given. | |
6888 | if test "${enable_combobox+set}" = set; then | |
6889 | enableval="$enable_combobox" | |
e6cc62c6 | 6890 | |
10f2d63a VZ |
6891 | if test "$enableval" = yes; then |
6892 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6893 | else | |
6894 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6895 | fi | |
e6cc62c6 | 6896 | |
10f2d63a | 6897 | else |
e6cc62c6 | 6898 | |
10f2d63a VZ |
6899 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6907 | |
e6cc62c6 | 6908 | fi; |
10f2d63a VZ |
6909 | |
6910 | eval "$ac_cv_use_combobox" | |
6911 | if test "$no_cache" != 1; then | |
6912 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6913 | fi | |
6914 | ||
6915 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6916 | echo "$as_me:$LINENO: result: yes" >&5 |
6917 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6918 | else |
e6cc62c6 VS |
6919 | echo "$as_me:$LINENO: result: no" >&5 |
6920 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6921 | fi |
e6cc62c6 | 6922 | |
10f2d63a | 6923 | |
da494b40 | 6924 | enablestring= |
e6cc62c6 VS |
6925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6926 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6927 | no_cache=0 |
6928 | # Check whether --enable-display or --disable-display was given. | |
6929 | if test "${enable_display+set}" = set; then | |
6930 | enableval="$enable_display" | |
e6cc62c6 | 6931 | |
da494b40 MB |
6932 | if test "$enableval" = yes; then |
6933 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6934 | else | |
6935 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6936 | fi | |
e6cc62c6 | 6937 | |
da494b40 | 6938 | else |
e6cc62c6 | 6939 | |
da494b40 MB |
6940 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6941 | if test "x$LINE" != x ; then | |
6942 | eval "DEFAULT_$LINE" | |
6943 | else | |
6944 | no_cache=1 | |
6945 | fi | |
6946 | ||
6947 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6948 | |
e6cc62c6 | 6949 | fi; |
da494b40 MB |
6950 | |
6951 | eval "$ac_cv_use_display" | |
6952 | if test "$no_cache" != 1; then | |
6953 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6954 | fi | |
6955 | ||
6956 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6957 | echo "$as_me:$LINENO: result: yes" >&5 |
6958 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6959 | else |
e6cc62c6 VS |
6960 | echo "$as_me:$LINENO: result: no" >&5 |
6961 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6962 | fi |
e6cc62c6 | 6963 | |
da494b40 | 6964 | |
5005acfe | 6965 | enablestring= |
e6cc62c6 VS |
6966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6967 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6968 | no_cache=0 |
6969 | # Check whether --enable-gauge or --disable-gauge was given. | |
6970 | if test "${enable_gauge+set}" = set; then | |
6971 | enableval="$enable_gauge" | |
e6cc62c6 | 6972 | |
10f2d63a VZ |
6973 | if test "$enableval" = yes; then |
6974 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6975 | else | |
6976 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6977 | fi | |
e6cc62c6 | 6978 | |
10f2d63a | 6979 | else |
e6cc62c6 | 6980 | |
10f2d63a VZ |
6981 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6982 | if test "x$LINE" != x ; then | |
6983 | eval "DEFAULT_$LINE" | |
6984 | else | |
6985 | no_cache=1 | |
6986 | fi | |
6987 | ||
6988 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6989 | |
e6cc62c6 | 6990 | fi; |
10f2d63a VZ |
6991 | |
6992 | eval "$ac_cv_use_gauge" | |
6993 | if test "$no_cache" != 1; then | |
6994 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6995 | fi | |
6996 | ||
6997 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
6998 | echo "$as_me:$LINENO: result: yes" >&5 |
6999 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7000 | else |
e6cc62c6 VS |
7001 | echo "$as_me:$LINENO: result: no" >&5 |
7002 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7003 | fi |
e6cc62c6 | 7004 | |
10f2d63a | 7005 | |
5005acfe | 7006 | enablestring= |
e6cc62c6 VS |
7007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7008 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7009 | no_cache=0 |
7010 | # Check whether --enable-grid or --disable-grid was given. | |
7011 | if test "${enable_grid+set}" = set; then | |
7012 | enableval="$enable_grid" | |
e6cc62c6 | 7013 | |
10f2d63a VZ |
7014 | if test "$enableval" = yes; then |
7015 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7016 | else | |
7017 | ac_cv_use_grid='wxUSE_GRID=no' | |
7018 | fi | |
e6cc62c6 | 7019 | |
10f2d63a | 7020 | else |
e6cc62c6 | 7021 | |
10f2d63a VZ |
7022 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7023 | if test "x$LINE" != x ; then | |
7024 | eval "DEFAULT_$LINE" | |
7025 | else | |
7026 | no_cache=1 | |
7027 | fi | |
7028 | ||
7029 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7030 | |
e6cc62c6 | 7031 | fi; |
10f2d63a VZ |
7032 | |
7033 | eval "$ac_cv_use_grid" | |
7034 | if test "$no_cache" != 1; then | |
7035 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7036 | fi | |
7037 | ||
7038 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7039 | echo "$as_me:$LINENO: result: yes" >&5 |
7040 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7041 | else |
e6cc62c6 VS |
7042 | echo "$as_me:$LINENO: result: no" >&5 |
7043 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7044 | fi |
e6cc62c6 | 7045 | |
10f2d63a | 7046 | |
5005acfe | 7047 | enablestring= |
e6cc62c6 VS |
7048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7049 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7050 | no_cache=0 |
7051 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7052 | if test "${enable_imaglist+set}" = set; then | |
7053 | enableval="$enable_imaglist" | |
e6cc62c6 | 7054 | |
10f2d63a VZ |
7055 | if test "$enableval" = yes; then |
7056 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7057 | else | |
7058 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7059 | fi | |
e6cc62c6 | 7060 | |
10f2d63a | 7061 | else |
e6cc62c6 | 7062 | |
10f2d63a VZ |
7063 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7064 | if test "x$LINE" != x ; then | |
7065 | eval "DEFAULT_$LINE" | |
7066 | else | |
7067 | no_cache=1 | |
7068 | fi | |
7069 | ||
7070 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7071 | |
e6cc62c6 | 7072 | fi; |
10f2d63a VZ |
7073 | |
7074 | eval "$ac_cv_use_imaglist" | |
7075 | if test "$no_cache" != 1; then | |
7076 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7077 | fi | |
7078 | ||
7079 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7080 | echo "$as_me:$LINENO: result: yes" >&5 |
7081 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7082 | else |
e6cc62c6 VS |
7083 | echo "$as_me:$LINENO: result: no" >&5 |
7084 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7085 | fi |
e6cc62c6 | 7086 | |
10f2d63a | 7087 | |
5005acfe | 7088 | enablestring= |
e6cc62c6 VS |
7089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7090 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7091 | no_cache=0 |
7092 | # Check whether --enable-listbox or --disable-listbox was given. | |
7093 | if test "${enable_listbox+set}" = set; then | |
7094 | enableval="$enable_listbox" | |
e6cc62c6 | 7095 | |
10f2d63a VZ |
7096 | if test "$enableval" = yes; then |
7097 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7098 | else | |
7099 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7100 | fi | |
e6cc62c6 | 7101 | |
10f2d63a | 7102 | else |
e6cc62c6 | 7103 | |
10f2d63a VZ |
7104 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7105 | if test "x$LINE" != x ; then | |
7106 | eval "DEFAULT_$LINE" | |
7107 | else | |
7108 | no_cache=1 | |
7109 | fi | |
7110 | ||
7111 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7112 | |
e6cc62c6 | 7113 | fi; |
10f2d63a VZ |
7114 | |
7115 | eval "$ac_cv_use_listbox" | |
7116 | if test "$no_cache" != 1; then | |
7117 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7118 | fi | |
7119 | ||
7120 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7121 | echo "$as_me:$LINENO: result: yes" >&5 |
7122 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7123 | else |
e6cc62c6 VS |
7124 | echo "$as_me:$LINENO: result: no" >&5 |
7125 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7126 | fi |
e6cc62c6 | 7127 | |
10f2d63a | 7128 | |
5005acfe | 7129 | enablestring= |
e6cc62c6 VS |
7130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7131 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7132 | no_cache=0 |
7133 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7134 | if test "${enable_listctrl+set}" = set; then | |
7135 | enableval="$enable_listctrl" | |
e6cc62c6 | 7136 | |
10f2d63a VZ |
7137 | if test "$enableval" = yes; then |
7138 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7139 | else | |
7140 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7141 | fi | |
e6cc62c6 | 7142 | |
10f2d63a | 7143 | else |
e6cc62c6 | 7144 | |
10f2d63a VZ |
7145 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7146 | if test "x$LINE" != x ; then | |
7147 | eval "DEFAULT_$LINE" | |
7148 | else | |
7149 | no_cache=1 | |
7150 | fi | |
7151 | ||
7152 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7153 | |
e6cc62c6 | 7154 | fi; |
10f2d63a VZ |
7155 | |
7156 | eval "$ac_cv_use_listctrl" | |
7157 | if test "$no_cache" != 1; then | |
7158 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7159 | fi | |
7160 | ||
7161 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7162 | echo "$as_me:$LINENO: result: yes" >&5 |
7163 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7164 | else |
e6cc62c6 VS |
7165 | echo "$as_me:$LINENO: result: no" >&5 |
7166 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7167 | fi |
e6cc62c6 | 7168 | |
10f2d63a | 7169 | |
5005acfe | 7170 | enablestring= |
e6cc62c6 VS |
7171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7172 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7173 | no_cache=0 |
7174 | # Check whether --enable-notebook or --disable-notebook was given. | |
7175 | if test "${enable_notebook+set}" = set; then | |
7176 | enableval="$enable_notebook" | |
e6cc62c6 | 7177 | |
10f2d63a VZ |
7178 | if test "$enableval" = yes; then |
7179 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7180 | else | |
7181 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7182 | fi | |
e6cc62c6 | 7183 | |
10f2d63a | 7184 | else |
e6cc62c6 | 7185 | |
10f2d63a VZ |
7186 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7187 | if test "x$LINE" != x ; then | |
7188 | eval "DEFAULT_$LINE" | |
7189 | else | |
7190 | no_cache=1 | |
7191 | fi | |
7192 | ||
7193 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7194 | |
e6cc62c6 | 7195 | fi; |
10f2d63a VZ |
7196 | |
7197 | eval "$ac_cv_use_notebook" | |
7198 | if test "$no_cache" != 1; then | |
7199 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7200 | fi | |
7201 | ||
7202 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7203 | echo "$as_me:$LINENO: result: yes" >&5 |
7204 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7205 | else |
e6cc62c6 VS |
7206 | echo "$as_me:$LINENO: result: no" >&5 |
7207 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7208 | fi |
e6cc62c6 | 7209 | |
10f2d63a | 7210 | |
5005acfe | 7211 | enablestring= |
e6cc62c6 VS |
7212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7213 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7214 | no_cache=0 |
7215 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7216 | if test "${enable_radiobox+set}" = set; then | |
7217 | enableval="$enable_radiobox" | |
e6cc62c6 | 7218 | |
10f2d63a VZ |
7219 | if test "$enableval" = yes; then |
7220 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7221 | else | |
7222 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7223 | fi | |
e6cc62c6 | 7224 | |
10f2d63a | 7225 | else |
e6cc62c6 | 7226 | |
10f2d63a VZ |
7227 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7228 | if test "x$LINE" != x ; then | |
7229 | eval "DEFAULT_$LINE" | |
7230 | else | |
7231 | no_cache=1 | |
7232 | fi | |
7233 | ||
7234 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7235 | |
e6cc62c6 | 7236 | fi; |
10f2d63a VZ |
7237 | |
7238 | eval "$ac_cv_use_radiobox" | |
7239 | if test "$no_cache" != 1; then | |
7240 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7241 | fi | |
7242 | ||
7243 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7244 | echo "$as_me:$LINENO: result: yes" >&5 |
7245 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7246 | else |
e6cc62c6 VS |
7247 | echo "$as_me:$LINENO: result: no" >&5 |
7248 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7249 | fi |
e6cc62c6 | 7250 | |
10f2d63a | 7251 | |
5005acfe | 7252 | enablestring= |
e6cc62c6 VS |
7253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7254 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7255 | no_cache=0 |
7256 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7257 | if test "${enable_radiobtn+set}" = set; then | |
7258 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7259 | |
10f2d63a VZ |
7260 | if test "$enableval" = yes; then |
7261 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7262 | else | |
7263 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7264 | fi | |
e6cc62c6 | 7265 | |
10f2d63a | 7266 | else |
e6cc62c6 | 7267 | |
10f2d63a VZ |
7268 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7269 | if test "x$LINE" != x ; then | |
7270 | eval "DEFAULT_$LINE" | |
7271 | else | |
7272 | no_cache=1 | |
7273 | fi | |
7274 | ||
7275 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7276 | |
e6cc62c6 | 7277 | fi; |
10f2d63a VZ |
7278 | |
7279 | eval "$ac_cv_use_radiobtn" | |
7280 | if test "$no_cache" != 1; then | |
7281 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7282 | fi | |
7283 | ||
7284 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7285 | echo "$as_me:$LINENO: result: yes" >&5 |
7286 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7287 | else |
e6cc62c6 VS |
7288 | echo "$as_me:$LINENO: result: no" >&5 |
7289 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7290 | fi |
e6cc62c6 | 7291 | |
10f2d63a | 7292 | |
5005acfe | 7293 | enablestring= |
e6cc62c6 VS |
7294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7295 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7296 | no_cache=0 |
7297 | # Check whether --enable-sash or --disable-sash was given. | |
7298 | if test "${enable_sash+set}" = set; then | |
7299 | enableval="$enable_sash" | |
e6cc62c6 | 7300 | |
10f2d63a VZ |
7301 | if test "$enableval" = yes; then |
7302 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7303 | else | |
7304 | ac_cv_use_sash='wxUSE_SASH=no' | |
7305 | fi | |
e6cc62c6 | 7306 | |
10f2d63a | 7307 | else |
e6cc62c6 | 7308 | |
10f2d63a VZ |
7309 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7310 | if test "x$LINE" != x ; then | |
7311 | eval "DEFAULT_$LINE" | |
7312 | else | |
7313 | no_cache=1 | |
7314 | fi | |
7315 | ||
7316 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7317 | |
e6cc62c6 | 7318 | fi; |
10f2d63a VZ |
7319 | |
7320 | eval "$ac_cv_use_sash" | |
7321 | if test "$no_cache" != 1; then | |
7322 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7323 | fi | |
7324 | ||
7325 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7326 | echo "$as_me:$LINENO: result: yes" >&5 |
7327 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7328 | else |
e6cc62c6 VS |
7329 | echo "$as_me:$LINENO: result: no" >&5 |
7330 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7331 | fi |
e6cc62c6 | 7332 | |
10f2d63a | 7333 | |
5005acfe | 7334 | enablestring= |
e6cc62c6 VS |
7335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7336 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7337 | no_cache=0 |
7338 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7339 | if test "${enable_scrollbar+set}" = set; then | |
7340 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7341 | |
10f2d63a VZ |
7342 | if test "$enableval" = yes; then |
7343 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7344 | else | |
7345 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7346 | fi | |
e6cc62c6 | 7347 | |
10f2d63a | 7348 | else |
e6cc62c6 | 7349 | |
10f2d63a VZ |
7350 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7351 | if test "x$LINE" != x ; then | |
7352 | eval "DEFAULT_$LINE" | |
7353 | else | |
7354 | no_cache=1 | |
7355 | fi | |
7356 | ||
7357 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7358 | |
e6cc62c6 | 7359 | fi; |
10f2d63a VZ |
7360 | |
7361 | eval "$ac_cv_use_scrollbar" | |
7362 | if test "$no_cache" != 1; then | |
7363 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7364 | fi | |
7365 | ||
7366 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7367 | echo "$as_me:$LINENO: result: yes" >&5 |
7368 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7369 | else |
e6cc62c6 VS |
7370 | echo "$as_me:$LINENO: result: no" >&5 |
7371 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7372 | fi |
e6cc62c6 | 7373 | |
10f2d63a | 7374 | |
5005acfe | 7375 | enablestring= |
e6cc62c6 VS |
7376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7377 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7378 | no_cache=0 |
7379 | # Check whether --enable-slider or --disable-slider was given. | |
7380 | if test "${enable_slider+set}" = set; then | |
7381 | enableval="$enable_slider" | |
e6cc62c6 | 7382 | |
10f2d63a VZ |
7383 | if test "$enableval" = yes; then |
7384 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7385 | else | |
7386 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7387 | fi | |
e6cc62c6 | 7388 | |
10f2d63a | 7389 | else |
e6cc62c6 | 7390 | |
10f2d63a VZ |
7391 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7392 | if test "x$LINE" != x ; then | |
7393 | eval "DEFAULT_$LINE" | |
7394 | else | |
7395 | no_cache=1 | |
7396 | fi | |
7397 | ||
7398 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7399 | |
e6cc62c6 | 7400 | fi; |
10f2d63a VZ |
7401 | |
7402 | eval "$ac_cv_use_slider" | |
7403 | if test "$no_cache" != 1; then | |
7404 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7405 | fi | |
7406 | ||
7407 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7408 | echo "$as_me:$LINENO: result: yes" >&5 |
7409 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7410 | else |
e6cc62c6 VS |
7411 | echo "$as_me:$LINENO: result: no" >&5 |
7412 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7413 | fi |
e6cc62c6 | 7414 | |
10f2d63a | 7415 | |
5005acfe | 7416 | enablestring= |
e6cc62c6 VS |
7417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7418 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7419 | no_cache=0 |
7420 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7421 | if test "${enable_spinbtn+set}" = set; then | |
7422 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7423 | |
10f2d63a VZ |
7424 | if test "$enableval" = yes; then |
7425 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7426 | else | |
7427 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7428 | fi | |
e6cc62c6 | 7429 | |
10f2d63a | 7430 | else |
e6cc62c6 | 7431 | |
10f2d63a VZ |
7432 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7433 | if test "x$LINE" != x ; then | |
7434 | eval "DEFAULT_$LINE" | |
7435 | else | |
7436 | no_cache=1 | |
7437 | fi | |
7438 | ||
7439 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7440 | |
e6cc62c6 | 7441 | fi; |
10f2d63a VZ |
7442 | |
7443 | eval "$ac_cv_use_spinbtn" | |
7444 | if test "$no_cache" != 1; then | |
7445 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7446 | fi | |
7447 | ||
7448 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7449 | echo "$as_me:$LINENO: result: yes" >&5 |
7450 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7451 | else |
e6cc62c6 VS |
7452 | echo "$as_me:$LINENO: result: no" >&5 |
7453 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7454 | fi |
e6cc62c6 | 7455 | |
10f2d63a | 7456 | |
5005acfe | 7457 | enablestring= |
e6cc62c6 VS |
7458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7459 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7460 | no_cache=0 |
7461 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7462 | if test "${enable_spinctrl+set}" = set; then | |
7463 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7464 | |
56cfaa52 RR |
7465 | if test "$enableval" = yes; then |
7466 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7467 | else | |
7468 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7469 | fi | |
e6cc62c6 | 7470 | |
56cfaa52 | 7471 | else |
e6cc62c6 | 7472 | |
56cfaa52 RR |
7473 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7474 | if test "x$LINE" != x ; then | |
7475 | eval "DEFAULT_$LINE" | |
7476 | else | |
7477 | no_cache=1 | |
7478 | fi | |
7479 | ||
7480 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7481 | |
e6cc62c6 | 7482 | fi; |
56cfaa52 RR |
7483 | |
7484 | eval "$ac_cv_use_spinctrl" | |
7485 | if test "$no_cache" != 1; then | |
7486 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7487 | fi | |
7488 | ||
7489 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7490 | echo "$as_me:$LINENO: result: yes" >&5 |
7491 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7492 | else |
e6cc62c6 VS |
7493 | echo "$as_me:$LINENO: result: no" >&5 |
7494 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7495 | fi |
e6cc62c6 | 7496 | |
56cfaa52 | 7497 | |
5005acfe | 7498 | enablestring= |
e6cc62c6 VS |
7499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7500 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7501 | no_cache=0 |
7502 | # Check whether --enable-splitter or --disable-splitter was given. | |
7503 | if test "${enable_splitter+set}" = set; then | |
7504 | enableval="$enable_splitter" | |
e6cc62c6 | 7505 | |
10f2d63a VZ |
7506 | if test "$enableval" = yes; then |
7507 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7508 | else | |
7509 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7510 | fi | |
e6cc62c6 | 7511 | |
10f2d63a | 7512 | else |
e6cc62c6 | 7513 | |
10f2d63a VZ |
7514 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7515 | if test "x$LINE" != x ; then | |
7516 | eval "DEFAULT_$LINE" | |
7517 | else | |
7518 | no_cache=1 | |
7519 | fi | |
7520 | ||
7521 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7522 | |
e6cc62c6 | 7523 | fi; |
10f2d63a VZ |
7524 | |
7525 | eval "$ac_cv_use_splitter" | |
7526 | if test "$no_cache" != 1; then | |
7527 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7528 | fi | |
7529 | ||
7530 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7531 | echo "$as_me:$LINENO: result: yes" >&5 |
7532 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7533 | else |
e6cc62c6 VS |
7534 | echo "$as_me:$LINENO: result: no" >&5 |
7535 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7536 | fi |
e6cc62c6 | 7537 | |
10f2d63a | 7538 | |
5005acfe | 7539 | enablestring= |
e6cc62c6 VS |
7540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7541 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7542 | no_cache=0 |
7543 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7544 | if test "${enable_statbmp+set}" = set; then | |
7545 | enableval="$enable_statbmp" | |
e6cc62c6 | 7546 | |
10f2d63a VZ |
7547 | if test "$enableval" = yes; then |
7548 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7549 | else | |
7550 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7551 | fi | |
e6cc62c6 | 7552 | |
10f2d63a | 7553 | else |
e6cc62c6 | 7554 | |
10f2d63a VZ |
7555 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7556 | if test "x$LINE" != x ; then | |
7557 | eval "DEFAULT_$LINE" | |
7558 | else | |
7559 | no_cache=1 | |
7560 | fi | |
7561 | ||
7562 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7563 | |
e6cc62c6 | 7564 | fi; |
10f2d63a VZ |
7565 | |
7566 | eval "$ac_cv_use_statbmp" | |
7567 | if test "$no_cache" != 1; then | |
7568 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7569 | fi | |
7570 | ||
7571 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7572 | echo "$as_me:$LINENO: result: yes" >&5 |
7573 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7574 | else |
e6cc62c6 VS |
7575 | echo "$as_me:$LINENO: result: no" >&5 |
7576 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7577 | fi |
e6cc62c6 | 7578 | |
10f2d63a | 7579 | |
5005acfe | 7580 | enablestring= |
e6cc62c6 VS |
7581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7582 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7583 | no_cache=0 |
7584 | # Check whether --enable-statbox or --disable-statbox was given. | |
7585 | if test "${enable_statbox+set}" = set; then | |
7586 | enableval="$enable_statbox" | |
e6cc62c6 | 7587 | |
10f2d63a VZ |
7588 | if test "$enableval" = yes; then |
7589 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7590 | else | |
7591 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7592 | fi | |
e6cc62c6 | 7593 | |
10f2d63a | 7594 | else |
e6cc62c6 | 7595 | |
10f2d63a VZ |
7596 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7597 | if test "x$LINE" != x ; then | |
7598 | eval "DEFAULT_$LINE" | |
7599 | else | |
7600 | no_cache=1 | |
7601 | fi | |
7602 | ||
7603 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7604 | |
e6cc62c6 | 7605 | fi; |
10f2d63a VZ |
7606 | |
7607 | eval "$ac_cv_use_statbox" | |
7608 | if test "$no_cache" != 1; then | |
7609 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7610 | fi | |
7611 | ||
7612 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7613 | echo "$as_me:$LINENO: result: yes" >&5 |
7614 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7615 | else |
e6cc62c6 VS |
7616 | echo "$as_me:$LINENO: result: no" >&5 |
7617 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7618 | fi |
e6cc62c6 | 7619 | |
10f2d63a | 7620 | |
5005acfe | 7621 | enablestring= |
e6cc62c6 VS |
7622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7623 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7624 | no_cache=0 |
7625 | # Check whether --enable-statline or --disable-statline was given. | |
7626 | if test "${enable_statline+set}" = set; then | |
7627 | enableval="$enable_statline" | |
e6cc62c6 | 7628 | |
10f2d63a VZ |
7629 | if test "$enableval" = yes; then |
7630 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7631 | else | |
7632 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7633 | fi | |
e6cc62c6 | 7634 | |
10f2d63a | 7635 | else |
e6cc62c6 | 7636 | |
10f2d63a VZ |
7637 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7638 | if test "x$LINE" != x ; then | |
7639 | eval "DEFAULT_$LINE" | |
7640 | else | |
7641 | no_cache=1 | |
7642 | fi | |
7643 | ||
7644 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7645 | |
e6cc62c6 | 7646 | fi; |
10f2d63a VZ |
7647 | |
7648 | eval "$ac_cv_use_statline" | |
7649 | if test "$no_cache" != 1; then | |
7650 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7651 | fi | |
7652 | ||
7653 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7654 | echo "$as_me:$LINENO: result: yes" >&5 |
7655 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7656 | else |
e6cc62c6 VS |
7657 | echo "$as_me:$LINENO: result: no" >&5 |
7658 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7659 | fi |
e6cc62c6 | 7660 | |
10f2d63a | 7661 | |
5005acfe | 7662 | enablestring= |
e6cc62c6 VS |
7663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7664 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7665 | no_cache=0 |
7666 | # Check whether --enable-stattext or --disable-stattext was given. | |
7667 | if test "${enable_stattext+set}" = set; then | |
7668 | enableval="$enable_stattext" | |
e6cc62c6 | 7669 | |
1e6feb95 VZ |
7670 | if test "$enableval" = yes; then |
7671 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7672 | else | |
7673 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7674 | fi | |
e6cc62c6 | 7675 | |
1e6feb95 | 7676 | else |
e6cc62c6 | 7677 | |
1e6feb95 VZ |
7678 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7679 | if test "x$LINE" != x ; then | |
7680 | eval "DEFAULT_$LINE" | |
7681 | else | |
7682 | no_cache=1 | |
7683 | fi | |
7684 | ||
7685 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7686 | |
e6cc62c6 | 7687 | fi; |
1e6feb95 VZ |
7688 | |
7689 | eval "$ac_cv_use_stattext" | |
7690 | if test "$no_cache" != 1; then | |
7691 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7692 | fi | |
7693 | ||
7694 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7695 | echo "$as_me:$LINENO: result: yes" >&5 |
7696 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7697 | else |
e6cc62c6 VS |
7698 | echo "$as_me:$LINENO: result: no" >&5 |
7699 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7700 | fi |
e6cc62c6 | 7701 | |
1e6feb95 | 7702 | |
5005acfe | 7703 | enablestring= |
e6cc62c6 VS |
7704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7705 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7706 | no_cache=0 |
7707 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7708 | if test "${enable_statusbar+set}" = set; then | |
7709 | enableval="$enable_statusbar" | |
e6cc62c6 | 7710 | |
10f2d63a VZ |
7711 | if test "$enableval" = yes; then |
7712 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7713 | else | |
7714 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7715 | fi | |
e6cc62c6 | 7716 | |
10f2d63a | 7717 | else |
e6cc62c6 | 7718 | |
10f2d63a VZ |
7719 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7720 | if test "x$LINE" != x ; then | |
7721 | eval "DEFAULT_$LINE" | |
7722 | else | |
7723 | no_cache=1 | |
7724 | fi | |
7725 | ||
7726 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7727 | |
e6cc62c6 | 7728 | fi; |
10f2d63a VZ |
7729 | |
7730 | eval "$ac_cv_use_statusbar" | |
7731 | if test "$no_cache" != 1; then | |
7732 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7733 | fi | |
7734 | ||
7735 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7736 | echo "$as_me:$LINENO: result: yes" >&5 |
7737 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7738 | else |
e6cc62c6 VS |
7739 | echo "$as_me:$LINENO: result: no" >&5 |
7740 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7741 | fi |
e6cc62c6 | 7742 | |
10f2d63a | 7743 | |
5005acfe | 7744 | enablestring= |
e6cc62c6 VS |
7745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7746 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7747 | no_cache=0 |
7748 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7749 | if test "${enable_tabdialog+set}" = set; then | |
7750 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7751 | |
10f2d63a VZ |
7752 | if test "$enableval" = yes; then |
7753 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7754 | else | |
7755 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7756 | fi | |
e6cc62c6 | 7757 | |
10f2d63a | 7758 | else |
e6cc62c6 | 7759 | |
10f2d63a VZ |
7760 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7761 | if test "x$LINE" != x ; then | |
7762 | eval "DEFAULT_$LINE" | |
7763 | else | |
7764 | no_cache=1 | |
7765 | fi | |
7766 | ||
7767 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7768 | |
e6cc62c6 | 7769 | fi; |
10f2d63a VZ |
7770 | |
7771 | eval "$ac_cv_use_tabdialog" | |
7772 | if test "$no_cache" != 1; then | |
7773 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7774 | fi | |
7775 | ||
7776 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7777 | echo "$as_me:$LINENO: result: yes" >&5 |
7778 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7779 | else |
e6cc62c6 VS |
7780 | echo "$as_me:$LINENO: result: no" >&5 |
7781 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7782 | fi |
e6cc62c6 | 7783 | |
10f2d63a | 7784 | |
5005acfe | 7785 | enablestring= |
e6cc62c6 VS |
7786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7787 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7788 | no_cache=0 |
7789 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7790 | if test "${enable_textctrl+set}" = set; then | |
7791 | enableval="$enable_textctrl" | |
e6cc62c6 | 7792 | |
1e6feb95 VZ |
7793 | if test "$enableval" = yes; then |
7794 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7795 | else | |
7796 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7797 | fi | |
e6cc62c6 | 7798 | |
1e6feb95 | 7799 | else |
e6cc62c6 | 7800 | |
1e6feb95 VZ |
7801 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7802 | if test "x$LINE" != x ; then | |
7803 | eval "DEFAULT_$LINE" | |
7804 | else | |
7805 | no_cache=1 | |
7806 | fi | |
7807 | ||
7808 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7809 | |
e6cc62c6 | 7810 | fi; |
1e6feb95 VZ |
7811 | |
7812 | eval "$ac_cv_use_textctrl" | |
7813 | if test "$no_cache" != 1; then | |
7814 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7815 | fi | |
7816 | ||
7817 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7818 | echo "$as_me:$LINENO: result: yes" >&5 |
7819 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7820 | else |
e6cc62c6 VS |
7821 | echo "$as_me:$LINENO: result: no" >&5 |
7822 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7823 | fi |
e6cc62c6 | 7824 | |
1e6feb95 | 7825 | |
5005acfe | 7826 | enablestring= |
e6cc62c6 VS |
7827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7828 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7829 | no_cache=0 |
7830 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7831 | if test "${enable_togglebtn+set}" = set; then | |
7832 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7833 | |
1db8dc4a VZ |
7834 | if test "$enableval" = yes; then |
7835 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7836 | else | |
7837 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7838 | fi | |
e6cc62c6 | 7839 | |
1db8dc4a | 7840 | else |
e6cc62c6 | 7841 | |
1db8dc4a VZ |
7842 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7843 | if test "x$LINE" != x ; then | |
7844 | eval "DEFAULT_$LINE" | |
7845 | else | |
7846 | no_cache=1 | |
7847 | fi | |
7848 | ||
7849 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7850 | |
e6cc62c6 | 7851 | fi; |
1db8dc4a VZ |
7852 | |
7853 | eval "$ac_cv_use_togglebtn" | |
7854 | if test "$no_cache" != 1; then | |
7855 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7856 | fi | |
7857 | ||
7858 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7859 | echo "$as_me:$LINENO: result: yes" >&5 |
7860 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7861 | else |
e6cc62c6 VS |
7862 | echo "$as_me:$LINENO: result: no" >&5 |
7863 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7864 | fi |
e6cc62c6 | 7865 | |
1db8dc4a | 7866 | |
5005acfe | 7867 | enablestring= |
e6cc62c6 VS |
7868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7869 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7870 | no_cache=0 |
7871 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7872 | if test "${enable_toolbar+set}" = set; then | |
7873 | enableval="$enable_toolbar" | |
e6cc62c6 | 7874 | |
10f2d63a VZ |
7875 | if test "$enableval" = yes; then |
7876 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7877 | else | |
7878 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7879 | fi | |
e6cc62c6 | 7880 | |
10f2d63a | 7881 | else |
e6cc62c6 | 7882 | |
10f2d63a VZ |
7883 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7884 | if test "x$LINE" != x ; then | |
7885 | eval "DEFAULT_$LINE" | |
7886 | else | |
7887 | no_cache=1 | |
7888 | fi | |
7889 | ||
7890 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7891 | |
e6cc62c6 | 7892 | fi; |
10f2d63a VZ |
7893 | |
7894 | eval "$ac_cv_use_toolbar" | |
7895 | if test "$no_cache" != 1; then | |
7896 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7897 | fi | |
7898 | ||
7899 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7900 | echo "$as_me:$LINENO: result: yes" >&5 |
7901 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7902 | else |
e6cc62c6 VS |
7903 | echo "$as_me:$LINENO: result: no" >&5 |
7904 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7905 | fi |
e6cc62c6 | 7906 | |
10f2d63a | 7907 | |
5005acfe | 7908 | enablestring= |
e6cc62c6 VS |
7909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7910 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7911 | no_cache=0 |
7912 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7913 | if test "${enable_tbarnative+set}" = set; then | |
7914 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7915 | |
360d6699 VZ |
7916 | if test "$enableval" = yes; then |
7917 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7918 | else | |
7919 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7920 | fi | |
e6cc62c6 | 7921 | |
360d6699 | 7922 | else |
e6cc62c6 | 7923 | |
360d6699 VZ |
7924 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7925 | if test "x$LINE" != x ; then | |
7926 | eval "DEFAULT_$LINE" | |
7927 | else | |
7928 | no_cache=1 | |
7929 | fi | |
7930 | ||
7931 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7932 | |
e6cc62c6 | 7933 | fi; |
360d6699 VZ |
7934 | |
7935 | eval "$ac_cv_use_tbarnative" | |
7936 | if test "$no_cache" != 1; then | |
7937 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7938 | fi | |
7939 | ||
7940 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7941 | echo "$as_me:$LINENO: result: yes" >&5 |
7942 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7943 | else |
e6cc62c6 VS |
7944 | echo "$as_me:$LINENO: result: no" >&5 |
7945 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7946 | fi |
e6cc62c6 | 7947 | |
360d6699 | 7948 | |
5005acfe | 7949 | enablestring= |
e6cc62c6 VS |
7950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7951 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7952 | no_cache=0 |
7953 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7954 | if test "${enable_tbarsmpl+set}" = set; then | |
7955 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7956 | |
360d6699 VZ |
7957 | if test "$enableval" = yes; then |
7958 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7959 | else | |
7960 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7961 | fi | |
e6cc62c6 | 7962 | |
360d6699 | 7963 | else |
e6cc62c6 | 7964 | |
360d6699 VZ |
7965 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7966 | if test "x$LINE" != x ; then | |
7967 | eval "DEFAULT_$LINE" | |
7968 | else | |
7969 | no_cache=1 | |
7970 | fi | |
7971 | ||
7972 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7973 | |
e6cc62c6 | 7974 | fi; |
360d6699 VZ |
7975 | |
7976 | eval "$ac_cv_use_tbarsmpl" | |
7977 | if test "$no_cache" != 1; then | |
7978 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7979 | fi | |
7980 | ||
7981 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
7982 | echo "$as_me:$LINENO: result: yes" >&5 |
7983 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7984 | else |
e6cc62c6 VS |
7985 | echo "$as_me:$LINENO: result: no" >&5 |
7986 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7987 | fi |
e6cc62c6 | 7988 | |
360d6699 | 7989 | |
5005acfe | 7990 | enablestring= |
e6cc62c6 VS |
7991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
7992 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7993 | no_cache=0 |
7994 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7995 | if test "${enable_treectrl+set}" = set; then | |
7996 | enableval="$enable_treectrl" | |
e6cc62c6 | 7997 | |
10f2d63a VZ |
7998 | if test "$enableval" = yes; then |
7999 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8000 | else | |
8001 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8002 | fi | |
e6cc62c6 | 8003 | |
10f2d63a | 8004 | else |
e6cc62c6 | 8005 | |
10f2d63a VZ |
8006 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8007 | if test "x$LINE" != x ; then | |
8008 | eval "DEFAULT_$LINE" | |
8009 | else | |
8010 | no_cache=1 | |
8011 | fi | |
8012 | ||
8013 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8014 | |
e6cc62c6 | 8015 | fi; |
10f2d63a | 8016 | |
1e6feb95 VZ |
8017 | eval "$ac_cv_use_treectrl" |
8018 | if test "$no_cache" != 1; then | |
8019 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8020 | fi | |
8021 | ||
8022 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8023 | echo "$as_me:$LINENO: result: yes" >&5 |
8024 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8025 | else |
e6cc62c6 VS |
8026 | echo "$as_me:$LINENO: result: no" >&5 |
8027 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8028 | fi |
e6cc62c6 | 8029 | |
1e6feb95 | 8030 | |
5005acfe | 8031 | enablestring= |
e6cc62c6 VS |
8032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8033 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8034 | no_cache=0 |
8035 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8036 | if test "${enable_tipwindow+set}" = set; then | |
8037 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8038 | |
9926e4a4 VZ |
8039 | if test "$enableval" = yes; then |
8040 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8041 | else | |
8042 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8043 | fi | |
e6cc62c6 | 8044 | |
9926e4a4 | 8045 | else |
e6cc62c6 | 8046 | |
9926e4a4 VZ |
8047 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8048 | if test "x$LINE" != x ; then | |
8049 | eval "DEFAULT_$LINE" | |
8050 | else | |
8051 | no_cache=1 | |
8052 | fi | |
8053 | ||
8054 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8055 | |
e6cc62c6 | 8056 | fi; |
9926e4a4 VZ |
8057 | |
8058 | eval "$ac_cv_use_tipwindow" | |
8059 | if test "$no_cache" != 1; then | |
8060 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8061 | fi | |
8062 | ||
8063 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8064 | echo "$as_me:$LINENO: result: yes" >&5 |
8065 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8066 | else |
e6cc62c6 VS |
8067 | echo "$as_me:$LINENO: result: no" >&5 |
8068 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8069 | fi |
e6cc62c6 | 8070 | |
9926e4a4 | 8071 | |
5005acfe | 8072 | enablestring= |
e6cc62c6 VS |
8073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8074 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8075 | no_cache=0 |
8076 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8077 | if test "${enable_popupwin+set}" = set; then | |
8078 | enableval="$enable_popupwin" | |
e6cc62c6 | 8079 | |
9f41d601 RR |
8080 | if test "$enableval" = yes; then |
8081 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8082 | else | |
8083 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8084 | fi | |
e6cc62c6 | 8085 | |
9f41d601 | 8086 | else |
e6cc62c6 | 8087 | |
9f41d601 RR |
8088 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8096 | |
e6cc62c6 | 8097 | fi; |
9f41d601 RR |
8098 | |
8099 | eval "$ac_cv_use_popupwin" | |
8100 | if test "$no_cache" != 1; then | |
8101 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8102 | fi | |
8103 | ||
8104 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8105 | echo "$as_me:$LINENO: result: yes" >&5 |
8106 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8107 | else |
e6cc62c6 VS |
8108 | echo "$as_me:$LINENO: result: no" >&5 |
8109 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8110 | fi |
e6cc62c6 | 8111 | |
52127426 | 8112 | |
8284b0c5 MB |
8113 | |
8114 | ||
5005acfe | 8115 | enablestring= |
e6cc62c6 VS |
8116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8117 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8118 | no_cache=0 |
8119 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8120 | if test "${enable_commondlg+set}" = set; then | |
8121 | enableval="$enable_commondlg" | |
e6cc62c6 | 8122 | |
1e6feb95 VZ |
8123 | if test "$enableval" = yes; then |
8124 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8125 | else | |
8126 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8127 | fi | |
e6cc62c6 | 8128 | |
1e6feb95 | 8129 | else |
e6cc62c6 | 8130 | |
1e6feb95 VZ |
8131 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8132 | if test "x$LINE" != x ; then | |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
8138 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8139 | |
e6cc62c6 | 8140 | fi; |
1e6feb95 VZ |
8141 | |
8142 | eval "$ac_cv_use_commondlg" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8148 | echo "$as_me:$LINENO: result: yes" >&5 |
8149 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8150 | else |
e6cc62c6 VS |
8151 | echo "$as_me:$LINENO: result: no" >&5 |
8152 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8153 | fi |
e6cc62c6 | 8154 | |
1e6feb95 | 8155 | |
5005acfe | 8156 | enablestring= |
e6cc62c6 VS |
8157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8158 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8159 | no_cache=0 |
8160 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8161 | if test "${enable_choicedlg+set}" = set; then | |
8162 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8163 | |
1e6feb95 VZ |
8164 | if test "$enableval" = yes; then |
8165 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8166 | else | |
8167 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8168 | fi | |
e6cc62c6 | 8169 | |
1e6feb95 | 8170 | else |
e6cc62c6 | 8171 | |
1e6feb95 VZ |
8172 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8180 | |
e6cc62c6 | 8181 | fi; |
1e6feb95 VZ |
8182 | |
8183 | eval "$ac_cv_use_choicedlg" | |
8184 | if test "$no_cache" != 1; then | |
8185 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8186 | fi | |
8187 | ||
8188 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8189 | echo "$as_me:$LINENO: result: yes" >&5 |
8190 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8191 | else |
e6cc62c6 VS |
8192 | echo "$as_me:$LINENO: result: no" >&5 |
8193 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8194 | fi |
e6cc62c6 | 8195 | |
1e6feb95 | 8196 | |
5005acfe | 8197 | enablestring= |
e6cc62c6 VS |
8198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8199 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8200 | no_cache=0 |
8201 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8202 | if test "${enable_coldlg+set}" = set; then | |
8203 | enableval="$enable_coldlg" | |
e6cc62c6 | 8204 | |
1e6feb95 VZ |
8205 | if test "$enableval" = yes; then |
8206 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8207 | else | |
8208 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8209 | fi | |
e6cc62c6 | 8210 | |
1e6feb95 | 8211 | else |
e6cc62c6 | 8212 | |
1e6feb95 VZ |
8213 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8214 | if test "x$LINE" != x ; then | |
8215 | eval "DEFAULT_$LINE" | |
8216 | else | |
8217 | no_cache=1 | |
8218 | fi | |
8219 | ||
8220 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8221 | |
e6cc62c6 | 8222 | fi; |
1e6feb95 VZ |
8223 | |
8224 | eval "$ac_cv_use_coldlg" | |
8225 | if test "$no_cache" != 1; then | |
8226 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8227 | fi | |
8228 | ||
8229 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8230 | echo "$as_me:$LINENO: result: yes" >&5 |
8231 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8232 | else |
e6cc62c6 VS |
8233 | echo "$as_me:$LINENO: result: no" >&5 |
8234 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8235 | fi |
e6cc62c6 | 8236 | |
1e6feb95 | 8237 | |
5005acfe | 8238 | enablestring= |
e6cc62c6 VS |
8239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8240 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8241 | no_cache=0 |
8242 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8243 | if test "${enable_filedlg+set}" = set; then | |
8244 | enableval="$enable_filedlg" | |
e6cc62c6 | 8245 | |
1e6feb95 VZ |
8246 | if test "$enableval" = yes; then |
8247 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8248 | else | |
8249 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8250 | fi | |
e6cc62c6 | 8251 | |
1e6feb95 | 8252 | else |
e6cc62c6 | 8253 | |
1e6feb95 VZ |
8254 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8255 | if test "x$LINE" != x ; then | |
8256 | eval "DEFAULT_$LINE" | |
8257 | else | |
8258 | no_cache=1 | |
8259 | fi | |
8260 | ||
8261 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8262 | |
e6cc62c6 | 8263 | fi; |
1e6feb95 VZ |
8264 | |
8265 | eval "$ac_cv_use_filedlg" | |
8266 | if test "$no_cache" != 1; then | |
8267 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8268 | fi | |
8269 | ||
8270 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8271 | echo "$as_me:$LINENO: result: yes" >&5 |
8272 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8273 | else |
e6cc62c6 VS |
8274 | echo "$as_me:$LINENO: result: no" >&5 |
8275 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8276 | fi |
e6cc62c6 | 8277 | |
1e6feb95 | 8278 | |
5005acfe | 8279 | enablestring= |
e6cc62c6 VS |
8280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8281 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8282 | no_cache=0 |
69d27ff7 MB |
8283 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8284 | if test "${enable_finddlg+set}" = set; then | |
8285 | enableval="$enable_finddlg" | |
e6cc62c6 | 8286 | |
8db37e06 | 8287 | if test "$enableval" = yes; then |
69d27ff7 | 8288 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8289 | else |
69d27ff7 | 8290 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8291 | fi |
e6cc62c6 | 8292 | |
8db37e06 | 8293 | else |
e6cc62c6 | 8294 | |
8db37e06 VZ |
8295 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8296 | if test "x$LINE" != x ; then | |
8297 | eval "DEFAULT_$LINE" | |
8298 | else | |
8299 | no_cache=1 | |
8300 | fi | |
8301 | ||
69d27ff7 | 8302 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8303 | |
e6cc62c6 | 8304 | fi; |
8db37e06 | 8305 | |
69d27ff7 | 8306 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8307 | if test "$no_cache" != 1; then |
69d27ff7 | 8308 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8309 | fi |
8310 | ||
8311 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8312 | echo "$as_me:$LINENO: result: yes" >&5 |
8313 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8314 | else |
e6cc62c6 VS |
8315 | echo "$as_me:$LINENO: result: no" >&5 |
8316 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8317 | fi |
e6cc62c6 | 8318 | |
8db37e06 | 8319 | |
5005acfe | 8320 | enablestring= |
e6cc62c6 VS |
8321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8322 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8323 | no_cache=0 |
8324 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8325 | if test "${enable_fontdlg+set}" = set; then | |
8326 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8327 | |
1e6feb95 VZ |
8328 | if test "$enableval" = yes; then |
8329 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8330 | else | |
8331 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8332 | fi | |
e6cc62c6 | 8333 | |
1e6feb95 | 8334 | else |
e6cc62c6 | 8335 | |
1e6feb95 VZ |
8336 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8337 | if test "x$LINE" != x ; then | |
8338 | eval "DEFAULT_$LINE" | |
8339 | else | |
8340 | no_cache=1 | |
8341 | fi | |
8342 | ||
8343 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8344 | |
e6cc62c6 | 8345 | fi; |
1e6feb95 VZ |
8346 | |
8347 | eval "$ac_cv_use_fontdlg" | |
8348 | if test "$no_cache" != 1; then | |
8349 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8350 | fi | |
8351 | ||
8352 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8353 | echo "$as_me:$LINENO: result: yes" >&5 |
8354 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8355 | else |
e6cc62c6 VS |
8356 | echo "$as_me:$LINENO: result: no" >&5 |
8357 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8358 | fi |
e6cc62c6 | 8359 | |
1e6feb95 | 8360 | |
5005acfe | 8361 | enablestring= |
e6cc62c6 VS |
8362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8363 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8364 | no_cache=0 |
8365 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8366 | if test "${enable_dirdlg+set}" = set; then | |
8367 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8368 | |
1e6feb95 VZ |
8369 | if test "$enableval" = yes; then |
8370 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8371 | else | |
8372 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8373 | fi | |
e6cc62c6 | 8374 | |
1e6feb95 | 8375 | else |
e6cc62c6 | 8376 | |
1e6feb95 VZ |
8377 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8378 | if test "x$LINE" != x ; then | |
8379 | eval "DEFAULT_$LINE" | |
8380 | else | |
8381 | no_cache=1 | |
8382 | fi | |
8383 | ||
8384 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8385 | |
e6cc62c6 | 8386 | fi; |
1e6feb95 VZ |
8387 | |
8388 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8389 | if test "$no_cache" != 1; then |
1e6feb95 | 8390 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8391 | fi |
8392 | ||
1e6feb95 | 8393 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8394 | echo "$as_me:$LINENO: result: yes" >&5 |
8395 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8396 | else |
e6cc62c6 VS |
8397 | echo "$as_me:$LINENO: result: no" >&5 |
8398 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8399 | fi |
e6cc62c6 | 8400 | |
698dcdb6 | 8401 | |
5005acfe | 8402 | enablestring= |
e6cc62c6 VS |
8403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8404 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8405 | no_cache=0 |
1e6feb95 VZ |
8406 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8407 | if test "${enable_msgdlg+set}" = set; then | |
8408 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8409 | |
10f2d63a | 8410 | if test "$enableval" = yes; then |
1e6feb95 | 8411 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8412 | else |
1e6feb95 | 8413 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8414 | fi |
e6cc62c6 | 8415 | |
10f2d63a | 8416 | else |
e6cc62c6 | 8417 | |
1e6feb95 | 8418 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8419 | if test "x$LINE" != x ; then |
8420 | eval "DEFAULT_$LINE" | |
8421 | else | |
8422 | no_cache=1 | |
8423 | fi | |
8424 | ||
1e6feb95 | 8425 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8426 | |
e6cc62c6 | 8427 | fi; |
10f2d63a | 8428 | |
1e6feb95 | 8429 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8430 | if test "$no_cache" != 1; then |
1e6feb95 | 8431 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8432 | fi |
8433 | ||
1e6feb95 | 8434 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8435 | echo "$as_me:$LINENO: result: yes" >&5 |
8436 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8437 | else |
e6cc62c6 VS |
8438 | echo "$as_me:$LINENO: result: no" >&5 |
8439 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8440 | fi |
e6cc62c6 | 8441 | |
10f2d63a | 8442 | |
5005acfe | 8443 | enablestring= |
e6cc62c6 VS |
8444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8445 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8446 | no_cache=0 |
1e6feb95 VZ |
8447 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8448 | if test "${enable_numberdlg+set}" = set; then | |
8449 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8450 | |
10f2d63a | 8451 | if test "$enableval" = yes; then |
1e6feb95 | 8452 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8453 | else |
1e6feb95 | 8454 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8455 | fi |
e6cc62c6 | 8456 | |
10f2d63a | 8457 | else |
e6cc62c6 | 8458 | |
1e6feb95 | 8459 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8460 | if test "x$LINE" != x ; then |
8461 | eval "DEFAULT_$LINE" | |
8462 | else | |
8463 | no_cache=1 | |
8464 | fi | |
8465 | ||
1e6feb95 | 8466 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8467 | |
e6cc62c6 | 8468 | fi; |
10f2d63a | 8469 | |
1e6feb95 | 8470 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8471 | if test "$no_cache" != 1; then |
1e6feb95 | 8472 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8473 | fi |
8474 | ||
1e6feb95 | 8475 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8476 | echo "$as_me:$LINENO: result: yes" >&5 |
8477 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8478 | else |
e6cc62c6 VS |
8479 | echo "$as_me:$LINENO: result: no" >&5 |
8480 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8481 | fi |
e6cc62c6 | 8482 | |
10f2d63a | 8483 | |
5005acfe | 8484 | enablestring= |
e6cc62c6 VS |
8485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8486 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8487 | no_cache=0 |
8488 | # Check whether --enable-splash or --disable-splash was given. | |
8489 | if test "${enable_splash+set}" = set; then | |
8490 | enableval="$enable_splash" | |
e6cc62c6 | 8491 | |
cbca9943 VZ |
8492 | if test "$enableval" = yes; then |
8493 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8494 | else | |
8495 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8496 | fi | |
e6cc62c6 | 8497 | |
cbca9943 | 8498 | else |
e6cc62c6 | 8499 | |
cbca9943 VZ |
8500 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8501 | if test "x$LINE" != x ; then | |
8502 | eval "DEFAULT_$LINE" | |
8503 | else | |
8504 | no_cache=1 | |
8505 | fi | |
8506 | ||
8507 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8508 | |
e6cc62c6 | 8509 | fi; |
cbca9943 VZ |
8510 | |
8511 | eval "$ac_cv_use_splash" | |
8512 | if test "$no_cache" != 1; then | |
8513 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8514 | fi | |
8515 | ||
8516 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8517 | echo "$as_me:$LINENO: result: yes" >&5 |
8518 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8519 | else |
e6cc62c6 VS |
8520 | echo "$as_me:$LINENO: result: no" >&5 |
8521 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8522 | fi |
e6cc62c6 | 8523 | |
cbca9943 | 8524 | |
5005acfe | 8525 | enablestring= |
e6cc62c6 VS |
8526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8527 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8528 | no_cache=0 |
8529 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8530 | if test "${enable_textdlg+set}" = set; then | |
8531 | enableval="$enable_textdlg" | |
e6cc62c6 | 8532 | |
10f2d63a VZ |
8533 | if test "$enableval" = yes; then |
8534 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8535 | else | |
8536 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8537 | fi | |
e6cc62c6 | 8538 | |
10f2d63a | 8539 | else |
e6cc62c6 | 8540 | |
10f2d63a VZ |
8541 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8542 | if test "x$LINE" != x ; then | |
8543 | eval "DEFAULT_$LINE" | |
8544 | else | |
8545 | no_cache=1 | |
8546 | fi | |
8547 | ||
8548 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8549 | |
e6cc62c6 | 8550 | fi; |
10f2d63a VZ |
8551 | |
8552 | eval "$ac_cv_use_textdlg" | |
8553 | if test "$no_cache" != 1; then | |
8554 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8555 | fi | |
8556 | ||
8557 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8558 | echo "$as_me:$LINENO: result: yes" >&5 |
8559 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8560 | else |
e6cc62c6 VS |
8561 | echo "$as_me:$LINENO: result: no" >&5 |
8562 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8563 | fi |
e6cc62c6 | 8564 | |
10f2d63a | 8565 | |
5005acfe | 8566 | enablestring= |
e6cc62c6 VS |
8567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8568 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8569 | no_cache=0 |
8570 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8571 | if test "${enable_tipdlg+set}" = set; then | |
8572 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8573 | |
10f2d63a VZ |
8574 | if test "$enableval" = yes; then |
8575 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8576 | else | |
8577 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8578 | fi | |
e6cc62c6 | 8579 | |
10f2d63a | 8580 | else |
e6cc62c6 | 8581 | |
10f2d63a VZ |
8582 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8583 | if test "x$LINE" != x ; then | |
8584 | eval "DEFAULT_$LINE" | |
8585 | else | |
8586 | no_cache=1 | |
8587 | fi | |
8588 | ||
8589 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8590 | |
e6cc62c6 | 8591 | fi; |
10f2d63a VZ |
8592 | |
8593 | eval "$ac_cv_use_tipdlg" | |
8594 | if test "$no_cache" != 1; then | |
8595 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8596 | fi | |
8597 | ||
8598 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8599 | echo "$as_me:$LINENO: result: yes" >&5 |
8600 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8601 | else |
e6cc62c6 VS |
8602 | echo "$as_me:$LINENO: result: no" >&5 |
8603 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8604 | fi |
e6cc62c6 | 8605 | |
10f2d63a | 8606 | |
5005acfe | 8607 | enablestring= |
e6cc62c6 VS |
8608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8609 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8610 | no_cache=0 |
8611 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8612 | if test "${enable_progressdlg+set}" = set; then | |
8613 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8614 | |
10f2d63a VZ |
8615 | if test "$enableval" = yes; then |
8616 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8617 | else | |
8618 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8619 | fi | |
e6cc62c6 | 8620 | |
10f2d63a | 8621 | else |
e6cc62c6 | 8622 | |
10f2d63a VZ |
8623 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8624 | if test "x$LINE" != x ; then | |
8625 | eval "DEFAULT_$LINE" | |
8626 | else | |
8627 | no_cache=1 | |
8628 | fi | |
8629 | ||
8630 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8631 | |
e6cc62c6 | 8632 | fi; |
10f2d63a VZ |
8633 | |
8634 | eval "$ac_cv_use_progressdlg" | |
8635 | if test "$no_cache" != 1; then | |
8636 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8637 | fi | |
8638 | ||
8639 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8640 | echo "$as_me:$LINENO: result: yes" >&5 |
8641 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8642 | else |
e6cc62c6 VS |
8643 | echo "$as_me:$LINENO: result: no" >&5 |
8644 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8645 | fi |
e6cc62c6 | 8646 | |
10f2d63a | 8647 | |
5005acfe | 8648 | enablestring= |
e6cc62c6 VS |
8649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8650 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8651 | no_cache=0 |
8652 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8653 | if test "${enable_wizarddlg+set}" = set; then | |
8654 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8655 | |
b1f5d087 VZ |
8656 | if test "$enableval" = yes; then |
8657 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8658 | else | |
8659 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8660 | fi | |
e6cc62c6 | 8661 | |
b1f5d087 | 8662 | else |
e6cc62c6 | 8663 | |
b1f5d087 VZ |
8664 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8665 | if test "x$LINE" != x ; then | |
8666 | eval "DEFAULT_$LINE" | |
8667 | else | |
8668 | no_cache=1 | |
8669 | fi | |
8670 | ||
8671 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8672 | |
e6cc62c6 | 8673 | fi; |
b1f5d087 VZ |
8674 | |
8675 | eval "$ac_cv_use_wizarddlg" | |
8676 | if test "$no_cache" != 1; then | |
8677 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8678 | fi | |
8679 | ||
8680 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8681 | echo "$as_me:$LINENO: result: yes" >&5 |
8682 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8683 | else |
e6cc62c6 VS |
8684 | echo "$as_me:$LINENO: result: no" >&5 |
8685 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8686 | fi |
e6cc62c6 | 8687 | |
8284b0c5 MB |
8688 | |
8689 | ||
52127426 | 8690 | |
5005acfe | 8691 | enablestring= |
e6cc62c6 VS |
8692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8693 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8694 | no_cache=0 |
8695 | # Check whether --enable-menus or --disable-menus was given. | |
8696 | if test "${enable_menus+set}" = set; then | |
8697 | enableval="$enable_menus" | |
e6cc62c6 | 8698 | |
1e6feb95 VZ |
8699 | if test "$enableval" = yes; then |
8700 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8701 | else | |
8702 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8703 | fi | |
e6cc62c6 | 8704 | |
1e6feb95 | 8705 | else |
e6cc62c6 | 8706 | |
1e6feb95 VZ |
8707 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8708 | if test "x$LINE" != x ; then | |
8709 | eval "DEFAULT_$LINE" | |
8710 | else | |
8711 | no_cache=1 | |
8712 | fi | |
8713 | ||
8714 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8715 | |
e6cc62c6 | 8716 | fi; |
1e6feb95 VZ |
8717 | |
8718 | eval "$ac_cv_use_menus" | |
8719 | if test "$no_cache" != 1; then | |
8720 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8721 | fi | |
8722 | ||
8723 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8724 | echo "$as_me:$LINENO: result: yes" >&5 |
8725 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8726 | else |
e6cc62c6 VS |
8727 | echo "$as_me:$LINENO: result: no" >&5 |
8728 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8729 | fi |
e6cc62c6 | 8730 | |
1e6feb95 | 8731 | |
5005acfe | 8732 | enablestring= |
e6cc62c6 VS |
8733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8734 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8735 | no_cache=0 |
8736 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8737 | if test "${enable_miniframe+set}" = set; then | |
8738 | enableval="$enable_miniframe" | |
e6cc62c6 | 8739 | |
10f2d63a VZ |
8740 | if test "$enableval" = yes; then |
8741 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8742 | else | |
8743 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8744 | fi | |
e6cc62c6 | 8745 | |
10f2d63a | 8746 | else |
e6cc62c6 | 8747 | |
10f2d63a VZ |
8748 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8749 | if test "x$LINE" != x ; then | |
8750 | eval "DEFAULT_$LINE" | |
8751 | else | |
8752 | no_cache=1 | |
8753 | fi | |
8754 | ||
8755 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8756 | |
e6cc62c6 | 8757 | fi; |
10f2d63a VZ |
8758 | |
8759 | eval "$ac_cv_use_miniframe" | |
8760 | if test "$no_cache" != 1; then | |
8761 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8762 | fi | |
8763 | ||
8764 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8765 | echo "$as_me:$LINENO: result: yes" >&5 |
8766 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8767 | else |
e6cc62c6 VS |
8768 | echo "$as_me:$LINENO: result: no" >&5 |
8769 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8770 | fi |
e6cc62c6 | 8771 | |
10f2d63a | 8772 | |
5005acfe | 8773 | enablestring= |
e6cc62c6 VS |
8774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8775 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8776 | no_cache=0 |
8777 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8778 | if test "${enable_tooltips+set}" = set; then | |
8779 | enableval="$enable_tooltips" | |
e6cc62c6 | 8780 | |
10f2d63a VZ |
8781 | if test "$enableval" = yes; then |
8782 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8783 | else | |
8784 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8785 | fi | |
e6cc62c6 | 8786 | |
10f2d63a | 8787 | else |
e6cc62c6 | 8788 | |
10f2d63a VZ |
8789 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8790 | if test "x$LINE" != x ; then | |
8791 | eval "DEFAULT_$LINE" | |
8792 | else | |
8793 | no_cache=1 | |
8794 | fi | |
8795 | ||
8796 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8797 | |
e6cc62c6 | 8798 | fi; |
10f2d63a VZ |
8799 | |
8800 | eval "$ac_cv_use_tooltips" | |
8801 | if test "$no_cache" != 1; then | |
8802 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8803 | fi | |
8804 | ||
8805 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8806 | echo "$as_me:$LINENO: result: yes" >&5 |
8807 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8808 | else |
e6cc62c6 VS |
8809 | echo "$as_me:$LINENO: result: no" >&5 |
8810 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8811 | fi |
e6cc62c6 | 8812 | |
10f2d63a | 8813 | |
5005acfe | 8814 | enablestring= |
e6cc62c6 VS |
8815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8816 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8817 | no_cache=0 |
8818 | # Check whether --enable-splines or --disable-splines was given. | |
8819 | if test "${enable_splines+set}" = set; then | |
8820 | enableval="$enable_splines" | |
e6cc62c6 | 8821 | |
10f2d63a VZ |
8822 | if test "$enableval" = yes; then |
8823 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8824 | else | |
8825 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8826 | fi | |
e6cc62c6 | 8827 | |
10f2d63a | 8828 | else |
e6cc62c6 | 8829 | |
10f2d63a VZ |
8830 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8831 | if test "x$LINE" != x ; then | |
8832 | eval "DEFAULT_$LINE" | |
8833 | else | |
8834 | no_cache=1 | |
8835 | fi | |
8836 | ||
8837 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8838 | |
e6cc62c6 | 8839 | fi; |
10f2d63a VZ |
8840 | |
8841 | eval "$ac_cv_use_splines" | |
8842 | if test "$no_cache" != 1; then | |
8843 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8844 | fi | |
8845 | ||
8846 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8847 | echo "$as_me:$LINENO: result: yes" >&5 |
8848 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8849 | else |
e6cc62c6 VS |
8850 | echo "$as_me:$LINENO: result: no" >&5 |
8851 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8852 | fi |
e6cc62c6 | 8853 | |
10f2d63a | 8854 | |
5005acfe | 8855 | enablestring= |
e6cc62c6 VS |
8856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8857 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8858 | no_cache=0 |
8859 | # Check whether --enable-validators or --disable-validators was given. | |
8860 | if test "${enable_validators+set}" = set; then | |
8861 | enableval="$enable_validators" | |
e6cc62c6 | 8862 | |
10f2d63a VZ |
8863 | if test "$enableval" = yes; then |
8864 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8865 | else | |
8866 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8867 | fi | |
e6cc62c6 | 8868 | |
10f2d63a | 8869 | else |
e6cc62c6 | 8870 | |
10f2d63a VZ |
8871 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8872 | if test "x$LINE" != x ; then | |
8873 | eval "DEFAULT_$LINE" | |
8874 | else | |
8875 | no_cache=1 | |
8876 | fi | |
8877 | ||
8878 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8879 | |
e6cc62c6 | 8880 | fi; |
10f2d63a VZ |
8881 | |
8882 | eval "$ac_cv_use_validators" | |
8883 | if test "$no_cache" != 1; then | |
8884 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8885 | fi | |
8886 | ||
8887 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8888 | echo "$as_me:$LINENO: result: yes" >&5 |
8889 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8890 | else |
e6cc62c6 VS |
8891 | echo "$as_me:$LINENO: result: no" >&5 |
8892 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8893 | fi |
e6cc62c6 | 8894 | |
10f2d63a | 8895 | |
5005acfe | 8896 | enablestring= |
e6cc62c6 VS |
8897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8898 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8899 | no_cache=0 |
8900 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8901 | if test "${enable_busyinfo+set}" = set; then | |
8902 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8903 | |
10f2d63a VZ |
8904 | if test "$enableval" = yes; then |
8905 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8906 | else | |
8907 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8908 | fi | |
e6cc62c6 | 8909 | |
10f2d63a | 8910 | else |
e6cc62c6 | 8911 | |
10f2d63a VZ |
8912 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8913 | if test "x$LINE" != x ; then | |
8914 | eval "DEFAULT_$LINE" | |
8915 | else | |
8916 | no_cache=1 | |
8917 | fi | |
8918 | ||
8919 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8920 | |
e6cc62c6 | 8921 | fi; |
10f2d63a VZ |
8922 | |
8923 | eval "$ac_cv_use_busyinfo" | |
8924 | if test "$no_cache" != 1; then | |
8925 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8926 | fi | |
8927 | ||
8928 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8929 | echo "$as_me:$LINENO: result: yes" >&5 |
8930 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8931 | else |
e6cc62c6 VS |
8932 | echo "$as_me:$LINENO: result: no" >&5 |
8933 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8934 | fi |
e6cc62c6 | 8935 | |
10f2d63a | 8936 | |
5005acfe | 8937 | enablestring= |
e6cc62c6 VS |
8938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8939 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8940 | no_cache=0 |
8941 | # Check whether --enable-joystick or --disable-joystick was given. | |
8942 | if test "${enable_joystick+set}" = set; then | |
8943 | enableval="$enable_joystick" | |
e6cc62c6 | 8944 | |
f6bcfd97 BP |
8945 | if test "$enableval" = yes; then |
8946 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8947 | else | |
8948 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8949 | fi | |
e6cc62c6 | 8950 | |
f6bcfd97 | 8951 | else |
e6cc62c6 | 8952 | |
f6bcfd97 BP |
8953 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8954 | if test "x$LINE" != x ; then | |
8955 | eval "DEFAULT_$LINE" | |
8956 | else | |
8957 | no_cache=1 | |
8958 | fi | |
8959 | ||
8960 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8961 | |
e6cc62c6 | 8962 | fi; |
f6bcfd97 BP |
8963 | |
8964 | eval "$ac_cv_use_joystick" | |
8965 | if test "$no_cache" != 1; then | |
8966 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8967 | fi | |
8968 | ||
8969 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8970 | echo "$as_me:$LINENO: result: yes" >&5 |
8971 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8972 | else |
e6cc62c6 VS |
8973 | echo "$as_me:$LINENO: result: no" >&5 |
8974 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8975 | fi |
e6cc62c6 | 8976 | |
698dcdb6 | 8977 | |
5005acfe | 8978 | enablestring= |
e6cc62c6 VS |
8979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
8980 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8981 | no_cache=0 |
8982 | # Check whether --enable-metafile or --disable-metafile was given. | |
8983 | if test "${enable_metafile+set}" = set; then | |
8984 | enableval="$enable_metafile" | |
e6cc62c6 | 8985 | |
1e6feb95 VZ |
8986 | if test "$enableval" = yes; then |
8987 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8988 | else | |
8989 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8990 | fi | |
e6cc62c6 | 8991 | |
1e6feb95 | 8992 | else |
e6cc62c6 | 8993 | |
1e6feb95 VZ |
8994 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8995 | if test "x$LINE" != x ; then | |
8996 | eval "DEFAULT_$LINE" | |
8997 | else | |
8998 | no_cache=1 | |
8999 | fi | |
9000 | ||
9001 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9002 | |
e6cc62c6 | 9003 | fi; |
1e6feb95 VZ |
9004 | |
9005 | eval "$ac_cv_use_metafile" | |
9006 | if test "$no_cache" != 1; then | |
9007 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9008 | fi | |
9009 | ||
9010 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9011 | echo "$as_me:$LINENO: result: yes" >&5 |
9012 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9013 | else |
e6cc62c6 VS |
9014 | echo "$as_me:$LINENO: result: no" >&5 |
9015 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9016 | fi |
e6cc62c6 | 9017 | |
1e6feb95 | 9018 | |
5005acfe | 9019 | enablestring= |
e6cc62c6 VS |
9020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9021 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9022 | no_cache=0 |
9023 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9024 | if test "${enable_dragimage+set}" = set; then | |
9025 | enableval="$enable_dragimage" | |
e6cc62c6 | 9026 | |
24fd6d87 VZ |
9027 | if test "$enableval" = yes; then |
9028 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9029 | else | |
9030 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9031 | fi | |
e6cc62c6 | 9032 | |
24fd6d87 | 9033 | else |
e6cc62c6 | 9034 | |
24fd6d87 VZ |
9035 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9036 | if test "x$LINE" != x ; then | |
9037 | eval "DEFAULT_$LINE" | |
9038 | else | |
9039 | no_cache=1 | |
9040 | fi | |
9041 | ||
9042 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9043 | |
e6cc62c6 | 9044 | fi; |
24fd6d87 VZ |
9045 | |
9046 | eval "$ac_cv_use_dragimage" | |
9047 | if test "$no_cache" != 1; then | |
9048 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9049 | fi | |
9050 | ||
9051 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9052 | echo "$as_me:$LINENO: result: yes" >&5 |
9053 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9054 | else |
e6cc62c6 VS |
9055 | echo "$as_me:$LINENO: result: no" >&5 |
9056 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9057 | fi |
e6cc62c6 | 9058 | |
52127426 | 9059 | |
7bb2947d | 9060 | enablestring= |
e6cc62c6 VS |
9061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9062 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9063 | no_cache=0 |
9064 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9065 | if test "${enable_accessibility+set}" = set; then | |
9066 | enableval="$enable_accessibility" | |
e6cc62c6 | 9067 | |
7bb2947d MB |
9068 | if test "$enableval" = yes; then |
9069 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9070 | else | |
9071 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9072 | fi | |
e6cc62c6 | 9073 | |
7bb2947d | 9074 | else |
e6cc62c6 | 9075 | |
7bb2947d MB |
9076 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9077 | if test "x$LINE" != x ; then | |
9078 | eval "DEFAULT_$LINE" | |
9079 | else | |
9080 | no_cache=1 | |
9081 | fi | |
9082 | ||
9083 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9084 | |
e6cc62c6 | 9085 | fi; |
7bb2947d MB |
9086 | |
9087 | eval "$ac_cv_use_accessibility" | |
9088 | if test "$no_cache" != 1; then | |
9089 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9090 | fi | |
9091 | ||
9092 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9093 | echo "$as_me:$LINENO: result: yes" >&5 |
9094 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9095 | else |
e6cc62c6 VS |
9096 | echo "$as_me:$LINENO: result: no" >&5 |
9097 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9098 | fi |
e6cc62c6 | 9099 | |
7bb2947d | 9100 | |
8284b0c5 MB |
9101 | |
9102 | ||
5005acfe | 9103 | enablestring= |
e6cc62c6 VS |
9104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9105 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9106 | no_cache=0 |
9107 | # Check whether --enable-palette or --disable-palette was given. | |
9108 | if test "${enable_palette+set}" = set; then | |
9109 | enableval="$enable_palette" | |
e6cc62c6 | 9110 | |
edae8572 VZ |
9111 | if test "$enableval" = yes; then |
9112 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9113 | else | |
9114 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9115 | fi | |
e6cc62c6 | 9116 | |
edae8572 | 9117 | else |
e6cc62c6 | 9118 | |
edae8572 VZ |
9119 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9120 | if test "x$LINE" != x ; then | |
9121 | eval "DEFAULT_$LINE" | |
9122 | else | |
9123 | no_cache=1 | |
9124 | fi | |
9125 | ||
9126 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9127 | |
e6cc62c6 | 9128 | fi; |
edae8572 VZ |
9129 | |
9130 | eval "$ac_cv_use_palette" | |
9131 | if test "$no_cache" != 1; then | |
9132 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9133 | fi | |
9134 | ||
9135 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9136 | echo "$as_me:$LINENO: result: yes" >&5 |
9137 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9138 | else |
e6cc62c6 VS |
9139 | echo "$as_me:$LINENO: result: no" >&5 |
9140 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9141 | fi |
e6cc62c6 | 9142 | |
edae8572 | 9143 | |
5005acfe | 9144 | enablestring= |
e6cc62c6 VS |
9145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9146 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9147 | no_cache=0 |
9148 | # Check whether --enable-image or --disable-image was given. | |
9149 | if test "${enable_image+set}" = set; then | |
9150 | enableval="$enable_image" | |
e6cc62c6 | 9151 | |
0046ff7c VS |
9152 | if test "$enableval" = yes; then |
9153 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9154 | else | |
9155 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9156 | fi | |
e6cc62c6 | 9157 | |
0046ff7c | 9158 | else |
e6cc62c6 | 9159 | |
0046ff7c VS |
9160 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9161 | if test "x$LINE" != x ; then | |
9162 | eval "DEFAULT_$LINE" | |
9163 | else | |
9164 | no_cache=1 | |
9165 | fi | |
9166 | ||
9167 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9168 | |
e6cc62c6 | 9169 | fi; |
0046ff7c VS |
9170 | |
9171 | eval "$ac_cv_use_image" | |
9172 | if test "$no_cache" != 1; then | |
9173 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9174 | fi | |
9175 | ||
9176 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9177 | echo "$as_me:$LINENO: result: yes" >&5 |
9178 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9179 | else |
e6cc62c6 VS |
9180 | echo "$as_me:$LINENO: result: no" >&5 |
9181 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9182 | fi |
e6cc62c6 | 9183 | |
0046ff7c | 9184 | |
5005acfe | 9185 | enablestring= |
e6cc62c6 VS |
9186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9187 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9188 | no_cache=0 |
9189 | # Check whether --enable-gif or --disable-gif was given. | |
9190 | if test "${enable_gif+set}" = set; then | |
9191 | enableval="$enable_gif" | |
e6cc62c6 | 9192 | |
10f2d63a VZ |
9193 | if test "$enableval" = yes; then |
9194 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9195 | else | |
9196 | ac_cv_use_gif='wxUSE_GIF=no' | |
9197 | fi | |
e6cc62c6 | 9198 | |
10f2d63a | 9199 | else |
e6cc62c6 | 9200 | |
10f2d63a VZ |
9201 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9202 | if test "x$LINE" != x ; then | |
9203 | eval "DEFAULT_$LINE" | |
9204 | else | |
9205 | no_cache=1 | |
9206 | fi | |
9207 | ||
9208 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9209 | |
e6cc62c6 | 9210 | fi; |
10f2d63a VZ |
9211 | |
9212 | eval "$ac_cv_use_gif" | |
9213 | if test "$no_cache" != 1; then | |
9214 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9215 | fi | |
9216 | ||
9217 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9218 | echo "$as_me:$LINENO: result: yes" >&5 |
9219 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9220 | else |
e6cc62c6 VS |
9221 | echo "$as_me:$LINENO: result: no" >&5 |
9222 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9223 | fi |
e6cc62c6 | 9224 | |
10f2d63a | 9225 | |
5005acfe | 9226 | enablestring= |
e6cc62c6 VS |
9227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9228 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9229 | no_cache=0 |
9230 | # Check whether --enable-pcx or --disable-pcx was given. | |
9231 | if test "${enable_pcx+set}" = set; then | |
9232 | enableval="$enable_pcx" | |
e6cc62c6 | 9233 | |
10f2d63a VZ |
9234 | if test "$enableval" = yes; then |
9235 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9236 | else | |
9237 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9238 | fi | |
e6cc62c6 | 9239 | |
10f2d63a | 9240 | else |
e6cc62c6 | 9241 | |
10f2d63a VZ |
9242 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9243 | if test "x$LINE" != x ; then | |
9244 | eval "DEFAULT_$LINE" | |
9245 | else | |
9246 | no_cache=1 | |
9247 | fi | |
9248 | ||
9249 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9250 | |
e6cc62c6 | 9251 | fi; |
10f2d63a VZ |
9252 | |
9253 | eval "$ac_cv_use_pcx" | |
9254 | if test "$no_cache" != 1; then | |
9255 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9256 | fi | |
9257 | ||
9258 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9259 | echo "$as_me:$LINENO: result: yes" >&5 |
9260 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9261 | else |
e6cc62c6 VS |
9262 | echo "$as_me:$LINENO: result: no" >&5 |
9263 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9264 | fi |
e6cc62c6 | 9265 | |
10f2d63a | 9266 | |
5005acfe | 9267 | enablestring= |
e6cc62c6 VS |
9268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9269 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9270 | no_cache=0 |
9271 | # Check whether --enable-iff or --disable-iff was given. | |
9272 | if test "${enable_iff+set}" = set; then | |
9273 | enableval="$enable_iff" | |
e6cc62c6 | 9274 | |
4b6b4dfc RR |
9275 | if test "$enableval" = yes; then |
9276 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9277 | else | |
9278 | ac_cv_use_iff='wxUSE_IFF=no' | |
9279 | fi | |
e6cc62c6 | 9280 | |
4b6b4dfc | 9281 | else |
e6cc62c6 | 9282 | |
4b6b4dfc RR |
9283 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9284 | if test "x$LINE" != x ; then | |
9285 | eval "DEFAULT_$LINE" | |
9286 | else | |
9287 | no_cache=1 | |
9288 | fi | |
9289 | ||
9290 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9291 | |
e6cc62c6 | 9292 | fi; |
4b6b4dfc RR |
9293 | |
9294 | eval "$ac_cv_use_iff" | |
9295 | if test "$no_cache" != 1; then | |
9296 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9297 | fi | |
9298 | ||
9299 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9300 | echo "$as_me:$LINENO: result: yes" >&5 |
9301 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9302 | else |
e6cc62c6 VS |
9303 | echo "$as_me:$LINENO: result: no" >&5 |
9304 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9305 | fi |
e6cc62c6 | 9306 | |
4b6b4dfc | 9307 | |
5005acfe | 9308 | enablestring= |
e6cc62c6 VS |
9309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9310 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9311 | no_cache=0 |
9312 | # Check whether --enable-pnm or --disable-pnm was given. | |
9313 | if test "${enable_pnm+set}" = set; then | |
9314 | enableval="$enable_pnm" | |
e6cc62c6 | 9315 | |
10f2d63a VZ |
9316 | if test "$enableval" = yes; then |
9317 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9318 | else | |
9319 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9320 | fi | |
e6cc62c6 | 9321 | |
10f2d63a | 9322 | else |
e6cc62c6 | 9323 | |
10f2d63a VZ |
9324 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9325 | if test "x$LINE" != x ; then | |
9326 | eval "DEFAULT_$LINE" | |
9327 | else | |
9328 | no_cache=1 | |
9329 | fi | |
9330 | ||
9331 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9332 | |
e6cc62c6 | 9333 | fi; |
10f2d63a VZ |
9334 | |
9335 | eval "$ac_cv_use_pnm" | |
9336 | if test "$no_cache" != 1; then | |
9337 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9338 | fi | |
9339 | ||
9340 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9341 | echo "$as_me:$LINENO: result: yes" >&5 |
9342 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9343 | else |
e6cc62c6 VS |
9344 | echo "$as_me:$LINENO: result: no" >&5 |
9345 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9346 | fi |
e6cc62c6 | 9347 | |
10f2d63a | 9348 | |
5005acfe | 9349 | enablestring= |
e6cc62c6 VS |
9350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9351 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9352 | no_cache=0 |
69d27ff7 MB |
9353 | # Check whether --enable-xpm or --disable-xpm was given. |
9354 | if test "${enable_xpm+set}" = set; then | |
9355 | enableval="$enable_xpm" | |
e6cc62c6 | 9356 | |
0046ff7c | 9357 | if test "$enableval" = yes; then |
69d27ff7 | 9358 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9359 | else |
69d27ff7 | 9360 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9361 | fi |
e6cc62c6 | 9362 | |
0046ff7c | 9363 | else |
e6cc62c6 | 9364 | |
0046ff7c VS |
9365 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9366 | if test "x$LINE" != x ; then | |
9367 | eval "DEFAULT_$LINE" | |
9368 | else | |
9369 | no_cache=1 | |
9370 | fi | |
9371 | ||
69d27ff7 | 9372 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9373 | |
e6cc62c6 | 9374 | fi; |
0046ff7c | 9375 | |
69d27ff7 | 9376 | eval "$ac_cv_use_xpm" |
0046ff7c | 9377 | if test "$no_cache" != 1; then |
69d27ff7 | 9378 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9379 | fi |
9380 | ||
9381 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9382 | echo "$as_me:$LINENO: result: yes" >&5 |
9383 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9384 | else |
e6cc62c6 VS |
9385 | echo "$as_me:$LINENO: result: no" >&5 |
9386 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9387 | fi |
e6cc62c6 | 9388 | |
0046ff7c | 9389 | |
5005acfe | 9390 | enablestring= |
e6cc62c6 VS |
9391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9392 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9393 | no_cache=0 |
c7206e64 VS |
9394 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9395 | if test "${enable_ico_cur+set}" = set; then | |
9396 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9397 | |
658974ae | 9398 | if test "$enableval" = yes; then |
c7206e64 | 9399 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9400 | else |
c7206e64 | 9401 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9402 | fi |
e6cc62c6 | 9403 | |
658974ae | 9404 | else |
e6cc62c6 | 9405 | |
658974ae VS |
9406 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9407 | if test "x$LINE" != x ; then | |
9408 | eval "DEFAULT_$LINE" | |
9409 | else | |
9410 | no_cache=1 | |
9411 | fi | |
9412 | ||
c7206e64 | 9413 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9414 | |
e6cc62c6 | 9415 | fi; |
658974ae | 9416 | |
c7206e64 | 9417 | eval "$ac_cv_use_ico_cur" |
658974ae | 9418 | if test "$no_cache" != 1; then |
c7206e64 | 9419 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9420 | fi |
9421 | ||
9422 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9423 | echo "$as_me:$LINENO: result: yes" >&5 |
9424 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9425 | else |
e6cc62c6 VS |
9426 | echo "$as_me:$LINENO: result: no" >&5 |
9427 | echo "${ECHO_T}no" >&6 | |
658974ae | 9428 | fi |
e6cc62c6 | 9429 | |
658974ae | 9430 | |
b12915c1 VZ |
9431 | fi |
9432 | ||
029b47ad VS |
9433 | |
9434 | ||
9435 | enablestring= | |
9436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9437 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9438 | no_cache=0 | |
9439 | # Check whether --enable-official_build or --disable-official_build was given. | |
9440 | if test "${enable_official_build+set}" = set; then | |
9441 | enableval="$enable_official_build" | |
9442 | ||
9443 | if test "$enableval" = yes; then | |
9444 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9445 | else | |
9446 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9447 | fi | |
9448 | ||
9449 | else | |
9450 | ||
9451 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9452 | if test "x$LINE" != x ; then | |
9453 | eval "DEFAULT_$LINE" | |
9454 | else | |
9455 | no_cache=1 | |
9456 | fi | |
9457 | ||
9458 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9459 | ||
9460 | fi; | |
9461 | ||
9462 | eval "$ac_cv_use_official_build" | |
9463 | if test "$no_cache" != 1; then | |
9464 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9465 | fi | |
9466 | ||
9467 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9468 | echo "$as_me:$LINENO: result: yes" >&5 | |
9469 | echo "${ECHO_T}yes" >&6 | |
9470 | else | |
9471 | echo "$as_me:$LINENO: result: no" >&5 | |
9472 | echo "${ECHO_T}no" >&6 | |
9473 | fi | |
9474 | ||
9475 | # Check whether --enable-vendor or --disable-vendor was given. | |
9476 | if test "${enable_vendor+set}" = set; then | |
9477 | enableval="$enable_vendor" | |
9478 | VENDOR="$enableval" | |
9479 | fi; | |
9480 | if test "x$VENDOR" = "x"; then | |
9481 | VENDOR="custom" | |
9482 | fi | |
9483 | ||
d558c907 VS |
9484 | case "${host}" in |
9485 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9486 | PATH_IFS=';' |
d558c907 VS |
9487 | ;; |
9488 | *) | |
9489 | PATH_IFS=':' | |
d558c907 VS |
9490 | ;; |
9491 | esac | |
9492 | ||
8284b0c5 MB |
9493 | |
9494 | ||
10f2d63a VZ |
9495 | echo "saving argument cache $wx_arg_cache_file" |
9496 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9497 | |
8284b0c5 | 9498 | |
e6cc62c6 VS |
9499 | |
9500 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9501 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9502 | |
9503 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9504 | if test "$wxUSE_WINE" = "yes"; then | |
9505 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9506 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9507 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9508 | fi | |
10f2d63a VZ |
9509 | |
9510 | if test "$wxUSE_GUI" = "yes"; then | |
9511 | ||
3a922bb4 | 9512 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9513 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9514 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9515 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9516 | fi |
b12915c1 | 9517 | |
3a922bb4 RL |
9518 | if test "$TOOLKIT_GIVEN" = 1; then |
9519 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9520 | var=wxUSE_$toolkit | |
9521 | eval "value=\$${var}" | |
9522 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9523 | done | |
10f2d63a | 9524 | else |
3a922bb4 RL |
9525 | for toolkit in `echo $ALL_TOOLKITS`; do |
9526 | if test "$has_toolkit_in_cache" != 1; then | |
9527 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9528 | else | |
9529 | var=DEFAULT_wxUSE_$toolkit | |
9530 | fi | |
9531 | eval "wxUSE_$toolkit=\$${var}" | |
9532 | done | |
10f2d63a | 9533 | fi |
10f2d63a | 9534 | |
ac0c4cc3 DE |
9535 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9536 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9537 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9538 | |
d558c907 | 9539 | case "${host}" in |
6fa882bd | 9540 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9541 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9542 | esac |
10f2d63a | 9543 | |
3a922bb4 RL |
9544 | case "$NUM_TOOLKITS" in |
9545 | 1) | |
9546 | ;; | |
9547 | 0) | |
e6cc62c6 VS |
9548 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9549 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9550 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9551 | ;; |
9552 | *) | |
e6cc62c6 VS |
9553 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9554 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9555 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9556 | esac |
10f2d63a | 9557 | |
3a922bb4 RL |
9558 | for toolkit in `echo $ALL_TOOLKITS`; do |
9559 | var=wxUSE_$toolkit | |
9560 | eval "value=\$${var}" | |
9561 | if test "x$value" != x; then | |
9562 | cache_var=CACHE_$toolkit | |
9563 | eval "cache=\$${cache_var}" | |
9564 | if test "$cache" = 1; then | |
9565 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9566 | fi | |
9567 | if test "$value" = 1; then | |
9568 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9569 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9570 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9571 | fi |
9572 | fi | |
9573 | done | |
10f2d63a | 9574 | else |
9de9b8f0 VZ |
9575 | if test "x$host_alias" != "x"; then |
9576 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9577 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9578 | else |
9579 | echo "$as_me:$LINENO: result: base only" >&5 | |
9580 | echo "${ECHO_T}base only" >&6 | |
9581 | fi | |
10f2d63a VZ |
9582 | fi |
9583 | ||
43d99b6d VS |
9584 | wants_win32=0 |
9585 | doesnt_want_win32=0 | |
17234b26 MB |
9586 | case "${host}" in |
9587 | *-*-cygwin*) | |
9588 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9589 | wants_win32=1 |
9590 | else | |
9591 | doesnt_want_win32=1 | |
17234b26 MB |
9592 | fi |
9593 | ;; | |
9594 | *-*-mingw*) | |
43d99b6d | 9595 | wants_win32=1 |
17234b26 MB |
9596 | ;; |
9597 | esac | |
9598 | ||
89e6bf6d VZ |
9599 | if test "$wxUSE_WINE" = "yes"; then |
9600 | wants_win32=1 | |
9601 | CC=winegcc | |
9602 | CXX=wineg++ | |
9603 | RESCOMP=wrc | |
9604 | fi | |
9605 | ||
43d99b6d | 9606 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9607 | USE_UNIX=0 |
9608 | USE_WIN32=1 | |
e6cc62c6 | 9609 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9610 | #define __WIN32__ 1 |
e6cc62c6 | 9611 | _ACEOF |
17234b26 | 9612 | |
e6cc62c6 | 9613 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9614 | #define __WIN95__ 1 |
e6cc62c6 | 9615 | _ACEOF |
17234b26 | 9616 | |
e6cc62c6 | 9617 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9618 | #define __WINDOWS__ 1 |
e6cc62c6 | 9619 | _ACEOF |
17234b26 | 9620 | |
e6cc62c6 | 9621 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9622 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9623 | _ACEOF |
17234b26 | 9624 | |
e6cc62c6 | 9625 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9626 | #define STRICT 1 |
e6cc62c6 | 9627 | _ACEOF |
17234b26 | 9628 | |
e6cc62c6 | 9629 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9630 | #define WINVER 0x0400 |
e6cc62c6 | 9631 | _ACEOF |
17234b26 | 9632 | |
43d99b6d VS |
9633 | fi |
9634 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9635 | USE_UNIX=1 |
9636 | USE_WIN32=0 | |
9637 | fi | |
9638 | ||
9639 | if test "$USE_UNIX" = 1 ; then | |
9640 | wxUSE_UNIX=yes | |
e6cc62c6 | 9641 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9642 | #define __UNIX__ 1 |
e6cc62c6 | 9643 | _ACEOF |
17234b26 MB |
9644 | |
9645 | fi | |
9646 | ||
8284b0c5 | 9647 | |
e6cc62c6 | 9648 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9649 | # This file is a shell script that caches the results of configure |
9650 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9651 | # scripts and configure runs, see configure's option --config-cache. |
9652 | # It is not useful on other systems. If it contains results you don't | |
9653 | # want to keep, you may remove or edit it. | |
10f2d63a | 9654 | # |
e6cc62c6 VS |
9655 | # config.status only pays attention to the cache file if you give it |
9656 | # the --recheck option to rerun configure. | |
10f2d63a | 9657 | # |
e6cc62c6 VS |
9658 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9659 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9660 | # following values. | |
9661 | ||
9662 | _ACEOF | |
9663 | ||
10f2d63a VZ |
9664 | # The following way of writing the cache mishandles newlines in values, |
9665 | # but we know of no workaround that is simple, portable, and efficient. | |
9666 | # So, don't put newlines in cache variables' values. | |
9667 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9668 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9669 | { |
9670 | (set) 2>&1 | | |
9671 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9672 | *ac_space=\ *) | |
9673 | # `set' does not quote correctly, so add quotes (double-quote | |
9674 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9675 | sed -n \ | |
9676 | "s/'/'\\\\''/g; | |
9677 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9678 | ;; | |
9679 | *) | |
9680 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9681 | sed -n \ | |
9682 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9683 | ;; | |
9684 | esac; | |
9685 | } | | |
9686 | sed ' | |
9687 | t clear | |
9688 | : clear | |
9689 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9690 | t end | |
9691 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9692 | : end' >>confcache | |
9693 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9694 | if test -w $cache_file; then |
e6cc62c6 VS |
9695 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9696 | cat confcache >$cache_file | |
10f2d63a VZ |
9697 | else |
9698 | echo "not updating unwritable cache $cache_file" | |
9699 | fi | |
9700 | fi | |
9701 | rm -f confcache | |
9702 | ||
e59890c3 | 9703 | if test "$build" != "$host" ; then |
9d353d4a | 9704 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9705 | CC=$host_alias-gcc |
9706 | CXX=$host_alias-c++ | |
9707 | AR=$host_alias-ar | |
9708 | RANLIB=$host_alias-ranlib | |
9709 | DLLTOOL=$host_alias-dlltool | |
9710 | RESCOMP=$host_alias-windres | |
9711 | LD=$host_alias-ld | |
9712 | NM=$host_alias-nm | |
9713 | STRIP=$host_alias-strip | |
9714 | else | |
e6cc62c6 VS |
9715 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9716 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9717 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9718 | fi |
10f2d63a VZ |
9719 | fi |
9720 | ||
ec603395 | 9721 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9722 | ac_ext=c |
9723 | ac_cpp='$CPP $CPPFLAGS' | |
9724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9727 | if test -n "$ac_tool_prefix"; then | |
9728 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9729 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9732 | if test "${ac_cv_prog_CC+set}" = set; then | |
9733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9734 | else | |
9735 | if test -n "$CC"; then | |
9736 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9737 | else | |
9738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9739 | for as_dir in $PATH | |
9740 | do | |
9741 | IFS=$as_save_IFS | |
9742 | test -z "$as_dir" && as_dir=. | |
9743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9745 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9747 | break 2 | |
9748 | fi | |
9749 | done | |
9750 | done | |
9751 | ||
9752 | fi | |
9753 | fi | |
9754 | CC=$ac_cv_prog_CC | |
9755 | if test -n "$CC"; then | |
9756 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9757 | echo "${ECHO_T}$CC" >&6 | |
9758 | else | |
9759 | echo "$as_me:$LINENO: result: no" >&5 | |
9760 | echo "${ECHO_T}no" >&6 | |
9761 | fi | |
9762 | ||
9763 | fi | |
9764 | if test -z "$ac_cv_prog_CC"; then | |
9765 | ac_ct_CC=$CC | |
9766 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9767 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9770 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9772 | else | |
9773 | if test -n "$ac_ct_CC"; then | |
9774 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9775 | else | |
9776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9777 | for as_dir in $PATH | |
9778 | do | |
9779 | IFS=$as_save_IFS | |
9780 | test -z "$as_dir" && as_dir=. | |
9781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9783 | ac_cv_prog_ac_ct_CC="gcc" | |
9784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9785 | break 2 | |
9786 | fi | |
9787 | done | |
9788 | done | |
9789 | ||
9790 | fi | |
9791 | fi | |
9792 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9793 | if test -n "$ac_ct_CC"; then | |
9794 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9795 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9796 | else | |
9797 | echo "$as_me:$LINENO: result: no" >&5 | |
9798 | echo "${ECHO_T}no" >&6 | |
9799 | fi | |
9800 | ||
9801 | CC=$ac_ct_CC | |
9802 | else | |
9803 | CC="$ac_cv_prog_CC" | |
9804 | fi | |
9805 | ||
9806 | if test -z "$CC"; then | |
9807 | if test -n "$ac_tool_prefix"; then | |
9808 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9809 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9812 | if test "${ac_cv_prog_CC+set}" = set; then | |
9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9814 | else |
9815 | if test -n "$CC"; then | |
9816 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9817 | else |
e6cc62c6 VS |
9818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9819 | for as_dir in $PATH | |
9820 | do | |
9821 | IFS=$as_save_IFS | |
9822 | test -z "$as_dir" && as_dir=. | |
9823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9825 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9827 | break 2 | |
9828 | fi | |
9829 | done | |
9830 | done | |
9831 | ||
10f2d63a | 9832 | fi |
6232543b | 9833 | fi |
e6cc62c6 | 9834 | CC=$ac_cv_prog_CC |
6232543b | 9835 | if test -n "$CC"; then |
e6cc62c6 VS |
9836 | echo "$as_me:$LINENO: result: $CC" >&5 |
9837 | echo "${ECHO_T}$CC" >&6 | |
9838 | else | |
9839 | echo "$as_me:$LINENO: result: no" >&5 | |
9840 | echo "${ECHO_T}no" >&6 | |
9841 | fi | |
9842 | ||
9843 | fi | |
9844 | if test -z "$ac_cv_prog_CC"; then | |
9845 | ac_ct_CC=$CC | |
9846 | # Extract the first word of "cc", so it can be a program name with args. | |
9847 | set dummy cc; ac_word=$2 | |
9848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9850 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9852 | else | |
9853 | if test -n "$ac_ct_CC"; then | |
9854 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9855 | else | |
9856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9857 | for as_dir in $PATH | |
9858 | do | |
9859 | IFS=$as_save_IFS | |
9860 | test -z "$as_dir" && as_dir=. | |
9861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9863 | ac_cv_prog_ac_ct_CC="cc" | |
9864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9865 | break 2 | |
9866 | fi | |
9867 | done | |
9868 | done | |
9869 | ||
9870 | fi | |
9871 | fi | |
9872 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9873 | if test -n "$ac_ct_CC"; then | |
9874 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9875 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9876 | else | |
9877 | echo "$as_me:$LINENO: result: no" >&5 | |
9878 | echo "${ECHO_T}no" >&6 | |
9879 | fi | |
9880 | ||
9881 | CC=$ac_ct_CC | |
247f5006 | 9882 | else |
e6cc62c6 | 9883 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9884 | fi |
9885 | ||
e6cc62c6 | 9886 | fi |
5c6fa7d2 RR |
9887 | if test -z "$CC"; then |
9888 | # Extract the first word of "cc", so it can be a program name with args. | |
9889 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9892 | if test "${ac_cv_prog_CC+set}" = set; then | |
9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9894 | else |
9895 | if test -n "$CC"; then | |
9896 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9897 | else | |
9898 | ac_prog_rejected=no | |
e6cc62c6 VS |
9899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9900 | for as_dir in $PATH | |
9901 | do | |
9902 | IFS=$as_save_IFS | |
9903 | test -z "$as_dir" && as_dir=. | |
9904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9906 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9907 | ac_prog_rejected=yes | |
9908 | continue | |
9909 | fi | |
9910 | ac_cv_prog_CC="cc" | |
9911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9912 | break 2 | |
9913 | fi | |
9914 | done | |
9915 | done | |
9916 | ||
328a083c RR |
9917 | if test $ac_prog_rejected = yes; then |
9918 | # We found a bogon in the path, so make sure we never use it. | |
9919 | set dummy $ac_cv_prog_CC | |
9920 | shift | |
e6cc62c6 | 9921 | if test $# != 0; then |
328a083c | 9922 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9923 | # However, it has the same basename, so the bogon will be chosen |
9924 | # first if we set CC to just the basename; use the full file name. | |
9925 | shift | |
e6cc62c6 | 9926 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9927 | fi |
1e487827 VS |
9928 | fi |
9929 | fi | |
9930 | fi | |
e6cc62c6 | 9931 | CC=$ac_cv_prog_CC |
1e487827 | 9932 | if test -n "$CC"; then |
e6cc62c6 VS |
9933 | echo "$as_me:$LINENO: result: $CC" >&5 |
9934 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9935 | else |
e6cc62c6 VS |
9936 | echo "$as_me:$LINENO: result: no" >&5 |
9937 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9938 | fi |
1e487827 | 9939 | |
e6cc62c6 VS |
9940 | fi |
9941 | if test -z "$CC"; then | |
9942 | if test -n "$ac_tool_prefix"; then | |
9943 | for ac_prog in cl | |
9944 | do | |
9945 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9946 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9949 | if test "${ac_cv_prog_CC+set}" = set; then | |
9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9951 | else |
9952 | if test -n "$CC"; then | |
9953 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9954 | else | |
e6cc62c6 VS |
9955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9956 | for as_dir in $PATH | |
9957 | do | |
9958 | IFS=$as_save_IFS | |
9959 | test -z "$as_dir" && as_dir=. | |
9960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9962 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9964 | break 2 | |
9965 | fi | |
9966 | done | |
9967 | done | |
9968 | ||
f09359cf VS |
9969 | fi |
9970 | fi | |
e6cc62c6 | 9971 | CC=$ac_cv_prog_CC |
f09359cf | 9972 | if test -n "$CC"; then |
e6cc62c6 VS |
9973 | echo "$as_me:$LINENO: result: $CC" >&5 |
9974 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9975 | else |
e6cc62c6 VS |
9976 | echo "$as_me:$LINENO: result: no" >&5 |
9977 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9978 | fi |
1e487827 | 9979 | |
e6cc62c6 VS |
9980 | test -n "$CC" && break |
9981 | done | |
9982 | fi | |
9983 | if test -z "$CC"; then | |
9984 | ac_ct_CC=$CC | |
9985 | for ac_prog in cl | |
9986 | do | |
9987 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9988 | set dummy $ac_prog; ac_word=$2 | |
9989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9991 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9993 | else | |
9994 | if test -n "$ac_ct_CC"; then | |
9995 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9996 | else | |
9997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9998 | for as_dir in $PATH | |
9999 | do | |
10000 | IFS=$as_save_IFS | |
10001 | test -z "$as_dir" && as_dir=. | |
10002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10004 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10006 | break 2 | |
10007 | fi | |
10008 | done | |
10009 | done | |
f09359cf | 10010 | |
e6cc62c6 VS |
10011 | fi |
10012 | fi | |
10013 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10014 | if test -n "$ac_ct_CC"; then | |
10015 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10016 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10017 | else | |
10018 | echo "$as_me:$LINENO: result: no" >&5 | |
10019 | echo "${ECHO_T}no" >&6 | |
10020 | fi | |
f09359cf | 10021 | |
e6cc62c6 VS |
10022 | test -n "$ac_ct_CC" && break |
10023 | done | |
247f5006 | 10024 | |
e6cc62c6 VS |
10025 | CC=$ac_ct_CC |
10026 | fi | |
10027 | ||
10028 | fi | |
10029 | ||
10030 | ||
10031 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10032 | See \`config.log' for more details." >&5 | |
10033 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10034 | See \`config.log' for more details." >&2;} | |
10035 | { (exit 1); exit 1; }; } | |
10036 | ||
10037 | # Provide some information about the compiler. | |
10038 | echo "$as_me:$LINENO:" \ | |
10039 | "checking for C compiler version" >&5 | |
10040 | ac_compiler=`set X $ac_compile; echo $2` | |
10041 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10042 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10043 | ac_status=$? | |
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10045 | (exit $ac_status); } | |
10046 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10047 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10048 | ac_status=$? | |
10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10050 | (exit $ac_status); } | |
10051 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10052 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10053 | ac_status=$? | |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10055 | (exit $ac_status); } | |
10056 | ||
10057 | cat >conftest.$ac_ext <<_ACEOF | |
10058 | #line $LINENO "configure" | |
10059 | /* confdefs.h. */ | |
10060 | _ACEOF | |
10061 | cat confdefs.h >>conftest.$ac_ext | |
10062 | cat >>conftest.$ac_ext <<_ACEOF | |
10063 | /* end confdefs.h. */ | |
10064 | ||
10065 | int | |
10066 | main () | |
10067 | { | |
247f5006 | 10068 | |
e6cc62c6 VS |
10069 | ; |
10070 | return 0; | |
10071 | } | |
10072 | _ACEOF | |
10073 | ac_clean_files_save=$ac_clean_files | |
10074 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10075 | # Try to create an executable without -o first, disregard a.out. | |
10076 | # It will help us diagnose broken compilers, and finding out an intuition | |
10077 | # of exeext. | |
10078 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10079 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10080 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10081 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10082 | (eval $ac_link_default) 2>&5 | |
10083 | ac_status=$? | |
10084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10085 | (exit $ac_status); }; then | |
10086 | # Find the output, starting from the most likely. This scheme is | |
10087 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10088 | # resort. | |
10089 | ||
10090 | # Be careful to initialize this variable, since it used to be cached. | |
10091 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10092 | ac_cv_exeext= | |
10093 | # b.out is created by i960 compilers. | |
10094 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10095 | do | |
10096 | test -f "$ac_file" || continue | |
10097 | case $ac_file in | |
10098 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10099 | ;; | |
10100 | conftest.$ac_ext ) | |
10101 | # This is the source file. | |
10102 | ;; | |
10103 | [ab].out ) | |
10104 | # We found the default executable, but exeext='' is most | |
10105 | # certainly right. | |
10106 | break;; | |
10107 | *.* ) | |
10108 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10109 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10110 | # but it would be cool to find out if it's true. Does anybody | |
10111 | # maintain Libtool? --akim. | |
10112 | export ac_cv_exeext | |
10113 | break;; | |
10114 | * ) | |
10115 | break;; | |
10116 | esac | |
10117 | done | |
10118 | else | |
10119 | echo "$as_me: failed program was:" >&5 | |
10120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10121 | ||
10122 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10123 | See \`config.log' for more details." >&5 | |
10124 | echo "$as_me: error: C compiler cannot create executables | |
10125 | See \`config.log' for more details." >&2;} | |
10126 | { (exit 77); exit 77; }; } | |
10127 | fi | |
10128 | ||
10129 | ac_exeext=$ac_cv_exeext | |
10130 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10131 | echo "${ECHO_T}$ac_file" >&6 | |
10132 | ||
10133 | # Check the compiler produces executables we can run. If not, either | |
10134 | # the compiler is broken, or we cross compile. | |
10135 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10136 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10137 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10138 | # If not cross compiling, check that we can run a simple program. | |
10139 | if test "$cross_compiling" != yes; then | |
10140 | if { ac_try='./$ac_file' | |
10141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10142 | (eval $ac_try) 2>&5 | |
10143 | ac_status=$? | |
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10145 | (exit $ac_status); }; }; then | |
10146 | cross_compiling=no | |
698dcdb6 | 10147 | else |
e6cc62c6 VS |
10148 | if test "$cross_compiling" = maybe; then |
10149 | cross_compiling=yes | |
10150 | else | |
10151 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10152 | If you meant to cross compile, use \`--host'. | |
10153 | See \`config.log' for more details." >&5 | |
10154 | echo "$as_me: error: cannot run C compiled programs. | |
10155 | If you meant to cross compile, use \`--host'. | |
10156 | See \`config.log' for more details." >&2;} | |
10157 | { (exit 1); exit 1; }; } | |
10158 | fi | |
698dcdb6 | 10159 | fi |
52127426 | 10160 | fi |
e6cc62c6 VS |
10161 | echo "$as_me:$LINENO: result: yes" >&5 |
10162 | echo "${ECHO_T}yes" >&6 | |
10163 | ||
10164 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10165 | ac_clean_files=$ac_clean_files_save | |
10166 | # Check the compiler produces executables we can run. If not, either | |
10167 | # the compiler is broken, or we cross compile. | |
10168 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10169 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10170 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10171 | echo "${ECHO_T}$cross_compiling" >&6 | |
10172 | ||
10173 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10174 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10176 | (eval $ac_link) 2>&5 | |
10177 | ac_status=$? | |
10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10179 | (exit $ac_status); }; then | |
10180 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10181 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10182 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10183 | # `rm'. | |
10184 | for ac_file in conftest.exe conftest conftest.*; do | |
10185 | test -f "$ac_file" || continue | |
10186 | case $ac_file in | |
10187 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10188 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10189 | export ac_cv_exeext | |
10190 | break;; | |
10191 | * ) break;; | |
10192 | esac | |
10193 | done | |
5c6fa7d2 | 10194 | else |
e6cc62c6 VS |
10195 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10196 | See \`config.log' for more details." >&5 | |
10197 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10198 | See \`config.log' for more details." >&2;} | |
10199 | { (exit 1); exit 1; }; } | |
10200 | fi | |
10201 | ||
10202 | rm -f conftest$ac_cv_exeext | |
10203 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10204 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10205 | ||
10206 | rm -f conftest.$ac_ext | |
10207 | EXEEXT=$ac_cv_exeext | |
10208 | ac_exeext=$EXEEXT | |
10209 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10210 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10211 | if test "${ac_cv_objext+set}" = set; then | |
10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10213 | else | |
10214 | cat >conftest.$ac_ext <<_ACEOF | |
10215 | #line $LINENO "configure" | |
10216 | /* confdefs.h. */ | |
10217 | _ACEOF | |
10218 | cat confdefs.h >>conftest.$ac_ext | |
10219 | cat >>conftest.$ac_ext <<_ACEOF | |
10220 | /* end confdefs.h. */ | |
10221 | ||
10222 | int | |
10223 | main () | |
10224 | { | |
f09359cf | 10225 | |
e6cc62c6 VS |
10226 | ; |
10227 | return 0; | |
10228 | } | |
10229 | _ACEOF | |
10230 | rm -f conftest.o conftest.obj | |
10231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10232 | (eval $ac_compile) 2>&5 | |
10233 | ac_status=$? | |
10234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10235 | (exit $ac_status); }; then | |
10236 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10237 | case $ac_file in | |
10238 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10239 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10240 | break;; | |
10241 | esac | |
10242 | done | |
a0b9e27f | 10243 | else |
e6cc62c6 VS |
10244 | echo "$as_me: failed program was:" >&5 |
10245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10246 | ||
10247 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10248 | See \`config.log' for more details." >&5 | |
10249 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10250 | See \`config.log' for more details." >&2;} | |
10251 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10252 | fi |
247f5006 | 10253 | |
e6cc62c6 VS |
10254 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10255 | fi | |
10256 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10257 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10258 | OBJEXT=$ac_cv_objext | |
10259 | ac_objext=$OBJEXT | |
10260 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10261 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10262 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10264 | else |
e6cc62c6 VS |
10265 | cat >conftest.$ac_ext <<_ACEOF |
10266 | #line $LINENO "configure" | |
10267 | /* confdefs.h. */ | |
10268 | _ACEOF | |
10269 | cat confdefs.h >>conftest.$ac_ext | |
10270 | cat >>conftest.$ac_ext <<_ACEOF | |
10271 | /* end confdefs.h. */ | |
10272 | ||
10273 | int | |
10274 | main () | |
10275 | { | |
10276 | #ifndef __GNUC__ | |
10277 | choke me | |
10278 | #endif | |
10279 | ||
10280 | ; | |
10281 | return 0; | |
10282 | } | |
10283 | _ACEOF | |
10284 | rm -f conftest.$ac_objext | |
10285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10286 | (eval $ac_compile) 2>&5 | |
10287 | ac_status=$? | |
10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10289 | (exit $ac_status); } && | |
10290 | { ac_try='test -s conftest.$ac_objext' | |
10291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10292 | (eval $ac_try) 2>&5 | |
10293 | ac_status=$? | |
10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10295 | (exit $ac_status); }; }; then | |
10296 | ac_compiler_gnu=yes | |
10297 | else | |
10298 | echo "$as_me: failed program was:" >&5 | |
10299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10300 | ||
10301 | ac_compiler_gnu=no | |
10302 | fi | |
10303 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10304 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10305 | ||
10306 | fi | |
10307 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10308 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10309 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10310 | ac_test_CFLAGS=${CFLAGS+set} | |
10311 | ac_save_CFLAGS=$CFLAGS | |
10312 | CFLAGS="-g" | |
10313 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10314 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10315 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10317 | else | |
10318 | cat >conftest.$ac_ext <<_ACEOF | |
10319 | #line $LINENO "configure" | |
10320 | /* confdefs.h. */ | |
10321 | _ACEOF | |
10322 | cat confdefs.h >>conftest.$ac_ext | |
10323 | cat >>conftest.$ac_ext <<_ACEOF | |
10324 | /* end confdefs.h. */ | |
10325 | ||
10326 | int | |
10327 | main () | |
10328 | { | |
10329 | ||
10330 | ; | |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | rm -f conftest.$ac_objext | |
10335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10336 | (eval $ac_compile) 2>&5 | |
10337 | ac_status=$? | |
10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10339 | (exit $ac_status); } && | |
10340 | { ac_try='test -s conftest.$ac_objext' | |
10341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10342 | (eval $ac_try) 2>&5 | |
10343 | ac_status=$? | |
10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10345 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10346 | ac_cv_prog_cc_g=yes |
10347 | else | |
e6cc62c6 VS |
10348 | echo "$as_me: failed program was:" >&5 |
10349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10350 | |
e6cc62c6 | 10351 | ac_cv_prog_cc_g=no |
10f2d63a | 10352 | fi |
e6cc62c6 VS |
10353 | rm -f conftest.$ac_objext conftest.$ac_ext |
10354 | fi | |
10355 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10356 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10357 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10358 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10359 | elif test $ac_cv_prog_cc_g = yes; then |
10360 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10361 | CFLAGS="-g -O2" |
10362 | else | |
f09359cf | 10363 | CFLAGS="-g" |
10f2d63a | 10364 | fi |
5c0a20c3 | 10365 | else |
f09359cf VS |
10366 | if test "$GCC" = yes; then |
10367 | CFLAGS="-O2" | |
10368 | else | |
10369 | CFLAGS= | |
10370 | fi | |
10f2d63a | 10371 | fi |
e6cc62c6 VS |
10372 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10373 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10374 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10376 | else | |
10377 | ac_cv_prog_cc_stdc=no | |
10378 | ac_save_CC=$CC | |
10379 | cat >conftest.$ac_ext <<_ACEOF | |
10380 | #line $LINENO "configure" | |
10381 | /* confdefs.h. */ | |
10382 | _ACEOF | |
10383 | cat confdefs.h >>conftest.$ac_ext | |
10384 | cat >>conftest.$ac_ext <<_ACEOF | |
10385 | /* end confdefs.h. */ | |
10386 | #include <stdarg.h> | |
10387 | #include <stdio.h> | |
10388 | #include <sys/types.h> | |
10389 | #include <sys/stat.h> | |
10390 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10391 | struct buf { int x; }; | |
10392 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10393 | static char *e (p, i) | |
10394 | char **p; | |
10395 | int i; | |
10396 | { | |
10397 | return p[i]; | |
10398 | } | |
10399 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10400 | { | |
10401 | char *s; | |
10402 | va_list v; | |
10403 | va_start (v,p); | |
10404 | s = g (p, va_arg (v,int)); | |
10405 | va_end (v); | |
10406 | return s; | |
10407 | } | |
10408 | int test (int i, double x); | |
10409 | struct s1 {int (*f) (int a);}; | |
10410 | struct s2 {int (*f) (double a);}; | |
10411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10412 | int argc; | |
10413 | char **argv; | |
10414 | int | |
10415 | main () | |
10416 | { | |
10417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10418 | ; | |
10419 | return 0; | |
10420 | } | |
10421 | _ACEOF | |
10422 | # Don't try gcc -ansi; that turns off useful extensions and | |
10423 | # breaks some systems' header files. | |
10424 | # AIX -qlanglvl=ansi | |
10425 | # Ultrix and OSF/1 -std1 | |
10426 | # HP-UX 10.20 and later -Ae | |
10427 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10428 | # SVR4 -Xc -D__EXTENSIONS__ | |
10429 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10430 | do | |
10431 | CC="$ac_save_CC $ac_arg" | |
10432 | rm -f conftest.$ac_objext | |
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10434 | (eval $ac_compile) 2>&5 | |
10435 | ac_status=$? | |
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10437 | (exit $ac_status); } && | |
10438 | { ac_try='test -s conftest.$ac_objext' | |
10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10440 | (eval $ac_try) 2>&5 | |
10441 | ac_status=$? | |
10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10443 | (exit $ac_status); }; }; then | |
10444 | ac_cv_prog_cc_stdc=$ac_arg | |
10445 | break | |
10446 | else | |
10447 | echo "$as_me: failed program was:" >&5 | |
10448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10449 | ||
10450 | fi | |
10451 | rm -f conftest.$ac_objext | |
10452 | done | |
10453 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10454 | CC=$ac_save_CC | |
10455 | ||
10456 | fi | |
10457 | ||
10458 | case "x$ac_cv_prog_cc_stdc" in | |
10459 | x|xno) | |
10460 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10461 | echo "${ECHO_T}none needed" >&6 ;; | |
10462 | *) | |
10463 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10464 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10465 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10466 | esac | |
10467 | ||
10468 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10469 | # in C++ we need to declare it. In case someone uses the same compiler | |
10470 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10471 | # the declaration of exit, since it's the most demanding environment. | |
10472 | cat >conftest.$ac_ext <<_ACEOF | |
10473 | #ifndef __cplusplus | |
10474 | choke me | |
10475 | #endif | |
10476 | _ACEOF | |
10477 | rm -f conftest.$ac_objext | |
10478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10479 | (eval $ac_compile) 2>&5 | |
10480 | ac_status=$? | |
10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10482 | (exit $ac_status); } && | |
10483 | { ac_try='test -s conftest.$ac_objext' | |
10484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10485 | (eval $ac_try) 2>&5 | |
10486 | ac_status=$? | |
10487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10488 | (exit $ac_status); }; }; then | |
10489 | for ac_declaration in \ | |
6f628073 VS |
10490 | ''\ |
10491 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10492 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10493 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10494 | 'extern "C" void exit (int) throw ();' \ | |
10495 | 'extern "C" void exit (int);' \ | |
10496 | 'void exit (int);' | |
10497 | do | |
10498 | cat >conftest.$ac_ext <<_ACEOF | |
10499 | #line $LINENO "configure" | |
10500 | /* confdefs.h. */ | |
10501 | _ACEOF | |
10502 | cat confdefs.h >>conftest.$ac_ext | |
10503 | cat >>conftest.$ac_ext <<_ACEOF | |
10504 | /* end confdefs.h. */ | |
71e83a03 | 10505 | #include <stdlib.h> |
6f628073 | 10506 | $ac_declaration |
e6cc62c6 VS |
10507 | int |
10508 | main () | |
10509 | { | |
10510 | exit (42); | |
10511 | ; | |
10512 | return 0; | |
10513 | } | |
10514 | _ACEOF | |
10515 | rm -f conftest.$ac_objext | |
10516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10517 | (eval $ac_compile) 2>&5 | |
10518 | ac_status=$? | |
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10520 | (exit $ac_status); } && | |
10521 | { ac_try='test -s conftest.$ac_objext' | |
10522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10523 | (eval $ac_try) 2>&5 | |
10524 | ac_status=$? | |
10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10526 | (exit $ac_status); }; }; then | |
10527 | : | |
10528 | else | |
10529 | echo "$as_me: failed program was:" >&5 | |
10530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10531 | ||
10532 | continue | |
10533 | fi | |
10534 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10535 | cat >conftest.$ac_ext <<_ACEOF | |
10536 | #line $LINENO "configure" | |
10537 | /* confdefs.h. */ | |
10538 | _ACEOF | |
10539 | cat confdefs.h >>conftest.$ac_ext | |
10540 | cat >>conftest.$ac_ext <<_ACEOF | |
10541 | /* end confdefs.h. */ | |
10542 | $ac_declaration | |
10543 | int | |
10544 | main () | |
10545 | { | |
10546 | exit (42); | |
10547 | ; | |
10548 | return 0; | |
10549 | } | |
10550 | _ACEOF | |
10551 | rm -f conftest.$ac_objext | |
10552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10553 | (eval $ac_compile) 2>&5 | |
10554 | ac_status=$? | |
10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10556 | (exit $ac_status); } && | |
10557 | { ac_try='test -s conftest.$ac_objext' | |
10558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10559 | (eval $ac_try) 2>&5 | |
10560 | ac_status=$? | |
10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); }; }; then | |
10563 | break | |
10564 | else | |
10565 | echo "$as_me: failed program was:" >&5 | |
10566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10567 | ||
10568 | fi | |
10569 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10570 | done | |
10571 | rm -f conftest* | |
10572 | if test -n "$ac_declaration"; then | |
10573 | echo '#ifdef __cplusplus' >>confdefs.h | |
10574 | echo $ac_declaration >>confdefs.h | |
10575 | echo '#endif' >>confdefs.h | |
10576 | fi | |
10577 | ||
10578 | else | |
10579 | echo "$as_me: failed program was:" >&5 | |
10580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10581 | ||
10582 | fi | |
10583 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10584 | ac_ext=c | |
10585 | ac_cpp='$CPP $CPPFLAGS' | |
10586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10589 | |
10590 | ||
e6cc62c6 VS |
10591 | |
10592 | ac_ext=c | |
10593 | ac_cpp='$CPP $CPPFLAGS' | |
10594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10597 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10598 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10599 | # On Suns, sometimes $CPP names a directory. |
10600 | if test -n "$CPP" && test -d "$CPP"; then | |
10601 | CPP= | |
10602 | fi | |
10603 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10604 | if test "${ac_cv_prog_CPP+set}" = set; then |
10605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10606 | else | |
10607 | # Double quotes because CPP needs to be expanded | |
10608 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10609 | do | |
10610 | ac_preproc_ok=false | |
10611 | for ac_c_preproc_warn_flag in '' yes | |
10612 | do | |
10613 | # Use a header file that comes with gcc, so configuring glibc | |
10614 | # with a fresh cross-compiler works. | |
10615 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10616 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10617 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10618 | # not just through cpp. "Syntax error" is here to catch this case. |
10619 | cat >conftest.$ac_ext <<_ACEOF | |
10620 | #line $LINENO "configure" | |
10621 | /* confdefs.h. */ | |
10622 | _ACEOF | |
10623 | cat confdefs.h >>conftest.$ac_ext | |
10624 | cat >>conftest.$ac_ext <<_ACEOF | |
10625 | /* end confdefs.h. */ | |
10626 | #ifdef __STDC__ | |
10627 | # include <limits.h> | |
10628 | #else | |
10629 | # include <assert.h> | |
10630 | #endif | |
10631 | Syntax error | |
10632 | _ACEOF | |
10633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10635 | ac_status=$? | |
10636 | grep -v '^ *+' conftest.er1 >conftest.err | |
10637 | rm -f conftest.er1 | |
10638 | cat conftest.err >&5 | |
10639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10640 | (exit $ac_status); } >/dev/null; then | |
10641 | if test -s conftest.err; then | |
10642 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10643 | else | |
10644 | ac_cpp_err= | |
10645 | fi | |
10f2d63a | 10646 | else |
e6cc62c6 VS |
10647 | ac_cpp_err=yes |
10648 | fi | |
10649 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10650 | : |
247f5006 | 10651 | else |
e6cc62c6 VS |
10652 | echo "$as_me: failed program was:" >&5 |
10653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10654 | ||
10655 | # Broken: fails on valid input. | |
10656 | continue | |
10657 | fi | |
10658 | rm -f conftest.err conftest.$ac_ext | |
10659 | ||
10660 | # OK, works on sane cases. Now check whether non-existent headers | |
10661 | # can be detected and how. | |
10662 | cat >conftest.$ac_ext <<_ACEOF | |
10663 | #line $LINENO "configure" | |
10664 | /* confdefs.h. */ | |
10665 | _ACEOF | |
10666 | cat confdefs.h >>conftest.$ac_ext | |
10667 | cat >>conftest.$ac_ext <<_ACEOF | |
10668 | /* end confdefs.h. */ | |
10669 | #include <ac_nonexistent.h> | |
10670 | _ACEOF | |
10671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10673 | ac_status=$? | |
10674 | grep -v '^ *+' conftest.er1 >conftest.err | |
10675 | rm -f conftest.er1 | |
10676 | cat conftest.err >&5 | |
10677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10678 | (exit $ac_status); } >/dev/null; then | |
10679 | if test -s conftest.err; then | |
10680 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10681 | else | |
10682 | ac_cpp_err= | |
10683 | fi | |
10f2d63a | 10684 | else |
e6cc62c6 | 10685 | ac_cpp_err=yes |
579d8138 | 10686 | fi |
e6cc62c6 VS |
10687 | if test -z "$ac_cpp_err"; then |
10688 | # Broken: success on invalid input. | |
10689 | continue | |
10690 | else | |
10691 | echo "$as_me: failed program was:" >&5 | |
10692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10693 | ||
10694 | # Passes both tests. | |
10695 | ac_preproc_ok=: | |
10696 | break | |
52127426 | 10697 | fi |
e6cc62c6 VS |
10698 | rm -f conftest.err conftest.$ac_ext |
10699 | ||
10700 | done | |
10701 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10702 | rm -f conftest.err conftest.$ac_ext | |
10703 | if $ac_preproc_ok; then | |
10704 | break | |
8284b0c5 | 10705 | fi |
e6cc62c6 VS |
10706 | |
10707 | done | |
10708 | ac_cv_prog_CPP=$CPP | |
10709 | ||
10710 | fi | |
10711 | CPP=$ac_cv_prog_CPP | |
10712 | else | |
10713 | ac_cv_prog_CPP=$CPP | |
10714 | fi | |
10715 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10716 | echo "${ECHO_T}$CPP" >&6 | |
10717 | ac_preproc_ok=false | |
10718 | for ac_c_preproc_warn_flag in '' yes | |
10719 | do | |
10720 | # Use a header file that comes with gcc, so configuring glibc | |
10721 | # with a fresh cross-compiler works. | |
10722 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10723 | # <limits.h> exists even on freestanding compilers. | |
10724 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10725 | # not just through cpp. "Syntax error" is here to catch this case. | |
10726 | cat >conftest.$ac_ext <<_ACEOF | |
10727 | #line $LINENO "configure" | |
10728 | /* confdefs.h. */ | |
10729 | _ACEOF | |
10730 | cat confdefs.h >>conftest.$ac_ext | |
10731 | cat >>conftest.$ac_ext <<_ACEOF | |
10732 | /* end confdefs.h. */ | |
10733 | #ifdef __STDC__ | |
10734 | # include <limits.h> | |
10735 | #else | |
10736 | # include <assert.h> | |
10737 | #endif | |
10738 | Syntax error | |
10739 | _ACEOF | |
10740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10742 | ac_status=$? | |
10743 | grep -v '^ *+' conftest.er1 >conftest.err | |
10744 | rm -f conftest.er1 | |
10745 | cat conftest.err >&5 | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); } >/dev/null; then | |
10748 | if test -s conftest.err; then | |
10749 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10750 | else | |
10751 | ac_cpp_err= | |
10752 | fi | |
10753 | else | |
10754 | ac_cpp_err=yes | |
10755 | fi | |
10756 | if test -z "$ac_cpp_err"; then | |
10757 | : | |
10758 | else | |
10759 | echo "$as_me: failed program was:" >&5 | |
10760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10761 | ||
10762 | # Broken: fails on valid input. | |
10763 | continue | |
10764 | fi | |
10765 | rm -f conftest.err conftest.$ac_ext | |
10766 | ||
10767 | # OK, works on sane cases. Now check whether non-existent headers | |
10768 | # can be detected and how. | |
10769 | cat >conftest.$ac_ext <<_ACEOF | |
10770 | #line $LINENO "configure" | |
10771 | /* confdefs.h. */ | |
10772 | _ACEOF | |
10773 | cat confdefs.h >>conftest.$ac_ext | |
10774 | cat >>conftest.$ac_ext <<_ACEOF | |
10775 | /* end confdefs.h. */ | |
10776 | #include <ac_nonexistent.h> | |
10777 | _ACEOF | |
10778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10780 | ac_status=$? | |
10781 | grep -v '^ *+' conftest.er1 >conftest.err | |
10782 | rm -f conftest.er1 | |
10783 | cat conftest.err >&5 | |
10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10785 | (exit $ac_status); } >/dev/null; then | |
10786 | if test -s conftest.err; then | |
10787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10788 | else | |
10789 | ac_cpp_err= | |
10790 | fi | |
10791 | else | |
10792 | ac_cpp_err=yes | |
10793 | fi | |
10794 | if test -z "$ac_cpp_err"; then | |
10795 | # Broken: success on invalid input. | |
10796 | continue | |
10797 | else | |
10798 | echo "$as_me: failed program was:" >&5 | |
10799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10800 | ||
10801 | # Passes both tests. | |
10802 | ac_preproc_ok=: | |
10803 | break | |
a0b9e27f | 10804 | fi |
e6cc62c6 VS |
10805 | rm -f conftest.err conftest.$ac_ext |
10806 | ||
10807 | done | |
10808 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10809 | rm -f conftest.err conftest.$ac_ext | |
10810 | if $ac_preproc_ok; then | |
10811 | : | |
10812 | else | |
10813 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10814 | See \`config.log' for more details." >&5 | |
10815 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10816 | See \`config.log' for more details." >&2;} | |
10817 | { (exit 1); exit 1; }; } | |
10818 | fi | |
10819 | ||
10820 | ac_ext=c | |
10821 | ac_cpp='$CPP $CPPFLAGS' | |
10822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10825 | ||
10826 | ||
10827 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10828 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10829 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10831 | else |
e6cc62c6 VS |
10832 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10833 | then ac_cv_prog_egrep='grep -E' | |
10834 | else ac_cv_prog_egrep='egrep' | |
10835 | fi | |
10f2d63a | 10836 | fi |
e6cc62c6 VS |
10837 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10838 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10839 | EGREP=$ac_cv_prog_egrep | |
10840 | ||
10f2d63a | 10841 | |
e6cc62c6 VS |
10842 | if test $ac_cv_c_compiler_gnu = yes; then |
10843 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10844 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10845 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10847 | else |
10848 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10849 | cat >conftest.$ac_ext <<_ACEOF |
10850 | #line $LINENO "configure" | |
10851 | /* confdefs.h. */ | |
10852 | _ACEOF | |
10853 | cat confdefs.h >>conftest.$ac_ext | |
10854 | cat >>conftest.$ac_ext <<_ACEOF | |
10855 | /* end confdefs.h. */ | |
10f2d63a VZ |
10856 | #include <sgtty.h> |
10857 | Autoconf TIOCGETP | |
e6cc62c6 | 10858 | _ACEOF |
10f2d63a | 10859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10860 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10861 | ac_cv_prog_gcc_traditional=yes |
10862 | else | |
10f2d63a VZ |
10863 | ac_cv_prog_gcc_traditional=no |
10864 | fi | |
10865 | rm -f conftest* | |
10866 | ||
8284b0c5 | 10867 | |
10f2d63a | 10868 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10869 | cat >conftest.$ac_ext <<_ACEOF |
10870 | #line $LINENO "configure" | |
10871 | /* confdefs.h. */ | |
10872 | _ACEOF | |
10873 | cat confdefs.h >>conftest.$ac_ext | |
10874 | cat >>conftest.$ac_ext <<_ACEOF | |
10875 | /* end confdefs.h. */ | |
10f2d63a VZ |
10876 | #include <termio.h> |
10877 | Autoconf TCGETA | |
e6cc62c6 | 10878 | _ACEOF |
10f2d63a | 10879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10880 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10881 | ac_cv_prog_gcc_traditional=yes |
10882 | fi | |
10883 | rm -f conftest* | |
10884 | ||
10885 | fi | |
10886 | fi | |
e6cc62c6 VS |
10887 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10888 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10889 | if test $ac_cv_prog_gcc_traditional = yes; then |
10890 | CC="$CC -traditional" | |
10891 | fi | |
10892 | fi | |
10893 | ||
8284b0c5 MB |
10894 | |
10895 | ||
e6cc62c6 VS |
10896 | |
10897 | ac_ext=cc | |
1e487827 | 10898 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10902 | |
698dcdb6 | 10903 | |
ec603395 | 10904 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10905 | ac_ext=cc |
10906 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10910 | if test -n "$ac_tool_prefix"; then | |
10911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10912 | do | |
10913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10917 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10919 | else |
10920 | if test -n "$CXX"; then | |
10921 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10922 | else | |
e6cc62c6 VS |
10923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10924 | for as_dir in $PATH | |
10925 | do | |
10926 | IFS=$as_save_IFS | |
10927 | test -z "$as_dir" && as_dir=. | |
10928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10930 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10932 | break 2 | |
10933 | fi | |
10934 | done | |
10935 | done | |
10936 | ||
10f2d63a VZ |
10937 | fi |
10938 | fi | |
e6cc62c6 | 10939 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10940 | if test -n "$CXX"; then |
e6cc62c6 VS |
10941 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10942 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10943 | else |
e6cc62c6 VS |
10944 | echo "$as_me:$LINENO: result: no" >&5 |
10945 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10946 | fi |
10947 | ||
e6cc62c6 VS |
10948 | test -n "$CXX" && break |
10949 | done | |
10950 | fi | |
10951 | if test -z "$CXX"; then | |
10952 | ac_ct_CXX=$CXX | |
10953 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10954 | do | |
10955 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10956 | set dummy $ac_prog; ac_word=$2 | |
10957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10959 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10961 | else | |
10962 | if test -n "$ac_ct_CXX"; then | |
10963 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10964 | else | |
10965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10966 | for as_dir in $PATH | |
10967 | do | |
10968 | IFS=$as_save_IFS | |
10969 | test -z "$as_dir" && as_dir=. | |
10970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10972 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10974 | break 2 | |
10975 | fi | |
10976 | done | |
10f2d63a | 10977 | done |
a0b9e27f | 10978 | |
8284b0c5 | 10979 | fi |
a0b9e27f | 10980 | fi |
e6cc62c6 VS |
10981 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10982 | if test -n "$ac_ct_CXX"; then | |
10983 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10984 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10985 | else | |
10986 | echo "$as_me:$LINENO: result: no" >&5 | |
10987 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 10988 | fi |
10f2d63a | 10989 | |
e6cc62c6 VS |
10990 | test -n "$ac_ct_CXX" && break |
10991 | done | |
10992 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10993 | ||
10994 | CXX=$ac_ct_CXX | |
10995 | fi | |
10996 | ||
10997 | ||
10998 | # Provide some information about the compiler. | |
10999 | echo "$as_me:$LINENO:" \ | |
11000 | "checking for C++ compiler version" >&5 | |
11001 | ac_compiler=`set X $ac_compile; echo $2` | |
11002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11003 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11004 | ac_status=$? | |
11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11006 | (exit $ac_status); } | |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11008 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11009 | ac_status=$? | |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); } | |
11012 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11013 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11014 | ac_status=$? | |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); } | |
11017 | ||
11018 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11019 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11020 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11022 | else | |
11023 | cat >conftest.$ac_ext <<_ACEOF | |
11024 | #line $LINENO "configure" | |
11025 | /* confdefs.h. */ | |
11026 | _ACEOF | |
11027 | cat confdefs.h >>conftest.$ac_ext | |
11028 | cat >>conftest.$ac_ext <<_ACEOF | |
11029 | /* end confdefs.h. */ | |
11030 | ||
11031 | int | |
11032 | main () | |
11033 | { | |
11034 | #ifndef __GNUC__ | |
11035 | choke me | |
11036 | #endif | |
10f2d63a | 11037 | |
e6cc62c6 VS |
11038 | ; |
11039 | return 0; | |
11040 | } | |
11041 | _ACEOF | |
11042 | rm -f conftest.$ac_objext | |
11043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11044 | (eval $ac_compile) 2>&5 | |
11045 | ac_status=$? | |
11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11047 | (exit $ac_status); } && | |
11048 | { ac_try='test -s conftest.$ac_objext' | |
11049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11050 | (eval $ac_try) 2>&5 | |
11051 | ac_status=$? | |
11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11053 | (exit $ac_status); }; }; then | |
11054 | ac_compiler_gnu=yes | |
11055 | else | |
11056 | echo "$as_me: failed program was:" >&5 | |
11057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11058 | ||
11059 | ac_compiler_gnu=no | |
11060 | fi | |
11061 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11062 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11063 | ||
11064 | fi | |
11065 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11066 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11067 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11068 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11069 | ac_save_CXXFLAGS=$CXXFLAGS | |
11070 | CXXFLAGS="-g" | |
11071 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11072 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11073 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11075 | else | |
11076 | cat >conftest.$ac_ext <<_ACEOF | |
11077 | #line $LINENO "configure" | |
11078 | /* confdefs.h. */ | |
11079 | _ACEOF | |
11080 | cat confdefs.h >>conftest.$ac_ext | |
11081 | cat >>conftest.$ac_ext <<_ACEOF | |
11082 | /* end confdefs.h. */ | |
11083 | ||
11084 | int | |
11085 | main () | |
11086 | { | |
f09359cf | 11087 | |
e6cc62c6 VS |
11088 | ; |
11089 | return 0; | |
11090 | } | |
11091 | _ACEOF | |
11092 | rm -f conftest.$ac_objext | |
11093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11094 | (eval $ac_compile) 2>&5 | |
11095 | ac_status=$? | |
11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11097 | (exit $ac_status); } && | |
11098 | { ac_try='test -s conftest.$ac_objext' | |
11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11100 | (eval $ac_try) 2>&5 | |
11101 | ac_status=$? | |
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11104 | ac_cv_prog_cxx_g=yes |
11105 | else | |
e6cc62c6 VS |
11106 | echo "$as_me: failed program was:" >&5 |
11107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11108 | |
e6cc62c6 | 11109 | ac_cv_prog_cxx_g=no |
10f2d63a | 11110 | fi |
e6cc62c6 VS |
11111 | rm -f conftest.$ac_objext conftest.$ac_ext |
11112 | fi | |
11113 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11114 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11115 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11116 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11117 | elif test $ac_cv_prog_cxx_g = yes; then |
11118 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11119 | CXXFLAGS="-g -O2" |
11120 | else | |
f09359cf | 11121 | CXXFLAGS="-g" |
10f2d63a | 11122 | fi |
5c0a20c3 | 11123 | else |
f09359cf VS |
11124 | if test "$GXX" = yes; then |
11125 | CXXFLAGS="-O2" | |
11126 | else | |
11127 | CXXFLAGS= | |
11128 | fi | |
10f2d63a | 11129 | fi |
e6cc62c6 | 11130 | for ac_declaration in \ |
6f628073 VS |
11131 | ''\ |
11132 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11133 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11134 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11135 | 'extern "C" void exit (int) throw ();' \ | |
11136 | 'extern "C" void exit (int);' \ | |
11137 | 'void exit (int);' | |
11138 | do | |
11139 | cat >conftest.$ac_ext <<_ACEOF | |
11140 | #line $LINENO "configure" | |
11141 | /* confdefs.h. */ | |
11142 | _ACEOF | |
11143 | cat confdefs.h >>conftest.$ac_ext | |
11144 | cat >>conftest.$ac_ext <<_ACEOF | |
11145 | /* end confdefs.h. */ | |
71e83a03 | 11146 | #include <stdlib.h> |
6f628073 | 11147 | $ac_declaration |
e6cc62c6 VS |
11148 | int |
11149 | main () | |
11150 | { | |
11151 | exit (42); | |
11152 | ; | |
11153 | return 0; | |
11154 | } | |
11155 | _ACEOF | |
11156 | rm -f conftest.$ac_objext | |
11157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11158 | (eval $ac_compile) 2>&5 | |
11159 | ac_status=$? | |
11160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11161 | (exit $ac_status); } && | |
11162 | { ac_try='test -s conftest.$ac_objext' | |
11163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11164 | (eval $ac_try) 2>&5 | |
11165 | ac_status=$? | |
11166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11167 | (exit $ac_status); }; }; then | |
11168 | : | |
11169 | else | |
11170 | echo "$as_me: failed program was:" >&5 | |
11171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11172 | ||
11173 | continue | |
11174 | fi | |
11175 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11176 | cat >conftest.$ac_ext <<_ACEOF | |
11177 | #line $LINENO "configure" | |
11178 | /* confdefs.h. */ | |
11179 | _ACEOF | |
11180 | cat confdefs.h >>conftest.$ac_ext | |
11181 | cat >>conftest.$ac_ext <<_ACEOF | |
11182 | /* end confdefs.h. */ | |
11183 | $ac_declaration | |
11184 | int | |
11185 | main () | |
11186 | { | |
11187 | exit (42); | |
11188 | ; | |
11189 | return 0; | |
11190 | } | |
11191 | _ACEOF | |
11192 | rm -f conftest.$ac_objext | |
11193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11194 | (eval $ac_compile) 2>&5 | |
11195 | ac_status=$? | |
11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11197 | (exit $ac_status); } && | |
11198 | { ac_try='test -s conftest.$ac_objext' | |
11199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11200 | (eval $ac_try) 2>&5 | |
11201 | ac_status=$? | |
11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11203 | (exit $ac_status); }; }; then | |
11204 | break | |
11205 | else | |
11206 | echo "$as_me: failed program was:" >&5 | |
11207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11208 | ||
11209 | fi | |
11210 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11211 | done | |
11212 | rm -f conftest* | |
11213 | if test -n "$ac_declaration"; then | |
11214 | echo '#ifdef __cplusplus' >>confdefs.h | |
11215 | echo $ac_declaration >>confdefs.h | |
11216 | echo '#endif' >>confdefs.h | |
11217 | fi | |
11218 | ||
11219 | ac_ext=cc | |
11220 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11221 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11222 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11223 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11224 | |
11225 | ||
10f2d63a | 11226 | ac_ext=c |
10f2d63a | 11227 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11231 | |
11232 | ||
e6cc62c6 VS |
11233 | if test -n "$ac_tool_prefix"; then |
11234 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11235 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11238 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11240 | else |
11241 | if test -n "$RANLIB"; then | |
11242 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11243 | else | |
e6cc62c6 VS |
11244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11245 | for as_dir in $PATH | |
11246 | do | |
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_RANLIB="${ac_tool_prefix}ranlib" | |
11252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11253 | break 2 | |
11254 | fi | |
11255 | done | |
11256 | done | |
11257 | ||
10f2d63a VZ |
11258 | fi |
11259 | fi | |
e6cc62c6 | 11260 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11261 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11262 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11263 | echo "${ECHO_T}$RANLIB" >&6 | |
11264 | else | |
11265 | echo "$as_me:$LINENO: result: no" >&5 | |
11266 | echo "${ECHO_T}no" >&6 | |
11267 | fi | |
11268 | ||
11269 | fi | |
11270 | if test -z "$ac_cv_prog_RANLIB"; then | |
11271 | ac_ct_RANLIB=$RANLIB | |
11272 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11273 | set dummy ranlib; ac_word=$2 | |
11274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11276 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11278 | else |
e6cc62c6 VS |
11279 | if test -n "$ac_ct_RANLIB"; then |
11280 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11281 | else | |
11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11283 | for as_dir in $PATH | |
11284 | do | |
11285 | IFS=$as_save_IFS | |
11286 | test -z "$as_dir" && as_dir=. | |
11287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11289 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11291 | break 2 | |
11292 | fi | |
11293 | done | |
11294 | done | |
11295 | ||
11296 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11297 | fi | |
11298 | fi | |
11299 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11300 | if test -n "$ac_ct_RANLIB"; then | |
11301 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11302 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11303 | else | |
11304 | echo "$as_me:$LINENO: result: no" >&5 | |
11305 | echo "${ECHO_T}no" >&6 | |
11306 | fi | |
11307 | ||
11308 | RANLIB=$ac_ct_RANLIB | |
11309 | else | |
11310 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11311 | fi |
11312 | ||
10f2d63a VZ |
11313 | |
11314 | # Extract the first word of "ar", so it can be a program name with args. | |
11315 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11318 | if test "${ac_cv_prog_AR+set}" = set; then | |
11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11320 | else |
11321 | if test -n "$AR"; then | |
11322 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11323 | else | |
e6cc62c6 VS |
11324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11325 | for as_dir in $PATH | |
11326 | do | |
11327 | IFS=$as_save_IFS | |
11328 | test -z "$as_dir" && as_dir=. | |
11329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11331 | ac_cv_prog_AR="ar" | |
11332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11333 | break 2 | |
11334 | fi | |
11335 | done | |
11336 | done | |
11337 | ||
10f2d63a VZ |
11338 | fi |
11339 | fi | |
e6cc62c6 | 11340 | AR=$ac_cv_prog_AR |
10f2d63a | 11341 | if test -n "$AR"; then |
e6cc62c6 VS |
11342 | echo "$as_me:$LINENO: result: $AR" >&5 |
11343 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11344 | else |
e6cc62c6 VS |
11345 | echo "$as_me:$LINENO: result: no" >&5 |
11346 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11347 | fi |
11348 | ||
911740e7 VS |
11349 | if test "x$AR" = "x" ; then |
11350 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11351 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11352 | { (exit 1); exit 1; }; } | |
11353 | fi | |
8284b0c5 | 11354 | |
6054113a | 11355 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11356 | # so one script is as good as another. But avoid the broken or |
11357 | # incompatible versions: | |
11358 | # SysV /etc/install, /usr/sbin/install | |
11359 | # SunOS /usr/etc/install | |
11360 | # IRIX /sbin/install | |
11361 | # AIX /bin/install | |
e6cc62c6 | 11362 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11363 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11364 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11365 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11366 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11367 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11368 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11369 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11370 | if test "${ac_cv_path_install+set}" = set; then |
11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11372 | else | |
11373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11374 | for as_dir in $PATH | |
11375 | do | |
11376 | IFS=$as_save_IFS | |
11377 | test -z "$as_dir" && as_dir=. | |
11378 | # Account for people who put trailing slashes in PATH elements. | |
11379 | case $as_dir/ in | |
11380 | ./ | .// | /cC/* | \ | |
11381 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11382 | /usr/ucb/* ) ;; | |
11383 | *) | |
11384 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11385 | # Don't use installbsd from OSF since it installs stuff as root | |
11386 | # by default. | |
11387 | for ac_prog in ginstall scoinst install; do | |
11388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11389 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11390 | if test $ac_prog = install && | |
11391 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11392 | # AIX install. It has an incompatible calling convention. | |
11393 | : | |
11394 | elif test $ac_prog = install && | |
11395 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11396 | # program-specific install script used by HP pwplus--don't use. | |
11397 | : | |
11398 | else | |
11399 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11400 | break 3 | |
11401 | fi | |
11402 | fi | |
10f2d63a | 11403 | done |
e6cc62c6 VS |
11404 | done |
11405 | ;; | |
11406 | esac | |
11407 | done | |
11408 | ||
10f2d63a VZ |
11409 | |
11410 | fi | |
11411 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11412 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11413 | else |
11414 | # As a last resort, use the slow shell script. We don't cache a | |
11415 | # path for INSTALL within a source directory, because that will | |
11416 | # break other packages using the cache if that directory is | |
11417 | # removed, or if the path is relative. | |
e6cc62c6 | 11418 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11419 | fi |
11420 | fi | |
e6cc62c6 VS |
11421 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11422 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11423 | |
11424 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11425 | # It thinks the first close brace ends the variable substitution. | |
11426 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11427 | ||
e6cc62c6 | 11428 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11429 | |
10f2d63a VZ |
11430 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11431 | ||
8284b0c5 | 11432 | |
1d1b75ac VZ |
11433 | case ${INSTALL} in |
11434 | /* ) # Absolute | |
11435 | ;; | |
4f5a7f74 VZ |
11436 | ?:* ) # Drive letter, considered as absolute. |
11437 | ;; | |
3bd8fb5f | 11438 | *) |
1d1b75ac VZ |
11439 | INSTALL=`pwd`/${INSTALL} ;; |
11440 | esac | |
11441 | ||
4f5a7f74 VZ |
11442 | case ${host} in |
11443 | *-hp-hpux* ) | |
11444 | INSTALL_DIR="mkdir" | |
11445 | ;; | |
11446 | ||
11447 | *) INSTALL_DIR="$INSTALL -d" | |
11448 | ;; | |
11449 | esac | |
11450 | ||
8284b0c5 | 11451 | |
6054113a GD |
11452 | case "${host}" in |
11453 | ||
b5853384 | 11454 | powerpc-*-darwin* ) |
eb99ae0b GD |
11455 | INSTALL_PROGRAM="cp -fp" |
11456 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11457 | ;; |
11458 | *) | |
11459 | ;; | |
d6853540 | 11460 | esac |
698dcdb6 | 11461 | |
10f2d63a VZ |
11462 | # Extract the first word of "strip", so it can be a program name with args. |
11463 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11466 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11468 | else |
11469 | if test -n "$STRIP"; then | |
11470 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11471 | else | |
e6cc62c6 VS |
11472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11473 | for as_dir in $PATH | |
11474 | do | |
11475 | IFS=$as_save_IFS | |
11476 | test -z "$as_dir" && as_dir=. | |
11477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11479 | ac_cv_prog_STRIP="strip" | |
11480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11481 | break 2 | |
11482 | fi | |
11483 | done | |
11484 | done | |
11485 | ||
10f2d63a VZ |
11486 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11487 | fi | |
11488 | fi | |
e6cc62c6 | 11489 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11490 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11491 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11492 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11493 | else |
e6cc62c6 VS |
11494 | echo "$as_me:$LINENO: result: no" >&5 |
11495 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11496 | fi |
11497 | ||
5c6fa7d2 | 11498 | |
e6cc62c6 VS |
11499 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11500 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11501 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11503 | else |
e6cc62c6 | 11504 | |
414eab6d | 11505 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11506 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11507 | wx_cv_prog_makeisgnu="yes" |
11508 | else | |
11509 | wx_cv_prog_makeisgnu="no" | |
11510 | fi | |
11511 | ||
11512 | fi | |
e6cc62c6 VS |
11513 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11514 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11515 | |
11516 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11517 | IF_GNU_MAKE="" | |
11518 | else | |
11519 | IF_GNU_MAKE="#" | |
11520 | fi | |
11521 | ||
8284b0c5 MB |
11522 | |
11523 | ||
414eab6d | 11524 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11525 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11526 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11527 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11529 | else |
e6cc62c6 | 11530 | |
10f2d63a VZ |
11531 | cat - << EOF > confMake |
11532 | check : file | |
11533 | cp \$? \$@ | |
11534 | cp \$? final_file | |
11535 | EOF | |
11536 | ||
11537 | if test ! -d sub ; then | |
11538 | mkdir sub | |
11539 | fi | |
11540 | echo dummy > sub/file | |
f6bcfd97 | 11541 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11542 | RESULT=$? |
11543 | rm -f sub/file check final_file confMake | |
11544 | rmdir sub | |
11545 | if test "$RESULT" = 0; then | |
04e7a216 | 11546 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11547 | else |
04e7a216 VZ |
11548 | wx_cv_prog_makevpath="no" |
11549 | fi | |
11550 | ||
11551 | fi | |
e6cc62c6 VS |
11552 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11553 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11554 | |
11555 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11556 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11557 | You need a make-utility that is able to use the variable |
11558 | VPATH correctly. | |
11559 | If your version of make does not support VPATH correctly, | |
11560 | please install GNU-make (possibly as gmake), and start | |
11561 | configure with the following command: | |
11562 | export MAKE=gmake; ./configure for sh-type shells | |
11563 | setenv MAKE gmake; ./configure for csh-type shells | |
11564 | Also please do remember to use gmake in this case every time | |
11565 | you are trying to compile. | |
e6cc62c6 VS |
11566 | " >&5 |
11567 | echo "$as_me: error: | |
11568 | You need a make-utility that is able to use the variable | |
11569 | VPATH correctly. | |
11570 | If your version of make does not support VPATH correctly, | |
11571 | please install GNU-make (possibly as gmake), and start | |
11572 | configure with the following command: | |
11573 | export MAKE=gmake; ./configure for sh-type shells | |
11574 | setenv MAKE gmake; ./configure for csh-type shells | |
11575 | Also please do remember to use gmake in this case every time | |
11576 | you are trying to compile. | |
11577 | " >&2;} | |
11578 | { (exit 1); exit 1; }; } | |
11579 | fi fi | |
e6cc62c6 VS |
11580 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11581 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11582 | LN_S=$as_ln_s | |
11583 | if test "$LN_S" = "ln -s"; then | |
11584 | echo "$as_me:$LINENO: result: yes" >&5 | |
11585 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11586 | else |
e6cc62c6 VS |
11587 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11588 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11589 | fi |
5c6fa7d2 | 11590 | |
247f5006 | 11591 | |
2b5f62a0 VZ |
11592 | case "${host}" in |
11593 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11594 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11595 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11596 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11597 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11599 | else |
e6cc62c6 | 11600 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11601 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11602 | cat >conftest.$ac_ext <<_ACEOF |
11603 | #line $LINENO "configure" | |
11604 | /* confdefs.h. */ | |
11605 | _ACEOF | |
11606 | cat confdefs.h >>conftest.$ac_ext | |
11607 | cat >>conftest.$ac_ext <<_ACEOF | |
11608 | /* end confdefs.h. */ | |
11609 | ||
2b5f62a0 | 11610 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11611 | #ifdef __cplusplus |
11612 | extern "C" | |
11613 | #endif | |
2b5f62a0 | 11614 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11615 | builtin and then its argument prototype would still apply. */ |
11616 | char drand48 (); | |
11617 | int | |
11618 | main () | |
11619 | { | |
11620 | drand48 (); | |
11621 | ; | |
11622 | return 0; | |
11623 | } | |
11624 | _ACEOF | |
11625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11627 | (eval $ac_link) 2>&5 | |
11628 | ac_status=$? | |
11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11630 | (exit $ac_status); } && | |
11631 | { ac_try='test -s conftest$ac_exeext' | |
11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11633 | (eval $ac_try) 2>&5 | |
11634 | ac_status=$? | |
11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11636 | (exit $ac_status); }; }; then | |
11637 | ac_cv_lib_cExt_drand48=yes | |
11638 | else | |
11639 | echo "$as_me: failed program was:" >&5 | |
11640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11641 | ||
11642 | ac_cv_lib_cExt_drand48=no | |
11643 | fi | |
11644 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11645 | LIBS=$ac_check_lib_save_LIBS | |
11646 | fi | |
11647 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11648 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11649 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11650 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11651 | fi |
11652 | ||
11653 | else | |
11654 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11655 | fi | |
11656 | ;; | |
11657 | esac | |
11658 | ||
a0b9e27f | 11659 | |
01aa5863 VS |
11660 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11661 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11662 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11663 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11665 | else | |
11666 | ac_cv_header_strings_h=no | |
11667 | fi | |
11668 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11669 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11670 | if test "$ac_cv_header_strings_h" = "no"; then | |
11671 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11672 | echo "${ECHO_T}forced no into cache" >&6 | |
11673 | else | |
11674 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11675 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11676 | fi | |
11677 | fi | |
11678 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11679 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11680 | if test "${ac_cv_header_stdc+set}" = set; then | |
11681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11682 | else | |
11683 | cat >conftest.$ac_ext <<_ACEOF | |
11684 | #line $LINENO "configure" | |
11685 | /* confdefs.h. */ | |
11686 | _ACEOF | |
11687 | cat confdefs.h >>conftest.$ac_ext | |
11688 | cat >>conftest.$ac_ext <<_ACEOF | |
11689 | /* end confdefs.h. */ | |
11690 | #include <stdlib.h> | |
11691 | #include <stdarg.h> | |
11692 | #include <string.h> | |
11693 | #include <float.h> | |
247f5006 | 11694 | |
e6cc62c6 VS |
11695 | int |
11696 | main () | |
11697 | { | |
90dd450c | 11698 | |
e6cc62c6 VS |
11699 | ; |
11700 | return 0; | |
11701 | } | |
11702 | _ACEOF | |
11703 | rm -f conftest.$ac_objext | |
11704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11705 | (eval $ac_compile) 2>&5 | |
11706 | ac_status=$? | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); } && | |
11709 | { ac_try='test -s conftest.$ac_objext' | |
11710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11711 | (eval $ac_try) 2>&5 | |
11712 | ac_status=$? | |
11713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11714 | (exit $ac_status); }; }; then | |
11715 | ac_cv_header_stdc=yes | |
8284b0c5 | 11716 | else |
e6cc62c6 VS |
11717 | echo "$as_me: failed program was:" >&5 |
11718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11719 | ||
11720 | ac_cv_header_stdc=no | |
21d1c967 | 11721 | fi |
e6cc62c6 | 11722 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11723 | |
e6cc62c6 VS |
11724 | if test $ac_cv_header_stdc = yes; then |
11725 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11726 | cat >conftest.$ac_ext <<_ACEOF | |
11727 | #line $LINENO "configure" | |
11728 | /* confdefs.h. */ | |
11729 | _ACEOF | |
11730 | cat confdefs.h >>conftest.$ac_ext | |
11731 | cat >>conftest.$ac_ext <<_ACEOF | |
11732 | /* end confdefs.h. */ | |
11733 | #include <string.h> | |
11734 | ||
11735 | _ACEOF | |
11736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11737 | $EGREP "memchr" >/dev/null 2>&1; then | |
11738 | : | |
11739 | else | |
11740 | ac_cv_header_stdc=no | |
3a922bb4 | 11741 | fi |
a0b9e27f | 11742 | rm -f conftest* |
e6cc62c6 | 11743 | |
90dd450c | 11744 | fi |
e6cc62c6 VS |
11745 | |
11746 | if test $ac_cv_header_stdc = yes; then | |
11747 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11748 | cat >conftest.$ac_ext <<_ACEOF | |
11749 | #line $LINENO "configure" | |
11750 | /* confdefs.h. */ | |
11751 | _ACEOF | |
11752 | cat confdefs.h >>conftest.$ac_ext | |
11753 | cat >>conftest.$ac_ext <<_ACEOF | |
11754 | /* end confdefs.h. */ | |
11755 | #include <stdlib.h> | |
11756 | ||
11757 | _ACEOF | |
11758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11759 | $EGREP "free" >/dev/null 2>&1; then | |
11760 | : | |
a0b9e27f | 11761 | else |
e6cc62c6 | 11762 | ac_cv_header_stdc=no |
21d1c967 | 11763 | fi |
e6cc62c6 | 11764 | rm -f conftest* |
247f5006 VZ |
11765 | |
11766 | fi | |
e6cc62c6 VS |
11767 | |
11768 | if test $ac_cv_header_stdc = yes; then | |
11769 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11770 | if test "$cross_compiling" = yes; then | |
11771 | : | |
11772 | else | |
11773 | cat >conftest.$ac_ext <<_ACEOF | |
11774 | #line $LINENO "configure" | |
11775 | /* confdefs.h. */ | |
11776 | _ACEOF | |
11777 | cat confdefs.h >>conftest.$ac_ext | |
11778 | cat >>conftest.$ac_ext <<_ACEOF | |
11779 | /* end confdefs.h. */ | |
11780 | #include <ctype.h> | |
11781 | #if ((' ' & 0x0FF) == 0x020) | |
11782 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11783 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11784 | #else | |
11785 | # define ISLOWER(c) \ | |
11786 | (('a' <= (c) && (c) <= 'i') \ | |
11787 | || ('j' <= (c) && (c) <= 'r') \ | |
11788 | || ('s' <= (c) && (c) <= 'z')) | |
11789 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11790 | #endif | |
11791 | ||
11792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11793 | int | |
11794 | main () | |
11795 | { | |
11796 | int i; | |
11797 | for (i = 0; i < 256; i++) | |
11798 | if (XOR (islower (i), ISLOWER (i)) | |
11799 | || toupper (i) != TOUPPER (i)) | |
11800 | exit(2); | |
11801 | exit (0); | |
11802 | } | |
11803 | _ACEOF | |
11804 | rm -f conftest$ac_exeext | |
11805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11806 | (eval $ac_link) 2>&5 | |
11807 | ac_status=$? | |
11808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11811 | (eval $ac_try) 2>&5 | |
11812 | ac_status=$? | |
11813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11814 | (exit $ac_status); }; }; then | |
11815 | : | |
a0b9e27f | 11816 | else |
e6cc62c6 VS |
11817 | echo "$as_me: program exited with status $ac_status" >&5 |
11818 | echo "$as_me: failed program was:" >&5 | |
11819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11820 | ||
11821 | ( exit $ac_status ) | |
11822 | ac_cv_header_stdc=no | |
11823 | fi | |
11824 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11825 | fi | |
11826 | fi | |
11827 | fi | |
11828 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11829 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
11830 | if test $ac_cv_header_stdc = yes; then | |
11831 | ||
11832 | cat >>confdefs.h <<\_ACEOF | |
11833 | #define STDC_HEADERS 1 | |
11834 | _ACEOF | |
11835 | ||
a0b9e27f | 11836 | fi |
e6cc62c6 VS |
11837 | |
11838 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
11839 | ||
11840 | ||
11841 | ||
11842 | ||
11843 | ||
11844 | ||
11845 | ||
11846 | ||
11847 | ||
11848 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
11849 | inttypes.h stdint.h unistd.h | |
11850 | do | |
11851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11856 | else | |
11857 | cat >conftest.$ac_ext <<_ACEOF | |
11858 | #line $LINENO "configure" | |
11859 | /* confdefs.h. */ | |
11860 | _ACEOF | |
11861 | cat confdefs.h >>conftest.$ac_ext | |
11862 | cat >>conftest.$ac_ext <<_ACEOF | |
11863 | /* end confdefs.h. */ | |
11864 | $ac_includes_default | |
11865 | ||
11866 | #include <$ac_header> | |
11867 | _ACEOF | |
11868 | rm -f conftest.$ac_objext | |
11869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11870 | (eval $ac_compile) 2>&5 | |
11871 | ac_status=$? | |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); } && | |
11874 | { ac_try='test -s conftest.$ac_objext' | |
11875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11876 | (eval $ac_try) 2>&5 | |
11877 | ac_status=$? | |
11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11879 | (exit $ac_status); }; }; then | |
11880 | eval "$as_ac_Header=yes" | |
11881 | else | |
11882 | echo "$as_me: failed program was:" >&5 | |
11883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11884 | ||
11885 | eval "$as_ac_Header=no" | |
11886 | fi | |
11887 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11888 | fi | |
11889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11890 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11892 | cat >>confdefs.h <<_ACEOF | |
11893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11894 | _ACEOF | |
11895 | ||
11896 | fi | |
11897 | ||
a0b9e27f | 11898 | done |
90dd450c | 11899 | |
e6cc62c6 VS |
11900 | |
11901 | ||
11902 | for ac_header in strings.h | |
21d1c967 | 11903 | do |
e6cc62c6 VS |
11904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11910 | fi | |
11911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11913 | else | |
11914 | # Is the header compilable? | |
11915 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11916 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11917 | cat >conftest.$ac_ext <<_ACEOF | |
11918 | #line $LINENO "configure" | |
11919 | /* confdefs.h. */ | |
11920 | _ACEOF | |
11921 | cat confdefs.h >>conftest.$ac_ext | |
11922 | cat >>conftest.$ac_ext <<_ACEOF | |
11923 | /* end confdefs.h. */ | |
11924 | $ac_includes_default | |
11925 | #include <$ac_header> | |
11926 | _ACEOF | |
11927 | rm -f conftest.$ac_objext | |
11928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11929 | (eval $ac_compile) 2>&5 | |
11930 | ac_status=$? | |
11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11932 | (exit $ac_status); } && | |
11933 | { ac_try='test -s conftest.$ac_objext' | |
11934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11935 | (eval $ac_try) 2>&5 | |
11936 | ac_status=$? | |
11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11938 | (exit $ac_status); }; }; then | |
11939 | ac_header_compiler=yes | |
11940 | else | |
11941 | echo "$as_me: failed program was:" >&5 | |
11942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11943 | ||
11944 | ac_header_compiler=no | |
11945 | fi | |
11946 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11949 | ||
11950 | # Is the header present? | |
11951 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11952 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11953 | cat >conftest.$ac_ext <<_ACEOF | |
11954 | #line $LINENO "configure" | |
11955 | /* confdefs.h. */ | |
11956 | _ACEOF | |
11957 | cat confdefs.h >>conftest.$ac_ext | |
11958 | cat >>conftest.$ac_ext <<_ACEOF | |
11959 | /* end confdefs.h. */ | |
11960 | #include <$ac_header> | |
11961 | _ACEOF | |
11962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11964 | ac_status=$? | |
11965 | grep -v '^ *+' conftest.er1 >conftest.err | |
11966 | rm -f conftest.er1 | |
11967 | cat conftest.err >&5 | |
11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11969 | (exit $ac_status); } >/dev/null; then | |
11970 | if test -s conftest.err; then | |
11971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11972 | else | |
11973 | ac_cpp_err= | |
11974 | fi | |
11975 | else | |
11976 | ac_cpp_err=yes | |
11977 | fi | |
11978 | if test -z "$ac_cpp_err"; then | |
11979 | ac_header_preproc=yes | |
11980 | else | |
11981 | echo "$as_me: failed program was:" >&5 | |
11982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11983 | ||
11984 | ac_header_preproc=no | |
11985 | fi | |
11986 | rm -f conftest.err conftest.$ac_ext | |
11987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11989 | ||
11990 | # So? What about this header? | |
11991 | case $ac_header_compiler:$ac_header_preproc in | |
11992 | yes:no ) | |
11993 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11994 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11996 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11997 | ( | |
11998 | cat <<\_ASBOX | |
11999 | ## ------------------------------------ ## | |
12000 | ## Report this to bug-autoconf@gnu.org. ## | |
12001 | ## ------------------------------------ ## | |
12002 | _ASBOX | |
12003 | ) | | |
12004 | sed "s/^/$as_me: WARNING: /" >&2 | |
12005 | ;; | |
12006 | no:yes ) | |
12007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12013 | ( | |
12014 | cat <<\_ASBOX | |
12015 | ## ------------------------------------ ## | |
12016 | ## Report this to bug-autoconf@gnu.org. ## | |
12017 | ## ------------------------------------ ## | |
12018 | _ASBOX | |
12019 | ) | | |
12020 | sed "s/^/$as_me: WARNING: /" >&2 | |
12021 | ;; | |
12022 | esac | |
12023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12027 | else | |
12028 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12029 | fi |
e6cc62c6 VS |
12030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12032 | ||
a0b9e27f | 12033 | fi |
e6cc62c6 VS |
12034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12035 | cat >>confdefs.h <<_ACEOF | |
12036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12037 | _ACEOF | |
12038 | ||
12039 | fi | |
12040 | ||
12041 | done | |
12042 | ||
e6cc62c6 VS |
12043 | |
12044 | ||
12045 | for ac_header in stdlib.h | |
12046 | do | |
12047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12053 | fi | |
12054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12056 | else | |
12057 | # Is the header compilable? | |
12058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12060 | cat >conftest.$ac_ext <<_ACEOF | |
12061 | #line $LINENO "configure" | |
12062 | /* confdefs.h. */ | |
12063 | _ACEOF | |
12064 | cat confdefs.h >>conftest.$ac_ext | |
12065 | cat >>conftest.$ac_ext <<_ACEOF | |
12066 | /* end confdefs.h. */ | |
12067 | $ac_includes_default | |
12068 | #include <$ac_header> | |
12069 | _ACEOF | |
12070 | rm -f conftest.$ac_objext | |
12071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12072 | (eval $ac_compile) 2>&5 | |
12073 | ac_status=$? | |
12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12075 | (exit $ac_status); } && | |
12076 | { ac_try='test -s conftest.$ac_objext' | |
12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12078 | (eval $ac_try) 2>&5 | |
12079 | ac_status=$? | |
12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12081 | (exit $ac_status); }; }; then | |
12082 | ac_header_compiler=yes | |
12083 | else | |
12084 | echo "$as_me: failed program was:" >&5 | |
12085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12086 | ||
12087 | ac_header_compiler=no | |
12088 | fi | |
12089 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12090 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12091 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12092 | ||
12093 | # Is the header present? | |
12094 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12096 | cat >conftest.$ac_ext <<_ACEOF | |
12097 | #line $LINENO "configure" | |
12098 | /* confdefs.h. */ | |
12099 | _ACEOF | |
12100 | cat confdefs.h >>conftest.$ac_ext | |
12101 | cat >>conftest.$ac_ext <<_ACEOF | |
12102 | /* end confdefs.h. */ | |
12103 | #include <$ac_header> | |
12104 | _ACEOF | |
12105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12107 | ac_status=$? | |
12108 | grep -v '^ *+' conftest.er1 >conftest.err | |
12109 | rm -f conftest.er1 | |
12110 | cat conftest.err >&5 | |
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12112 | (exit $ac_status); } >/dev/null; then | |
12113 | if test -s conftest.err; then | |
12114 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12115 | else | |
12116 | ac_cpp_err= | |
12117 | fi | |
12118 | else | |
12119 | ac_cpp_err=yes | |
12120 | fi | |
12121 | if test -z "$ac_cpp_err"; then | |
12122 | ac_header_preproc=yes | |
12123 | else | |
12124 | echo "$as_me: failed program was:" >&5 | |
12125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12126 | ||
12127 | ac_header_preproc=no | |
12128 | fi | |
12129 | rm -f conftest.err conftest.$ac_ext | |
12130 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12131 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12132 | ||
12133 | # So? What about this header? | |
12134 | case $ac_header_compiler:$ac_header_preproc in | |
12135 | yes:no ) | |
12136 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12137 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12140 | ( | |
12141 | cat <<\_ASBOX | |
12142 | ## ------------------------------------ ## | |
12143 | ## Report this to bug-autoconf@gnu.org. ## | |
12144 | ## ------------------------------------ ## | |
12145 | _ASBOX | |
12146 | ) | | |
12147 | sed "s/^/$as_me: WARNING: /" >&2 | |
12148 | ;; | |
12149 | no:yes ) | |
12150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12155 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12156 | ( | |
12157 | cat <<\_ASBOX | |
12158 | ## ------------------------------------ ## | |
12159 | ## Report this to bug-autoconf@gnu.org. ## | |
12160 | ## ------------------------------------ ## | |
12161 | _ASBOX | |
12162 | ) | | |
12163 | sed "s/^/$as_me: WARNING: /" >&2 | |
12164 | ;; | |
12165 | esac | |
12166 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12170 | else |
e6cc62c6 VS |
12171 | eval "$as_ac_Header=$ac_header_preproc" |
12172 | fi | |
12173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12175 | ||
21d1c967 | 12176 | fi |
e6cc62c6 VS |
12177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12178 | cat >>confdefs.h <<_ACEOF | |
12179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12180 | _ACEOF | |
12181 | ||
12182 | fi | |
12183 | ||
21d1c967 | 12184 | done |
4f14bcd8 | 12185 | |
5c6fa7d2 | 12186 | |
e6cc62c6 | 12187 | for ac_header in malloc.h |
21d1c967 | 12188 | do |
e6cc62c6 VS |
12189 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12191 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12195 | fi | |
12196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12198 | else | |
12199 | # Is the header compilable? | |
12200 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12201 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12202 | cat >conftest.$ac_ext <<_ACEOF | |
12203 | #line $LINENO "configure" | |
12204 | /* confdefs.h. */ | |
12205 | _ACEOF | |
12206 | cat confdefs.h >>conftest.$ac_ext | |
12207 | cat >>conftest.$ac_ext <<_ACEOF | |
12208 | /* end confdefs.h. */ | |
12209 | $ac_includes_default | |
12210 | #include <$ac_header> | |
12211 | _ACEOF | |
12212 | rm -f conftest.$ac_objext | |
12213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12214 | (eval $ac_compile) 2>&5 | |
12215 | ac_status=$? | |
12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12217 | (exit $ac_status); } && | |
12218 | { ac_try='test -s conftest.$ac_objext' | |
12219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12220 | (eval $ac_try) 2>&5 | |
12221 | ac_status=$? | |
12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12223 | (exit $ac_status); }; }; then | |
12224 | ac_header_compiler=yes | |
12225 | else | |
12226 | echo "$as_me: failed program was:" >&5 | |
12227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12228 | ||
12229 | ac_header_compiler=no | |
12230 | fi | |
12231 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12233 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12234 | ||
12235 | # Is the header present? | |
12236 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12237 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12238 | cat >conftest.$ac_ext <<_ACEOF | |
12239 | #line $LINENO "configure" | |
12240 | /* confdefs.h. */ | |
12241 | _ACEOF | |
12242 | cat confdefs.h >>conftest.$ac_ext | |
12243 | cat >>conftest.$ac_ext <<_ACEOF | |
12244 | /* end confdefs.h. */ | |
12245 | #include <$ac_header> | |
12246 | _ACEOF | |
12247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12249 | ac_status=$? | |
12250 | grep -v '^ *+' conftest.er1 >conftest.err | |
12251 | rm -f conftest.er1 | |
12252 | cat conftest.err >&5 | |
12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12254 | (exit $ac_status); } >/dev/null; then | |
12255 | if test -s conftest.err; then | |
12256 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12257 | else | |
12258 | ac_cpp_err= | |
12259 | fi | |
12260 | else | |
12261 | ac_cpp_err=yes | |
12262 | fi | |
12263 | if test -z "$ac_cpp_err"; then | |
12264 | ac_header_preproc=yes | |
12265 | else | |
12266 | echo "$as_me: failed program was:" >&5 | |
12267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12268 | ||
12269 | ac_header_preproc=no | |
12270 | fi | |
12271 | rm -f conftest.err conftest.$ac_ext | |
12272 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12273 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12274 | ||
12275 | # So? What about this header? | |
12276 | case $ac_header_compiler:$ac_header_preproc in | |
12277 | yes:no ) | |
12278 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12279 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12281 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12282 | ( | |
12283 | cat <<\_ASBOX | |
12284 | ## ------------------------------------ ## | |
12285 | ## Report this to bug-autoconf@gnu.org. ## | |
12286 | ## ------------------------------------ ## | |
12287 | _ASBOX | |
12288 | ) | | |
12289 | sed "s/^/$as_me: WARNING: /" >&2 | |
12290 | ;; | |
12291 | no:yes ) | |
12292 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12293 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12294 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12295 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12298 | ( | |
12299 | cat <<\_ASBOX | |
12300 | ## ------------------------------------ ## | |
12301 | ## Report this to bug-autoconf@gnu.org. ## | |
12302 | ## ------------------------------------ ## | |
12303 | _ASBOX | |
12304 | ) | | |
12305 | sed "s/^/$as_me: WARNING: /" >&2 | |
12306 | ;; | |
12307 | esac | |
12308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12312 | else | |
12313 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12314 | fi |
e6cc62c6 VS |
12315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12317 | ||
21d1c967 | 12318 | fi |
e6cc62c6 VS |
12319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12320 | cat >>confdefs.h <<_ACEOF | |
12321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12322 | _ACEOF | |
12323 | ||
12324 | fi | |
12325 | ||
12326 | done | |
12327 | ||
12328 | ||
12329 | for ac_header in unistd.h | |
12330 | do | |
12331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12337 | fi | |
12338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12340 | else | |
12341 | # Is the header compilable? | |
12342 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12343 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12344 | cat >conftest.$ac_ext <<_ACEOF | |
12345 | #line $LINENO "configure" | |
12346 | /* confdefs.h. */ | |
12347 | _ACEOF | |
12348 | cat confdefs.h >>conftest.$ac_ext | |
12349 | cat >>conftest.$ac_ext <<_ACEOF | |
12350 | /* end confdefs.h. */ | |
12351 | $ac_includes_default | |
12352 | #include <$ac_header> | |
12353 | _ACEOF | |
12354 | rm -f conftest.$ac_objext | |
12355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12356 | (eval $ac_compile) 2>&5 | |
12357 | ac_status=$? | |
12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12359 | (exit $ac_status); } && | |
12360 | { ac_try='test -s conftest.$ac_objext' | |
12361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12362 | (eval $ac_try) 2>&5 | |
12363 | ac_status=$? | |
12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12365 | (exit $ac_status); }; }; then | |
12366 | ac_header_compiler=yes | |
12367 | else | |
12368 | echo "$as_me: failed program was:" >&5 | |
12369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12370 | ||
12371 | ac_header_compiler=no | |
12372 | fi | |
12373 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12374 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12375 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12376 | ||
12377 | # Is the header present? | |
12378 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12379 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12380 | cat >conftest.$ac_ext <<_ACEOF | |
12381 | #line $LINENO "configure" | |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
12387 | #include <$ac_header> | |
12388 | _ACEOF | |
12389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12391 | ac_status=$? | |
12392 | grep -v '^ *+' conftest.er1 >conftest.err | |
12393 | rm -f conftest.er1 | |
12394 | cat conftest.err >&5 | |
12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12396 | (exit $ac_status); } >/dev/null; then | |
12397 | if test -s conftest.err; then | |
12398 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12399 | else | |
12400 | ac_cpp_err= | |
12401 | fi | |
a0b9e27f | 12402 | else |
e6cc62c6 VS |
12403 | ac_cpp_err=yes |
12404 | fi | |
12405 | if test -z "$ac_cpp_err"; then | |
12406 | ac_header_preproc=yes | |
12407 | else | |
12408 | echo "$as_me: failed program was:" >&5 | |
12409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12410 | ||
12411 | ac_header_preproc=no | |
12412 | fi | |
12413 | rm -f conftest.err conftest.$ac_ext | |
12414 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12415 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12416 | ||
12417 | # So? What about this header? | |
12418 | case $ac_header_compiler:$ac_header_preproc in | |
12419 | yes:no ) | |
12420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12424 | ( | |
12425 | cat <<\_ASBOX | |
12426 | ## ------------------------------------ ## | |
12427 | ## Report this to bug-autoconf@gnu.org. ## | |
12428 | ## ------------------------------------ ## | |
12429 | _ASBOX | |
12430 | ) | | |
12431 | sed "s/^/$as_me: WARNING: /" >&2 | |
12432 | ;; | |
12433 | no:yes ) | |
12434 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12435 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12436 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12437 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12439 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12440 | ( | |
12441 | cat <<\_ASBOX | |
12442 | ## ------------------------------------ ## | |
12443 | ## Report this to bug-autoconf@gnu.org. ## | |
12444 | ## ------------------------------------ ## | |
12445 | _ASBOX | |
12446 | ) | | |
12447 | sed "s/^/$as_me: WARNING: /" >&2 | |
12448 | ;; | |
12449 | esac | |
12450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12454 | else | |
12455 | eval "$as_ac_Header=$ac_header_preproc" | |
12456 | fi | |
12457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12459 | ||
12460 | fi | |
12461 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12462 | cat >>confdefs.h <<_ACEOF | |
12463 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12464 | _ACEOF | |
12465 | ||
d4158b5d | 12466 | fi |
e6cc62c6 | 12467 | |
21d1c967 | 12468 | done |
f6bcfd97 | 12469 | |
e6cc62c6 VS |
12470 | |
12471 | for ac_header in wchar.h | |
12472 | do | |
12473 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12479 | fi | |
12480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12482 | else | |
12483 | # Is the header compilable? | |
12484 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12485 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12486 | cat >conftest.$ac_ext <<_ACEOF | |
12487 | #line $LINENO "configure" | |
12488 | /* confdefs.h. */ | |
12489 | _ACEOF | |
12490 | cat confdefs.h >>conftest.$ac_ext | |
12491 | cat >>conftest.$ac_ext <<_ACEOF | |
12492 | /* end confdefs.h. */ | |
12493 | $ac_includes_default | |
12494 | #include <$ac_header> | |
12495 | _ACEOF | |
12496 | rm -f conftest.$ac_objext | |
12497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12498 | (eval $ac_compile) 2>&5 | |
12499 | ac_status=$? | |
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12501 | (exit $ac_status); } && | |
12502 | { ac_try='test -s conftest.$ac_objext' | |
12503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12504 | (eval $ac_try) 2>&5 | |
12505 | ac_status=$? | |
12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12507 | (exit $ac_status); }; }; then | |
12508 | ac_header_compiler=yes | |
12509 | else | |
12510 | echo "$as_me: failed program was:" >&5 | |
12511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12512 | ||
12513 | ac_header_compiler=no | |
12514 | fi | |
12515 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12516 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12517 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12518 | ||
12519 | # Is the header present? | |
12520 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12521 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12522 | cat >conftest.$ac_ext <<_ACEOF | |
12523 | #line $LINENO "configure" | |
12524 | /* confdefs.h. */ | |
12525 | _ACEOF | |
12526 | cat confdefs.h >>conftest.$ac_ext | |
12527 | cat >>conftest.$ac_ext <<_ACEOF | |
12528 | /* end confdefs.h. */ | |
12529 | #include <$ac_header> | |
12530 | _ACEOF | |
12531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12533 | ac_status=$? | |
12534 | grep -v '^ *+' conftest.er1 >conftest.err | |
12535 | rm -f conftest.er1 | |
12536 | cat conftest.err >&5 | |
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12538 | (exit $ac_status); } >/dev/null; then | |
12539 | if test -s conftest.err; then | |
12540 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12541 | else | |
12542 | ac_cpp_err= | |
12543 | fi | |
12544 | else | |
12545 | ac_cpp_err=yes | |
12546 | fi | |
12547 | if test -z "$ac_cpp_err"; then | |
12548 | ac_header_preproc=yes | |
12549 | else | |
12550 | echo "$as_me: failed program was:" >&5 | |
12551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12552 | ||
12553 | ac_header_preproc=no | |
12554 | fi | |
12555 | rm -f conftest.err conftest.$ac_ext | |
12556 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12557 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12558 | ||
12559 | # So? What about this header? | |
12560 | case $ac_header_compiler:$ac_header_preproc in | |
12561 | yes:no ) | |
12562 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12563 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12565 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12566 | ( | |
12567 | cat <<\_ASBOX | |
12568 | ## ------------------------------------ ## | |
12569 | ## Report this to bug-autoconf@gnu.org. ## | |
12570 | ## ------------------------------------ ## | |
12571 | _ASBOX | |
12572 | ) | | |
12573 | sed "s/^/$as_me: WARNING: /" >&2 | |
12574 | ;; | |
12575 | no:yes ) | |
12576 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12577 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12578 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12579 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12582 | ( | |
12583 | cat <<\_ASBOX | |
12584 | ## ------------------------------------ ## | |
12585 | ## Report this to bug-autoconf@gnu.org. ## | |
12586 | ## ------------------------------------ ## | |
12587 | _ASBOX | |
12588 | ) | | |
12589 | sed "s/^/$as_me: WARNING: /" >&2 | |
12590 | ;; | |
12591 | esac | |
12592 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12596 | else | |
12597 | eval "$as_ac_Header=$ac_header_preproc" | |
12598 | fi | |
12599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12600 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12601 | ||
90dd450c | 12602 | fi |
e6cc62c6 VS |
12603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12604 | cat >>confdefs.h <<_ACEOF | |
12605 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12606 | _ACEOF | |
12607 | ||
12608 | fi | |
12609 | ||
12610 | done | |
90dd450c | 12611 | |
e6cc62c6 VS |
12612 | |
12613 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12614 | ||
12615 | for ac_header in wcstr.h | |
21d1c967 | 12616 | do |
e6cc62c6 VS |
12617 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12619 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12623 | fi | |
12624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12626 | else | |
12627 | # Is the header compilable? | |
12628 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12629 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | #line $LINENO "configure" | |
12632 | /* confdefs.h. */ | |
12633 | _ACEOF | |
12634 | cat confdefs.h >>conftest.$ac_ext | |
12635 | cat >>conftest.$ac_ext <<_ACEOF | |
12636 | /* end confdefs.h. */ | |
12637 | $ac_includes_default | |
12638 | #include <$ac_header> | |
12639 | _ACEOF | |
12640 | rm -f conftest.$ac_objext | |
12641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12642 | (eval $ac_compile) 2>&5 | |
12643 | ac_status=$? | |
12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12645 | (exit $ac_status); } && | |
12646 | { ac_try='test -s conftest.$ac_objext' | |
12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12648 | (eval $ac_try) 2>&5 | |
12649 | ac_status=$? | |
12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12651 | (exit $ac_status); }; }; then | |
12652 | ac_header_compiler=yes | |
12653 | else | |
12654 | echo "$as_me: failed program was:" >&5 | |
12655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12656 | ||
12657 | ac_header_compiler=no | |
12658 | fi | |
12659 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12661 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12662 | ||
12663 | # Is the header present? | |
12664 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12666 | cat >conftest.$ac_ext <<_ACEOF | |
12667 | #line $LINENO "configure" | |
12668 | /* confdefs.h. */ | |
12669 | _ACEOF | |
12670 | cat confdefs.h >>conftest.$ac_ext | |
12671 | cat >>conftest.$ac_ext <<_ACEOF | |
12672 | /* end confdefs.h. */ | |
12673 | #include <$ac_header> | |
12674 | _ACEOF | |
12675 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12676 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12677 | ac_status=$? | |
12678 | grep -v '^ *+' conftest.er1 >conftest.err | |
12679 | rm -f conftest.er1 | |
12680 | cat conftest.err >&5 | |
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12682 | (exit $ac_status); } >/dev/null; then | |
12683 | if test -s conftest.err; then | |
12684 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12685 | else | |
12686 | ac_cpp_err= | |
12687 | fi | |
12688 | else | |
12689 | ac_cpp_err=yes | |
12690 | fi | |
12691 | if test -z "$ac_cpp_err"; then | |
12692 | ac_header_preproc=yes | |
12693 | else | |
12694 | echo "$as_me: failed program was:" >&5 | |
12695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12696 | ||
12697 | ac_header_preproc=no | |
12698 | fi | |
12699 | rm -f conftest.err conftest.$ac_ext | |
12700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12701 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12702 | ||
12703 | # So? What about this header? | |
12704 | case $ac_header_compiler:$ac_header_preproc in | |
12705 | yes:no ) | |
12706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12709 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12710 | ( | |
12711 | cat <<\_ASBOX | |
12712 | ## ------------------------------------ ## | |
12713 | ## Report this to bug-autoconf@gnu.org. ## | |
12714 | ## ------------------------------------ ## | |
12715 | _ASBOX | |
12716 | ) | | |
12717 | sed "s/^/$as_me: WARNING: /" >&2 | |
12718 | ;; | |
12719 | no:yes ) | |
12720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12726 | ( | |
12727 | cat <<\_ASBOX | |
12728 | ## ------------------------------------ ## | |
12729 | ## Report this to bug-autoconf@gnu.org. ## | |
12730 | ## ------------------------------------ ## | |
12731 | _ASBOX | |
12732 | ) | | |
12733 | sed "s/^/$as_me: WARNING: /" >&2 | |
12734 | ;; | |
12735 | esac | |
12736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12740 | else | |
12741 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12742 | fi |
e6cc62c6 VS |
12743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12745 | ||
4f14bcd8 | 12746 | fi |
e6cc62c6 VS |
12747 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12748 | cat >>confdefs.h <<_ACEOF | |
12749 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12750 | _ACEOF | |
12751 | ||
12752 | fi | |
12753 | ||
12754 | done | |
12755 | ||
12756 | fi | |
12757 | ||
12758 | ||
12759 | for ac_header in fnmatch.h | |
12760 | do | |
12761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12767 | fi | |
12768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12770 | else | |
12771 | # Is the header compilable? | |
12772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12774 | cat >conftest.$ac_ext <<_ACEOF | |
12775 | #line $LINENO "configure" | |
12776 | /* confdefs.h. */ | |
12777 | _ACEOF | |
12778 | cat confdefs.h >>conftest.$ac_ext | |
12779 | cat >>conftest.$ac_ext <<_ACEOF | |
12780 | /* end confdefs.h. */ | |
12781 | $ac_includes_default | |
12782 | #include <$ac_header> | |
12783 | _ACEOF | |
12784 | rm -f conftest.$ac_objext | |
12785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12786 | (eval $ac_compile) 2>&5 | |
12787 | ac_status=$? | |
12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12789 | (exit $ac_status); } && | |
12790 | { ac_try='test -s conftest.$ac_objext' | |
12791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12792 | (eval $ac_try) 2>&5 | |
12793 | ac_status=$? | |
12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12795 | (exit $ac_status); }; }; then | |
12796 | ac_header_compiler=yes | |
12797 | else | |
12798 | echo "$as_me: failed program was:" >&5 | |
12799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12800 | ||
12801 | ac_header_compiler=no | |
12802 | fi | |
12803 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12804 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12805 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12806 | ||
12807 | # Is the header present? | |
12808 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12809 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12810 | cat >conftest.$ac_ext <<_ACEOF | |
12811 | #line $LINENO "configure" | |
12812 | /* confdefs.h. */ | |
12813 | _ACEOF | |
12814 | cat confdefs.h >>conftest.$ac_ext | |
12815 | cat >>conftest.$ac_ext <<_ACEOF | |
12816 | /* end confdefs.h. */ | |
12817 | #include <$ac_header> | |
12818 | _ACEOF | |
12819 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12820 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12821 | ac_status=$? | |
12822 | grep -v '^ *+' conftest.er1 >conftest.err | |
12823 | rm -f conftest.er1 | |
12824 | cat conftest.err >&5 | |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12826 | (exit $ac_status); } >/dev/null; then | |
12827 | if test -s conftest.err; then | |
12828 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12829 | else | |
12830 | ac_cpp_err= | |
12831 | fi | |
12832 | else | |
12833 | ac_cpp_err=yes | |
12834 | fi | |
12835 | if test -z "$ac_cpp_err"; then | |
12836 | ac_header_preproc=yes | |
12837 | else | |
12838 | echo "$as_me: failed program was:" >&5 | |
12839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12840 | ||
12841 | ac_header_preproc=no | |
12842 | fi | |
12843 | rm -f conftest.err conftest.$ac_ext | |
12844 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12845 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12846 | ||
12847 | # So? What about this header? | |
12848 | case $ac_header_compiler:$ac_header_preproc in | |
12849 | yes:no ) | |
12850 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12851 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12853 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12854 | ( | |
12855 | cat <<\_ASBOX | |
12856 | ## ------------------------------------ ## | |
12857 | ## Report this to bug-autoconf@gnu.org. ## | |
12858 | ## ------------------------------------ ## | |
12859 | _ASBOX | |
12860 | ) | | |
12861 | sed "s/^/$as_me: WARNING: /" >&2 | |
12862 | ;; | |
12863 | no:yes ) | |
12864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12869 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12870 | ( | |
12871 | cat <<\_ASBOX | |
12872 | ## ------------------------------------ ## | |
12873 | ## Report this to bug-autoconf@gnu.org. ## | |
12874 | ## ------------------------------------ ## | |
12875 | _ASBOX | |
12876 | ) | | |
12877 | sed "s/^/$as_me: WARNING: /" >&2 | |
12878 | ;; | |
12879 | esac | |
12880 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12884 | else |
e6cc62c6 VS |
12885 | eval "$as_ac_Header=$ac_header_preproc" |
12886 | fi | |
12887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12889 | ||
21d1c967 | 12890 | fi |
e6cc62c6 VS |
12891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12892 | cat >>confdefs.h <<_ACEOF | |
12893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12894 | _ACEOF | |
12895 | ||
12896 | fi | |
12897 | ||
21d1c967 | 12898 | done |
90dd450c | 12899 | |
5c6fa7d2 | 12900 | |
a0b9e27f | 12901 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
12902 | |
12903 | for ac_func in fnmatch | |
21d1c967 | 12904 | do |
e6cc62c6 VS |
12905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12910 | else | |
12911 | cat >conftest.$ac_ext <<_ACEOF | |
12912 | #line $LINENO "configure" | |
12913 | /* confdefs.h. */ | |
12914 | _ACEOF | |
12915 | cat confdefs.h >>conftest.$ac_ext | |
12916 | cat >>conftest.$ac_ext <<_ACEOF | |
12917 | /* end confdefs.h. */ | |
a0b9e27f | 12918 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
12919 | which can conflict with char $ac_func (); below. |
12920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12921 | <limits.h> exists even on freestanding compilers. */ | |
12922 | #ifdef __STDC__ | |
12923 | # include <limits.h> | |
12924 | #else | |
12925 | # include <assert.h> | |
12926 | #endif | |
a0b9e27f | 12927 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
12928 | #ifdef __cplusplus |
12929 | extern "C" | |
12930 | { | |
12931 | #endif | |
a0b9e27f | 12932 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
12933 | builtin and then its argument prototype would still apply. */ |
12934 | char $ac_func (); | |
a0b9e27f MB |
12935 | /* The GNU C library defines this for functions which it implements |
12936 | to always fail with ENOSYS. Some functions are actually named | |
12937 | something starting with __ and the normal name is an alias. */ | |
12938 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12939 | choke me | |
12940 | #else | |
e6cc62c6 VS |
12941 | char (*f) () = $ac_func; |
12942 | #endif | |
12943 | #ifdef __cplusplus | |
12944 | } | |
a0b9e27f MB |
12945 | #endif |
12946 | ||
e6cc62c6 VS |
12947 | int |
12948 | main () | |
12949 | { | |
12950 | return f != $ac_func; | |
12951 | ; | |
12952 | return 0; | |
12953 | } | |
12954 | _ACEOF | |
12955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12957 | (eval $ac_link) 2>&5 | |
12958 | ac_status=$? | |
12959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12960 | (exit $ac_status); } && | |
12961 | { ac_try='test -s conftest$ac_exeext' | |
12962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12963 | (eval $ac_try) 2>&5 | |
12964 | ac_status=$? | |
12965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12966 | (exit $ac_status); }; }; then | |
12967 | eval "$as_ac_var=yes" | |
12968 | else | |
12969 | echo "$as_me: failed program was:" >&5 | |
12970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12971 | ||
12972 | eval "$as_ac_var=no" | |
12973 | fi | |
12974 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12975 | fi | |
12976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12977 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12978 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12979 | cat >>confdefs.h <<_ACEOF | |
12980 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12981 | _ACEOF | |
32832908 | 12982 | |
21d1c967 GD |
12983 | fi |
12984 | done | |
90dd450c | 12985 | |
a0b9e27f | 12986 | fi |
90dd450c | 12987 | |
e6cc62c6 VS |
12988 | |
12989 | for ac_header in langinfo.h | |
21d1c967 | 12990 | do |
e6cc62c6 VS |
12991 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12997 | fi | |
12998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13000 | else | |
13001 | # Is the header compilable? | |
13002 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13004 | cat >conftest.$ac_ext <<_ACEOF | |
13005 | #line $LINENO "configure" | |
13006 | /* confdefs.h. */ | |
13007 | _ACEOF | |
13008 | cat confdefs.h >>conftest.$ac_ext | |
13009 | cat >>conftest.$ac_ext <<_ACEOF | |
13010 | /* end confdefs.h. */ | |
13011 | $ac_includes_default | |
13012 | #include <$ac_header> | |
13013 | _ACEOF | |
13014 | rm -f conftest.$ac_objext | |
13015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13016 | (eval $ac_compile) 2>&5 | |
13017 | ac_status=$? | |
13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13019 | (exit $ac_status); } && | |
13020 | { ac_try='test -s conftest.$ac_objext' | |
13021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13022 | (eval $ac_try) 2>&5 | |
13023 | ac_status=$? | |
13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13025 | (exit $ac_status); }; }; then | |
13026 | ac_header_compiler=yes | |
13027 | else | |
13028 | echo "$as_me: failed program was:" >&5 | |
13029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13030 | ||
13031 | ac_header_compiler=no | |
13032 | fi | |
13033 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13034 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13035 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13036 | ||
13037 | # Is the header present? | |
13038 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13039 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13040 | cat >conftest.$ac_ext <<_ACEOF | |
13041 | #line $LINENO "configure" | |
13042 | /* confdefs.h. */ | |
13043 | _ACEOF | |
13044 | cat confdefs.h >>conftest.$ac_ext | |
13045 | cat >>conftest.$ac_ext <<_ACEOF | |
13046 | /* end confdefs.h. */ | |
13047 | #include <$ac_header> | |
13048 | _ACEOF | |
13049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13051 | ac_status=$? | |
13052 | grep -v '^ *+' conftest.er1 >conftest.err | |
13053 | rm -f conftest.er1 | |
13054 | cat conftest.err >&5 | |
13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13056 | (exit $ac_status); } >/dev/null; then | |
13057 | if test -s conftest.err; then | |
13058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13059 | else | |
13060 | ac_cpp_err= | |
13061 | fi | |
13062 | else | |
13063 | ac_cpp_err=yes | |
13064 | fi | |
13065 | if test -z "$ac_cpp_err"; then | |
13066 | ac_header_preproc=yes | |
13067 | else | |
13068 | echo "$as_me: failed program was:" >&5 | |
13069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13070 | ||
13071 | ac_header_preproc=no | |
13072 | fi | |
13073 | rm -f conftest.err conftest.$ac_ext | |
13074 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13075 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13076 | ||
13077 | # So? What about this header? | |
13078 | case $ac_header_compiler:$ac_header_preproc in | |
13079 | yes:no ) | |
13080 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13081 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13082 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13083 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13084 | ( | |
13085 | cat <<\_ASBOX | |
13086 | ## ------------------------------------ ## | |
13087 | ## Report this to bug-autoconf@gnu.org. ## | |
13088 | ## ------------------------------------ ## | |
13089 | _ASBOX | |
13090 | ) | | |
13091 | sed "s/^/$as_me: WARNING: /" >&2 | |
13092 | ;; | |
13093 | no:yes ) | |
13094 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13095 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13096 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13097 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13099 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13100 | ( | |
13101 | cat <<\_ASBOX | |
13102 | ## ------------------------------------ ## | |
13103 | ## Report this to bug-autoconf@gnu.org. ## | |
13104 | ## ------------------------------------ ## | |
13105 | _ASBOX | |
13106 | ) | | |
13107 | sed "s/^/$as_me: WARNING: /" >&2 | |
13108 | ;; | |
13109 | esac | |
13110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13114 | else | |
13115 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13116 | fi |
e6cc62c6 VS |
13117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13119 | ||
4f14bcd8 | 13120 | fi |
e6cc62c6 VS |
13121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13122 | cat >>confdefs.h <<_ACEOF | |
13123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13124 | _ACEOF | |
13125 | ||
21d1c967 | 13126 | fi |
e6cc62c6 | 13127 | |
21d1c967 | 13128 | done |
3a922bb4 | 13129 | |
8284b0c5 | 13130 | |
4f5a7f74 VZ |
13131 | case "${host}" in |
13132 | *-pc-os2_emx | *-pc-os2-emx ) | |
13133 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13134 | LIBS="$LIBS -lintl" | |
13135 | fi | |
13136 | ;; | |
13137 | esac | |
1542ea39 | 13138 | |
a0b9e27f MB |
13139 | if test "$wxUSE_GUI" = "yes"; then |
13140 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 | 13141 | |
eb69fda5 | 13142 | for ac_header in X11/Xlib.h |
21d1c967 | 13143 | do |
e6cc62c6 VS |
13144 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13150 | fi | |
13151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13153 | else | |
13154 | # Is the header compilable? | |
13155 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13156 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13157 | cat >conftest.$ac_ext <<_ACEOF | |
13158 | #line $LINENO "configure" | |
13159 | /* confdefs.h. */ | |
13160 | _ACEOF | |
13161 | cat confdefs.h >>conftest.$ac_ext | |
13162 | cat >>conftest.$ac_ext <<_ACEOF | |
13163 | /* end confdefs.h. */ | |
13164 | $ac_includes_default | |
13165 | #include <$ac_header> | |
13166 | _ACEOF | |
13167 | rm -f conftest.$ac_objext | |
13168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13169 | (eval $ac_compile) 2>&5 | |
13170 | ac_status=$? | |
13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13172 | (exit $ac_status); } && | |
13173 | { ac_try='test -s conftest.$ac_objext' | |
13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13175 | (eval $ac_try) 2>&5 | |
13176 | ac_status=$? | |
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13178 | (exit $ac_status); }; }; then | |
13179 | ac_header_compiler=yes | |
13180 | else | |
13181 | echo "$as_me: failed program was:" >&5 | |
13182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13183 | ||
13184 | ac_header_compiler=no | |
13185 | fi | |
13186 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13188 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13189 | ||
13190 | # Is the header present? | |
13191 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13193 | cat >conftest.$ac_ext <<_ACEOF | |
13194 | #line $LINENO "configure" | |
13195 | /* confdefs.h. */ | |
13196 | _ACEOF | |
13197 | cat confdefs.h >>conftest.$ac_ext | |
13198 | cat >>conftest.$ac_ext <<_ACEOF | |
13199 | /* end confdefs.h. */ | |
13200 | #include <$ac_header> | |
13201 | _ACEOF | |
13202 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13204 | ac_status=$? | |
13205 | grep -v '^ *+' conftest.er1 >conftest.err | |
13206 | rm -f conftest.er1 | |
13207 | cat conftest.err >&5 | |
13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13209 | (exit $ac_status); } >/dev/null; then | |
13210 | if test -s conftest.err; then | |
13211 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13212 | else | |
13213 | ac_cpp_err= | |
13214 | fi | |
13215 | else | |
13216 | ac_cpp_err=yes | |
13217 | fi | |
13218 | if test -z "$ac_cpp_err"; then | |
13219 | ac_header_preproc=yes | |
13220 | else | |
13221 | echo "$as_me: failed program was:" >&5 | |
13222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13223 | ||
13224 | ac_header_preproc=no | |
13225 | fi | |
13226 | rm -f conftest.err conftest.$ac_ext | |
13227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13228 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13229 | ||
13230 | # So? What about this header? | |
13231 | case $ac_header_compiler:$ac_header_preproc in | |
13232 | yes:no ) | |
13233 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13234 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13236 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13237 | ( | |
13238 | cat <<\_ASBOX | |
13239 | ## ------------------------------------ ## | |
13240 | ## Report this to bug-autoconf@gnu.org. ## | |
13241 | ## ------------------------------------ ## | |
13242 | _ASBOX | |
13243 | ) | | |
13244 | sed "s/^/$as_me: WARNING: /" >&2 | |
13245 | ;; | |
13246 | no:yes ) | |
13247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13253 | ( | |
13254 | cat <<\_ASBOX | |
13255 | ## ------------------------------------ ## | |
13256 | ## Report this to bug-autoconf@gnu.org. ## | |
13257 | ## ------------------------------------ ## | |
13258 | _ASBOX | |
13259 | ) | | |
13260 | sed "s/^/$as_me: WARNING: /" >&2 | |
13261 | ;; | |
13262 | esac | |
13263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13267 | else | |
13268 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13269 | fi |
e6cc62c6 VS |
13270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13271 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13272 | ||
90dd450c | 13273 | fi |
e6cc62c6 VS |
13274 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13275 | cat >>confdefs.h <<_ACEOF | |
13276 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13277 | _ACEOF | |
13278 | ||
247f5006 | 13279 | fi |
e6cc62c6 | 13280 | |
eb69fda5 VS |
13281 | done |
13282 | ||
13283 | ||
13284 | for ac_header in X11/XKBlib.h | |
13285 | do | |
13286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13291 | else | |
13292 | cat >conftest.$ac_ext <<_ACEOF | |
13293 | #line $LINENO "configure" | |
13294 | /* confdefs.h. */ | |
13295 | _ACEOF | |
13296 | cat confdefs.h >>conftest.$ac_ext | |
13297 | cat >>conftest.$ac_ext <<_ACEOF | |
13298 | /* end confdefs.h. */ | |
13299 | ||
13300 | #if HAVE_X11_XLIB_H | |
13301 | #include <X11/Xlib.h> | |
13302 | #endif | |
13303 | ||
13304 | ||
13305 | #include <$ac_header> | |
13306 | _ACEOF | |
13307 | rm -f conftest.$ac_objext | |
13308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13309 | (eval $ac_compile) 2>&5 | |
13310 | ac_status=$? | |
13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13312 | (exit $ac_status); } && | |
13313 | { ac_try='test -s conftest.$ac_objext' | |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; }; then | |
13319 | eval "$as_ac_Header=yes" | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | eval "$as_ac_Header=no" | |
13325 | fi | |
13326 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13327 | fi | |
13328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13329 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13331 | cat >>confdefs.h <<_ACEOF | |
13332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13333 | _ACEOF | |
13334 | ||
13335 | fi | |
13336 | ||
247f5006 VZ |
13337 | done |
13338 | ||
a0b9e27f MB |
13339 | fi |
13340 | fi | |
247f5006 | 13341 | |
247f5006 | 13342 | |
e6cc62c6 VS |
13343 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13344 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13345 | if test "${ac_cv_c_const+set}" = set; then | |
13346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13347 | else | |
13348 | cat >conftest.$ac_ext <<_ACEOF | |
13349 | #line $LINENO "configure" | |
13350 | /* confdefs.h. */ | |
13351 | _ACEOF | |
13352 | cat confdefs.h >>conftest.$ac_ext | |
13353 | cat >>conftest.$ac_ext <<_ACEOF | |
13354 | /* end confdefs.h. */ | |
13355 | ||
13356 | int | |
13357 | main () | |
13358 | { | |
13359 | /* FIXME: Include the comments suggested by Paul. */ | |
13360 | #ifndef __cplusplus | |
13361 | /* Ultrix mips cc rejects this. */ | |
13362 | typedef int charset[2]; | |
13363 | const charset x; | |
13364 | /* SunOS 4.1.1 cc rejects this. */ | |
13365 | char const *const *ccp; | |
13366 | char **p; | |
13367 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13368 | struct point {int x, y;}; | |
13369 | static struct point const zero = {0,0}; | |
13370 | /* AIX XL C 1.02.0.0 rejects this. | |
13371 | It does not let you subtract one const X* pointer from another in | |
13372 | an arm of an if-expression whose if-part is not a constant | |
13373 | expression */ | |
13374 | const char *g = "string"; | |
13375 | ccp = &g + (g ? g-g : 0); | |
13376 | /* HPUX 7.0 cc rejects these. */ | |
13377 | ++ccp; | |
13378 | p = (char**) ccp; | |
13379 | ccp = (char const *const *) p; | |
13380 | { /* SCO 3.2v4 cc rejects this. */ | |
13381 | char *t; | |
13382 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13383 | ||
13384 | *t++ = 0; | |
13385 | } | |
13386 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13387 | int x[] = {25, 17}; | |
13388 | const int *foo = &x[0]; | |
13389 | ++foo; | |
13390 | } | |
13391 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13392 | typedef const int *iptr; | |
13393 | iptr p = 0; | |
13394 | ++p; | |
13395 | } | |
13396 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13397 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13398 | struct s { int j; const int *ap[3]; }; | |
13399 | struct s *b; b->j = 5; | |
13400 | } | |
13401 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13402 | const int foo = 10; | |
13403 | } | |
13404 | #endif | |
13405 | ||
13406 | ; | |
13407 | return 0; | |
13408 | } | |
13409 | _ACEOF | |
13410 | rm -f conftest.$ac_objext | |
13411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13412 | (eval $ac_compile) 2>&5 | |
13413 | ac_status=$? | |
13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13415 | (exit $ac_status); } && | |
13416 | { ac_try='test -s conftest.$ac_objext' | |
13417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13418 | (eval $ac_try) 2>&5 | |
13419 | ac_status=$? | |
13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13421 | (exit $ac_status); }; }; then | |
a0b9e27f | 13422 | ac_cv_c_const=yes |
247f5006 | 13423 | else |
e6cc62c6 VS |
13424 | echo "$as_me: failed program was:" >&5 |
13425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13426 | ||
13427 | ac_cv_c_const=no | |
247f5006 | 13428 | fi |
e6cc62c6 | 13429 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13430 | fi |
e6cc62c6 VS |
13431 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13432 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13433 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13434 | |
13435 | cat >>confdefs.h <<\_ACEOF | |
13436 | #define const | |
13437 | _ACEOF | |
10f2d63a | 13438 | |
90dd450c | 13439 | fi |
81809c07 | 13440 | |
e6cc62c6 VS |
13441 | echo "$as_me:$LINENO: checking for inline" >&5 |
13442 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13443 | if test "${ac_cv_c_inline+set}" = set; then | |
13444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13445 | else |
a0b9e27f MB |
13446 | ac_cv_c_inline=no |
13447 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13448 | cat >conftest.$ac_ext <<_ACEOF |
13449 | #line $LINENO "configure" | |
13450 | /* confdefs.h. */ | |
13451 | _ACEOF | |
13452 | cat confdefs.h >>conftest.$ac_ext | |
13453 | cat >>conftest.$ac_ext <<_ACEOF | |
13454 | /* end confdefs.h. */ | |
13455 | #ifndef __cplusplus | |
13456 | typedef int foo_t; | |
13457 | static $ac_kw foo_t static_foo () {return 0; } | |
13458 | $ac_kw foo_t foo () {return 0; } | |
13459 | #endif | |
a0b9e27f | 13460 | |
e6cc62c6 VS |
13461 | _ACEOF |
13462 | rm -f conftest.$ac_objext | |
13463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13464 | (eval $ac_compile) 2>&5 | |
13465 | ac_status=$? | |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13467 | (exit $ac_status); } && | |
13468 | { ac_try='test -s conftest.$ac_objext' | |
13469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13470 | (eval $ac_try) 2>&5 | |
13471 | ac_status=$? | |
13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13473 | (exit $ac_status); }; }; then | |
a0b9e27f | 13474 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13475 | else |
e6cc62c6 VS |
13476 | echo "$as_me: failed program was:" >&5 |
13477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13478 | ||
247f5006 | 13479 | fi |
e6cc62c6 | 13480 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13481 | done |
247f5006 VZ |
13482 | |
13483 | fi | |
e6cc62c6 VS |
13484 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13485 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13486 | case $ac_cv_c_inline in | |
a0b9e27f | 13487 | inline | yes) ;; |
e6cc62c6 VS |
13488 | no) |
13489 | cat >>confdefs.h <<\_ACEOF | |
13490 | #define inline | |
13491 | _ACEOF | |
a0b9e27f | 13492 | ;; |
e6cc62c6 | 13493 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13494 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13495 | _ACEOF |
a0b9e27f MB |
13496 | ;; |
13497 | esac | |
247f5006 | 13498 | |
247f5006 | 13499 | |
e6cc62c6 VS |
13500 | echo "$as_me:$LINENO: checking for char" >&5 |
13501 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13502 | if test "${ac_cv_type_char+set}" = set; then | |
13503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13504 | else | |
13505 | cat >conftest.$ac_ext <<_ACEOF | |
13506 | #line $LINENO "configure" | |
13507 | /* confdefs.h. */ | |
13508 | _ACEOF | |
13509 | cat confdefs.h >>conftest.$ac_ext | |
13510 | cat >>conftest.$ac_ext <<_ACEOF | |
13511 | /* end confdefs.h. */ | |
13512 | $ac_includes_default | |
13513 | int | |
13514 | main () | |
13515 | { | |
13516 | if ((char *) 0) | |
13517 | return 0; | |
13518 | if (sizeof (char)) | |
13519 | return 0; | |
13520 | ; | |
13521 | return 0; | |
13522 | } | |
13523 | _ACEOF | |
13524 | rm -f conftest.$ac_objext | |
13525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13526 | (eval $ac_compile) 2>&5 | |
13527 | ac_status=$? | |
13528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13529 | (exit $ac_status); } && | |
13530 | { ac_try='test -s conftest.$ac_objext' | |
13531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13532 | (eval $ac_try) 2>&5 | |
13533 | ac_status=$? | |
13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13535 | (exit $ac_status); }; }; then | |
13536 | ac_cv_type_char=yes | |
13537 | else | |
13538 | echo "$as_me: failed program was:" >&5 | |
13539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13540 | ||
13541 | ac_cv_type_char=no | |
13542 | fi | |
13543 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13544 | fi | |
13545 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13546 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13547 | ||
13548 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13549 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13550 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13552 | else | |
13553 | if test "$ac_cv_type_char" = yes; then | |
13554 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13557 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13558 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13559 | # Depending upon the size, compute the lo and hi bounds. |
13560 | cat >conftest.$ac_ext <<_ACEOF | |
13561 | #line $LINENO "configure" | |
13562 | /* confdefs.h. */ | |
13563 | _ACEOF | |
13564 | cat confdefs.h >>conftest.$ac_ext | |
13565 | cat >>conftest.$ac_ext <<_ACEOF | |
13566 | /* end confdefs.h. */ | |
13567 | $ac_includes_default | |
13568 | int | |
13569 | main () | |
13570 | { | |
13571 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13572 | test_array [0] = 0 | |
13573 | ||
13574 | ; | |
13575 | return 0; | |
13576 | } | |
13577 | _ACEOF | |
13578 | rm -f conftest.$ac_objext | |
13579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13580 | (eval $ac_compile) 2>&5 | |
13581 | ac_status=$? | |
13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13583 | (exit $ac_status); } && | |
13584 | { ac_try='test -s conftest.$ac_objext' | |
13585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13586 | (eval $ac_try) 2>&5 | |
13587 | ac_status=$? | |
13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13589 | (exit $ac_status); }; }; then | |
13590 | ac_lo=0 ac_mid=0 | |
13591 | while :; do | |
13592 | cat >conftest.$ac_ext <<_ACEOF | |
13593 | #line $LINENO "configure" | |
13594 | /* confdefs.h. */ | |
13595 | _ACEOF | |
13596 | cat confdefs.h >>conftest.$ac_ext | |
13597 | cat >>conftest.$ac_ext <<_ACEOF | |
13598 | /* end confdefs.h. */ | |
13599 | $ac_includes_default | |
13600 | int | |
13601 | main () | |
13602 | { | |
13603 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13604 | test_array [0] = 0 | |
13605 | ||
13606 | ; | |
13607 | return 0; | |
13608 | } | |
13609 | _ACEOF | |
13610 | rm -f conftest.$ac_objext | |
13611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13612 | (eval $ac_compile) 2>&5 | |
13613 | ac_status=$? | |
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13615 | (exit $ac_status); } && | |
13616 | { ac_try='test -s conftest.$ac_objext' | |
13617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13618 | (eval $ac_try) 2>&5 | |
13619 | ac_status=$? | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); }; }; then | |
13622 | ac_hi=$ac_mid; break | |
13623 | else | |
13624 | echo "$as_me: failed program was:" >&5 | |
13625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13626 | ||
13627 | ac_lo=`expr $ac_mid + 1` | |
13628 | if test $ac_lo -le $ac_mid; then | |
13629 | ac_lo= ac_hi= | |
13630 | break | |
13631 | fi | |
13632 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13633 | fi | |
13634 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13635 | done | |
a0b9e27f | 13636 | else |
e6cc62c6 VS |
13637 | echo "$as_me: failed program was:" >&5 |
13638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13639 | ||
13640 | cat >conftest.$ac_ext <<_ACEOF | |
13641 | #line $LINENO "configure" | |
13642 | /* confdefs.h. */ | |
13643 | _ACEOF | |
13644 | cat confdefs.h >>conftest.$ac_ext | |
13645 | cat >>conftest.$ac_ext <<_ACEOF | |
13646 | /* end confdefs.h. */ | |
13647 | $ac_includes_default | |
13648 | int | |
13649 | main () | |
13650 | { | |
13651 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13652 | test_array [0] = 0 | |
13653 | ||
13654 | ; | |
13655 | return 0; | |
13656 | } | |
13657 | _ACEOF | |
13658 | rm -f conftest.$ac_objext | |
13659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13660 | (eval $ac_compile) 2>&5 | |
13661 | ac_status=$? | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); } && | |
13664 | { ac_try='test -s conftest.$ac_objext' | |
13665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13666 | (eval $ac_try) 2>&5 | |
13667 | ac_status=$? | |
13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13669 | (exit $ac_status); }; }; then | |
13670 | ac_hi=-1 ac_mid=-1 | |
13671 | while :; do | |
13672 | cat >conftest.$ac_ext <<_ACEOF | |
13673 | #line $LINENO "configure" | |
13674 | /* confdefs.h. */ | |
13675 | _ACEOF | |
13676 | cat confdefs.h >>conftest.$ac_ext | |
13677 | cat >>conftest.$ac_ext <<_ACEOF | |
13678 | /* end confdefs.h. */ | |
13679 | $ac_includes_default | |
13680 | int | |
13681 | main () | |
13682 | { | |
13683 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13684 | test_array [0] = 0 | |
13685 | ||
13686 | ; | |
13687 | return 0; | |
13688 | } | |
13689 | _ACEOF | |
13690 | rm -f conftest.$ac_objext | |
13691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13692 | (eval $ac_compile) 2>&5 | |
13693 | ac_status=$? | |
13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13695 | (exit $ac_status); } && | |
13696 | { ac_try='test -s conftest.$ac_objext' | |
13697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13698 | (eval $ac_try) 2>&5 | |
13699 | ac_status=$? | |
13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13701 | (exit $ac_status); }; }; then | |
13702 | ac_lo=$ac_mid; break | |
13703 | else | |
13704 | echo "$as_me: failed program was:" >&5 | |
13705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13706 | ||
13707 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13708 | if test $ac_mid -le $ac_hi; then | |
13709 | ac_lo= ac_hi= | |
13710 | break | |
13711 | fi | |
13712 | ac_mid=`expr 2 '*' $ac_mid` | |
13713 | fi | |
13714 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13715 | done | |
13716 | else | |
13717 | echo "$as_me: failed program was:" >&5 | |
13718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13719 | ||
13720 | ac_lo= ac_hi= | |
13721 | fi | |
13722 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13723 | fi | |
13724 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13725 | # Binary search between lo and hi bounds. | |
13726 | while test "x$ac_lo" != "x$ac_hi"; do | |
13727 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13728 | cat >conftest.$ac_ext <<_ACEOF | |
13729 | #line $LINENO "configure" | |
13730 | /* confdefs.h. */ | |
13731 | _ACEOF | |
13732 | cat confdefs.h >>conftest.$ac_ext | |
13733 | cat >>conftest.$ac_ext <<_ACEOF | |
13734 | /* end confdefs.h. */ | |
13735 | $ac_includes_default | |
13736 | int | |
13737 | main () | |
13738 | { | |
13739 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13740 | test_array [0] = 0 | |
13741 | ||
13742 | ; | |
13743 | return 0; | |
13744 | } | |
13745 | _ACEOF | |
13746 | rm -f conftest.$ac_objext | |
13747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13748 | (eval $ac_compile) 2>&5 | |
13749 | ac_status=$? | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); } && | |
13752 | { ac_try='test -s conftest.$ac_objext' | |
13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13754 | (eval $ac_try) 2>&5 | |
13755 | ac_status=$? | |
13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 | (exit $ac_status); }; }; then | |
13758 | ac_hi=$ac_mid | |
13759 | else | |
13760 | echo "$as_me: failed program was:" >&5 | |
13761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13762 | ||
13763 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13764 | fi | |
13765 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13766 | done | |
13767 | case $ac_lo in | |
13768 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13769 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13770 | See \`config.log' for more details." >&5 | |
13771 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13772 | See \`config.log' for more details." >&2;} | |
13773 | { (exit 1); exit 1; }; } ;; | |
13774 | esac | |
13775 | else | |
13776 | if test "$cross_compiling" = yes; then | |
13777 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13778 | See \`config.log' for more details." >&5 | |
13779 | echo "$as_me: error: cannot run test program while cross compiling | |
13780 | See \`config.log' for more details." >&2;} | |
13781 | { (exit 1); exit 1; }; } | |
13782 | else | |
13783 | cat >conftest.$ac_ext <<_ACEOF | |
13784 | #line $LINENO "configure" | |
13785 | /* confdefs.h. */ | |
13786 | _ACEOF | |
13787 | cat confdefs.h >>conftest.$ac_ext | |
13788 | cat >>conftest.$ac_ext <<_ACEOF | |
13789 | /* end confdefs.h. */ | |
13790 | $ac_includes_default | |
13791 | long longval () { return (long) (sizeof (char)); } | |
13792 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13793 | #include <stdio.h> |
e6cc62c6 VS |
13794 | #include <stdlib.h> |
13795 | int | |
13796 | main () | |
247f5006 | 13797 | { |
e6cc62c6 VS |
13798 | |
13799 | FILE *f = fopen ("conftest.val", "w"); | |
13800 | if (! f) | |
13801 | exit (1); | |
13802 | if (((long) (sizeof (char))) < 0) | |
13803 | { | |
13804 | long i = longval (); | |
13805 | if (i != ((long) (sizeof (char)))) | |
13806 | exit (1); | |
13807 | fprintf (f, "%ld\n", i); | |
13808 | } | |
13809 | else | |
13810 | { | |
13811 | unsigned long i = ulongval (); | |
13812 | if (i != ((long) (sizeof (char)))) | |
13813 | exit (1); | |
13814 | fprintf (f, "%lu\n", i); | |
13815 | } | |
13816 | exit (ferror (f) || fclose (f) != 0); | |
13817 | ||
13818 | ; | |
13819 | return 0; | |
52127426 | 13820 | } |
e6cc62c6 VS |
13821 | _ACEOF |
13822 | rm -f conftest$ac_exeext | |
13823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13824 | (eval $ac_link) 2>&5 | |
13825 | ac_status=$? | |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13829 | (eval $ac_try) 2>&5 | |
13830 | ac_status=$? | |
13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13832 | (exit $ac_status); }; }; then | |
13833 | ac_cv_sizeof_char=`cat conftest.val` | |
13834 | else | |
13835 | echo "$as_me: program exited with status $ac_status" >&5 | |
13836 | echo "$as_me: failed program was:" >&5 | |
13837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13838 | ||
13839 | ( exit $ac_status ) | |
13840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13841 | See \`config.log' for more details." >&5 | |
13842 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13843 | See \`config.log' for more details." >&2;} | |
13844 | { (exit 1); exit 1; }; } | |
13845 | fi | |
13846 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13847 | fi | |
13848 | fi | |
13849 | rm -f conftest.val | |
247f5006 | 13850 | else |
a0b9e27f | 13851 | ac_cv_sizeof_char=0 |
247f5006 | 13852 | fi |
247f5006 | 13853 | fi |
e6cc62c6 VS |
13854 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13855 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13856 | cat >>confdefs.h <<_ACEOF | |
13857 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13858 | _ACEOF | |
13859 | ||
13860 | ||
13861 | echo "$as_me:$LINENO: checking for short" >&5 | |
13862 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
13863 | if test "${ac_cv_type_short+set}" = set; then | |
13864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13865 | else | |
13866 | cat >conftest.$ac_ext <<_ACEOF | |
13867 | #line $LINENO "configure" | |
13868 | /* confdefs.h. */ | |
13869 | _ACEOF | |
13870 | cat confdefs.h >>conftest.$ac_ext | |
13871 | cat >>conftest.$ac_ext <<_ACEOF | |
13872 | /* end confdefs.h. */ | |
13873 | $ac_includes_default | |
13874 | int | |
13875 | main () | |
13876 | { | |
13877 | if ((short *) 0) | |
13878 | return 0; | |
13879 | if (sizeof (short)) | |
13880 | return 0; | |
13881 | ; | |
13882 | return 0; | |
13883 | } | |
13884 | _ACEOF | |
13885 | rm -f conftest.$ac_objext | |
13886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13887 | (eval $ac_compile) 2>&5 | |
13888 | ac_status=$? | |
13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13890 | (exit $ac_status); } && | |
13891 | { ac_try='test -s conftest.$ac_objext' | |
13892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13893 | (eval $ac_try) 2>&5 | |
13894 | ac_status=$? | |
13895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13896 | (exit $ac_status); }; }; then | |
13897 | ac_cv_type_short=yes | |
13898 | else | |
13899 | echo "$as_me: failed program was:" >&5 | |
13900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13901 | ||
13902 | ac_cv_type_short=no | |
13903 | fi | |
13904 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13905 | fi | |
13906 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
13907 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
13908 | ||
13909 | echo "$as_me:$LINENO: checking size of short" >&5 | |
13910 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
13911 | if test "${ac_cv_sizeof_short+set}" = set; then | |
13912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13913 | else | |
13914 | if test "$ac_cv_type_short" = yes; then | |
13915 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13916 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13917 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13918 | # This bug is HP SR number 8606223364. | |
13919 | if test "$cross_compiling" = yes; then | |
13920 | # Depending upon the size, compute the lo and hi bounds. | |
13921 | cat >conftest.$ac_ext <<_ACEOF | |
13922 | #line $LINENO "configure" | |
13923 | /* confdefs.h. */ | |
13924 | _ACEOF | |
13925 | cat confdefs.h >>conftest.$ac_ext | |
13926 | cat >>conftest.$ac_ext <<_ACEOF | |
13927 | /* end confdefs.h. */ | |
13928 | $ac_includes_default | |
13929 | int | |
13930 | main () | |
13931 | { | |
13932 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
13933 | test_array [0] = 0 | |
247f5006 | 13934 | |
e6cc62c6 VS |
13935 | ; |
13936 | return 0; | |
13937 | } | |
13938 | _ACEOF | |
13939 | rm -f conftest.$ac_objext | |
13940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13941 | (eval $ac_compile) 2>&5 | |
13942 | ac_status=$? | |
13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13944 | (exit $ac_status); } && | |
13945 | { ac_try='test -s conftest.$ac_objext' | |
13946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13947 | (eval $ac_try) 2>&5 | |
13948 | ac_status=$? | |
13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13950 | (exit $ac_status); }; }; then | |
13951 | ac_lo=0 ac_mid=0 | |
13952 | while :; do | |
13953 | cat >conftest.$ac_ext <<_ACEOF | |
13954 | #line $LINENO "configure" | |
13955 | /* confdefs.h. */ | |
13956 | _ACEOF | |
13957 | cat confdefs.h >>conftest.$ac_ext | |
13958 | cat >>conftest.$ac_ext <<_ACEOF | |
13959 | /* end confdefs.h. */ | |
13960 | $ac_includes_default | |
13961 | int | |
13962 | main () | |
13963 | { | |
13964 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
13965 | test_array [0] = 0 | |
13966 | ||
13967 | ; | |
13968 | return 0; | |
13969 | } | |
13970 | _ACEOF | |
13971 | rm -f conftest.$ac_objext | |
13972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13973 | (eval $ac_compile) 2>&5 | |
13974 | ac_status=$? | |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); } && | |
13977 | { ac_try='test -s conftest.$ac_objext' | |
13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13979 | (eval $ac_try) 2>&5 | |
13980 | ac_status=$? | |
13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13982 | (exit $ac_status); }; }; then | |
13983 | ac_hi=$ac_mid; break | |
13984 | else | |
13985 | echo "$as_me: failed program was:" >&5 | |
13986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13987 | ||
13988 | ac_lo=`expr $ac_mid + 1` | |
13989 | if test $ac_lo -le $ac_mid; then | |
13990 | ac_lo= ac_hi= | |
13991 | break | |
13992 | fi | |
13993 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 13994 | fi |
e6cc62c6 VS |
13995 | rm -f conftest.$ac_objext conftest.$ac_ext |
13996 | done | |
13997 | else | |
13998 | echo "$as_me: failed program was:" >&5 | |
13999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14000 | ||
14001 | cat >conftest.$ac_ext <<_ACEOF | |
14002 | #line $LINENO "configure" | |
14003 | /* confdefs.h. */ | |
14004 | _ACEOF | |
14005 | cat confdefs.h >>conftest.$ac_ext | |
14006 | cat >>conftest.$ac_ext <<_ACEOF | |
14007 | /* end confdefs.h. */ | |
14008 | $ac_includes_default | |
14009 | int | |
14010 | main () | |
14011 | { | |
14012 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14013 | test_array [0] = 0 | |
247f5006 | 14014 | |
e6cc62c6 VS |
14015 | ; |
14016 | return 0; | |
14017 | } | |
14018 | _ACEOF | |
14019 | rm -f conftest.$ac_objext | |
14020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14021 | (eval $ac_compile) 2>&5 | |
14022 | ac_status=$? | |
14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14024 | (exit $ac_status); } && | |
14025 | { ac_try='test -s conftest.$ac_objext' | |
14026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14027 | (eval $ac_try) 2>&5 | |
14028 | ac_status=$? | |
14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14030 | (exit $ac_status); }; }; then | |
14031 | ac_hi=-1 ac_mid=-1 | |
14032 | while :; do | |
14033 | cat >conftest.$ac_ext <<_ACEOF | |
14034 | #line $LINENO "configure" | |
14035 | /* confdefs.h. */ | |
14036 | _ACEOF | |
14037 | cat confdefs.h >>conftest.$ac_ext | |
14038 | cat >>conftest.$ac_ext <<_ACEOF | |
14039 | /* end confdefs.h. */ | |
14040 | $ac_includes_default | |
14041 | int | |
14042 | main () | |
14043 | { | |
14044 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14045 | test_array [0] = 0 | |
247f5006 | 14046 | |
e6cc62c6 VS |
14047 | ; |
14048 | return 0; | |
14049 | } | |
14050 | _ACEOF | |
14051 | rm -f conftest.$ac_objext | |
14052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14053 | (eval $ac_compile) 2>&5 | |
14054 | ac_status=$? | |
14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14056 | (exit $ac_status); } && | |
14057 | { ac_try='test -s conftest.$ac_objext' | |
14058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14059 | (eval $ac_try) 2>&5 | |
14060 | ac_status=$? | |
14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14062 | (exit $ac_status); }; }; then | |
14063 | ac_lo=$ac_mid; break | |
14064 | else | |
14065 | echo "$as_me: failed program was:" >&5 | |
14066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14067 | ||
14068 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14069 | if test $ac_mid -le $ac_hi; then | |
14070 | ac_lo= ac_hi= | |
14071 | break | |
14072 | fi | |
14073 | ac_mid=`expr 2 '*' $ac_mid` | |
14074 | fi | |
14075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14076 | done | |
247f5006 | 14077 | else |
e6cc62c6 VS |
14078 | echo "$as_me: failed program was:" >&5 |
14079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14080 | ||
14081 | ac_lo= ac_hi= | |
14082 | fi | |
14083 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14084 | fi | |
14085 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14086 | # Binary search between lo and hi bounds. | |
14087 | while test "x$ac_lo" != "x$ac_hi"; do | |
14088 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14089 | cat >conftest.$ac_ext <<_ACEOF | |
14090 | #line $LINENO "configure" | |
14091 | /* confdefs.h. */ | |
14092 | _ACEOF | |
14093 | cat confdefs.h >>conftest.$ac_ext | |
14094 | cat >>conftest.$ac_ext <<_ACEOF | |
14095 | /* end confdefs.h. */ | |
14096 | $ac_includes_default | |
14097 | int | |
14098 | main () | |
14099 | { | |
14100 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14101 | test_array [0] = 0 | |
14102 | ||
14103 | ; | |
14104 | return 0; | |
14105 | } | |
14106 | _ACEOF | |
14107 | rm -f conftest.$ac_objext | |
14108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14109 | (eval $ac_compile) 2>&5 | |
14110 | ac_status=$? | |
14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14112 | (exit $ac_status); } && | |
14113 | { ac_try='test -s conftest.$ac_objext' | |
14114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14115 | (eval $ac_try) 2>&5 | |
14116 | ac_status=$? | |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14118 | (exit $ac_status); }; }; then | |
14119 | ac_hi=$ac_mid | |
14120 | else | |
14121 | echo "$as_me: failed program was:" >&5 | |
14122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14123 | ||
14124 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14125 | fi | |
14126 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14127 | done | |
14128 | case $ac_lo in | |
14129 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14130 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14131 | See \`config.log' for more details." >&5 | |
14132 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14133 | See \`config.log' for more details." >&2;} | |
14134 | { (exit 1); exit 1; }; } ;; | |
14135 | esac | |
247f5006 | 14136 | else |
e6cc62c6 VS |
14137 | if test "$cross_compiling" = yes; then |
14138 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14139 | See \`config.log' for more details." >&5 | |
14140 | echo "$as_me: error: cannot run test program while cross compiling | |
14141 | See \`config.log' for more details." >&2;} | |
14142 | { (exit 1); exit 1; }; } | |
14143 | else | |
14144 | cat >conftest.$ac_ext <<_ACEOF | |
14145 | #line $LINENO "configure" | |
14146 | /* confdefs.h. */ | |
14147 | _ACEOF | |
14148 | cat confdefs.h >>conftest.$ac_ext | |
14149 | cat >>conftest.$ac_ext <<_ACEOF | |
14150 | /* end confdefs.h. */ | |
14151 | $ac_includes_default | |
14152 | long longval () { return (long) (sizeof (short)); } | |
14153 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14154 | #include <stdio.h> |
e6cc62c6 VS |
14155 | #include <stdlib.h> |
14156 | int | |
14157 | main () | |
a0b9e27f | 14158 | { |
e6cc62c6 VS |
14159 | |
14160 | FILE *f = fopen ("conftest.val", "w"); | |
14161 | if (! f) | |
14162 | exit (1); | |
14163 | if (((long) (sizeof (short))) < 0) | |
14164 | { | |
14165 | long i = longval (); | |
14166 | if (i != ((long) (sizeof (short)))) | |
14167 | exit (1); | |
14168 | fprintf (f, "%ld\n", i); | |
14169 | } | |
14170 | else | |
14171 | { | |
14172 | unsigned long i = ulongval (); | |
14173 | if (i != ((long) (sizeof (short)))) | |
14174 | exit (1); | |
14175 | fprintf (f, "%lu\n", i); | |
14176 | } | |
14177 | exit (ferror (f) || fclose (f) != 0); | |
14178 | ||
14179 | ; | |
14180 | return 0; | |
a0b9e27f | 14181 | } |
e6cc62c6 VS |
14182 | _ACEOF |
14183 | rm -f conftest$ac_exeext | |
14184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14185 | (eval $ac_link) 2>&5 | |
14186 | ac_status=$? | |
14187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14190 | (eval $ac_try) 2>&5 | |
14191 | ac_status=$? | |
14192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14193 | (exit $ac_status); }; }; then | |
14194 | ac_cv_sizeof_short=`cat conftest.val` | |
14195 | else | |
14196 | echo "$as_me: program exited with status $ac_status" >&5 | |
14197 | echo "$as_me: failed program was:" >&5 | |
14198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14199 | ||
14200 | ( exit $ac_status ) | |
14201 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14202 | See \`config.log' for more details." >&5 | |
14203 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14204 | See \`config.log' for more details." >&2;} | |
14205 | { (exit 1); exit 1; }; } | |
14206 | fi | |
14207 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14208 | fi | |
14209 | fi | |
14210 | rm -f conftest.val | |
247f5006 | 14211 | else |
a0b9e27f | 14212 | ac_cv_sizeof_short=0 |
247f5006 | 14213 | fi |
247f5006 | 14214 | fi |
e6cc62c6 VS |
14215 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14216 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14217 | cat >>confdefs.h <<_ACEOF | |
14218 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14219 | _ACEOF | |
14220 | ||
14221 | ||
14222 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14223 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14224 | if test "${ac_cv_type_void_p+set}" = set; then | |
14225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14226 | else | |
14227 | cat >conftest.$ac_ext <<_ACEOF | |
14228 | #line $LINENO "configure" | |
14229 | /* confdefs.h. */ | |
14230 | _ACEOF | |
14231 | cat confdefs.h >>conftest.$ac_ext | |
14232 | cat >>conftest.$ac_ext <<_ACEOF | |
14233 | /* end confdefs.h. */ | |
14234 | $ac_includes_default | |
14235 | int | |
14236 | main () | |
14237 | { | |
14238 | if ((void * *) 0) | |
14239 | return 0; | |
14240 | if (sizeof (void *)) | |
14241 | return 0; | |
14242 | ; | |
14243 | return 0; | |
14244 | } | |
14245 | _ACEOF | |
14246 | rm -f conftest.$ac_objext | |
14247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14248 | (eval $ac_compile) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); } && | |
14252 | { ac_try='test -s conftest.$ac_objext' | |
14253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14254 | (eval $ac_try) 2>&5 | |
14255 | ac_status=$? | |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14257 | (exit $ac_status); }; }; then | |
14258 | ac_cv_type_void_p=yes | |
14259 | else | |
14260 | echo "$as_me: failed program was:" >&5 | |
14261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14262 | ||
14263 | ac_cv_type_void_p=no | |
14264 | fi | |
14265 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14266 | fi | |
14267 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14268 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14269 | ||
14270 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14271 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14272 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14274 | else | |
14275 | if test "$ac_cv_type_void_p" = yes; then | |
14276 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14277 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14278 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14279 | # This bug is HP SR number 8606223364. | |
14280 | if test "$cross_compiling" = yes; then | |
14281 | # Depending upon the size, compute the lo and hi bounds. | |
14282 | cat >conftest.$ac_ext <<_ACEOF | |
14283 | #line $LINENO "configure" | |
14284 | /* confdefs.h. */ | |
14285 | _ACEOF | |
14286 | cat confdefs.h >>conftest.$ac_ext | |
14287 | cat >>conftest.$ac_ext <<_ACEOF | |
14288 | /* end confdefs.h. */ | |
14289 | $ac_includes_default | |
14290 | int | |
14291 | main () | |
14292 | { | |
14293 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14294 | test_array [0] = 0 | |
14295 | ||
14296 | ; | |
14297 | return 0; | |
14298 | } | |
14299 | _ACEOF | |
14300 | rm -f conftest.$ac_objext | |
14301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14302 | (eval $ac_compile) 2>&5 | |
14303 | ac_status=$? | |
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14305 | (exit $ac_status); } && | |
14306 | { ac_try='test -s conftest.$ac_objext' | |
14307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14308 | (eval $ac_try) 2>&5 | |
14309 | ac_status=$? | |
14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14311 | (exit $ac_status); }; }; then | |
14312 | ac_lo=0 ac_mid=0 | |
14313 | while :; do | |
14314 | cat >conftest.$ac_ext <<_ACEOF | |
14315 | #line $LINENO "configure" | |
14316 | /* confdefs.h. */ | |
14317 | _ACEOF | |
14318 | cat confdefs.h >>conftest.$ac_ext | |
14319 | cat >>conftest.$ac_ext <<_ACEOF | |
14320 | /* end confdefs.h. */ | |
14321 | $ac_includes_default | |
14322 | int | |
14323 | main () | |
14324 | { | |
14325 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14326 | test_array [0] = 0 | |
247f5006 | 14327 | |
e6cc62c6 VS |
14328 | ; |
14329 | return 0; | |
14330 | } | |
14331 | _ACEOF | |
14332 | rm -f conftest.$ac_objext | |
14333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14334 | (eval $ac_compile) 2>&5 | |
14335 | ac_status=$? | |
14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14337 | (exit $ac_status); } && | |
14338 | { ac_try='test -s conftest.$ac_objext' | |
14339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14340 | (eval $ac_try) 2>&5 | |
14341 | ac_status=$? | |
14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14343 | (exit $ac_status); }; }; then | |
14344 | ac_hi=$ac_mid; break | |
14345 | else | |
14346 | echo "$as_me: failed program was:" >&5 | |
14347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14348 | ||
14349 | ac_lo=`expr $ac_mid + 1` | |
14350 | if test $ac_lo -le $ac_mid; then | |
14351 | ac_lo= ac_hi= | |
14352 | break | |
14353 | fi | |
14354 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14355 | fi |
e6cc62c6 VS |
14356 | rm -f conftest.$ac_objext conftest.$ac_ext |
14357 | done | |
14358 | else | |
14359 | echo "$as_me: failed program was:" >&5 | |
14360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14361 | ||
14362 | cat >conftest.$ac_ext <<_ACEOF | |
14363 | #line $LINENO "configure" | |
14364 | /* confdefs.h. */ | |
14365 | _ACEOF | |
14366 | cat confdefs.h >>conftest.$ac_ext | |
14367 | cat >>conftest.$ac_ext <<_ACEOF | |
14368 | /* end confdefs.h. */ | |
14369 | $ac_includes_default | |
14370 | int | |
14371 | main () | |
14372 | { | |
14373 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14374 | test_array [0] = 0 | |
247f5006 | 14375 | |
e6cc62c6 VS |
14376 | ; |
14377 | return 0; | |
14378 | } | |
14379 | _ACEOF | |
14380 | rm -f conftest.$ac_objext | |
14381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14382 | (eval $ac_compile) 2>&5 | |
14383 | ac_status=$? | |
14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14385 | (exit $ac_status); } && | |
14386 | { ac_try='test -s conftest.$ac_objext' | |
14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14388 | (eval $ac_try) 2>&5 | |
14389 | ac_status=$? | |
14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14391 | (exit $ac_status); }; }; then | |
14392 | ac_hi=-1 ac_mid=-1 | |
14393 | while :; do | |
14394 | cat >conftest.$ac_ext <<_ACEOF | |
14395 | #line $LINENO "configure" | |
14396 | /* confdefs.h. */ | |
14397 | _ACEOF | |
14398 | cat confdefs.h >>conftest.$ac_ext | |
14399 | cat >>conftest.$ac_ext <<_ACEOF | |
14400 | /* end confdefs.h. */ | |
14401 | $ac_includes_default | |
14402 | int | |
14403 | main () | |
14404 | { | |
14405 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14406 | test_array [0] = 0 | |
247f5006 | 14407 | |
e6cc62c6 VS |
14408 | ; |
14409 | return 0; | |
14410 | } | |
14411 | _ACEOF | |
14412 | rm -f conftest.$ac_objext | |
14413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14414 | (eval $ac_compile) 2>&5 | |
14415 | ac_status=$? | |
14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14417 | (exit $ac_status); } && | |
14418 | { ac_try='test -s conftest.$ac_objext' | |
14419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14420 | (eval $ac_try) 2>&5 | |
14421 | ac_status=$? | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); }; }; then | |
14424 | ac_lo=$ac_mid; break | |
14425 | else | |
14426 | echo "$as_me: failed program was:" >&5 | |
14427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14428 | ||
14429 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14430 | if test $ac_mid -le $ac_hi; then | |
14431 | ac_lo= ac_hi= | |
14432 | break | |
14433 | fi | |
14434 | ac_mid=`expr 2 '*' $ac_mid` | |
14435 | fi | |
14436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14437 | done | |
a0b9e27f | 14438 | else |
e6cc62c6 VS |
14439 | echo "$as_me: failed program was:" >&5 |
14440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14441 | ||
14442 | ac_lo= ac_hi= | |
14443 | fi | |
14444 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14445 | fi | |
14446 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14447 | # Binary search between lo and hi bounds. | |
14448 | while test "x$ac_lo" != "x$ac_hi"; do | |
14449 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14450 | cat >conftest.$ac_ext <<_ACEOF | |
14451 | #line $LINENO "configure" | |
14452 | /* confdefs.h. */ | |
14453 | _ACEOF | |
14454 | cat confdefs.h >>conftest.$ac_ext | |
14455 | cat >>conftest.$ac_ext <<_ACEOF | |
14456 | /* end confdefs.h. */ | |
14457 | $ac_includes_default | |
14458 | int | |
14459 | main () | |
14460 | { | |
14461 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14462 | test_array [0] = 0 | |
14463 | ||
14464 | ; | |
14465 | return 0; | |
14466 | } | |
14467 | _ACEOF | |
14468 | rm -f conftest.$ac_objext | |
14469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14470 | (eval $ac_compile) 2>&5 | |
14471 | ac_status=$? | |
14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14473 | (exit $ac_status); } && | |
14474 | { ac_try='test -s conftest.$ac_objext' | |
14475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14476 | (eval $ac_try) 2>&5 | |
14477 | ac_status=$? | |
14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14479 | (exit $ac_status); }; }; then | |
14480 | ac_hi=$ac_mid | |
14481 | else | |
14482 | echo "$as_me: failed program was:" >&5 | |
14483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14484 | ||
14485 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14486 | fi | |
14487 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14488 | done | |
14489 | case $ac_lo in | |
14490 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14491 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14492 | See \`config.log' for more details." >&5 | |
14493 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14494 | See \`config.log' for more details." >&2;} | |
14495 | { (exit 1); exit 1; }; } ;; | |
14496 | esac | |
247f5006 | 14497 | else |
e6cc62c6 VS |
14498 | if test "$cross_compiling" = yes; then |
14499 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14500 | See \`config.log' for more details." >&5 | |
14501 | echo "$as_me: error: cannot run test program while cross compiling | |
14502 | See \`config.log' for more details." >&2;} | |
14503 | { (exit 1); exit 1; }; } | |
14504 | else | |
14505 | cat >conftest.$ac_ext <<_ACEOF | |
14506 | #line $LINENO "configure" | |
14507 | /* confdefs.h. */ | |
14508 | _ACEOF | |
14509 | cat confdefs.h >>conftest.$ac_ext | |
14510 | cat >>conftest.$ac_ext <<_ACEOF | |
14511 | /* end confdefs.h. */ | |
14512 | $ac_includes_default | |
14513 | long longval () { return (long) (sizeof (void *)); } | |
14514 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14515 | #include <stdio.h> |
e6cc62c6 VS |
14516 | #include <stdlib.h> |
14517 | int | |
14518 | main () | |
247f5006 | 14519 | { |
e6cc62c6 VS |
14520 | |
14521 | FILE *f = fopen ("conftest.val", "w"); | |
14522 | if (! f) | |
14523 | exit (1); | |
14524 | if (((long) (sizeof (void *))) < 0) | |
14525 | { | |
14526 | long i = longval (); | |
14527 | if (i != ((long) (sizeof (void *)))) | |
14528 | exit (1); | |
14529 | fprintf (f, "%ld\n", i); | |
14530 | } | |
14531 | else | |
14532 | { | |
14533 | unsigned long i = ulongval (); | |
14534 | if (i != ((long) (sizeof (void *)))) | |
14535 | exit (1); | |
14536 | fprintf (f, "%lu\n", i); | |
14537 | } | |
14538 | exit (ferror (f) || fclose (f) != 0); | |
14539 | ||
14540 | ; | |
14541 | return 0; | |
5c6fa7d2 | 14542 | } |
e6cc62c6 VS |
14543 | _ACEOF |
14544 | rm -f conftest$ac_exeext | |
14545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14546 | (eval $ac_link) 2>&5 | |
14547 | ac_status=$? | |
14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14551 | (eval $ac_try) 2>&5 | |
14552 | ac_status=$? | |
14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14554 | (exit $ac_status); }; }; then | |
14555 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14556 | else | |
14557 | echo "$as_me: program exited with status $ac_status" >&5 | |
14558 | echo "$as_me: failed program was:" >&5 | |
14559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14560 | ||
14561 | ( exit $ac_status ) | |
14562 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14563 | See \`config.log' for more details." >&5 | |
14564 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14565 | See \`config.log' for more details." >&2;} | |
14566 | { (exit 1); exit 1; }; } | |
14567 | fi | |
14568 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14569 | fi | |
14570 | fi | |
14571 | rm -f conftest.val | |
a0b9e27f | 14572 | else |
a0b9e27f MB |
14573 | ac_cv_sizeof_void_p=0 |
14574 | fi | |
a0b9e27f | 14575 | fi |
e6cc62c6 VS |
14576 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14577 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14578 | cat >>confdefs.h <<_ACEOF | |
14579 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14580 | _ACEOF | |
14581 | ||
14582 | ||
14583 | echo "$as_me:$LINENO: checking for int" >&5 | |
14584 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14585 | if test "${ac_cv_type_int+set}" = set; then | |
14586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14587 | else | |
14588 | cat >conftest.$ac_ext <<_ACEOF | |
14589 | #line $LINENO "configure" | |
14590 | /* confdefs.h. */ | |
14591 | _ACEOF | |
14592 | cat confdefs.h >>conftest.$ac_ext | |
14593 | cat >>conftest.$ac_ext <<_ACEOF | |
14594 | /* end confdefs.h. */ | |
14595 | $ac_includes_default | |
14596 | int | |
14597 | main () | |
14598 | { | |
14599 | if ((int *) 0) | |
14600 | return 0; | |
14601 | if (sizeof (int)) | |
14602 | return 0; | |
14603 | ; | |
14604 | return 0; | |
14605 | } | |
14606 | _ACEOF | |
14607 | rm -f conftest.$ac_objext | |
14608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14609 | (eval $ac_compile) 2>&5 | |
14610 | ac_status=$? | |
14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14612 | (exit $ac_status); } && | |
14613 | { ac_try='test -s conftest.$ac_objext' | |
14614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14615 | (eval $ac_try) 2>&5 | |
14616 | ac_status=$? | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); }; }; then | |
14619 | ac_cv_type_int=yes | |
14620 | else | |
14621 | echo "$as_me: failed program was:" >&5 | |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14623 | ||
14624 | ac_cv_type_int=no | |
14625 | fi | |
14626 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14627 | fi | |
14628 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14629 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14630 | ||
14631 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14632 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14633 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14635 | else | |
14636 | if test "$ac_cv_type_int" = yes; then | |
14637 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14638 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14639 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14640 | # This bug is HP SR number 8606223364. | |
14641 | if test "$cross_compiling" = yes; then | |
14642 | # Depending upon the size, compute the lo and hi bounds. | |
14643 | cat >conftest.$ac_ext <<_ACEOF | |
14644 | #line $LINENO "configure" | |
14645 | /* confdefs.h. */ | |
14646 | _ACEOF | |
14647 | cat confdefs.h >>conftest.$ac_ext | |
14648 | cat >>conftest.$ac_ext <<_ACEOF | |
14649 | /* end confdefs.h. */ | |
14650 | $ac_includes_default | |
14651 | int | |
14652 | main () | |
14653 | { | |
14654 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14655 | test_array [0] = 0 | |
8284b0c5 | 14656 | |
e6cc62c6 VS |
14657 | ; |
14658 | return 0; | |
14659 | } | |
14660 | _ACEOF | |
14661 | rm -f conftest.$ac_objext | |
14662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14663 | (eval $ac_compile) 2>&5 | |
14664 | ac_status=$? | |
14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14666 | (exit $ac_status); } && | |
14667 | { ac_try='test -s conftest.$ac_objext' | |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; }; then | |
14673 | ac_lo=0 ac_mid=0 | |
14674 | while :; do | |
14675 | cat >conftest.$ac_ext <<_ACEOF | |
14676 | #line $LINENO "configure" | |
14677 | /* confdefs.h. */ | |
14678 | _ACEOF | |
14679 | cat confdefs.h >>conftest.$ac_ext | |
14680 | cat >>conftest.$ac_ext <<_ACEOF | |
14681 | /* end confdefs.h. */ | |
14682 | $ac_includes_default | |
14683 | int | |
14684 | main () | |
14685 | { | |
14686 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14687 | test_array [0] = 0 | |
14688 | ||
14689 | ; | |
14690 | return 0; | |
14691 | } | |
14692 | _ACEOF | |
14693 | rm -f conftest.$ac_objext | |
14694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14695 | (eval $ac_compile) 2>&5 | |
14696 | ac_status=$? | |
14697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14698 | (exit $ac_status); } && | |
14699 | { ac_try='test -s conftest.$ac_objext' | |
14700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14701 | (eval $ac_try) 2>&5 | |
14702 | ac_status=$? | |
14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14704 | (exit $ac_status); }; }; then | |
14705 | ac_hi=$ac_mid; break | |
14706 | else | |
14707 | echo "$as_me: failed program was:" >&5 | |
14708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14709 | ||
14710 | ac_lo=`expr $ac_mid + 1` | |
14711 | if test $ac_lo -le $ac_mid; then | |
14712 | ac_lo= ac_hi= | |
14713 | break | |
14714 | fi | |
14715 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14716 | fi |
e6cc62c6 VS |
14717 | rm -f conftest.$ac_objext conftest.$ac_ext |
14718 | done | |
14719 | else | |
14720 | echo "$as_me: failed program was:" >&5 | |
14721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14722 | ||
14723 | cat >conftest.$ac_ext <<_ACEOF | |
14724 | #line $LINENO "configure" | |
14725 | /* confdefs.h. */ | |
14726 | _ACEOF | |
14727 | cat confdefs.h >>conftest.$ac_ext | |
14728 | cat >>conftest.$ac_ext <<_ACEOF | |
14729 | /* end confdefs.h. */ | |
14730 | $ac_includes_default | |
14731 | int | |
14732 | main () | |
14733 | { | |
14734 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14735 | test_array [0] = 0 | |
247f5006 | 14736 | |
e6cc62c6 VS |
14737 | ; |
14738 | return 0; | |
14739 | } | |
14740 | _ACEOF | |
14741 | rm -f conftest.$ac_objext | |
14742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14743 | (eval $ac_compile) 2>&5 | |
14744 | ac_status=$? | |
14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14746 | (exit $ac_status); } && | |
14747 | { ac_try='test -s conftest.$ac_objext' | |
14748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14749 | (eval $ac_try) 2>&5 | |
14750 | ac_status=$? | |
14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14752 | (exit $ac_status); }; }; then | |
14753 | ac_hi=-1 ac_mid=-1 | |
14754 | while :; do | |
14755 | cat >conftest.$ac_ext <<_ACEOF | |
14756 | #line $LINENO "configure" | |
14757 | /* confdefs.h. */ | |
14758 | _ACEOF | |
14759 | cat confdefs.h >>conftest.$ac_ext | |
14760 | cat >>conftest.$ac_ext <<_ACEOF | |
14761 | /* end confdefs.h. */ | |
14762 | $ac_includes_default | |
14763 | int | |
14764 | main () | |
14765 | { | |
14766 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14767 | test_array [0] = 0 | |
247f5006 | 14768 | |
e6cc62c6 VS |
14769 | ; |
14770 | return 0; | |
14771 | } | |
14772 | _ACEOF | |
14773 | rm -f conftest.$ac_objext | |
14774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14775 | (eval $ac_compile) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); } && | |
14779 | { ac_try='test -s conftest.$ac_objext' | |
14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14781 | (eval $ac_try) 2>&5 | |
14782 | ac_status=$? | |
14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14784 | (exit $ac_status); }; }; then | |
14785 | ac_lo=$ac_mid; break | |
14786 | else | |
14787 | echo "$as_me: failed program was:" >&5 | |
14788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14789 | ||
14790 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14791 | if test $ac_mid -le $ac_hi; then | |
14792 | ac_lo= ac_hi= | |
14793 | break | |
14794 | fi | |
14795 | ac_mid=`expr 2 '*' $ac_mid` | |
14796 | fi | |
14797 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14798 | done | |
247f5006 | 14799 | else |
e6cc62c6 VS |
14800 | echo "$as_me: failed program was:" >&5 |
14801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14802 | ||
14803 | ac_lo= ac_hi= | |
14804 | fi | |
14805 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14806 | fi | |
14807 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14808 | # Binary search between lo and hi bounds. | |
14809 | while test "x$ac_lo" != "x$ac_hi"; do | |
14810 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14811 | cat >conftest.$ac_ext <<_ACEOF | |
14812 | #line $LINENO "configure" | |
14813 | /* confdefs.h. */ | |
14814 | _ACEOF | |
14815 | cat confdefs.h >>conftest.$ac_ext | |
14816 | cat >>conftest.$ac_ext <<_ACEOF | |
14817 | /* end confdefs.h. */ | |
14818 | $ac_includes_default | |
14819 | int | |
14820 | main () | |
14821 | { | |
14822 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14823 | test_array [0] = 0 | |
14824 | ||
14825 | ; | |
14826 | return 0; | |
14827 | } | |
14828 | _ACEOF | |
14829 | rm -f conftest.$ac_objext | |
14830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14831 | (eval $ac_compile) 2>&5 | |
14832 | ac_status=$? | |
14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14834 | (exit $ac_status); } && | |
14835 | { ac_try='test -s conftest.$ac_objext' | |
14836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14837 | (eval $ac_try) 2>&5 | |
14838 | ac_status=$? | |
14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14840 | (exit $ac_status); }; }; then | |
14841 | ac_hi=$ac_mid | |
14842 | else | |
14843 | echo "$as_me: failed program was:" >&5 | |
14844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14845 | ||
14846 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14847 | fi | |
14848 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14849 | done | |
14850 | case $ac_lo in | |
14851 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14852 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14853 | See \`config.log' for more details." >&5 | |
14854 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14855 | See \`config.log' for more details." >&2;} | |
14856 | { (exit 1); exit 1; }; } ;; | |
14857 | esac | |
a0b9e27f | 14858 | else |
e6cc62c6 VS |
14859 | if test "$cross_compiling" = yes; then |
14860 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14861 | See \`config.log' for more details." >&5 | |
14862 | echo "$as_me: error: cannot run test program while cross compiling | |
14863 | See \`config.log' for more details." >&2;} | |
14864 | { (exit 1); exit 1; }; } | |
14865 | else | |
14866 | cat >conftest.$ac_ext <<_ACEOF | |
14867 | #line $LINENO "configure" | |
14868 | /* confdefs.h. */ | |
14869 | _ACEOF | |
14870 | cat confdefs.h >>conftest.$ac_ext | |
14871 | cat >>conftest.$ac_ext <<_ACEOF | |
14872 | /* end confdefs.h. */ | |
14873 | $ac_includes_default | |
14874 | long longval () { return (long) (sizeof (int)); } | |
14875 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 14876 | #include <stdio.h> |
e6cc62c6 VS |
14877 | #include <stdlib.h> |
14878 | int | |
14879 | main () | |
247f5006 | 14880 | { |
e6cc62c6 VS |
14881 | |
14882 | FILE *f = fopen ("conftest.val", "w"); | |
14883 | if (! f) | |
14884 | exit (1); | |
14885 | if (((long) (sizeof (int))) < 0) | |
14886 | { | |
14887 | long i = longval (); | |
14888 | if (i != ((long) (sizeof (int)))) | |
14889 | exit (1); | |
14890 | fprintf (f, "%ld\n", i); | |
14891 | } | |
14892 | else | |
14893 | { | |
14894 | unsigned long i = ulongval (); | |
14895 | if (i != ((long) (sizeof (int)))) | |
14896 | exit (1); | |
14897 | fprintf (f, "%lu\n", i); | |
14898 | } | |
14899 | exit (ferror (f) || fclose (f) != 0); | |
14900 | ||
14901 | ; | |
14902 | return 0; | |
247f5006 | 14903 | } |
e6cc62c6 VS |
14904 | _ACEOF |
14905 | rm -f conftest$ac_exeext | |
14906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14907 | (eval $ac_link) 2>&5 | |
14908 | ac_status=$? | |
14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14912 | (eval $ac_try) 2>&5 | |
14913 | ac_status=$? | |
14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14915 | (exit $ac_status); }; }; then | |
14916 | ac_cv_sizeof_int=`cat conftest.val` | |
14917 | else | |
14918 | echo "$as_me: program exited with status $ac_status" >&5 | |
14919 | echo "$as_me: failed program was:" >&5 | |
14920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14921 | ||
14922 | ( exit $ac_status ) | |
14923 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14924 | See \`config.log' for more details." >&5 | |
14925 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14926 | See \`config.log' for more details." >&2;} | |
14927 | { (exit 1); exit 1; }; } | |
14928 | fi | |
14929 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14930 | fi | |
14931 | fi | |
14932 | rm -f conftest.val | |
6f72b082 | 14933 | else |
a0b9e27f | 14934 | ac_cv_sizeof_int=0 |
21d1c967 | 14935 | fi |
698dcdb6 | 14936 | fi |
e6cc62c6 VS |
14937 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
14938 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14939 | cat >>confdefs.h <<_ACEOF | |
14940 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14941 | _ACEOF | |
14942 | ||
14943 | ||
14944 | echo "$as_me:$LINENO: checking for long" >&5 | |
14945 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
14946 | if test "${ac_cv_type_long+set}" = set; then | |
14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14948 | else | |
14949 | cat >conftest.$ac_ext <<_ACEOF | |
14950 | #line $LINENO "configure" | |
14951 | /* confdefs.h. */ | |
14952 | _ACEOF | |
14953 | cat confdefs.h >>conftest.$ac_ext | |
14954 | cat >>conftest.$ac_ext <<_ACEOF | |
14955 | /* end confdefs.h. */ | |
14956 | $ac_includes_default | |
14957 | int | |
14958 | main () | |
14959 | { | |
14960 | if ((long *) 0) | |
14961 | return 0; | |
14962 | if (sizeof (long)) | |
14963 | return 0; | |
14964 | ; | |
14965 | return 0; | |
14966 | } | |
14967 | _ACEOF | |
14968 | rm -f conftest.$ac_objext | |
14969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14970 | (eval $ac_compile) 2>&5 | |
14971 | ac_status=$? | |
14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14973 | (exit $ac_status); } && | |
14974 | { ac_try='test -s conftest.$ac_objext' | |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; }; then | |
14980 | ac_cv_type_long=yes | |
14981 | else | |
14982 | echo "$as_me: failed program was:" >&5 | |
14983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14984 | ||
14985 | ac_cv_type_long=no | |
14986 | fi | |
14987 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14988 | fi | |
14989 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
14990 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
14991 | ||
14992 | echo "$as_me:$LINENO: checking size of long" >&5 | |
14993 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
14994 | if test "${ac_cv_sizeof_long+set}" = set; then | |
14995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14996 | else | |
14997 | if test "$ac_cv_type_long" = yes; then | |
14998 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14999 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15000 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15001 | # This bug is HP SR number 8606223364. | |
15002 | if test "$cross_compiling" = yes; then | |
15003 | # Depending upon the size, compute the lo and hi bounds. | |
15004 | cat >conftest.$ac_ext <<_ACEOF | |
15005 | #line $LINENO "configure" | |
15006 | /* confdefs.h. */ | |
15007 | _ACEOF | |
15008 | cat confdefs.h >>conftest.$ac_ext | |
15009 | cat >>conftest.$ac_ext <<_ACEOF | |
15010 | /* end confdefs.h. */ | |
15011 | $ac_includes_default | |
15012 | int | |
15013 | main () | |
15014 | { | |
15015 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15016 | test_array [0] = 0 | |
15017 | ||
15018 | ; | |
15019 | return 0; | |
15020 | } | |
15021 | _ACEOF | |
15022 | rm -f conftest.$ac_objext | |
15023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15024 | (eval $ac_compile) 2>&5 | |
15025 | ac_status=$? | |
15026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15027 | (exit $ac_status); } && | |
15028 | { ac_try='test -s conftest.$ac_objext' | |
15029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15030 | (eval $ac_try) 2>&5 | |
15031 | ac_status=$? | |
15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15033 | (exit $ac_status); }; }; then | |
15034 | ac_lo=0 ac_mid=0 | |
15035 | while :; do | |
15036 | cat >conftest.$ac_ext <<_ACEOF | |
15037 | #line $LINENO "configure" | |
15038 | /* confdefs.h. */ | |
15039 | _ACEOF | |
15040 | cat confdefs.h >>conftest.$ac_ext | |
15041 | cat >>conftest.$ac_ext <<_ACEOF | |
15042 | /* end confdefs.h. */ | |
15043 | $ac_includes_default | |
15044 | int | |
15045 | main () | |
15046 | { | |
15047 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15048 | test_array [0] = 0 | |
4f14bcd8 | 15049 | |
e6cc62c6 VS |
15050 | ; |
15051 | return 0; | |
15052 | } | |
15053 | _ACEOF | |
15054 | rm -f conftest.$ac_objext | |
15055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15056 | (eval $ac_compile) 2>&5 | |
15057 | ac_status=$? | |
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15059 | (exit $ac_status); } && | |
15060 | { ac_try='test -s conftest.$ac_objext' | |
15061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15062 | (eval $ac_try) 2>&5 | |
15063 | ac_status=$? | |
15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15065 | (exit $ac_status); }; }; then | |
15066 | ac_hi=$ac_mid; break | |
15067 | else | |
15068 | echo "$as_me: failed program was:" >&5 | |
15069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15070 | ||
15071 | ac_lo=`expr $ac_mid + 1` | |
15072 | if test $ac_lo -le $ac_mid; then | |
15073 | ac_lo= ac_hi= | |
15074 | break | |
15075 | fi | |
15076 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15077 | fi |
e6cc62c6 VS |
15078 | rm -f conftest.$ac_objext conftest.$ac_ext |
15079 | done | |
15080 | else | |
15081 | echo "$as_me: failed program was:" >&5 | |
15082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15083 | ||
15084 | cat >conftest.$ac_ext <<_ACEOF | |
15085 | #line $LINENO "configure" | |
15086 | /* confdefs.h. */ | |
15087 | _ACEOF | |
15088 | cat confdefs.h >>conftest.$ac_ext | |
15089 | cat >>conftest.$ac_ext <<_ACEOF | |
15090 | /* end confdefs.h. */ | |
15091 | $ac_includes_default | |
15092 | int | |
15093 | main () | |
15094 | { | |
15095 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15096 | test_array [0] = 0 | |
4f14bcd8 | 15097 | |
e6cc62c6 VS |
15098 | ; |
15099 | return 0; | |
15100 | } | |
15101 | _ACEOF | |
15102 | rm -f conftest.$ac_objext | |
15103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15104 | (eval $ac_compile) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); } && | |
15108 | { ac_try='test -s conftest.$ac_objext' | |
15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15110 | (eval $ac_try) 2>&5 | |
15111 | ac_status=$? | |
15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15113 | (exit $ac_status); }; }; then | |
15114 | ac_hi=-1 ac_mid=-1 | |
15115 | while :; do | |
15116 | cat >conftest.$ac_ext <<_ACEOF | |
15117 | #line $LINENO "configure" | |
15118 | /* confdefs.h. */ | |
15119 | _ACEOF | |
15120 | cat confdefs.h >>conftest.$ac_ext | |
15121 | cat >>conftest.$ac_ext <<_ACEOF | |
15122 | /* end confdefs.h. */ | |
15123 | $ac_includes_default | |
15124 | int | |
15125 | main () | |
15126 | { | |
15127 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15128 | test_array [0] = 0 | |
5c6fa7d2 | 15129 | |
e6cc62c6 VS |
15130 | ; |
15131 | return 0; | |
15132 | } | |
15133 | _ACEOF | |
15134 | rm -f conftest.$ac_objext | |
15135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15136 | (eval $ac_compile) 2>&5 | |
15137 | ac_status=$? | |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15139 | (exit $ac_status); } && | |
15140 | { ac_try='test -s conftest.$ac_objext' | |
15141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15142 | (eval $ac_try) 2>&5 | |
15143 | ac_status=$? | |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15145 | (exit $ac_status); }; }; then | |
15146 | ac_lo=$ac_mid; break | |
15147 | else | |
15148 | echo "$as_me: failed program was:" >&5 | |
15149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15150 | ||
15151 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15152 | if test $ac_mid -le $ac_hi; then | |
15153 | ac_lo= ac_hi= | |
15154 | break | |
15155 | fi | |
15156 | ac_mid=`expr 2 '*' $ac_mid` | |
15157 | fi | |
15158 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15159 | done | |
247f5006 | 15160 | else |
e6cc62c6 VS |
15161 | echo "$as_me: failed program was:" >&5 |
15162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15163 | ||
15164 | ac_lo= ac_hi= | |
15165 | fi | |
15166 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15167 | fi | |
15168 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15169 | # Binary search between lo and hi bounds. | |
15170 | while test "x$ac_lo" != "x$ac_hi"; do | |
15171 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15172 | cat >conftest.$ac_ext <<_ACEOF | |
15173 | #line $LINENO "configure" | |
15174 | /* confdefs.h. */ | |
15175 | _ACEOF | |
15176 | cat confdefs.h >>conftest.$ac_ext | |
15177 | cat >>conftest.$ac_ext <<_ACEOF | |
15178 | /* end confdefs.h. */ | |
15179 | $ac_includes_default | |
15180 | int | |
15181 | main () | |
15182 | { | |
15183 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15184 | test_array [0] = 0 | |
15185 | ||
15186 | ; | |
15187 | return 0; | |
15188 | } | |
15189 | _ACEOF | |
15190 | rm -f conftest.$ac_objext | |
15191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15192 | (eval $ac_compile) 2>&5 | |
15193 | ac_status=$? | |
15194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15195 | (exit $ac_status); } && | |
15196 | { ac_try='test -s conftest.$ac_objext' | |
15197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15198 | (eval $ac_try) 2>&5 | |
15199 | ac_status=$? | |
15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15201 | (exit $ac_status); }; }; then | |
15202 | ac_hi=$ac_mid | |
15203 | else | |
15204 | echo "$as_me: failed program was:" >&5 | |
15205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15206 | ||
15207 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15208 | fi | |
15209 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15210 | done | |
15211 | case $ac_lo in | |
15212 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15213 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15214 | See \`config.log' for more details." >&5 | |
15215 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15216 | See \`config.log' for more details." >&2;} | |
15217 | { (exit 1); exit 1; }; } ;; | |
15218 | esac | |
247f5006 | 15219 | else |
e6cc62c6 VS |
15220 | if test "$cross_compiling" = yes; then |
15221 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15222 | See \`config.log' for more details." >&5 | |
15223 | echo "$as_me: error: cannot run test program while cross compiling | |
15224 | See \`config.log' for more details." >&2;} | |
15225 | { (exit 1); exit 1; }; } | |
15226 | else | |
15227 | cat >conftest.$ac_ext <<_ACEOF | |
15228 | #line $LINENO "configure" | |
15229 | /* confdefs.h. */ | |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | $ac_includes_default | |
15235 | long longval () { return (long) (sizeof (long)); } | |
15236 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15237 | #include <stdio.h> |
e6cc62c6 VS |
15238 | #include <stdlib.h> |
15239 | int | |
15240 | main () | |
247f5006 | 15241 | { |
e6cc62c6 VS |
15242 | |
15243 | FILE *f = fopen ("conftest.val", "w"); | |
15244 | if (! f) | |
15245 | exit (1); | |
15246 | if (((long) (sizeof (long))) < 0) | |
15247 | { | |
15248 | long i = longval (); | |
15249 | if (i != ((long) (sizeof (long)))) | |
15250 | exit (1); | |
15251 | fprintf (f, "%ld\n", i); | |
15252 | } | |
15253 | else | |
15254 | { | |
15255 | unsigned long i = ulongval (); | |
15256 | if (i != ((long) (sizeof (long)))) | |
15257 | exit (1); | |
15258 | fprintf (f, "%lu\n", i); | |
15259 | } | |
15260 | exit (ferror (f) || fclose (f) != 0); | |
15261 | ||
15262 | ; | |
15263 | return 0; | |
247f5006 | 15264 | } |
e6cc62c6 VS |
15265 | _ACEOF |
15266 | rm -f conftest$ac_exeext | |
15267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15268 | (eval $ac_link) 2>&5 | |
15269 | ac_status=$? | |
15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15271 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15273 | (eval $ac_try) 2>&5 | |
15274 | ac_status=$? | |
15275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15276 | (exit $ac_status); }; }; then | |
15277 | ac_cv_sizeof_long=`cat conftest.val` | |
15278 | else | |
15279 | echo "$as_me: program exited with status $ac_status" >&5 | |
15280 | echo "$as_me: failed program was:" >&5 | |
15281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15282 | ||
15283 | ( exit $ac_status ) | |
15284 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15285 | See \`config.log' for more details." >&5 | |
15286 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15287 | See \`config.log' for more details." >&2;} | |
15288 | { (exit 1); exit 1; }; } | |
15289 | fi | |
15290 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15291 | fi | |
15292 | fi | |
15293 | rm -f conftest.val | |
247f5006 | 15294 | else |
a0b9e27f | 15295 | ac_cv_sizeof_long=0 |
247f5006 | 15296 | fi |
247f5006 | 15297 | fi |
e6cc62c6 VS |
15298 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15299 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15300 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15301 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15302 | _ACEOF |
247f5006 | 15303 | |
a0b9e27f MB |
15304 | |
15305 | ||
15306 | case "${host}" in | |
15307 | arm-*-linux* ) | |
e6cc62c6 VS |
15308 | echo "$as_me:$LINENO: checking for long long" >&5 |
15309 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15310 | if test "${ac_cv_type_long_long+set}" = set; then | |
15311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15312 | else | |
15313 | cat >conftest.$ac_ext <<_ACEOF | |
15314 | #line $LINENO "configure" | |
15315 | /* confdefs.h. */ | |
15316 | _ACEOF | |
15317 | cat confdefs.h >>conftest.$ac_ext | |
15318 | cat >>conftest.$ac_ext <<_ACEOF | |
15319 | /* end confdefs.h. */ | |
15320 | $ac_includes_default | |
15321 | int | |
15322 | main () | |
15323 | { | |
15324 | if ((long long *) 0) | |
15325 | return 0; | |
15326 | if (sizeof (long long)) | |
15327 | return 0; | |
15328 | ; | |
15329 | return 0; | |
15330 | } | |
15331 | _ACEOF | |
15332 | rm -f conftest.$ac_objext | |
15333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15334 | (eval $ac_compile) 2>&5 | |
15335 | ac_status=$? | |
15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15337 | (exit $ac_status); } && | |
15338 | { ac_try='test -s conftest.$ac_objext' | |
15339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15340 | (eval $ac_try) 2>&5 | |
15341 | ac_status=$? | |
15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15343 | (exit $ac_status); }; }; then | |
15344 | ac_cv_type_long_long=yes | |
15345 | else | |
15346 | echo "$as_me: failed program was:" >&5 | |
15347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15348 | ||
15349 | ac_cv_type_long_long=no | |
15350 | fi | |
15351 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15352 | fi | |
15353 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15354 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15355 | ||
15356 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15357 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15358 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15360 | else | |
15361 | if test "$ac_cv_type_long_long" = yes; then | |
15362 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15363 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15364 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15365 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15366 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15367 | # Depending upon the size, compute the lo and hi bounds. |
15368 | cat >conftest.$ac_ext <<_ACEOF | |
15369 | #line $LINENO "configure" | |
15370 | /* confdefs.h. */ | |
15371 | _ACEOF | |
15372 | cat confdefs.h >>conftest.$ac_ext | |
15373 | cat >>conftest.$ac_ext <<_ACEOF | |
15374 | /* end confdefs.h. */ | |
15375 | $ac_includes_default | |
15376 | int | |
15377 | main () | |
15378 | { | |
15379 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15380 | test_array [0] = 0 | |
15381 | ||
15382 | ; | |
15383 | return 0; | |
15384 | } | |
15385 | _ACEOF | |
15386 | rm -f conftest.$ac_objext | |
15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15388 | (eval $ac_compile) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); } && | |
15392 | { ac_try='test -s conftest.$ac_objext' | |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; }; then | |
15398 | ac_lo=0 ac_mid=0 | |
15399 | while :; do | |
15400 | cat >conftest.$ac_ext <<_ACEOF | |
15401 | #line $LINENO "configure" | |
15402 | /* confdefs.h. */ | |
15403 | _ACEOF | |
15404 | cat confdefs.h >>conftest.$ac_ext | |
15405 | cat >>conftest.$ac_ext <<_ACEOF | |
15406 | /* end confdefs.h. */ | |
15407 | $ac_includes_default | |
15408 | int | |
15409 | main () | |
15410 | { | |
15411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15412 | test_array [0] = 0 | |
15413 | ||
15414 | ; | |
15415 | return 0; | |
15416 | } | |
15417 | _ACEOF | |
15418 | rm -f conftest.$ac_objext | |
15419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15420 | (eval $ac_compile) 2>&5 | |
15421 | ac_status=$? | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); } && | |
15424 | { ac_try='test -s conftest.$ac_objext' | |
15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15426 | (eval $ac_try) 2>&5 | |
15427 | ac_status=$? | |
15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15429 | (exit $ac_status); }; }; then | |
15430 | ac_hi=$ac_mid; break | |
15431 | else | |
15432 | echo "$as_me: failed program was:" >&5 | |
15433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15434 | ||
15435 | ac_lo=`expr $ac_mid + 1` | |
15436 | if test $ac_lo -le $ac_mid; then | |
15437 | ac_lo= ac_hi= | |
15438 | break | |
15439 | fi | |
15440 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15441 | fi | |
15442 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15443 | done | |
15444 | else | |
15445 | echo "$as_me: failed program was:" >&5 | |
15446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15447 | ||
15448 | cat >conftest.$ac_ext <<_ACEOF | |
15449 | #line $LINENO "configure" | |
15450 | /* confdefs.h. */ | |
15451 | _ACEOF | |
15452 | cat confdefs.h >>conftest.$ac_ext | |
15453 | cat >>conftest.$ac_ext <<_ACEOF | |
15454 | /* end confdefs.h. */ | |
15455 | $ac_includes_default | |
15456 | int | |
15457 | main () | |
15458 | { | |
15459 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15460 | test_array [0] = 0 | |
15461 | ||
15462 | ; | |
15463 | return 0; | |
15464 | } | |
15465 | _ACEOF | |
15466 | rm -f conftest.$ac_objext | |
15467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15468 | (eval $ac_compile) 2>&5 | |
15469 | ac_status=$? | |
15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15471 | (exit $ac_status); } && | |
15472 | { ac_try='test -s conftest.$ac_objext' | |
15473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15474 | (eval $ac_try) 2>&5 | |
15475 | ac_status=$? | |
15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15477 | (exit $ac_status); }; }; then | |
15478 | ac_hi=-1 ac_mid=-1 | |
15479 | while :; do | |
15480 | cat >conftest.$ac_ext <<_ACEOF | |
15481 | #line $LINENO "configure" | |
15482 | /* confdefs.h. */ | |
15483 | _ACEOF | |
15484 | cat confdefs.h >>conftest.$ac_ext | |
15485 | cat >>conftest.$ac_ext <<_ACEOF | |
15486 | /* end confdefs.h. */ | |
15487 | $ac_includes_default | |
15488 | int | |
15489 | main () | |
15490 | { | |
15491 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15492 | test_array [0] = 0 | |
15493 | ||
15494 | ; | |
15495 | return 0; | |
15496 | } | |
15497 | _ACEOF | |
15498 | rm -f conftest.$ac_objext | |
15499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15500 | (eval $ac_compile) 2>&5 | |
15501 | ac_status=$? | |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 | (exit $ac_status); } && | |
15504 | { ac_try='test -s conftest.$ac_objext' | |
15505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15506 | (eval $ac_try) 2>&5 | |
15507 | ac_status=$? | |
15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15509 | (exit $ac_status); }; }; then | |
15510 | ac_lo=$ac_mid; break | |
15511 | else | |
15512 | echo "$as_me: failed program was:" >&5 | |
15513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15514 | ||
15515 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15516 | if test $ac_mid -le $ac_hi; then | |
15517 | ac_lo= ac_hi= | |
15518 | break | |
15519 | fi | |
15520 | ac_mid=`expr 2 '*' $ac_mid` | |
15521 | fi | |
15522 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15523 | done | |
15524 | else | |
15525 | echo "$as_me: failed program was:" >&5 | |
15526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15527 | ||
15528 | ac_lo= ac_hi= | |
15529 | fi | |
15530 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15531 | fi | |
15532 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15533 | # Binary search between lo and hi bounds. | |
15534 | while test "x$ac_lo" != "x$ac_hi"; do | |
15535 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15536 | cat >conftest.$ac_ext <<_ACEOF | |
15537 | #line $LINENO "configure" | |
15538 | /* confdefs.h. */ | |
15539 | _ACEOF | |
15540 | cat confdefs.h >>conftest.$ac_ext | |
15541 | cat >>conftest.$ac_ext <<_ACEOF | |
15542 | /* end confdefs.h. */ | |
15543 | $ac_includes_default | |
15544 | int | |
15545 | main () | |
15546 | { | |
15547 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15548 | test_array [0] = 0 | |
15549 | ||
15550 | ; | |
15551 | return 0; | |
15552 | } | |
15553 | _ACEOF | |
15554 | rm -f conftest.$ac_objext | |
15555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15556 | (eval $ac_compile) 2>&5 | |
15557 | ac_status=$? | |
15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15559 | (exit $ac_status); } && | |
15560 | { ac_try='test -s conftest.$ac_objext' | |
15561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15562 | (eval $ac_try) 2>&5 | |
15563 | ac_status=$? | |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15565 | (exit $ac_status); }; }; then | |
15566 | ac_hi=$ac_mid | |
15567 | else | |
15568 | echo "$as_me: failed program was:" >&5 | |
15569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15570 | ||
15571 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15572 | fi | |
15573 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15574 | done | |
15575 | case $ac_lo in | |
15576 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15577 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15578 | See \`config.log' for more details." >&5 | |
15579 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15580 | See \`config.log' for more details." >&2;} | |
15581 | { (exit 1); exit 1; }; } ;; | |
15582 | esac | |
a0b9e27f | 15583 | else |
e6cc62c6 VS |
15584 | if test "$cross_compiling" = yes; then |
15585 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15586 | See \`config.log' for more details." >&5 | |
15587 | echo "$as_me: error: cannot run test program while cross compiling | |
15588 | See \`config.log' for more details." >&2;} | |
15589 | { (exit 1); exit 1; }; } | |
15590 | else | |
15591 | cat >conftest.$ac_ext <<_ACEOF | |
15592 | #line $LINENO "configure" | |
15593 | /* confdefs.h. */ | |
15594 | _ACEOF | |
15595 | cat confdefs.h >>conftest.$ac_ext | |
15596 | cat >>conftest.$ac_ext <<_ACEOF | |
15597 | /* end confdefs.h. */ | |
15598 | $ac_includes_default | |
15599 | long longval () { return (long) (sizeof (long long)); } | |
15600 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15601 | #include <stdio.h> |
e6cc62c6 VS |
15602 | #include <stdlib.h> |
15603 | int | |
15604 | main () | |
247f5006 | 15605 | { |
e6cc62c6 VS |
15606 | |
15607 | FILE *f = fopen ("conftest.val", "w"); | |
15608 | if (! f) | |
15609 | exit (1); | |
15610 | if (((long) (sizeof (long long))) < 0) | |
15611 | { | |
15612 | long i = longval (); | |
15613 | if (i != ((long) (sizeof (long long)))) | |
15614 | exit (1); | |
15615 | fprintf (f, "%ld\n", i); | |
15616 | } | |
15617 | else | |
15618 | { | |
15619 | unsigned long i = ulongval (); | |
15620 | if (i != ((long) (sizeof (long long)))) | |
15621 | exit (1); | |
15622 | fprintf (f, "%lu\n", i); | |
15623 | } | |
15624 | exit (ferror (f) || fclose (f) != 0); | |
15625 | ||
15626 | ; | |
15627 | return 0; | |
247f5006 | 15628 | } |
e6cc62c6 VS |
15629 | _ACEOF |
15630 | rm -f conftest$ac_exeext | |
15631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15632 | (eval $ac_link) 2>&5 | |
15633 | ac_status=$? | |
15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15637 | (eval $ac_try) 2>&5 | |
15638 | ac_status=$? | |
15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15640 | (exit $ac_status); }; }; then | |
15641 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15642 | else | |
15643 | echo "$as_me: program exited with status $ac_status" >&5 | |
15644 | echo "$as_me: failed program was:" >&5 | |
15645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15646 | ||
15647 | ( exit $ac_status ) | |
15648 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15649 | See \`config.log' for more details." >&5 | |
15650 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15651 | See \`config.log' for more details." >&2;} | |
15652 | { (exit 1); exit 1; }; } | |
15653 | fi | |
15654 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15655 | fi | |
15656 | fi | |
15657 | rm -f conftest.val | |
7b4a847f | 15658 | else |
a0b9e27f | 15659 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15660 | fi |
15661 | fi | |
e6cc62c6 VS |
15662 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15663 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15664 | cat >>confdefs.h <<_ACEOF | |
15665 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15666 | _ACEOF | |
15667 | ||
15668 | ||
15669 | ;; | |
15670 | *-hp-hpux* ) | |
15671 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15672 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15673 | if test "${ac_cv_type_long_long+set}" = set; then | |
15674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15675 | else | |
15676 | cat >conftest.$ac_ext <<_ACEOF | |
15677 | #line $LINENO "configure" | |
15678 | /* confdefs.h. */ | |
15679 | _ACEOF | |
15680 | cat confdefs.h >>conftest.$ac_ext | |
15681 | cat >>conftest.$ac_ext <<_ACEOF | |
15682 | /* end confdefs.h. */ | |
15683 | $ac_includes_default | |
15684 | int | |
15685 | main () | |
15686 | { | |
15687 | if ((long long *) 0) | |
15688 | return 0; | |
15689 | if (sizeof (long long)) | |
15690 | return 0; | |
15691 | ; | |
15692 | return 0; | |
15693 | } | |
15694 | _ACEOF | |
15695 | rm -f conftest.$ac_objext | |
15696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15697 | (eval $ac_compile) 2>&5 | |
15698 | ac_status=$? | |
15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15700 | (exit $ac_status); } && | |
15701 | { ac_try='test -s conftest.$ac_objext' | |
15702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15703 | (eval $ac_try) 2>&5 | |
15704 | ac_status=$? | |
15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15706 | (exit $ac_status); }; }; then | |
15707 | ac_cv_type_long_long=yes | |
15708 | else | |
15709 | echo "$as_me: failed program was:" >&5 | |
15710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15711 | ||
15712 | ac_cv_type_long_long=no | |
15713 | fi | |
15714 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15715 | fi | |
15716 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15717 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15718 | ||
15719 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15720 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15721 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15723 | else | |
15724 | if test "$ac_cv_type_long_long" = yes; then | |
15725 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15726 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15727 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15728 | # This bug is HP SR number 8606223364. | |
15729 | if test "$cross_compiling" = yes; then | |
15730 | # Depending upon the size, compute the lo and hi bounds. | |
15731 | cat >conftest.$ac_ext <<_ACEOF | |
15732 | #line $LINENO "configure" | |
15733 | /* confdefs.h. */ | |
15734 | _ACEOF | |
15735 | cat confdefs.h >>conftest.$ac_ext | |
15736 | cat >>conftest.$ac_ext <<_ACEOF | |
15737 | /* end confdefs.h. */ | |
15738 | $ac_includes_default | |
15739 | int | |
15740 | main () | |
15741 | { | |
15742 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15743 | test_array [0] = 0 | |
15744 | ||
15745 | ; | |
15746 | return 0; | |
15747 | } | |
15748 | _ACEOF | |
15749 | rm -f conftest.$ac_objext | |
15750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15751 | (eval $ac_compile) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); } && | |
15755 | { ac_try='test -s conftest.$ac_objext' | |
15756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15757 | (eval $ac_try) 2>&5 | |
15758 | ac_status=$? | |
15759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15760 | (exit $ac_status); }; }; then | |
15761 | ac_lo=0 ac_mid=0 | |
15762 | while :; do | |
15763 | cat >conftest.$ac_ext <<_ACEOF | |
15764 | #line $LINENO "configure" | |
15765 | /* confdefs.h. */ | |
15766 | _ACEOF | |
15767 | cat confdefs.h >>conftest.$ac_ext | |
15768 | cat >>conftest.$ac_ext <<_ACEOF | |
15769 | /* end confdefs.h. */ | |
15770 | $ac_includes_default | |
15771 | int | |
15772 | main () | |
15773 | { | |
15774 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15775 | test_array [0] = 0 | |
8284b0c5 | 15776 | |
e6cc62c6 VS |
15777 | ; |
15778 | return 0; | |
15779 | } | |
15780 | _ACEOF | |
15781 | rm -f conftest.$ac_objext | |
15782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15783 | (eval $ac_compile) 2>&5 | |
15784 | ac_status=$? | |
15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15786 | (exit $ac_status); } && | |
15787 | { ac_try='test -s conftest.$ac_objext' | |
15788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15789 | (eval $ac_try) 2>&5 | |
15790 | ac_status=$? | |
15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15792 | (exit $ac_status); }; }; then | |
15793 | ac_hi=$ac_mid; break | |
15794 | else | |
15795 | echo "$as_me: failed program was:" >&5 | |
15796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15797 | ||
15798 | ac_lo=`expr $ac_mid + 1` | |
15799 | if test $ac_lo -le $ac_mid; then | |
15800 | ac_lo= ac_hi= | |
15801 | break | |
15802 | fi | |
15803 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15804 | fi |
e6cc62c6 VS |
15805 | rm -f conftest.$ac_objext conftest.$ac_ext |
15806 | done | |
15807 | else | |
15808 | echo "$as_me: failed program was:" >&5 | |
15809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15810 | ||
15811 | cat >conftest.$ac_ext <<_ACEOF | |
15812 | #line $LINENO "configure" | |
15813 | /* confdefs.h. */ | |
15814 | _ACEOF | |
15815 | cat confdefs.h >>conftest.$ac_ext | |
15816 | cat >>conftest.$ac_ext <<_ACEOF | |
15817 | /* end confdefs.h. */ | |
15818 | $ac_includes_default | |
15819 | int | |
15820 | main () | |
15821 | { | |
15822 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15823 | test_array [0] = 0 | |
a0b9e27f | 15824 | |
e6cc62c6 VS |
15825 | ; |
15826 | return 0; | |
15827 | } | |
15828 | _ACEOF | |
15829 | rm -f conftest.$ac_objext | |
15830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15831 | (eval $ac_compile) 2>&5 | |
15832 | ac_status=$? | |
15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15834 | (exit $ac_status); } && | |
15835 | { ac_try='test -s conftest.$ac_objext' | |
15836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15837 | (eval $ac_try) 2>&5 | |
15838 | ac_status=$? | |
15839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15840 | (exit $ac_status); }; }; then | |
15841 | ac_hi=-1 ac_mid=-1 | |
15842 | while :; do | |
15843 | cat >conftest.$ac_ext <<_ACEOF | |
15844 | #line $LINENO "configure" | |
15845 | /* confdefs.h. */ | |
15846 | _ACEOF | |
15847 | cat confdefs.h >>conftest.$ac_ext | |
15848 | cat >>conftest.$ac_ext <<_ACEOF | |
15849 | /* end confdefs.h. */ | |
15850 | $ac_includes_default | |
15851 | int | |
15852 | main () | |
15853 | { | |
15854 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15855 | test_array [0] = 0 | |
a0b9e27f | 15856 | |
e6cc62c6 VS |
15857 | ; |
15858 | return 0; | |
15859 | } | |
15860 | _ACEOF | |
15861 | rm -f conftest.$ac_objext | |
15862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15863 | (eval $ac_compile) 2>&5 | |
15864 | ac_status=$? | |
15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15866 | (exit $ac_status); } && | |
15867 | { ac_try='test -s conftest.$ac_objext' | |
15868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15869 | (eval $ac_try) 2>&5 | |
15870 | ac_status=$? | |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15872 | (exit $ac_status); }; }; then | |
15873 | ac_lo=$ac_mid; break | |
15874 | else | |
15875 | echo "$as_me: failed program was:" >&5 | |
15876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15877 | ||
15878 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15879 | if test $ac_mid -le $ac_hi; then | |
15880 | ac_lo= ac_hi= | |
15881 | break | |
15882 | fi | |
15883 | ac_mid=`expr 2 '*' $ac_mid` | |
15884 | fi | |
15885 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15886 | done | |
8284b0c5 | 15887 | else |
e6cc62c6 VS |
15888 | echo "$as_me: failed program was:" >&5 |
15889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15890 | ||
15891 | ac_lo= ac_hi= | |
15892 | fi | |
15893 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15894 | fi | |
15895 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15896 | # Binary search between lo and hi bounds. | |
15897 | while test "x$ac_lo" != "x$ac_hi"; do | |
15898 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15899 | cat >conftest.$ac_ext <<_ACEOF | |
15900 | #line $LINENO "configure" | |
15901 | /* confdefs.h. */ | |
15902 | _ACEOF | |
15903 | cat confdefs.h >>conftest.$ac_ext | |
15904 | cat >>conftest.$ac_ext <<_ACEOF | |
15905 | /* end confdefs.h. */ | |
15906 | $ac_includes_default | |
15907 | int | |
15908 | main () | |
15909 | { | |
15910 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15911 | test_array [0] = 0 | |
15912 | ||
15913 | ; | |
15914 | return 0; | |
15915 | } | |
15916 | _ACEOF | |
15917 | rm -f conftest.$ac_objext | |
15918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15919 | (eval $ac_compile) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); } && | |
15923 | { ac_try='test -s conftest.$ac_objext' | |
15924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15925 | (eval $ac_try) 2>&5 | |
15926 | ac_status=$? | |
15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15928 | (exit $ac_status); }; }; then | |
15929 | ac_hi=$ac_mid | |
15930 | else | |
15931 | echo "$as_me: failed program was:" >&5 | |
15932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15933 | ||
15934 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15935 | fi | |
15936 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15937 | done | |
15938 | case $ac_lo in | |
15939 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15940 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15941 | See \`config.log' for more details." >&5 | |
15942 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15943 | See \`config.log' for more details." >&2;} | |
15944 | { (exit 1); exit 1; }; } ;; | |
15945 | esac | |
8284b0c5 | 15946 | else |
e6cc62c6 VS |
15947 | if test "$cross_compiling" = yes; then |
15948 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15949 | See \`config.log' for more details." >&5 | |
15950 | echo "$as_me: error: cannot run test program while cross compiling | |
15951 | See \`config.log' for more details." >&2;} | |
15952 | { (exit 1); exit 1; }; } | |
15953 | else | |
15954 | cat >conftest.$ac_ext <<_ACEOF | |
15955 | #line $LINENO "configure" | |
15956 | /* confdefs.h. */ | |
15957 | _ACEOF | |
15958 | cat confdefs.h >>conftest.$ac_ext | |
15959 | cat >>conftest.$ac_ext <<_ACEOF | |
15960 | /* end confdefs.h. */ | |
15961 | $ac_includes_default | |
15962 | long longval () { return (long) (sizeof (long long)); } | |
15963 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 15964 | #include <stdio.h> |
e6cc62c6 VS |
15965 | #include <stdlib.h> |
15966 | int | |
15967 | main () | |
8284b0c5 | 15968 | { |
e6cc62c6 VS |
15969 | |
15970 | FILE *f = fopen ("conftest.val", "w"); | |
15971 | if (! f) | |
15972 | exit (1); | |
15973 | if (((long) (sizeof (long long))) < 0) | |
15974 | { | |
15975 | long i = longval (); | |
15976 | if (i != ((long) (sizeof (long long)))) | |
15977 | exit (1); | |
15978 | fprintf (f, "%ld\n", i); | |
15979 | } | |
15980 | else | |
15981 | { | |
15982 | unsigned long i = ulongval (); | |
15983 | if (i != ((long) (sizeof (long long)))) | |
15984 | exit (1); | |
15985 | fprintf (f, "%lu\n", i); | |
15986 | } | |
15987 | exit (ferror (f) || fclose (f) != 0); | |
15988 | ||
15989 | ; | |
15990 | return 0; | |
8284b0c5 | 15991 | } |
e6cc62c6 VS |
15992 | _ACEOF |
15993 | rm -f conftest$ac_exeext | |
15994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15995 | (eval $ac_link) 2>&5 | |
15996 | ac_status=$? | |
15997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15998 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16000 | (eval $ac_try) 2>&5 | |
16001 | ac_status=$? | |
16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16003 | (exit $ac_status); }; }; then | |
16004 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16005 | else | |
16006 | echo "$as_me: program exited with status $ac_status" >&5 | |
16007 | echo "$as_me: failed program was:" >&5 | |
16008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16009 | ||
16010 | ( exit $ac_status ) | |
16011 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16012 | See \`config.log' for more details." >&5 | |
16013 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16014 | See \`config.log' for more details." >&2;} | |
16015 | { (exit 1); exit 1; }; } | |
16016 | fi | |
16017 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16018 | fi | |
16019 | fi | |
16020 | rm -f conftest.val | |
5c6fa7d2 RR |
16021 | else |
16022 | ac_cv_sizeof_long_long=0 | |
52127426 | 16023 | fi |
4f57cf11 | 16024 | fi |
e6cc62c6 VS |
16025 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16026 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16027 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16028 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16029 | _ACEOF |
4f57cf11 GD |
16030 | |
16031 | ||
16032 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16033 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16034 | fi | |
16035 | ;; | |
16036 | * ) | |
e6cc62c6 VS |
16037 | echo "$as_me:$LINENO: checking for long long" >&5 |
16038 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16039 | if test "${ac_cv_type_long_long+set}" = set; then | |
16040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16041 | else | |
16042 | cat >conftest.$ac_ext <<_ACEOF | |
16043 | #line $LINENO "configure" | |
16044 | /* confdefs.h. */ | |
16045 | _ACEOF | |
16046 | cat confdefs.h >>conftest.$ac_ext | |
16047 | cat >>conftest.$ac_ext <<_ACEOF | |
16048 | /* end confdefs.h. */ | |
16049 | $ac_includes_default | |
16050 | int | |
16051 | main () | |
16052 | { | |
16053 | if ((long long *) 0) | |
16054 | return 0; | |
16055 | if (sizeof (long long)) | |
16056 | return 0; | |
16057 | ; | |
16058 | return 0; | |
16059 | } | |
16060 | _ACEOF | |
16061 | rm -f conftest.$ac_objext | |
16062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16063 | (eval $ac_compile) 2>&5 | |
16064 | ac_status=$? | |
16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16066 | (exit $ac_status); } && | |
16067 | { ac_try='test -s conftest.$ac_objext' | |
16068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16069 | (eval $ac_try) 2>&5 | |
16070 | ac_status=$? | |
16071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16072 | (exit $ac_status); }; }; then | |
16073 | ac_cv_type_long_long=yes | |
16074 | else | |
16075 | echo "$as_me: failed program was:" >&5 | |
16076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16077 | ||
16078 | ac_cv_type_long_long=no | |
16079 | fi | |
16080 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16081 | fi | |
16082 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16083 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16084 | ||
16085 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16086 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16087 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16089 | else | |
16090 | if test "$ac_cv_type_long_long" = yes; then | |
16091 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16092 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16093 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16094 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16095 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16096 | # Depending upon the size, compute the lo and hi bounds. |
16097 | cat >conftest.$ac_ext <<_ACEOF | |
16098 | #line $LINENO "configure" | |
16099 | /* confdefs.h. */ | |
16100 | _ACEOF | |
16101 | cat confdefs.h >>conftest.$ac_ext | |
16102 | cat >>conftest.$ac_ext <<_ACEOF | |
16103 | /* end confdefs.h. */ | |
16104 | $ac_includes_default | |
16105 | int | |
16106 | main () | |
16107 | { | |
16108 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16109 | test_array [0] = 0 | |
16110 | ||
16111 | ; | |
16112 | return 0; | |
16113 | } | |
16114 | _ACEOF | |
16115 | rm -f conftest.$ac_objext | |
16116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16117 | (eval $ac_compile) 2>&5 | |
16118 | ac_status=$? | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); } && | |
16121 | { ac_try='test -s conftest.$ac_objext' | |
16122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16123 | (eval $ac_try) 2>&5 | |
16124 | ac_status=$? | |
16125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16126 | (exit $ac_status); }; }; then | |
16127 | ac_lo=0 ac_mid=0 | |
16128 | while :; do | |
16129 | cat >conftest.$ac_ext <<_ACEOF | |
16130 | #line $LINENO "configure" | |
16131 | /* confdefs.h. */ | |
16132 | _ACEOF | |
16133 | cat confdefs.h >>conftest.$ac_ext | |
16134 | cat >>conftest.$ac_ext <<_ACEOF | |
16135 | /* end confdefs.h. */ | |
16136 | $ac_includes_default | |
16137 | int | |
16138 | main () | |
16139 | { | |
16140 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16141 | test_array [0] = 0 | |
16142 | ||
16143 | ; | |
16144 | return 0; | |
16145 | } | |
16146 | _ACEOF | |
16147 | rm -f conftest.$ac_objext | |
16148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16149 | (eval $ac_compile) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); } && | |
16153 | { ac_try='test -s conftest.$ac_objext' | |
16154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16155 | (eval $ac_try) 2>&5 | |
16156 | ac_status=$? | |
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; }; then | |
16159 | ac_hi=$ac_mid; break | |
16160 | else | |
16161 | echo "$as_me: failed program was:" >&5 | |
16162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16163 | ||
16164 | ac_lo=`expr $ac_mid + 1` | |
16165 | if test $ac_lo -le $ac_mid; then | |
16166 | ac_lo= ac_hi= | |
16167 | break | |
16168 | fi | |
16169 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16170 | fi | |
16171 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16172 | done | |
16173 | else | |
16174 | echo "$as_me: failed program was:" >&5 | |
16175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16176 | ||
16177 | cat >conftest.$ac_ext <<_ACEOF | |
16178 | #line $LINENO "configure" | |
16179 | /* confdefs.h. */ | |
16180 | _ACEOF | |
16181 | cat confdefs.h >>conftest.$ac_ext | |
16182 | cat >>conftest.$ac_ext <<_ACEOF | |
16183 | /* end confdefs.h. */ | |
16184 | $ac_includes_default | |
16185 | int | |
16186 | main () | |
16187 | { | |
16188 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16189 | test_array [0] = 0 | |
16190 | ||
16191 | ; | |
16192 | return 0; | |
16193 | } | |
16194 | _ACEOF | |
16195 | rm -f conftest.$ac_objext | |
16196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16197 | (eval $ac_compile) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); } && | |
16201 | { ac_try='test -s conftest.$ac_objext' | |
16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16203 | (eval $ac_try) 2>&5 | |
16204 | ac_status=$? | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); }; }; then | |
16207 | ac_hi=-1 ac_mid=-1 | |
16208 | while :; do | |
16209 | cat >conftest.$ac_ext <<_ACEOF | |
16210 | #line $LINENO "configure" | |
16211 | /* confdefs.h. */ | |
16212 | _ACEOF | |
16213 | cat confdefs.h >>conftest.$ac_ext | |
16214 | cat >>conftest.$ac_ext <<_ACEOF | |
16215 | /* end confdefs.h. */ | |
16216 | $ac_includes_default | |
16217 | int | |
16218 | main () | |
16219 | { | |
16220 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16221 | test_array [0] = 0 | |
16222 | ||
16223 | ; | |
16224 | return 0; | |
16225 | } | |
16226 | _ACEOF | |
16227 | rm -f conftest.$ac_objext | |
16228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16229 | (eval $ac_compile) 2>&5 | |
16230 | ac_status=$? | |
16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16232 | (exit $ac_status); } && | |
16233 | { ac_try='test -s conftest.$ac_objext' | |
16234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16235 | (eval $ac_try) 2>&5 | |
16236 | ac_status=$? | |
16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16238 | (exit $ac_status); }; }; then | |
16239 | ac_lo=$ac_mid; break | |
16240 | else | |
16241 | echo "$as_me: failed program was:" >&5 | |
16242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16243 | ||
16244 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16245 | if test $ac_mid -le $ac_hi; then | |
16246 | ac_lo= ac_hi= | |
16247 | break | |
16248 | fi | |
16249 | ac_mid=`expr 2 '*' $ac_mid` | |
16250 | fi | |
16251 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16252 | done | |
4f57cf11 | 16253 | else |
e6cc62c6 VS |
16254 | echo "$as_me: failed program was:" >&5 |
16255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16256 | ||
16257 | ac_lo= ac_hi= | |
16258 | fi | |
16259 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16260 | fi | |
16261 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16262 | # Binary search between lo and hi bounds. | |
16263 | while test "x$ac_lo" != "x$ac_hi"; do | |
16264 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16265 | cat >conftest.$ac_ext <<_ACEOF | |
16266 | #line $LINENO "configure" | |
16267 | /* confdefs.h. */ | |
16268 | _ACEOF | |
16269 | cat confdefs.h >>conftest.$ac_ext | |
16270 | cat >>conftest.$ac_ext <<_ACEOF | |
16271 | /* end confdefs.h. */ | |
16272 | $ac_includes_default | |
16273 | int | |
16274 | main () | |
16275 | { | |
16276 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16277 | test_array [0] = 0 | |
16278 | ||
16279 | ; | |
16280 | return 0; | |
16281 | } | |
16282 | _ACEOF | |
16283 | rm -f conftest.$ac_objext | |
16284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16285 | (eval $ac_compile) 2>&5 | |
16286 | ac_status=$? | |
16287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16288 | (exit $ac_status); } && | |
16289 | { ac_try='test -s conftest.$ac_objext' | |
16290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16291 | (eval $ac_try) 2>&5 | |
16292 | ac_status=$? | |
16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16294 | (exit $ac_status); }; }; then | |
16295 | ac_hi=$ac_mid | |
16296 | else | |
16297 | echo "$as_me: failed program was:" >&5 | |
16298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16299 | ||
16300 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16301 | fi | |
16302 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16303 | done | |
16304 | case $ac_lo in | |
16305 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16306 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16307 | See \`config.log' for more details." >&5 | |
16308 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16309 | See \`config.log' for more details." >&2;} | |
16310 | { (exit 1); exit 1; }; } ;; | |
16311 | esac | |
16312 | else | |
16313 | if test "$cross_compiling" = yes; then | |
16314 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16315 | See \`config.log' for more details." >&5 | |
16316 | echo "$as_me: error: cannot run test program while cross compiling | |
16317 | See \`config.log' for more details." >&2;} | |
16318 | { (exit 1); exit 1; }; } | |
16319 | else | |
16320 | cat >conftest.$ac_ext <<_ACEOF | |
16321 | #line $LINENO "configure" | |
16322 | /* confdefs.h. */ | |
16323 | _ACEOF | |
16324 | cat confdefs.h >>conftest.$ac_ext | |
16325 | cat >>conftest.$ac_ext <<_ACEOF | |
16326 | /* end confdefs.h. */ | |
16327 | $ac_includes_default | |
16328 | long longval () { return (long) (sizeof (long long)); } | |
16329 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16330 | #include <stdio.h> |
e6cc62c6 VS |
16331 | #include <stdlib.h> |
16332 | int | |
16333 | main () | |
4f57cf11 | 16334 | { |
e6cc62c6 VS |
16335 | |
16336 | FILE *f = fopen ("conftest.val", "w"); | |
16337 | if (! f) | |
16338 | exit (1); | |
16339 | if (((long) (sizeof (long long))) < 0) | |
16340 | { | |
16341 | long i = longval (); | |
16342 | if (i != ((long) (sizeof (long long)))) | |
16343 | exit (1); | |
16344 | fprintf (f, "%ld\n", i); | |
16345 | } | |
16346 | else | |
16347 | { | |
16348 | unsigned long i = ulongval (); | |
16349 | if (i != ((long) (sizeof (long long)))) | |
16350 | exit (1); | |
16351 | fprintf (f, "%lu\n", i); | |
16352 | } | |
16353 | exit (ferror (f) || fclose (f) != 0); | |
16354 | ||
16355 | ; | |
16356 | return 0; | |
4f57cf11 | 16357 | } |
e6cc62c6 VS |
16358 | _ACEOF |
16359 | rm -f conftest$ac_exeext | |
16360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16361 | (eval $ac_link) 2>&5 | |
16362 | ac_status=$? | |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16366 | (eval $ac_try) 2>&5 | |
16367 | ac_status=$? | |
16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16369 | (exit $ac_status); }; }; then | |
16370 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16371 | else | |
16372 | echo "$as_me: program exited with status $ac_status" >&5 | |
16373 | echo "$as_me: failed program was:" >&5 | |
16374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16375 | ||
16376 | ( exit $ac_status ) | |
16377 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16378 | See \`config.log' for more details." >&5 | |
16379 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16380 | See \`config.log' for more details." >&2;} | |
16381 | { (exit 1); exit 1; }; } | |
16382 | fi | |
16383 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16384 | fi | |
16385 | fi | |
16386 | rm -f conftest.val | |
4f57cf11 | 16387 | else |
4f57cf11 GD |
16388 | ac_cv_sizeof_long_long=0 |
16389 | fi | |
7b4a847f | 16390 | fi |
e6cc62c6 VS |
16391 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16392 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16393 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16394 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16395 | _ACEOF |
9e691f46 | 16396 | |
8284b0c5 | 16397 | |
21d1c967 GD |
16398 | esac |
16399 | ||
e6cc62c6 VS |
16400 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16401 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16402 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16404 | else |
e6cc62c6 | 16405 | |
21d1c967 | 16406 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16407 | |
2b5f62a0 VZ |
16408 | case "${host}" in |
16409 | *-pc-msdosdjgpp ) | |
16410 | wx_cv_sizeof_wchar_t=0 | |
16411 | ;; | |
16412 | * ) | |
16413 | wx_cv_sizeof_wchar_t=4 | |
16414 | ;; | |
16415 | esac | |
e6cc62c6 VS |
16416 | |
16417 | ||
6f72b082 | 16418 | else |
e6cc62c6 VS |
16419 | cat >conftest.$ac_ext <<_ACEOF |
16420 | #line $LINENO "configure" | |
16421 | /* confdefs.h. */ | |
16422 | _ACEOF | |
16423 | cat confdefs.h >>conftest.$ac_ext | |
16424 | cat >>conftest.$ac_ext <<_ACEOF | |
16425 | /* end confdefs.h. */ | |
21d1c967 | 16426 | |
2b5f62a0 VZ |
16427 | /* DJGPP only has fake wchar_t: */ |
16428 | #ifdef __DJGPP__ | |
16429 | # error "fake wchar_t" | |
16430 | #endif | |
21d1c967 GD |
16431 | #ifdef HAVE_WCHAR_H |
16432 | # ifdef __CYGWIN__ | |
16433 | # include <stddef.h> | |
16434 | # endif | |
16435 | # include <wchar.h> | |
16436 | #endif | |
16437 | #ifdef HAVE_STDLIB_H | |
16438 | # include <stdlib.h> | |
16439 | #endif | |
16440 | #include <stdio.h> | |
16441 | int main() | |
16442 | { | |
16443 | FILE *f=fopen("conftestval", "w"); | |
16444 | if (!f) exit(1); | |
16445 | fprintf(f, "%i", sizeof(wchar_t)); | |
16446 | exit(0); | |
16447 | } | |
e6cc62c6 VS |
16448 | |
16449 | _ACEOF | |
16450 | rm -f conftest$ac_exeext | |
16451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16452 | (eval $ac_link) 2>&5 | |
16453 | ac_status=$? | |
16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16457 | (eval $ac_try) 2>&5 | |
16458 | ac_status=$? | |
16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16460 | (exit $ac_status); }; }; then | |
21d1c967 | 16461 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16462 | else |
e6cc62c6 VS |
16463 | echo "$as_me: program exited with status $ac_status" >&5 |
16464 | echo "$as_me: failed program was:" >&5 | |
16465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16466 | ||
16467 | ( exit $ac_status ) | |
16468 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16469 | fi |
e6cc62c6 | 16470 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16471 | fi |
6f72b082 | 16472 | |
3f345b47 | 16473 | fi |
e6cc62c6 VS |
16474 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16475 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16476 | |
e6cc62c6 | 16477 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16478 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16479 | _ACEOF |
90dd450c | 16480 | |
8284b0c5 | 16481 | |
21d1c967 GD |
16482 | # Check whether --enable-largefile or --disable-largefile was given. |
16483 | if test "${enable_largefile+set}" = set; then | |
16484 | enableval="$enable_largefile" | |
3f345b47 | 16485 | |
e6cc62c6 | 16486 | fi; |
21d1c967 GD |
16487 | if test "$enable_largefile" != no; then |
16488 | wx_largefile=no | |
e6cc62c6 VS |
16489 | |
16490 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16491 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16492 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16494 | else | |
16495 | ||
16496 | cat >conftest.$ac_ext <<_ACEOF | |
16497 | #line $LINENO "configure" | |
16498 | /* confdefs.h. */ | |
16499 | _ACEOF | |
16500 | cat confdefs.h >>conftest.$ac_ext | |
16501 | cat >>conftest.$ac_ext <<_ACEOF | |
16502 | /* end confdefs.h. */ | |
21d1c967 GD |
16503 | #define _FILE_OFFSET_BITS 64 |
16504 | #include <sys/types.h> | |
e6cc62c6 VS |
16505 | int |
16506 | main () | |
16507 | { | |
21d1c967 GD |
16508 | typedef struct { |
16509 | unsigned int field: sizeof(off_t) == 8; | |
16510 | } wxlf; | |
16511 | ||
e6cc62c6 VS |
16512 | ; |
16513 | return 0; | |
16514 | } | |
16515 | _ACEOF | |
16516 | rm -f conftest.$ac_objext | |
16517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16518 | (eval $ac_compile) 2>&5 | |
16519 | ac_status=$? | |
16520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16521 | (exit $ac_status); } && | |
16522 | { ac_try='test -s conftest.$ac_objext' | |
16523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16524 | (eval $ac_try) 2>&5 | |
16525 | ac_status=$? | |
16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16527 | (exit $ac_status); }; }; then | |
21d1c967 | 16528 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16529 | else |
e6cc62c6 VS |
16530 | echo "$as_me: failed program was:" >&5 |
16531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16532 | ||
16533 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16534 | fi |
e6cc62c6 VS |
16535 | rm -f conftest.$ac_objext conftest.$ac_ext |
16536 | ||
a0b9e27f | 16537 | |
e6cc62c6 VS |
16538 | fi |
16539 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16540 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16541 | |
16542 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16543 | wx_largefile=yes | |
e6cc62c6 | 16544 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16545 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16546 | _ACEOF |
21d1c967 GD |
16547 | |
16548 | fi | |
16549 | ||
16550 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16551 | |
16552 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16553 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16554 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16556 | else | |
16557 | ||
16558 | cat >conftest.$ac_ext <<_ACEOF | |
16559 | #line $LINENO "configure" | |
16560 | /* confdefs.h. */ | |
16561 | _ACEOF | |
16562 | cat confdefs.h >>conftest.$ac_ext | |
16563 | cat >>conftest.$ac_ext <<_ACEOF | |
16564 | /* end confdefs.h. */ | |
21d1c967 GD |
16565 | #define _LARGE_FILES 1 |
16566 | #include <sys/types.h> | |
e6cc62c6 VS |
16567 | int |
16568 | main () | |
16569 | { | |
21d1c967 GD |
16570 | typedef struct { |
16571 | unsigned int field: sizeof(off_t) == 8; | |
16572 | } wxlf; | |
16573 | ||
e6cc62c6 VS |
16574 | ; |
16575 | return 0; | |
16576 | } | |
16577 | _ACEOF | |
16578 | rm -f conftest.$ac_objext | |
16579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16580 | (eval $ac_compile) 2>&5 | |
16581 | ac_status=$? | |
16582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16583 | (exit $ac_status); } && | |
16584 | { ac_try='test -s conftest.$ac_objext' | |
16585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16586 | (eval $ac_try) 2>&5 | |
16587 | ac_status=$? | |
16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16589 | (exit $ac_status); }; }; then | |
21d1c967 | 16590 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16591 | else |
e6cc62c6 VS |
16592 | echo "$as_me: failed program was:" >&5 |
16593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16594 | ||
16595 | ac_cv_sys_large_files=no | |
247f5006 | 16596 | fi |
e6cc62c6 | 16597 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16598 | |
e6cc62c6 VS |
16599 | |
16600 | fi | |
16601 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16602 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16603 | |
21d1c967 GD |
16604 | if test "$ac_cv_sys_large_files" != no; then |
16605 | wx_largefile=yes | |
e6cc62c6 | 16606 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16607 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16608 | _ACEOF |
90dd450c | 16609 | |
90dd450c VZ |
16610 | fi |
16611 | ||
90dd450c | 16612 | fi |
90dd450c | 16613 | |
e6cc62c6 VS |
16614 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16615 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16616 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16617 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16618 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16619 | _ACEOF |
90dd450c | 16620 | |
90dd450c | 16621 | fi |
e6cc62c6 VS |
16622 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16623 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16624 | fi |
90dd450c | 16625 | |
8284b0c5 | 16626 | |
f02444d0 | 16627 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16628 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16629 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16630 | else |
e26c13cf | 16631 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16632 | fi |
e26c13cf | 16633 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16634 | fi |
16635 | ||
e6cc62c6 VS |
16636 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16637 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16638 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16640 | else |
21d1c967 GD |
16641 | ac_cv_c_bigendian=unknown |
16642 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16643 | cat >conftest.$ac_ext <<_ACEOF |
16644 | #line $LINENO "configure" | |
16645 | /* confdefs.h. */ | |
16646 | _ACEOF | |
16647 | cat confdefs.h >>conftest.$ac_ext | |
16648 | cat >>conftest.$ac_ext <<_ACEOF | |
16649 | /* end confdefs.h. */ | |
21d1c967 GD |
16650 | #include <sys/types.h> |
16651 | #include <sys/param.h> | |
e6cc62c6 VS |
16652 | int |
16653 | main () | |
16654 | { | |
21d1c967 GD |
16655 | |
16656 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16657 | bogus endian macros | |
16658 | #endif | |
e6cc62c6 VS |
16659 | ; |
16660 | return 0; | |
16661 | } | |
16662 | _ACEOF | |
16663 | rm -f conftest.$ac_objext | |
16664 | if { (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 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16676 | cat >conftest.$ac_ext <<_ACEOF |
16677 | #line $LINENO "configure" | |
16678 | /* confdefs.h. */ | |
16679 | _ACEOF | |
16680 | cat confdefs.h >>conftest.$ac_ext | |
16681 | cat >>conftest.$ac_ext <<_ACEOF | |
16682 | /* end confdefs.h. */ | |
21d1c967 GD |
16683 | #include <sys/types.h> |
16684 | #include <sys/param.h> | |
e6cc62c6 VS |
16685 | int |
16686 | main () | |
16687 | { | |
21d1c967 GD |
16688 | |
16689 | #if BYTE_ORDER != BIG_ENDIAN | |
16690 | not big endian | |
16691 | #endif | |
e6cc62c6 VS |
16692 | ; |
16693 | return 0; | |
16694 | } | |
16695 | _ACEOF | |
16696 | rm -f conftest.$ac_objext | |
16697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16698 | (eval $ac_compile) 2>&5 | |
16699 | ac_status=$? | |
16700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16701 | (exit $ac_status); } && | |
16702 | { ac_try='test -s conftest.$ac_objext' | |
16703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16704 | (eval $ac_try) 2>&5 | |
16705 | ac_status=$? | |
16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16707 | (exit $ac_status); }; }; then | |
21d1c967 | 16708 | ac_cv_c_bigendian=yes |
3f345b47 | 16709 | else |
e6cc62c6 VS |
16710 | echo "$as_me: failed program was:" >&5 |
16711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16712 | ||
16713 | ac_cv_c_bigendian=no | |
3f345b47 | 16714 | fi |
e6cc62c6 | 16715 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16716 | else |
e6cc62c6 VS |
16717 | echo "$as_me: failed program was:" >&5 |
16718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16719 | ||
3f345b47 | 16720 | fi |
e6cc62c6 | 16721 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16722 | if test $ac_cv_c_bigendian = unknown; then |
16723 | if test "$cross_compiling" = yes; then | |
16724 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16725 | else |
e6cc62c6 VS |
16726 | cat >conftest.$ac_ext <<_ACEOF |
16727 | #line $LINENO "configure" | |
16728 | /* confdefs.h. */ | |
16729 | _ACEOF | |
16730 | cat confdefs.h >>conftest.$ac_ext | |
16731 | cat >>conftest.$ac_ext <<_ACEOF | |
16732 | /* end confdefs.h. */ | |
21d1c967 GD |
16733 | main () { |
16734 | /* Are we little or big endian? From Harbison&Steele. */ | |
16735 | union | |
16736 | { | |
16737 | long l; | |
16738 | char c[sizeof (long)]; | |
16739 | } u; | |
16740 | u.l = 1; | |
16741 | exit (u.c[sizeof (long) - 1] == 1); | |
16742 | } | |
e6cc62c6 VS |
16743 | _ACEOF |
16744 | rm -f conftest$ac_exeext | |
16745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16746 | (eval $ac_link) 2>&5 | |
16747 | ac_status=$? | |
16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16749 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16751 | (eval $ac_try) 2>&5 | |
16752 | ac_status=$? | |
16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16754 | (exit $ac_status); }; }; then | |
21d1c967 | 16755 | ac_cv_c_bigendian=no |
3f345b47 | 16756 | else |
e6cc62c6 VS |
16757 | echo "$as_me: program exited with status $ac_status" >&5 |
16758 | echo "$as_me: failed program was:" >&5 | |
16759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16760 | ||
16761 | ( exit $ac_status ) | |
16762 | ac_cv_c_bigendian=yes | |
247f5006 | 16763 | fi |
e6cc62c6 | 16764 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16765 | fi |
3f345b47 | 16766 | fi |
8168de4c | 16767 | fi |
e6cc62c6 VS |
16768 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16769 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16770 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16771 | { 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 |
16772 | echo "$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 |
16773 | fi |
16774 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16775 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16776 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16777 | _ACEOF |
247f5006 VZ |
16778 | |
16779 | fi | |
16780 | ||
16781 | ||
e6cc62c6 VS |
16782 | |
16783 | ac_ext=cc | |
16784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16788 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16789 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16790 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16791 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16793 | else | |
16794 | # Double quotes because CXXCPP needs to be expanded | |
16795 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16796 | do | |
16797 | ac_preproc_ok=false | |
16798 | for ac_cxx_preproc_warn_flag in '' yes | |
16799 | do | |
16800 | # Use a header file that comes with gcc, so configuring glibc | |
16801 | # with a fresh cross-compiler works. | |
16802 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16803 | # <limits.h> exists even on freestanding compilers. | |
16804 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16805 | # not just through cpp. "Syntax error" is here to catch this case. | |
16806 | cat >conftest.$ac_ext <<_ACEOF | |
16807 | #line $LINENO "configure" | |
16808 | /* confdefs.h. */ | |
16809 | _ACEOF | |
16810 | cat confdefs.h >>conftest.$ac_ext | |
16811 | cat >>conftest.$ac_ext <<_ACEOF | |
16812 | /* end confdefs.h. */ | |
16813 | #ifdef __STDC__ | |
16814 | # include <limits.h> | |
16815 | #else | |
16816 | # include <assert.h> | |
16817 | #endif | |
16818 | Syntax error | |
16819 | _ACEOF | |
16820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16822 | ac_status=$? | |
16823 | grep -v '^ *+' conftest.er1 >conftest.err | |
16824 | rm -f conftest.er1 | |
16825 | cat conftest.err >&5 | |
16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); } >/dev/null; then | |
16828 | if test -s conftest.err; then | |
16829 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16830 | else | |
16831 | ac_cpp_err= | |
16832 | fi | |
247f5006 | 16833 | else |
e6cc62c6 VS |
16834 | ac_cpp_err=yes |
16835 | fi | |
16836 | if test -z "$ac_cpp_err"; then | |
16837 | : | |
16838 | else | |
16839 | echo "$as_me: failed program was:" >&5 | |
16840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16841 | ||
16842 | # Broken: fails on valid input. | |
16843 | continue | |
16844 | fi | |
16845 | rm -f conftest.err conftest.$ac_ext | |
16846 | ||
16847 | # OK, works on sane cases. Now check whether non-existent headers | |
16848 | # can be detected and how. | |
16849 | cat >conftest.$ac_ext <<_ACEOF | |
16850 | #line $LINENO "configure" | |
16851 | /* confdefs.h. */ | |
16852 | _ACEOF | |
16853 | cat confdefs.h >>conftest.$ac_ext | |
16854 | cat >>conftest.$ac_ext <<_ACEOF | |
16855 | /* end confdefs.h. */ | |
16856 | #include <ac_nonexistent.h> | |
16857 | _ACEOF | |
16858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16860 | ac_status=$? | |
16861 | grep -v '^ *+' conftest.er1 >conftest.err | |
16862 | rm -f conftest.er1 | |
16863 | cat conftest.err >&5 | |
16864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16865 | (exit $ac_status); } >/dev/null; then | |
16866 | if test -s conftest.err; then | |
16867 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16868 | else | |
16869 | ac_cpp_err= | |
16870 | fi | |
16871 | else | |
16872 | ac_cpp_err=yes | |
16873 | fi | |
16874 | if test -z "$ac_cpp_err"; then | |
16875 | # Broken: success on invalid input. | |
16876 | continue | |
16877 | else | |
16878 | echo "$as_me: failed program was:" >&5 | |
16879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16880 | ||
16881 | # Passes both tests. | |
16882 | ac_preproc_ok=: | |
16883 | break | |
16884 | fi | |
16885 | rm -f conftest.err conftest.$ac_ext | |
16886 | ||
16887 | done | |
16888 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16889 | rm -f conftest.err conftest.$ac_ext | |
16890 | if $ac_preproc_ok; then | |
16891 | break | |
16892 | fi | |
16893 | ||
16894 | done | |
16895 | ac_cv_prog_CXXCPP=$CXXCPP | |
16896 | ||
16897 | fi | |
16898 | CXXCPP=$ac_cv_prog_CXXCPP | |
16899 | else | |
16900 | ac_cv_prog_CXXCPP=$CXXCPP | |
16901 | fi | |
16902 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
16903 | echo "${ECHO_T}$CXXCPP" >&6 | |
16904 | ac_preproc_ok=false | |
16905 | for ac_cxx_preproc_warn_flag in '' yes | |
16906 | do | |
16907 | # Use a header file that comes with gcc, so configuring glibc | |
16908 | # with a fresh cross-compiler works. | |
16909 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16910 | # <limits.h> exists even on freestanding compilers. | |
16911 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16912 | # not just through cpp. "Syntax error" is here to catch this case. | |
16913 | cat >conftest.$ac_ext <<_ACEOF | |
16914 | #line $LINENO "configure" | |
16915 | /* confdefs.h. */ | |
16916 | _ACEOF | |
16917 | cat confdefs.h >>conftest.$ac_ext | |
16918 | cat >>conftest.$ac_ext <<_ACEOF | |
16919 | /* end confdefs.h. */ | |
16920 | #ifdef __STDC__ | |
16921 | # include <limits.h> | |
16922 | #else | |
16923 | # include <assert.h> | |
16924 | #endif | |
16925 | Syntax error | |
16926 | _ACEOF | |
16927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16929 | ac_status=$? | |
16930 | grep -v '^ *+' conftest.er1 >conftest.err | |
16931 | rm -f conftest.er1 | |
16932 | cat conftest.err >&5 | |
16933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16934 | (exit $ac_status); } >/dev/null; then | |
16935 | if test -s conftest.err; then | |
16936 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16937 | else | |
16938 | ac_cpp_err= | |
16939 | fi | |
16940 | else | |
16941 | ac_cpp_err=yes | |
16942 | fi | |
16943 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 16944 | : |
698dcdb6 | 16945 | else |
e6cc62c6 VS |
16946 | echo "$as_me: failed program was:" >&5 |
16947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16948 | ||
16949 | # Broken: fails on valid input. | |
16950 | continue | |
16951 | fi | |
16952 | rm -f conftest.err conftest.$ac_ext | |
16953 | ||
16954 | # OK, works on sane cases. Now check whether non-existent headers | |
16955 | # can be detected and how. | |
16956 | cat >conftest.$ac_ext <<_ACEOF | |
16957 | #line $LINENO "configure" | |
16958 | /* confdefs.h. */ | |
16959 | _ACEOF | |
16960 | cat confdefs.h >>conftest.$ac_ext | |
16961 | cat >>conftest.$ac_ext <<_ACEOF | |
16962 | /* end confdefs.h. */ | |
16963 | #include <ac_nonexistent.h> | |
16964 | _ACEOF | |
16965 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16966 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16967 | ac_status=$? | |
16968 | grep -v '^ *+' conftest.er1 >conftest.err | |
16969 | rm -f conftest.er1 | |
16970 | cat conftest.err >&5 | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); } >/dev/null; then | |
16973 | if test -s conftest.err; then | |
16974 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16975 | else | |
16976 | ac_cpp_err= | |
16977 | fi | |
16978 | else | |
16979 | ac_cpp_err=yes | |
247f5006 | 16980 | fi |
e6cc62c6 VS |
16981 | if test -z "$ac_cpp_err"; then |
16982 | # Broken: success on invalid input. | |
16983 | continue | |
16984 | else | |
16985 | echo "$as_me: failed program was:" >&5 | |
16986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16987 | ||
16988 | # Passes both tests. | |
16989 | ac_preproc_ok=: | |
16990 | break | |
328a083c | 16991 | fi |
e6cc62c6 VS |
16992 | rm -f conftest.err conftest.$ac_ext |
16993 | ||
16994 | done | |
16995 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16996 | rm -f conftest.err conftest.$ac_ext | |
16997 | if $ac_preproc_ok; then | |
16998 | : | |
16999 | else | |
17000 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17001 | See \`config.log' for more details." >&5 | |
17002 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17003 | See \`config.log' for more details." >&2;} | |
17004 | { (exit 1); exit 1; }; } | |
90dd450c | 17005 | fi |
e6cc62c6 VS |
17006 | |
17007 | ac_ext=cc | |
17008 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17009 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17010 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17011 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17012 | ||
1e6feb95 | 17013 | |
1725144d | 17014 | |
21d1c967 | 17015 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17016 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17017 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17018 | _ACEOF |
ab9b9eab | 17019 | |
21d1c967 | 17020 | else |
e6cc62c6 VS |
17021 | |
17022 | ||
17023 | ac_ext=cc | |
5c6fa7d2 | 17024 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17025 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17026 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17027 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17028 | ||
52127426 | 17029 | |
247f5006 | 17030 | |
e6cc62c6 | 17031 | for ac_header in iostream |
21d1c967 | 17032 | do |
e6cc62c6 VS |
17033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17039 | fi | |
17040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17042 | else | |
17043 | # Is the header compilable? | |
17044 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17046 | cat >conftest.$ac_ext <<_ACEOF | |
17047 | #line $LINENO "configure" | |
17048 | /* confdefs.h. */ | |
17049 | _ACEOF | |
17050 | cat confdefs.h >>conftest.$ac_ext | |
17051 | cat >>conftest.$ac_ext <<_ACEOF | |
17052 | /* end confdefs.h. */ | |
17053 | $ac_includes_default | |
17054 | #include <$ac_header> | |
17055 | _ACEOF | |
17056 | rm -f conftest.$ac_objext | |
17057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17058 | (eval $ac_compile) 2>&5 | |
17059 | ac_status=$? | |
17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17061 | (exit $ac_status); } && | |
17062 | { ac_try='test -s conftest.$ac_objext' | |
17063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17064 | (eval $ac_try) 2>&5 | |
17065 | ac_status=$? | |
17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17067 | (exit $ac_status); }; }; then | |
17068 | ac_header_compiler=yes | |
17069 | else | |
17070 | echo "$as_me: failed program was:" >&5 | |
17071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17072 | ||
17073 | ac_header_compiler=no | |
17074 | fi | |
17075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17078 | ||
17079 | # Is the header present? | |
17080 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17082 | cat >conftest.$ac_ext <<_ACEOF | |
17083 | #line $LINENO "configure" | |
17084 | /* confdefs.h. */ | |
17085 | _ACEOF | |
17086 | cat confdefs.h >>conftest.$ac_ext | |
17087 | cat >>conftest.$ac_ext <<_ACEOF | |
17088 | /* end confdefs.h. */ | |
17089 | #include <$ac_header> | |
17090 | _ACEOF | |
17091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17093 | ac_status=$? | |
17094 | grep -v '^ *+' conftest.er1 >conftest.err | |
17095 | rm -f conftest.er1 | |
17096 | cat conftest.err >&5 | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); } >/dev/null; then | |
17099 | if test -s conftest.err; then | |
17100 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17101 | else | |
17102 | ac_cpp_err= | |
17103 | fi | |
17104 | else | |
17105 | ac_cpp_err=yes | |
17106 | fi | |
17107 | if test -z "$ac_cpp_err"; then | |
17108 | ac_header_preproc=yes | |
17109 | else | |
17110 | echo "$as_me: failed program was:" >&5 | |
17111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17112 | ||
17113 | ac_header_preproc=no | |
17114 | fi | |
17115 | rm -f conftest.err conftest.$ac_ext | |
17116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17118 | ||
17119 | # So? What about this header? | |
17120 | case $ac_header_compiler:$ac_header_preproc in | |
17121 | yes:no ) | |
17122 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17123 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17125 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17126 | ( | |
17127 | cat <<\_ASBOX | |
17128 | ## ------------------------------------ ## | |
17129 | ## Report this to bug-autoconf@gnu.org. ## | |
17130 | ## ------------------------------------ ## | |
17131 | _ASBOX | |
17132 | ) | | |
17133 | sed "s/^/$as_me: WARNING: /" >&2 | |
17134 | ;; | |
17135 | no:yes ) | |
17136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17142 | ( | |
17143 | cat <<\_ASBOX | |
17144 | ## ------------------------------------ ## | |
17145 | ## Report this to bug-autoconf@gnu.org. ## | |
17146 | ## ------------------------------------ ## | |
17147 | _ASBOX | |
17148 | ) | | |
17149 | sed "s/^/$as_me: WARNING: /" >&2 | |
17150 | ;; | |
17151 | esac | |
17152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17156 | else | |
17157 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17158 | fi |
e6cc62c6 VS |
17159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17161 | ||
90dd450c | 17162 | fi |
e6cc62c6 VS |
17163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17164 | cat >>confdefs.h <<_ACEOF | |
17165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17166 | _ACEOF | |
17167 | ||
90dd450c | 17168 | fi |
e6cc62c6 | 17169 | |
21d1c967 | 17170 | done |
10f2d63a | 17171 | |
8284b0c5 | 17172 | |
21d1c967 GD |
17173 | if test "$ac_cv_header_iostream" = "yes" ; then |
17174 | : | |
17175 | else | |
e6cc62c6 | 17176 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17177 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17178 | _ACEOF |
788deba1 | 17179 | |
90dd450c | 17180 | fi |
ab9b9eab | 17181 | |
21d1c967 | 17182 | ac_ext=c |
21d1c967 | 17183 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17187 | |
21d1c967 | 17188 | fi |
ab9b9eab | 17189 | |
52127426 | 17190 | |
8284b0c5 | 17191 | |
e6cc62c6 VS |
17192 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17193 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17194 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17196 | else |
e6cc62c6 VS |
17197 | |
17198 | ||
17199 | ||
17200 | ac_ext=cc | |
5c6fa7d2 | 17201 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17205 | |
8284b0c5 | 17206 | |
e6cc62c6 VS |
17207 | cat >conftest.$ac_ext <<_ACEOF |
17208 | #line $LINENO "configure" | |
17209 | /* confdefs.h. */ | |
17210 | _ACEOF | |
17211 | cat confdefs.h >>conftest.$ac_ext | |
17212 | cat >>conftest.$ac_ext <<_ACEOF | |
17213 | /* end confdefs.h. */ | |
21d1c967 | 17214 | |
e6cc62c6 VS |
17215 | |
17216 | int | |
17217 | main () | |
17218 | { | |
21d1c967 GD |
17219 | |
17220 | bool b = true; | |
17221 | ||
17222 | return 0; | |
e6cc62c6 VS |
17223 | |
17224 | ; | |
17225 | return 0; | |
17226 | } | |
17227 | _ACEOF | |
17228 | rm -f conftest.$ac_objext | |
17229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17230 | (eval $ac_compile) 2>&5 | |
17231 | ac_status=$? | |
17232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17233 | (exit $ac_status); } && | |
17234 | { ac_try='test -s conftest.$ac_objext' | |
17235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17236 | (eval $ac_try) 2>&5 | |
17237 | ac_status=$? | |
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); }; }; then | |
17240 | ||
21d1c967 | 17241 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17242 | |
698dcdb6 | 17243 | else |
e6cc62c6 VS |
17244 | echo "$as_me: failed program was:" >&5 |
17245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17246 | ||
17247 | ||
21d1c967 | 17248 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17249 | |
17250 | ||
698dcdb6 | 17251 | fi |
e6cc62c6 | 17252 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17253 | |
17254 | ac_ext=c | |
21d1c967 | 17255 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17259 | |
a0b9e27f | 17260 | |
e6cc62c6 VS |
17261 | fi |
17262 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17263 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17264 | |
17265 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17266 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17267 | #define HAVE_BOOL 1 |
e6cc62c6 | 17268 | _ACEOF |
ab9b9eab | 17269 | |
21d1c967 GD |
17270 | fi |
17271 | ||
52127426 | 17272 | |
8284b0c5 | 17273 | |
e6cc62c6 VS |
17274 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17275 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17276 | if test "${wx_cv_explicit+set}" = set; then | |
17277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17278 | else |
e6cc62c6 VS |
17279 | |
17280 | ||
17281 | ||
17282 | ac_ext=cc | |
5c6fa7d2 | 17283 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17287 | |
8284b0c5 | 17288 | |
e6cc62c6 VS |
17289 | cat >conftest.$ac_ext <<_ACEOF |
17290 | #line $LINENO "configure" | |
17291 | /* confdefs.h. */ | |
17292 | _ACEOF | |
17293 | cat confdefs.h >>conftest.$ac_ext | |
17294 | cat >>conftest.$ac_ext <<_ACEOF | |
17295 | /* end confdefs.h. */ | |
986ecc86 VZ |
17296 | |
17297 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17298 | |
17299 | int | |
17300 | main () | |
17301 | { | |
986ecc86 VZ |
17302 | |
17303 | return 0; | |
e6cc62c6 VS |
17304 | |
17305 | ; | |
17306 | return 0; | |
17307 | } | |
17308 | _ACEOF | |
17309 | rm -f conftest.$ac_objext | |
17310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17311 | (eval $ac_compile) 2>&5 | |
17312 | ac_status=$? | |
17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17314 | (exit $ac_status); } && | |
17315 | { ac_try='test -s conftest.$ac_objext' | |
17316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17317 | (eval $ac_try) 2>&5 | |
17318 | ac_status=$? | |
17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17320 | (exit $ac_status); }; }; then | |
17321 | ||
17322 | cat >conftest.$ac_ext <<_ACEOF | |
17323 | #line $LINENO "configure" | |
17324 | /* confdefs.h. */ | |
17325 | _ACEOF | |
17326 | cat confdefs.h >>conftest.$ac_ext | |
17327 | cat >>conftest.$ac_ext <<_ACEOF | |
17328 | /* end confdefs.h. */ | |
986ecc86 VZ |
17329 | |
17330 | class Foo { public: explicit Foo(int) {} }; | |
17331 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17332 | |
17333 | int | |
17334 | main () | |
17335 | { | |
986ecc86 VZ |
17336 | |
17337 | TakeFoo(17); | |
17338 | return 0; | |
e6cc62c6 VS |
17339 | |
17340 | ; | |
17341 | return 0; | |
17342 | } | |
17343 | _ACEOF | |
17344 | rm -f conftest.$ac_objext | |
17345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17346 | (eval $ac_compile) 2>&5 | |
17347 | ac_status=$? | |
17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17349 | (exit $ac_status); } && | |
17350 | { ac_try='test -s conftest.$ac_objext' | |
17351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17352 | (eval $ac_try) 2>&5 | |
17353 | ac_status=$? | |
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17355 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17356 | wx_cv_explicit=no |
17357 | else | |
e6cc62c6 VS |
17358 | echo "$as_me: failed program was:" >&5 |
17359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17360 | ||
17361 | wx_cv_explicit=yes | |
17362 | ||
986ecc86 | 17363 | fi |
e6cc62c6 VS |
17364 | rm -f conftest.$ac_objext conftest.$ac_ext |
17365 | ||
986ecc86 | 17366 | else |
e6cc62c6 VS |
17367 | echo "$as_me: failed program was:" >&5 |
17368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17369 | ||
17370 | wx_cv_explicit=no | |
17371 | ||
986ecc86 | 17372 | fi |
e6cc62c6 | 17373 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17374 | |
17375 | ac_ext=c | |
986ecc86 | 17376 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17380 | |
a0b9e27f | 17381 | |
e6cc62c6 VS |
17382 | fi |
17383 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17384 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17385 | |
17386 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17387 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17388 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17389 | _ACEOF |
986ecc86 VZ |
17390 | |
17391 | fi | |
17392 | ||
8284b0c5 | 17393 | |
e6cc62c6 VS |
17394 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17395 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17396 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17398 | else |
521196a2 | 17399 | |
521196a2 | 17400 | |
e6cc62c6 VS |
17401 | ac_ext=cc |
17402 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17403 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17404 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17405 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17406 | ||
17407 | cat >conftest.$ac_ext <<_ACEOF | |
17408 | #line $LINENO "configure" | |
17409 | /* confdefs.h. */ | |
17410 | _ACEOF | |
17411 | cat confdefs.h >>conftest.$ac_ext | |
17412 | cat >>conftest.$ac_ext <<_ACEOF | |
17413 | /* end confdefs.h. */ | |
17414 | ||
17415 | int | |
17416 | main () | |
17417 | { | |
521196a2 | 17418 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17419 | ; |
17420 | return 0; | |
17421 | } | |
17422 | _ACEOF | |
17423 | rm -f conftest.$ac_objext | |
17424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17425 | (eval $ac_compile) 2>&5 | |
17426 | ac_status=$? | |
17427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17428 | (exit $ac_status); } && | |
17429 | { ac_try='test -s conftest.$ac_objext' | |
17430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17431 | (eval $ac_try) 2>&5 | |
17432 | ac_status=$? | |
17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17434 | (exit $ac_status); }; }; then | |
521196a2 MB |
17435 | ac_cv_cxx_const_cast=yes |
17436 | else | |
e6cc62c6 VS |
17437 | echo "$as_me: failed program was:" >&5 |
17438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17439 | ||
17440 | ac_cv_cxx_const_cast=no | |
521196a2 | 17441 | fi |
e6cc62c6 | 17442 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17443 | ac_ext=c |
521196a2 | 17444 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17448 | |
17449 | ||
17450 | fi | |
e6cc62c6 VS |
17451 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17452 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17453 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17454 | |
17455 | cat >>confdefs.h <<\_ACEOF | |
17456 | #define HAVE_CONST_CAST | |
17457 | _ACEOF | |
521196a2 MB |
17458 | |
17459 | fi | |
17460 | ||
17461 | ||
e87b7833 MB |
17462 | if test "$wxUSE_STL" = "yes"; then |
17463 | ac_ext=cc | |
17464 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17465 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17466 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17467 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17468 | ||
17469 | ||
17470 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17471 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17472 | cat >conftest.$ac_ext <<_ACEOF | |
17473 | #line $LINENO "configure" | |
17474 | /* confdefs.h. */ | |
17475 | _ACEOF | |
17476 | cat confdefs.h >>conftest.$ac_ext | |
17477 | cat >>conftest.$ac_ext <<_ACEOF | |
17478 | /* end confdefs.h. */ | |
17479 | #include <string> | |
17480 | #include <functional> | |
17481 | #include <algorithm> | |
17482 | #include <vector> | |
17483 | #include <list> | |
17484 | int | |
17485 | main () | |
17486 | { | |
17487 | std::vector<int> moo; | |
17488 | std::list<int> foo; | |
17489 | std::vector<int>::iterator it = | |
17490 | std::find_if(moo.begin(), moo.end(), | |
17491 | std::bind2nd(std::less<int>(), 3)); | |
17492 | ; | |
17493 | return 0; | |
17494 | } | |
17495 | _ACEOF | |
17496 | rm -f conftest.$ac_objext | |
17497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17498 | (eval $ac_compile) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); } && | |
17502 | { ac_try='test -s conftest.$ac_objext' | |
17503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17504 | (eval $ac_try) 2>&5 | |
17505 | ac_status=$? | |
17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17507 | (exit $ac_status); }; }; then | |
17508 | echo "$as_me:$LINENO: result: yes" >&5 | |
17509 | echo "${ECHO_T}yes" >&6 | |
17510 | else | |
17511 | echo "$as_me: failed program was:" >&5 | |
17512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17513 | ||
17514 | echo "$as_me:$LINENO: result: no" >&5 | |
17515 | echo "${ECHO_T}no" >&6 | |
17516 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17517 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17518 | { (exit 1); exit 1; }; } | |
17519 | fi | |
17520 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17521 | ||
17522 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17523 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17524 | cat >conftest.$ac_ext <<_ACEOF | |
17525 | #line $LINENO "configure" | |
17526 | /* confdefs.h. */ | |
17527 | _ACEOF | |
17528 | cat confdefs.h >>conftest.$ac_ext | |
17529 | cat >>conftest.$ac_ext <<_ACEOF | |
17530 | /* end confdefs.h. */ | |
17531 | #include <string> | |
17532 | int | |
17533 | main () | |
17534 | { | |
17535 | std::wstring foo; | |
17536 | ; | |
17537 | return 0; | |
17538 | } | |
17539 | _ACEOF | |
17540 | rm -f conftest.$ac_objext | |
17541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17542 | (eval $ac_compile) 2>&5 | |
17543 | ac_status=$? | |
17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17545 | (exit $ac_status); } && | |
17546 | { ac_try='test -s conftest.$ac_objext' | |
17547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); }; }; then | |
17552 | echo "$as_me:$LINENO: result: yes" >&5 | |
17553 | echo "${ECHO_T}yes" >&6 | |
17554 | cat >>confdefs.h <<\_ACEOF | |
17555 | #define HAVE_STD_WSTRING 1 | |
17556 | _ACEOF | |
17557 | ||
17558 | else | |
17559 | echo "$as_me: failed program was:" >&5 | |
17560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17561 | ||
17562 | echo "$as_me:$LINENO: result: no" >&5 | |
17563 | echo "${ECHO_T}no" >&6 | |
17564 | fi | |
17565 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17566 | ||
17567 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17568 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17569 | cat >conftest.$ac_ext <<_ACEOF | |
17570 | #line $LINENO "configure" | |
17571 | /* confdefs.h. */ | |
17572 | _ACEOF | |
17573 | cat confdefs.h >>conftest.$ac_ext | |
17574 | cat >>conftest.$ac_ext <<_ACEOF | |
17575 | /* end confdefs.h. */ | |
17576 | #include <string> | |
17577 | int | |
17578 | main () | |
17579 | { | |
17580 | std::string foo, bar; | |
17581 | foo.compare(bar); | |
17582 | foo.compare(1, 1, bar); | |
17583 | foo.compare(1, 1, bar, 1, 1); | |
17584 | foo.compare(""); | |
17585 | foo.compare(1, 1, ""); | |
17586 | foo.compare(1, 1, "", 2); | |
17587 | ; | |
17588 | return 0; | |
17589 | } | |
17590 | _ACEOF | |
17591 | rm -f conftest.$ac_objext | |
17592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17593 | (eval $ac_compile) 2>&5 | |
17594 | ac_status=$? | |
17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17596 | (exit $ac_status); } && | |
17597 | { ac_try='test -s conftest.$ac_objext' | |
17598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17599 | (eval $ac_try) 2>&5 | |
17600 | ac_status=$? | |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17602 | (exit $ac_status); }; }; then | |
17603 | echo "$as_me:$LINENO: result: yes" >&5 | |
17604 | echo "${ECHO_T}yes" >&6 | |
17605 | cat >>confdefs.h <<\_ACEOF | |
17606 | #define HAVE_STD_STRING_COMPARE 1 | |
17607 | _ACEOF | |
17608 | ||
17609 | else | |
17610 | echo "$as_me: failed program was:" >&5 | |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17612 | ||
17613 | echo "$as_me:$LINENO: result: no" >&5 | |
17614 | echo "${ECHO_T}no" >&6 | |
17615 | fi | |
17616 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17617 | ||
17618 | ac_ext=c | |
17619 | ac_cpp='$CPP $CPPFLAGS' | |
17620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17623 | ||
17624 | fi | |
17625 | ||
8284b0c5 | 17626 | |
21d1c967 GD |
17627 | SEARCH_INCLUDE="\ |
17628 | /usr/local/include \ | |
17629 | \ | |
17630 | /usr/Motif-1.2/include \ | |
17631 | /usr/Motif-2.1/include \ | |
17632 | \ | |
17633 | /usr/include/Motif1.2 \ | |
17634 | /opt/xpm/include/X11 \ | |
17635 | /opt/GBxpm/include/ \ | |
17636 | /opt/GBxpm/X11/include/ \ | |
17637 | \ | |
17638 | /usr/Motif1.2/include \ | |
17639 | /usr/dt/include \ | |
17640 | /usr/openwin/include \ | |
17641 | \ | |
17642 | /usr/include/Xm \ | |
17643 | \ | |
17644 | /usr/X11R6/include \ | |
17645 | /usr/X11R6.4/include \ | |
17646 | /usr/X11R5/include \ | |
17647 | /usr/X11R4/include \ | |
17648 | \ | |
17649 | /usr/include/X11R6 \ | |
17650 | /usr/include/X11R5 \ | |
17651 | /usr/include/X11R4 \ | |
17652 | \ | |
17653 | /usr/local/X11R6/include \ | |
17654 | /usr/local/X11R5/include \ | |
17655 | /usr/local/X11R4/include \ | |
17656 | \ | |
17657 | /usr/local/include/X11R6 \ | |
17658 | /usr/local/include/X11R5 \ | |
17659 | /usr/local/include/X11R4 \ | |
17660 | \ | |
17661 | /usr/X11/include \ | |
17662 | /usr/include/X11 \ | |
17663 | /usr/local/X11/include \ | |
17664 | /usr/local/include/X11 \ | |
17665 | \ | |
17666 | /usr/X386/include \ | |
17667 | /usr/x386/include \ | |
17668 | /usr/XFree86/include/X11 \ | |
17669 | \ | |
17670 | X:/XFree86/include \ | |
17671 | X:/XFree86/include/X11 \ | |
17672 | \ | |
17673 | /usr/include/gtk \ | |
17674 | /usr/local/include/gtk \ | |
17675 | /usr/include/glib \ | |
17676 | /usr/local/include/glib \ | |
17677 | \ | |
17678 | /usr/include/qt \ | |
17679 | /usr/local/include/qt \ | |
17680 | \ | |
17681 | /usr/include/windows \ | |
17682 | /usr/include/wine \ | |
17683 | /usr/local/include/wine \ | |
17684 | \ | |
17685 | /usr/unsupported/include \ | |
17686 | /usr/athena/include \ | |
17687 | /usr/local/x11r5/include \ | |
17688 | /usr/lpp/Xamples/include \ | |
17689 | \ | |
2b5f62a0 | 17690 | /usr/openwin/share/include" |
21d1c967 GD |
17691 | |
17692 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17693 | ||
8284b0c5 | 17694 | |
e6cc62c6 | 17695 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17696 | # This file is a shell script that caches the results of configure |
17697 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17698 | # scripts and configure runs, see configure's option --config-cache. |
17699 | # It is not useful on other systems. If it contains results you don't | |
17700 | # want to keep, you may remove or edit it. | |
21d1c967 | 17701 | # |
e6cc62c6 VS |
17702 | # config.status only pays attention to the cache file if you give it |
17703 | # the --recheck option to rerun configure. | |
21d1c967 | 17704 | # |
e6cc62c6 VS |
17705 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17706 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17707 | # following values. | |
17708 | ||
17709 | _ACEOF | |
17710 | ||
21d1c967 GD |
17711 | # The following way of writing the cache mishandles newlines in values, |
17712 | # but we know of no workaround that is simple, portable, and efficient. | |
17713 | # So, don't put newlines in cache variables' values. | |
17714 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17715 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17716 | { |
17717 | (set) 2>&1 | | |
17718 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17719 | *ac_space=\ *) | |
17720 | # `set' does not quote correctly, so add quotes (double-quote | |
17721 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17722 | sed -n \ | |
17723 | "s/'/'\\\\''/g; | |
17724 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17725 | ;; | |
17726 | *) | |
17727 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17728 | sed -n \ | |
17729 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17730 | ;; | |
17731 | esac; | |
17732 | } | | |
17733 | sed ' | |
17734 | t clear | |
17735 | : clear | |
17736 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17737 | t end | |
17738 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17739 | : end' >>confcache | |
17740 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17741 | if test -w $cache_file; then |
e6cc62c6 VS |
17742 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17743 | cat confcache >$cache_file | |
21d1c967 GD |
17744 | else |
17745 | echo "not updating unwritable cache $cache_file" | |
17746 | fi | |
ab9b9eab | 17747 | fi |
21d1c967 | 17748 | rm -f confcache |
ab9b9eab | 17749 | |
fe0895cf | 17750 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17751 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17752 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17753 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17755 | else | |
17756 | ||
17757 | cat >conftest.$ac_ext <<_ACEOF | |
17758 | #line $LINENO "configure" | |
17759 | /* confdefs.h. */ | |
17760 | _ACEOF | |
17761 | cat confdefs.h >>conftest.$ac_ext | |
17762 | cat >>conftest.$ac_ext <<_ACEOF | |
17763 | /* end confdefs.h. */ | |
21d1c967 | 17764 | #include <features.h> |
e6cc62c6 VS |
17765 | int |
17766 | main () | |
17767 | { | |
ab9b9eab | 17768 | |
21d1c967 GD |
17769 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17770 | #error not glibc2.1 | |
17771 | #endif | |
e6cc62c6 VS |
17772 | |
17773 | ; | |
17774 | return 0; | |
17775 | } | |
17776 | _ACEOF | |
17777 | rm -f conftest.$ac_objext | |
17778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17779 | (eval $ac_compile) 2>&5 | |
17780 | ac_status=$? | |
17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17782 | (exit $ac_status); } && | |
17783 | { ac_try='test -s conftest.$ac_objext' | |
17784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17785 | (eval $ac_try) 2>&5 | |
17786 | ac_status=$? | |
17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17788 | (exit $ac_status); }; }; then | |
17789 | ||
21d1c967 | 17790 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17791 | |
698dcdb6 | 17792 | else |
e6cc62c6 VS |
17793 | echo "$as_me: failed program was:" >&5 |
17794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17795 | ||
17796 | ||
21d1c967 | 17797 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17798 | |
17799 | ||
247f5006 | 17800 | fi |
e6cc62c6 | 17801 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17802 | |
e6cc62c6 VS |
17803 | fi |
17804 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17805 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17806 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17807 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17808 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17809 | _ACEOF |
1e487827 | 17810 | |
90dd450c | 17811 | fi |
ab9b9eab VZ |
17812 | fi |
17813 | ||
5c0a20c3 VZ |
17814 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17815 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17816 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17817 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17818 | _ACEOF |
5c0a20c3 VZ |
17819 | |
17820 | fi | |
17821 | fi | |
17822 | ||
8284b0c5 MB |
17823 | |
17824 | ||
21d1c967 GD |
17825 | REGEX_INCLUDE= |
17826 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17827 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17828 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17829 | _ACEOF |
698dcdb6 | 17830 | |
8284b0c5 | 17831 | |
21d1c967 | 17832 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17833 | if test "${ac_cv_header_regex_h+set}" = set; then |
17834 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17835 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17836 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17838 | fi | |
17839 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17840 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17841 | else | |
17842 | # Is the header compilable? | |
17843 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17844 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17845 | cat >conftest.$ac_ext <<_ACEOF | |
17846 | #line $LINENO "configure" | |
17847 | /* confdefs.h. */ | |
17848 | _ACEOF | |
17849 | cat confdefs.h >>conftest.$ac_ext | |
17850 | cat >>conftest.$ac_ext <<_ACEOF | |
17851 | /* end confdefs.h. */ | |
17852 | $ac_includes_default | |
247f5006 | 17853 | #include <regex.h> |
e6cc62c6 VS |
17854 | _ACEOF |
17855 | rm -f conftest.$ac_objext | |
17856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17857 | (eval $ac_compile) 2>&5 | |
17858 | ac_status=$? | |
17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17860 | (exit $ac_status); } && | |
17861 | { ac_try='test -s conftest.$ac_objext' | |
17862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17863 | (eval $ac_try) 2>&5 | |
17864 | ac_status=$? | |
17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17866 | (exit $ac_status); }; }; then | |
17867 | ac_header_compiler=yes | |
17868 | else | |
17869 | echo "$as_me: failed program was:" >&5 | |
17870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17871 | ||
17872 | ac_header_compiler=no | |
17873 | fi | |
17874 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17875 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17876 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17877 | ||
17878 | # Is the header present? | |
17879 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17880 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17881 | cat >conftest.$ac_ext <<_ACEOF | |
17882 | #line $LINENO "configure" | |
17883 | /* confdefs.h. */ | |
17884 | _ACEOF | |
17885 | cat confdefs.h >>conftest.$ac_ext | |
17886 | cat >>conftest.$ac_ext <<_ACEOF | |
17887 | /* end confdefs.h. */ | |
17888 | #include <regex.h> | |
17889 | _ACEOF | |
17890 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17892 | ac_status=$? | |
17893 | grep -v '^ *+' conftest.er1 >conftest.err | |
17894 | rm -f conftest.er1 | |
17895 | cat conftest.err >&5 | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); } >/dev/null; then | |
17898 | if test -s conftest.err; then | |
17899 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17900 | else | |
17901 | ac_cpp_err= | |
17902 | fi | |
17903 | else | |
17904 | ac_cpp_err=yes | |
17905 | fi | |
17906 | if test -z "$ac_cpp_err"; then | |
17907 | ac_header_preproc=yes | |
17908 | else | |
17909 | echo "$as_me: failed program was:" >&5 | |
17910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17911 | ||
17912 | ac_header_preproc=no | |
17913 | fi | |
17914 | rm -f conftest.err conftest.$ac_ext | |
17915 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17916 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17917 | ||
17918 | # So? What about this header? | |
17919 | case $ac_header_compiler:$ac_header_preproc in | |
17920 | yes:no ) | |
17921 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17922 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17923 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17924 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17925 | ( | |
17926 | cat <<\_ASBOX | |
17927 | ## ------------------------------------ ## | |
17928 | ## Report this to bug-autoconf@gnu.org. ## | |
17929 | ## ------------------------------------ ## | |
17930 | _ASBOX | |
17931 | ) | | |
17932 | sed "s/^/$as_me: WARNING: /" >&2 | |
17933 | ;; | |
17934 | no:yes ) | |
17935 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17936 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17937 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17938 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17939 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17940 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17941 | ( | |
17942 | cat <<\_ASBOX | |
17943 | ## ------------------------------------ ## | |
17944 | ## Report this to bug-autoconf@gnu.org. ## | |
17945 | ## ------------------------------------ ## | |
17946 | _ASBOX | |
17947 | ) | | |
17948 | sed "s/^/$as_me: WARNING: /" >&2 | |
17949 | ;; | |
17950 | esac | |
17951 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17952 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17953 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17955 | else | |
17956 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 17957 | fi |
e6cc62c6 VS |
17958 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
17959 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17960 | ||
698dcdb6 | 17961 | fi |
e6cc62c6 VS |
17962 | if test $ac_cv_header_regex_h = yes; then |
17963 | ||
17964 | for ac_func in regcomp | |
21d1c967 | 17965 | do |
e6cc62c6 VS |
17966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17967 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17969 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17971 | else | |
17972 | cat >conftest.$ac_ext <<_ACEOF | |
17973 | #line $LINENO "configure" | |
17974 | /* confdefs.h. */ | |
17975 | _ACEOF | |
17976 | cat confdefs.h >>conftest.$ac_ext | |
17977 | cat >>conftest.$ac_ext <<_ACEOF | |
17978 | /* end confdefs.h. */ | |
a0b9e27f | 17979 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
17980 | which can conflict with char $ac_func (); below. |
17981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17982 | <limits.h> exists even on freestanding compilers. */ | |
17983 | #ifdef __STDC__ | |
17984 | # include <limits.h> | |
17985 | #else | |
17986 | # include <assert.h> | |
17987 | #endif | |
21d1c967 | 17988 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
17989 | #ifdef __cplusplus |
17990 | extern "C" | |
17991 | { | |
17992 | #endif | |
21d1c967 | 17993 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
17994 | builtin and then its argument prototype would still apply. */ |
17995 | char $ac_func (); | |
21d1c967 GD |
17996 | /* The GNU C library defines this for functions which it implements |
17997 | to always fail with ENOSYS. Some functions are actually named | |
17998 | something starting with __ and the normal name is an alias. */ | |
17999 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18000 | choke me | |
18001 | #else | |
e6cc62c6 VS |
18002 | char (*f) () = $ac_func; |
18003 | #endif | |
18004 | #ifdef __cplusplus | |
18005 | } | |
21d1c967 | 18006 | #endif |
90dd450c | 18007 | |
e6cc62c6 VS |
18008 | int |
18009 | main () | |
18010 | { | |
18011 | return f != $ac_func; | |
18012 | ; | |
18013 | return 0; | |
18014 | } | |
18015 | _ACEOF | |
18016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18018 | (eval $ac_link) 2>&5 | |
18019 | ac_status=$? | |
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18021 | (exit $ac_status); } && | |
18022 | { ac_try='test -s conftest$ac_exeext' | |
18023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18024 | (eval $ac_try) 2>&5 | |
18025 | ac_status=$? | |
18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18027 | (exit $ac_status); }; }; then | |
18028 | eval "$as_ac_var=yes" | |
18029 | else | |
18030 | echo "$as_me: failed program was:" >&5 | |
18031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18032 | ||
18033 | eval "$as_ac_var=no" | |
18034 | fi | |
18035 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18036 | fi | |
18037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18039 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18040 | cat >>confdefs.h <<_ACEOF | |
18041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18042 | _ACEOF | |
5c6fa7d2 | 18043 | |
698dcdb6 | 18044 | fi |
21d1c967 GD |
18045 | done |
18046 | ||
ab9b9eab VZ |
18047 | fi |
18048 | ||
8284b0c5 | 18049 | |
e6cc62c6 | 18050 | |
21d1c967 GD |
18051 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18052 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18053 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18054 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18055 | { (exit 1); exit 1; }; } | |
21d1c967 | 18056 | else |
e6cc62c6 VS |
18057 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18058 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18059 | wxUSE_REGEX=builtin |
18060 | fi | |
18061 | else | |
18062 | wxUSE_REGEX=sys | |
18063 | fi | |
ab9b9eab | 18064 | fi |
90dd450c | 18065 | |
21d1c967 GD |
18066 | if test "$wxUSE_REGEX" = "builtin" ; then |
18067 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18068 | fi |
21d1c967 | 18069 | fi |
90dd450c | 18070 | |
8284b0c5 | 18071 | |
21d1c967 GD |
18072 | ZLIB_INCLUDE= |
18073 | ZLIB_LINK= | |
18074 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18075 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18076 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18077 | _ACEOF |
21d1c967 | 18078 | |
8284b0c5 | 18079 | |
21d1c967 | 18080 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18081 | if test "$USE_DARWIN" = 1; then |
18082 | system_zlib_h_ok="yes" | |
18083 | else | |
e6cc62c6 VS |
18084 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18085 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18086 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18088 | else |
18089 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18090 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18091 | |
d643b80e | 18092 | else |
e6cc62c6 VS |
18093 | cat >conftest.$ac_ext <<_ACEOF |
18094 | #line $LINENO "configure" | |
18095 | /* confdefs.h. */ | |
18096 | _ACEOF | |
18097 | cat confdefs.h >>conftest.$ac_ext | |
18098 | cat >>conftest.$ac_ext <<_ACEOF | |
18099 | /* end confdefs.h. */ | |
18100 | ||
ef33c576 | 18101 | #include <zlib.h> |
d775acfa | 18102 | #include <stdio.h> |
d643b80e | 18103 | |
d775acfa VZ |
18104 | int main() |
18105 | { | |
18106 | FILE *f=fopen("conftestval", "w"); | |
18107 | if (!f) exit(1); | |
18108 | fprintf(f, "%s", | |
18109 | ZLIB_VERSION[0] == '1' && | |
18110 | (ZLIB_VERSION[2] > '1' || | |
18111 | (ZLIB_VERSION[2] == '1' && | |
18112 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18113 | exit(0); | |
18114 | } | |
e6cc62c6 VS |
18115 | |
18116 | _ACEOF | |
18117 | rm -f conftest$ac_exeext | |
18118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18119 | (eval $ac_link) 2>&5 | |
18120 | ac_status=$? | |
18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18124 | (eval $ac_try) 2>&5 | |
18125 | ac_status=$? | |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18128 | ac_cv_header_zlib_h=`cat conftestval` |
18129 | else | |
e6cc62c6 VS |
18130 | echo "$as_me: program exited with status $ac_status" >&5 |
18131 | echo "$as_me: failed program was:" >&5 | |
18132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18133 | ||
18134 | ( exit $ac_status ) | |
18135 | ac_cv_header_zlib_h=no | |
d643b80e | 18136 | fi |
e6cc62c6 | 18137 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18138 | fi |
18139 | ||
d643b80e | 18140 | fi |
e6cc62c6 VS |
18141 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18142 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18143 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18144 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18145 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18146 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18148 | fi | |
18149 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18150 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18151 | else |
e6cc62c6 VS |
18152 | # Is the header compilable? |
18153 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18154 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18155 | cat >conftest.$ac_ext <<_ACEOF | |
18156 | #line $LINENO "configure" | |
18157 | /* confdefs.h. */ | |
18158 | _ACEOF | |
18159 | cat confdefs.h >>conftest.$ac_ext | |
18160 | cat >>conftest.$ac_ext <<_ACEOF | |
18161 | /* end confdefs.h. */ | |
18162 | $ac_includes_default | |
89e6bf6d | 18163 | #include <zlib.h> |
e6cc62c6 VS |
18164 | _ACEOF |
18165 | rm -f conftest.$ac_objext | |
18166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18167 | (eval $ac_compile) 2>&5 | |
18168 | ac_status=$? | |
18169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18170 | (exit $ac_status); } && | |
18171 | { ac_try='test -s conftest.$ac_objext' | |
18172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18173 | (eval $ac_try) 2>&5 | |
18174 | ac_status=$? | |
18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18176 | (exit $ac_status); }; }; then | |
18177 | ac_header_compiler=yes | |
18178 | else | |
18179 | echo "$as_me: failed program was:" >&5 | |
18180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18181 | ||
18182 | ac_header_compiler=no | |
18183 | fi | |
18184 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18185 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18186 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18187 | ||
18188 | # Is the header present? | |
18189 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18190 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18191 | cat >conftest.$ac_ext <<_ACEOF | |
18192 | #line $LINENO "configure" | |
18193 | /* confdefs.h. */ | |
18194 | _ACEOF | |
18195 | cat confdefs.h >>conftest.$ac_ext | |
18196 | cat >>conftest.$ac_ext <<_ACEOF | |
18197 | /* end confdefs.h. */ | |
18198 | #include <zlib.h> | |
18199 | _ACEOF | |
18200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18202 | ac_status=$? | |
18203 | grep -v '^ *+' conftest.er1 >conftest.err | |
18204 | rm -f conftest.er1 | |
18205 | cat conftest.err >&5 | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); } >/dev/null; then | |
18208 | if test -s conftest.err; then | |
18209 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18210 | else | |
18211 | ac_cpp_err= | |
18212 | fi | |
18213 | else | |
18214 | ac_cpp_err=yes | |
18215 | fi | |
18216 | if test -z "$ac_cpp_err"; then | |
18217 | ac_header_preproc=yes | |
18218 | else | |
18219 | echo "$as_me: failed program was:" >&5 | |
18220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18221 | ||
18222 | ac_header_preproc=no | |
18223 | fi | |
18224 | rm -f conftest.err conftest.$ac_ext | |
18225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18226 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18227 | ||
18228 | # So? What about this header? | |
18229 | case $ac_header_compiler:$ac_header_preproc in | |
18230 | yes:no ) | |
18231 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18232 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18233 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18234 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18235 | ( | |
18236 | cat <<\_ASBOX | |
18237 | ## ------------------------------------ ## | |
18238 | ## Report this to bug-autoconf@gnu.org. ## | |
18239 | ## ------------------------------------ ## | |
18240 | _ASBOX | |
18241 | ) | | |
18242 | sed "s/^/$as_me: WARNING: /" >&2 | |
18243 | ;; | |
18244 | no:yes ) | |
18245 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18246 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18247 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18248 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18249 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18250 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18251 | ( | |
18252 | cat <<\_ASBOX | |
18253 | ## ------------------------------------ ## | |
18254 | ## Report this to bug-autoconf@gnu.org. ## | |
18255 | ## ------------------------------------ ## | |
18256 | _ASBOX | |
18257 | ) | | |
18258 | sed "s/^/$as_me: WARNING: /" >&2 | |
18259 | ;; | |
18260 | esac | |
18261 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18262 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18263 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18265 | else |
e6cc62c6 VS |
18266 | ac_cv_header_zlib_h=$ac_header_preproc |
18267 | fi | |
18268 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18269 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18270 | ||
89e6bf6d VZ |
18271 | fi |
18272 | ||
d643b80e | 18273 | |
e6cc62c6 | 18274 | |
d775acfa VZ |
18275 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18276 | fi | |
18277 | ||
18278 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18279 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18280 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18281 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18283 | else |
e6cc62c6 | 18284 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18285 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18286 | cat >conftest.$ac_ext <<_ACEOF |
18287 | #line $LINENO "configure" | |
18288 | /* confdefs.h. */ | |
18289 | _ACEOF | |
18290 | cat confdefs.h >>conftest.$ac_ext | |
18291 | cat >>conftest.$ac_ext <<_ACEOF | |
18292 | /* end confdefs.h. */ | |
18293 | ||
21d1c967 | 18294 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18295 | #ifdef __cplusplus |
18296 | extern "C" | |
18297 | #endif | |
21d1c967 | 18298 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18299 | builtin and then its argument prototype would still apply. */ |
18300 | char deflate (); | |
18301 | int | |
18302 | main () | |
18303 | { | |
18304 | deflate (); | |
18305 | ; | |
18306 | return 0; | |
18307 | } | |
18308 | _ACEOF | |
18309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18311 | (eval $ac_link) 2>&5 | |
18312 | ac_status=$? | |
18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18314 | (exit $ac_status); } && | |
18315 | { ac_try='test -s conftest$ac_exeext' | |
18316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18317 | (eval $ac_try) 2>&5 | |
18318 | ac_status=$? | |
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18320 | (exit $ac_status); }; }; then | |
18321 | ac_cv_lib_z_deflate=yes | |
18322 | else | |
18323 | echo "$as_me: failed program was:" >&5 | |
18324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18325 | ||
18326 | ac_cv_lib_z_deflate=no | |
18327 | fi | |
18328 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18329 | LIBS=$ac_check_lib_save_LIBS | |
18330 | fi | |
18331 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18332 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18333 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18334 | ZLIB_LINK=" -lz" |
a0b9e27f | 18335 | fi |
698dcdb6 | 18336 | |
d643b80e | 18337 | fi |
247f5006 | 18338 | |
21d1c967 GD |
18339 | if test "x$ZLIB_LINK" = "x" ; then |
18340 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18341 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18342 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18343 | { (exit 1); exit 1; }; } | |
21d1c967 | 18344 | else |
e6cc62c6 VS |
18345 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18346 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18347 | wxUSE_ZLIB=builtin |
18348 | fi | |
18349 | else | |
18350 | wxUSE_ZLIB=sys | |
18351 | fi | |
18352 | fi | |
18353 | ||
18354 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18355 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18356 | fi | |
ab9b9eab VZ |
18357 | fi |
18358 | ||
8284b0c5 | 18359 | |
21d1c967 GD |
18360 | PNG_INCLUDE= |
18361 | PNG_LINK= | |
18362 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18363 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18364 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18365 | _ACEOF |
90dd450c | 18366 | |
8284b0c5 | 18367 | |
21d1c967 | 18368 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18369 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18370 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18371 | wxUSE_LIBPNG=sys |
18372 | fi | |
90dd450c | 18373 | |
21d1c967 | 18374 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18375 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18376 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18377 | wxUSE_LIBPNG=builtin |
18378 | fi | |
18379 | ||
18380 | if test "$wxUSE_MGL" != 1 ; then | |
18381 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18382 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18383 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18384 | if test "${ac_cv_header_png_h+set}" = set; then | |
18385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18386 | else |
18387 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18388 | unset ac_cv_header_png_h |
e6cc62c6 | 18389 | |
5d3f766d | 18390 | else |
e6cc62c6 VS |
18391 | cat >conftest.$ac_ext <<_ACEOF |
18392 | #line $LINENO "configure" | |
18393 | /* confdefs.h. */ | |
18394 | _ACEOF | |
18395 | cat confdefs.h >>conftest.$ac_ext | |
18396 | cat >>conftest.$ac_ext <<_ACEOF | |
18397 | /* end confdefs.h. */ | |
18398 | ||
ef33c576 | 18399 | #include <png.h> |
5d3f766d VZ |
18400 | #include <stdio.h> |
18401 | ||
18402 | int main() | |
18403 | { | |
18404 | FILE *f=fopen("conftestval", "w"); | |
18405 | if (!f) exit(1); | |
18406 | fprintf(f, "%s", | |
18407 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18408 | exit(0); | |
18409 | } | |
e6cc62c6 VS |
18410 | |
18411 | _ACEOF | |
18412 | rm -f conftest$ac_exeext | |
18413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18414 | (eval $ac_link) 2>&5 | |
18415 | ac_status=$? | |
18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18419 | (eval $ac_try) 2>&5 | |
18420 | ac_status=$? | |
18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18422 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18423 | ac_cv_header_png_h=`cat conftestval` |
18424 | else | |
e6cc62c6 VS |
18425 | echo "$as_me: program exited with status $ac_status" >&5 |
18426 | echo "$as_me: failed program was:" >&5 | |
18427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18428 | ||
18429 | ( exit $ac_status ) | |
18430 | ac_cv_header_png_h=no | |
5d3f766d | 18431 | fi |
e6cc62c6 | 18432 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18433 | fi |
18434 | ||
5d3f766d | 18435 | fi |
e6cc62c6 VS |
18436 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18437 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18438 | if test "${ac_cv_header_png_h+set}" = set; then | |
18439 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18440 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18441 | if test "${ac_cv_header_png_h+set}" = set; then | |
18442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18443 | fi | |
18444 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18445 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18446 | else |
e6cc62c6 VS |
18447 | # Is the header compilable? |
18448 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18449 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18450 | cat >conftest.$ac_ext <<_ACEOF | |
18451 | #line $LINENO "configure" | |
18452 | /* confdefs.h. */ | |
18453 | _ACEOF | |
18454 | cat confdefs.h >>conftest.$ac_ext | |
18455 | cat >>conftest.$ac_ext <<_ACEOF | |
18456 | /* end confdefs.h. */ | |
18457 | $ac_includes_default | |
89e6bf6d | 18458 | #include <png.h> |
e6cc62c6 VS |
18459 | _ACEOF |
18460 | rm -f conftest.$ac_objext | |
18461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18462 | (eval $ac_compile) 2>&5 | |
18463 | ac_status=$? | |
18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18465 | (exit $ac_status); } && | |
18466 | { ac_try='test -s conftest.$ac_objext' | |
18467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18468 | (eval $ac_try) 2>&5 | |
18469 | ac_status=$? | |
18470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18471 | (exit $ac_status); }; }; then | |
18472 | ac_header_compiler=yes | |
18473 | else | |
18474 | echo "$as_me: failed program was:" >&5 | |
18475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18476 | ||
18477 | ac_header_compiler=no | |
18478 | fi | |
18479 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18481 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18482 | ||
18483 | # Is the header present? | |
18484 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18485 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18486 | cat >conftest.$ac_ext <<_ACEOF | |
18487 | #line $LINENO "configure" | |
18488 | /* confdefs.h. */ | |
18489 | _ACEOF | |
18490 | cat confdefs.h >>conftest.$ac_ext | |
18491 | cat >>conftest.$ac_ext <<_ACEOF | |
18492 | /* end confdefs.h. */ | |
18493 | #include <png.h> | |
18494 | _ACEOF | |
18495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18497 | ac_status=$? | |
18498 | grep -v '^ *+' conftest.er1 >conftest.err | |
18499 | rm -f conftest.er1 | |
18500 | cat conftest.err >&5 | |
18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18502 | (exit $ac_status); } >/dev/null; then | |
18503 | if test -s conftest.err; then | |
18504 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18505 | else | |
18506 | ac_cpp_err= | |
18507 | fi | |
18508 | else | |
18509 | ac_cpp_err=yes | |
18510 | fi | |
18511 | if test -z "$ac_cpp_err"; then | |
18512 | ac_header_preproc=yes | |
18513 | else | |
18514 | echo "$as_me: failed program was:" >&5 | |
18515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18516 | ||
18517 | ac_header_preproc=no | |
18518 | fi | |
18519 | rm -f conftest.err conftest.$ac_ext | |
18520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18521 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18522 | ||
18523 | # So? What about this header? | |
18524 | case $ac_header_compiler:$ac_header_preproc in | |
18525 | yes:no ) | |
18526 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18527 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18528 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18529 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18530 | ( | |
18531 | cat <<\_ASBOX | |
18532 | ## ------------------------------------ ## | |
18533 | ## Report this to bug-autoconf@gnu.org. ## | |
18534 | ## ------------------------------------ ## | |
18535 | _ASBOX | |
18536 | ) | | |
18537 | sed "s/^/$as_me: WARNING: /" >&2 | |
18538 | ;; | |
18539 | no:yes ) | |
18540 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18541 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18542 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18543 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18544 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18545 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18546 | ( | |
18547 | cat <<\_ASBOX | |
18548 | ## ------------------------------------ ## | |
18549 | ## Report this to bug-autoconf@gnu.org. ## | |
18550 | ## ------------------------------------ ## | |
18551 | _ASBOX | |
18552 | ) | | |
18553 | sed "s/^/$as_me: WARNING: /" >&2 | |
18554 | ;; | |
18555 | esac | |
18556 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18557 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18558 | if test "${ac_cv_header_png_h+set}" = set; then | |
18559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18560 | else |
e6cc62c6 VS |
18561 | ac_cv_header_png_h=$ac_header_preproc |
18562 | fi | |
18563 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18564 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18565 | ||
89e6bf6d VZ |
18566 | fi |
18567 | ||
5d3f766d | 18568 | |
e6cc62c6 | 18569 | |
5d3f766d | 18570 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18571 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18572 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18573 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18575 | else |
e6cc62c6 | 18576 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18577 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18578 | cat >conftest.$ac_ext <<_ACEOF |
18579 | #line $LINENO "configure" | |
18580 | /* confdefs.h. */ | |
18581 | _ACEOF | |
18582 | cat confdefs.h >>conftest.$ac_ext | |
18583 | cat >>conftest.$ac_ext <<_ACEOF | |
18584 | /* end confdefs.h. */ | |
18585 | ||
21d1c967 | 18586 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18587 | #ifdef __cplusplus |
18588 | extern "C" | |
18589 | #endif | |
21d1c967 | 18590 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18591 | builtin and then its argument prototype would still apply. */ |
18592 | char png_check_sig (); | |
18593 | int | |
18594 | main () | |
18595 | { | |
18596 | png_check_sig (); | |
18597 | ; | |
18598 | return 0; | |
18599 | } | |
18600 | _ACEOF | |
18601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18603 | (eval $ac_link) 2>&5 | |
18604 | ac_status=$? | |
18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18606 | (exit $ac_status); } && | |
18607 | { ac_try='test -s conftest$ac_exeext' | |
18608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18609 | (eval $ac_try) 2>&5 | |
18610 | ac_status=$? | |
18611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18612 | (exit $ac_status); }; }; then | |
18613 | ac_cv_lib_png_png_check_sig=yes | |
18614 | else | |
18615 | echo "$as_me: failed program was:" >&5 | |
18616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18617 | ||
18618 | ac_cv_lib_png_png_check_sig=no | |
18619 | fi | |
18620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18621 | LIBS=$ac_check_lib_save_LIBS | |
18622 | fi | |
18623 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18624 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18625 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18626 | PNG_LINK=" -lpng" |
a0b9e27f | 18627 | fi |
90dd450c | 18628 | |
5d3f766d | 18629 | fi |
247f5006 | 18630 | |
21d1c967 GD |
18631 | if test "x$PNG_LINK" = "x" ; then |
18632 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18633 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18634 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18635 | { (exit 1); exit 1; }; } | |
21d1c967 | 18636 | else |
e6cc62c6 VS |
18637 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18638 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18639 | wxUSE_LIBPNG=builtin |
18640 | fi | |
18641 | else | |
2b5f62a0 | 18642 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18643 | fi |
18644 | fi | |
18645 | fi | |
90dd450c | 18646 | |
21d1c967 GD |
18647 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18648 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18649 | fi | |
90dd450c | 18650 | |
21d1c967 | 18651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18652 | fi |
18653 | ||
8284b0c5 | 18654 | |
21d1c967 GD |
18655 | JPEG_INCLUDE= |
18656 | JPEG_LINK= | |
18657 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18658 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18659 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18660 | _ACEOF |
90dd450c | 18661 | |
8284b0c5 | 18662 | |
21d1c967 | 18663 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18664 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18665 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18666 | wxUSE_LIBJPEG=sys |
18667 | fi | |
90dd450c | 18668 | |
21d1c967 GD |
18669 | if test "$wxUSE_MGL" != 1 ; then |
18670 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18671 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18672 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18673 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18675 | else | |
18676 | cat >conftest.$ac_ext <<_ACEOF | |
18677 | #line $LINENO "configure" | |
18678 | /* confdefs.h. */ | |
18679 | _ACEOF | |
18680 | cat confdefs.h >>conftest.$ac_ext | |
18681 | cat >>conftest.$ac_ext <<_ACEOF | |
18682 | /* end confdefs.h. */ | |
90dd450c | 18683 | |
21d1c967 GD |
18684 | #undef HAVE_STDLIB_H |
18685 | #include <stdio.h> | |
18686 | #include <jpeglib.h> | |
90dd450c | 18687 | |
e6cc62c6 VS |
18688 | int |
18689 | main () | |
18690 | { | |
18691 | ||
18692 | ||
18693 | ; | |
18694 | return 0; | |
18695 | } | |
18696 | _ACEOF | |
18697 | rm -f conftest.$ac_objext | |
18698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18699 | (eval $ac_compile) 2>&5 | |
18700 | ac_status=$? | |
18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18702 | (exit $ac_status); } && | |
18703 | { ac_try='test -s conftest.$ac_objext' | |
18704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18705 | (eval $ac_try) 2>&5 | |
18706 | ac_status=$? | |
18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18708 | (exit $ac_status); }; }; then | |
21d1c967 | 18709 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18710 | else |
e6cc62c6 VS |
18711 | echo "$as_me: failed program was:" >&5 |
18712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18713 | ||
18714 | ac_cv_header_jpeglib_h=no | |
18715 | ||
90dd450c | 18716 | fi |
e6cc62c6 VS |
18717 | rm -f conftest.$ac_objext conftest.$ac_ext |
18718 | ||
90dd450c VZ |
18719 | fi |
18720 | ||
e6cc62c6 VS |
18721 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18722 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18723 | |
21d1c967 | 18724 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18725 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18726 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18727 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18729 | else |
e6cc62c6 | 18730 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18731 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18732 | cat >conftest.$ac_ext <<_ACEOF |
18733 | #line $LINENO "configure" | |
18734 | /* confdefs.h. */ | |
18735 | _ACEOF | |
18736 | cat confdefs.h >>conftest.$ac_ext | |
18737 | cat >>conftest.$ac_ext <<_ACEOF | |
18738 | /* end confdefs.h. */ | |
18739 | ||
21d1c967 | 18740 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18741 | #ifdef __cplusplus |
18742 | extern "C" | |
18743 | #endif | |
21d1c967 | 18744 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18745 | builtin and then its argument prototype would still apply. */ |
18746 | char jpeg_read_header (); | |
18747 | int | |
18748 | main () | |
18749 | { | |
18750 | jpeg_read_header (); | |
18751 | ; | |
18752 | return 0; | |
18753 | } | |
18754 | _ACEOF | |
18755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18757 | (eval $ac_link) 2>&5 | |
18758 | ac_status=$? | |
18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18760 | (exit $ac_status); } && | |
18761 | { ac_try='test -s conftest$ac_exeext' | |
18762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18763 | (eval $ac_try) 2>&5 | |
18764 | ac_status=$? | |
18765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18766 | (exit $ac_status); }; }; then | |
18767 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18768 | else | |
18769 | echo "$as_me: failed program was:" >&5 | |
18770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18771 | ||
18772 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18773 | fi | |
18774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18775 | LIBS=$ac_check_lib_save_LIBS | |
18776 | fi | |
18777 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18778 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18779 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18780 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18781 | fi |
18782 | ||
21d1c967 | 18783 | fi |
90dd450c | 18784 | |
21d1c967 GD |
18785 | if test "x$JPEG_LINK" = "x" ; then |
18786 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18787 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18788 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18789 | { (exit 1); exit 1; }; } | |
21d1c967 | 18790 | else |
e6cc62c6 VS |
18791 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18792 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18793 | wxUSE_LIBJPEG=builtin |
18794 | fi | |
18795 | else | |
18796 | wxUSE_LIBJPEG=sys | |
18797 | fi | |
18798 | fi | |
18799 | fi | |
90dd450c | 18800 | |
21d1c967 GD |
18801 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18802 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18803 | fi | |
18804 | fi | |
90dd450c | 18805 | |
8284b0c5 | 18806 | |
21d1c967 GD |
18807 | TIFF_INCLUDE= |
18808 | TIFF_LINK= | |
2b5f62a0 | 18809 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18810 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18811 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18812 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18813 | _ACEOF |
21d1c967 | 18814 | |
8284b0c5 | 18815 | |
21d1c967 | 18816 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18817 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18818 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18819 | fi | |
18820 | if test "$wxUSE_ZLIB" = "sys"; then | |
18821 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18822 | fi | |
e6cc62c6 VS |
18823 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18824 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18825 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18826 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18828 | fi | |
18829 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18830 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18831 | else | |
18832 | # Is the header compilable? | |
18833 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18834 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18835 | cat >conftest.$ac_ext <<_ACEOF | |
18836 | #line $LINENO "configure" | |
18837 | /* confdefs.h. */ | |
18838 | _ACEOF | |
18839 | cat confdefs.h >>conftest.$ac_ext | |
18840 | cat >>conftest.$ac_ext <<_ACEOF | |
18841 | /* end confdefs.h. */ | |
18842 | $ac_includes_default | |
247f5006 | 18843 | #include <tiffio.h> |
e6cc62c6 VS |
18844 | _ACEOF |
18845 | rm -f conftest.$ac_objext | |
18846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18847 | (eval $ac_compile) 2>&5 | |
18848 | ac_status=$? | |
18849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18850 | (exit $ac_status); } && | |
18851 | { ac_try='test -s conftest.$ac_objext' | |
18852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18853 | (eval $ac_try) 2>&5 | |
18854 | ac_status=$? | |
18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18856 | (exit $ac_status); }; }; then | |
18857 | ac_header_compiler=yes | |
18858 | else | |
18859 | echo "$as_me: failed program was:" >&5 | |
18860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18861 | ||
18862 | ac_header_compiler=no | |
18863 | fi | |
18864 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18866 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18867 | ||
18868 | # Is the header present? | |
18869 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18870 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18871 | cat >conftest.$ac_ext <<_ACEOF | |
18872 | #line $LINENO "configure" | |
18873 | /* confdefs.h. */ | |
18874 | _ACEOF | |
18875 | cat confdefs.h >>conftest.$ac_ext | |
18876 | cat >>conftest.$ac_ext <<_ACEOF | |
18877 | /* end confdefs.h. */ | |
18878 | #include <tiffio.h> | |
18879 | _ACEOF | |
18880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18882 | ac_status=$? | |
18883 | grep -v '^ *+' conftest.er1 >conftest.err | |
18884 | rm -f conftest.er1 | |
18885 | cat conftest.err >&5 | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); } >/dev/null; then | |
18888 | if test -s conftest.err; then | |
18889 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18890 | else | |
18891 | ac_cpp_err= | |
18892 | fi | |
18893 | else | |
18894 | ac_cpp_err=yes | |
18895 | fi | |
18896 | if test -z "$ac_cpp_err"; then | |
18897 | ac_header_preproc=yes | |
18898 | else | |
18899 | echo "$as_me: failed program was:" >&5 | |
18900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18901 | ||
18902 | ac_header_preproc=no | |
18903 | fi | |
18904 | rm -f conftest.err conftest.$ac_ext | |
18905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18906 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18907 | ||
18908 | # So? What about this header? | |
18909 | case $ac_header_compiler:$ac_header_preproc in | |
18910 | yes:no ) | |
18911 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18912 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18913 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18914 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18915 | ( | |
18916 | cat <<\_ASBOX | |
18917 | ## ------------------------------------ ## | |
18918 | ## Report this to bug-autoconf@gnu.org. ## | |
18919 | ## ------------------------------------ ## | |
18920 | _ASBOX | |
18921 | ) | | |
18922 | sed "s/^/$as_me: WARNING: /" >&2 | |
18923 | ;; | |
18924 | no:yes ) | |
18925 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18926 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18927 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18928 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18929 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18930 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18931 | ( | |
18932 | cat <<\_ASBOX | |
18933 | ## ------------------------------------ ## | |
18934 | ## Report this to bug-autoconf@gnu.org. ## | |
18935 | ## ------------------------------------ ## | |
18936 | _ASBOX | |
18937 | ) | | |
18938 | sed "s/^/$as_me: WARNING: /" >&2 | |
18939 | ;; | |
18940 | esac | |
18941 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18942 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18943 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18945 | else | |
18946 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 18947 | fi |
e6cc62c6 VS |
18948 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
18949 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18950 | ||
21d1c967 | 18951 | fi |
e6cc62c6 VS |
18952 | if test $ac_cv_header_tiffio_h = yes; then |
18953 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18954 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18955 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 18957 | else |
e6cc62c6 | 18958 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 18959 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
18960 | cat >conftest.$ac_ext <<_ACEOF |
18961 | #line $LINENO "configure" | |
18962 | /* confdefs.h. */ | |
18963 | _ACEOF | |
18964 | cat confdefs.h >>conftest.$ac_ext | |
18965 | cat >>conftest.$ac_ext <<_ACEOF | |
18966 | /* end confdefs.h. */ | |
18967 | ||
ab9b9eab | 18968 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18969 | #ifdef __cplusplus |
18970 | extern "C" | |
18971 | #endif | |
ab9b9eab | 18972 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18973 | builtin and then its argument prototype would still apply. */ |
18974 | char TIFFError (); | |
18975 | int | |
18976 | main () | |
18977 | { | |
18978 | TIFFError (); | |
18979 | ; | |
18980 | return 0; | |
18981 | } | |
18982 | _ACEOF | |
18983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18985 | (eval $ac_link) 2>&5 | |
18986 | ac_status=$? | |
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18988 | (exit $ac_status); } && | |
18989 | { ac_try='test -s conftest$ac_exeext' | |
18990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18991 | (eval $ac_try) 2>&5 | |
18992 | ac_status=$? | |
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18994 | (exit $ac_status); }; }; then | |
18995 | ac_cv_lib_tiff_TIFFError=yes | |
18996 | else | |
18997 | echo "$as_me: failed program was:" >&5 | |
18998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18999 | ||
19000 | ac_cv_lib_tiff_TIFFError=no | |
19001 | fi | |
19002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19003 | LIBS=$ac_check_lib_save_LIBS | |
19004 | fi | |
19005 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19006 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19007 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19008 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19009 | fi |
cd6d6d5b | 19010 | |
e6cc62c6 | 19011 | |
a0b9e27f | 19012 | fi |
8284b0c5 | 19013 | |
247f5006 | 19014 | |
e6cc62c6 | 19015 | |
21d1c967 GD |
19016 | if test "x$TIFF_LINK" = "x" ; then |
19017 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19018 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19019 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19020 | { (exit 1); exit 1; }; } | |
90dd450c | 19021 | else |
e6cc62c6 VS |
19022 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19023 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19024 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19025 | fi |
d8356fa3 | 19026 | else |
21d1c967 | 19027 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19028 | fi |
21d1c967 | 19029 | fi |
d8356fa3 | 19030 | |
21d1c967 GD |
19031 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19032 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19033 | fi |
21d1c967 | 19034 | fi |
10f2d63a | 19035 | |
8284b0c5 | 19036 | |
672abd7a | 19037 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 19038 | wxUSE_XML=yes |
672abd7a VS |
19039 | cat >>confdefs.h <<\_ACEOF |
19040 | #define wxUSE_EXPAT 1 | |
19041 | _ACEOF | |
19042 | ||
19043 | cat >>confdefs.h <<\_ACEOF | |
19044 | #define wxUSE_XML 1 | |
19045 | _ACEOF | |
19046 | ||
19047 | ||
19048 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19049 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19050 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19051 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19052 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19054 | fi | |
19055 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19056 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19057 | else | |
19058 | # Is the header compilable? | |
19059 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19060 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19061 | cat >conftest.$ac_ext <<_ACEOF | |
19062 | #line $LINENO "configure" | |
19063 | /* confdefs.h. */ | |
19064 | _ACEOF | |
19065 | cat confdefs.h >>conftest.$ac_ext | |
19066 | cat >>conftest.$ac_ext <<_ACEOF | |
19067 | /* end confdefs.h. */ | |
19068 | $ac_includes_default | |
19069 | #include <expat.h> | |
19070 | _ACEOF | |
19071 | rm -f conftest.$ac_objext | |
19072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19073 | (eval $ac_compile) 2>&5 | |
19074 | ac_status=$? | |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19076 | (exit $ac_status); } && | |
19077 | { ac_try='test -s conftest.$ac_objext' | |
19078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19079 | (eval $ac_try) 2>&5 | |
19080 | ac_status=$? | |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19082 | (exit $ac_status); }; }; then | |
19083 | ac_header_compiler=yes | |
19084 | else | |
19085 | echo "$as_me: failed program was:" >&5 | |
19086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19087 | ||
19088 | ac_header_compiler=no | |
19089 | fi | |
19090 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19092 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19093 | ||
19094 | # Is the header present? | |
19095 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19096 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19097 | cat >conftest.$ac_ext <<_ACEOF | |
19098 | #line $LINENO "configure" | |
19099 | /* confdefs.h. */ | |
19100 | _ACEOF | |
19101 | cat confdefs.h >>conftest.$ac_ext | |
19102 | cat >>conftest.$ac_ext <<_ACEOF | |
19103 | /* end confdefs.h. */ | |
19104 | #include <expat.h> | |
19105 | _ACEOF | |
19106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19108 | ac_status=$? | |
19109 | grep -v '^ *+' conftest.er1 >conftest.err | |
19110 | rm -f conftest.er1 | |
19111 | cat conftest.err >&5 | |
19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19113 | (exit $ac_status); } >/dev/null; then | |
19114 | if test -s conftest.err; then | |
19115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19116 | else | |
19117 | ac_cpp_err= | |
19118 | fi | |
19119 | else | |
19120 | ac_cpp_err=yes | |
19121 | fi | |
19122 | if test -z "$ac_cpp_err"; then | |
19123 | ac_header_preproc=yes | |
19124 | else | |
19125 | echo "$as_me: failed program was:" >&5 | |
19126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19127 | ||
19128 | ac_header_preproc=no | |
19129 | fi | |
19130 | rm -f conftest.err conftest.$ac_ext | |
19131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19132 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19133 | ||
19134 | # So? What about this header? | |
19135 | case $ac_header_compiler:$ac_header_preproc in | |
19136 | yes:no ) | |
19137 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19138 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19139 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19140 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19141 | ( | |
19142 | cat <<\_ASBOX | |
19143 | ## ------------------------------------ ## | |
19144 | ## Report this to bug-autoconf@gnu.org. ## | |
19145 | ## ------------------------------------ ## | |
19146 | _ASBOX | |
19147 | ) | | |
19148 | sed "s/^/$as_me: WARNING: /" >&2 | |
19149 | ;; | |
19150 | no:yes ) | |
19151 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 | |
19152 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
19153 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 | |
19154 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
19155 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19156 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19157 | ( | |
19158 | cat <<\_ASBOX | |
19159 | ## ------------------------------------ ## | |
19160 | ## Report this to bug-autoconf@gnu.org. ## | |
19161 | ## ------------------------------------ ## | |
19162 | _ASBOX | |
19163 | ) | | |
19164 | sed "s/^/$as_me: WARNING: /" >&2 | |
19165 | ;; | |
19166 | esac | |
19167 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19168 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19169 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19171 | else | |
19172 | ac_cv_header_expat_h=$ac_header_preproc | |
19173 | fi | |
19174 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19175 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19176 | ||
19177 | fi | |
5f0b6dff VS |
19178 | if test $ac_cv_header_expat_h = yes; then |
19179 | found_expat_h=1 | |
19180 | fi | |
19181 | ||
19182 | ||
19183 | if test "x$found_expat_h" = "x1"; then | |
19184 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19185 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19186 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19188 | else | |
19189 | ||
19190 | ||
672abd7a | 19191 | |
5f0b6dff VS |
19192 | ac_ext=cc |
19193 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19197 | ||
19198 | cat >conftest.$ac_ext <<_ACEOF | |
19199 | #line $LINENO "configure" | |
19200 | /* confdefs.h. */ | |
19201 | _ACEOF | |
19202 | cat confdefs.h >>conftest.$ac_ext | |
19203 | cat >>conftest.$ac_ext <<_ACEOF | |
19204 | /* end confdefs.h. */ | |
19205 | #include <expat.h> | |
19206 | int | |
19207 | main () | |
19208 | { | |
672abd7a | 19209 | |
5f0b6dff VS |
19210 | ; |
19211 | return 0; | |
19212 | } | |
19213 | _ACEOF | |
19214 | rm -f conftest.$ac_objext | |
19215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19216 | (eval $ac_compile) 2>&5 | |
19217 | ac_status=$? | |
19218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19219 | (exit $ac_status); } && | |
19220 | { ac_try='test -s conftest.$ac_objext' | |
19221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19222 | (eval $ac_try) 2>&5 | |
19223 | ac_status=$? | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); }; }; then | |
19226 | wx_cv_expat_is_not_broken=yes | |
19227 | else | |
19228 | echo "$as_me: failed program was:" >&5 | |
19229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19230 | ||
19231 | wx_cv_expat_is_not_broken=no | |
19232 | ||
19233 | fi | |
19234 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19235 | ac_ext=c | |
19236 | ac_cpp='$CPP $CPPFLAGS' | |
19237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19240 | ||
19241 | ||
19242 | ||
19243 | fi | |
19244 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19245 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19246 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19247 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19248 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19249 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19251 | else | |
19252 | ac_check_lib_save_LIBS=$LIBS | |
19253 | LIBS="-lexpat $LIBS" | |
19254 | cat >conftest.$ac_ext <<_ACEOF | |
19255 | #line $LINENO "configure" | |
19256 | /* confdefs.h. */ | |
19257 | _ACEOF | |
19258 | cat confdefs.h >>conftest.$ac_ext | |
19259 | cat >>conftest.$ac_ext <<_ACEOF | |
19260 | /* end confdefs.h. */ | |
19261 | ||
19262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19263 | #ifdef __cplusplus | |
19264 | extern "C" | |
19265 | #endif | |
19266 | /* We use char because int might match the return type of a gcc2 | |
19267 | builtin and then its argument prototype would still apply. */ | |
19268 | char XML_ParserCreate (); | |
19269 | int | |
19270 | main () | |
19271 | { | |
19272 | XML_ParserCreate (); | |
19273 | ; | |
19274 | return 0; | |
19275 | } | |
19276 | _ACEOF | |
19277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19279 | (eval $ac_link) 2>&5 | |
19280 | ac_status=$? | |
19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19282 | (exit $ac_status); } && | |
19283 | { ac_try='test -s conftest$ac_exeext' | |
19284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19285 | (eval $ac_try) 2>&5 | |
19286 | ac_status=$? | |
19287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19288 | (exit $ac_status); }; }; then | |
19289 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19290 | else | |
19291 | echo "$as_me: failed program was:" >&5 | |
19292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19293 | ||
19294 | ac_cv_lib_expat_XML_ParserCreate=no | |
19295 | fi | |
19296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19297 | LIBS=$ac_check_lib_save_LIBS | |
19298 | fi | |
19299 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19300 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19301 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19302 | EXPAT_LINK=" -lexpat" | |
19303 | fi | |
19304 | ||
5f0b6dff | 19305 | fi |
672abd7a VS |
19306 | fi |
19307 | if test "x$EXPAT_LINK" = "x" ; then | |
19308 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19309 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19310 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19311 | { (exit 1); exit 1; }; } | |
19312 | else | |
19313 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19314 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19315 | wxUSE_EXPAT=builtin | |
19316 | fi | |
19317 | else | |
19318 | wxUSE_EXPAT=sys | |
19319 | fi | |
19320 | fi | |
19321 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19322 | ||
19323 | ||
19324 | subdirs="$subdirs src/expat" | |
19325 | ||
19326 | fi | |
19327 | fi | |
19328 | ||
19329 | ||
19330 | ||
21d1c967 | 19331 | AFMINSTALL= |
2b5f62a0 | 19332 | WIN32INSTALL= |
90dd450c | 19333 | |
21d1c967 GD |
19334 | TOOLKIT= |
19335 | TOOLKIT_INCLUDE= | |
19336 | WIDGET_SET= | |
19337 | ||
19338 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19339 | |
19340 | for ac_header in w32api.h | |
21d1c967 | 19341 | do |
e6cc62c6 VS |
19342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19348 | fi | |
19349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19351 | else | |
19352 | # Is the header compilable? | |
19353 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19354 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19355 | cat >conftest.$ac_ext <<_ACEOF | |
19356 | #line $LINENO "configure" | |
19357 | /* confdefs.h. */ | |
19358 | _ACEOF | |
19359 | cat confdefs.h >>conftest.$ac_ext | |
19360 | cat >>conftest.$ac_ext <<_ACEOF | |
19361 | /* end confdefs.h. */ | |
19362 | $ac_includes_default | |
19363 | #include <$ac_header> | |
19364 | _ACEOF | |
19365 | rm -f conftest.$ac_objext | |
19366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19367 | (eval $ac_compile) 2>&5 | |
19368 | ac_status=$? | |
19369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19370 | (exit $ac_status); } && | |
19371 | { ac_try='test -s conftest.$ac_objext' | |
19372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19373 | (eval $ac_try) 2>&5 | |
19374 | ac_status=$? | |
19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19376 | (exit $ac_status); }; }; then | |
19377 | ac_header_compiler=yes | |
19378 | else | |
19379 | echo "$as_me: failed program was:" >&5 | |
19380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19381 | ||
19382 | ac_header_compiler=no | |
19383 | fi | |
19384 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19385 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19386 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19387 | ||
19388 | # Is the header present? | |
19389 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19390 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19391 | cat >conftest.$ac_ext <<_ACEOF | |
19392 | #line $LINENO "configure" | |
19393 | /* confdefs.h. */ | |
19394 | _ACEOF | |
19395 | cat confdefs.h >>conftest.$ac_ext | |
19396 | cat >>conftest.$ac_ext <<_ACEOF | |
19397 | /* end confdefs.h. */ | |
19398 | #include <$ac_header> | |
19399 | _ACEOF | |
19400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19402 | ac_status=$? | |
19403 | grep -v '^ *+' conftest.er1 >conftest.err | |
19404 | rm -f conftest.er1 | |
19405 | cat conftest.err >&5 | |
19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19407 | (exit $ac_status); } >/dev/null; then | |
19408 | if test -s conftest.err; then | |
19409 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19410 | else | |
19411 | ac_cpp_err= | |
19412 | fi | |
19413 | else | |
19414 | ac_cpp_err=yes | |
19415 | fi | |
19416 | if test -z "$ac_cpp_err"; then | |
19417 | ac_header_preproc=yes | |
19418 | else | |
19419 | echo "$as_me: failed program was:" >&5 | |
19420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19421 | ||
19422 | ac_header_preproc=no | |
19423 | fi | |
19424 | rm -f conftest.err conftest.$ac_ext | |
19425 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19426 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19427 | ||
19428 | # So? What about this header? | |
19429 | case $ac_header_compiler:$ac_header_preproc in | |
19430 | yes:no ) | |
19431 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19432 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19434 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19435 | ( | |
19436 | cat <<\_ASBOX | |
19437 | ## ------------------------------------ ## | |
19438 | ## Report this to bug-autoconf@gnu.org. ## | |
19439 | ## ------------------------------------ ## | |
19440 | _ASBOX | |
19441 | ) | | |
19442 | sed "s/^/$as_me: WARNING: /" >&2 | |
19443 | ;; | |
19444 | no:yes ) | |
19445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19451 | ( | |
19452 | cat <<\_ASBOX | |
19453 | ## ------------------------------------ ## | |
19454 | ## Report this to bug-autoconf@gnu.org. ## | |
19455 | ## ------------------------------------ ## | |
19456 | _ASBOX | |
19457 | ) | | |
19458 | sed "s/^/$as_me: WARNING: /" >&2 | |
19459 | ;; | |
19460 | esac | |
19461 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19465 | else | |
19466 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19467 | fi |
e6cc62c6 VS |
19468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19470 | ||
21d1c967 | 19471 | fi |
e6cc62c6 VS |
19472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19473 | cat >>confdefs.h <<_ACEOF | |
19474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19475 | _ACEOF | |
19476 | ||
21d1c967 | 19477 | fi |
e6cc62c6 | 19478 | |
21d1c967 | 19479 | done |
f79bd02d | 19480 | |
e6cc62c6 VS |
19481 | if test "${ac_cv_header_windows_h+set}" = set; then |
19482 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19483 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19484 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19486 | fi | |
19487 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19488 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19489 | else | |
19490 | # Is the header compilable? | |
19491 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19492 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19493 | cat >conftest.$ac_ext <<_ACEOF | |
19494 | #line $LINENO "configure" | |
19495 | /* confdefs.h. */ | |
19496 | _ACEOF | |
19497 | cat confdefs.h >>conftest.$ac_ext | |
19498 | cat >>conftest.$ac_ext <<_ACEOF | |
19499 | /* end confdefs.h. */ | |
19500 | $ac_includes_default | |
247f5006 | 19501 | #include <windows.h> |
e6cc62c6 VS |
19502 | _ACEOF |
19503 | rm -f conftest.$ac_objext | |
19504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19505 | (eval $ac_compile) 2>&5 | |
19506 | ac_status=$? | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); } && | |
19509 | { ac_try='test -s conftest.$ac_objext' | |
19510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19511 | (eval $ac_try) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); }; }; then | |
19515 | ac_header_compiler=yes | |
19516 | else | |
19517 | echo "$as_me: failed program was:" >&5 | |
19518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19519 | ||
19520 | ac_header_compiler=no | |
19521 | fi | |
19522 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19523 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19524 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19525 | ||
19526 | # Is the header present? | |
19527 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19528 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19529 | cat >conftest.$ac_ext <<_ACEOF | |
19530 | #line $LINENO "configure" | |
19531 | /* confdefs.h. */ | |
19532 | _ACEOF | |
19533 | cat confdefs.h >>conftest.$ac_ext | |
19534 | cat >>conftest.$ac_ext <<_ACEOF | |
19535 | /* end confdefs.h. */ | |
19536 | #include <windows.h> | |
19537 | _ACEOF | |
19538 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19539 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19540 | ac_status=$? | |
19541 | grep -v '^ *+' conftest.er1 >conftest.err | |
19542 | rm -f conftest.er1 | |
19543 | cat conftest.err >&5 | |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19545 | (exit $ac_status); } >/dev/null; then | |
19546 | if test -s conftest.err; then | |
19547 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19548 | else | |
19549 | ac_cpp_err= | |
19550 | fi | |
19551 | else | |
19552 | ac_cpp_err=yes | |
19553 | fi | |
19554 | if test -z "$ac_cpp_err"; then | |
19555 | ac_header_preproc=yes | |
19556 | else | |
19557 | echo "$as_me: failed program was:" >&5 | |
19558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19559 | ||
19560 | ac_header_preproc=no | |
19561 | fi | |
19562 | rm -f conftest.err conftest.$ac_ext | |
19563 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19564 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19565 | ||
19566 | # So? What about this header? | |
19567 | case $ac_header_compiler:$ac_header_preproc in | |
19568 | yes:no ) | |
19569 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19570 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19571 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19572 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19573 | ( | |
19574 | cat <<\_ASBOX | |
19575 | ## ------------------------------------ ## | |
19576 | ## Report this to bug-autoconf@gnu.org. ## | |
19577 | ## ------------------------------------ ## | |
19578 | _ASBOX | |
19579 | ) | | |
19580 | sed "s/^/$as_me: WARNING: /" >&2 | |
19581 | ;; | |
19582 | no:yes ) | |
19583 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19584 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19585 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19586 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19587 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19588 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19589 | ( | |
19590 | cat <<\_ASBOX | |
19591 | ## ------------------------------------ ## | |
19592 | ## Report this to bug-autoconf@gnu.org. ## | |
19593 | ## ------------------------------------ ## | |
19594 | _ASBOX | |
19595 | ) | | |
19596 | sed "s/^/$as_me: WARNING: /" >&2 | |
19597 | ;; | |
19598 | esac | |
19599 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19600 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19601 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19603 | else | |
19604 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19605 | fi |
e6cc62c6 VS |
19606 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19607 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19608 | ||
90dd450c | 19609 | fi |
e6cc62c6 | 19610 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19611 | : |
90dd450c | 19612 | else |
21d1c967 | 19613 | |
e6cc62c6 VS |
19614 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19615 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19616 | { (exit 1); exit 1; }; } | |
19617 | ||
5c6fa7d2 | 19618 | fi |
7b4a847f | 19619 | |
5c6fa7d2 | 19620 | |
e6cc62c6 | 19621 | |
b3dfbbc9 | 19622 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19623 | |
7bb2947d MB |
19624 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19625 | LIBS="$LIBS -loleacc" | |
19626 | fi | |
19627 | ||
21d1c967 GD |
19628 | case "${host}" in |
19629 | *-*-cygwin* ) | |
b3dfbbc9 | 19630 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19631 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19632 | esac |
f79bd02d | 19633 | |
8647bec6 RG |
19634 | if test "$wxUSE_ODBC" = "sys" ; then |
19635 | wxUSE_ODBC = "yes" | |
21d1c967 | 19636 | fi |
8647bec6 RG |
19637 | if test "$wxUSE_ODBC" = "yes" ; then |
19638 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19639 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19640 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19641 | _ACEOF |
f79bd02d | 19642 | |
8647bec6 | 19643 | fi |
e6cc62c6 | 19644 | |
21d1c967 GD |
19645 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19646 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19647 | |
19648 | WIN32INSTALL=win32install | |
f79bd02d | 19649 | fi |
f79bd02d | 19650 | |
21d1c967 GD |
19651 | if test "$wxUSE_GUI" = "yes"; then |
19652 | USE_GUI=1 | |
f79bd02d | 19653 | |
21d1c967 | 19654 | GUI_TK_LIBRARY= |
f79bd02d | 19655 | |
21d1c967 GD |
19656 | WXGTK12= |
19657 | WXGTK127= | |
19658 | WXGTK20= | |
f79bd02d | 19659 | |
21d1c967 GD |
19660 | if test "$wxUSE_MSW" = 1 ; then |
19661 | TOOLKIT=MSW | |
19662 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
19663 | |
19664 | case "${host}" in | |
19665 | *-*-mingw32* ) | |
19666 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
19667 | esac | |
f79bd02d JS |
19668 | fi |
19669 | ||
21d1c967 | 19670 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19671 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19672 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19673 | |
19674 | gtk_version_cached=1 | |
e6cc62c6 VS |
19675 | if test "${wx_cv_lib_gtk+set}" = set; then |
19676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19677 | else |
e6cc62c6 | 19678 | |
21d1c967 | 19679 | gtk_version_cached=0 |
e6cc62c6 VS |
19680 | echo "$as_me:$LINENO: result: " >&5 |
19681 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19682 | |
21d1c967 GD |
19683 | GTK_MODULES= |
19684 | if test "$wxUSE_THREADS" = "yes"; then | |
19685 | GTK_MODULES=gthread | |
19686 | fi | |
f79bd02d | 19687 | |
2b5f62a0 | 19688 | wx_cv_lib_gtk= |
21d1c967 GD |
19689 | if test "x$wxUSE_GTK2" = "xyes"; then |
19690 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19691 | if test "${enable_gtktest+set}" = set; then | |
19692 | enableval="$enable_gtktest" | |
e6cc62c6 | 19693 | |
f79bd02d | 19694 | else |
21d1c967 | 19695 | enable_gtktest=yes |
e6cc62c6 | 19696 | fi; |
f79bd02d | 19697 | |
21d1c967 GD |
19698 | pkg_config_args=gtk+-2.0 |
19699 | for module in . $GTK_MODULES | |
19700 | do | |
19701 | case "$module" in | |
e6cc62c6 | 19702 | gthread) |
21d1c967 GD |
19703 | pkg_config_args="$pkg_config_args gthread-2.0" |
19704 | ;; | |
19705 | esac | |
19706 | done | |
19707 | ||
19708 | no_gtk="" | |
f79bd02d | 19709 | |
21d1c967 GD |
19710 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19711 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19714 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19716 | else |
e6cc62c6 VS |
19717 | case $PKG_CONFIG in |
19718 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19719 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19720 | ;; | |
21d1c967 | 19721 | *) |
e6cc62c6 VS |
19722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19723 | for as_dir in $PATH | |
19724 | do | |
19725 | IFS=$as_save_IFS | |
19726 | test -z "$as_dir" && as_dir=. | |
19727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19729 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19731 | break 2 | |
19732 | fi | |
19733 | done | |
19734 | done | |
19735 | ||
21d1c967 GD |
19736 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19737 | ;; | |
19738 | esac | |
f79bd02d | 19739 | fi |
e6cc62c6 VS |
19740 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19741 | ||
21d1c967 | 19742 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19743 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19744 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19745 | else |
e6cc62c6 VS |
19746 | echo "$as_me:$LINENO: result: no" >&5 |
19747 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19748 | fi |
19749 | ||
8284b0c5 | 19750 | |
21d1c967 GD |
19751 | if test x$PKG_CONFIG != xno ; then |
19752 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19753 | : | |
19754 | else | |
19755 | echo *** pkg-config too old; version 0.7 or better required. | |
19756 | no_gtk=yes | |
19757 | PKG_CONFIG=no | |
19758 | fi | |
19759 | else | |
19760 | no_gtk=yes | |
19761 | fi | |
f79bd02d | 19762 | |
21d1c967 | 19763 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19764 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19765 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19766 | |
21d1c967 GD |
19767 | if test x$PKG_CONFIG != xno ; then |
19768 | ## don't try to run the test against uninstalled libtool libs | |
19769 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19770 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19771 | enable_gtktest=no | |
19772 | fi | |
f79bd02d | 19773 | |
21d1c967 GD |
19774 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19775 | : | |
19776 | else | |
19777 | no_gtk=yes | |
19778 | fi | |
19779 | fi | |
f79bd02d | 19780 | |
21d1c967 GD |
19781 | if test x"$no_gtk" = x ; then |
19782 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19783 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19784 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19785 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19786 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19787 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19788 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19789 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19790 | if test "x$enable_gtktest" = "xyes" ; then | |
19791 | ac_save_CFLAGS="$CFLAGS" | |
19792 | ac_save_LIBS="$LIBS" | |
19793 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19794 | LIBS="$GTK_LIBS $LIBS" | |
19795 | rm -f conf.gtktest | |
19796 | if test "$cross_compiling" = yes; then | |
19797 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19798 | else |
e6cc62c6 VS |
19799 | cat >conftest.$ac_ext <<_ACEOF |
19800 | #line $LINENO "configure" | |
19801 | /* confdefs.h. */ | |
19802 | _ACEOF | |
19803 | cat confdefs.h >>conftest.$ac_ext | |
19804 | cat >>conftest.$ac_ext <<_ACEOF | |
19805 | /* end confdefs.h. */ | |
f79bd02d | 19806 | |
21d1c967 GD |
19807 | #include <gtk/gtk.h> |
19808 | #include <stdio.h> | |
19809 | #include <stdlib.h> | |
f79bd02d | 19810 | |
e6cc62c6 | 19811 | int |
21d1c967 GD |
19812 | main () |
19813 | { | |
19814 | int major, minor, micro; | |
19815 | char *tmp_version; | |
f79bd02d | 19816 | |
21d1c967 | 19817 | system ("touch conf.gtktest"); |
f79bd02d | 19818 | |
21d1c967 GD |
19819 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19820 | tmp_version = g_strdup("$min_gtk_version"); | |
19821 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19822 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19823 | exit(1); | |
19824 | } | |
f79bd02d | 19825 | |
21d1c967 GD |
19826 | if ((gtk_major_version != $gtk_config_major_version) || |
19827 | (gtk_minor_version != $gtk_config_minor_version) || | |
19828 | (gtk_micro_version != $gtk_config_micro_version)) | |
19829 | { | |
e6cc62c6 | 19830 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19831 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19832 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19833 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19834 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19835 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19836 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19837 | printf("*** required on your system.\n"); | |
19838 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19839 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19840 | } |
21d1c967 GD |
19841 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19842 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19843 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19844 | { | |
19845 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19846 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19847 | printf("*** library (version %d.%d.%d)\n", | |
19848 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19849 | } | |
19850 | else | |
19851 | { | |
19852 | if ((gtk_major_version > major) || | |
19853 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19854 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19855 | { | |
19856 | return 0; | |
19857 | } | |
19858 | else | |
19859 | { | |
19860 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19861 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19862 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19863 | major, minor, micro); | |
19864 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19865 | printf("***\n"); | |
19866 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19867 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19868 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19869 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19870 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19871 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19872 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19873 | } | |
19874 | } | |
19875 | return 1; | |
19876 | } | |
f79bd02d | 19877 | |
e6cc62c6 VS |
19878 | _ACEOF |
19879 | rm -f conftest$ac_exeext | |
19880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19881 | (eval $ac_link) 2>&5 | |
19882 | ac_status=$? | |
19883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19886 | (eval $ac_try) 2>&5 | |
19887 | ac_status=$? | |
19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19889 | (exit $ac_status); }; }; then | |
21d1c967 | 19890 | : |
f79bd02d | 19891 | else |
e6cc62c6 VS |
19892 | echo "$as_me: program exited with status $ac_status" >&5 |
19893 | echo "$as_me: failed program was:" >&5 | |
19894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19895 | ||
19896 | ( exit $ac_status ) | |
19897 | no_gtk=yes | |
f79bd02d | 19898 | fi |
e6cc62c6 | 19899 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 19900 | fi |
21d1c967 GD |
19901 | CFLAGS="$ac_save_CFLAGS" |
19902 | LIBS="$ac_save_LIBS" | |
19903 | fi | |
19904 | fi | |
19905 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19906 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
19907 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19908 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 19909 | else |
e6cc62c6 VS |
19910 | echo "$as_me:$LINENO: result: no" >&5 |
19911 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19912 | if test "$PKG_CONFIG" = "no" ; then |
19913 | echo "*** A new enough version of pkg-config was not found." | |
19914 | echo "*** See http://pkgconfig.sourceforge.net" | |
19915 | else | |
19916 | if test -f conf.gtktest ; then | |
19917 | : | |
19918 | else | |
19919 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
19920 | ac_save_CFLAGS="$CFLAGS" |
19921 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
19922 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
19923 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19924 | cat >conftest.$ac_ext <<_ACEOF |
19925 | #line $LINENO "configure" | |
19926 | /* confdefs.h. */ | |
19927 | _ACEOF | |
19928 | cat confdefs.h >>conftest.$ac_ext | |
19929 | cat >>conftest.$ac_ext <<_ACEOF | |
19930 | /* end confdefs.h. */ | |
21d1c967 GD |
19931 | |
19932 | #include <gtk/gtk.h> | |
19933 | #include <stdio.h> | |
f79bd02d | 19934 | |
e6cc62c6 VS |
19935 | int |
19936 | main () | |
19937 | { | |
19938 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19939 | ; | |
19940 | return 0; | |
19941 | } | |
19942 | _ACEOF | |
19943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19945 | (eval $ac_link) 2>&5 | |
19946 | ac_status=$? | |
19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19948 | (exit $ac_status); } && | |
19949 | { ac_try='test -s conftest$ac_exeext' | |
19950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19951 | (eval $ac_try) 2>&5 | |
19952 | ac_status=$? | |
19953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19954 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19955 | echo "*** The test program compiled, but did not run. This usually means" |
19956 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19957 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19958 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19959 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19960 | echo "*** is required on your system" | |
19961 | echo "***" | |
19962 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 19963 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 19964 | else |
e6cc62c6 VS |
19965 | echo "$as_me: failed program was:" >&5 |
19966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19967 | ||
19968 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 19969 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 19970 | fi |
e6cc62c6 | 19971 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
19972 | CFLAGS="$ac_save_CFLAGS" |
19973 | LIBS="$ac_save_LIBS" | |
19974 | fi | |
19975 | fi | |
19976 | GTK_CFLAGS="" | |
19977 | GTK_LIBS="" | |
19978 | : | |
19979 | fi | |
e6cc62c6 VS |
19980 | |
19981 | ||
21d1c967 | 19982 | rm -f conf.gtktest |
f79bd02d | 19983 | |
2b5f62a0 | 19984 | else |
e6cc62c6 VS |
19985 | |
19986 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
19987 | if test "${with_gtk_prefix+set}" = set; then |
19988 | withval="$with_gtk_prefix" | |
19989 | gtk_config_prefix="$withval" | |
19990 | else | |
19991 | gtk_config_prefix="" | |
e6cc62c6 | 19992 | fi; |
f79bd02d | 19993 | |
21d1c967 GD |
19994 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
19995 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19996 | withval="$with_gtk_exec_prefix" | |
19997 | gtk_config_exec_prefix="$withval" | |
19998 | else | |
19999 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20000 | fi; |
21d1c967 GD |
20001 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20002 | if test "${enable_gtktest+set}" = set; then | |
20003 | enableval="$enable_gtktest" | |
e6cc62c6 | 20004 | |
21d1c967 GD |
20005 | else |
20006 | enable_gtktest=yes | |
e6cc62c6 | 20007 | fi; |
21d1c967 GD |
20008 | |
20009 | for module in . $GTK_MODULES | |
20010 | do | |
20011 | case "$module" in | |
e6cc62c6 | 20012 | gthread) |
21d1c967 GD |
20013 | gtk_config_args="$gtk_config_args gthread" |
20014 | ;; | |
20015 | esac | |
20016 | done | |
20017 | ||
20018 | if test x$gtk_config_exec_prefix != x ; then | |
20019 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20020 | if test x${GTK_CONFIG+set} != xset ; then | |
20021 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20022 | fi | |
20023 | fi | |
20024 | if test x$gtk_config_prefix != x ; then | |
20025 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20026 | if test x${GTK_CONFIG+set} != xset ; then | |
20027 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20028 | fi | |
20029 | fi | |
20030 | ||
20031 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20032 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20035 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20037 | else |
e6cc62c6 VS |
20038 | case $GTK_CONFIG in |
20039 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20040 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20041 | ;; | |
21d1c967 | 20042 | *) |
e6cc62c6 VS |
20043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20044 | for as_dir in $PATH | |
20045 | do | |
20046 | IFS=$as_save_IFS | |
20047 | test -z "$as_dir" && as_dir=. | |
20048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20050 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20052 | break 2 | |
20053 | fi | |
20054 | done | |
20055 | done | |
20056 | ||
21d1c967 GD |
20057 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20058 | ;; | |
20059 | esac | |
20060 | fi | |
e6cc62c6 VS |
20061 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20062 | ||
21d1c967 | 20063 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20064 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20065 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20066 | else |
e6cc62c6 VS |
20067 | echo "$as_me:$LINENO: result: no" >&5 |
20068 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20069 | fi |
20070 | ||
20071 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20072 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20073 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20074 | no_gtk="" |
20075 | if test "$GTK_CONFIG" = "no" ; then | |
20076 | no_gtk=yes | |
20077 | else | |
20078 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20079 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20080 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20081 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20082 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20083 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20084 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20085 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20086 | if test "x$enable_gtktest" = "xyes" ; then | |
20087 | ac_save_CFLAGS="$CFLAGS" | |
20088 | ac_save_LIBS="$LIBS" | |
20089 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20090 | LIBS="$GTK_LIBS $LIBS" | |
20091 | rm -f conf.gtktest | |
20092 | if test "$cross_compiling" = yes; then | |
20093 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20094 | else |
e6cc62c6 VS |
20095 | cat >conftest.$ac_ext <<_ACEOF |
20096 | #line $LINENO "configure" | |
20097 | /* confdefs.h. */ | |
20098 | _ACEOF | |
20099 | cat confdefs.h >>conftest.$ac_ext | |
20100 | cat >>conftest.$ac_ext <<_ACEOF | |
20101 | /* end confdefs.h. */ | |
f79bd02d | 20102 | |
21d1c967 GD |
20103 | #include <gtk/gtk.h> |
20104 | #include <stdio.h> | |
20105 | #include <stdlib.h> | |
f79bd02d | 20106 | |
e6cc62c6 | 20107 | int |
21d1c967 GD |
20108 | main () |
20109 | { | |
20110 | int major, minor, micro; | |
20111 | char *tmp_version; | |
20112 | ||
20113 | system ("touch conf.gtktest"); | |
20114 | ||
20115 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20116 | tmp_version = g_strdup("$min_gtk_version"); | |
20117 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20118 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20119 | exit(1); | |
20120 | } | |
90dd450c | 20121 | |
21d1c967 GD |
20122 | if ((gtk_major_version != $gtk_config_major_version) || |
20123 | (gtk_minor_version != $gtk_config_minor_version) || | |
20124 | (gtk_micro_version != $gtk_config_micro_version)) | |
20125 | { | |
e6cc62c6 | 20126 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20127 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20128 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20129 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20130 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20131 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20132 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20133 | printf("*** required on your system.\n"); | |
20134 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20135 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20136 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20137 | } |
21d1c967 GD |
20138 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20139 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20140 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20141 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20142 | { | |
20143 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20144 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20145 | printf("*** library (version %d.%d.%d)\n", | |
20146 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20147 | } | |
20148 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20149 | else | |
20150 | { | |
20151 | if ((gtk_major_version > major) || | |
20152 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20153 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20154 | { | |
20155 | return 0; | |
20156 | } | |
20157 | else | |
20158 | { | |
20159 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20160 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20161 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20162 | major, minor, micro); | |
20163 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20164 | printf("***\n"); | |
20165 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20166 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20167 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20168 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20169 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20170 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20171 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20172 | } | |
20173 | } | |
20174 | return 1; | |
20175 | } | |
20176 | ||
e6cc62c6 VS |
20177 | _ACEOF |
20178 | rm -f conftest$ac_exeext | |
20179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20180 | (eval $ac_link) 2>&5 | |
20181 | ac_status=$? | |
20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20185 | (eval $ac_try) 2>&5 | |
20186 | ac_status=$? | |
20187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20188 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20189 | : |
20190 | else | |
e6cc62c6 VS |
20191 | echo "$as_me: program exited with status $ac_status" >&5 |
20192 | echo "$as_me: failed program was:" >&5 | |
20193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20194 | ||
20195 | ( exit $ac_status ) | |
20196 | no_gtk=yes | |
21d1c967 | 20197 | fi |
e6cc62c6 | 20198 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20199 | fi |
21d1c967 GD |
20200 | CFLAGS="$ac_save_CFLAGS" |
20201 | LIBS="$ac_save_LIBS" | |
20202 | fi | |
20203 | fi | |
20204 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20205 | echo "$as_me:$LINENO: result: yes" >&5 |
20206 | echo "${ECHO_T}yes" >&6 | |
20207 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20208 | else |
e6cc62c6 VS |
20209 | echo "$as_me:$LINENO: result: no" >&5 |
20210 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20211 | if test "$GTK_CONFIG" = "no" ; then |
20212 | echo "*** The gtk-config script installed by GTK could not be found" | |
20213 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20214 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20215 | echo "*** full path to gtk-config." | |
20216 | else | |
20217 | if test -f conf.gtktest ; then | |
20218 | : | |
20219 | else | |
20220 | echo "*** Could not run GTK test program, checking why..." | |
20221 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20222 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20223 | cat >conftest.$ac_ext <<_ACEOF |
20224 | #line $LINENO "configure" | |
20225 | /* confdefs.h. */ | |
20226 | _ACEOF | |
20227 | cat confdefs.h >>conftest.$ac_ext | |
20228 | cat >>conftest.$ac_ext <<_ACEOF | |
20229 | /* end confdefs.h. */ | |
21d1c967 GD |
20230 | |
20231 | #include <gtk/gtk.h> | |
20232 | #include <stdio.h> | |
20233 | ||
e6cc62c6 VS |
20234 | int |
20235 | main () | |
20236 | { | |
20237 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20238 | ; | |
20239 | return 0; | |
20240 | } | |
20241 | _ACEOF | |
20242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20244 | (eval $ac_link) 2>&5 | |
20245 | ac_status=$? | |
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20247 | (exit $ac_status); } && | |
20248 | { ac_try='test -s conftest$ac_exeext' | |
20249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20250 | (eval $ac_try) 2>&5 | |
20251 | ac_status=$? | |
20252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20253 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20254 | echo "*** The test program compiled, but did not run. This usually means" |
20255 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20256 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20257 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20258 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20259 | echo "*** is required on your system" | |
20260 | echo "***" | |
20261 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20262 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20263 | echo "***" | |
20264 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20265 | echo "*** came with the system with the command" | |
20266 | echo "***" | |
e6cc62c6 | 20267 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20268 | else |
e6cc62c6 VS |
20269 | echo "$as_me: failed program was:" >&5 |
20270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20271 | ||
20272 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20273 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20274 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20275 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20276 | fi |
e6cc62c6 | 20277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20278 | CFLAGS="$ac_save_CFLAGS" |
20279 | LIBS="$ac_save_LIBS" | |
20280 | fi | |
20281 | fi | |
20282 | GTK_CFLAGS="" | |
20283 | GTK_LIBS="" | |
20284 | : | |
20285 | fi | |
e6cc62c6 VS |
20286 | |
20287 | ||
21d1c967 GD |
20288 | rm -f conf.gtktest |
20289 | ||
21d1c967 | 20290 | |
2b5f62a0 | 20291 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20292 | |
20293 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20294 | if test "${with_gtk_prefix+set}" = set; then |
20295 | withval="$with_gtk_prefix" | |
20296 | gtk_config_prefix="$withval" | |
20297 | else | |
20298 | gtk_config_prefix="" | |
e6cc62c6 | 20299 | fi; |
f79bd02d | 20300 | |
21d1c967 GD |
20301 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20302 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20303 | withval="$with_gtk_exec_prefix" | |
20304 | gtk_config_exec_prefix="$withval" | |
20305 | else | |
20306 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20307 | fi; |
21d1c967 GD |
20308 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20309 | if test "${enable_gtktest+set}" = set; then | |
20310 | enableval="$enable_gtktest" | |
e6cc62c6 | 20311 | |
90dd450c | 20312 | else |
21d1c967 | 20313 | enable_gtktest=yes |
e6cc62c6 | 20314 | fi; |
21d1c967 GD |
20315 | |
20316 | for module in . $GTK_MODULES | |
20317 | do | |
20318 | case "$module" in | |
e6cc62c6 | 20319 | gthread) |
21d1c967 GD |
20320 | gtk_config_args="$gtk_config_args gthread" |
20321 | ;; | |
20322 | esac | |
20323 | done | |
20324 | ||
20325 | if test x$gtk_config_exec_prefix != x ; then | |
20326 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20327 | if test x${GTK_CONFIG+set} != xset ; then | |
20328 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20329 | fi | |
20330 | fi | |
20331 | if test x$gtk_config_prefix != x ; then | |
20332 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20333 | if test x${GTK_CONFIG+set} != xset ; then | |
20334 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20335 | fi | |
20336 | fi | |
20337 | ||
20338 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20339 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20342 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20344 | else |
e6cc62c6 VS |
20345 | case $GTK_CONFIG in |
20346 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20347 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20348 | ;; | |
21d1c967 | 20349 | *) |
e6cc62c6 VS |
20350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20351 | for as_dir in $PATH | |
20352 | do | |
20353 | IFS=$as_save_IFS | |
20354 | test -z "$as_dir" && as_dir=. | |
20355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20357 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20359 | break 2 | |
20360 | fi | |
20361 | done | |
20362 | done | |
20363 | ||
21d1c967 GD |
20364 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20365 | ;; | |
20366 | esac | |
20367 | fi | |
e6cc62c6 VS |
20368 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20369 | ||
21d1c967 | 20370 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20371 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20372 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20373 | else |
e6cc62c6 VS |
20374 | echo "$as_me:$LINENO: result: no" >&5 |
20375 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20376 | fi |
20377 | ||
20378 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20379 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20380 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20381 | no_gtk="" |
20382 | if test "$GTK_CONFIG" = "no" ; then | |
20383 | no_gtk=yes | |
20384 | else | |
20385 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20386 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20387 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20388 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20389 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20390 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20391 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20392 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20393 | if test "x$enable_gtktest" = "xyes" ; then | |
20394 | ac_save_CFLAGS="$CFLAGS" | |
20395 | ac_save_LIBS="$LIBS" | |
20396 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20397 | LIBS="$GTK_LIBS $LIBS" | |
20398 | rm -f conf.gtktest | |
20399 | if test "$cross_compiling" = yes; then | |
20400 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20401 | else | |
e6cc62c6 VS |
20402 | cat >conftest.$ac_ext <<_ACEOF |
20403 | #line $LINENO "configure" | |
20404 | /* confdefs.h. */ | |
20405 | _ACEOF | |
20406 | cat confdefs.h >>conftest.$ac_ext | |
20407 | cat >>conftest.$ac_ext <<_ACEOF | |
20408 | /* end confdefs.h. */ | |
21d1c967 GD |
20409 | |
20410 | #include <gtk/gtk.h> | |
20411 | #include <stdio.h> | |
20412 | #include <stdlib.h> | |
20413 | ||
e6cc62c6 | 20414 | int |
21d1c967 GD |
20415 | main () |
20416 | { | |
20417 | int major, minor, micro; | |
20418 | char *tmp_version; | |
20419 | ||
20420 | system ("touch conf.gtktest"); | |
20421 | ||
20422 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20423 | tmp_version = g_strdup("$min_gtk_version"); | |
20424 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20425 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20426 | exit(1); | |
20427 | } | |
20428 | ||
20429 | if ((gtk_major_version != $gtk_config_major_version) || | |
20430 | (gtk_minor_version != $gtk_config_minor_version) || | |
20431 | (gtk_micro_version != $gtk_config_micro_version)) | |
20432 | { | |
e6cc62c6 | 20433 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20434 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20435 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20436 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20437 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20438 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20439 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20440 | printf("*** required on your system.\n"); | |
20441 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20442 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20443 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20444 | } |
21d1c967 GD |
20445 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20446 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20447 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20448 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20449 | { | |
20450 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20451 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20452 | printf("*** library (version %d.%d.%d)\n", | |
20453 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20454 | } | |
20455 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20456 | else | |
20457 | { | |
20458 | if ((gtk_major_version > major) || | |
20459 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20460 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20461 | { | |
20462 | return 0; | |
20463 | } | |
20464 | else | |
20465 | { | |
20466 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20467 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20468 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20469 | major, minor, micro); | |
20470 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20471 | printf("***\n"); | |
20472 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20473 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20474 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20475 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20476 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20477 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20478 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20479 | } | |
20480 | } | |
20481 | return 1; | |
20482 | } | |
20483 | ||
e6cc62c6 VS |
20484 | _ACEOF |
20485 | rm -f conftest$ac_exeext | |
20486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20487 | (eval $ac_link) 2>&5 | |
20488 | ac_status=$? | |
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20490 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20492 | (eval $ac_try) 2>&5 | |
20493 | ac_status=$? | |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20495 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20496 | : |
20497 | else | |
e6cc62c6 VS |
20498 | echo "$as_me: program exited with status $ac_status" >&5 |
20499 | echo "$as_me: failed program was:" >&5 | |
20500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20501 | ||
20502 | ( exit $ac_status ) | |
20503 | no_gtk=yes | |
21d1c967 | 20504 | fi |
e6cc62c6 | 20505 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20506 | fi |
21d1c967 GD |
20507 | CFLAGS="$ac_save_CFLAGS" |
20508 | LIBS="$ac_save_LIBS" | |
20509 | fi | |
20510 | fi | |
20511 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20512 | echo "$as_me:$LINENO: result: yes" >&5 |
20513 | echo "${ECHO_T}yes" >&6 | |
20514 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20515 | else |
e6cc62c6 VS |
20516 | echo "$as_me:$LINENO: result: no" >&5 |
20517 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20518 | if test "$GTK_CONFIG" = "no" ; then |
20519 | echo "*** The gtk-config script installed by GTK could not be found" | |
20520 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20521 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20522 | echo "*** full path to gtk-config." | |
20523 | else | |
20524 | if test -f conf.gtktest ; then | |
20525 | : | |
20526 | else | |
20527 | echo "*** Could not run GTK test program, checking why..." | |
20528 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20529 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20530 | cat >conftest.$ac_ext <<_ACEOF |
20531 | #line $LINENO "configure" | |
20532 | /* confdefs.h. */ | |
20533 | _ACEOF | |
20534 | cat confdefs.h >>conftest.$ac_ext | |
20535 | cat >>conftest.$ac_ext <<_ACEOF | |
20536 | /* end confdefs.h. */ | |
21d1c967 GD |
20537 | |
20538 | #include <gtk/gtk.h> | |
20539 | #include <stdio.h> | |
f79bd02d | 20540 | |
e6cc62c6 VS |
20541 | int |
20542 | main () | |
20543 | { | |
20544 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20545 | ; | |
20546 | return 0; | |
20547 | } | |
20548 | _ACEOF | |
20549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20551 | (eval $ac_link) 2>&5 | |
20552 | ac_status=$? | |
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20554 | (exit $ac_status); } && | |
20555 | { ac_try='test -s conftest$ac_exeext' | |
20556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20557 | (eval $ac_try) 2>&5 | |
20558 | ac_status=$? | |
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20560 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20561 | echo "*** The test program compiled, but did not run. This usually means" |
20562 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20563 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20564 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20565 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20566 | echo "*** is required on your system" | |
20567 | echo "***" | |
20568 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20569 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20570 | echo "***" | |
20571 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20572 | echo "*** came with the system with the command" | |
20573 | echo "***" | |
e6cc62c6 | 20574 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20575 | else |
e6cc62c6 VS |
20576 | echo "$as_me: failed program was:" >&5 |
20577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20578 | ||
20579 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20580 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20581 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20582 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20583 | fi |
e6cc62c6 | 20584 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20585 | CFLAGS="$ac_save_CFLAGS" |
20586 | LIBS="$ac_save_LIBS" | |
20587 | fi | |
20588 | fi | |
20589 | GTK_CFLAGS="" | |
20590 | GTK_LIBS="" | |
20591 | : | |
20592 | fi | |
e6cc62c6 VS |
20593 | |
20594 | ||
21d1c967 | 20595 | rm -f conf.gtktest |
f79bd02d | 20596 | |
2b5f62a0 | 20597 | fi |
21d1c967 GD |
20598 | fi |
20599 | ||
20600 | if test -z "$wx_cv_lib_gtk"; then | |
20601 | wx_cv_lib_gtk=none | |
20602 | else | |
20603 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20604 | wx_cv_libs_gtk=$GTK_LIBS | |
20605 | fi | |
e6cc62c6 VS |
20606 | |
20607 | ||
5c6fa7d2 | 20608 | fi |
52127426 | 20609 | |
8284b0c5 | 20610 | |
21d1c967 | 20611 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20612 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20613 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20614 | fi |
20615 | ||
20616 | case "$wx_cv_lib_gtk" in | |
20617 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20618 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20619 | ;; |
20620 | 1.2.7) WXGTK127=1 | |
20621 | WXGTK12=1 | |
20622 | ;; | |
20623 | 1.2.3) WXGTK12=1 | |
20624 | ;; | |
e6cc62c6 VS |
20625 | *) { { echo "$as_me:$LINENO: error: |
20626 | Please check that gtk-config is in path, the directory | |
20627 | where GTK+ libraries are installed (returned by | |
20628 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20629 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20630 | " >&5 | |
20631 | echo "$as_me: error: | |
247f5006 VZ |
20632 | Please check that gtk-config is in path, the directory |
20633 | where GTK+ libraries are installed (returned by | |
20634 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20635 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20636 | " >&2;} |
20637 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20638 | ;; |
20639 | esac | |
20640 | ||
b13cd66e VZ |
20641 | if test "$WXGTK20" = 1; then |
20642 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20643 | |
f09359cf VS |
20644 | succeeded=no |
20645 | ||
20646 | if test -z "$PKG_CONFIG"; then | |
20647 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20648 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20651 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20653 | else |
e6cc62c6 VS |
20654 | case $PKG_CONFIG in |
20655 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20656 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20657 | ;; | |
f09359cf | 20658 | *) |
e6cc62c6 VS |
20659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20660 | for as_dir in $PATH | |
20661 | do | |
20662 | IFS=$as_save_IFS | |
20663 | test -z "$as_dir" && as_dir=. | |
20664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20666 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20668 | break 2 | |
20669 | fi | |
20670 | done | |
20671 | done | |
20672 | ||
f09359cf VS |
20673 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20674 | ;; | |
20675 | esac | |
20676 | fi | |
e6cc62c6 VS |
20677 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20678 | ||
f09359cf | 20679 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20680 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20681 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20682 | else |
e6cc62c6 VS |
20683 | echo "$as_me:$LINENO: result: no" >&5 |
20684 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20685 | fi |
20686 | ||
20687 | fi | |
20688 | ||
20689 | if test "$PKG_CONFIG" = "no" ; then | |
20690 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20691 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20692 | echo "*** to the full path to pkg-config." | |
20693 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20694 | else | |
20695 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20696 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20697 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20698 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20699 | |
20700 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20701 | echo "$as_me:$LINENO: result: yes" >&5 |
20702 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20703 | succeeded=yes |
20704 | ||
e6cc62c6 VS |
20705 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20706 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20707 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20708 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20709 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20710 | |
e6cc62c6 VS |
20711 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20712 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20713 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20714 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20715 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20716 | else |
20717 | PANGOFT2_CFLAGS="" | |
20718 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20719 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20720 | ## do set a variable so people can do so. |
20721 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20722 | |
f09359cf VS |
20723 | fi |
20724 | ||
e6cc62c6 VS |
20725 | |
20726 | ||
f09359cf VS |
20727 | else |
20728 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20729 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20730 | fi | |
20731 | fi | |
20732 | ||
20733 | if test $succeeded = yes; then | |
e6cc62c6 | 20734 | |
b13cd66e | 20735 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20736 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20737 | |
f09359cf | 20738 | else |
e6cc62c6 VS |
20739 | |
20740 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20741 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20742 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20743 | |
20744 | ||
f09359cf VS |
20745 | fi |
20746 | ||
b13cd66e | 20747 | fi |
2b5f62a0 VZ |
20748 | else |
20749 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20750 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20751 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20752 | wxUSE_UNICODE=no |
20753 | fi | |
20754 | fi | |
20755 | ||
20756 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20757 | |
20758 | for ac_func in poll | |
2b5f62a0 | 20759 | do |
e6cc62c6 VS |
20760 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20761 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20762 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20763 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20765 | else | |
20766 | cat >conftest.$ac_ext <<_ACEOF | |
20767 | #line $LINENO "configure" | |
20768 | /* confdefs.h. */ | |
20769 | _ACEOF | |
20770 | cat confdefs.h >>conftest.$ac_ext | |
20771 | cat >>conftest.$ac_ext <<_ACEOF | |
20772 | /* end confdefs.h. */ | |
2b5f62a0 | 20773 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20774 | which can conflict with char $ac_func (); below. |
20775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20776 | <limits.h> exists even on freestanding compilers. */ | |
20777 | #ifdef __STDC__ | |
20778 | # include <limits.h> | |
20779 | #else | |
20780 | # include <assert.h> | |
20781 | #endif | |
2b5f62a0 | 20782 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20783 | #ifdef __cplusplus |
20784 | extern "C" | |
20785 | { | |
20786 | #endif | |
2b5f62a0 | 20787 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20788 | builtin and then its argument prototype would still apply. */ |
20789 | char $ac_func (); | |
2b5f62a0 VZ |
20790 | /* The GNU C library defines this for functions which it implements |
20791 | to always fail with ENOSYS. Some functions are actually named | |
20792 | something starting with __ and the normal name is an alias. */ | |
20793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20794 | choke me | |
20795 | #else | |
e6cc62c6 VS |
20796 | char (*f) () = $ac_func; |
20797 | #endif | |
20798 | #ifdef __cplusplus | |
20799 | } | |
2b5f62a0 VZ |
20800 | #endif |
20801 | ||
e6cc62c6 VS |
20802 | int |
20803 | main () | |
20804 | { | |
20805 | return f != $ac_func; | |
20806 | ; | |
20807 | return 0; | |
20808 | } | |
20809 | _ACEOF | |
20810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20812 | (eval $ac_link) 2>&5 | |
20813 | ac_status=$? | |
20814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20815 | (exit $ac_status); } && | |
20816 | { ac_try='test -s conftest$ac_exeext' | |
20817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20818 | (eval $ac_try) 2>&5 | |
20819 | ac_status=$? | |
20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20821 | (exit $ac_status); }; }; then | |
20822 | eval "$as_ac_var=yes" | |
20823 | else | |
20824 | echo "$as_me: failed program was:" >&5 | |
20825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20826 | ||
20827 | eval "$as_ac_var=no" | |
20828 | fi | |
20829 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20830 | fi | |
20831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20834 | cat >>confdefs.h <<_ACEOF | |
20835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20836 | _ACEOF | |
2b5f62a0 | 20837 | |
2b5f62a0 VZ |
20838 | fi |
20839 | done | |
20840 | ||
f09359cf VS |
20841 | fi |
20842 | ||
21d1c967 | 20843 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 20844 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
20845 | |
20846 | AFMINSTALL=afminstall | |
20847 | TOOLKIT=GTK | |
20848 | GUIDIST=GTK_DIST | |
20849 | ||
e6cc62c6 VS |
20850 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20851 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20852 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20854 | else |
e6cc62c6 | 20855 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20856 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20857 | cat >conftest.$ac_ext <<_ACEOF |
20858 | #line $LINENO "configure" | |
20859 | /* confdefs.h. */ | |
20860 | _ACEOF | |
20861 | cat confdefs.h >>conftest.$ac_ext | |
20862 | cat >>conftest.$ac_ext <<_ACEOF | |
20863 | /* end confdefs.h. */ | |
20864 | ||
5c6fa7d2 | 20865 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20866 | #ifdef __cplusplus |
20867 | extern "C" | |
20868 | #endif | |
5c6fa7d2 | 20869 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20870 | builtin and then its argument prototype would still apply. */ |
20871 | char gdk_im_open (); | |
20872 | int | |
20873 | main () | |
20874 | { | |
20875 | gdk_im_open (); | |
20876 | ; | |
20877 | return 0; | |
20878 | } | |
20879 | _ACEOF | |
20880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20882 | (eval $ac_link) 2>&5 | |
20883 | ac_status=$? | |
20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20885 | (exit $ac_status); } && | |
20886 | { ac_try='test -s conftest$ac_exeext' | |
20887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20888 | (eval $ac_try) 2>&5 | |
20889 | ac_status=$? | |
20890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20891 | (exit $ac_status); }; }; then | |
20892 | ac_cv_lib_gdk_gdk_im_open=yes | |
20893 | else | |
20894 | echo "$as_me: failed program was:" >&5 | |
20895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20896 | ||
20897 | ac_cv_lib_gdk_gdk_im_open=no | |
20898 | fi | |
20899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20900 | LIBS=$ac_check_lib_save_LIBS | |
20901 | fi | |
20902 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20903 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20904 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20905 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20906 | #define HAVE_XIM 1 |
e6cc62c6 | 20907 | _ACEOF |
21d1c967 | 20908 | |
90dd450c | 20909 | fi |
1e6feb95 | 20910 | |
21d1c967 | 20911 | fi |
1e6feb95 | 20912 | |
21d1c967 | 20913 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
20914 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
20915 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 20916 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
20917 | echo "$as_me:$LINENO: result: not found" >&5 |
20918 | echo "${ECHO_T}not found" >&6 | |
20919 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20920 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20921 | { (exit 1); exit 1; }; } | |
21d1c967 | 20922 | else |
e6cc62c6 VS |
20923 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
20924 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
20925 | fi |
20926 | ||
e6cc62c6 VS |
20927 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
20928 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
20929 | case "${host}" in |
20930 | *-*-linux* ) | |
63a76696 VS |
20931 | if test "x$wxUSE_SHARED" = xyes ; then |
20932 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20933 | else | |
20934 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20935 | fi | |
21d1c967 GD |
20936 | ;; |
20937 | *-pc-msdosdjgpp ) | |
63a76696 | 20938 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
20939 | ;; |
20940 | *) | |
e6cc62c6 VS |
20941 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
20942 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20943 | { (exit 1); exit 1; }; } | |
21d1c967 | 20944 | esac |
1e6feb95 | 20945 | |
21d1c967 | 20946 | mgl_lib_type="" |
63a76696 VS |
20947 | mgl_os="" |
20948 | ||
20949 | for mgl_os_i in $mgl_os_candidates ; do | |
20950 | if test "x$mgl_os" = x ; then | |
20951 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20952 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20953 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20954 | mgl_lib_type=debug | |
20955 | mgl_os=$mgl_os_i | |
20956 | fi | |
20957 | fi | |
20958 | if test "x$mgl_lib_type" = x ; then | |
20959 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20960 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20961 | mgl_lib_type=release | |
20962 | mgl_os=$mgl_os_i | |
20963 | fi | |
20964 | fi | |
21d1c967 | 20965 | fi |
63a76696 | 20966 | done |
2224580a | 20967 | |
63a76696 | 20968 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
20969 | echo "$as_me:$LINENO: result: not found" >&5 |
20970 | echo "${ECHO_T}not found" >&6 | |
20971 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20972 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20973 | { (exit 1); exit 1; }; } | |
63a76696 | 20974 | fi |
e6cc62c6 VS |
20975 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
20976 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 20977 | |
1d1b75ac VZ |
20978 | wxUSE_UNIVERSAL="yes" |
20979 | ||
21d1c967 GD |
20980 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
20981 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20982 | ||
90dd450c | 20983 | AFMINSTALL=afminstall |
21d1c967 GD |
20984 | TOOLKIT=MGL |
20985 | GUIDIST=MGL_DIST | |
20986 | fi | |
dad6c0ea | 20987 | |
21d1c967 | 20988 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
20989 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
20990 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 20991 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
20992 | echo "$as_me:$LINENO: result: not found" >&5 |
20993 | echo "${ECHO_T}not found" >&6 | |
20994 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20995 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20996 | { (exit 1); exit 1; }; } | |
21d1c967 | 20997 | else |
e6cc62c6 VS |
20998 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
20999 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21000 | fi |
f6bcfd97 | 21001 | |
21d1c967 | 21002 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21003 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21004 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21005 | else |
e6cc62c6 VS |
21006 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21007 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21008 | { (exit 1); exit 1; }; } | |
90dd450c | 21009 | fi |
0b2effe9 | 21010 | |
21d1c967 GD |
21011 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21012 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21013 | ||
1d1b75ac VZ |
21014 | wxUSE_UNIVERSAL="yes" |
21015 | ||
21d1c967 GD |
21016 | AFMINSTALL=afminstall |
21017 | TOOLKIT=MICROWIN | |
21018 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21019 | |
21020 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21021 | fi |
f6bcfd97 | 21022 | |
21d1c967 | 21023 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21024 | echo "$as_me:$LINENO: checking for X" >&5 |
21025 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21026 | ||
d8356fa3 | 21027 | |
21d1c967 GD |
21028 | # Check whether --with-x or --without-x was given. |
21029 | if test "${with_x+set}" = set; then | |
21030 | withval="$with_x" | |
2224580a | 21031 | |
e6cc62c6 | 21032 | fi; |
21d1c967 GD |
21033 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21034 | if test "x$with_x" = xno; then | |
21035 | # The user explicitly disabled X. | |
21036 | have_x=disabled | |
21037 | else | |
21038 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21039 | # Both variables are already set. | |
21040 | have_x=yes | |
21041 | else | |
e6cc62c6 VS |
21042 | if test "${ac_cv_have_x+set}" = set; then |
21043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21044 | else |
21045 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21046 | ac_x_includes=no ac_x_libraries=no |
21047 | rm -fr conftest.dir | |
21048 | if mkdir conftest.dir; then | |
21049 | cd conftest.dir | |
21d1c967 | 21050 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21051 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21052 | acfindx: |
21053 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21054 | _ACEOF |
21d1c967 GD |
21055 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21056 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21057 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21058 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21059 | for ac_extension in a so sl; do | |
21060 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 21061 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
21062 | ac_im_usrlibdir=$ac_im_libdir; break |
21063 | fi | |
21064 | done | |
21065 | # Screen out bogus values from the imake configuration. They are | |
21066 | # bogus both because they are the default anyway, and because | |
21067 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21068 | case $ac_im_incroot in |
21d1c967 | 21069 | /usr/include) ;; |
e6cc62c6 | 21070 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21071 | esac |
e6cc62c6 | 21072 | case $ac_im_usrlibdir in |
21d1c967 | 21073 | /usr/lib | /lib) ;; |
e6cc62c6 | 21074 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21075 | esac |
21076 | fi | |
21077 | cd .. | |
e6cc62c6 | 21078 | rm -fr conftest.dir |
21d1c967 | 21079 | fi |
10f2d63a | 21080 | |
e6cc62c6 VS |
21081 | # Standard set of common directories for X headers. |
21082 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21083 | ac_x_header_dirs=' | |
21084 | /usr/X11/include | |
21085 | /usr/X11R6/include | |
21086 | /usr/X11R5/include | |
21087 | /usr/X11R4/include | |
21088 | ||
21089 | /usr/include/X11 | |
21090 | /usr/include/X11R6 | |
21091 | /usr/include/X11R5 | |
21092 | /usr/include/X11R4 | |
21093 | ||
21094 | /usr/local/X11/include | |
21095 | /usr/local/X11R6/include | |
21096 | /usr/local/X11R5/include | |
21097 | /usr/local/X11R4/include | |
21098 | ||
21099 | /usr/local/include/X11 | |
21100 | /usr/local/include/X11R6 | |
21101 | /usr/local/include/X11R5 | |
21102 | /usr/local/include/X11R4 | |
21103 | ||
21104 | /usr/X386/include | |
21105 | /usr/x386/include | |
21106 | /usr/XFree86/include/X11 | |
21107 | ||
21108 | /usr/include | |
21109 | /usr/local/include | |
21110 | /usr/unsupported/include | |
21111 | /usr/athena/include | |
21112 | /usr/local/x11r5/include | |
21113 | /usr/lpp/Xamples/include | |
21114 | ||
21115 | /usr/openwin/include | |
21116 | /usr/openwin/share/include' | |
21117 | ||
21118 | if test "$ac_x_includes" = no; then | |
21119 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21120 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
21121 | cat >conftest.$ac_ext <<_ACEOF |
21122 | #line $LINENO "configure" | |
21123 | /* confdefs.h. */ | |
21124 | _ACEOF | |
21125 | cat confdefs.h >>conftest.$ac_ext | |
21126 | cat >>conftest.$ac_ext <<_ACEOF | |
21127 | /* end confdefs.h. */ | |
21128 | #include <X11/Intrinsic.h> | |
21129 | _ACEOF | |
21130 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21132 | ac_status=$? | |
21133 | grep -v '^ *+' conftest.er1 >conftest.err | |
21134 | rm -f conftest.er1 | |
21135 | cat conftest.err >&5 | |
21136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21137 | (exit $ac_status); } >/dev/null; then | |
21138 | if test -s conftest.err; then | |
21139 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21140 | else | |
21141 | ac_cpp_err= | |
21142 | fi | |
21143 | else | |
21144 | ac_cpp_err=yes | |
21145 | fi | |
21146 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21147 | # We can compile using X headers with no special include directory. |
21148 | ac_x_includes= | |
90dd450c | 21149 | else |
e6cc62c6 VS |
21150 | echo "$as_me: failed program was:" >&5 |
21151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21152 | ||
21153 | for ac_dir in $ac_x_header_dirs; do | |
21154 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21155 | ac_x_includes=$ac_dir | |
21156 | break | |
21157 | fi | |
21158 | done | |
3a922bb4 | 21159 | fi |
e6cc62c6 VS |
21160 | rm -f conftest.err conftest.$ac_ext |
21161 | fi # $ac_x_includes = no | |
10f2d63a | 21162 | |
e6cc62c6 | 21163 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21164 | # Check for the libraries. |
21d1c967 GD |
21165 | # See if we find them without any special options. |
21166 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21167 | ac_save_LIBS=$LIBS |
21168 | LIBS="-lXt $LIBS" | |
21169 | cat >conftest.$ac_ext <<_ACEOF | |
21170 | #line $LINENO "configure" | |
21171 | /* confdefs.h. */ | |
21172 | _ACEOF | |
21173 | cat confdefs.h >>conftest.$ac_ext | |
21174 | cat >>conftest.$ac_ext <<_ACEOF | |
21175 | /* end confdefs.h. */ | |
21176 | #include <X11/Intrinsic.h> | |
21177 | int | |
21178 | main () | |
21179 | { | |
21180 | XtMalloc (0) | |
21181 | ; | |
21182 | return 0; | |
21183 | } | |
21184 | _ACEOF | |
21185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21187 | (eval $ac_link) 2>&5 | |
21188 | ac_status=$? | |
21189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21190 | (exit $ac_status); } && | |
21191 | { ac_try='test -s conftest$ac_exeext' | |
21192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21193 | (eval $ac_try) 2>&5 | |
21194 | ac_status=$? | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); }; }; then | |
21197 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21198 | # We can link X programs with no special library path. |
21199 | ac_x_libraries= | |
3a922bb4 | 21200 | else |
e6cc62c6 VS |
21201 | echo "$as_me: failed program was:" >&5 |
21202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21203 | ||
21204 | LIBS=$ac_save_LIBS | |
21205 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21206 | do |
e6cc62c6 | 21207 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21208 | for ac_extension in a so sl; do |
e6cc62c6 | 21209 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21210 | ac_x_libraries=$ac_dir |
21211 | break 2 | |
21212 | fi | |
21213 | done | |
21214 | done | |
3a922bb4 | 21215 | fi |
e6cc62c6 VS |
21216 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21217 | fi # $ac_x_libraries = no | |
90dd450c | 21218 | |
e6cc62c6 | 21219 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21220 | # Didn't find X anywhere. Cache the known absence of X. |
21221 | ac_cv_have_x="have_x=no" | |
21222 | else | |
21223 | # Record where we found X for the cache. | |
21224 | ac_cv_have_x="have_x=yes \ | |
21225 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21226 | fi |
21d1c967 | 21227 | fi |
e6cc62c6 | 21228 | |
21d1c967 GD |
21229 | fi |
21230 | eval "$ac_cv_have_x" | |
21231 | fi # $with_x != no | |
90dd450c | 21232 | |
21d1c967 | 21233 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21234 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21235 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21236 | no_x=yes |
21237 | else | |
21238 | # If each of the values was on the command line, it overrides each guess. | |
21239 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21240 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21241 | # Update the cache value to reflect the command line values. | |
21242 | ac_cv_have_x="have_x=yes \ | |
21243 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21244 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21245 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21246 | fi |
90dd450c | 21247 | |
21d1c967 | 21248 | if test "$no_x" = yes; then |
90dd450c | 21249 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21250 | |
21251 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21252 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21253 | _ACEOF |
90dd450c VZ |
21254 | |
21255 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21256 | else | |
21257 | if test -n "$x_includes"; then | |
21258 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21259 | fi |
3a922bb4 | 21260 | |
90dd450c VZ |
21261 | # It would also be nice to do this for all -L options, not just this one. |
21262 | if test -n "$x_libraries"; then | |
21263 | X_LIBS="$X_LIBS -L$x_libraries" | |
21264 | # For Solaris; some versions of Sun CC require a space after -R and | |
21265 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21266 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21267 | "SunOS 5"*) |
e6cc62c6 VS |
21268 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21269 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21270 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21271 | cat >conftest.$ac_ext <<_ACEOF | |
21272 | #line $LINENO "configure" | |
21273 | /* confdefs.h. */ | |
21274 | _ACEOF | |
21275 | cat confdefs.h >>conftest.$ac_ext | |
21276 | cat >>conftest.$ac_ext <<_ACEOF | |
21277 | /* end confdefs.h. */ | |
21278 | ||
21279 | int | |
21280 | main () | |
21281 | { | |
90dd450c | 21282 | |
e6cc62c6 VS |
21283 | ; |
21284 | return 0; | |
21285 | } | |
21286 | _ACEOF | |
21287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21289 | (eval $ac_link) 2>&5 | |
21290 | ac_status=$? | |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); } && | |
21293 | { ac_try='test -s conftest$ac_exeext' | |
21294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21295 | (eval $ac_try) 2>&5 | |
21296 | ac_status=$? | |
21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21298 | (exit $ac_status); }; }; then | |
90dd450c | 21299 | ac_R_nospace=yes |
3a922bb4 | 21300 | else |
e6cc62c6 VS |
21301 | echo "$as_me: failed program was:" >&5 |
21302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21303 | ||
21304 | ac_R_nospace=no | |
3a922bb4 | 21305 | fi |
e6cc62c6 | 21306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21307 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21308 | echo "$as_me:$LINENO: result: no" >&5 |
21309 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21310 | X_LIBS="$X_LIBS -R$x_libraries" |
21311 | else | |
21312 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21313 | cat >conftest.$ac_ext <<_ACEOF |
21314 | #line $LINENO "configure" | |
21315 | /* confdefs.h. */ | |
21316 | _ACEOF | |
21317 | cat confdefs.h >>conftest.$ac_ext | |
21318 | cat >>conftest.$ac_ext <<_ACEOF | |
21319 | /* end confdefs.h. */ | |
21320 | ||
21321 | int | |
21322 | main () | |
21323 | { | |
6f754473 | 21324 | |
e6cc62c6 VS |
21325 | ; |
21326 | return 0; | |
21327 | } | |
21328 | _ACEOF | |
21329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21331 | (eval $ac_link) 2>&5 | |
21332 | ac_status=$? | |
21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 | (exit $ac_status); } && | |
21335 | { ac_try='test -s conftest$ac_exeext' | |
21336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21337 | (eval $ac_try) 2>&5 | |
21338 | ac_status=$? | |
21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21340 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21341 | ac_R_space=yes |
21342 | else | |
e6cc62c6 VS |
21343 | echo "$as_me: failed program was:" >&5 |
21344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21345 | ||
21346 | ac_R_space=no | |
90dd450c | 21347 | fi |
e6cc62c6 | 21348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21349 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21350 | echo "$as_me:$LINENO: result: yes" >&5 |
21351 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21352 | X_LIBS="$X_LIBS -R $x_libraries" |
21353 | else | |
e6cc62c6 VS |
21354 | echo "$as_me:$LINENO: result: neither works" >&5 |
21355 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21356 | fi |
21357 | fi | |
e6cc62c6 | 21358 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21359 | esac |
21360 | fi | |
21361 | ||
21362 | # Check for system-dependent libraries X programs must link with. | |
21363 | # Do this before checking for the system-independent R6 libraries | |
21364 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21365 | |
90dd450c VZ |
21366 | if test "$ISC" = yes; then |
21367 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21368 | else | |
e6cc62c6 VS |
21369 | # Martyn Johnson says this is needed for Ultrix, if the X |
21370 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21371 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21372 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21373 | cat >conftest.$ac_ext <<_ACEOF | |
21374 | #line $LINENO "configure" | |
21375 | /* confdefs.h. */ | |
21376 | _ACEOF | |
21377 | cat confdefs.h >>conftest.$ac_ext | |
21378 | cat >>conftest.$ac_ext <<_ACEOF | |
21379 | /* end confdefs.h. */ | |
21380 | ||
247f5006 | 21381 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21382 | #ifdef __cplusplus |
21383 | extern "C" | |
21384 | #endif | |
247f5006 | 21385 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21386 | builtin and then its argument prototype would still apply. */ |
21387 | char XOpenDisplay (); | |
21388 | int | |
21389 | main () | |
21390 | { | |
21391 | XOpenDisplay (); | |
21392 | ; | |
21393 | return 0; | |
21394 | } | |
21395 | _ACEOF | |
21396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21398 | (eval $ac_link) 2>&5 | |
21399 | ac_status=$? | |
21400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21401 | (exit $ac_status); } && | |
21402 | { ac_try='test -s conftest$ac_exeext' | |
21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21404 | (eval $ac_try) 2>&5 | |
21405 | ac_status=$? | |
21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21407 | (exit $ac_status); }; }; then | |
21408 | : | |
21409 | else | |
21410 | echo "$as_me: failed program was:" >&5 | |
21411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21412 | |
e6cc62c6 VS |
21413 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21414 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21415 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21417 | else |
e6cc62c6 VS |
21418 | ac_check_lib_save_LIBS=$LIBS |
21419 | LIBS="-ldnet $LIBS" | |
21420 | cat >conftest.$ac_ext <<_ACEOF | |
21421 | #line $LINENO "configure" | |
21422 | /* confdefs.h. */ | |
21423 | _ACEOF | |
21424 | cat confdefs.h >>conftest.$ac_ext | |
21425 | cat >>conftest.$ac_ext <<_ACEOF | |
21426 | /* end confdefs.h. */ | |
a0b9e27f | 21427 | |
e6cc62c6 VS |
21428 | /* Override any gcc2 internal prototype to avoid an error. */ |
21429 | #ifdef __cplusplus | |
21430 | extern "C" | |
21431 | #endif | |
21432 | /* We use char because int might match the return type of a gcc2 | |
21433 | builtin and then its argument prototype would still apply. */ | |
21434 | char dnet_ntoa (); | |
21435 | int | |
21436 | main () | |
21437 | { | |
21438 | dnet_ntoa (); | |
21439 | ; | |
21440 | return 0; | |
21441 | } | |
21442 | _ACEOF | |
21443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21445 | (eval $ac_link) 2>&5 | |
21446 | ac_status=$? | |
21447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21448 | (exit $ac_status); } && | |
21449 | { ac_try='test -s conftest$ac_exeext' | |
21450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21451 | (eval $ac_try) 2>&5 | |
21452 | ac_status=$? | |
21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21454 | (exit $ac_status); }; }; then | |
21455 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21456 | else | |
21457 | echo "$as_me: failed program was:" >&5 | |
21458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21459 | ||
21460 | ac_cv_lib_dnet_dnet_ntoa=no | |
21461 | fi | |
21462 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21463 | LIBS=$ac_check_lib_save_LIBS | |
21464 | fi | |
21465 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21466 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21467 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21468 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21469 | fi |
21470 | ||
90dd450c | 21471 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21472 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21473 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21474 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21476 | else |
e6cc62c6 | 21477 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21478 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21479 | cat >conftest.$ac_ext <<_ACEOF |
21480 | #line $LINENO "configure" | |
21481 | /* confdefs.h. */ | |
21482 | _ACEOF | |
21483 | cat confdefs.h >>conftest.$ac_ext | |
21484 | cat >>conftest.$ac_ext <<_ACEOF | |
21485 | /* end confdefs.h. */ | |
21486 | ||
90dd450c | 21487 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21488 | #ifdef __cplusplus |
21489 | extern "C" | |
21490 | #endif | |
90dd450c | 21491 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21492 | builtin and then its argument prototype would still apply. */ |
21493 | char dnet_ntoa (); | |
21494 | int | |
21495 | main () | |
21496 | { | |
21497 | dnet_ntoa (); | |
21498 | ; | |
21499 | return 0; | |
21500 | } | |
21501 | _ACEOF | |
21502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21504 | (eval $ac_link) 2>&5 | |
21505 | ac_status=$? | |
21506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21507 | (exit $ac_status); } && | |
21508 | { ac_try='test -s conftest$ac_exeext' | |
21509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21510 | (eval $ac_try) 2>&5 | |
21511 | ac_status=$? | |
21512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21513 | (exit $ac_status); }; }; then | |
21514 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21515 | else | |
21516 | echo "$as_me: failed program was:" >&5 | |
21517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21518 | ||
21519 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21520 | fi | |
21521 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21522 | LIBS=$ac_check_lib_save_LIBS | |
21523 | fi | |
21524 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21525 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21526 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21527 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21528 | fi |
21529 | ||
90dd450c | 21530 | fi |
e6cc62c6 VS |
21531 | fi |
21532 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21533 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21534 | |
90dd450c VZ |
21535 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21536 | # to get the SysV transport functions. | |
e6cc62c6 | 21537 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21538 | # needs -lnsl. |
21539 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21540 | # on Irix 5.2, according to T.E. Dickey. |
21541 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21542 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21543 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21544 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21545 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21547 | else | |
21548 | cat >conftest.$ac_ext <<_ACEOF | |
21549 | #line $LINENO "configure" | |
21550 | /* confdefs.h. */ | |
21551 | _ACEOF | |
21552 | cat confdefs.h >>conftest.$ac_ext | |
21553 | cat >>conftest.$ac_ext <<_ACEOF | |
21554 | /* end confdefs.h. */ | |
90dd450c | 21555 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21556 | which can conflict with char gethostbyname (); below. |
21557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21558 | <limits.h> exists even on freestanding compilers. */ | |
21559 | #ifdef __STDC__ | |
21560 | # include <limits.h> | |
21561 | #else | |
21562 | # include <assert.h> | |
21563 | #endif | |
90dd450c | 21564 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21565 | #ifdef __cplusplus |
21566 | extern "C" | |
21567 | { | |
21568 | #endif | |
90dd450c | 21569 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21570 | builtin and then its argument prototype would still apply. */ |
21571 | char gethostbyname (); | |
90dd450c VZ |
21572 | /* The GNU C library defines this for functions which it implements |
21573 | to always fail with ENOSYS. Some functions are actually named | |
21574 | something starting with __ and the normal name is an alias. */ | |
21575 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21576 | choke me | |
21577 | #else | |
e6cc62c6 VS |
21578 | char (*f) () = gethostbyname; |
21579 | #endif | |
21580 | #ifdef __cplusplus | |
21581 | } | |
90dd450c | 21582 | #endif |
978f1259 | 21583 | |
e6cc62c6 VS |
21584 | int |
21585 | main () | |
21586 | { | |
21587 | return f != gethostbyname; | |
21588 | ; | |
21589 | return 0; | |
21590 | } | |
21591 | _ACEOF | |
21592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21594 | (eval $ac_link) 2>&5 | |
21595 | ac_status=$? | |
21596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21597 | (exit $ac_status); } && | |
21598 | { ac_try='test -s conftest$ac_exeext' | |
21599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21600 | (eval $ac_try) 2>&5 | |
21601 | ac_status=$? | |
21602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21603 | (exit $ac_status); }; }; then | |
21604 | ac_cv_func_gethostbyname=yes | |
21605 | else | |
21606 | echo "$as_me: failed program was:" >&5 | |
21607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21608 | ||
21609 | ac_cv_func_gethostbyname=no | |
21610 | fi | |
21611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21612 | fi | |
21613 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21614 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21615 | |
90dd450c | 21616 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21617 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21618 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21619 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21621 | else |
e6cc62c6 | 21622 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21623 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21624 | cat >conftest.$ac_ext <<_ACEOF |
21625 | #line $LINENO "configure" | |
21626 | /* confdefs.h. */ | |
21627 | _ACEOF | |
21628 | cat confdefs.h >>conftest.$ac_ext | |
21629 | cat >>conftest.$ac_ext <<_ACEOF | |
21630 | /* end confdefs.h. */ | |
21631 | ||
90dd450c | 21632 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21633 | #ifdef __cplusplus |
21634 | extern "C" | |
21635 | #endif | |
90dd450c | 21636 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21637 | builtin and then its argument prototype would still apply. */ |
21638 | char gethostbyname (); | |
21639 | int | |
21640 | main () | |
21641 | { | |
21642 | gethostbyname (); | |
21643 | ; | |
21644 | return 0; | |
21645 | } | |
21646 | _ACEOF | |
21647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21649 | (eval $ac_link) 2>&5 | |
21650 | ac_status=$? | |
21651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21652 | (exit $ac_status); } && | |
21653 | { ac_try='test -s conftest$ac_exeext' | |
21654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21655 | (eval $ac_try) 2>&5 | |
21656 | ac_status=$? | |
21657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21658 | (exit $ac_status); }; }; then | |
21659 | ac_cv_lib_nsl_gethostbyname=yes | |
21660 | else | |
21661 | echo "$as_me: failed program was:" >&5 | |
21662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21663 | ||
21664 | ac_cv_lib_nsl_gethostbyname=no | |
21665 | fi | |
21666 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21667 | LIBS=$ac_check_lib_save_LIBS | |
21668 | fi | |
21669 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21670 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21671 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21672 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21673 | fi |
247f5006 | 21674 | |
e6cc62c6 VS |
21675 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21676 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21677 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21678 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21680 | else |
e6cc62c6 VS |
21681 | ac_check_lib_save_LIBS=$LIBS |
21682 | LIBS="-lbsd $LIBS" | |
21683 | cat >conftest.$ac_ext <<_ACEOF | |
21684 | #line $LINENO "configure" | |
21685 | /* confdefs.h. */ | |
21686 | _ACEOF | |
21687 | cat confdefs.h >>conftest.$ac_ext | |
21688 | cat >>conftest.$ac_ext <<_ACEOF | |
21689 | /* end confdefs.h. */ | |
21690 | ||
21691 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21692 | #ifdef __cplusplus | |
21693 | extern "C" | |
21694 | #endif | |
21695 | /* We use char because int might match the return type of a gcc2 | |
21696 | builtin and then its argument prototype would still apply. */ | |
21697 | char gethostbyname (); | |
21698 | int | |
21699 | main () | |
21700 | { | |
21701 | gethostbyname (); | |
21702 | ; | |
21703 | return 0; | |
21704 | } | |
21705 | _ACEOF | |
21706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21708 | (eval $ac_link) 2>&5 | |
21709 | ac_status=$? | |
21710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21711 | (exit $ac_status); } && | |
21712 | { ac_try='test -s conftest$ac_exeext' | |
21713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21714 | (eval $ac_try) 2>&5 | |
21715 | ac_status=$? | |
21716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21717 | (exit $ac_status); }; }; then | |
21718 | ac_cv_lib_bsd_gethostbyname=yes | |
21719 | else | |
21720 | echo "$as_me: failed program was:" >&5 | |
21721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21722 | ||
21723 | ac_cv_lib_bsd_gethostbyname=no | |
21724 | fi | |
21725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21726 | LIBS=$ac_check_lib_save_LIBS | |
21727 | fi | |
21728 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21729 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21730 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21731 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21732 | fi |
b12915c1 | 21733 | |
e6cc62c6 | 21734 | fi |
90dd450c VZ |
21735 | fi |
21736 | ||
21737 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21738 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21739 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21740 | # on later versions), says Simon Leinen: it contains gethostby* |
21741 | # variants that don't use the name server (or something). -lsocket | |
21742 | # must be given before -lnsl if both are needed. We assume that | |
21743 | # if connect needs -lnsl, so does gethostbyname. | |
21744 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21745 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21746 | if test "${ac_cv_func_connect+set}" = set; then | |
21747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21748 | else | |
21749 | cat >conftest.$ac_ext <<_ACEOF | |
21750 | #line $LINENO "configure" | |
21751 | /* confdefs.h. */ | |
21752 | _ACEOF | |
21753 | cat confdefs.h >>conftest.$ac_ext | |
21754 | cat >>conftest.$ac_ext <<_ACEOF | |
21755 | /* end confdefs.h. */ | |
90dd450c | 21756 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21757 | which can conflict with char connect (); below. |
21758 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21759 | <limits.h> exists even on freestanding compilers. */ | |
21760 | #ifdef __STDC__ | |
21761 | # include <limits.h> | |
21762 | #else | |
21763 | # include <assert.h> | |
21764 | #endif | |
90dd450c | 21765 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21766 | #ifdef __cplusplus |
21767 | extern "C" | |
21768 | { | |
21769 | #endif | |
90dd450c | 21770 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21771 | builtin and then its argument prototype would still apply. */ |
21772 | char connect (); | |
90dd450c VZ |
21773 | /* The GNU C library defines this for functions which it implements |
21774 | to always fail with ENOSYS. Some functions are actually named | |
21775 | something starting with __ and the normal name is an alias. */ | |
21776 | #if defined (__stub_connect) || defined (__stub___connect) | |
21777 | choke me | |
21778 | #else | |
e6cc62c6 VS |
21779 | char (*f) () = connect; |
21780 | #endif | |
21781 | #ifdef __cplusplus | |
21782 | } | |
90dd450c VZ |
21783 | #endif |
21784 | ||
e6cc62c6 VS |
21785 | int |
21786 | main () | |
21787 | { | |
21788 | return f != connect; | |
21789 | ; | |
21790 | return 0; | |
21791 | } | |
21792 | _ACEOF | |
21793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21795 | (eval $ac_link) 2>&5 | |
21796 | ac_status=$? | |
21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); } && | |
21799 | { ac_try='test -s conftest$ac_exeext' | |
21800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21801 | (eval $ac_try) 2>&5 | |
21802 | ac_status=$? | |
21803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21804 | (exit $ac_status); }; }; then | |
21805 | ac_cv_func_connect=yes | |
21806 | else | |
21807 | echo "$as_me: failed program was:" >&5 | |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21809 | ||
21810 | ac_cv_func_connect=no | |
21811 | fi | |
21812 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21813 | fi | |
21814 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21815 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21816 | |
90dd450c | 21817 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21818 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21819 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21820 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21822 | else |
e6cc62c6 | 21823 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21824 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21825 | cat >conftest.$ac_ext <<_ACEOF |
21826 | #line $LINENO "configure" | |
21827 | /* confdefs.h. */ | |
21828 | _ACEOF | |
21829 | cat confdefs.h >>conftest.$ac_ext | |
21830 | cat >>conftest.$ac_ext <<_ACEOF | |
21831 | /* end confdefs.h. */ | |
21832 | ||
90dd450c | 21833 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21834 | #ifdef __cplusplus |
21835 | extern "C" | |
21836 | #endif | |
90dd450c | 21837 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21838 | builtin and then its argument prototype would still apply. */ |
21839 | char connect (); | |
21840 | int | |
21841 | main () | |
21842 | { | |
21843 | connect (); | |
21844 | ; | |
21845 | return 0; | |
21846 | } | |
21847 | _ACEOF | |
21848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21850 | (eval $ac_link) 2>&5 | |
21851 | ac_status=$? | |
21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21853 | (exit $ac_status); } && | |
21854 | { ac_try='test -s conftest$ac_exeext' | |
21855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21856 | (eval $ac_try) 2>&5 | |
21857 | ac_status=$? | |
21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21859 | (exit $ac_status); }; }; then | |
21860 | ac_cv_lib_socket_connect=yes | |
21861 | else | |
21862 | echo "$as_me: failed program was:" >&5 | |
21863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21864 | ||
21865 | ac_cv_lib_socket_connect=no | |
21866 | fi | |
21867 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21868 | LIBS=$ac_check_lib_save_LIBS | |
21869 | fi | |
21870 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21871 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21872 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21873 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21874 | fi |
77e13408 | 21875 | |
90dd450c | 21876 | fi |
25d0687a | 21877 | |
e6cc62c6 VS |
21878 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21879 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21880 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21881 | if test "${ac_cv_func_remove+set}" = set; then | |
21882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21883 | else | |
21884 | cat >conftest.$ac_ext <<_ACEOF | |
21885 | #line $LINENO "configure" | |
21886 | /* confdefs.h. */ | |
21887 | _ACEOF | |
21888 | cat confdefs.h >>conftest.$ac_ext | |
21889 | cat >>conftest.$ac_ext <<_ACEOF | |
21890 | /* end confdefs.h. */ | |
90dd450c | 21891 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21892 | which can conflict with char remove (); below. |
21893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21894 | <limits.h> exists even on freestanding compilers. */ | |
21895 | #ifdef __STDC__ | |
21896 | # include <limits.h> | |
21897 | #else | |
21898 | # include <assert.h> | |
21899 | #endif | |
90dd450c | 21900 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21901 | #ifdef __cplusplus |
21902 | extern "C" | |
21903 | { | |
21904 | #endif | |
90dd450c | 21905 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21906 | builtin and then its argument prototype would still apply. */ |
21907 | char remove (); | |
90dd450c VZ |
21908 | /* The GNU C library defines this for functions which it implements |
21909 | to always fail with ENOSYS. Some functions are actually named | |
21910 | something starting with __ and the normal name is an alias. */ | |
21911 | #if defined (__stub_remove) || defined (__stub___remove) | |
21912 | choke me | |
21913 | #else | |
e6cc62c6 VS |
21914 | char (*f) () = remove; |
21915 | #endif | |
21916 | #ifdef __cplusplus | |
21917 | } | |
90dd450c | 21918 | #endif |
55e80573 | 21919 | |
e6cc62c6 VS |
21920 | int |
21921 | main () | |
21922 | { | |
21923 | return f != remove; | |
21924 | ; | |
21925 | return 0; | |
21926 | } | |
21927 | _ACEOF | |
21928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21930 | (eval $ac_link) 2>&5 | |
21931 | ac_status=$? | |
21932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21933 | (exit $ac_status); } && | |
21934 | { ac_try='test -s conftest$ac_exeext' | |
21935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21936 | (eval $ac_try) 2>&5 | |
21937 | ac_status=$? | |
21938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21939 | (exit $ac_status); }; }; then | |
21940 | ac_cv_func_remove=yes | |
21941 | else | |
21942 | echo "$as_me: failed program was:" >&5 | |
21943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21944 | ||
21945 | ac_cv_func_remove=no | |
21946 | fi | |
21947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21948 | fi | |
21949 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21950 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 21951 | |
90dd450c | 21952 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
21953 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21954 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21955 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21957 | else |
e6cc62c6 | 21958 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21959 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
21960 | cat >conftest.$ac_ext <<_ACEOF |
21961 | #line $LINENO "configure" | |
21962 | /* confdefs.h. */ | |
21963 | _ACEOF | |
21964 | cat confdefs.h >>conftest.$ac_ext | |
21965 | cat >>conftest.$ac_ext <<_ACEOF | |
21966 | /* end confdefs.h. */ | |
21967 | ||
90dd450c | 21968 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21969 | #ifdef __cplusplus |
21970 | extern "C" | |
21971 | #endif | |
90dd450c | 21972 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21973 | builtin and then its argument prototype would still apply. */ |
21974 | char remove (); | |
21975 | int | |
21976 | main () | |
21977 | { | |
21978 | remove (); | |
21979 | ; | |
21980 | return 0; | |
21981 | } | |
21982 | _ACEOF | |
21983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21985 | (eval $ac_link) 2>&5 | |
21986 | ac_status=$? | |
21987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21988 | (exit $ac_status); } && | |
21989 | { ac_try='test -s conftest$ac_exeext' | |
21990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21991 | (eval $ac_try) 2>&5 | |
21992 | ac_status=$? | |
21993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21994 | (exit $ac_status); }; }; then | |
21995 | ac_cv_lib_posix_remove=yes | |
21996 | else | |
21997 | echo "$as_me: failed program was:" >&5 | |
21998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21999 | ||
22000 | ac_cv_lib_posix_remove=no | |
22001 | fi | |
22002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22003 | LIBS=$ac_check_lib_save_LIBS | |
22004 | fi | |
22005 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22006 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22007 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22009 | fi |
f6bcfd97 | 22010 | |
6fa882bd RR |
22011 | fi |
22012 | ||
90dd450c | 22013 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22014 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22015 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22016 | if test "${ac_cv_func_shmat+set}" = set; then | |
22017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22018 | else | |
22019 | cat >conftest.$ac_ext <<_ACEOF | |
22020 | #line $LINENO "configure" | |
22021 | /* confdefs.h. */ | |
22022 | _ACEOF | |
22023 | cat confdefs.h >>conftest.$ac_ext | |
22024 | cat >>conftest.$ac_ext <<_ACEOF | |
22025 | /* end confdefs.h. */ | |
90dd450c | 22026 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22027 | which can conflict with char shmat (); below. |
22028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22029 | <limits.h> exists even on freestanding compilers. */ | |
22030 | #ifdef __STDC__ | |
22031 | # include <limits.h> | |
22032 | #else | |
22033 | # include <assert.h> | |
22034 | #endif | |
90dd450c | 22035 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22036 | #ifdef __cplusplus |
22037 | extern "C" | |
22038 | { | |
22039 | #endif | |
90dd450c | 22040 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22041 | builtin and then its argument prototype would still apply. */ |
22042 | char shmat (); | |
90dd450c VZ |
22043 | /* The GNU C library defines this for functions which it implements |
22044 | to always fail with ENOSYS. Some functions are actually named | |
22045 | something starting with __ and the normal name is an alias. */ | |
22046 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22047 | choke me | |
22048 | #else | |
e6cc62c6 VS |
22049 | char (*f) () = shmat; |
22050 | #endif | |
22051 | #ifdef __cplusplus | |
22052 | } | |
90dd450c | 22053 | #endif |
10f2d63a | 22054 | |
e6cc62c6 VS |
22055 | int |
22056 | main () | |
22057 | { | |
22058 | return f != shmat; | |
22059 | ; | |
22060 | return 0; | |
22061 | } | |
22062 | _ACEOF | |
22063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22065 | (eval $ac_link) 2>&5 | |
22066 | ac_status=$? | |
22067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22068 | (exit $ac_status); } && | |
22069 | { ac_try='test -s conftest$ac_exeext' | |
22070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22071 | (eval $ac_try) 2>&5 | |
22072 | ac_status=$? | |
22073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22074 | (exit $ac_status); }; }; then | |
22075 | ac_cv_func_shmat=yes | |
22076 | else | |
22077 | echo "$as_me: failed program was:" >&5 | |
22078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22079 | ||
22080 | ac_cv_func_shmat=no | |
22081 | fi | |
22082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22083 | fi | |
22084 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22085 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22086 | |
90dd450c | 22087 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22088 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22089 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22090 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22092 | else |
e6cc62c6 | 22093 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22094 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
22095 | cat >conftest.$ac_ext <<_ACEOF |
22096 | #line $LINENO "configure" | |
22097 | /* confdefs.h. */ | |
22098 | _ACEOF | |
22099 | cat confdefs.h >>conftest.$ac_ext | |
22100 | cat >>conftest.$ac_ext <<_ACEOF | |
22101 | /* end confdefs.h. */ | |
22102 | ||
8284b0c5 | 22103 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22104 | #ifdef __cplusplus |
22105 | extern "C" | |
22106 | #endif | |
90dd450c | 22107 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22108 | builtin and then its argument prototype would still apply. */ |
22109 | char shmat (); | |
22110 | int | |
22111 | main () | |
22112 | { | |
22113 | shmat (); | |
22114 | ; | |
22115 | return 0; | |
22116 | } | |
22117 | _ACEOF | |
22118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22120 | (eval $ac_link) 2>&5 | |
22121 | ac_status=$? | |
22122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22123 | (exit $ac_status); } && | |
22124 | { ac_try='test -s conftest$ac_exeext' | |
22125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22126 | (eval $ac_try) 2>&5 | |
22127 | ac_status=$? | |
22128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22129 | (exit $ac_status); }; }; then | |
22130 | ac_cv_lib_ipc_shmat=yes | |
22131 | else | |
22132 | echo "$as_me: failed program was:" >&5 | |
22133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22134 | ||
22135 | ac_cv_lib_ipc_shmat=no | |
22136 | fi | |
22137 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22138 | LIBS=$ac_check_lib_save_LIBS | |
22139 | fi | |
22140 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22141 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22142 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22143 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22144 | fi |
22145 | ||
d558c907 | 22146 | fi |
90dd450c | 22147 | fi |
3a922bb4 | 22148 | |
90dd450c | 22149 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22150 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22151 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22152 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22153 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22154 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22155 | # These have to be linked with before -lX11, unlike the other | |
22156 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22157 | # John Interrante, Karl Berry |
22158 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22159 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22160 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22162 | else | |
22163 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22164 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22165 | cat >conftest.$ac_ext <<_ACEOF |
22166 | #line $LINENO "configure" | |
22167 | /* confdefs.h. */ | |
22168 | _ACEOF | |
22169 | cat confdefs.h >>conftest.$ac_ext | |
22170 | cat >>conftest.$ac_ext <<_ACEOF | |
22171 | /* end confdefs.h. */ | |
22172 | ||
90dd450c | 22173 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22174 | #ifdef __cplusplus |
22175 | extern "C" | |
22176 | #endif | |
90dd450c | 22177 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22178 | builtin and then its argument prototype would still apply. */ |
22179 | char IceConnectionNumber (); | |
22180 | int | |
22181 | main () | |
22182 | { | |
22183 | IceConnectionNumber (); | |
22184 | ; | |
22185 | return 0; | |
22186 | } | |
22187 | _ACEOF | |
22188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22190 | (eval $ac_link) 2>&5 | |
22191 | ac_status=$? | |
22192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22193 | (exit $ac_status); } && | |
22194 | { ac_try='test -s conftest$ac_exeext' | |
22195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22196 | (eval $ac_try) 2>&5 | |
22197 | ac_status=$? | |
22198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22199 | (exit $ac_status); }; }; then | |
22200 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22201 | else | |
22202 | echo "$as_me: failed program was:" >&5 | |
22203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22204 | ||
22205 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22206 | fi | |
22207 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22208 | LIBS=$ac_check_lib_save_LIBS | |
22209 | fi | |
22210 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22211 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22212 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22213 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22214 | fi |
10f2d63a | 22215 | |
e6cc62c6 | 22216 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22217 | |
22218 | fi | |
22219 | ||
8284b0c5 | 22220 | |
90dd450c | 22221 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22222 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22223 | echo "$as_me: error: X11 not found" >&2;} | |
22224 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22225 | fi |
22226 | ||
22227 | GUI_TK_LIBRARY="$X_LIBS" | |
22228 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22229 | AFMINSTALL=afminstall | |
22230 | COMPILED_X_PROGRAM=0 | |
22231 | ||
21d1c967 | 22232 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22233 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22234 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22235 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22236 | echo "$as_me:$LINENO: result: not found" >&5 |
22237 | echo "${ECHO_T}not found" >&6 | |
22238 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22239 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22240 | { (exit 1); exit 1; }; } | |
90dd450c | 22241 | else |
e6cc62c6 VS |
22242 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22243 | echo "${ECHO_T}$MICROWIN" >&6 | |
22244 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22245 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22246 | _ACEOF |
21d1c967 | 22247 | |
90dd450c VZ |
22248 | fi |
22249 | fi | |
22250 | ||
22251 | xpm_link= | |
e6cc62c6 VS |
22252 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22253 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22254 | ||
90dd450c | 22255 | ac_find_libraries= |
2b5f62a0 | 22256 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22257 | do |
22258 | for ac_extension in a so sl dylib; do | |
22259 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22260 | ac_find_libraries=$ac_dir | |
22261 | break 2 | |
22262 | fi | |
22263 | done | |
22264 | done | |
22265 | ||
22266 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22267 | |
90dd450c VZ |
22268 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22269 | result=$? | |
22270 | if test $result = 0; then | |
22271 | ac_path_to_link="" | |
22272 | else | |
22273 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22274 | fi |
90dd450c | 22275 | |
21d1c967 GD |
22276 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22277 | xpm_link=" -lXpm" | |
e6cc62c6 | 22278 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22279 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22280 | _ACEOF |
90dd450c | 22281 | |
e6cc62c6 VS |
22282 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22283 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22284 | else |
e6cc62c6 VS |
22285 | cat >conftest.$ac_ext <<_ACEOF |
22286 | #line $LINENO "configure" | |
22287 | /* confdefs.h. */ | |
22288 | _ACEOF | |
22289 | cat confdefs.h >>conftest.$ac_ext | |
22290 | cat >>conftest.$ac_ext <<_ACEOF | |
22291 | /* end confdefs.h. */ | |
90dd450c | 22292 | |
21d1c967 | 22293 | #include <X11/xpm.h> |
e6cc62c6 VS |
22294 | |
22295 | int | |
22296 | main () | |
22297 | { | |
6f72b082 | 22298 | |
21d1c967 GD |
22299 | int version; |
22300 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22301 | |
22302 | ; | |
22303 | return 0; | |
22304 | } | |
22305 | _ACEOF | |
22306 | rm -f conftest.$ac_objext | |
22307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22308 | (eval $ac_compile) 2>&5 | |
22309 | ac_status=$? | |
22310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22311 | (exit $ac_status); } && | |
22312 | { ac_try='test -s conftest.$ac_objext' | |
22313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22314 | (eval $ac_try) 2>&5 | |
22315 | ac_status=$? | |
22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22317 | (exit $ac_status); }; }; then | |
22318 | ||
21d1c967 | 22319 | xpm_link=" -lXpm" |
e6cc62c6 | 22320 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22321 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22322 | _ACEOF |
90dd450c | 22323 | |
e6cc62c6 VS |
22324 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22325 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22326 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22327 | |
21d1c967 | 22328 | else |
e6cc62c6 VS |
22329 | echo "$as_me: failed program was:" >&5 |
22330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22331 | ||
22332 | ||
22333 | echo "$as_me:$LINENO: result: no" >&5 | |
22334 | echo "${ECHO_T}no" >&6 | |
22335 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22336 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22337 | ||
22338 | ||
6f72b082 | 22339 | fi |
e6cc62c6 | 22340 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22341 | fi |
90dd450c | 22342 | |
e6cc62c6 VS |
22343 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22344 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22345 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22347 | else |
e6cc62c6 | 22348 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22349 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22350 | cat >conftest.$ac_ext <<_ACEOF |
22351 | #line $LINENO "configure" | |
22352 | /* confdefs.h. */ | |
22353 | _ACEOF | |
22354 | cat confdefs.h >>conftest.$ac_ext | |
22355 | cat >>conftest.$ac_ext <<_ACEOF | |
22356 | /* end confdefs.h. */ | |
22357 | ||
f7f78039 | 22358 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22359 | #ifdef __cplusplus |
22360 | extern "C" | |
22361 | #endif | |
f7f78039 | 22362 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22363 | builtin and then its argument prototype would still apply. */ |
22364 | char XShapeQueryExtension (); | |
22365 | int | |
22366 | main () | |
22367 | { | |
22368 | XShapeQueryExtension (); | |
22369 | ; | |
22370 | return 0; | |
22371 | } | |
22372 | _ACEOF | |
22373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22375 | (eval $ac_link) 2>&5 | |
22376 | ac_status=$? | |
22377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22378 | (exit $ac_status); } && | |
22379 | { ac_try='test -s conftest$ac_exeext' | |
22380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22381 | (eval $ac_try) 2>&5 | |
22382 | ac_status=$? | |
22383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22384 | (exit $ac_status); }; }; then | |
22385 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22386 | else | |
22387 | echo "$as_me: failed program was:" >&5 | |
22388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22389 | ||
22390 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22391 | fi | |
22392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22393 | LIBS=$ac_check_lib_save_LIBS | |
22394 | fi | |
22395 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22396 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22397 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22398 | |
f7f78039 MB |
22399 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22400 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22401 | |
f7f78039 MB |
22402 | fi |
22403 | ||
22404 | ||
2b5f62a0 | 22405 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22406 | |
2b5f62a0 | 22407 | succeeded=no |
90dd450c | 22408 | |
2b5f62a0 VZ |
22409 | if test -z "$PKG_CONFIG"; then |
22410 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22411 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22414 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22416 | else |
e6cc62c6 VS |
22417 | case $PKG_CONFIG in |
22418 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22419 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22420 | ;; | |
2b5f62a0 | 22421 | *) |
e6cc62c6 VS |
22422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22423 | for as_dir in $PATH | |
22424 | do | |
22425 | IFS=$as_save_IFS | |
22426 | test -z "$as_dir" && as_dir=. | |
22427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22429 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22431 | break 2 | |
22432 | fi | |
22433 | done | |
22434 | done | |
22435 | ||
2b5f62a0 VZ |
22436 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22437 | ;; | |
22438 | esac | |
22439 | fi | |
e6cc62c6 VS |
22440 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22441 | ||
2b5f62a0 | 22442 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22443 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22444 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22445 | else |
e6cc62c6 VS |
22446 | echo "$as_me:$LINENO: result: no" >&5 |
22447 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22448 | fi |
22449 | ||
22450 | fi | |
22451 | ||
22452 | if test "$PKG_CONFIG" = "no" ; then | |
22453 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22454 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22455 | echo "*** to the full path to pkg-config." | |
22456 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22457 | else | |
22458 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22459 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22460 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22461 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22462 | |
22463 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22464 | echo "$as_me:$LINENO: result: yes" >&5 |
22465 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22466 | succeeded=yes |
22467 | ||
e6cc62c6 VS |
22468 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22469 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22470 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22471 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22472 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22473 | |
e6cc62c6 VS |
22474 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22475 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22476 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22477 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22478 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22479 | else |
22480 | PANGOX_CFLAGS="" | |
22481 | PANGOX_LIBS="" | |
e6cc62c6 | 22482 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22483 | ## do set a variable so people can do so. |
22484 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22485 | |
2b5f62a0 VZ |
22486 | fi |
22487 | ||
e6cc62c6 VS |
22488 | |
22489 | ||
2b5f62a0 VZ |
22490 | else |
22491 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22492 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22493 | fi | |
22494 | fi | |
22495 | ||
22496 | if test $succeeded = yes; then | |
e6cc62c6 | 22497 | |
2b5f62a0 | 22498 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22499 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22500 | |
2b5f62a0 | 22501 | else |
e6cc62c6 VS |
22502 | |
22503 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22504 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22505 | { (exit 1); exit 1; }; } | |
22506 | ||
22507 | ||
2b5f62a0 VZ |
22508 | fi |
22509 | ||
e6cc62c6 | 22510 | |
2b5f62a0 VZ |
22511 | succeeded=no |
22512 | ||
22513 | if test -z "$PKG_CONFIG"; then | |
22514 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22515 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22518 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22520 | else |
e6cc62c6 VS |
22521 | case $PKG_CONFIG in |
22522 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22523 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22524 | ;; | |
2b5f62a0 | 22525 | *) |
e6cc62c6 VS |
22526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22527 | for as_dir in $PATH | |
22528 | do | |
22529 | IFS=$as_save_IFS | |
22530 | test -z "$as_dir" && as_dir=. | |
22531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22533 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22535 | break 2 | |
22536 | fi | |
22537 | done | |
22538 | done | |
22539 | ||
2b5f62a0 VZ |
22540 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22541 | ;; | |
22542 | esac | |
22543 | fi | |
e6cc62c6 VS |
22544 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22545 | ||
2b5f62a0 | 22546 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22547 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22548 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22549 | else |
e6cc62c6 VS |
22550 | echo "$as_me:$LINENO: result: no" >&5 |
22551 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22552 | fi |
22553 | ||
22554 | fi | |
22555 | ||
22556 | if test "$PKG_CONFIG" = "no" ; then | |
22557 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22558 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22559 | echo "*** to the full path to pkg-config." | |
22560 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22561 | else | |
22562 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22563 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22564 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22565 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22566 | |
22567 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22568 | echo "$as_me:$LINENO: result: yes" >&5 |
22569 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22570 | succeeded=yes |
22571 | ||
e6cc62c6 VS |
22572 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22573 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22574 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22575 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22576 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22577 | |
e6cc62c6 VS |
22578 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22579 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22580 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22581 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22582 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22583 | else |
22584 | PANGOFT2_CFLAGS="" | |
22585 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22586 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22587 | ## do set a variable so people can do so. |
22588 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22589 | |
2b5f62a0 VZ |
22590 | fi |
22591 | ||
e6cc62c6 VS |
22592 | |
22593 | ||
2b5f62a0 VZ |
22594 | else |
22595 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22596 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22597 | fi | |
22598 | fi | |
22599 | ||
22600 | if test $succeeded = yes; then | |
e6cc62c6 | 22601 | |
2b5f62a0 | 22602 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22603 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22604 | |
2b5f62a0 | 22605 | else |
e6cc62c6 VS |
22606 | |
22607 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22608 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22609 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22610 | |
22611 | ||
2b5f62a0 VZ |
22612 | fi |
22613 | ||
e6cc62c6 | 22614 | |
2b5f62a0 VZ |
22615 | succeeded=no |
22616 | ||
22617 | if test -z "$PKG_CONFIG"; then | |
22618 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22619 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22620 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22622 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22624 | else |
e6cc62c6 VS |
22625 | case $PKG_CONFIG in |
22626 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22627 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22628 | ;; | |
2b5f62a0 | 22629 | *) |
e6cc62c6 VS |
22630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22631 | for as_dir in $PATH | |
22632 | do | |
22633 | IFS=$as_save_IFS | |
22634 | test -z "$as_dir" && as_dir=. | |
22635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22637 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22639 | break 2 | |
22640 | fi | |
22641 | done | |
22642 | done | |
22643 | ||
2b5f62a0 VZ |
22644 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22645 | ;; | |
22646 | esac | |
22647 | fi | |
e6cc62c6 VS |
22648 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22649 | ||
2b5f62a0 | 22650 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22651 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22652 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22653 | else |
e6cc62c6 VS |
22654 | echo "$as_me:$LINENO: result: no" >&5 |
22655 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22656 | fi |
22657 | ||
22658 | fi | |
22659 | ||
22660 | if test "$PKG_CONFIG" = "no" ; then | |
22661 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22662 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22663 | echo "*** to the full path to pkg-config." | |
22664 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22665 | else | |
22666 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22667 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22668 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22669 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22670 | |
22671 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22672 | echo "$as_me:$LINENO: result: yes" >&5 |
22673 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22674 | succeeded=yes |
22675 | ||
e6cc62c6 VS |
22676 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22677 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22678 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22679 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22680 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22681 | |
e6cc62c6 VS |
22682 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22683 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22684 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22685 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22686 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22687 | else |
22688 | PANGOXFT_CFLAGS="" | |
22689 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22690 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22691 | ## do set a variable so people can do so. |
22692 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22693 | |
2b5f62a0 VZ |
22694 | fi |
22695 | ||
e6cc62c6 VS |
22696 | |
22697 | ||
2b5f62a0 VZ |
22698 | else |
22699 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22700 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22701 | fi | |
22702 | fi | |
22703 | ||
22704 | if test $succeeded = yes; then | |
e6cc62c6 | 22705 | |
2b5f62a0 | 22706 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22707 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22708 | |
2b5f62a0 | 22709 | else |
e6cc62c6 VS |
22710 | |
22711 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22712 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22713 | ||
22714 | ||
2b5f62a0 VZ |
22715 | fi |
22716 | ||
22717 | fi | |
22718 | ||
22719 | wxUSE_UNIVERSAL="yes" | |
22720 | ||
22721 | if test "$wxUSE_NANOX" = "yes"; then | |
22722 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22723 | 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 |
22724 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22725 | else | |
22726 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22727 | fi | |
22728 | ||
22729 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22730 | TOOLKIT=X11 | |
22731 | GUIDIST=X11_DIST | |
22732 | fi | |
22733 | ||
21d1c967 GD |
22734 | if test "$wxUSE_MOTIF" = 1; then |
22735 | if test "$no_x" = yes; then | |
22736 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22737 | |
22738 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22739 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22740 | _ACEOF |
21d1c967 GD |
22741 | |
22742 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22743 | else | |
22744 | if test -n "$x_includes"; then | |
22745 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22746 | fi |
22747 | ||
21d1c967 GD |
22748 | # It would also be nice to do this for all -L options, not just this one. |
22749 | if test -n "$x_libraries"; then | |
22750 | X_LIBS="$X_LIBS -L$x_libraries" | |
22751 | # For Solaris; some versions of Sun CC require a space after -R and | |
22752 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22753 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22754 | "SunOS 5"*) |
e6cc62c6 VS |
22755 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22756 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22757 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22758 | cat >conftest.$ac_ext <<_ACEOF | |
22759 | #line $LINENO "configure" | |
22760 | /* confdefs.h. */ | |
22761 | _ACEOF | |
22762 | cat confdefs.h >>conftest.$ac_ext | |
22763 | cat >>conftest.$ac_ext <<_ACEOF | |
22764 | /* end confdefs.h. */ | |
22765 | ||
22766 | int | |
22767 | main () | |
22768 | { | |
21d1c967 | 22769 | |
e6cc62c6 VS |
22770 | ; |
22771 | return 0; | |
22772 | } | |
22773 | _ACEOF | |
22774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22776 | (eval $ac_link) 2>&5 | |
22777 | ac_status=$? | |
22778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 | (exit $ac_status); } && | |
22780 | { ac_try='test -s conftest$ac_exeext' | |
22781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22782 | (eval $ac_try) 2>&5 | |
22783 | ac_status=$? | |
22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22785 | (exit $ac_status); }; }; then | |
21d1c967 | 22786 | ac_R_nospace=yes |
698dcdb6 | 22787 | else |
e6cc62c6 VS |
22788 | echo "$as_me: failed program was:" >&5 |
22789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22790 | ||
22791 | ac_R_nospace=no | |
10f2d63a | 22792 | fi |
e6cc62c6 | 22793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22794 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22795 | echo "$as_me:$LINENO: result: no" >&5 |
22796 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22797 | X_LIBS="$X_LIBS -R$x_libraries" |
22798 | else | |
22799 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22800 | cat >conftest.$ac_ext <<_ACEOF |
22801 | #line $LINENO "configure" | |
22802 | /* confdefs.h. */ | |
22803 | _ACEOF | |
22804 | cat confdefs.h >>conftest.$ac_ext | |
22805 | cat >>conftest.$ac_ext <<_ACEOF | |
22806 | /* end confdefs.h. */ | |
22807 | ||
22808 | int | |
22809 | main () | |
22810 | { | |
f0c87536 | 22811 | |
e6cc62c6 VS |
22812 | ; |
22813 | return 0; | |
22814 | } | |
22815 | _ACEOF | |
22816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22818 | (eval $ac_link) 2>&5 | |
22819 | ac_status=$? | |
22820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22821 | (exit $ac_status); } && | |
22822 | { ac_try='test -s conftest$ac_exeext' | |
22823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22824 | (eval $ac_try) 2>&5 | |
22825 | ac_status=$? | |
22826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22827 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22828 | ac_R_space=yes |
22829 | else | |
e6cc62c6 VS |
22830 | echo "$as_me: failed program was:" >&5 |
22831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22832 | ||
22833 | ac_R_space=no | |
21d1c967 | 22834 | fi |
e6cc62c6 | 22835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22836 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22837 | echo "$as_me:$LINENO: result: yes" >&5 |
22838 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22839 | X_LIBS="$X_LIBS -R $x_libraries" |
22840 | else | |
e6cc62c6 VS |
22841 | echo "$as_me:$LINENO: result: neither works" >&5 |
22842 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22843 | fi |
22844 | fi | |
e6cc62c6 | 22845 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22846 | esac |
22847 | fi | |
90dd450c | 22848 | |
21d1c967 GD |
22849 | # Check for system-dependent libraries X programs must link with. |
22850 | # Do this before checking for the system-independent R6 libraries | |
22851 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22852 | ||
22853 | if test "$ISC" = yes; then | |
22854 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22855 | else | |
e6cc62c6 VS |
22856 | # Martyn Johnson says this is needed for Ultrix, if the X |
22857 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22858 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22859 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22860 | cat >conftest.$ac_ext <<_ACEOF | |
22861 | #line $LINENO "configure" | |
22862 | /* confdefs.h. */ | |
22863 | _ACEOF | |
22864 | cat confdefs.h >>conftest.$ac_ext | |
22865 | cat >>conftest.$ac_ext <<_ACEOF | |
22866 | /* end confdefs.h. */ | |
22867 | ||
247f5006 | 22868 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22869 | #ifdef __cplusplus |
22870 | extern "C" | |
22871 | #endif | |
247f5006 | 22872 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22873 | builtin and then its argument prototype would still apply. */ |
22874 | char XOpenDisplay (); | |
22875 | int | |
22876 | main () | |
22877 | { | |
22878 | XOpenDisplay (); | |
22879 | ; | |
22880 | return 0; | |
22881 | } | |
22882 | _ACEOF | |
22883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22885 | (eval $ac_link) 2>&5 | |
22886 | ac_status=$? | |
22887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22888 | (exit $ac_status); } && | |
22889 | { ac_try='test -s conftest$ac_exeext' | |
22890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22891 | (eval $ac_try) 2>&5 | |
22892 | ac_status=$? | |
22893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22894 | (exit $ac_status); }; }; then | |
22895 | : | |
22896 | else | |
22897 | echo "$as_me: failed program was:" >&5 | |
22898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22899 | |
e6cc62c6 VS |
22900 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22901 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22902 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22904 | else |
e6cc62c6 VS |
22905 | ac_check_lib_save_LIBS=$LIBS |
22906 | LIBS="-ldnet $LIBS" | |
22907 | cat >conftest.$ac_ext <<_ACEOF | |
22908 | #line $LINENO "configure" | |
22909 | /* confdefs.h. */ | |
22910 | _ACEOF | |
22911 | cat confdefs.h >>conftest.$ac_ext | |
22912 | cat >>conftest.$ac_ext <<_ACEOF | |
22913 | /* end confdefs.h. */ | |
a0b9e27f | 22914 | |
e6cc62c6 VS |
22915 | /* Override any gcc2 internal prototype to avoid an error. */ |
22916 | #ifdef __cplusplus | |
22917 | extern "C" | |
22918 | #endif | |
22919 | /* We use char because int might match the return type of a gcc2 | |
22920 | builtin and then its argument prototype would still apply. */ | |
22921 | char dnet_ntoa (); | |
22922 | int | |
22923 | main () | |
22924 | { | |
22925 | dnet_ntoa (); | |
22926 | ; | |
22927 | return 0; | |
22928 | } | |
22929 | _ACEOF | |
22930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22932 | (eval $ac_link) 2>&5 | |
22933 | ac_status=$? | |
22934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22935 | (exit $ac_status); } && | |
22936 | { ac_try='test -s conftest$ac_exeext' | |
22937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22938 | (eval $ac_try) 2>&5 | |
22939 | ac_status=$? | |
22940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22941 | (exit $ac_status); }; }; then | |
22942 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22943 | else | |
22944 | echo "$as_me: failed program was:" >&5 | |
22945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22946 | ||
22947 | ac_cv_lib_dnet_dnet_ntoa=no | |
22948 | fi | |
22949 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22950 | LIBS=$ac_check_lib_save_LIBS | |
22951 | fi | |
22952 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22953 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22954 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 22955 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 22956 | fi |
0fb0dd83 | 22957 | |
21d1c967 | 22958 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22959 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22960 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22961 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22963 | else |
e6cc62c6 | 22964 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22965 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
22966 | cat >conftest.$ac_ext <<_ACEOF |
22967 | #line $LINENO "configure" | |
22968 | /* confdefs.h. */ | |
22969 | _ACEOF | |
22970 | cat confdefs.h >>conftest.$ac_ext | |
22971 | cat >>conftest.$ac_ext <<_ACEOF | |
22972 | /* end confdefs.h. */ | |
22973 | ||
21d1c967 | 22974 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22975 | #ifdef __cplusplus |
22976 | extern "C" | |
22977 | #endif | |
21d1c967 | 22978 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22979 | builtin and then its argument prototype would still apply. */ |
22980 | char dnet_ntoa (); | |
22981 | int | |
22982 | main () | |
22983 | { | |
22984 | dnet_ntoa (); | |
22985 | ; | |
22986 | return 0; | |
22987 | } | |
22988 | _ACEOF | |
22989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22991 | (eval $ac_link) 2>&5 | |
22992 | ac_status=$? | |
22993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22994 | (exit $ac_status); } && | |
22995 | { ac_try='test -s conftest$ac_exeext' | |
22996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22997 | (eval $ac_try) 2>&5 | |
22998 | ac_status=$? | |
22999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23000 | (exit $ac_status); }; }; then | |
23001 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23002 | else | |
23003 | echo "$as_me: failed program was:" >&5 | |
23004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23005 | ||
23006 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23007 | fi | |
23008 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23009 | LIBS=$ac_check_lib_save_LIBS | |
23010 | fi | |
23011 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23012 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23013 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23014 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23015 | fi |
23016 | ||
21d1c967 | 23017 | fi |
e6cc62c6 VS |
23018 | fi |
23019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23020 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 23021 | |
21d1c967 GD |
23022 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23023 | # to get the SysV transport functions. | |
e6cc62c6 | 23024 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23025 | # needs -lnsl. |
23026 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23027 | # on Irix 5.2, according to T.E. Dickey. |
23028 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23029 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23030 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23031 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23032 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23034 | else | |
23035 | cat >conftest.$ac_ext <<_ACEOF | |
23036 | #line $LINENO "configure" | |
23037 | /* confdefs.h. */ | |
23038 | _ACEOF | |
23039 | cat confdefs.h >>conftest.$ac_ext | |
23040 | cat >>conftest.$ac_ext <<_ACEOF | |
23041 | /* end confdefs.h. */ | |
21d1c967 | 23042 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23043 | which can conflict with char gethostbyname (); below. |
23044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23045 | <limits.h> exists even on freestanding compilers. */ | |
23046 | #ifdef __STDC__ | |
23047 | # include <limits.h> | |
23048 | #else | |
23049 | # include <assert.h> | |
23050 | #endif | |
21d1c967 | 23051 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23052 | #ifdef __cplusplus |
23053 | extern "C" | |
23054 | { | |
23055 | #endif | |
21d1c967 | 23056 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23057 | builtin and then its argument prototype would still apply. */ |
23058 | char gethostbyname (); | |
21d1c967 GD |
23059 | /* The GNU C library defines this for functions which it implements |
23060 | to always fail with ENOSYS. Some functions are actually named | |
23061 | something starting with __ and the normal name is an alias. */ | |
23062 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23063 | choke me | |
23064 | #else | |
e6cc62c6 VS |
23065 | char (*f) () = gethostbyname; |
23066 | #endif | |
23067 | #ifdef __cplusplus | |
23068 | } | |
21d1c967 | 23069 | #endif |
90dd450c | 23070 | |
e6cc62c6 VS |
23071 | int |
23072 | main () | |
23073 | { | |
23074 | return f != gethostbyname; | |
23075 | ; | |
23076 | return 0; | |
23077 | } | |
23078 | _ACEOF | |
23079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23081 | (eval $ac_link) 2>&5 | |
23082 | ac_status=$? | |
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23084 | (exit $ac_status); } && | |
23085 | { ac_try='test -s conftest$ac_exeext' | |
23086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23087 | (eval $ac_try) 2>&5 | |
23088 | ac_status=$? | |
23089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23090 | (exit $ac_status); }; }; then | |
23091 | ac_cv_func_gethostbyname=yes | |
23092 | else | |
23093 | echo "$as_me: failed program was:" >&5 | |
23094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23095 | ||
23096 | ac_cv_func_gethostbyname=no | |
23097 | fi | |
23098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23099 | fi | |
23100 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23101 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23102 | |
21d1c967 | 23103 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23104 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23105 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23106 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23108 | else |
e6cc62c6 | 23109 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23110 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
23111 | cat >conftest.$ac_ext <<_ACEOF |
23112 | #line $LINENO "configure" | |
23113 | /* confdefs.h. */ | |
23114 | _ACEOF | |
23115 | cat confdefs.h >>conftest.$ac_ext | |
23116 | cat >>conftest.$ac_ext <<_ACEOF | |
23117 | /* end confdefs.h. */ | |
23118 | ||
21d1c967 | 23119 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23120 | #ifdef __cplusplus |
23121 | extern "C" | |
23122 | #endif | |
21d1c967 | 23123 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23124 | builtin and then its argument prototype would still apply. */ |
23125 | char gethostbyname (); | |
23126 | int | |
23127 | main () | |
23128 | { | |
23129 | gethostbyname (); | |
23130 | ; | |
23131 | return 0; | |
23132 | } | |
23133 | _ACEOF | |
23134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23136 | (eval $ac_link) 2>&5 | |
23137 | ac_status=$? | |
23138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23139 | (exit $ac_status); } && | |
23140 | { ac_try='test -s conftest$ac_exeext' | |
23141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23142 | (eval $ac_try) 2>&5 | |
23143 | ac_status=$? | |
23144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23145 | (exit $ac_status); }; }; then | |
23146 | ac_cv_lib_nsl_gethostbyname=yes | |
23147 | else | |
23148 | echo "$as_me: failed program was:" >&5 | |
23149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23150 | ||
23151 | ac_cv_lib_nsl_gethostbyname=no | |
23152 | fi | |
23153 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23154 | LIBS=$ac_check_lib_save_LIBS | |
23155 | fi | |
23156 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23157 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23158 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23159 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23160 | fi |
247f5006 | 23161 | |
e6cc62c6 VS |
23162 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
23163 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
23164 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
23165 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23167 | else |
e6cc62c6 VS |
23168 | ac_check_lib_save_LIBS=$LIBS |
23169 | LIBS="-lbsd $LIBS" | |
23170 | cat >conftest.$ac_ext <<_ACEOF | |
23171 | #line $LINENO "configure" | |
23172 | /* confdefs.h. */ | |
23173 | _ACEOF | |
23174 | cat confdefs.h >>conftest.$ac_ext | |
23175 | cat >>conftest.$ac_ext <<_ACEOF | |
23176 | /* end confdefs.h. */ | |
23177 | ||
23178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23179 | #ifdef __cplusplus | |
23180 | extern "C" | |
23181 | #endif | |
23182 | /* We use char because int might match the return type of a gcc2 | |
23183 | builtin and then its argument prototype would still apply. */ | |
23184 | char gethostbyname (); | |
23185 | int | |
23186 | main () | |
23187 | { | |
23188 | gethostbyname (); | |
23189 | ; | |
23190 | return 0; | |
23191 | } | |
23192 | _ACEOF | |
23193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23195 | (eval $ac_link) 2>&5 | |
23196 | ac_status=$? | |
23197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23198 | (exit $ac_status); } && | |
23199 | { ac_try='test -s conftest$ac_exeext' | |
23200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23201 | (eval $ac_try) 2>&5 | |
23202 | ac_status=$? | |
23203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23204 | (exit $ac_status); }; }; then | |
23205 | ac_cv_lib_bsd_gethostbyname=yes | |
23206 | else | |
23207 | echo "$as_me: failed program was:" >&5 | |
23208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23209 | ||
23210 | ac_cv_lib_bsd_gethostbyname=no | |
23211 | fi | |
23212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23213 | LIBS=$ac_check_lib_save_LIBS | |
23214 | fi | |
23215 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23216 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23217 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23218 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23219 | fi |
90dd450c | 23220 | |
e6cc62c6 | 23221 | fi |
90dd450c VZ |
23222 | fi |
23223 | ||
21d1c967 GD |
23224 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23225 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23226 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23227 | # on later versions), says Simon Leinen: it contains gethostby* |
23228 | # variants that don't use the name server (or something). -lsocket | |
23229 | # must be given before -lnsl if both are needed. We assume that | |
23230 | # if connect needs -lnsl, so does gethostbyname. | |
23231 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23232 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23233 | if test "${ac_cv_func_connect+set}" = set; then | |
23234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23235 | else | |
23236 | cat >conftest.$ac_ext <<_ACEOF | |
23237 | #line $LINENO "configure" | |
23238 | /* confdefs.h. */ | |
23239 | _ACEOF | |
23240 | cat confdefs.h >>conftest.$ac_ext | |
23241 | cat >>conftest.$ac_ext <<_ACEOF | |
23242 | /* end confdefs.h. */ | |
21d1c967 | 23243 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23244 | which can conflict with char connect (); below. |
23245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23246 | <limits.h> exists even on freestanding compilers. */ | |
23247 | #ifdef __STDC__ | |
23248 | # include <limits.h> | |
23249 | #else | |
23250 | # include <assert.h> | |
23251 | #endif | |
21d1c967 | 23252 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23253 | #ifdef __cplusplus |
23254 | extern "C" | |
23255 | { | |
23256 | #endif | |
21d1c967 | 23257 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23258 | builtin and then its argument prototype would still apply. */ |
23259 | char connect (); | |
21d1c967 GD |
23260 | /* The GNU C library defines this for functions which it implements |
23261 | to always fail with ENOSYS. Some functions are actually named | |
23262 | something starting with __ and the normal name is an alias. */ | |
23263 | #if defined (__stub_connect) || defined (__stub___connect) | |
23264 | choke me | |
23265 | #else | |
e6cc62c6 VS |
23266 | char (*f) () = connect; |
23267 | #endif | |
23268 | #ifdef __cplusplus | |
23269 | } | |
21d1c967 | 23270 | #endif |
90dd450c | 23271 | |
e6cc62c6 VS |
23272 | int |
23273 | main () | |
23274 | { | |
23275 | return f != connect; | |
23276 | ; | |
23277 | return 0; | |
23278 | } | |
23279 | _ACEOF | |
23280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23282 | (eval $ac_link) 2>&5 | |
23283 | ac_status=$? | |
23284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23285 | (exit $ac_status); } && | |
23286 | { ac_try='test -s conftest$ac_exeext' | |
23287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23288 | (eval $ac_try) 2>&5 | |
23289 | ac_status=$? | |
23290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23291 | (exit $ac_status); }; }; then | |
23292 | ac_cv_func_connect=yes | |
23293 | else | |
23294 | echo "$as_me: failed program was:" >&5 | |
23295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23296 | ||
23297 | ac_cv_func_connect=no | |
23298 | fi | |
23299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23300 | fi | |
23301 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23302 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23303 | |
21d1c967 | 23304 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23305 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23306 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23307 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23309 | else |
e6cc62c6 | 23310 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23311 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23312 | cat >conftest.$ac_ext <<_ACEOF |
23313 | #line $LINENO "configure" | |
23314 | /* confdefs.h. */ | |
23315 | _ACEOF | |
23316 | cat confdefs.h >>conftest.$ac_ext | |
23317 | cat >>conftest.$ac_ext <<_ACEOF | |
23318 | /* end confdefs.h. */ | |
23319 | ||
21d1c967 | 23320 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23321 | #ifdef __cplusplus |
23322 | extern "C" | |
23323 | #endif | |
21d1c967 | 23324 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23325 | builtin and then its argument prototype would still apply. */ |
23326 | char connect (); | |
23327 | int | |
23328 | main () | |
23329 | { | |
23330 | connect (); | |
23331 | ; | |
23332 | return 0; | |
23333 | } | |
23334 | _ACEOF | |
23335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23337 | (eval $ac_link) 2>&5 | |
23338 | ac_status=$? | |
23339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23340 | (exit $ac_status); } && | |
23341 | { ac_try='test -s conftest$ac_exeext' | |
23342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23343 | (eval $ac_try) 2>&5 | |
23344 | ac_status=$? | |
23345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23346 | (exit $ac_status); }; }; then | |
23347 | ac_cv_lib_socket_connect=yes | |
23348 | else | |
23349 | echo "$as_me: failed program was:" >&5 | |
23350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23351 | ||
23352 | ac_cv_lib_socket_connect=no | |
23353 | fi | |
23354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23355 | LIBS=$ac_check_lib_save_LIBS | |
23356 | fi | |
23357 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23358 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23359 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23360 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23361 | fi |
90dd450c | 23362 | |
21d1c967 | 23363 | fi |
90dd450c | 23364 | |
e6cc62c6 VS |
23365 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23366 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23367 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23368 | if test "${ac_cv_func_remove+set}" = set; then | |
23369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23370 | else | |
23371 | cat >conftest.$ac_ext <<_ACEOF | |
23372 | #line $LINENO "configure" | |
23373 | /* confdefs.h. */ | |
23374 | _ACEOF | |
23375 | cat confdefs.h >>conftest.$ac_ext | |
23376 | cat >>conftest.$ac_ext <<_ACEOF | |
23377 | /* end confdefs.h. */ | |
21d1c967 | 23378 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23379 | which can conflict with char remove (); below. |
23380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23381 | <limits.h> exists even on freestanding compilers. */ | |
23382 | #ifdef __STDC__ | |
23383 | # include <limits.h> | |
23384 | #else | |
23385 | # include <assert.h> | |
23386 | #endif | |
21d1c967 | 23387 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23388 | #ifdef __cplusplus |
23389 | extern "C" | |
23390 | { | |
23391 | #endif | |
21d1c967 | 23392 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23393 | builtin and then its argument prototype would still apply. */ |
23394 | char remove (); | |
21d1c967 GD |
23395 | /* The GNU C library defines this for functions which it implements |
23396 | to always fail with ENOSYS. Some functions are actually named | |
23397 | something starting with __ and the normal name is an alias. */ | |
23398 | #if defined (__stub_remove) || defined (__stub___remove) | |
23399 | choke me | |
23400 | #else | |
e6cc62c6 VS |
23401 | char (*f) () = remove; |
23402 | #endif | |
23403 | #ifdef __cplusplus | |
23404 | } | |
21d1c967 | 23405 | #endif |
90dd450c | 23406 | |
e6cc62c6 VS |
23407 | int |
23408 | main () | |
23409 | { | |
23410 | return f != remove; | |
23411 | ; | |
23412 | return 0; | |
23413 | } | |
23414 | _ACEOF | |
23415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23417 | (eval $ac_link) 2>&5 | |
23418 | ac_status=$? | |
23419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23420 | (exit $ac_status); } && | |
23421 | { ac_try='test -s conftest$ac_exeext' | |
23422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23423 | (eval $ac_try) 2>&5 | |
23424 | ac_status=$? | |
23425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23426 | (exit $ac_status); }; }; then | |
23427 | ac_cv_func_remove=yes | |
23428 | else | |
23429 | echo "$as_me: failed program was:" >&5 | |
23430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23431 | ||
23432 | ac_cv_func_remove=no | |
23433 | fi | |
23434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23435 | fi | |
23436 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23437 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23438 | |
21d1c967 | 23439 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23440 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23441 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23442 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23444 | else |
e6cc62c6 | 23445 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23446 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23447 | cat >conftest.$ac_ext <<_ACEOF |
23448 | #line $LINENO "configure" | |
23449 | /* confdefs.h. */ | |
23450 | _ACEOF | |
23451 | cat confdefs.h >>conftest.$ac_ext | |
23452 | cat >>conftest.$ac_ext <<_ACEOF | |
23453 | /* end confdefs.h. */ | |
23454 | ||
21d1c967 | 23455 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23456 | #ifdef __cplusplus |
23457 | extern "C" | |
23458 | #endif | |
21d1c967 | 23459 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23460 | builtin and then its argument prototype would still apply. */ |
23461 | char remove (); | |
23462 | int | |
23463 | main () | |
23464 | { | |
23465 | remove (); | |
23466 | ; | |
23467 | return 0; | |
23468 | } | |
23469 | _ACEOF | |
23470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23472 | (eval $ac_link) 2>&5 | |
23473 | ac_status=$? | |
23474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23475 | (exit $ac_status); } && | |
23476 | { ac_try='test -s conftest$ac_exeext' | |
23477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23478 | (eval $ac_try) 2>&5 | |
23479 | ac_status=$? | |
23480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23481 | (exit $ac_status); }; }; then | |
23482 | ac_cv_lib_posix_remove=yes | |
23483 | else | |
23484 | echo "$as_me: failed program was:" >&5 | |
23485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23486 | ||
23487 | ac_cv_lib_posix_remove=no | |
23488 | fi | |
23489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23490 | LIBS=$ac_check_lib_save_LIBS | |
23491 | fi | |
23492 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23493 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23494 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23495 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23496 | fi |
19bc6aad | 23497 | |
90dd450c | 23498 | fi |
19bc6aad | 23499 | |
21d1c967 | 23500 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23501 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23502 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23503 | if test "${ac_cv_func_shmat+set}" = set; then | |
23504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23505 | else | |
23506 | cat >conftest.$ac_ext <<_ACEOF | |
23507 | #line $LINENO "configure" | |
23508 | /* confdefs.h. */ | |
23509 | _ACEOF | |
23510 | cat confdefs.h >>conftest.$ac_ext | |
23511 | cat >>conftest.$ac_ext <<_ACEOF | |
23512 | /* end confdefs.h. */ | |
21d1c967 | 23513 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23514 | which can conflict with char shmat (); below. |
23515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23516 | <limits.h> exists even on freestanding compilers. */ | |
23517 | #ifdef __STDC__ | |
23518 | # include <limits.h> | |
23519 | #else | |
23520 | # include <assert.h> | |
23521 | #endif | |
21d1c967 | 23522 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23523 | #ifdef __cplusplus |
23524 | extern "C" | |
23525 | { | |
23526 | #endif | |
21d1c967 | 23527 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23528 | builtin and then its argument prototype would still apply. */ |
23529 | char shmat (); | |
21d1c967 GD |
23530 | /* The GNU C library defines this for functions which it implements |
23531 | to always fail with ENOSYS. Some functions are actually named | |
23532 | something starting with __ and the normal name is an alias. */ | |
23533 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23534 | choke me | |
23535 | #else | |
e6cc62c6 VS |
23536 | char (*f) () = shmat; |
23537 | #endif | |
23538 | #ifdef __cplusplus | |
23539 | } | |
21d1c967 | 23540 | #endif |
90dd450c | 23541 | |
e6cc62c6 VS |
23542 | int |
23543 | main () | |
23544 | { | |
23545 | return f != shmat; | |
23546 | ; | |
23547 | return 0; | |
23548 | } | |
23549 | _ACEOF | |
23550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23552 | (eval $ac_link) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); } && | |
23556 | { ac_try='test -s conftest$ac_exeext' | |
23557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23558 | (eval $ac_try) 2>&5 | |
23559 | ac_status=$? | |
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23561 | (exit $ac_status); }; }; then | |
23562 | ac_cv_func_shmat=yes | |
23563 | else | |
23564 | echo "$as_me: failed program was:" >&5 | |
23565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23566 | ||
23567 | ac_cv_func_shmat=no | |
23568 | fi | |
23569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23570 | fi | |
23571 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23572 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23573 | |
21d1c967 | 23574 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23575 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23576 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23577 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23579 | else |
e6cc62c6 | 23580 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23581 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23582 | cat >conftest.$ac_ext <<_ACEOF |
23583 | #line $LINENO "configure" | |
23584 | /* confdefs.h. */ | |
23585 | _ACEOF | |
23586 | cat confdefs.h >>conftest.$ac_ext | |
23587 | cat >>conftest.$ac_ext <<_ACEOF | |
23588 | /* end confdefs.h. */ | |
23589 | ||
5c6fa7d2 | 23590 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23591 | #ifdef __cplusplus |
23592 | extern "C" | |
23593 | #endif | |
5c6fa7d2 | 23594 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23595 | builtin and then its argument prototype would still apply. */ |
23596 | char shmat (); | |
23597 | int | |
23598 | main () | |
23599 | { | |
23600 | shmat (); | |
23601 | ; | |
23602 | return 0; | |
23603 | } | |
23604 | _ACEOF | |
23605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23607 | (eval $ac_link) 2>&5 | |
23608 | ac_status=$? | |
23609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23610 | (exit $ac_status); } && | |
23611 | { ac_try='test -s conftest$ac_exeext' | |
23612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23613 | (eval $ac_try) 2>&5 | |
23614 | ac_status=$? | |
23615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23616 | (exit $ac_status); }; }; then | |
23617 | ac_cv_lib_ipc_shmat=yes | |
23618 | else | |
23619 | echo "$as_me: failed program was:" >&5 | |
23620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23621 | ||
23622 | ac_cv_lib_ipc_shmat=no | |
23623 | fi | |
23624 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23625 | LIBS=$ac_check_lib_save_LIBS | |
23626 | fi | |
23627 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23628 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23629 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23630 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23631 | fi |
90dd450c | 23632 | |
90dd450c | 23633 | fi |
21d1c967 | 23634 | fi |
10f2d63a | 23635 | |
21d1c967 | 23636 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23637 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23638 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23639 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23640 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23641 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23642 | # These have to be linked with before -lX11, unlike the other | |
23643 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23644 | # John Interrante, Karl Berry |
23645 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23646 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23647 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23649 | else | |
23650 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23651 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23652 | cat >conftest.$ac_ext <<_ACEOF |
23653 | #line $LINENO "configure" | |
23654 | /* confdefs.h. */ | |
23655 | _ACEOF | |
23656 | cat confdefs.h >>conftest.$ac_ext | |
23657 | cat >>conftest.$ac_ext <<_ACEOF | |
23658 | /* end confdefs.h. */ | |
23659 | ||
21d1c967 | 23660 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23661 | #ifdef __cplusplus |
23662 | extern "C" | |
23663 | #endif | |
21d1c967 | 23664 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23665 | builtin and then its argument prototype would still apply. */ |
23666 | char IceConnectionNumber (); | |
23667 | int | |
23668 | main () | |
23669 | { | |
23670 | IceConnectionNumber (); | |
23671 | ; | |
23672 | return 0; | |
23673 | } | |
23674 | _ACEOF | |
23675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23677 | (eval $ac_link) 2>&5 | |
23678 | ac_status=$? | |
23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23680 | (exit $ac_status); } && | |
23681 | { ac_try='test -s conftest$ac_exeext' | |
23682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23683 | (eval $ac_try) 2>&5 | |
23684 | ac_status=$? | |
23685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23686 | (exit $ac_status); }; }; then | |
23687 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23688 | else | |
23689 | echo "$as_me: failed program was:" >&5 | |
23690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23691 | ||
23692 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23693 | fi | |
23694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23695 | LIBS=$ac_check_lib_save_LIBS | |
23696 | fi | |
23697 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23698 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23699 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23700 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23701 | fi |
21d1c967 | 23702 | |
e6cc62c6 | 23703 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23704 | |
10f2d63a VZ |
23705 | fi |
23706 | ||
8284b0c5 | 23707 | |
21d1c967 | 23708 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23709 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23710 | echo "$as_me: error: X11 not found" >&2;} | |
23711 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23712 | fi |
23713 | ||
2b5f62a0 VZ |
23714 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23715 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23716 | AFMINSTALL=afminstall |
23717 | COMPILED_X_PROGRAM=0 | |
23718 | ||
e6cc62c6 VS |
23719 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23720 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23721 | ||
21d1c967 | 23722 | ac_find_includes= |
2b5f62a0 | 23723 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23724 | do |
23725 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23726 | ac_find_includes=$ac_dir | |
23727 | break | |
23728 | fi | |
23729 | done | |
23730 | ||
23731 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23732 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23733 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23734 | ||
2b5f62a0 | 23735 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23736 | ac_path_to_include="" |
23737 | else | |
2b5f62a0 VZ |
23738 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23739 | result=$? | |
23740 | if test $result = 0; then | |
23741 | ac_path_to_include="" | |
23742 | else | |
23743 | ac_path_to_include=" -I$ac_find_includes" | |
23744 | fi | |
dd0e4a90 VZ |
23745 | fi |
23746 | ||
23747 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23748 | else |
e6cc62c6 VS |
23749 | cat >conftest.$ac_ext <<_ACEOF |
23750 | #line $LINENO "configure" | |
23751 | /* confdefs.h. */ | |
23752 | _ACEOF | |
23753 | cat confdefs.h >>conftest.$ac_ext | |
23754 | cat >>conftest.$ac_ext <<_ACEOF | |
23755 | /* end confdefs.h. */ | |
21d1c967 GD |
23756 | |
23757 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23758 | |
23759 | int | |
23760 | main () | |
23761 | { | |
21d1c967 GD |
23762 | |
23763 | int version; | |
23764 | version = xmUseVersion; | |
e6cc62c6 VS |
23765 | |
23766 | ; | |
23767 | return 0; | |
23768 | } | |
23769 | _ACEOF | |
23770 | rm -f conftest.$ac_objext | |
23771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23772 | (eval $ac_compile) 2>&5 | |
23773 | ac_status=$? | |
23774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23775 | (exit $ac_status); } && | |
23776 | { ac_try='test -s conftest.$ac_objext' | |
23777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23778 | (eval $ac_try) 2>&5 | |
23779 | ac_status=$? | |
23780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23781 | (exit $ac_status); }; }; then | |
23782 | ||
23783 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23784 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23785 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23786 | |
10f2d63a | 23787 | else |
e6cc62c6 VS |
23788 | echo "$as_me: failed program was:" >&5 |
23789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23790 | ||
23791 | ||
23792 | echo "$as_me:$LINENO: result: no" >&5 | |
23793 | echo "${ECHO_T}no" >&6 | |
23794 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23795 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23796 | { (exit 1); exit 1; }; } | |
23797 | ||
23798 | ||
10f2d63a | 23799 | fi |
e6cc62c6 | 23800 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23801 | fi |
10f2d63a | 23802 | |
21d1c967 | 23803 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23804 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23805 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23806 | ||
21d1c967 | 23807 | ac_find_libraries= |
2b5f62a0 | 23808 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23809 | do |
23810 | for ac_extension in a so sl dylib; do | |
23811 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23812 | ac_find_libraries=$ac_dir | |
23813 | break 2 | |
23814 | fi | |
23815 | done | |
23816 | done | |
23817 | ||
23818 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23819 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23820 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23821 | ||
21d1c967 | 23822 | |
21d1c967 GD |
23823 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23824 | result=$? | |
23825 | if test $result = 0; then | |
23826 | ac_path_to_link="" | |
23827 | else | |
23828 | ac_path_to_link=" -L$ac_find_libraries" | |
23829 | fi | |
23830 | ||
21d1c967 | 23831 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23832 | else |
dd0e4a90 VZ |
23833 | save_CFLAGS=$CFLAGS |
23834 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23835 | ||
e6cc62c6 VS |
23836 | cat >conftest.$ac_ext <<_ACEOF |
23837 | #line $LINENO "configure" | |
23838 | /* confdefs.h. */ | |
23839 | _ACEOF | |
23840 | cat confdefs.h >>conftest.$ac_ext | |
23841 | cat >>conftest.$ac_ext <<_ACEOF | |
23842 | /* end confdefs.h. */ | |
21d1c967 GD |
23843 | |
23844 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23845 | |
23846 | int | |
23847 | main () | |
23848 | { | |
21d1c967 GD |
23849 | |
23850 | int version; | |
23851 | version = xmUseVersion; | |
e6cc62c6 VS |
23852 | |
23853 | ; | |
23854 | return 0; | |
23855 | } | |
23856 | _ACEOF | |
23857 | rm -f conftest.$ac_objext | |
23858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23859 | (eval $ac_compile) 2>&5 | |
23860 | ac_status=$? | |
23861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23862 | (exit $ac_status); } && | |
23863 | { ac_try='test -s conftest.$ac_objext' | |
23864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23865 | (eval $ac_try) 2>&5 | |
23866 | ac_status=$? | |
23867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23868 | (exit $ac_status); }; }; then | |
23869 | ||
23870 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23871 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23872 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23873 | |
d836ee96 | 23874 | else |
e6cc62c6 VS |
23875 | echo "$as_me: failed program was:" >&5 |
23876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23877 | ||
23878 | ||
23879 | echo "$as_me:$LINENO: result: no" >&5 | |
23880 | echo "${ECHO_T}no" >&6 | |
23881 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23882 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23883 | { (exit 1); exit 1; }; } | |
23884 | ||
23885 | ||
d836ee96 | 23886 | fi |
e6cc62c6 | 23887 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23888 | |
23889 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23890 | fi |
23891 | fi | |
23892 | ||
23893 | xpm_link= | |
e6cc62c6 VS |
23894 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
23895 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23896 | ||
21d1c967 | 23897 | ac_find_libraries= |
2b5f62a0 | 23898 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23899 | do |
23900 | for ac_extension in a so sl dylib; do | |
23901 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23902 | ac_find_libraries=$ac_dir | |
23903 | break 2 | |
23904 | fi | |
23905 | done | |
23906 | done | |
23907 | ||
23908 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 23909 | |
21d1c967 GD |
23910 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23911 | result=$? | |
23912 | if test $result = 0; then | |
23913 | ac_path_to_link="" | |
23914 | else | |
23915 | ac_path_to_link=" -L$ac_find_libraries" | |
23916 | fi | |
23917 | ||
23918 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 23919 | |
21d1c967 | 23920 | xpm_link=" -lXpm" |
e6cc62c6 | 23921 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23922 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23923 | _ACEOF |
90dd450c | 23924 | |
e6cc62c6 VS |
23925 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23926 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 23927 | else |
dd0e4a90 VZ |
23928 | save_CFLAGS=$CFLAGS |
23929 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23930 | ||
e6cc62c6 VS |
23931 | cat >conftest.$ac_ext <<_ACEOF |
23932 | #line $LINENO "configure" | |
23933 | /* confdefs.h. */ | |
23934 | _ACEOF | |
23935 | cat confdefs.h >>conftest.$ac_ext | |
23936 | cat >>conftest.$ac_ext <<_ACEOF | |
23937 | /* end confdefs.h. */ | |
21d1c967 GD |
23938 | |
23939 | #include <X11/xpm.h> | |
e6cc62c6 VS |
23940 | |
23941 | int | |
23942 | main () | |
23943 | { | |
21d1c967 GD |
23944 | |
23945 | int version; | |
23946 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
23947 | |
23948 | ; | |
23949 | return 0; | |
23950 | } | |
23951 | _ACEOF | |
23952 | rm -f conftest.$ac_objext | |
23953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23954 | (eval $ac_compile) 2>&5 | |
23955 | ac_status=$? | |
23956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23957 | (exit $ac_status); } && | |
23958 | { ac_try='test -s conftest.$ac_objext' | |
23959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23960 | (eval $ac_try) 2>&5 | |
23961 | ac_status=$? | |
23962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23963 | (exit $ac_status); }; }; then | |
23964 | ||
21d1c967 | 23965 | xpm_link=" -lXpm" |
e6cc62c6 | 23966 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23967 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23968 | _ACEOF |
21d1c967 | 23969 | |
e6cc62c6 VS |
23970 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
23971 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23972 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 23973 | |
d836ee96 | 23974 | else |
e6cc62c6 VS |
23975 | echo "$as_me: failed program was:" >&5 |
23976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23977 | ||
23978 | ||
23979 | echo "$as_me:$LINENO: result: no" >&5 | |
23980 | echo "${ECHO_T}no" >&6 | |
23981 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23982 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23983 | ||
23984 | ||
d836ee96 | 23985 | fi |
e6cc62c6 | 23986 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23987 | |
23988 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23989 | fi |
23990 | ||
e6cc62c6 VS |
23991 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
23992 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
23993 | libp_link="" |
23994 | libsm_ice_link="" | |
23995 | libs_found=0 | |
23996 | for libp in "" " -lXp"; do | |
23997 | if test "$libs_found" = "0"; then | |
23998 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 23999 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
24000 | save_LIBS="$LIBS" |
24001 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
24002 | save_CFLAGS=$CFLAGS |
24003 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24004 | ||
e6cc62c6 VS |
24005 | cat >conftest.$ac_ext <<_ACEOF |
24006 | #line $LINENO "configure" | |
24007 | /* confdefs.h. */ | |
24008 | _ACEOF | |
24009 | cat confdefs.h >>conftest.$ac_ext | |
24010 | cat >>conftest.$ac_ext <<_ACEOF | |
24011 | /* end confdefs.h. */ | |
17234b26 | 24012 | |
6a30f1c8 MB |
24013 | #include <Xm/Xm.h> |
24014 | #include <Xm/List.h> | |
e6cc62c6 VS |
24015 | |
24016 | int | |
24017 | main () | |
24018 | { | |
6a30f1c8 MB |
24019 | |
24020 | XmString string = NULL; | |
24021 | Widget w = NULL; | |
24022 | int position = 0; | |
24023 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24024 | |
24025 | ; | |
24026 | return 0; | |
24027 | } | |
24028 | _ACEOF | |
24029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24031 | (eval $ac_link) 2>&5 | |
24032 | ac_status=$? | |
24033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24034 | (exit $ac_status); } && | |
24035 | { ac_try='test -s conftest$ac_exeext' | |
24036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24037 | (eval $ac_try) 2>&5 | |
24038 | ac_status=$? | |
24039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24040 | (exit $ac_status); }; }; then | |
24041 | ||
6a30f1c8 MB |
24042 | libp_link="$libp" |
24043 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24044 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24045 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24046 | libs_found=1 |
e6cc62c6 | 24047 | |
6a30f1c8 | 24048 | else |
e6cc62c6 VS |
24049 | echo "$as_me: failed program was:" >&5 |
24050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24051 | ||
24052 | ||
24053 | ||
6a30f1c8 | 24054 | fi |
e6cc62c6 | 24055 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24056 | |
6a30f1c8 | 24057 | LIBS="$save_LIBS" |
dd0e4a90 | 24058 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24059 | fi |
24060 | done | |
24061 | fi | |
24062 | done | |
24063 | ||
24064 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24065 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24066 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24067 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24068 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24069 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24070 | fi |
24071 | ||
da494b40 MB |
24072 | save_CFLAGS=$CFLAGS |
24073 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24074 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24075 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24076 | cat >conftest.$ac_ext <<_ACEOF | |
24077 | #line $LINENO "configure" | |
24078 | /* confdefs.h. */ | |
24079 | _ACEOF | |
24080 | cat confdefs.h >>conftest.$ac_ext | |
24081 | cat >>conftest.$ac_ext <<_ACEOF | |
24082 | /* end confdefs.h. */ | |
da494b40 MB |
24083 | |
24084 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24085 | |
24086 | int | |
24087 | main () | |
24088 | { | |
da494b40 MB |
24089 | |
24090 | #if XmVersion < 2000 | |
24091 | #error "Not Motif 2" | |
24092 | #endif | |
e6cc62c6 VS |
24093 | |
24094 | ; | |
24095 | return 0; | |
24096 | } | |
24097 | _ACEOF | |
24098 | rm -f conftest.$ac_objext | |
24099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24100 | (eval $ac_compile) 2>&5 | |
24101 | ac_status=$? | |
24102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24103 | (exit $ac_status); } && | |
24104 | { ac_try='test -s conftest.$ac_objext' | |
24105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24106 | (eval $ac_try) 2>&5 | |
24107 | ac_status=$? | |
24108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24109 | (exit $ac_status); }; }; then | |
24110 | ||
24111 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24112 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24113 | _ACEOF |
24114 | ||
24115 | echo "$as_me:$LINENO: result: found" >&5 | |
24116 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24117 | |
da494b40 | 24118 | else |
e6cc62c6 VS |
24119 | echo "$as_me: failed program was:" >&5 |
24120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24121 | ||
24122 | ||
24123 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24124 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24125 | _ACEOF |
24126 | ||
24127 | echo "$as_me:$LINENO: result: not found" >&5 | |
24128 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24129 | |
da494b40 | 24130 | fi |
e6cc62c6 | 24131 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24132 | CFLAGS=$save_CFLAGS |
24133 | ||
6a30f1c8 | 24134 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24135 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24136 | TOOLKIT=MOTIF |
24137 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24138 | wxHAVE_XEXT_LIB=1 |
24139 | fi | |
24140 | ||
24141 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
24142 | test "$wxHAVE_XEXT_LIB" = 1; then | |
24143 | save_CFLAGS="$CFLAGS" | |
24144 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24145 | ||
e6cc62c6 VS |
24146 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
24147 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
24148 | cat >conftest.$ac_ext <<_ACEOF | |
24149 | #line $LINENO "configure" | |
24150 | /* confdefs.h. */ | |
24151 | _ACEOF | |
24152 | cat confdefs.h >>conftest.$ac_ext | |
24153 | cat >>conftest.$ac_ext <<_ACEOF | |
24154 | /* end confdefs.h. */ | |
24155 | ||
24156 | #include <X11/Xlib.h> | |
f7f78039 | 24157 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
24158 | |
24159 | int | |
24160 | main () | |
24161 | { | |
f7f78039 MB |
24162 | |
24163 | int dummy1, dummy2; | |
24164 | XShapeQueryExtension((Display*)NULL, | |
24165 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24166 | |
24167 | ; | |
24168 | return 0; | |
24169 | } | |
24170 | _ACEOF | |
24171 | rm -f conftest.$ac_objext | |
24172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24173 | (eval $ac_compile) 2>&5 | |
24174 | ac_status=$? | |
24175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24176 | (exit $ac_status); } && | |
24177 | { ac_try='test -s conftest.$ac_objext' | |
24178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24179 | (eval $ac_try) 2>&5 | |
24180 | ac_status=$? | |
24181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24182 | (exit $ac_status); }; }; then | |
24183 | ||
24184 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 24185 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24186 | _ACEOF |
24187 | ||
24188 | echo "$as_me:$LINENO: result: found" >&5 | |
24189 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 24190 | |
f7f78039 | 24191 | else |
e6cc62c6 VS |
24192 | echo "$as_me: failed program was:" >&5 |
24193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24194 | ||
24195 | ||
24196 | echo "$as_me:$LINENO: result: not found" >&5 | |
24197 | echo "${ECHO_T}not found" >&6 | |
24198 | ||
f7f78039 | 24199 | fi |
e6cc62c6 | 24200 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24201 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24202 | fi |
24203 | ||
24204 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24205 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24206 | |
0c98a14e | 24207 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24208 | TOOLKIT=MAC |
24209 | GUIDIST=MACX_DIST | |
cf615ebb | 24210 | WXBASEPORT="_carbon" |
21d1c967 GD |
24211 | fi |
24212 | ||
ac0c4cc3 DE |
24213 | if test "$wxUSE_COCOA" = 1; then |
24214 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24215 | TOOLKIT=COCOA | |
24216 | GUIDIST=COCOA_DIST | |
24217 | fi | |
24218 | ||
21d1c967 GD |
24219 | if test "$wxUSE_PM" = 1; then |
24220 | TOOLKIT=PM | |
24221 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
24222 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
24223 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 24224 | wxUSE_THREADS="no" |
21d1c967 GD |
24225 | fi |
24226 | ||
24227 | if test "$TOOLKIT" = "PM" ; then | |
24228 | TOOLKIT_DIR="os2" | |
24229 | else | |
24230 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24231 | fi | |
24232 | ||
24233 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24234 | ||
24235 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24236 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24237 | ||
24238 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24239 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24240 | ||
24241 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24242 | if test "$wxUSE_X11" = 1; then | |
24243 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24244 | else | |
24245 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24246 | fi | |
24247 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24248 | WIDGET_SET=univ | |
24249 | else | |
24250 | ALL_OBJECTS="\$(GUIOBJS)" | |
24251 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24252 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24253 | fi | |
24254 | ||
24255 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24256 | ||
24257 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24258 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24259 | fi | |
24260 | ||
24261 | if test "$wxUSE_HTML" = "yes"; then | |
24262 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24263 | fi | |
24264 | ||
24265 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24266 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24267 | fi | |
24268 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24269 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24270 | fi | |
24271 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24272 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24273 | fi | |
24274 | ||
24275 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24276 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24277 | else |
21d1c967 GD |
24278 | USE_GUI=0 |
24279 | ||
24280 | TOOLKIT_DIR="base" | |
24281 | ||
24282 | if test "$USE_WIN32" = 1 ; then | |
24283 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24284 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24285 | ||
24286 | TOOLKIT="MSW" | |
24287 | else | |
24288 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24289 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24290 | fi | |
24291 | ||
24292 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24293 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24294 | ||
24295 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24296 | ||
24297 | GUIDIST="BASE_DIST" | |
24298 | DISTDIR="wxBase" | |
d836ee96 VZ |
24299 | fi |
24300 | ||
8284b0c5 | 24301 | |
8647bec6 RG |
24302 | |
24303 | ||
24304 | IODBC_C_SRC="" | |
24305 | ||
24306 | ||
24307 | if test "$TOOLKIT" != "MSW" ; then | |
24308 | ||
bb41dcbe | 24309 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24310 | |
bb41dcbe | 24311 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24312 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24313 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24314 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24316 | fi | |
24317 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24318 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24319 | else | |
24320 | # Is the header compilable? | |
24321 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24322 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24323 | cat >conftest.$ac_ext <<_ACEOF | |
24324 | #line $LINENO "configure" | |
24325 | /* confdefs.h. */ | |
24326 | _ACEOF | |
24327 | cat confdefs.h >>conftest.$ac_ext | |
24328 | cat >>conftest.$ac_ext <<_ACEOF | |
24329 | /* end confdefs.h. */ | |
24330 | $ac_includes_default | |
8647bec6 | 24331 | #include <sql.h> |
e6cc62c6 VS |
24332 | _ACEOF |
24333 | rm -f conftest.$ac_objext | |
24334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24335 | (eval $ac_compile) 2>&5 | |
24336 | ac_status=$? | |
24337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24338 | (exit $ac_status); } && | |
24339 | { ac_try='test -s conftest.$ac_objext' | |
24340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24341 | (eval $ac_try) 2>&5 | |
24342 | ac_status=$? | |
24343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24344 | (exit $ac_status); }; }; then | |
24345 | ac_header_compiler=yes | |
24346 | else | |
24347 | echo "$as_me: failed program was:" >&5 | |
24348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24349 | ||
24350 | ac_header_compiler=no | |
24351 | fi | |
24352 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24353 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24354 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24355 | ||
24356 | # Is the header present? | |
24357 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24358 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24359 | cat >conftest.$ac_ext <<_ACEOF | |
24360 | #line $LINENO "configure" | |
24361 | /* confdefs.h. */ | |
24362 | _ACEOF | |
24363 | cat confdefs.h >>conftest.$ac_ext | |
24364 | cat >>conftest.$ac_ext <<_ACEOF | |
24365 | /* end confdefs.h. */ | |
24366 | #include <sql.h> | |
24367 | _ACEOF | |
24368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24370 | ac_status=$? | |
24371 | grep -v '^ *+' conftest.er1 >conftest.err | |
24372 | rm -f conftest.er1 | |
24373 | cat conftest.err >&5 | |
24374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24375 | (exit $ac_status); } >/dev/null; then | |
24376 | if test -s conftest.err; then | |
24377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24378 | else | |
24379 | ac_cpp_err= | |
24380 | fi | |
24381 | else | |
24382 | ac_cpp_err=yes | |
24383 | fi | |
24384 | if test -z "$ac_cpp_err"; then | |
24385 | ac_header_preproc=yes | |
24386 | else | |
24387 | echo "$as_me: failed program was:" >&5 | |
24388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24389 | ||
24390 | ac_header_preproc=no | |
24391 | fi | |
24392 | rm -f conftest.err conftest.$ac_ext | |
24393 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24394 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24395 | ||
24396 | # So? What about this header? | |
24397 | case $ac_header_compiler:$ac_header_preproc in | |
24398 | yes:no ) | |
24399 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24400 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24401 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24402 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24403 | ( | |
24404 | cat <<\_ASBOX | |
24405 | ## ------------------------------------ ## | |
24406 | ## Report this to bug-autoconf@gnu.org. ## | |
24407 | ## ------------------------------------ ## | |
24408 | _ASBOX | |
24409 | ) | | |
24410 | sed "s/^/$as_me: WARNING: /" >&2 | |
24411 | ;; | |
24412 | no:yes ) | |
24413 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24414 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24415 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24416 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24417 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24418 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24419 | ( | |
24420 | cat <<\_ASBOX | |
24421 | ## ------------------------------------ ## | |
24422 | ## Report this to bug-autoconf@gnu.org. ## | |
24423 | ## ------------------------------------ ## | |
24424 | _ASBOX | |
24425 | ) | | |
24426 | sed "s/^/$as_me: WARNING: /" >&2 | |
24427 | ;; | |
24428 | esac | |
24429 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24430 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24431 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24433 | else |
e6cc62c6 VS |
24434 | ac_cv_header_sql_h=$ac_header_preproc |
24435 | fi | |
24436 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24437 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24438 | ||
bb41dcbe VS |
24439 | fi |
24440 | if test $ac_cv_header_sql_h = yes; then | |
24441 | found_sql_h=1 | |
8647bec6 RG |
24442 | fi |
24443 | ||
e6cc62c6 | 24444 | |
bb41dcbe VS |
24445 | if test "x$found_sql_h" = "x1" ; then |
24446 | echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5 | |
24447 | echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24448 | if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then | |
e6cc62c6 | 24449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24450 | else |
bb41dcbe VS |
24451 | ac_check_lib_save_LIBS=$LIBS |
24452 | LIBS="-lSQLAllocEnv $LIBS" | |
e6cc62c6 VS |
24453 | cat >conftest.$ac_ext <<_ACEOF |
24454 | #line $LINENO "configure" | |
24455 | /* confdefs.h. */ | |
24456 | _ACEOF | |
24457 | cat confdefs.h >>conftest.$ac_ext | |
24458 | cat >>conftest.$ac_ext <<_ACEOF | |
24459 | /* end confdefs.h. */ | |
24460 | ||
8647bec6 | 24461 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24462 | #ifdef __cplusplus |
24463 | extern "C" | |
24464 | #endif | |
8647bec6 | 24465 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24466 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24467 | char iodbc (); |
e6cc62c6 VS |
24468 | int |
24469 | main () | |
24470 | { | |
bb41dcbe | 24471 | iodbc (); |
e6cc62c6 VS |
24472 | ; |
24473 | return 0; | |
24474 | } | |
24475 | _ACEOF | |
24476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24478 | (eval $ac_link) 2>&5 | |
24479 | ac_status=$? | |
24480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24481 | (exit $ac_status); } && | |
24482 | { ac_try='test -s conftest$ac_exeext' | |
24483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24484 | (eval $ac_try) 2>&5 | |
24485 | ac_status=$? | |
24486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24487 | (exit $ac_status); }; }; then | |
bb41dcbe | 24488 | ac_cv_lib_SQLAllocEnv_iodbc=yes |
8647bec6 | 24489 | else |
e6cc62c6 VS |
24490 | echo "$as_me: failed program was:" >&5 |
24491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24492 | ||
bb41dcbe | 24493 | ac_cv_lib_SQLAllocEnv_iodbc=no |
8647bec6 | 24494 | fi |
e6cc62c6 | 24495 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24496 | LIBS=$ac_check_lib_save_LIBS |
24497 | fi | |
24498 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5 | |
24499 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6 | |
24500 | if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then | |
24501 | ODBC_LINK=" -liodbc" | |
24502 | else | |
24503 | ||
24504 | echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5 | |
24505 | echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24506 | if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then | |
24507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24508 | else | |
24509 | ac_check_lib_save_LIBS=$LIBS | |
24510 | LIBS="-lSQLAllocEnv $LIBS" | |
24511 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24512 | #line $LINENO "configure" |
24513 | /* confdefs.h. */ | |
24514 | _ACEOF | |
24515 | cat confdefs.h >>conftest.$ac_ext | |
24516 | cat >>conftest.$ac_ext <<_ACEOF | |
24517 | /* end confdefs.h. */ | |
24518 | ||
8647bec6 | 24519 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24520 | #ifdef __cplusplus |
24521 | extern "C" | |
24522 | #endif | |
8647bec6 | 24523 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24524 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24525 | char unixodbc (); |
e6cc62c6 VS |
24526 | int |
24527 | main () | |
24528 | { | |
bb41dcbe | 24529 | unixodbc (); |
e6cc62c6 VS |
24530 | ; |
24531 | return 0; | |
24532 | } | |
24533 | _ACEOF | |
24534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24536 | (eval $ac_link) 2>&5 | |
24537 | ac_status=$? | |
24538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24539 | (exit $ac_status); } && | |
24540 | { ac_try='test -s conftest$ac_exeext' | |
24541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24542 | (eval $ac_try) 2>&5 | |
24543 | ac_status=$? | |
24544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24545 | (exit $ac_status); }; }; then | |
bb41dcbe | 24546 | ac_cv_lib_SQLAllocEnv_unixodbc=yes |
8647bec6 | 24547 | else |
e6cc62c6 VS |
24548 | echo "$as_me: failed program was:" >&5 |
24549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24550 | ||
bb41dcbe | 24551 | ac_cv_lib_SQLAllocEnv_unixodbc=no |
8647bec6 | 24552 | fi |
e6cc62c6 | 24553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24554 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24555 | fi |
bb41dcbe VS |
24556 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5 |
24557 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6 | |
24558 | if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then | |
24559 | ODBC_LINK=" -lunixodbc" | |
24560 | else | |
24561 | ||
24562 | echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5 | |
24563 | echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24564 | if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then | |
24565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24566 | else | |
24567 | ac_check_lib_save_LIBS=$LIBS | |
24568 | LIBS="-lSQLAllocEnv $LIBS" | |
24569 | cat >conftest.$ac_ext <<_ACEOF | |
24570 | #line $LINENO "configure" | |
24571 | /* confdefs.h. */ | |
24572 | _ACEOF | |
24573 | cat confdefs.h >>conftest.$ac_ext | |
24574 | cat >>conftest.$ac_ext <<_ACEOF | |
24575 | /* end confdefs.h. */ | |
e6cc62c6 | 24576 | |
bb41dcbe VS |
24577 | /* Override any gcc2 internal prototype to avoid an error. */ |
24578 | #ifdef __cplusplus | |
24579 | extern "C" | |
24580 | #endif | |
24581 | /* We use char because int might match the return type of a gcc2 | |
24582 | builtin and then its argument prototype would still apply. */ | |
24583 | char odbc (); | |
24584 | int | |
24585 | main () | |
24586 | { | |
24587 | odbc (); | |
24588 | ; | |
24589 | return 0; | |
24590 | } | |
24591 | _ACEOF | |
24592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24594 | (eval $ac_link) 2>&5 | |
24595 | ac_status=$? | |
24596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24597 | (exit $ac_status); } && | |
24598 | { ac_try='test -s conftest$ac_exeext' | |
24599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24600 | (eval $ac_try) 2>&5 | |
24601 | ac_status=$? | |
24602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24603 | (exit $ac_status); }; }; then | |
24604 | ac_cv_lib_SQLAllocEnv_odbc=yes | |
e6cc62c6 | 24605 | else |
bb41dcbe VS |
24606 | echo "$as_me: failed program was:" >&5 |
24607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24608 | ||
24609 | ac_cv_lib_SQLAllocEnv_odbc=no | |
24610 | fi | |
24611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24612 | LIBS=$ac_check_lib_save_LIBS | |
24613 | fi | |
24614 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5 | |
24615 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6 | |
24616 | if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then | |
24617 | ODBC_LINK=" -lodbc" | |
24618 | fi | |
24619 | ||
24620 | ||
24621 | fi | |
e6cc62c6 | 24622 | |
e6cc62c6 | 24623 | |
8647bec6 | 24624 | fi |
e6cc62c6 | 24625 | |
fd3d7534 | 24626 | fi |
bb41dcbe VS |
24627 | if test "x$ODBC_LINK" = "x" ; then |
24628 | if test "$wxUSE_ODBC" = "sys" ; then | |
24629 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
24630 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
24631 | { (exit 1); exit 1; }; } | |
24632 | else | |
24633 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
24634 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
24635 | wxUSE_ODBC=builtin | |
24636 | fi | |
24637 | else | |
24638 | wxUSE_ODBC=sys | |
8647bec6 | 24639 | fi |
8647bec6 | 24640 | fi |
bb41dcbe VS |
24641 | if test "$wxUSE_ODBC" != "no" ; then |
24642 | cat >>confdefs.h <<\_ACEOF | |
24643 | #define wxUSE_ODBC 1 | |
24644 | _ACEOF | |
e6cc62c6 | 24645 | |
bb41dcbe VS |
24646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
24647 | ||
24648 | WXODBCFLAG="-D_IODBC_" | |
24649 | fi | |
6232543b | 24650 | fi |
21d1c967 GD |
24651 | |
24652 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24653 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24654 | fi |
21d1c967 GD |
24655 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24656 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24657 | fi |
24658 | ||
8284b0c5 | 24659 | |
4d264332 | 24660 | USE_OPENGL=0 |
21d1c967 | 24661 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24662 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24663 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24664 | elif test "$wxUSE_MSW" = 1; then | |
24665 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24666 | else | |
01aa5863 VS |
24667 | |
24668 | ||
24669 | ac_find_includes= | |
24670 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24671 | do | |
24672 | if test -f "$ac_dir/GL/gl.h"; then | |
24673 | ac_find_includes=$ac_dir | |
24674 | break | |
24675 | fi | |
24676 | done | |
24677 | ||
24678 | if test "$ac_find_includes" != "" ; then | |
24679 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24680 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
24681 | |
24682 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24683 | ac_path_to_include="" | |
24684 | else | |
24685 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24686 | result=$? | |
24687 | if test $result = 0; then | |
24688 | ac_path_to_include="" | |
24689 | else | |
24690 | ac_path_to_include=" -I$ac_find_includes" | |
24691 | fi | |
24692 | fi | |
24693 | ||
24694 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
24695 | fi |
24696 | ||
e6cc62c6 VS |
24697 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24698 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24699 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24700 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24702 | fi | |
24703 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24704 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24705 | else | |
24706 | # Is the header compilable? | |
24707 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24708 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24709 | cat >conftest.$ac_ext <<_ACEOF | |
24710 | #line $LINENO "configure" | |
24711 | /* confdefs.h. */ | |
24712 | _ACEOF | |
24713 | cat confdefs.h >>conftest.$ac_ext | |
24714 | cat >>conftest.$ac_ext <<_ACEOF | |
24715 | /* end confdefs.h. */ | |
24716 | $ac_includes_default | |
21d1c967 | 24717 | #include <GL/gl.h> |
e6cc62c6 VS |
24718 | _ACEOF |
24719 | rm -f conftest.$ac_objext | |
24720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24721 | (eval $ac_compile) 2>&5 | |
24722 | ac_status=$? | |
24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24724 | (exit $ac_status); } && | |
24725 | { ac_try='test -s conftest.$ac_objext' | |
24726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24727 | (eval $ac_try) 2>&5 | |
24728 | ac_status=$? | |
24729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24730 | (exit $ac_status); }; }; then | |
24731 | ac_header_compiler=yes | |
24732 | else | |
24733 | echo "$as_me: failed program was:" >&5 | |
24734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24735 | ||
24736 | ac_header_compiler=no | |
24737 | fi | |
24738 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24739 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24740 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24741 | ||
24742 | # Is the header present? | |
24743 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24744 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24745 | cat >conftest.$ac_ext <<_ACEOF | |
24746 | #line $LINENO "configure" | |
24747 | /* confdefs.h. */ | |
24748 | _ACEOF | |
24749 | cat confdefs.h >>conftest.$ac_ext | |
24750 | cat >>conftest.$ac_ext <<_ACEOF | |
24751 | /* end confdefs.h. */ | |
24752 | #include <GL/gl.h> | |
24753 | _ACEOF | |
24754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24756 | ac_status=$? | |
24757 | grep -v '^ *+' conftest.er1 >conftest.err | |
24758 | rm -f conftest.er1 | |
24759 | cat conftest.err >&5 | |
24760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24761 | (exit $ac_status); } >/dev/null; then | |
24762 | if test -s conftest.err; then | |
24763 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24764 | else | |
24765 | ac_cpp_err= | |
24766 | fi | |
24767 | else | |
24768 | ac_cpp_err=yes | |
24769 | fi | |
24770 | if test -z "$ac_cpp_err"; then | |
24771 | ac_header_preproc=yes | |
24772 | else | |
24773 | echo "$as_me: failed program was:" >&5 | |
24774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24775 | ||
24776 | ac_header_preproc=no | |
24777 | fi | |
24778 | rm -f conftest.err conftest.$ac_ext | |
24779 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24780 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24781 | ||
24782 | # So? What about this header? | |
24783 | case $ac_header_compiler:$ac_header_preproc in | |
24784 | yes:no ) | |
24785 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24786 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24787 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24788 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24789 | ( | |
24790 | cat <<\_ASBOX | |
24791 | ## ------------------------------------ ## | |
24792 | ## Report this to bug-autoconf@gnu.org. ## | |
24793 | ## ------------------------------------ ## | |
24794 | _ASBOX | |
24795 | ) | | |
24796 | sed "s/^/$as_me: WARNING: /" >&2 | |
24797 | ;; | |
24798 | no:yes ) | |
24799 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24800 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24801 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24802 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24803 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24804 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24805 | ( | |
24806 | cat <<\_ASBOX | |
24807 | ## ------------------------------------ ## | |
24808 | ## Report this to bug-autoconf@gnu.org. ## | |
24809 | ## ------------------------------------ ## | |
24810 | _ASBOX | |
24811 | ) | | |
24812 | sed "s/^/$as_me: WARNING: /" >&2 | |
24813 | ;; | |
24814 | esac | |
24815 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24816 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24817 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24819 | else | |
24820 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24821 | fi |
e6cc62c6 VS |
24822 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24823 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24824 | ||
698dcdb6 | 24825 | fi |
e6cc62c6 VS |
24826 | if test $ac_cv_header_GL_gl_h = yes; then |
24827 | ||
89e3b3e4 VZ |
24828 | found_gl=0 |
24829 | ||
e6cc62c6 VS |
24830 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24831 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24832 | ||
21d1c967 | 24833 | ac_find_libraries= |
2b5f62a0 | 24834 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24835 | do |
24836 | for ac_extension in a so sl dylib; do | |
24837 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24838 | ac_find_libraries=$ac_dir | |
24839 | break 2 | |
24840 | fi | |
24841 | done | |
24842 | done | |
24843 | ||
24844 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24845 | |
21d1c967 GD |
24846 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24847 | result=$? | |
24848 | if test $result = 0; then | |
24849 | ac_path_to_link="" | |
24850 | else | |
24851 | ac_path_to_link=" -L$ac_find_libraries" | |
24852 | fi | |
24853 | ||
89e3b3e4 VZ |
24854 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24855 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24856 | fi |
89e3b3e4 | 24857 | |
e6cc62c6 | 24858 | |
89e3b3e4 VZ |
24859 | ac_find_libraries= |
24860 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24861 | do | |
24862 | for ac_extension in a so sl dylib; do | |
24863 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24864 | ac_find_libraries=$ac_dir | |
24865 | break 2 | |
24866 | fi | |
24867 | done | |
24868 | done | |
24869 | ||
24870 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24871 | |
89e3b3e4 VZ |
24872 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24873 | result=$? | |
24874 | if test $result = 0; then | |
24875 | ac_path_to_link="" | |
24876 | else | |
24877 | ac_path_to_link=" -L$ac_find_libraries" | |
24878 | fi | |
24879 | ||
24880 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24881 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24882 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24883 | fi | |
24884 | ||
24885 | found_gl=1 | |
24886 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
24887 | echo "$as_me:$LINENO: result: yes" >&5 |
24888 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
24889 | fi |
24890 | fi | |
24891 | ||
bb41dcbe | 24892 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
24893 | echo "$as_me:$LINENO: result: no" >&5 |
24894 | echo "${ECHO_T}no" >&6 | |
24895 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24896 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24897 | ||
21d1c967 | 24898 | ac_find_libraries= |
2b5f62a0 | 24899 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24900 | do |
24901 | for ac_extension in a so sl dylib; do | |
24902 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24903 | ac_find_libraries=$ac_dir | |
24904 | break 2 | |
24905 | fi | |
24906 | done | |
24907 | done | |
24908 | ||
24909 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24910 | |
21d1c967 GD |
24911 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24912 | result=$? | |
24913 | if test $result = 0; then | |
24914 | ac_path_to_link="" | |
24915 | else | |
24916 | ac_path_to_link=" -L$ac_find_libraries" | |
24917 | fi | |
24918 | ||
24919 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24920 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
24921 | echo "$as_me:$LINENO: result: yes" >&5 |
24922 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 24923 | else |
e6cc62c6 VS |
24924 | echo "$as_me:$LINENO: result: no" >&5 |
24925 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24926 | fi |
24927 | fi | |
e6cc62c6 | 24928 | |
5c6fa7d2 | 24929 | fi |
52127426 | 24930 | |
8284b0c5 | 24931 | |
e6cc62c6 | 24932 | |
21d1c967 | 24933 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
24934 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
24935 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24936 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
24937 | fi |
24938 | fi | |
90dd450c | 24939 | |
21d1c967 | 24940 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 24941 | USE_OPENGL=1 |
e6cc62c6 | 24942 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24943 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 24944 | _ACEOF |
21d1c967 | 24945 | |
e6cc62c6 | 24946 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24947 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 24948 | _ACEOF |
21d1c967 | 24949 | |
520755bb | 24950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 24951 | fi |
10f2d63a | 24952 | fi |
21d1c967 GD |
24953 | |
24954 | if test -z "$TOOLKIT_VPATH" ; then | |
24955 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 24956 | fi |
21d1c967 GD |
24957 | |
24958 | if test -n "$TOOLKIT" ; then | |
24959 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24960 | fi | |
24961 | ||
fe0895cf | 24962 | UNICODE=0 |
21d1c967 GD |
24963 | lib_unicode_suffix= |
24964 | if test "$wxUSE_UNICODE" = "yes"; then | |
24965 | lib_unicode_suffix=u | |
fe0895cf | 24966 | UNICODE=1 |
90dd450c | 24967 | fi |
698dcdb6 | 24968 | |
21d1c967 | 24969 | lib_debug_suffix= |
6c67131a | 24970 | DEBUG_FLAG=0 |
21d1c967 GD |
24971 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
24972 | lib_debug_suffix=d | |
6c67131a VS |
24973 | DEBUG_FLAG=1 |
24974 | fi | |
24975 | ||
24976 | DEBUG_INFO=0 | |
24977 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
24978 | DEBUG_INFO=1 | |
21d1c967 | 24979 | fi |
698dcdb6 | 24980 | |
1cbb95a2 | 24981 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
24982 | |
24983 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24984 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
24985 | |
24986 | if test "$cross_compiling" = "yes"; then | |
24987 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24988 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 24989 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
24990 | fi |
24991 | ||
24992 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24993 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
24994 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
24995 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
24996 | |
24997 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24998 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24999 | ||
25000 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
25001 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25002 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
25003 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25004 | ||
25005 | case "${host}" in | |
25006 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
25007 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
25008 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
25009 | ;; |
25010 | ||
25011 | *-*-darwin* ) | |
e6cc62c6 | 25012 | |
05159a27 GD |
25013 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
25014 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25015 | ||
25016 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25017 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25018 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25019 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25020 | ||
21d1c967 | 25021 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
25022 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
25023 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
25024 | fi |
25025 | ;; | |
25026 | esac | |
25027 | ||
25028 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25029 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25030 | ||
25031 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25032 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25033 | ||
25034 | if test "$wxUSE_OPENGL" = "yes"; then | |
25035 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25036 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25037 | fi | |
25038 | ||
8284b0c5 MB |
25039 | |
25040 | ||
21d1c967 GD |
25041 | if test "$wxUSE_SHARED" = "yes"; then |
25042 | case "${host}" in | |
25043 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25044 | *-pc-msdosdjgpp ) | |
25045 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25046 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25047 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25048 | ;; |
25049 | esac | |
25050 | fi | |
25051 | ||
fe0895cf | 25052 | SHARED=0 |
2b5f62a0 | 25053 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25054 | SHARED=1 |
2b5f62a0 | 25055 | |
e6cc62c6 | 25056 | |
2b5f62a0 VZ |
25057 | found_versioning=no |
25058 | ||
e6cc62c6 | 25059 | |
2b5f62a0 | 25060 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25061 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25062 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25063 | if test "${wx_cv_version_script+set}" = set; then | |
25064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25065 | else |
e6cc62c6 | 25066 | |
2b5f62a0 VZ |
25067 | echo "VER_1 { *; };" >conftest.sym |
25068 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25069 | |
2b5f62a0 VZ |
25070 | if { ac_try=' |
25071 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25072 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25074 | (eval $ac_try) 2>&5 | |
25075 | ac_status=$? | |
25076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25077 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25078 | if test -s conftest.stderr ; then |
25079 | wx_cv_version_script=no | |
25080 | else | |
25081 | wx_cv_version_script=yes | |
25082 | fi | |
25083 | else | |
25084 | wx_cv_version_script=no | |
25085 | fi | |
25086 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25087 | |
e6cc62c6 VS |
25088 | fi |
25089 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25090 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25091 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25092 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25093 | fi |
25094 | fi | |
21d1c967 | 25095 | |
21d1c967 | 25096 | |
21d1c967 | 25097 | case "${host}" in |
fe0895cf | 25098 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25099 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 25100 | ;; |
21d1c967 GD |
25101 | |
25102 | *-*-solaris2* ) | |
25103 | if test "$GCC" = yes ; then | |
25104 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25105 | |
25106 | saveLdflags="$LDFLAGS" | |
25107 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25108 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25109 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25110 | cat >conftest.$ac_ext <<_ACEOF | |
25111 | #line $LINENO "configure" | |
25112 | /* confdefs.h. */ | |
25113 | _ACEOF | |
25114 | cat confdefs.h >>conftest.$ac_ext | |
25115 | cat >>conftest.$ac_ext <<_ACEOF | |
25116 | /* end confdefs.h. */ | |
25117 | ||
25118 | int | |
25119 | main () | |
25120 | { | |
fe0895cf | 25121 | |
e6cc62c6 VS |
25122 | ; |
25123 | return 0; | |
25124 | } | |
25125 | _ACEOF | |
25126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25128 | (eval $ac_link) 2>&5 | |
25129 | ac_status=$? | |
25130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25131 | (exit $ac_status); } && | |
25132 | { ac_try='test -s conftest$ac_exeext' | |
25133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25134 | (eval $ac_try) 2>&5 | |
25135 | ac_status=$? | |
25136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25137 | (exit $ac_status); }; }; then | |
25138 | ||
25139 | echo "$as_me:$LINENO: result: yes" >&5 | |
25140 | echo "${ECHO_T}yes" >&6 | |
25141 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25142 | ||
25143 | else | |
25144 | echo "$as_me: failed program was:" >&5 | |
25145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25146 | ||
25147 | ||
25148 | echo "$as_me:$LINENO: result: no" >&5 | |
25149 | echo "${ECHO_T}no" >&6 | |
25150 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25151 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25152 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
25153 | cat >conftest.$ac_ext <<_ACEOF |
25154 | #line $LINENO "configure" | |
25155 | /* confdefs.h. */ | |
25156 | _ACEOF | |
25157 | cat confdefs.h >>conftest.$ac_ext | |
25158 | cat >>conftest.$ac_ext <<_ACEOF | |
25159 | /* end confdefs.h. */ | |
25160 | ||
25161 | int | |
25162 | main () | |
25163 | { | |
25164 | ||
25165 | ; | |
25166 | return 0; | |
25167 | } | |
25168 | _ACEOF | |
25169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25171 | (eval $ac_link) 2>&5 | |
25172 | ac_status=$? | |
25173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25174 | (exit $ac_status); } && | |
25175 | { ac_try='test -s conftest$ac_exeext' | |
25176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25177 | (eval $ac_try) 2>&5 | |
25178 | ac_status=$? | |
25179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25180 | (exit $ac_status); }; }; then | |
25181 | ||
25182 | echo "$as_me:$LINENO: result: yes" >&5 | |
25183 | echo "${ECHO_T}yes" >&6 | |
25184 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25185 | else | |
25186 | echo "$as_me: failed program was:" >&5 | |
25187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25188 | |
fe0895cf | 25189 | |
e6cc62c6 VS |
25190 | echo "$as_me:$LINENO: result: no" >&5 |
25191 | echo "${ECHO_T}no" >&6 | |
25192 | ||
fe0895cf | 25193 | fi |
e6cc62c6 VS |
25194 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
25195 | ||
25196 | fi | |
25197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 25198 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25199 | else |
25200 | SHARED_LD="${CXX} -G -o" | |
25201 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25202 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25203 | fi |
25204 | ;; | |
0f1bc9c2 VS |
25205 | |
25206 | powerpc-*-darwin* ) | |
ef0add05 VS |
25207 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
25208 | cat <<EOF >change-install-names | |
25209 | #!/bin/sh | |
25210 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
25211 | inst_cmd="install_name_tool " | |
25212 | for i in \${libnames} ; do | |
25213 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
25214 | done | |
25215 | \${inst_cmd} \${3} | |
25216 | EOF | |
25217 | chmod +x change-install-names | |
0f1bc9c2 VS |
25218 | ;; |
25219 | ||
21d1c967 GD |
25220 | esac |
25221 | ||
25222 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25223 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25224 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25225 | fi | |
25226 | ||
25227 | WX_TARGET_LIBRARY_TYPE="so" | |
25228 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25229 | fi |
10f2d63a | 25230 | |
21d1c967 GD |
25231 | if test "$wxUSE_SHARED" = "no"; then |
25232 | ||
25233 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25234 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25235 | fi | |
25236 | ||
ac0c4cc3 | 25237 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25238 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25239 | fi | |
25240 | ||
25241 | if test "$wxUSE_OPENGL" = "yes"; then | |
25242 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25243 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25244 | else | |
25245 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25246 | fi | |
25247 | ||
25248 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25249 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25250 | ||
25251 | WX_TARGET_LIBRARY_TYPE="a" | |
25252 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25253 | |
25254 | STATIC_FLAG="yes" | |
25255 | else | |
25256 | STATIC_FLAG="no" | |
90dd450c | 25257 | fi |
1e487827 | 25258 | |
93fac604 VZ |
25259 | MACRESCOMP="@#" |
25260 | MACSETFILE="@#" | |
36825681 | 25261 | MACRESWXCONFIG="#" |
21d1c967 | 25262 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25263 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25264 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25265 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25266 | # Extract the first word of "Rez", so it can be a program name with args. | |
25267 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25270 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25272 | else |
21d1c967 GD |
25273 | if test -n "$RESCOMP"; then |
25274 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25275 | else |
e6cc62c6 VS |
25276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25277 | for as_dir in $PATH | |
25278 | do | |
25279 | IFS=$as_save_IFS | |
25280 | test -z "$as_dir" && as_dir=. | |
25281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25283 | ac_cv_prog_RESCOMP="Rez" | |
25284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25285 | break 2 | |
25286 | fi | |
25287 | done | |
25288 | done | |
25289 | ||
21d1c967 | 25290 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25291 | fi |
b93d0d08 | 25292 | fi |
e6cc62c6 | 25293 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25294 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25295 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25296 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25297 | else |
e6cc62c6 VS |
25298 | echo "$as_me:$LINENO: result: no" >&5 |
25299 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25300 | fi |
b93d0d08 | 25301 | |
21d1c967 GD |
25302 | # Extract the first word of "DeRez", so it can be a program name with args. |
25303 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25306 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25308 | else |
21d1c967 GD |
25309 | if test -n "$DEREZ"; then |
25310 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25311 | else |
e6cc62c6 VS |
25312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25313 | for as_dir in $PATH | |
25314 | do | |
25315 | IFS=$as_save_IFS | |
25316 | test -z "$as_dir" && as_dir=. | |
25317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25319 | ac_cv_prog_DEREZ="DeRez" | |
25320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25321 | break 2 | |
25322 | fi | |
25323 | done | |
25324 | done | |
25325 | ||
21d1c967 | 25326 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25327 | fi |
90dd450c | 25328 | fi |
e6cc62c6 | 25329 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25330 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25331 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25332 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25333 | else |
e6cc62c6 VS |
25334 | echo "$as_me:$LINENO: result: no" >&5 |
25335 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25336 | fi |
698dcdb6 | 25337 | |
36825681 GD |
25338 | # Extract the first word of "SetFile", so it can be a program name with args. |
25339 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25342 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25344 | else |
25345 | if test -n "$SETFILE"; then | |
25346 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25347 | else | |
e6cc62c6 VS |
25348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25349 | for as_dir in $PATH | |
25350 | do | |
25351 | IFS=$as_save_IFS | |
25352 | test -z "$as_dir" && as_dir=. | |
25353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25355 | ac_cv_prog_SETFILE="SetFile" | |
25356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25357 | break 2 | |
25358 | fi | |
25359 | done | |
25360 | done | |
25361 | ||
36825681 GD |
25362 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25363 | fi | |
25364 | fi | |
e6cc62c6 | 25365 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25366 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25367 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25368 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25369 | else |
e6cc62c6 VS |
25370 | echo "$as_me:$LINENO: result: no" >&5 |
25371 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25372 | fi |
25373 | ||
21d1c967 | 25374 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25375 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25376 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25377 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25378 | elif test "$wxUSE_COCOA" = 1; then |
25379 | # Extract the first word of "Rez", so it can be a program name with args. | |
25380 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25383 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25385 | else |
25386 | if test -n "$RESCOMP"; then | |
25387 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25388 | else | |
e6cc62c6 VS |
25389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25390 | for as_dir in $PATH | |
25391 | do | |
25392 | IFS=$as_save_IFS | |
25393 | test -z "$as_dir" && as_dir=. | |
25394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25396 | ac_cv_prog_RESCOMP="Rez" | |
25397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25398 | break 2 | |
25399 | fi | |
25400 | done | |
25401 | done | |
25402 | ||
64440d77 DE |
25403 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25404 | fi | |
25405 | fi | |
e6cc62c6 | 25406 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25407 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25408 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25409 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25410 | else |
e6cc62c6 VS |
25411 | echo "$as_me:$LINENO: result: no" >&5 |
25412 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25413 | fi |
25414 | ||
25415 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25416 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25419 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25421 | else |
25422 | if test -n "$DEREZ"; then | |
25423 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25424 | else | |
e6cc62c6 VS |
25425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25426 | for as_dir in $PATH | |
25427 | do | |
25428 | IFS=$as_save_IFS | |
25429 | test -z "$as_dir" && as_dir=. | |
25430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25432 | ac_cv_prog_DEREZ="DeRez" | |
25433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25434 | break 2 | |
25435 | fi | |
25436 | done | |
25437 | done | |
25438 | ||
64440d77 DE |
25439 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25440 | fi | |
25441 | fi | |
e6cc62c6 | 25442 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25443 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25444 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25445 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25446 | else |
e6cc62c6 VS |
25447 | echo "$as_me:$LINENO: result: no" >&5 |
25448 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25449 | fi |
25450 | ||
25451 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25452 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25455 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25457 | else |
25458 | if test -n "$SETFILE"; then | |
25459 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25460 | else | |
e6cc62c6 VS |
25461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25462 | for as_dir in $PATH | |
25463 | do | |
25464 | IFS=$as_save_IFS | |
25465 | test -z "$as_dir" && as_dir=. | |
25466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25468 | ac_cv_prog_SETFILE="SetFile" | |
25469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25470 | break 2 | |
25471 | fi | |
25472 | done | |
25473 | done | |
25474 | ||
64440d77 DE |
25475 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25476 | fi | |
25477 | fi | |
e6cc62c6 | 25478 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25479 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25480 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25481 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25482 | else |
e6cc62c6 VS |
25483 | echo "$as_me:$LINENO: result: no" >&5 |
25484 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25485 | fi |
25486 | ||
25487 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25488 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25489 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25490 | else |
25491 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25492 | MACRESCOMP="emxbind -ep" |
90dd450c | 25493 | fi |
4f14bcd8 | 25494 | fi |
10f2d63a | 25495 | |
8284b0c5 | 25496 | |
e6cc62c6 VS |
25497 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25498 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25499 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25501 | else |
e6cc62c6 VS |
25502 | cat >conftest.$ac_ext <<_ACEOF |
25503 | #line $LINENO "configure" | |
25504 | /* confdefs.h. */ | |
25505 | _ACEOF | |
25506 | cat confdefs.h >>conftest.$ac_ext | |
25507 | cat >>conftest.$ac_ext <<_ACEOF | |
25508 | /* end confdefs.h. */ | |
25509 | $ac_includes_default | |
25510 | int | |
25511 | main () | |
25512 | { | |
25513 | if ((mode_t *) 0) | |
25514 | return 0; | |
25515 | if (sizeof (mode_t)) | |
25516 | return 0; | |
25517 | ; | |
25518 | return 0; | |
25519 | } | |
25520 | _ACEOF | |
25521 | rm -f conftest.$ac_objext | |
25522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25523 | (eval $ac_compile) 2>&5 | |
25524 | ac_status=$? | |
25525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25526 | (exit $ac_status); } && | |
25527 | { ac_try='test -s conftest.$ac_objext' | |
25528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25529 | (eval $ac_try) 2>&5 | |
25530 | ac_status=$? | |
25531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25532 | (exit $ac_status); }; }; then | |
25533 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25534 | else |
e6cc62c6 VS |
25535 | echo "$as_me: failed program was:" >&5 |
25536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25537 | |
e6cc62c6 | 25538 | ac_cv_type_mode_t=no |
a0b9e27f | 25539 | fi |
e6cc62c6 | 25540 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25541 | fi |
e6cc62c6 VS |
25542 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25543 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25544 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25545 | : |
25546 | else | |
a0b9e27f | 25547 | |
e6cc62c6 VS |
25548 | cat >>confdefs.h <<_ACEOF |
25549 | #define mode_t int | |
25550 | _ACEOF | |
8284b0c5 MB |
25551 | |
25552 | fi | |
25553 | ||
e6cc62c6 VS |
25554 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25555 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25556 | if test "${ac_cv_type_off_t+set}" = set; then | |
25557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25558 | else |
e6cc62c6 VS |
25559 | cat >conftest.$ac_ext <<_ACEOF |
25560 | #line $LINENO "configure" | |
25561 | /* confdefs.h. */ | |
25562 | _ACEOF | |
25563 | cat confdefs.h >>conftest.$ac_ext | |
25564 | cat >>conftest.$ac_ext <<_ACEOF | |
25565 | /* end confdefs.h. */ | |
25566 | $ac_includes_default | |
25567 | int | |
25568 | main () | |
25569 | { | |
25570 | if ((off_t *) 0) | |
25571 | return 0; | |
25572 | if (sizeof (off_t)) | |
25573 | return 0; | |
25574 | ; | |
25575 | return 0; | |
25576 | } | |
25577 | _ACEOF | |
25578 | rm -f conftest.$ac_objext | |
25579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25580 | (eval $ac_compile) 2>&5 | |
25581 | ac_status=$? | |
25582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25583 | (exit $ac_status); } && | |
25584 | { ac_try='test -s conftest.$ac_objext' | |
25585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25586 | (eval $ac_try) 2>&5 | |
25587 | ac_status=$? | |
25588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25589 | (exit $ac_status); }; }; then | |
25590 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25591 | else |
e6cc62c6 VS |
25592 | echo "$as_me: failed program was:" >&5 |
25593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25594 | |
e6cc62c6 | 25595 | ac_cv_type_off_t=no |
8284b0c5 | 25596 | fi |
e6cc62c6 | 25597 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25598 | fi |
e6cc62c6 VS |
25599 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25600 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25601 | if test $ac_cv_type_off_t = yes; then | |
25602 | : | |
247f5006 VZ |
25603 | else |
25604 | ||
e6cc62c6 | 25605 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25606 | #define off_t long |
e6cc62c6 | 25607 | _ACEOF |
10f2d63a | 25608 | |
90dd450c | 25609 | fi |
10f2d63a | 25610 | |
e6cc62c6 VS |
25611 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25612 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25613 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25615 | else |
e6cc62c6 VS |
25616 | cat >conftest.$ac_ext <<_ACEOF |
25617 | #line $LINENO "configure" | |
25618 | /* confdefs.h. */ | |
25619 | _ACEOF | |
25620 | cat confdefs.h >>conftest.$ac_ext | |
25621 | cat >>conftest.$ac_ext <<_ACEOF | |
25622 | /* end confdefs.h. */ | |
25623 | $ac_includes_default | |
25624 | int | |
25625 | main () | |
25626 | { | |
25627 | if ((pid_t *) 0) | |
25628 | return 0; | |
25629 | if (sizeof (pid_t)) | |
25630 | return 0; | |
25631 | ; | |
25632 | return 0; | |
25633 | } | |
25634 | _ACEOF | |
25635 | rm -f conftest.$ac_objext | |
25636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25637 | (eval $ac_compile) 2>&5 | |
25638 | ac_status=$? | |
25639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25640 | (exit $ac_status); } && | |
25641 | { ac_try='test -s conftest.$ac_objext' | |
25642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25643 | (eval $ac_try) 2>&5 | |
25644 | ac_status=$? | |
25645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25646 | (exit $ac_status); }; }; then | |
90dd450c | 25647 | ac_cv_type_pid_t=yes |
698dcdb6 | 25648 | else |
e6cc62c6 VS |
25649 | echo "$as_me: failed program was:" >&5 |
25650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25651 | |
e6cc62c6 VS |
25652 | ac_cv_type_pid_t=no |
25653 | fi | |
25654 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25655 | fi |
e6cc62c6 VS |
25656 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25657 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25658 | if test $ac_cv_type_pid_t = yes; then | |
25659 | : | |
25660 | else | |
25661 | ||
25662 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25663 | #define pid_t int |
e6cc62c6 | 25664 | _ACEOF |
10f2d63a | 25665 | |
7b4a847f RR |
25666 | fi |
25667 | ||
e6cc62c6 VS |
25668 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25669 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25670 | if test "${ac_cv_type_size_t+set}" = set; then | |
25671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25672 | else |
e6cc62c6 VS |
25673 | cat >conftest.$ac_ext <<_ACEOF |
25674 | #line $LINENO "configure" | |
25675 | /* confdefs.h. */ | |
25676 | _ACEOF | |
25677 | cat confdefs.h >>conftest.$ac_ext | |
25678 | cat >>conftest.$ac_ext <<_ACEOF | |
25679 | /* end confdefs.h. */ | |
25680 | $ac_includes_default | |
25681 | int | |
25682 | main () | |
25683 | { | |
25684 | if ((size_t *) 0) | |
25685 | return 0; | |
25686 | if (sizeof (size_t)) | |
25687 | return 0; | |
25688 | ; | |
25689 | return 0; | |
25690 | } | |
25691 | _ACEOF | |
25692 | rm -f conftest.$ac_objext | |
25693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25694 | (eval $ac_compile) 2>&5 | |
25695 | ac_status=$? | |
25696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25697 | (exit $ac_status); } && | |
25698 | { ac_try='test -s conftest.$ac_objext' | |
25699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25700 | (eval $ac_try) 2>&5 | |
25701 | ac_status=$? | |
25702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25703 | (exit $ac_status); }; }; then | |
90dd450c | 25704 | ac_cv_type_size_t=yes |
18dbb1f6 | 25705 | else |
e6cc62c6 VS |
25706 | echo "$as_me: failed program was:" >&5 |
25707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25708 | |
e6cc62c6 | 25709 | ac_cv_type_size_t=no |
a0b9e27f | 25710 | fi |
e6cc62c6 VS |
25711 | rm -f conftest.$ac_objext conftest.$ac_ext |
25712 | fi | |
25713 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25714 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25715 | if test $ac_cv_type_size_t = yes; then | |
25716 | : | |
25717 | else | |
25718 | ||
25719 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25720 | #define size_t unsigned |
e6cc62c6 | 25721 | _ACEOF |
90dd450c VZ |
25722 | |
25723 | fi | |
25724 | ||
e6cc62c6 VS |
25725 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25726 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25727 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25729 | else |
e6cc62c6 VS |
25730 | cat >conftest.$ac_ext <<_ACEOF |
25731 | #line $LINENO "configure" | |
25732 | /* confdefs.h. */ | |
25733 | _ACEOF | |
25734 | cat confdefs.h >>conftest.$ac_ext | |
25735 | cat >>conftest.$ac_ext <<_ACEOF | |
25736 | /* end confdefs.h. */ | |
90dd450c | 25737 | #include <sys/types.h> |
e6cc62c6 VS |
25738 | |
25739 | _ACEOF | |
90dd450c | 25740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25741 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25742 | ac_cv_type_uid_t=yes |
b3e8d00a | 25743 | else |
90dd450c | 25744 | ac_cv_type_uid_t=no |
b3e8d00a | 25745 | fi |
90dd450c | 25746 | rm -f conftest* |
b3e8d00a | 25747 | |
4f14bcd8 | 25748 | fi |
e6cc62c6 VS |
25749 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25750 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25751 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25752 | |
25753 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25754 | #define uid_t int |
e6cc62c6 | 25755 | _ACEOF |
247f5006 | 25756 | |
e6cc62c6 VS |
25757 | |
25758 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25759 | #define gid_t int |
e6cc62c6 | 25760 | _ACEOF |
4f14bcd8 | 25761 | |
b3e8d00a | 25762 | fi |
b3e8d00a | 25763 | |
8284b0c5 MB |
25764 | |
25765 | ||
e6cc62c6 VS |
25766 | |
25767 | ac_ext=cc | |
4f14bcd8 | 25768 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25772 | ||
25773 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25774 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25775 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25777 | else | |
25778 | ||
25779 | cat >conftest.$ac_ext <<_ACEOF | |
25780 | #line $LINENO "configure" | |
25781 | /* confdefs.h. */ | |
25782 | _ACEOF | |
25783 | cat confdefs.h >>conftest.$ac_ext | |
25784 | cat >>conftest.$ac_ext <<_ACEOF | |
25785 | /* end confdefs.h. */ | |
90dd450c | 25786 | #include <stddef.h> |
e6cc62c6 VS |
25787 | int |
25788 | main () | |
25789 | { | |
90dd450c VZ |
25790 | |
25791 | return 0; } | |
25792 | ||
25793 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25794 | ||
25795 | int bar() { | |
e6cc62c6 VS |
25796 | |
25797 | ; | |
25798 | return 0; | |
25799 | } | |
25800 | _ACEOF | |
25801 | rm -f conftest.$ac_objext | |
25802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25803 | (eval $ac_compile) 2>&5 | |
25804 | ac_status=$? | |
25805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25806 | (exit $ac_status); } && | |
25807 | { ac_try='test -s conftest.$ac_objext' | |
25808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25809 | (eval $ac_try) 2>&5 | |
25810 | ac_status=$? | |
25811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25812 | (exit $ac_status); }; }; then | |
90dd450c | 25813 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25814 | else |
e6cc62c6 VS |
25815 | echo "$as_me: failed program was:" >&5 |
25816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25817 | ||
25818 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25819 | |
247f5006 | 25820 | fi |
e6cc62c6 VS |
25821 | rm -f conftest.$ac_objext conftest.$ac_ext |
25822 | ||
a0b9e27f | 25823 | |
e6cc62c6 VS |
25824 | fi |
25825 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25826 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25827 | |
90dd450c | 25828 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25829 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25830 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25831 | _ACEOF |
698dcdb6 | 25832 | |
90dd450c | 25833 | else |
e6cc62c6 VS |
25834 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25835 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25836 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25838 | else |
e6cc62c6 VS |
25839 | cat >conftest.$ac_ext <<_ACEOF |
25840 | #line $LINENO "configure" | |
25841 | /* confdefs.h. */ | |
25842 | _ACEOF | |
25843 | cat confdefs.h >>conftest.$ac_ext | |
25844 | cat >>conftest.$ac_ext <<_ACEOF | |
25845 | /* end confdefs.h. */ | |
90dd450c | 25846 | #include <stddef.h> |
e6cc62c6 VS |
25847 | int |
25848 | main () | |
25849 | { | |
90dd450c VZ |
25850 | |
25851 | return 0; } | |
25852 | ||
25853 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25854 | ||
25855 | int bar() { | |
e6cc62c6 VS |
25856 | |
25857 | ; | |
25858 | return 0; | |
25859 | } | |
25860 | _ACEOF | |
25861 | rm -f conftest.$ac_objext | |
25862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25863 | (eval $ac_compile) 2>&5 | |
25864 | ac_status=$? | |
25865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25866 | (exit $ac_status); } && | |
25867 | { ac_try='test -s conftest.$ac_objext' | |
25868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25869 | (eval $ac_try) 2>&5 | |
25870 | ac_status=$? | |
25871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25872 | (exit $ac_status); }; }; then | |
90dd450c | 25873 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25874 | else |
e6cc62c6 VS |
25875 | echo "$as_me: failed program was:" >&5 |
25876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25877 | ||
25878 | wx_cv_size_t_is_ulong=yes | |
25879 | ||
247f5006 | 25880 | fi |
e6cc62c6 | 25881 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25882 | |
e6cc62c6 VS |
25883 | fi |
25884 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25885 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25886 | |
90dd450c | 25887 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 25888 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25889 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 25890 | _ACEOF |
4f14bcd8 GD |
25891 | |
25892 | fi | |
90dd450c | 25893 | fi |
1e487827 | 25894 | |
90dd450c | 25895 | ac_ext=c |
4f14bcd8 | 25896 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
25897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 25900 | |
5c6fa7d2 | 25901 | |
8284b0c5 | 25902 | |
e6cc62c6 VS |
25903 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
25904 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25905 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25907 | else |
e6cc62c6 VS |
25908 | |
25909 | cat >conftest.$ac_ext <<_ACEOF | |
25910 | #line $LINENO "configure" | |
25911 | /* confdefs.h. */ | |
25912 | _ACEOF | |
25913 | cat confdefs.h >>conftest.$ac_ext | |
25914 | cat >>conftest.$ac_ext <<_ACEOF | |
25915 | /* end confdefs.h. */ | |
90dd450c | 25916 | #include <pwd.h> |
e6cc62c6 VS |
25917 | int |
25918 | main () | |
25919 | { | |
f6bcfd97 | 25920 | |
90dd450c VZ |
25921 | char *p; |
25922 | struct passwd *pw; | |
25923 | p = pw->pw_gecos; | |
e6cc62c6 VS |
25924 | |
25925 | ; | |
25926 | return 0; | |
25927 | } | |
25928 | _ACEOF | |
25929 | rm -f conftest.$ac_objext | |
25930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25931 | (eval $ac_compile) 2>&5 | |
25932 | ac_status=$? | |
25933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25934 | (exit $ac_status); } && | |
25935 | { ac_try='test -s conftest.$ac_objext' | |
25936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25937 | (eval $ac_try) 2>&5 | |
25938 | ac_status=$? | |
25939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25940 | (exit $ac_status); }; }; then | |
25941 | ||
90dd450c | 25942 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 25943 | |
10f2d63a | 25944 | else |
e6cc62c6 VS |
25945 | echo "$as_me: failed program was:" >&5 |
25946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25947 | ||
25948 | ||
90dd450c | 25949 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 25950 | |
247f5006 VZ |
25951 | |
25952 | fi | |
e6cc62c6 | 25953 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25954 | |
e6cc62c6 VS |
25955 | |
25956 | fi | |
25957 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25958 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 25959 | |
90dd450c | 25960 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 25961 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25962 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 25963 | _ACEOF |
c521c494 | 25964 | |
90dd450c | 25965 | fi |
4f14bcd8 | 25966 | |
8284b0c5 | 25967 | |
d29b553b | 25968 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 25969 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25970 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 25971 | _ACEOF |
d74f4b5a | 25972 | |
8284b0c5 | 25973 | |
d74f4b5a VZ |
25974 | WCSLEN_FOUND=0 |
25975 | WCHAR_LINK= | |
e6cc62c6 VS |
25976 | |
25977 | for ac_func in wcslen | |
7a30264c | 25978 | do |
e6cc62c6 VS |
25979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25980 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25982 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25984 | else | |
25985 | cat >conftest.$ac_ext <<_ACEOF | |
25986 | #line $LINENO "configure" | |
25987 | /* confdefs.h. */ | |
25988 | _ACEOF | |
25989 | cat confdefs.h >>conftest.$ac_ext | |
25990 | cat >>conftest.$ac_ext <<_ACEOF | |
25991 | /* end confdefs.h. */ | |
7a30264c | 25992 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25993 | which can conflict with char $ac_func (); below. |
25994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25995 | <limits.h> exists even on freestanding compilers. */ | |
25996 | #ifdef __STDC__ | |
25997 | # include <limits.h> | |
25998 | #else | |
25999 | # include <assert.h> | |
26000 | #endif | |
4f14bcd8 | 26001 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26002 | #ifdef __cplusplus |
26003 | extern "C" | |
26004 | { | |
26005 | #endif | |
4f14bcd8 | 26006 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26007 | builtin and then its argument prototype would still apply. */ |
26008 | char $ac_func (); | |
7a30264c VZ |
26009 | /* The GNU C library defines this for functions which it implements |
26010 | to always fail with ENOSYS. Some functions are actually named | |
26011 | something starting with __ and the normal name is an alias. */ | |
26012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26013 | choke me | |
26014 | #else | |
e6cc62c6 VS |
26015 | char (*f) () = $ac_func; |
26016 | #endif | |
26017 | #ifdef __cplusplus | |
26018 | } | |
7a30264c VZ |
26019 | #endif |
26020 | ||
e6cc62c6 VS |
26021 | int |
26022 | main () | |
26023 | { | |
26024 | return f != $ac_func; | |
26025 | ; | |
26026 | return 0; | |
26027 | } | |
26028 | _ACEOF | |
26029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26031 | (eval $ac_link) 2>&5 | |
26032 | ac_status=$? | |
26033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26034 | (exit $ac_status); } && | |
26035 | { ac_try='test -s conftest$ac_exeext' | |
26036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26037 | (eval $ac_try) 2>&5 | |
26038 | ac_status=$? | |
26039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26040 | (exit $ac_status); }; }; then | |
26041 | eval "$as_ac_var=yes" | |
26042 | else | |
26043 | echo "$as_me: failed program was:" >&5 | |
26044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26045 | ||
26046 | eval "$as_ac_var=no" | |
26047 | fi | |
26048 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26049 | fi | |
26050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26052 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26053 | cat >>confdefs.h <<_ACEOF | |
26054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26055 | _ACEOF | |
d74f4b5a | 26056 | WCSLEN_FOUND=1 |
7a30264c VZ |
26057 | fi |
26058 | done | |
9d8deca0 | 26059 | |
8284b0c5 | 26060 | |
d74f4b5a | 26061 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26062 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26063 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26064 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26065 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26067 | else |
e6cc62c6 | 26068 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26069 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
26070 | cat >conftest.$ac_ext <<_ACEOF |
26071 | #line $LINENO "configure" | |
26072 | /* confdefs.h. */ | |
26073 | _ACEOF | |
26074 | cat confdefs.h >>conftest.$ac_ext | |
26075 | cat >>conftest.$ac_ext <<_ACEOF | |
26076 | /* end confdefs.h. */ | |
26077 | ||
4f14bcd8 | 26078 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26079 | #ifdef __cplusplus |
26080 | extern "C" | |
26081 | #endif | |
4f14bcd8 | 26082 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26083 | builtin and then its argument prototype would still apply. */ |
26084 | char wcslen (); | |
26085 | int | |
26086 | main () | |
26087 | { | |
26088 | wcslen (); | |
26089 | ; | |
26090 | return 0; | |
26091 | } | |
26092 | _ACEOF | |
26093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26095 | (eval $ac_link) 2>&5 | |
26096 | ac_status=$? | |
26097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26098 | (exit $ac_status); } && | |
26099 | { ac_try='test -s conftest$ac_exeext' | |
26100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26101 | (eval $ac_try) 2>&5 | |
26102 | ac_status=$? | |
26103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26104 | (exit $ac_status); }; }; then | |
26105 | ac_cv_lib_msvcrt_wcslen=yes | |
26106 | else | |
26107 | echo "$as_me: failed program was:" >&5 | |
26108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26109 | ||
26110 | ac_cv_lib_msvcrt_wcslen=no | |
26111 | fi | |
26112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26113 | LIBS=$ac_check_lib_save_LIBS | |
26114 | fi | |
26115 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26116 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26117 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26118 | WCHAR_OK=1 |
d29b553b | 26119 | fi |
698dcdb6 | 26120 | |
7a30264c | 26121 | else |
e6cc62c6 VS |
26122 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26123 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26124 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26126 | else |
e6cc62c6 | 26127 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26128 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
26129 | cat >conftest.$ac_ext <<_ACEOF |
26130 | #line $LINENO "configure" | |
26131 | /* confdefs.h. */ | |
26132 | _ACEOF | |
26133 | cat confdefs.h >>conftest.$ac_ext | |
26134 | cat >>conftest.$ac_ext <<_ACEOF | |
26135 | /* end confdefs.h. */ | |
26136 | ||
4f14bcd8 | 26137 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26138 | #ifdef __cplusplus |
26139 | extern "C" | |
26140 | #endif | |
4f14bcd8 | 26141 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26142 | builtin and then its argument prototype would still apply. */ |
26143 | char wcslen (); | |
26144 | int | |
26145 | main () | |
26146 | { | |
26147 | wcslen (); | |
26148 | ; | |
26149 | return 0; | |
26150 | } | |
26151 | _ACEOF | |
26152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26154 | (eval $ac_link) 2>&5 | |
26155 | ac_status=$? | |
26156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26157 | (exit $ac_status); } && | |
26158 | { ac_try='test -s conftest$ac_exeext' | |
26159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26160 | (eval $ac_try) 2>&5 | |
26161 | ac_status=$? | |
26162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26163 | (exit $ac_status); }; }; then | |
26164 | ac_cv_lib_w_wcslen=yes | |
26165 | else | |
26166 | echo "$as_me: failed program was:" >&5 | |
26167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26168 | ||
26169 | ac_cv_lib_w_wcslen=no | |
26170 | fi | |
26171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26172 | LIBS=$ac_check_lib_save_LIBS | |
26173 | fi | |
26174 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26175 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26176 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26177 | |
7a30264c | 26178 | WCHAR_LINK=" -lw" |
d74f4b5a | 26179 | WCSLEN_FOUND=1 |
e6cc62c6 | 26180 | |
4f14bcd8 | 26181 | fi |
10f2d63a | 26182 | |
7a30264c | 26183 | fi |
d29b553b | 26184 | fi |
95c8801c | 26185 | |
d74f4b5a | 26186 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26187 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26188 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26189 | _ACEOF |
10f2d63a | 26190 | |
d74f4b5a | 26191 | fi |
52127426 | 26192 | |
e6cc62c6 VS |
26193 | |
26194 | for ac_func in wcsrtombs | |
eb4efbdc | 26195 | do |
e6cc62c6 VS |
26196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26199 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26201 | else | |
26202 | cat >conftest.$ac_ext <<_ACEOF | |
26203 | #line $LINENO "configure" | |
26204 | /* confdefs.h. */ | |
26205 | _ACEOF | |
26206 | cat confdefs.h >>conftest.$ac_ext | |
26207 | cat >>conftest.$ac_ext <<_ACEOF | |
26208 | /* end confdefs.h. */ | |
eb4efbdc | 26209 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26210 | which can conflict with char $ac_func (); below. |
26211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26212 | <limits.h> exists even on freestanding compilers. */ | |
26213 | #ifdef __STDC__ | |
26214 | # include <limits.h> | |
26215 | #else | |
26216 | # include <assert.h> | |
26217 | #endif | |
eb4efbdc | 26218 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26219 | #ifdef __cplusplus |
26220 | extern "C" | |
26221 | { | |
26222 | #endif | |
4f14bcd8 | 26223 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26224 | builtin and then its argument prototype would still apply. */ |
26225 | char $ac_func (); | |
10f2d63a VZ |
26226 | /* The GNU C library defines this for functions which it implements |
26227 | to always fail with ENOSYS. Some functions are actually named | |
26228 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26229 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26230 | choke me |
26231 | #else | |
e6cc62c6 VS |
26232 | char (*f) () = $ac_func; |
26233 | #endif | |
26234 | #ifdef __cplusplus | |
26235 | } | |
10f2d63a VZ |
26236 | #endif |
26237 | ||
e6cc62c6 VS |
26238 | int |
26239 | main () | |
26240 | { | |
26241 | return f != $ac_func; | |
26242 | ; | |
26243 | return 0; | |
26244 | } | |
26245 | _ACEOF | |
26246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26248 | (eval $ac_link) 2>&5 | |
26249 | ac_status=$? | |
26250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26251 | (exit $ac_status); } && | |
26252 | { ac_try='test -s conftest$ac_exeext' | |
26253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26254 | (eval $ac_try) 2>&5 | |
26255 | ac_status=$? | |
26256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26257 | (exit $ac_status); }; }; then | |
26258 | eval "$as_ac_var=yes" | |
26259 | else | |
26260 | echo "$as_me: failed program was:" >&5 | |
26261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26262 | ||
26263 | eval "$as_ac_var=no" | |
26264 | fi | |
26265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26266 | fi | |
26267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26268 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26269 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26270 | cat >>confdefs.h <<_ACEOF | |
26271 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26272 | _ACEOF | |
270a909e | 26273 | |
4f14bcd8 | 26274 | fi |
247f5006 | 26275 | done |
1e487827 | 26276 | |
af15babd | 26277 | else |
e6cc62c6 VS |
26278 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26279 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26280 | fi |
52127426 | 26281 | |
8284b0c5 | 26282 | |
e6cc62c6 VS |
26283 | |
26284 | ac_ext=cc | |
247f5006 | 26285 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26286 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26287 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26288 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26289 | ||
af15babd | 26290 | |
247f5006 VZ |
26291 | |
26292 | for ac_func in vsnprintf | |
26293 | do | |
e6cc62c6 VS |
26294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26299 | else | |
26300 | cat >conftest.$ac_ext <<_ACEOF | |
26301 | #line $LINENO "configure" | |
26302 | /* confdefs.h. */ | |
26303 | _ACEOF | |
26304 | cat confdefs.h >>conftest.$ac_ext | |
26305 | cat >>conftest.$ac_ext <<_ACEOF | |
26306 | /* end confdefs.h. */ | |
247f5006 | 26307 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26308 | which can conflict with char $ac_func (); below. |
26309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26310 | <limits.h> exists even on freestanding compilers. */ | |
26311 | #ifdef __STDC__ | |
26312 | # include <limits.h> | |
26313 | #else | |
26314 | # include <assert.h> | |
26315 | #endif | |
247f5006 VZ |
26316 | /* Override any gcc2 internal prototype to avoid an error. */ |
26317 | #ifdef __cplusplus | |
26318 | extern "C" | |
e6cc62c6 | 26319 | { |
247f5006 VZ |
26320 | #endif |
26321 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26322 | builtin and then its argument prototype would still apply. */ |
26323 | char $ac_func (); | |
247f5006 VZ |
26324 | /* The GNU C library defines this for functions which it implements |
26325 | to always fail with ENOSYS. Some functions are actually named | |
26326 | something starting with __ and the normal name is an alias. */ | |
26327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26328 | choke me | |
26329 | #else | |
e6cc62c6 VS |
26330 | char (*f) () = $ac_func; |
26331 | #endif | |
26332 | #ifdef __cplusplus | |
26333 | } | |
247f5006 | 26334 | #endif |
af15babd | 26335 | |
e6cc62c6 VS |
26336 | int |
26337 | main () | |
26338 | { | |
26339 | return f != $ac_func; | |
26340 | ; | |
26341 | return 0; | |
26342 | } | |
26343 | _ACEOF | |
26344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26346 | (eval $ac_link) 2>&5 | |
26347 | ac_status=$? | |
26348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26349 | (exit $ac_status); } && | |
26350 | { ac_try='test -s conftest$ac_exeext' | |
26351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26352 | (eval $ac_try) 2>&5 | |
26353 | ac_status=$? | |
26354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26355 | (exit $ac_status); }; }; then | |
26356 | eval "$as_ac_var=yes" | |
26357 | else | |
26358 | echo "$as_me: failed program was:" >&5 | |
26359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26360 | ||
26361 | eval "$as_ac_var=no" | |
26362 | fi | |
26363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26364 | fi | |
26365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26366 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26367 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26368 | cat >>confdefs.h <<_ACEOF | |
26369 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26370 | _ACEOF | |
52127426 | 26371 | |
5c6fa7d2 | 26372 | fi |
247f5006 | 26373 | done |
8284b0c5 | 26374 | |
4f14bcd8 | 26375 | |
8d90d2f2 | 26376 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26377 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26378 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26379 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26381 | else |
e6cc62c6 VS |
26382 | |
26383 | cat >conftest.$ac_ext <<_ACEOF | |
26384 | #line $LINENO "configure" | |
26385 | /* confdefs.h. */ | |
26386 | _ACEOF | |
26387 | cat confdefs.h >>conftest.$ac_ext | |
26388 | cat >>conftest.$ac_ext <<_ACEOF | |
26389 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26390 | |
26391 | #include <stdio.h> | |
26392 | #include <stdarg.h> | |
e6cc62c6 VS |
26393 | |
26394 | int | |
26395 | main () | |
26396 | { | |
8d90d2f2 VZ |
26397 | |
26398 | char *buf; | |
26399 | va_list ap; | |
26400 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26401 | |
26402 | ; | |
26403 | return 0; | |
26404 | } | |
26405 | _ACEOF | |
26406 | rm -f conftest.$ac_objext | |
26407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26408 | (eval $ac_compile) 2>&5 | |
26409 | ac_status=$? | |
26410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26411 | (exit $ac_status); } && | |
26412 | { ac_try='test -s conftest.$ac_objext' | |
26413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26414 | (eval $ac_try) 2>&5 | |
26415 | ac_status=$? | |
26416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26417 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26418 | wx_cv_func_vsnprintf_decl=yes |
26419 | else | |
e6cc62c6 VS |
26420 | echo "$as_me: failed program was:" >&5 |
26421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26422 | ||
26423 | wx_cv_func_vsnprintf_decl=no | |
26424 | ||
8d90d2f2 | 26425 | fi |
e6cc62c6 VS |
26426 | rm -f conftest.$ac_objext conftest.$ac_ext |
26427 | ||
8d90d2f2 | 26428 | |
e6cc62c6 VS |
26429 | fi |
26430 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26431 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26432 | |
26433 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26434 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26435 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26436 | _ACEOF |
8d90d2f2 VZ |
26437 | |
26438 | fi | |
26439 | fi | |
26440 | ||
247f5006 | 26441 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26442 | |
26443 | ||
26444 | ||
26445 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26446 | do |
e6cc62c6 VS |
26447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26452 | else | |
26453 | cat >conftest.$ac_ext <<_ACEOF | |
26454 | #line $LINENO "configure" | |
26455 | /* confdefs.h. */ | |
26456 | _ACEOF | |
26457 | cat confdefs.h >>conftest.$ac_ext | |
26458 | cat >>conftest.$ac_ext <<_ACEOF | |
26459 | /* end confdefs.h. */ | |
d74f4b5a | 26460 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26461 | which can conflict with char $ac_func (); below. |
26462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26463 | <limits.h> exists even on freestanding compilers. */ | |
26464 | #ifdef __STDC__ | |
26465 | # include <limits.h> | |
26466 | #else | |
26467 | # include <assert.h> | |
26468 | #endif | |
d74f4b5a | 26469 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26470 | #ifdef __cplusplus |
26471 | extern "C" | |
e6cc62c6 | 26472 | { |
247f5006 | 26473 | #endif |
d74f4b5a | 26474 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26475 | builtin and then its argument prototype would still apply. */ |
26476 | char $ac_func (); | |
d74f4b5a VZ |
26477 | /* The GNU C library defines this for functions which it implements |
26478 | to always fail with ENOSYS. Some functions are actually named | |
26479 | something starting with __ and the normal name is an alias. */ | |
26480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26481 | choke me | |
26482 | #else | |
e6cc62c6 VS |
26483 | char (*f) () = $ac_func; |
26484 | #endif | |
26485 | #ifdef __cplusplus | |
26486 | } | |
d74f4b5a VZ |
26487 | #endif |
26488 | ||
e6cc62c6 VS |
26489 | int |
26490 | main () | |
26491 | { | |
26492 | return f != $ac_func; | |
26493 | ; | |
26494 | return 0; | |
26495 | } | |
26496 | _ACEOF | |
26497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26499 | (eval $ac_link) 2>&5 | |
26500 | ac_status=$? | |
26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26502 | (exit $ac_status); } && | |
26503 | { ac_try='test -s conftest$ac_exeext' | |
26504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26505 | (eval $ac_try) 2>&5 | |
26506 | ac_status=$? | |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26508 | (exit $ac_status); }; }; then | |
26509 | eval "$as_ac_var=yes" | |
26510 | else | |
26511 | echo "$as_me: failed program was:" >&5 | |
26512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26513 | ||
26514 | eval "$as_ac_var=no" | |
26515 | fi | |
26516 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26517 | fi | |
26518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26521 | cat >>confdefs.h <<_ACEOF | |
26522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26523 | _ACEOF | |
d74f4b5a | 26524 | |
d74f4b5a VZ |
26525 | fi |
26526 | done | |
26527 | ||
8d90d2f2 | 26528 | |
e6cc62c6 VS |
26529 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26530 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26531 | cat >conftest.$ac_ext <<_ACEOF | |
26532 | #line $LINENO "configure" | |
26533 | /* confdefs.h. */ | |
26534 | _ACEOF | |
26535 | cat confdefs.h >>conftest.$ac_ext | |
26536 | cat >>conftest.$ac_ext <<_ACEOF | |
26537 | /* end confdefs.h. */ | |
79668cae | 26538 | #include <wchar.h> |
e6cc62c6 VS |
26539 | int |
26540 | main () | |
26541 | { | |
79668cae | 26542 | &_vsnwprintf; |
e6cc62c6 VS |
26543 | ; |
26544 | return 0; | |
26545 | } | |
26546 | _ACEOF | |
26547 | rm -f conftest.$ac_objext | |
26548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26549 | (eval $ac_compile) 2>&5 | |
26550 | ac_status=$? | |
26551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26552 | (exit $ac_status); } && | |
26553 | { ac_try='test -s conftest.$ac_objext' | |
26554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26555 | (eval $ac_try) 2>&5 | |
26556 | ac_status=$? | |
26557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26558 | (exit $ac_status); }; }; then | |
26559 | echo "$as_me:$LINENO: result: yes" >&5 | |
26560 | echo "${ECHO_T}yes" >&6 | |
26561 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26562 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26563 | _ACEOF |
79668cae MB |
26564 | |
26565 | else | |
e6cc62c6 VS |
26566 | echo "$as_me: failed program was:" >&5 |
26567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26568 | ||
26569 | echo "$as_me:$LINENO: result: no" >&5 | |
26570 | echo "${ECHO_T}no" >&6 | |
79668cae | 26571 | fi |
e6cc62c6 | 26572 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26573 | fi |
26574 | ||
247f5006 VZ |
26575 | ac_ext=c |
26576 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26580 | |
26581 | ||
26582 | ||
26583 | ||
4f14bcd8 | 26584 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26585 | |
8284b0c5 MB |
26586 | |
26587 | ||
e6cc62c6 VS |
26588 | |
26589 | ac_ext=cc | |
4f14bcd8 | 26590 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26591 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26592 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26593 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26594 | |
52127426 | 26595 | |
e6cc62c6 VS |
26596 | |
26597 | ||
26598 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26599 | if test "${with_libiconv_prefix+set}" = set; then |
26600 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26601 | |
b040e242 VS |
26602 | for dir in `echo "$withval" | tr : ' '`; do |
26603 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26604 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26605 | done | |
b040e242 | 26606 | |
e6cc62c6 | 26607 | fi; |
b040e242 | 26608 | |
e6cc62c6 VS |
26609 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26610 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26611 | if test "${am_cv_func_iconv+set}" = set; then | |
26612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26613 | else |
e6cc62c6 | 26614 | |
b040e242 VS |
26615 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26616 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26617 | cat >conftest.$ac_ext <<_ACEOF |
26618 | #line $LINENO "configure" | |
26619 | /* confdefs.h. */ | |
26620 | _ACEOF | |
26621 | cat confdefs.h >>conftest.$ac_ext | |
26622 | cat >>conftest.$ac_ext <<_ACEOF | |
26623 | /* end confdefs.h. */ | |
b040e242 | 26624 | #include <stdlib.h> |
4f14bcd8 | 26625 | #include <iconv.h> |
e6cc62c6 VS |
26626 | int |
26627 | main () | |
26628 | { | |
b040e242 VS |
26629 | iconv_t cd = iconv_open("",""); |
26630 | iconv(cd,NULL,NULL,NULL,NULL); | |
26631 | iconv_close(cd); | |
e6cc62c6 VS |
26632 | ; |
26633 | return 0; | |
26634 | } | |
26635 | _ACEOF | |
26636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26638 | (eval $ac_link) 2>&5 | |
26639 | ac_status=$? | |
26640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26641 | (exit $ac_status); } && | |
26642 | { ac_try='test -s conftest$ac_exeext' | |
26643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26644 | (eval $ac_try) 2>&5 | |
26645 | ac_status=$? | |
26646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26647 | (exit $ac_status); }; }; then | |
b040e242 | 26648 | am_cv_func_iconv=yes |
af15babd | 26649 | else |
e6cc62c6 VS |
26650 | echo "$as_me: failed program was:" >&5 |
26651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26652 | ||
b040e242 | 26653 | fi |
e6cc62c6 | 26654 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26655 | if test "$am_cv_func_iconv" != yes; then |
26656 | am_save_LIBS="$LIBS" | |
26657 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26658 | cat >conftest.$ac_ext <<_ACEOF |
26659 | #line $LINENO "configure" | |
26660 | /* confdefs.h. */ | |
26661 | _ACEOF | |
26662 | cat confdefs.h >>conftest.$ac_ext | |
26663 | cat >>conftest.$ac_ext <<_ACEOF | |
26664 | /* end confdefs.h. */ | |
b040e242 VS |
26665 | #include <stdlib.h> |
26666 | #include <iconv.h> | |
e6cc62c6 VS |
26667 | int |
26668 | main () | |
26669 | { | |
b040e242 VS |
26670 | iconv_t cd = iconv_open("",""); |
26671 | iconv(cd,NULL,NULL,NULL,NULL); | |
26672 | iconv_close(cd); | |
e6cc62c6 VS |
26673 | ; |
26674 | return 0; | |
26675 | } | |
26676 | _ACEOF | |
26677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26679 | (eval $ac_link) 2>&5 | |
26680 | ac_status=$? | |
26681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26682 | (exit $ac_status); } && | |
26683 | { ac_try='test -s conftest$ac_exeext' | |
26684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26685 | (eval $ac_try) 2>&5 | |
26686 | ac_status=$? | |
26687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26688 | (exit $ac_status); }; }; then | |
b040e242 VS |
26689 | am_cv_lib_iconv=yes |
26690 | am_cv_func_iconv=yes | |
26691 | else | |
e6cc62c6 VS |
26692 | echo "$as_me: failed program was:" >&5 |
26693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26694 | ||
af15babd | 26695 | fi |
e6cc62c6 | 26696 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26697 | LIBS="$am_save_LIBS" |
26698 | fi | |
247f5006 | 26699 | |
e6cc62c6 VS |
26700 | fi |
26701 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26702 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26703 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26704 | |
26705 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26706 | #define HAVE_ICONV 1 |
e6cc62c6 | 26707 | _ACEOF |
b040e242 | 26708 | |
e6cc62c6 VS |
26709 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26710 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26711 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26713 | else |
e6cc62c6 VS |
26714 | cat >conftest.$ac_ext <<_ACEOF |
26715 | #line $LINENO "configure" | |
26716 | /* confdefs.h. */ | |
26717 | _ACEOF | |
26718 | cat confdefs.h >>conftest.$ac_ext | |
26719 | cat >>conftest.$ac_ext <<_ACEOF | |
26720 | /* end confdefs.h. */ | |
b040e242 VS |
26721 | |
26722 | #include <stdlib.h> | |
26723 | #include <iconv.h> | |
26724 | extern | |
26725 | #ifdef __cplusplus | |
26726 | "C" | |
26727 | #endif | |
26728 | #if defined(__STDC__) || defined(__cplusplus) | |
26729 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26730 | #else | |
26731 | size_t iconv(); | |
26732 | #endif | |
af15babd | 26733 | |
e6cc62c6 VS |
26734 | int |
26735 | main () | |
26736 | { | |
26737 | ||
26738 | ; | |
26739 | return 0; | |
26740 | } | |
26741 | _ACEOF | |
26742 | rm -f conftest.$ac_objext | |
26743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26744 | (eval $ac_compile) 2>&5 | |
26745 | ac_status=$? | |
26746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26747 | (exit $ac_status); } && | |
26748 | { ac_try='test -s conftest.$ac_objext' | |
26749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26750 | (eval $ac_try) 2>&5 | |
26751 | ac_status=$? | |
26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26753 | (exit $ac_status); }; }; then | |
b7043674 | 26754 | wx_cv_func_iconv_const="no" |
b040e242 | 26755 | else |
e6cc62c6 VS |
26756 | echo "$as_me: failed program was:" >&5 |
26757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26758 | ||
26759 | wx_cv_func_iconv_const="yes" | |
26760 | ||
247f5006 | 26761 | fi |
e6cc62c6 | 26762 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26763 | |
e6cc62c6 VS |
26764 | fi |
26765 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26766 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26767 | |
26768 | iconv_const= | |
1c405bb5 | 26769 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26770 | iconv_const="const" |
26771 | fi | |
26772 | ||
e6cc62c6 VS |
26773 | |
26774 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26775 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26776 | _ACEOF |
b040e242 VS |
26777 | |
26778 | fi | |
26779 | LIBICONV= | |
26780 | if test "$am_cv_lib_iconv" = yes; then | |
26781 | LIBICONV="-liconv" | |
26782 | fi | |
e6cc62c6 | 26783 | |
b040e242 VS |
26784 | |
26785 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26786 | ac_ext=c |
4f14bcd8 | 26787 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26791 | |
5c6fa7d2 | 26792 | |
8284b0c5 | 26793 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26794 | |
26795 | for ac_func in sigaction | |
af15babd | 26796 | do |
e6cc62c6 VS |
26797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26798 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26800 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26802 | else | |
26803 | cat >conftest.$ac_ext <<_ACEOF | |
26804 | #line $LINENO "configure" | |
26805 | /* confdefs.h. */ | |
26806 | _ACEOF | |
26807 | cat confdefs.h >>conftest.$ac_ext | |
26808 | cat >>conftest.$ac_ext <<_ACEOF | |
26809 | /* end confdefs.h. */ | |
af15babd | 26810 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26811 | which can conflict with char $ac_func (); below. |
26812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26813 | <limits.h> exists even on freestanding compilers. */ | |
26814 | #ifdef __STDC__ | |
26815 | # include <limits.h> | |
26816 | #else | |
26817 | # include <assert.h> | |
26818 | #endif | |
af15babd | 26819 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26820 | #ifdef __cplusplus |
26821 | extern "C" | |
26822 | { | |
26823 | #endif | |
af15babd | 26824 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26825 | builtin and then its argument prototype would still apply. */ |
26826 | char $ac_func (); | |
af15babd VZ |
26827 | /* The GNU C library defines this for functions which it implements |
26828 | to always fail with ENOSYS. Some functions are actually named | |
26829 | something starting with __ and the normal name is an alias. */ | |
26830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26831 | choke me | |
26832 | #else | |
e6cc62c6 VS |
26833 | char (*f) () = $ac_func; |
26834 | #endif | |
26835 | #ifdef __cplusplus | |
26836 | } | |
af15babd VZ |
26837 | #endif |
26838 | ||
e6cc62c6 VS |
26839 | int |
26840 | main () | |
26841 | { | |
26842 | return f != $ac_func; | |
26843 | ; | |
26844 | return 0; | |
26845 | } | |
26846 | _ACEOF | |
26847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26849 | (eval $ac_link) 2>&5 | |
26850 | ac_status=$? | |
26851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26852 | (exit $ac_status); } && | |
26853 | { ac_try='test -s conftest$ac_exeext' | |
26854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26855 | (eval $ac_try) 2>&5 | |
26856 | ac_status=$? | |
26857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26858 | (exit $ac_status); }; }; then | |
26859 | eval "$as_ac_var=yes" | |
26860 | else | |
26861 | echo "$as_me: failed program was:" >&5 | |
26862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26863 | ||
26864 | eval "$as_ac_var=no" | |
26865 | fi | |
26866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26867 | fi | |
26868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26869 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26870 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26871 | cat >>confdefs.h <<_ACEOF | |
26872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26873 | _ACEOF | |
7b4a847f | 26874 | |
4f14bcd8 GD |
26875 | fi |
26876 | done | |
26877 | ||
8284b0c5 | 26878 | |
4f14bcd8 | 26879 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26880 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26881 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26882 | wxUSE_ON_FATAL_EXCEPTION=no |
26883 | fi | |
26884 | ||
26885 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26886 | |
26887 | ||
26888 | ac_ext=cc | |
5c6fa7d2 | 26889 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26890 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26891 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26892 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 26893 | |
5c6fa7d2 | 26894 | |
e6cc62c6 VS |
26895 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
26896 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26897 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26899 | else |
e6cc62c6 VS |
26900 | |
26901 | cat >conftest.$ac_ext <<_ACEOF | |
26902 | #line $LINENO "configure" | |
26903 | /* confdefs.h. */ | |
26904 | _ACEOF | |
26905 | cat confdefs.h >>conftest.$ac_ext | |
26906 | cat >>conftest.$ac_ext <<_ACEOF | |
26907 | /* end confdefs.h. */ | |
4f14bcd8 | 26908 | #include <signal.h> |
e6cc62c6 VS |
26909 | int |
26910 | main () | |
26911 | { | |
4f14bcd8 GD |
26912 | |
26913 | extern void testSigHandler(int); | |
26914 | ||
26915 | struct sigaction sa; | |
26916 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
26917 | |
26918 | ; | |
26919 | return 0; | |
26920 | } | |
26921 | _ACEOF | |
26922 | rm -f conftest.$ac_objext | |
26923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26924 | (eval $ac_compile) 2>&5 | |
26925 | ac_status=$? | |
26926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26927 | (exit $ac_status); } && | |
26928 | { ac_try='test -s conftest.$ac_objext' | |
26929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26930 | (eval $ac_try) 2>&5 | |
26931 | ac_status=$? | |
26932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26933 | (exit $ac_status); }; }; then | |
26934 | ||
4f14bcd8 | 26935 | wx_cv_type_sa_handler=int |
e6cc62c6 | 26936 | |
af15babd | 26937 | else |
e6cc62c6 VS |
26938 | echo "$as_me: failed program was:" >&5 |
26939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26940 | ||
26941 | ||
4f14bcd8 | 26942 | wx_cv_type_sa_handler=void |
e6cc62c6 | 26943 | |
247f5006 | 26944 | fi |
e6cc62c6 | 26945 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26946 | |
e6cc62c6 VS |
26947 | fi |
26948 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26949 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
26950 | |
26951 | ac_ext=c | |
4f14bcd8 | 26952 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 26956 | |
8284b0c5 | 26957 | |
e6cc62c6 | 26958 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26959 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 26960 | _ACEOF |
af15babd | 26961 | |
4f14bcd8 GD |
26962 | fi |
26963 | fi | |
af15babd | 26964 | |
e6cc62c6 VS |
26965 | |
26966 | ||
a1d22ad7 | 26967 | for ac_func in mkstemp mktemp |
af15babd | 26968 | do |
e6cc62c6 VS |
26969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26974 | else | |
26975 | cat >conftest.$ac_ext <<_ACEOF | |
26976 | #line $LINENO "configure" | |
26977 | /* confdefs.h. */ | |
26978 | _ACEOF | |
26979 | cat confdefs.h >>conftest.$ac_ext | |
26980 | cat >>conftest.$ac_ext <<_ACEOF | |
26981 | /* end confdefs.h. */ | |
af15babd | 26982 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26983 | which can conflict with char $ac_func (); below. |
26984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26985 | <limits.h> exists even on freestanding compilers. */ | |
26986 | #ifdef __STDC__ | |
26987 | # include <limits.h> | |
26988 | #else | |
26989 | # include <assert.h> | |
26990 | #endif | |
af15babd | 26991 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26992 | #ifdef __cplusplus |
26993 | extern "C" | |
26994 | { | |
26995 | #endif | |
af15babd | 26996 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26997 | builtin and then its argument prototype would still apply. */ |
26998 | char $ac_func (); | |
af15babd VZ |
26999 | /* The GNU C library defines this for functions which it implements |
27000 | to always fail with ENOSYS. Some functions are actually named | |
27001 | something starting with __ and the normal name is an alias. */ | |
27002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27003 | choke me | |
27004 | #else | |
e6cc62c6 VS |
27005 | char (*f) () = $ac_func; |
27006 | #endif | |
27007 | #ifdef __cplusplus | |
27008 | } | |
af15babd VZ |
27009 | #endif |
27010 | ||
e6cc62c6 VS |
27011 | int |
27012 | main () | |
27013 | { | |
27014 | return f != $ac_func; | |
27015 | ; | |
27016 | return 0; | |
27017 | } | |
27018 | _ACEOF | |
27019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27021 | (eval $ac_link) 2>&5 | |
27022 | ac_status=$? | |
27023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27024 | (exit $ac_status); } && | |
27025 | { ac_try='test -s conftest$ac_exeext' | |
27026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27027 | (eval $ac_try) 2>&5 | |
27028 | ac_status=$? | |
27029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27030 | (exit $ac_status); }; }; then | |
27031 | eval "$as_ac_var=yes" | |
27032 | else | |
27033 | echo "$as_me: failed program was:" >&5 | |
27034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27035 | ||
27036 | eval "$as_ac_var=no" | |
27037 | fi | |
27038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27039 | fi | |
27040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27043 | cat >>confdefs.h <<_ACEOF | |
27044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27045 | _ACEOF | |
ade35f11 | 27046 | break |
ade35f11 VZ |
27047 | fi |
27048 | done | |
27049 | ||
8284b0c5 | 27050 | |
e6cc62c6 VS |
27051 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27052 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27053 | if test "${wx_cv_func_statfs+set}" = set; then | |
27054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27055 | else |
e6cc62c6 VS |
27056 | cat >conftest.$ac_ext <<_ACEOF |
27057 | #line $LINENO "configure" | |
27058 | /* confdefs.h. */ | |
27059 | _ACEOF | |
27060 | cat confdefs.h >>conftest.$ac_ext | |
27061 | cat >>conftest.$ac_ext <<_ACEOF | |
27062 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27063 | |
27064 | #if defined(__BSD__) | |
27065 | #include <sys/param.h> | |
27066 | #include <sys/mount.h> | |
27067 | #else | |
27068 | #include <sys/vfs.h> | |
27069 | #endif | |
e6cc62c6 VS |
27070 | |
27071 | int | |
27072 | main () | |
27073 | { | |
4f14bcd8 GD |
27074 | |
27075 | long l; | |
27076 | struct statfs fs; | |
27077 | statfs("/", &fs); | |
27078 | l = fs.f_bsize; | |
27079 | l += fs.f_blocks; | |
27080 | l += fs.f_bavail; | |
e6cc62c6 VS |
27081 | |
27082 | ; | |
27083 | return 0; | |
27084 | } | |
27085 | _ACEOF | |
27086 | rm -f conftest.$ac_objext | |
27087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27088 | (eval $ac_compile) 2>&5 | |
27089 | ac_status=$? | |
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27091 | (exit $ac_status); } && | |
27092 | { ac_try='test -s conftest.$ac_objext' | |
27093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27094 | (eval $ac_try) 2>&5 | |
27095 | ac_status=$? | |
27096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27097 | (exit $ac_status); }; }; then | |
27098 | ||
4f14bcd8 | 27099 | wx_cv_func_statfs=yes |
e6cc62c6 | 27100 | |
4f14bcd8 | 27101 | else |
e6cc62c6 VS |
27102 | echo "$as_me: failed program was:" >&5 |
27103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27104 | ||
27105 | ||
4f14bcd8 | 27106 | wx_cv_func_statfs=no |
e6cc62c6 | 27107 | |
8284b0c5 | 27108 | |
247f5006 | 27109 | fi |
e6cc62c6 | 27110 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27111 | |
e6cc62c6 VS |
27112 | fi |
27113 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27114 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27115 | |
27116 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27117 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27118 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27119 | #define HAVE_STATFS 1 |
e6cc62c6 | 27120 | _ACEOF |
4f14bcd8 GD |
27121 | |
27122 | else | |
e6cc62c6 VS |
27123 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27124 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27125 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27127 | else |
e6cc62c6 VS |
27128 | cat >conftest.$ac_ext <<_ACEOF |
27129 | #line $LINENO "configure" | |
27130 | /* confdefs.h. */ | |
27131 | _ACEOF | |
27132 | cat confdefs.h >>conftest.$ac_ext | |
27133 | cat >>conftest.$ac_ext <<_ACEOF | |
27134 | /* end confdefs.h. */ | |
af15babd | 27135 | |
54ab82b3 VZ |
27136 | #include <stddef.h> |
27137 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27138 | |
27139 | int | |
27140 | main () | |
27141 | { | |
af15babd | 27142 | |
54ab82b3 | 27143 | statvfs("/", NULL); |
e6cc62c6 VS |
27144 | |
27145 | ; | |
27146 | return 0; | |
27147 | } | |
27148 | _ACEOF | |
27149 | rm -f conftest.$ac_objext | |
27150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27151 | (eval $ac_compile) 2>&5 | |
27152 | ac_status=$? | |
27153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27154 | (exit $ac_status); } && | |
27155 | { ac_try='test -s conftest.$ac_objext' | |
27156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27157 | (eval $ac_try) 2>&5 | |
27158 | ac_status=$? | |
27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27160 | (exit $ac_status); }; }; then | |
54ab82b3 | 27161 | wx_cv_func_statvfs=yes |
af15babd | 27162 | else |
e6cc62c6 VS |
27163 | echo "$as_me: failed program was:" >&5 |
27164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27165 | ||
27166 | wx_cv_func_statvfs=no | |
27167 | ||
247f5006 | 27168 | fi |
e6cc62c6 | 27169 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27170 | |
e6cc62c6 VS |
27171 | fi |
27172 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27173 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27174 | |
4f14bcd8 | 27175 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27176 | |
27177 | ||
27178 | ac_ext=cc | |
54ab82b3 | 27179 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27180 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27181 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27182 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27183 | |
27184 | ||
e6cc62c6 VS |
27185 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27186 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27187 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27189 | else |
e6cc62c6 VS |
27190 | cat >conftest.$ac_ext <<_ACEOF |
27191 | #line $LINENO "configure" | |
27192 | /* confdefs.h. */ | |
27193 | _ACEOF | |
27194 | cat confdefs.h >>conftest.$ac_ext | |
27195 | cat >>conftest.$ac_ext <<_ACEOF | |
27196 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27197 | |
27198 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27199 | |
27200 | int | |
27201 | main () | |
27202 | { | |
54ab82b3 VZ |
27203 | |
27204 | long l; | |
27205 | statvfs_t fs; | |
27206 | statvfs("/", &fs); | |
27207 | l = fs.f_bsize; | |
27208 | l += fs.f_blocks; | |
27209 | l += fs.f_bavail; | |
e6cc62c6 VS |
27210 | |
27211 | ; | |
27212 | return 0; | |
27213 | } | |
27214 | _ACEOF | |
27215 | rm -f conftest.$ac_objext | |
27216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27217 | (eval $ac_compile) 2>&5 | |
27218 | ac_status=$? | |
27219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27220 | (exit $ac_status); } && | |
27221 | { ac_try='test -s conftest.$ac_objext' | |
27222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27223 | (eval $ac_try) 2>&5 | |
27224 | ac_status=$? | |
27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27226 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27227 | wx_cv_type_statvfs_t=statvfs_t |
27228 | else | |
e6cc62c6 VS |
27229 | echo "$as_me: failed program was:" >&5 |
27230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27231 | ||
27232 | ||
27233 | cat >conftest.$ac_ext <<_ACEOF | |
27234 | #line $LINENO "configure" | |
27235 | /* confdefs.h. */ | |
27236 | _ACEOF | |
27237 | cat confdefs.h >>conftest.$ac_ext | |
27238 | cat >>conftest.$ac_ext <<_ACEOF | |
27239 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27240 | |
27241 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27242 | |
27243 | int | |
27244 | main () | |
27245 | { | |
54ab82b3 VZ |
27246 | |
27247 | long l; | |
65d8ef1e | 27248 | struct statvfs fs; |
54ab82b3 VZ |
27249 | statvfs("/", &fs); |
27250 | l = fs.f_bsize; | |
27251 | l += fs.f_blocks; | |
27252 | l += fs.f_bavail; | |
e6cc62c6 VS |
27253 | |
27254 | ; | |
27255 | return 0; | |
27256 | } | |
27257 | _ACEOF | |
27258 | rm -f conftest.$ac_objext | |
27259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27260 | (eval $ac_compile) 2>&5 | |
27261 | ac_status=$? | |
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27263 | (exit $ac_status); } && | |
27264 | { ac_try='test -s conftest.$ac_objext' | |
27265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27266 | (eval $ac_try) 2>&5 | |
27267 | ac_status=$? | |
27268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27269 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27270 | wx_cv_type_statvfs_t="struct statvfs" |
27271 | else | |
e6cc62c6 VS |
27272 | echo "$as_me: failed program was:" >&5 |
27273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27274 | ||
27275 | wx_cv_type_statvfs_t="unknown" | |
27276 | ||
54ab82b3 | 27277 | fi |
e6cc62c6 VS |
27278 | rm -f conftest.$ac_objext conftest.$ac_ext |
27279 | ||
27280 | ||
54ab82b3 | 27281 | fi |
e6cc62c6 | 27282 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27283 | |
e6cc62c6 VS |
27284 | fi |
27285 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27286 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27287 | |
27288 | ac_ext=c | |
54ab82b3 | 27289 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27293 | |
27294 | ||
27295 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27296 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27297 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27298 | _ACEOF |
af15babd | 27299 | |
54ab82b3 | 27300 | fi |
4f14bcd8 | 27301 | else |
54ab82b3 | 27302 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27303 | fi |
27304 | fi | |
af15babd | 27305 | |
54ab82b3 | 27306 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27307 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27308 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27309 | _ACEOF |
54ab82b3 VZ |
27310 | |
27311 | else | |
e6cc62c6 VS |
27312 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27313 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27314 | fi |
27315 | ||
4f14bcd8 | 27316 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27317 | |
27318 | ||
27319 | for ac_func in fcntl flock | |
af15babd | 27320 | do |
e6cc62c6 VS |
27321 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27322 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27323 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27324 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27326 | else | |
27327 | cat >conftest.$ac_ext <<_ACEOF | |
27328 | #line $LINENO "configure" | |
27329 | /* confdefs.h. */ | |
27330 | _ACEOF | |
27331 | cat confdefs.h >>conftest.$ac_ext | |
27332 | cat >>conftest.$ac_ext <<_ACEOF | |
27333 | /* end confdefs.h. */ | |
af15babd | 27334 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27335 | which can conflict with char $ac_func (); below. |
27336 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27337 | <limits.h> exists even on freestanding compilers. */ | |
27338 | #ifdef __STDC__ | |
27339 | # include <limits.h> | |
27340 | #else | |
27341 | # include <assert.h> | |
27342 | #endif | |
af15babd | 27343 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27344 | #ifdef __cplusplus |
27345 | extern "C" | |
27346 | { | |
27347 | #endif | |
af15babd | 27348 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27349 | builtin and then its argument prototype would still apply. */ |
27350 | char $ac_func (); | |
af15babd VZ |
27351 | /* The GNU C library defines this for functions which it implements |
27352 | to always fail with ENOSYS. Some functions are actually named | |
27353 | something starting with __ and the normal name is an alias. */ | |
27354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27355 | choke me | |
27356 | #else | |
e6cc62c6 VS |
27357 | char (*f) () = $ac_func; |
27358 | #endif | |
27359 | #ifdef __cplusplus | |
27360 | } | |
af15babd VZ |
27361 | #endif |
27362 | ||
e6cc62c6 VS |
27363 | int |
27364 | main () | |
27365 | { | |
27366 | return f != $ac_func; | |
27367 | ; | |
27368 | return 0; | |
27369 | } | |
27370 | _ACEOF | |
27371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27373 | (eval $ac_link) 2>&5 | |
27374 | ac_status=$? | |
27375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27376 | (exit $ac_status); } && | |
27377 | { ac_try='test -s conftest$ac_exeext' | |
27378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27379 | (eval $ac_try) 2>&5 | |
27380 | ac_status=$? | |
27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27382 | (exit $ac_status); }; }; then | |
27383 | eval "$as_ac_var=yes" | |
27384 | else | |
27385 | echo "$as_me: failed program was:" >&5 | |
27386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27387 | ||
27388 | eval "$as_ac_var=no" | |
27389 | fi | |
27390 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27391 | fi | |
27392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27395 | cat >>confdefs.h <<_ACEOF | |
27396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27397 | _ACEOF | |
4f14bcd8 | 27398 | break |
af15babd VZ |
27399 | fi |
27400 | done | |
27401 | ||
8284b0c5 | 27402 | |
4f14bcd8 | 27403 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27404 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27405 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27406 | wxUSE_SNGLINST_CHECKER=no |
27407 | fi | |
27408 | fi | |
af15babd | 27409 | |
e6cc62c6 | 27410 | |
4f14bcd8 | 27411 | for ac_func in timegm |
af15babd | 27412 | do |
e6cc62c6 VS |
27413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27418 | else | |
27419 | cat >conftest.$ac_ext <<_ACEOF | |
27420 | #line $LINENO "configure" | |
27421 | /* confdefs.h. */ | |
27422 | _ACEOF | |
27423 | cat confdefs.h >>conftest.$ac_ext | |
27424 | cat >>conftest.$ac_ext <<_ACEOF | |
27425 | /* end confdefs.h. */ | |
af15babd | 27426 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27427 | which can conflict with char $ac_func (); below. |
27428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27429 | <limits.h> exists even on freestanding compilers. */ | |
27430 | #ifdef __STDC__ | |
27431 | # include <limits.h> | |
27432 | #else | |
27433 | # include <assert.h> | |
27434 | #endif | |
af15babd | 27435 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27436 | #ifdef __cplusplus |
27437 | extern "C" | |
27438 | { | |
27439 | #endif | |
af15babd | 27440 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27441 | builtin and then its argument prototype would still apply. */ |
27442 | char $ac_func (); | |
af15babd VZ |
27443 | /* The GNU C library defines this for functions which it implements |
27444 | to always fail with ENOSYS. Some functions are actually named | |
27445 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27447 | choke me | |
27448 | #else | |
e6cc62c6 VS |
27449 | char (*f) () = $ac_func; |
27450 | #endif | |
27451 | #ifdef __cplusplus | |
27452 | } | |
247f5006 VZ |
27453 | #endif |
27454 | ||
e6cc62c6 VS |
27455 | int |
27456 | main () | |
27457 | { | |
27458 | return f != $ac_func; | |
27459 | ; | |
27460 | return 0; | |
27461 | } | |
27462 | _ACEOF | |
27463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27465 | (eval $ac_link) 2>&5 | |
27466 | ac_status=$? | |
27467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27468 | (exit $ac_status); } && | |
27469 | { ac_try='test -s conftest$ac_exeext' | |
27470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27471 | (eval $ac_try) 2>&5 | |
27472 | ac_status=$? | |
27473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27474 | (exit $ac_status); }; }; then | |
27475 | eval "$as_ac_var=yes" | |
27476 | else | |
27477 | echo "$as_me: failed program was:" >&5 | |
27478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27479 | ||
27480 | eval "$as_ac_var=no" | |
27481 | fi | |
27482 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27483 | fi | |
27484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27485 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27486 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27487 | cat >>confdefs.h <<_ACEOF | |
27488 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27489 | _ACEOF | |
703e0a69 | 27490 | |
af15babd VZ |
27491 | fi |
27492 | done | |
27493 | ||
8284b0c5 | 27494 | |
e6cc62c6 VS |
27495 | |
27496 | ||
4f14bcd8 | 27497 | for ac_func in putenv setenv |
10f2d63a | 27498 | do |
e6cc62c6 VS |
27499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27502 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27504 | else | |
27505 | cat >conftest.$ac_ext <<_ACEOF | |
27506 | #line $LINENO "configure" | |
27507 | /* confdefs.h. */ | |
27508 | _ACEOF | |
27509 | cat confdefs.h >>conftest.$ac_ext | |
27510 | cat >>conftest.$ac_ext <<_ACEOF | |
27511 | /* end confdefs.h. */ | |
af15babd | 27512 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27513 | which can conflict with char $ac_func (); below. |
27514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27515 | <limits.h> exists even on freestanding compilers. */ | |
27516 | #ifdef __STDC__ | |
27517 | # include <limits.h> | |
27518 | #else | |
27519 | # include <assert.h> | |
27520 | #endif | |
af15babd | 27521 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27522 | #ifdef __cplusplus |
27523 | extern "C" | |
27524 | { | |
27525 | #endif | |
af15babd | 27526 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27527 | builtin and then its argument prototype would still apply. */ |
27528 | char $ac_func (); | |
af15babd VZ |
27529 | /* The GNU C library defines this for functions which it implements |
27530 | to always fail with ENOSYS. Some functions are actually named | |
27531 | something starting with __ and the normal name is an alias. */ | |
27532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27533 | choke me | |
27534 | #else | |
e6cc62c6 VS |
27535 | char (*f) () = $ac_func; |
27536 | #endif | |
27537 | #ifdef __cplusplus | |
27538 | } | |
af15babd VZ |
27539 | #endif |
27540 | ||
e6cc62c6 VS |
27541 | int |
27542 | main () | |
27543 | { | |
27544 | return f != $ac_func; | |
27545 | ; | |
27546 | return 0; | |
27547 | } | |
27548 | _ACEOF | |
27549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27551 | (eval $ac_link) 2>&5 | |
27552 | ac_status=$? | |
27553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27554 | (exit $ac_status); } && | |
27555 | { ac_try='test -s conftest$ac_exeext' | |
27556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27557 | (eval $ac_try) 2>&5 | |
27558 | ac_status=$? | |
27559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27560 | (exit $ac_status); }; }; then | |
27561 | eval "$as_ac_var=yes" | |
27562 | else | |
27563 | echo "$as_me: failed program was:" >&5 | |
27564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27565 | ||
27566 | eval "$as_ac_var=no" | |
27567 | fi | |
27568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27569 | fi | |
27570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27573 | cat >>confdefs.h <<_ACEOF | |
27574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27575 | _ACEOF | |
4f14bcd8 | 27576 | break |
af15babd | 27577 | fi |
af15babd VZ |
27578 | done |
27579 | ||
8284b0c5 | 27580 | |
4f14bcd8 GD |
27581 | HAVE_SOME_SLEEP_FUNC=0 |
27582 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27583 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27584 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27585 | _ACEOF |
af15babd | 27586 | |
4f14bcd8 | 27587 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27588 | fi |
27589 | ||
4f14bcd8 | 27590 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27591 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27592 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27593 | _ACEOF |
10f2d63a | 27594 | |
4f14bcd8 | 27595 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27596 | fi |
27597 | ||
4f14bcd8 GD |
27598 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27599 | POSIX4_LINK= | |
e6cc62c6 VS |
27600 | |
27601 | for ac_func in nanosleep | |
4f14bcd8 | 27602 | do |
e6cc62c6 VS |
27603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27604 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27606 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27608 | else | |
27609 | cat >conftest.$ac_ext <<_ACEOF | |
27610 | #line $LINENO "configure" | |
27611 | /* confdefs.h. */ | |
27612 | _ACEOF | |
27613 | cat confdefs.h >>conftest.$ac_ext | |
27614 | cat >>conftest.$ac_ext <<_ACEOF | |
27615 | /* end confdefs.h. */ | |
4f14bcd8 | 27616 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27617 | which can conflict with char $ac_func (); below. |
27618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27619 | <limits.h> exists even on freestanding compilers. */ | |
27620 | #ifdef __STDC__ | |
27621 | # include <limits.h> | |
27622 | #else | |
27623 | # include <assert.h> | |
27624 | #endif | |
10f2d63a | 27625 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27626 | #ifdef __cplusplus |
27627 | extern "C" | |
27628 | { | |
27629 | #endif | |
10f2d63a | 27630 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27631 | builtin and then its argument prototype would still apply. */ |
27632 | char $ac_func (); | |
4f14bcd8 GD |
27633 | /* The GNU C library defines this for functions which it implements |
27634 | to always fail with ENOSYS. Some functions are actually named | |
27635 | something starting with __ and the normal name is an alias. */ | |
27636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27637 | choke me | |
27638 | #else | |
e6cc62c6 VS |
27639 | char (*f) () = $ac_func; |
27640 | #endif | |
27641 | #ifdef __cplusplus | |
27642 | } | |
4f14bcd8 GD |
27643 | #endif |
27644 | ||
e6cc62c6 VS |
27645 | int |
27646 | main () | |
27647 | { | |
27648 | return f != $ac_func; | |
27649 | ; | |
27650 | return 0; | |
27651 | } | |
27652 | _ACEOF | |
27653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27655 | (eval $ac_link) 2>&5 | |
27656 | ac_status=$? | |
27657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27658 | (exit $ac_status); } && | |
27659 | { ac_try='test -s conftest$ac_exeext' | |
27660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27661 | (eval $ac_try) 2>&5 | |
27662 | ac_status=$? | |
27663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27664 | (exit $ac_status); }; }; then | |
27665 | eval "$as_ac_var=yes" | |
27666 | else | |
27667 | echo "$as_me: failed program was:" >&5 | |
27668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27669 | ||
27670 | eval "$as_ac_var=no" | |
27671 | fi | |
27672 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27673 | fi | |
27674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27675 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27676 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27677 | cat >>confdefs.h <<_ACEOF | |
27678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27679 | _ACEOF | |
27680 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27681 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27682 | _ACEOF |
4f14bcd8 | 27683 | |
10f2d63a | 27684 | else |
e6cc62c6 VS |
27685 | |
27686 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27687 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27688 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27690 | else |
e6cc62c6 | 27691 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27692 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27693 | cat >conftest.$ac_ext <<_ACEOF |
27694 | #line $LINENO "configure" | |
27695 | /* confdefs.h. */ | |
27696 | _ACEOF | |
27697 | cat confdefs.h >>conftest.$ac_ext | |
27698 | cat >>conftest.$ac_ext <<_ACEOF | |
27699 | /* end confdefs.h. */ | |
27700 | ||
10f2d63a | 27701 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27702 | #ifdef __cplusplus |
27703 | extern "C" | |
27704 | #endif | |
10f2d63a | 27705 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27706 | builtin and then its argument prototype would still apply. */ |
27707 | char nanosleep (); | |
27708 | int | |
27709 | main () | |
27710 | { | |
27711 | nanosleep (); | |
27712 | ; | |
27713 | return 0; | |
27714 | } | |
27715 | _ACEOF | |
27716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27718 | (eval $ac_link) 2>&5 | |
27719 | ac_status=$? | |
27720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27721 | (exit $ac_status); } && | |
27722 | { ac_try='test -s conftest$ac_exeext' | |
27723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27724 | (eval $ac_try) 2>&5 | |
27725 | ac_status=$? | |
27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27727 | (exit $ac_status); }; }; then | |
27728 | ac_cv_lib_posix4_nanosleep=yes | |
27729 | else | |
27730 | echo "$as_me: failed program was:" >&5 | |
27731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27732 | ||
27733 | ac_cv_lib_posix4_nanosleep=no | |
27734 | fi | |
27735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27736 | LIBS=$ac_check_lib_save_LIBS | |
27737 | fi | |
27738 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27739 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27740 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27741 | ||
27742 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27743 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27744 | _ACEOF |
4f14bcd8 | 27745 | |
3d63bc3a | 27746 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27747 | |
10f2d63a | 27748 | else |
10f2d63a | 27749 | |
e6cc62c6 VS |
27750 | |
27751 | for ac_func in usleep | |
4f14bcd8 | 27752 | do |
e6cc62c6 VS |
27753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27754 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27756 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27758 | else | |
27759 | cat >conftest.$ac_ext <<_ACEOF | |
27760 | #line $LINENO "configure" | |
27761 | /* confdefs.h. */ | |
27762 | _ACEOF | |
27763 | cat confdefs.h >>conftest.$ac_ext | |
27764 | cat >>conftest.$ac_ext <<_ACEOF | |
27765 | /* end confdefs.h. */ | |
4f14bcd8 | 27766 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27767 | which can conflict with char $ac_func (); below. |
27768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27769 | <limits.h> exists even on freestanding compilers. */ | |
27770 | #ifdef __STDC__ | |
27771 | # include <limits.h> | |
27772 | #else | |
27773 | # include <assert.h> | |
27774 | #endif | |
4f14bcd8 | 27775 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27776 | #ifdef __cplusplus |
27777 | extern "C" | |
27778 | { | |
27779 | #endif | |
4f14bcd8 | 27780 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27781 | builtin and then its argument prototype would still apply. */ |
27782 | char $ac_func (); | |
4f14bcd8 GD |
27783 | /* The GNU C library defines this for functions which it implements |
27784 | to always fail with ENOSYS. Some functions are actually named | |
27785 | something starting with __ and the normal name is an alias. */ | |
27786 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27787 | choke me | |
27788 | #else | |
e6cc62c6 VS |
27789 | char (*f) () = $ac_func; |
27790 | #endif | |
27791 | #ifdef __cplusplus | |
27792 | } | |
4f14bcd8 GD |
27793 | #endif |
27794 | ||
e6cc62c6 VS |
27795 | int |
27796 | main () | |
27797 | { | |
27798 | return f != $ac_func; | |
27799 | ; | |
27800 | return 0; | |
27801 | } | |
27802 | _ACEOF | |
27803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27805 | (eval $ac_link) 2>&5 | |
27806 | ac_status=$? | |
27807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27808 | (exit $ac_status); } && | |
27809 | { ac_try='test -s conftest$ac_exeext' | |
27810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27811 | (eval $ac_try) 2>&5 | |
27812 | ac_status=$? | |
27813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27814 | (exit $ac_status); }; }; then | |
27815 | eval "$as_ac_var=yes" | |
27816 | else | |
27817 | echo "$as_me: failed program was:" >&5 | |
27818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27819 | ||
27820 | eval "$as_ac_var=no" | |
27821 | fi | |
27822 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27823 | fi | |
27824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27825 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27826 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27827 | cat >>confdefs.h <<_ACEOF | |
27828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27829 | _ACEOF | |
27830 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27831 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27832 | _ACEOF |
4f14bcd8 | 27833 | |
698dcdb6 | 27834 | else |
e6cc62c6 VS |
27835 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27836 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27837 | ||
10f2d63a | 27838 | fi |
4f14bcd8 | 27839 | done |
10f2d63a | 27840 | |
e6cc62c6 VS |
27841 | |
27842 | ||
6232543b | 27843 | fi |
10f2d63a | 27844 | |
e6cc62c6 VS |
27845 | |
27846 | ||
1e487827 | 27847 | fi |
4f14bcd8 | 27848 | done |
703e0a69 | 27849 | |
10f2d63a VZ |
27850 | fi |
27851 | ||
e6cc62c6 VS |
27852 | |
27853 | ||
4f14bcd8 | 27854 | for ac_func in uname gethostname |
70846f0a | 27855 | do |
e6cc62c6 VS |
27856 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27857 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27858 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27859 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27861 | else | |
27862 | cat >conftest.$ac_ext <<_ACEOF | |
27863 | #line $LINENO "configure" | |
27864 | /* confdefs.h. */ | |
27865 | _ACEOF | |
27866 | cat confdefs.h >>conftest.$ac_ext | |
27867 | cat >>conftest.$ac_ext <<_ACEOF | |
27868 | /* end confdefs.h. */ | |
70846f0a | 27869 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27870 | which can conflict with char $ac_func (); below. |
27871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27872 | <limits.h> exists even on freestanding compilers. */ | |
27873 | #ifdef __STDC__ | |
27874 | # include <limits.h> | |
27875 | #else | |
27876 | # include <assert.h> | |
27877 | #endif | |
70846f0a | 27878 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27879 | #ifdef __cplusplus |
27880 | extern "C" | |
27881 | { | |
27882 | #endif | |
70846f0a | 27883 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27884 | builtin and then its argument prototype would still apply. */ |
27885 | char $ac_func (); | |
70846f0a VZ |
27886 | /* The GNU C library defines this for functions which it implements |
27887 | to always fail with ENOSYS. Some functions are actually named | |
27888 | something starting with __ and the normal name is an alias. */ | |
27889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27890 | choke me | |
27891 | #else | |
e6cc62c6 VS |
27892 | char (*f) () = $ac_func; |
27893 | #endif | |
27894 | #ifdef __cplusplus | |
27895 | } | |
70846f0a VZ |
27896 | #endif |
27897 | ||
e6cc62c6 VS |
27898 | int |
27899 | main () | |
27900 | { | |
27901 | return f != $ac_func; | |
27902 | ; | |
27903 | return 0; | |
27904 | } | |
27905 | _ACEOF | |
27906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27908 | (eval $ac_link) 2>&5 | |
27909 | ac_status=$? | |
27910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27911 | (exit $ac_status); } && | |
27912 | { ac_try='test -s conftest$ac_exeext' | |
27913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27914 | (eval $ac_try) 2>&5 | |
27915 | ac_status=$? | |
27916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27917 | (exit $ac_status); }; }; then | |
27918 | eval "$as_ac_var=yes" | |
27919 | else | |
27920 | echo "$as_me: failed program was:" >&5 | |
27921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27922 | ||
27923 | eval "$as_ac_var=no" | |
27924 | fi | |
27925 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27926 | fi | |
27927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27928 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27929 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27930 | cat >>confdefs.h <<_ACEOF | |
27931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27932 | _ACEOF | |
4f14bcd8 | 27933 | break |
70846f0a VZ |
27934 | fi |
27935 | done | |
27936 | ||
8284b0c5 MB |
27937 | |
27938 | ||
e6cc62c6 VS |
27939 | |
27940 | ac_ext=cc | |
4f14bcd8 | 27941 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27945 | ||
8284b0c5 | 27946 | |
4f14bcd8 GD |
27947 | |
27948 | for ac_func in strtok_r | |
10f2d63a | 27949 | do |
e6cc62c6 VS |
27950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27953 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27955 | else | |
27956 | cat >conftest.$ac_ext <<_ACEOF | |
27957 | #line $LINENO "configure" | |
27958 | /* confdefs.h. */ | |
27959 | _ACEOF | |
27960 | cat confdefs.h >>conftest.$ac_ext | |
27961 | cat >>conftest.$ac_ext <<_ACEOF | |
27962 | /* end confdefs.h. */ | |
4f14bcd8 | 27963 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27964 | which can conflict with char $ac_func (); below. |
27965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27966 | <limits.h> exists even on freestanding compilers. */ | |
27967 | #ifdef __STDC__ | |
27968 | # include <limits.h> | |
27969 | #else | |
27970 | # include <assert.h> | |
27971 | #endif | |
4f14bcd8 GD |
27972 | /* Override any gcc2 internal prototype to avoid an error. */ |
27973 | #ifdef __cplusplus | |
27974 | extern "C" | |
e6cc62c6 | 27975 | { |
4f14bcd8 GD |
27976 | #endif |
27977 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27978 | builtin and then its argument prototype would still apply. */ |
27979 | char $ac_func (); | |
4f14bcd8 GD |
27980 | /* The GNU C library defines this for functions which it implements |
27981 | to always fail with ENOSYS. Some functions are actually named | |
27982 | something starting with __ and the normal name is an alias. */ | |
27983 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27984 | choke me | |
27985 | #else | |
e6cc62c6 VS |
27986 | char (*f) () = $ac_func; |
27987 | #endif | |
27988 | #ifdef __cplusplus | |
27989 | } | |
4f14bcd8 GD |
27990 | #endif |
27991 | ||
e6cc62c6 VS |
27992 | int |
27993 | main () | |
27994 | { | |
27995 | return f != $ac_func; | |
27996 | ; | |
27997 | return 0; | |
27998 | } | |
27999 | _ACEOF | |
28000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28002 | (eval $ac_link) 2>&5 | |
28003 | ac_status=$? | |
28004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28005 | (exit $ac_status); } && | |
28006 | { ac_try='test -s conftest$ac_exeext' | |
28007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28008 | (eval $ac_try) 2>&5 | |
28009 | ac_status=$? | |
28010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28011 | (exit $ac_status); }; }; then | |
28012 | eval "$as_ac_var=yes" | |
28013 | else | |
28014 | echo "$as_me: failed program was:" >&5 | |
28015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28016 | ||
28017 | eval "$as_ac_var=no" | |
28018 | fi | |
28019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28020 | fi | |
28021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28024 | cat >>confdefs.h <<_ACEOF | |
28025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28026 | _ACEOF | |
4f14bcd8 | 28027 | |
10f2d63a VZ |
28028 | fi |
28029 | done | |
28030 | ||
8284b0c5 | 28031 | |
4f14bcd8 | 28032 | ac_ext=c |
4f14bcd8 | 28033 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28037 | |
5c6fa7d2 | 28038 | |
8284b0c5 | 28039 | INET_LINK= |
e6cc62c6 | 28040 | |
4f14bcd8 GD |
28041 | for ac_func in inet_addr |
28042 | do | |
e6cc62c6 VS |
28043 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28044 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28045 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28046 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28048 | else | |
28049 | cat >conftest.$ac_ext <<_ACEOF | |
28050 | #line $LINENO "configure" | |
28051 | /* confdefs.h. */ | |
28052 | _ACEOF | |
28053 | cat confdefs.h >>conftest.$ac_ext | |
28054 | cat >>conftest.$ac_ext <<_ACEOF | |
28055 | /* end confdefs.h. */ | |
4f14bcd8 | 28056 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28057 | which can conflict with char $ac_func (); below. |
28058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28059 | <limits.h> exists even on freestanding compilers. */ | |
28060 | #ifdef __STDC__ | |
28061 | # include <limits.h> | |
28062 | #else | |
28063 | # include <assert.h> | |
28064 | #endif | |
10f2d63a | 28065 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28066 | #ifdef __cplusplus |
28067 | extern "C" | |
28068 | { | |
28069 | #endif | |
10f2d63a | 28070 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28071 | builtin and then its argument prototype would still apply. */ |
28072 | char $ac_func (); | |
4f14bcd8 GD |
28073 | /* The GNU C library defines this for functions which it implements |
28074 | to always fail with ENOSYS. Some functions are actually named | |
28075 | something starting with __ and the normal name is an alias. */ | |
28076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28077 | choke me | |
28078 | #else | |
e6cc62c6 VS |
28079 | char (*f) () = $ac_func; |
28080 | #endif | |
28081 | #ifdef __cplusplus | |
28082 | } | |
4f14bcd8 GD |
28083 | #endif |
28084 | ||
e6cc62c6 VS |
28085 | int |
28086 | main () | |
28087 | { | |
28088 | return f != $ac_func; | |
28089 | ; | |
28090 | return 0; | |
28091 | } | |
28092 | _ACEOF | |
28093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28095 | (eval $ac_link) 2>&5 | |
28096 | ac_status=$? | |
28097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28098 | (exit $ac_status); } && | |
28099 | { ac_try='test -s conftest$ac_exeext' | |
28100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28101 | (eval $ac_try) 2>&5 | |
28102 | ac_status=$? | |
28103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28104 | (exit $ac_status); }; }; then | |
28105 | eval "$as_ac_var=yes" | |
28106 | else | |
28107 | echo "$as_me: failed program was:" >&5 | |
28108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28109 | ||
28110 | eval "$as_ac_var=no" | |
28111 | fi | |
28112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28113 | fi | |
28114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28115 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28116 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28117 | cat >>confdefs.h <<_ACEOF | |
28118 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28119 | _ACEOF | |
28120 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28121 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28122 | _ACEOF |
10f2d63a VZ |
28123 | |
28124 | else | |
e6cc62c6 VS |
28125 | |
28126 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28127 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28128 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28130 | else |
e6cc62c6 | 28131 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28132 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
28133 | cat >conftest.$ac_ext <<_ACEOF |
28134 | #line $LINENO "configure" | |
28135 | /* confdefs.h. */ | |
28136 | _ACEOF | |
28137 | cat confdefs.h >>conftest.$ac_ext | |
28138 | cat >>conftest.$ac_ext <<_ACEOF | |
28139 | /* end confdefs.h. */ | |
28140 | ||
10f2d63a | 28141 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28142 | #ifdef __cplusplus |
28143 | extern "C" | |
28144 | #endif | |
10f2d63a | 28145 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28146 | builtin and then its argument prototype would still apply. */ |
28147 | char inet_addr (); | |
28148 | int | |
28149 | main () | |
28150 | { | |
28151 | inet_addr (); | |
28152 | ; | |
28153 | return 0; | |
28154 | } | |
28155 | _ACEOF | |
28156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28158 | (eval $ac_link) 2>&5 | |
28159 | ac_status=$? | |
28160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28161 | (exit $ac_status); } && | |
28162 | { ac_try='test -s conftest$ac_exeext' | |
28163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28164 | (eval $ac_try) 2>&5 | |
28165 | ac_status=$? | |
28166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28167 | (exit $ac_status); }; }; then | |
28168 | ac_cv_lib_nsl_inet_addr=yes | |
28169 | else | |
28170 | echo "$as_me: failed program was:" >&5 | |
28171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28172 | ||
28173 | ac_cv_lib_nsl_inet_addr=no | |
28174 | fi | |
28175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28176 | LIBS=$ac_check_lib_save_LIBS | |
28177 | fi | |
28178 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28179 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28180 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28181 | INET_LINK="nsl" |
10f2d63a | 28182 | else |
e6cc62c6 VS |
28183 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
28184 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
28185 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28187 | else |
e6cc62c6 | 28188 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28189 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28190 | cat >conftest.$ac_ext <<_ACEOF |
28191 | #line $LINENO "configure" | |
28192 | /* confdefs.h. */ | |
28193 | _ACEOF | |
28194 | cat confdefs.h >>conftest.$ac_ext | |
28195 | cat >>conftest.$ac_ext <<_ACEOF | |
28196 | /* end confdefs.h. */ | |
28197 | ||
5c6fa7d2 | 28198 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28199 | #ifdef __cplusplus |
28200 | extern "C" | |
28201 | #endif | |
5c6fa7d2 | 28202 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28203 | builtin and then its argument prototype would still apply. */ |
28204 | char inet_addr (); | |
28205 | int | |
28206 | main () | |
28207 | { | |
28208 | inet_addr (); | |
28209 | ; | |
28210 | return 0; | |
28211 | } | |
28212 | _ACEOF | |
28213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28215 | (eval $ac_link) 2>&5 | |
28216 | ac_status=$? | |
28217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28218 | (exit $ac_status); } && | |
28219 | { ac_try='test -s conftest$ac_exeext' | |
28220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28221 | (eval $ac_try) 2>&5 | |
28222 | ac_status=$? | |
28223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28224 | (exit $ac_status); }; }; then | |
28225 | ac_cv_lib_resolv_inet_addr=yes | |
28226 | else | |
28227 | echo "$as_me: failed program was:" >&5 | |
28228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28229 | ||
28230 | ac_cv_lib_resolv_inet_addr=no | |
28231 | fi | |
28232 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28233 | LIBS=$ac_check_lib_save_LIBS | |
28234 | fi | |
28235 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28236 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28237 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28238 | INET_LINK="resolv" |
698dcdb6 | 28239 | else |
e6cc62c6 VS |
28240 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
28241 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
28242 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28244 | else |
e6cc62c6 | 28245 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28246 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28247 | cat >conftest.$ac_ext <<_ACEOF |
28248 | #line $LINENO "configure" | |
28249 | /* confdefs.h. */ | |
28250 | _ACEOF | |
28251 | cat confdefs.h >>conftest.$ac_ext | |
28252 | cat >>conftest.$ac_ext <<_ACEOF | |
28253 | /* end confdefs.h. */ | |
28254 | ||
3c011993 | 28255 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28256 | #ifdef __cplusplus |
28257 | extern "C" | |
28258 | #endif | |
3c011993 | 28259 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28260 | builtin and then its argument prototype would still apply. */ |
28261 | char inet_addr (); | |
28262 | int | |
28263 | main () | |
28264 | { | |
28265 | inet_addr (); | |
28266 | ; | |
28267 | return 0; | |
28268 | } | |
28269 | _ACEOF | |
28270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28271 | if { (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 | ac_cv_lib_socket_inet_addr=yes | |
28283 | else | |
28284 | echo "$as_me: failed program was:" >&5 | |
28285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28286 | ||
28287 | ac_cv_lib_socket_inet_addr=no | |
28288 | fi | |
28289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28290 | LIBS=$ac_check_lib_save_LIBS | |
28291 | fi | |
28292 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28293 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28294 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28295 | INET_LINK="socket" | |
4f14bcd8 | 28296 | |
8284b0c5 | 28297 | fi |
e6cc62c6 | 28298 | |
698dcdb6 | 28299 | |
7b4a847f | 28300 | fi |
e6cc62c6 VS |
28301 | |
28302 | ||
a0b9e27f | 28303 | fi |
579d8138 | 28304 | |
e6cc62c6 VS |
28305 | |
28306 | ||
5c6fa7d2 | 28307 | fi |
e6cc62c6 VS |
28308 | done |
28309 | ||
28310 | ||
28311 | ||
28312 | for ac_func in inet_aton | |
28313 | do | |
28314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28317 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28319 | else | |
28320 | cat >conftest.$ac_ext <<_ACEOF | |
28321 | #line $LINENO "configure" | |
28322 | /* confdefs.h. */ | |
28323 | _ACEOF | |
28324 | cat confdefs.h >>conftest.$ac_ext | |
28325 | cat >>conftest.$ac_ext <<_ACEOF | |
28326 | /* end confdefs.h. */ | |
28327 | /* System header to define __stub macros and hopefully few prototypes, | |
28328 | which can conflict with char $ac_func (); below. | |
28329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28330 | <limits.h> exists even on freestanding compilers. */ | |
28331 | #ifdef __STDC__ | |
28332 | # include <limits.h> | |
28333 | #else | |
28334 | # include <assert.h> | |
28335 | #endif | |
28336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28337 | #ifdef __cplusplus | |
28338 | extern "C" | |
28339 | { | |
28340 | #endif | |
28341 | /* We use char because int might match the return type of a gcc2 | |
28342 | builtin and then its argument prototype would still apply. */ | |
28343 | char $ac_func (); | |
28344 | /* The GNU C library defines this for functions which it implements | |
28345 | to always fail with ENOSYS. Some functions are actually named | |
28346 | something starting with __ and the normal name is an alias. */ | |
28347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28348 | choke me | |
28349 | #else | |
28350 | char (*f) () = $ac_func; | |
28351 | #endif | |
28352 | #ifdef __cplusplus | |
28353 | } | |
28354 | #endif | |
28355 | ||
28356 | int | |
28357 | main () | |
28358 | { | |
28359 | return f != $ac_func; | |
28360 | ; | |
28361 | return 0; | |
28362 | } | |
28363 | _ACEOF | |
28364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28366 | (eval $ac_link) 2>&5 | |
28367 | ac_status=$? | |
28368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28369 | (exit $ac_status); } && | |
28370 | { ac_try='test -s conftest$ac_exeext' | |
28371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28372 | (eval $ac_try) 2>&5 | |
28373 | ac_status=$? | |
28374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28375 | (exit $ac_status); }; }; then | |
28376 | eval "$as_ac_var=yes" | |
28377 | else | |
28378 | echo "$as_me: failed program was:" >&5 | |
28379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28380 | ||
28381 | eval "$as_ac_var=no" | |
28382 | fi | |
28383 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28384 | fi | |
28385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28386 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28387 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28388 | cat >>confdefs.h <<_ACEOF | |
28389 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28390 | _ACEOF | |
28391 | cat >>confdefs.h <<\_ACEOF | |
28392 | #define HAVE_INET_ATON 1 | |
28393 | _ACEOF | |
28394 | ||
28395 | else | |
28396 | ||
28397 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28398 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28399 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28400 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28402 | else | |
28403 | ac_check_lib_save_LIBS=$LIBS | |
28404 | LIBS="-l$INET_LINK $LIBS" | |
28405 | cat >conftest.$ac_ext <<_ACEOF | |
28406 | #line $LINENO "configure" | |
28407 | /* confdefs.h. */ | |
28408 | _ACEOF | |
28409 | cat confdefs.h >>conftest.$ac_ext | |
28410 | cat >>conftest.$ac_ext <<_ACEOF | |
28411 | /* end confdefs.h. */ | |
28412 | ||
28413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28414 | #ifdef __cplusplus | |
28415 | extern "C" | |
28416 | #endif | |
28417 | /* We use char because int might match the return type of a gcc2 | |
28418 | builtin and then its argument prototype would still apply. */ | |
28419 | char inet_aton (); | |
28420 | int | |
28421 | main () | |
28422 | { | |
28423 | inet_aton (); | |
28424 | ; | |
28425 | return 0; | |
28426 | } | |
28427 | _ACEOF | |
28428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28430 | (eval $ac_link) 2>&5 | |
28431 | ac_status=$? | |
28432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28433 | (exit $ac_status); } && | |
28434 | { ac_try='test -s conftest$ac_exeext' | |
28435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28436 | (eval $ac_try) 2>&5 | |
28437 | ac_status=$? | |
28438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28439 | (exit $ac_status); }; }; then | |
28440 | eval "$as_ac_Lib=yes" | |
28441 | else | |
28442 | echo "$as_me: failed program was:" >&5 | |
28443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28444 | ||
28445 | eval "$as_ac_Lib=no" | |
28446 | fi | |
28447 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28448 | LIBS=$ac_check_lib_save_LIBS | |
28449 | fi | |
28450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28451 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28452 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28453 | cat >>confdefs.h <<\_ACEOF | |
28454 | #define HAVE_INET_ATON 1 | |
28455 | _ACEOF | |
52127426 | 28456 | |
a0b9e27f | 28457 | fi |
247f5006 | 28458 | |
8284b0c5 | 28459 | |
698dcdb6 | 28460 | fi |
4f14bcd8 GD |
28461 | done |
28462 | ||
8284b0c5 | 28463 | |
e6cc62c6 VS |
28464 | if test "x$INET_LINK" != "x"; then |
28465 | cat >>confdefs.h <<\_ACEOF | |
28466 | #define HAVE_INET_ADDR 1 | |
28467 | _ACEOF | |
28468 | ||
28469 | INET_LINK=" -l$INET_LINK" | |
28470 | fi | |
28471 | ||
28472 | fi | |
a0b9e27f | 28473 | |
a0b9e27f | 28474 | |
4f14bcd8 | 28475 | |
edd891e2 VS |
28476 | EXTRALIBS_ESD= |
28477 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28478 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28479 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28481 | else | |
28482 | ac_check_lib_save_LIBS=$LIBS | |
28483 | LIBS="-lesd $LIBS" | |
28484 | cat >conftest.$ac_ext <<_ACEOF | |
28485 | #line $LINENO "configure" | |
28486 | /* confdefs.h. */ | |
28487 | _ACEOF | |
28488 | cat confdefs.h >>conftest.$ac_ext | |
28489 | cat >>conftest.$ac_ext <<_ACEOF | |
28490 | /* end confdefs.h. */ | |
28491 | ||
28492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28493 | #ifdef __cplusplus | |
28494 | extern "C" | |
28495 | #endif | |
28496 | /* We use char because int might match the return type of a gcc2 | |
28497 | builtin and then its argument prototype would still apply. */ | |
28498 | char esd_close (); | |
28499 | int | |
28500 | main () | |
28501 | { | |
28502 | esd_close (); | |
28503 | ; | |
28504 | return 0; | |
28505 | } | |
28506 | _ACEOF | |
28507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28509 | (eval $ac_link) 2>&5 | |
28510 | ac_status=$? | |
28511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28512 | (exit $ac_status); } && | |
28513 | { ac_try='test -s conftest$ac_exeext' | |
28514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28515 | (eval $ac_try) 2>&5 | |
28516 | ac_status=$? | |
28517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28518 | (exit $ac_status); }; }; then | |
28519 | ac_cv_lib_esd_esd_close=yes | |
28520 | else | |
28521 | echo "$as_me: failed program was:" >&5 | |
28522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28523 | ||
28524 | ac_cv_lib_esd_esd_close=no | |
28525 | fi | |
28526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28527 | LIBS=$ac_check_lib_save_LIBS | |
28528 | fi | |
28529 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28530 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28531 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28532 | ||
28533 | ||
28534 | for ac_header in esd.h | |
28535 | do | |
28536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28542 | fi | |
edd891e2 VS |
28543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28545 | else |
28546 | # Is the header compilable? | |
edd891e2 VS |
28547 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 VS |
28549 | cat >conftest.$ac_ext <<_ACEOF |
28550 | #line $LINENO "configure" | |
28551 | /* confdefs.h. */ | |
28552 | _ACEOF | |
28553 | cat confdefs.h >>conftest.$ac_ext | |
28554 | cat >>conftest.$ac_ext <<_ACEOF | |
28555 | /* end confdefs.h. */ | |
28556 | $ac_includes_default | |
edd891e2 | 28557 | #include <$ac_header> |
e6cc62c6 VS |
28558 | _ACEOF |
28559 | rm -f conftest.$ac_objext | |
28560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28561 | (eval $ac_compile) 2>&5 | |
28562 | ac_status=$? | |
28563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28564 | (exit $ac_status); } && | |
28565 | { ac_try='test -s conftest.$ac_objext' | |
28566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28567 | (eval $ac_try) 2>&5 | |
28568 | ac_status=$? | |
28569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28570 | (exit $ac_status); }; }; then | |
28571 | ac_header_compiler=yes | |
28572 | else | |
28573 | echo "$as_me: failed program was:" >&5 | |
28574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28575 | ||
28576 | ac_header_compiler=no | |
28577 | fi | |
28578 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28579 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28580 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28581 | ||
28582 | # Is the header present? | |
edd891e2 VS |
28583 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28584 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 VS |
28585 | cat >conftest.$ac_ext <<_ACEOF |
28586 | #line $LINENO "configure" | |
28587 | /* confdefs.h. */ | |
28588 | _ACEOF | |
28589 | cat confdefs.h >>conftest.$ac_ext | |
28590 | cat >>conftest.$ac_ext <<_ACEOF | |
28591 | /* end confdefs.h. */ | |
edd891e2 | 28592 | #include <$ac_header> |
e6cc62c6 VS |
28593 | _ACEOF |
28594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28596 | ac_status=$? | |
28597 | grep -v '^ *+' conftest.er1 >conftest.err | |
28598 | rm -f conftest.er1 | |
28599 | cat conftest.err >&5 | |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28601 | (exit $ac_status); } >/dev/null; then | |
28602 | if test -s conftest.err; then | |
28603 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28604 | else | |
28605 | ac_cpp_err= | |
28606 | fi | |
a0b9e27f | 28607 | else |
e6cc62c6 VS |
28608 | ac_cpp_err=yes |
28609 | fi | |
28610 | if test -z "$ac_cpp_err"; then | |
28611 | ac_header_preproc=yes | |
28612 | else | |
28613 | echo "$as_me: failed program was:" >&5 | |
28614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28615 | ||
28616 | ac_header_preproc=no | |
28617 | fi | |
28618 | rm -f conftest.err conftest.$ac_ext | |
28619 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28620 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28621 | ||
28622 | # So? What about this header? | |
28623 | case $ac_header_compiler:$ac_header_preproc in | |
28624 | yes:no ) | |
edd891e2 VS |
28625 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28626 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28629 | ( |
28630 | cat <<\_ASBOX | |
28631 | ## ------------------------------------ ## | |
28632 | ## Report this to bug-autoconf@gnu.org. ## | |
28633 | ## ------------------------------------ ## | |
28634 | _ASBOX | |
28635 | ) | | |
28636 | sed "s/^/$as_me: WARNING: /" >&2 | |
28637 | ;; | |
28638 | no:yes ) | |
edd891e2 VS |
28639 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28640 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28641 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28645 | ( |
28646 | cat <<\_ASBOX | |
28647 | ## ------------------------------------ ## | |
28648 | ## Report this to bug-autoconf@gnu.org. ## | |
28649 | ## ------------------------------------ ## | |
28650 | _ASBOX | |
28651 | ) | | |
28652 | sed "s/^/$as_me: WARNING: /" >&2 | |
28653 | ;; | |
28654 | esac | |
edd891e2 VS |
28655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
28656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28659 | else | |
edd891e2 | 28660 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 28661 | fi |
edd891e2 VS |
28662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 28664 | |
e6cc62c6 | 28665 | fi |
edd891e2 VS |
28666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28667 | cat >>confdefs.h <<_ACEOF | |
28668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 28669 | _ACEOF |
e6cc62c6 | 28670 | |
edd891e2 | 28671 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 28672 | |
a0b9e27f | 28673 | fi |
247f5006 | 28674 | |
edd891e2 | 28675 | done |
8284b0c5 | 28676 | |
4f14bcd8 | 28677 | |
6232543b | 28678 | fi |
10f2d63a | 28679 | |
703e0a69 | 28680 | |
8284b0c5 | 28681 | |
e6cc62c6 VS |
28682 | |
28683 | ||
28684 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28685 | # This file is a shell script that caches the results of configure |
28686 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28687 | # scripts and configure runs, see configure's option --config-cache. |
28688 | # It is not useful on other systems. If it contains results you don't | |
28689 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28690 | # |
e6cc62c6 VS |
28691 | # config.status only pays attention to the cache file if you give it |
28692 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28693 | # |
e6cc62c6 VS |
28694 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28695 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28696 | # following values. | |
28697 | ||
28698 | _ACEOF | |
28699 | ||
4f14bcd8 GD |
28700 | # The following way of writing the cache mishandles newlines in values, |
28701 | # but we know of no workaround that is simple, portable, and efficient. | |
28702 | # So, don't put newlines in cache variables' values. | |
28703 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28704 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28705 | { |
28706 | (set) 2>&1 | | |
28707 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28708 | *ac_space=\ *) | |
28709 | # `set' does not quote correctly, so add quotes (double-quote | |
28710 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28711 | sed -n \ | |
28712 | "s/'/'\\\\''/g; | |
28713 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28714 | ;; | |
28715 | *) | |
28716 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28717 | sed -n \ | |
28718 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28719 | ;; | |
28720 | esac; | |
28721 | } | | |
28722 | sed ' | |
28723 | t clear | |
28724 | : clear | |
28725 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28726 | t end | |
28727 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28728 | : end' >>confcache | |
28729 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28730 | if test -w $cache_file; then |
e6cc62c6 VS |
28731 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28732 | cat confcache >$cache_file | |
f6bcfd97 | 28733 | else |
4f14bcd8 | 28734 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28735 | fi |
4f14bcd8 GD |
28736 | fi |
28737 | rm -f confcache | |
f6bcfd97 | 28738 | |
8284b0c5 | 28739 | |
009fead0 | 28740 | CPP_MT_FLAG= |
4f14bcd8 GD |
28741 | if test "$TOOLKIT" != "MSW"; then |
28742 | ||
e6cc62c6 | 28743 | |
7274f1c7 | 28744 | THREADS_LINK= |
009fead0 | 28745 | THREADS_CFLAGS= |
7274f1c7 RL |
28746 | |
28747 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28748 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28749 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28750 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28751 | wxUSE_THREADS="no" |
28752 | fi | |
4f14bcd8 | 28753 | fi |
4f14bcd8 | 28754 | |
7274f1c7 | 28755 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28756 | |
28757 | ||
009fead0 VZ |
28758 | THREAD_OPTS="-pthread" |
28759 | case "${host}" in | |
28760 | *-*-solaris2* | *-*-sunos4* ) | |
28761 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28762 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28763 | else |
28764 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28765 | fi | |
28766 | ;; | |
28767 | *-*-freebsd*) | |
28768 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28769 | ;; | |
17234b26 MB |
28770 | *-*-darwin* | *-*-cygwin* ) |
28771 | THREAD_OPTS="" | |
4101db81 | 28772 | ;; |
8f4a9a10 | 28773 | *-*-aix*) |
009fead0 VZ |
28774 | THREAD_OPTS="pthreads" |
28775 | ;; | |
4f5a7f74 VZ |
28776 | *-hp-hpux* ) |
28777 | if test "x$GCC" != "xyes"; then | |
28778 | THREAD_OPTS="" | |
28779 | fi | |
89e3b3e4 VZ |
28780 | ;; |
28781 | ||
28782 | *-*-irix* ) | |
28783 | if test "x$GCC" = "xyes"; then | |
28784 | THREAD_OPTS="" | |
28785 | fi | |
28786 | ;; | |
28787 | ||
28788 | *-*-*UnixWare*) | |
28789 | if test "x$GCC" != "xyes"; then | |
28790 | THREAD_OPTS="-Ethread" | |
28791 | fi | |
28792 | ;; | |
009fead0 | 28793 | esac |
4f14bcd8 | 28794 | |
02a1dfba | 28795 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28796 | |
009fead0 VZ |
28797 | THREADS_OK=no |
28798 | for flag in $THREAD_OPTS; do | |
28799 | case $flag in | |
28800 | none) | |
e6cc62c6 VS |
28801 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28802 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28803 | ;; |
698dcdb6 | 28804 | |
009fead0 | 28805 | -*) |
e6cc62c6 VS |
28806 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28807 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28808 | THREADS_CFLAGS="$flag" |
28809 | ;; | |
698dcdb6 | 28810 | |
009fead0 | 28811 | *) |
e6cc62c6 VS |
28812 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28813 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28814 | THREADS_LINK="-l$flag" |
28815 | ;; | |
28816 | esac | |
10f2d63a | 28817 | |
009fead0 VZ |
28818 | save_LIBS="$LIBS" |
28819 | save_CFLAGS="$CFLAGS" | |
28820 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28821 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28822 | |
e6cc62c6 VS |
28823 | cat >conftest.$ac_ext <<_ACEOF |
28824 | #line $LINENO "configure" | |
28825 | /* confdefs.h. */ | |
28826 | _ACEOF | |
28827 | cat confdefs.h >>conftest.$ac_ext | |
28828 | cat >>conftest.$ac_ext <<_ACEOF | |
28829 | /* end confdefs.h. */ | |
009fead0 | 28830 | #include <pthread.h> |
e6cc62c6 VS |
28831 | int |
28832 | main () | |
28833 | { | |
009fead0 | 28834 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
28835 | ; |
28836 | return 0; | |
28837 | } | |
28838 | _ACEOF | |
28839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28841 | (eval $ac_link) 2>&5 | |
28842 | ac_status=$? | |
28843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28844 | (exit $ac_status); } && | |
28845 | { ac_try='test -s conftest$ac_exeext' | |
28846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28847 | (eval $ac_try) 2>&5 | |
28848 | ac_status=$? | |
28849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28850 | (exit $ac_status); }; }; then | |
009fead0 | 28851 | THREADS_OK=yes |
10f2d63a | 28852 | else |
e6cc62c6 VS |
28853 | echo "$as_me: failed program was:" >&5 |
28854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28855 | ||
6232543b | 28856 | fi |
e6cc62c6 | 28857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 28858 | |
009fead0 VZ |
28859 | LIBS="$save_LIBS" |
28860 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 28861 | |
e6cc62c6 VS |
28862 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
28863 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
28864 | if test "x$THREADS_OK" = "xyes"; then |
28865 | break; | |
28866 | fi | |
d9b9876f | 28867 | |
009fead0 VZ |
28868 | THREADS_LINK="" |
28869 | THREADS_CFLAGS="" | |
28870 | done | |
4f14bcd8 | 28871 | |
009fead0 VZ |
28872 | if test "x$THREADS_OK" != "xyes"; then |
28873 | wxUSE_THREADS=no | |
e6cc62c6 VS |
28874 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
28875 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 28876 | else |
db82f09e VZ |
28877 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
28878 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 28879 | |
e6cc62c6 VS |
28880 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
28881 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
28882 | flag=no |
28883 | case "${host}" in | |
2b5f62a0 VZ |
28884 | *-aix*) |
28885 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28886 | flag="-D_THREAD_SAFE" | |
28887 | ;; | |
28888 | *-freebsd*) | |
009fead0 VZ |
28889 | flag="-D_THREAD_SAFE" |
28890 | ;; | |
06313569 GD |
28891 | *-hp-hpux* ) |
28892 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
28893 | if test "x$GCC" != "xyes"; then |
28894 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28895 | fi | |
06313569 | 28896 | ;; |
009fead0 VZ |
28897 | *solaris* | alpha*-osf*) |
28898 | flag="-D_REENTRANT" | |
28899 | ;; | |
28900 | esac | |
e6cc62c6 VS |
28901 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
28902 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 28903 | if test "x$flag" != xno; then |
04727afd | 28904 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
28905 | fi |
28906 | ||
009fead0 | 28907 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 28908 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
28909 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
28910 | fi | |
28911 | fi | |
4f14bcd8 | 28912 | fi |
4f14bcd8 | 28913 | |
7274f1c7 | 28914 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28915 | |
28916 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 28917 | do |
e6cc62c6 VS |
28918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28919 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28921 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28923 | else | |
28924 | cat >conftest.$ac_ext <<_ACEOF | |
28925 | #line $LINENO "configure" | |
28926 | /* confdefs.h. */ | |
28927 | _ACEOF | |
28928 | cat confdefs.h >>conftest.$ac_ext | |
28929 | cat >>conftest.$ac_ext <<_ACEOF | |
28930 | /* end confdefs.h. */ | |
4f14bcd8 | 28931 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28932 | which can conflict with char $ac_func (); below. |
28933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28934 | <limits.h> exists even on freestanding compilers. */ | |
28935 | #ifdef __STDC__ | |
28936 | # include <limits.h> | |
28937 | #else | |
28938 | # include <assert.h> | |
28939 | #endif | |
4f14bcd8 | 28940 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28941 | #ifdef __cplusplus |
28942 | extern "C" | |
28943 | { | |
28944 | #endif | |
4f14bcd8 | 28945 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28946 | builtin and then its argument prototype would still apply. */ |
28947 | char $ac_func (); | |
4f14bcd8 GD |
28948 | /* The GNU C library defines this for functions which it implements |
28949 | to always fail with ENOSYS. Some functions are actually named | |
28950 | something starting with __ and the normal name is an alias. */ | |
28951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28952 | choke me | |
28953 | #else | |
e6cc62c6 VS |
28954 | char (*f) () = $ac_func; |
28955 | #endif | |
28956 | #ifdef __cplusplus | |
28957 | } | |
4f14bcd8 GD |
28958 | #endif |
28959 | ||
e6cc62c6 VS |
28960 | int |
28961 | main () | |
28962 | { | |
28963 | return f != $ac_func; | |
28964 | ; | |
28965 | return 0; | |
28966 | } | |
28967 | _ACEOF | |
28968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28970 | (eval $ac_link) 2>&5 | |
28971 | ac_status=$? | |
28972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28973 | (exit $ac_status); } && | |
28974 | { ac_try='test -s conftest$ac_exeext' | |
28975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28976 | (eval $ac_try) 2>&5 | |
28977 | ac_status=$? | |
28978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28979 | (exit $ac_status); }; }; then | |
28980 | eval "$as_ac_var=yes" | |
28981 | else | |
28982 | echo "$as_me: failed program was:" >&5 | |
28983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28984 | ||
28985 | eval "$as_ac_var=no" | |
28986 | fi | |
28987 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28988 | fi | |
28989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28990 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28991 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28992 | cat >>confdefs.h <<_ACEOF | |
28993 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28994 | _ACEOF | |
698dcdb6 | 28995 | |
10f2d63a | 28996 | fi |
4f14bcd8 | 28997 | done |
10f2d63a | 28998 | |
8284b0c5 | 28999 | |
e6cc62c6 VS |
29000 | |
29001 | for ac_header in sched.h | |
4f14bcd8 | 29002 | do |
e6cc62c6 VS |
29003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29005 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29009 | fi | |
29010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29012 | else | |
29013 | # Is the header compilable? | |
29014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29016 | cat >conftest.$ac_ext <<_ACEOF | |
29017 | #line $LINENO "configure" | |
29018 | /* confdefs.h. */ | |
29019 | _ACEOF | |
29020 | cat confdefs.h >>conftest.$ac_ext | |
29021 | cat >>conftest.$ac_ext <<_ACEOF | |
29022 | /* end confdefs.h. */ | |
29023 | $ac_includes_default | |
29024 | #include <$ac_header> | |
29025 | _ACEOF | |
29026 | rm -f conftest.$ac_objext | |
29027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29028 | (eval $ac_compile) 2>&5 | |
29029 | ac_status=$? | |
29030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29031 | (exit $ac_status); } && | |
29032 | { ac_try='test -s conftest.$ac_objext' | |
29033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29034 | (eval $ac_try) 2>&5 | |
29035 | ac_status=$? | |
29036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29037 | (exit $ac_status); }; }; then | |
29038 | ac_header_compiler=yes | |
29039 | else | |
29040 | echo "$as_me: failed program was:" >&5 | |
29041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29042 | ||
29043 | ac_header_compiler=no | |
29044 | fi | |
29045 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29047 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29048 | ||
29049 | # Is the header present? | |
29050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29052 | cat >conftest.$ac_ext <<_ACEOF | |
29053 | #line $LINENO "configure" | |
29054 | /* confdefs.h. */ | |
29055 | _ACEOF | |
29056 | cat confdefs.h >>conftest.$ac_ext | |
29057 | cat >>conftest.$ac_ext <<_ACEOF | |
29058 | /* end confdefs.h. */ | |
29059 | #include <$ac_header> | |
29060 | _ACEOF | |
29061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29063 | ac_status=$? | |
29064 | grep -v '^ *+' conftest.er1 >conftest.err | |
29065 | rm -f conftest.er1 | |
29066 | cat conftest.err >&5 | |
29067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29068 | (exit $ac_status); } >/dev/null; then | |
29069 | if test -s conftest.err; then | |
29070 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29071 | else | |
29072 | ac_cpp_err= | |
29073 | fi | |
29074 | else | |
29075 | ac_cpp_err=yes | |
29076 | fi | |
29077 | if test -z "$ac_cpp_err"; then | |
29078 | ac_header_preproc=yes | |
29079 | else | |
29080 | echo "$as_me: failed program was:" >&5 | |
29081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29082 | ||
29083 | ac_header_preproc=no | |
29084 | fi | |
29085 | rm -f conftest.err conftest.$ac_ext | |
29086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29087 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29088 | ||
29089 | # So? What about this header? | |
29090 | case $ac_header_compiler:$ac_header_preproc in | |
29091 | yes:no ) | |
29092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29095 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29096 | ( | |
29097 | cat <<\_ASBOX | |
29098 | ## ------------------------------------ ## | |
29099 | ## Report this to bug-autoconf@gnu.org. ## | |
29100 | ## ------------------------------------ ## | |
29101 | _ASBOX | |
29102 | ) | | |
29103 | sed "s/^/$as_me: WARNING: /" >&2 | |
29104 | ;; | |
29105 | no:yes ) | |
29106 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29107 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29108 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29109 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29112 | ( | |
29113 | cat <<\_ASBOX | |
29114 | ## ------------------------------------ ## | |
29115 | ## Report this to bug-autoconf@gnu.org. ## | |
29116 | ## ------------------------------------ ## | |
29117 | _ASBOX | |
29118 | ) | | |
29119 | sed "s/^/$as_me: WARNING: /" >&2 | |
29120 | ;; | |
29121 | esac | |
29122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29126 | else | |
29127 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 29128 | fi |
e6cc62c6 VS |
29129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29131 | ||
10f2d63a | 29132 | fi |
e6cc62c6 VS |
29133 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29134 | cat >>confdefs.h <<_ACEOF | |
29135 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29136 | _ACEOF | |
29137 | ||
f6bcfd97 | 29138 | fi |
e6cc62c6 | 29139 | |
4f14bcd8 | 29140 | done |
f6bcfd97 | 29141 | |
009fead0 | 29142 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29143 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29144 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29145 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29147 | else | |
29148 | cat >conftest.$ac_ext <<_ACEOF | |
29149 | #line $LINENO "configure" | |
29150 | /* confdefs.h. */ | |
29151 | _ACEOF | |
29152 | cat confdefs.h >>conftest.$ac_ext | |
29153 | cat >>conftest.$ac_ext <<_ACEOF | |
29154 | /* end confdefs.h. */ | |
009fead0 | 29155 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29156 | which can conflict with char sched_yield (); below. |
29157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29158 | <limits.h> exists even on freestanding compilers. */ | |
29159 | #ifdef __STDC__ | |
29160 | # include <limits.h> | |
29161 | #else | |
29162 | # include <assert.h> | |
29163 | #endif | |
4f14bcd8 | 29164 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29165 | #ifdef __cplusplus |
29166 | extern "C" | |
29167 | { | |
29168 | #endif | |
4f14bcd8 | 29169 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29170 | builtin and then its argument prototype would still apply. */ |
29171 | char sched_yield (); | |
009fead0 VZ |
29172 | /* The GNU C library defines this for functions which it implements |
29173 | to always fail with ENOSYS. Some functions are actually named | |
29174 | something starting with __ and the normal name is an alias. */ | |
29175 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29176 | choke me | |
29177 | #else | |
e6cc62c6 VS |
29178 | char (*f) () = sched_yield; |
29179 | #endif | |
29180 | #ifdef __cplusplus | |
29181 | } | |
009fead0 VZ |
29182 | #endif |
29183 | ||
e6cc62c6 VS |
29184 | int |
29185 | main () | |
29186 | { | |
29187 | return f != sched_yield; | |
29188 | ; | |
29189 | return 0; | |
29190 | } | |
29191 | _ACEOF | |
29192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29194 | (eval $ac_link) 2>&5 | |
29195 | ac_status=$? | |
29196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29197 | (exit $ac_status); } && | |
29198 | { ac_try='test -s conftest$ac_exeext' | |
29199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29200 | (eval $ac_try) 2>&5 | |
29201 | ac_status=$? | |
29202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29203 | (exit $ac_status); }; }; then | |
29204 | ac_cv_func_sched_yield=yes | |
29205 | else | |
29206 | echo "$as_me: failed program was:" >&5 | |
29207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29208 | ||
29209 | ac_cv_func_sched_yield=no | |
29210 | fi | |
29211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29212 | fi | |
29213 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29214 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29215 | if test $ac_cv_func_sched_yield = yes; then | |
29216 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29217 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29218 | _ACEOF |
10f2d63a | 29219 | |
4f14bcd8 | 29220 | else |
009fead0 | 29221 | |
e6cc62c6 VS |
29222 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29223 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29224 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29226 | else |
e6cc62c6 | 29227 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29228 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29229 | cat >conftest.$ac_ext <<_ACEOF |
29230 | #line $LINENO "configure" | |
29231 | /* confdefs.h. */ | |
29232 | _ACEOF | |
29233 | cat confdefs.h >>conftest.$ac_ext | |
29234 | cat >>conftest.$ac_ext <<_ACEOF | |
29235 | /* end confdefs.h. */ | |
29236 | ||
4f14bcd8 | 29237 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29238 | #ifdef __cplusplus |
29239 | extern "C" | |
29240 | #endif | |
4f14bcd8 | 29241 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29242 | builtin and then its argument prototype would still apply. */ |
29243 | char sched_yield (); | |
29244 | int | |
29245 | main () | |
29246 | { | |
29247 | sched_yield (); | |
29248 | ; | |
29249 | return 0; | |
29250 | } | |
29251 | _ACEOF | |
29252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29254 | (eval $ac_link) 2>&5 | |
29255 | ac_status=$? | |
29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29257 | (exit $ac_status); } && | |
29258 | { ac_try='test -s conftest$ac_exeext' | |
29259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29260 | (eval $ac_try) 2>&5 | |
29261 | ac_status=$? | |
29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29263 | (exit $ac_status); }; }; then | |
29264 | ac_cv_lib_posix4_sched_yield=yes | |
29265 | else | |
29266 | echo "$as_me: failed program was:" >&5 | |
29267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29268 | ||
29269 | ac_cv_lib_posix4_sched_yield=no | |
29270 | fi | |
29271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29272 | LIBS=$ac_check_lib_save_LIBS | |
29273 | fi | |
29274 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29275 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29276 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29277 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29278 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29279 | _ACEOF |
3d63bc3a | 29280 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29281 | else |
e6cc62c6 VS |
29282 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29283 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29284 | ||
54276ccf VZ |
29285 | fi |
29286 | ||
e6cc62c6 VS |
29287 | |
29288 | ||
4f14bcd8 | 29289 | fi |
698dcdb6 | 29290 | |
009fead0 | 29291 | fi |
10f2d63a | 29292 | |
7274f1c7 | 29293 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29294 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29295 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29296 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29298 | else | |
29299 | cat >conftest.$ac_ext <<_ACEOF | |
29300 | #line $LINENO "configure" | |
29301 | /* confdefs.h. */ | |
29302 | _ACEOF | |
29303 | cat confdefs.h >>conftest.$ac_ext | |
29304 | cat >>conftest.$ac_ext <<_ACEOF | |
29305 | /* end confdefs.h. */ | |
009fead0 | 29306 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29307 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29308 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29309 | <limits.h> exists even on freestanding compilers. */ | |
29310 | #ifdef __STDC__ | |
29311 | # include <limits.h> | |
29312 | #else | |
29313 | # include <assert.h> | |
29314 | #endif | |
4f14bcd8 | 29315 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29316 | #ifdef __cplusplus |
29317 | extern "C" | |
29318 | { | |
29319 | #endif | |
4f14bcd8 | 29320 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29321 | builtin and then its argument prototype would still apply. */ |
29322 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29323 | /* The GNU C library defines this for functions which it implements |
29324 | to always fail with ENOSYS. Some functions are actually named | |
29325 | something starting with __ and the normal name is an alias. */ | |
29326 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29327 | choke me | |
29328 | #else | |
e6cc62c6 VS |
29329 | char (*f) () = pthread_attr_getschedpolicy; |
29330 | #endif | |
29331 | #ifdef __cplusplus | |
29332 | } | |
009fead0 VZ |
29333 | #endif |
29334 | ||
e6cc62c6 VS |
29335 | int |
29336 | main () | |
29337 | { | |
29338 | return f != pthread_attr_getschedpolicy; | |
29339 | ; | |
29340 | return 0; | |
29341 | } | |
29342 | _ACEOF | |
29343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29345 | (eval $ac_link) 2>&5 | |
29346 | ac_status=$? | |
29347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29348 | (exit $ac_status); } && | |
29349 | { ac_try='test -s conftest$ac_exeext' | |
29350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29351 | (eval $ac_try) 2>&5 | |
29352 | ac_status=$? | |
29353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29354 | (exit $ac_status); }; }; then | |
29355 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29356 | else | |
29357 | echo "$as_me: failed program was:" >&5 | |
29358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29359 | ||
29360 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29361 | fi | |
29362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29363 | fi | |
29364 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29365 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29366 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29367 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29368 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29369 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29371 | else | |
29372 | cat >conftest.$ac_ext <<_ACEOF | |
29373 | #line $LINENO "configure" | |
29374 | /* confdefs.h. */ | |
29375 | _ACEOF | |
29376 | cat confdefs.h >>conftest.$ac_ext | |
29377 | cat >>conftest.$ac_ext <<_ACEOF | |
29378 | /* end confdefs.h. */ | |
a0b9e27f | 29379 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29380 | which can conflict with char pthread_attr_setschedparam (); below. |
29381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29382 | <limits.h> exists even on freestanding compilers. */ | |
29383 | #ifdef __STDC__ | |
29384 | # include <limits.h> | |
29385 | #else | |
29386 | # include <assert.h> | |
29387 | #endif | |
422107f9 | 29388 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29389 | #ifdef __cplusplus |
29390 | extern "C" | |
29391 | { | |
29392 | #endif | |
422107f9 | 29393 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29394 | builtin and then its argument prototype would still apply. */ |
29395 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29396 | /* The GNU C library defines this for functions which it implements |
29397 | to always fail with ENOSYS. Some functions are actually named | |
29398 | something starting with __ and the normal name is an alias. */ | |
29399 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29400 | choke me | |
29401 | #else | |
e6cc62c6 VS |
29402 | char (*f) () = pthread_attr_setschedparam; |
29403 | #endif | |
29404 | #ifdef __cplusplus | |
29405 | } | |
009fead0 VZ |
29406 | #endif |
29407 | ||
e6cc62c6 VS |
29408 | int |
29409 | main () | |
29410 | { | |
29411 | return f != pthread_attr_setschedparam; | |
29412 | ; | |
29413 | return 0; | |
29414 | } | |
29415 | _ACEOF | |
29416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29418 | (eval $ac_link) 2>&5 | |
29419 | ac_status=$? | |
29420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29421 | (exit $ac_status); } && | |
29422 | { ac_try='test -s conftest$ac_exeext' | |
29423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29424 | (eval $ac_try) 2>&5 | |
29425 | ac_status=$? | |
29426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29427 | (exit $ac_status); }; }; then | |
29428 | ac_cv_func_pthread_attr_setschedparam=yes | |
29429 | else | |
29430 | echo "$as_me: failed program was:" >&5 | |
29431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29432 | ||
29433 | ac_cv_func_pthread_attr_setschedparam=no | |
29434 | fi | |
29435 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29436 | fi | |
29437 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29438 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29439 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29440 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29441 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29442 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29444 | else | |
29445 | cat >conftest.$ac_ext <<_ACEOF | |
29446 | #line $LINENO "configure" | |
29447 | /* confdefs.h. */ | |
29448 | _ACEOF | |
29449 | cat confdefs.h >>conftest.$ac_ext | |
29450 | cat >>conftest.$ac_ext <<_ACEOF | |
29451 | /* end confdefs.h. */ | |
ef33c576 | 29452 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29453 | which can conflict with char sched_get_priority_max (); below. |
29454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29455 | <limits.h> exists even on freestanding compilers. */ | |
29456 | #ifdef __STDC__ | |
29457 | # include <limits.h> | |
29458 | #else | |
29459 | # include <assert.h> | |
29460 | #endif | |
4f14bcd8 | 29461 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29462 | #ifdef __cplusplus |
29463 | extern "C" | |
29464 | { | |
29465 | #endif | |
4f14bcd8 | 29466 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29467 | builtin and then its argument prototype would still apply. */ |
29468 | char sched_get_priority_max (); | |
009fead0 VZ |
29469 | /* The GNU C library defines this for functions which it implements |
29470 | to always fail with ENOSYS. Some functions are actually named | |
29471 | something starting with __ and the normal name is an alias. */ | |
29472 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29473 | choke me | |
29474 | #else | |
e6cc62c6 VS |
29475 | char (*f) () = sched_get_priority_max; |
29476 | #endif | |
29477 | #ifdef __cplusplus | |
29478 | } | |
009fead0 VZ |
29479 | #endif |
29480 | ||
e6cc62c6 VS |
29481 | int |
29482 | main () | |
29483 | { | |
29484 | return f != sched_get_priority_max; | |
29485 | ; | |
29486 | return 0; | |
29487 | } | |
29488 | _ACEOF | |
29489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29491 | (eval $ac_link) 2>&5 | |
29492 | ac_status=$? | |
29493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29494 | (exit $ac_status); } && | |
29495 | { ac_try='test -s conftest$ac_exeext' | |
29496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29497 | (eval $ac_try) 2>&5 | |
29498 | ac_status=$? | |
29499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29500 | (exit $ac_status); }; }; then | |
29501 | ac_cv_func_sched_get_priority_max=yes | |
29502 | else | |
29503 | echo "$as_me: failed program was:" >&5 | |
29504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29505 | ||
29506 | ac_cv_func_sched_get_priority_max=no | |
29507 | fi | |
29508 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29509 | fi | |
29510 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29511 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29512 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29513 | HAVE_PRIOR_FUNCS=1 |
29514 | else | |
e6cc62c6 VS |
29515 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29516 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29517 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29519 | else |
e6cc62c6 | 29520 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29521 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29522 | cat >conftest.$ac_ext <<_ACEOF |
29523 | #line $LINENO "configure" | |
29524 | /* confdefs.h. */ | |
29525 | _ACEOF | |
29526 | cat confdefs.h >>conftest.$ac_ext | |
29527 | cat >>conftest.$ac_ext <<_ACEOF | |
29528 | /* end confdefs.h. */ | |
29529 | ||
422107f9 | 29530 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29531 | #ifdef __cplusplus |
29532 | extern "C" | |
29533 | #endif | |
422107f9 | 29534 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29535 | builtin and then its argument prototype would still apply. */ |
29536 | char sched_get_priority_max (); | |
29537 | int | |
29538 | main () | |
29539 | { | |
29540 | sched_get_priority_max (); | |
29541 | ; | |
29542 | return 0; | |
29543 | } | |
29544 | _ACEOF | |
29545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29547 | (eval $ac_link) 2>&5 | |
29548 | ac_status=$? | |
29549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29550 | (exit $ac_status); } && | |
29551 | { ac_try='test -s conftest$ac_exeext' | |
29552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29553 | (eval $ac_try) 2>&5 | |
29554 | ac_status=$? | |
29555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29556 | (exit $ac_status); }; }; then | |
29557 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29558 | else | |
29559 | echo "$as_me: failed program was:" >&5 | |
29560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29561 | ||
29562 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29563 | fi | |
29564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29565 | LIBS=$ac_check_lib_save_LIBS | |
29566 | fi | |
29567 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29568 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29569 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29570 | |
7274f1c7 RL |
29571 | HAVE_PRIOR_FUNCS=1 |
29572 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29573 | |
4f14bcd8 | 29574 | fi |
463abc64 | 29575 | |
e6cc62c6 | 29576 | |
328a083c | 29577 | fi |
463abc64 | 29578 | |
e6cc62c6 | 29579 | |
7b4a847f | 29580 | fi |
579d8138 | 29581 | |
e6cc62c6 | 29582 | |
5c6fa7d2 | 29583 | fi |
52127426 | 29584 | |
8284b0c5 | 29585 | |
7274f1c7 | 29586 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29587 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29588 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29589 | _ACEOF |
463abc64 | 29590 | |
7274f1c7 | 29591 | else |
e6cc62c6 VS |
29592 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29593 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29594 | fi |
463abc64 | 29595 | |
e6cc62c6 VS |
29596 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29597 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29598 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29600 | else | |
29601 | cat >conftest.$ac_ext <<_ACEOF | |
29602 | #line $LINENO "configure" | |
29603 | /* confdefs.h. */ | |
29604 | _ACEOF | |
29605 | cat confdefs.h >>conftest.$ac_ext | |
29606 | cat >>conftest.$ac_ext <<_ACEOF | |
29607 | /* end confdefs.h. */ | |
009fead0 | 29608 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29609 | which can conflict with char pthread_cancel (); below. |
29610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29611 | <limits.h> exists even on freestanding compilers. */ | |
29612 | #ifdef __STDC__ | |
29613 | # include <limits.h> | |
29614 | #else | |
29615 | # include <assert.h> | |
29616 | #endif | |
422107f9 | 29617 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29618 | #ifdef __cplusplus |
29619 | extern "C" | |
29620 | { | |
29621 | #endif | |
422107f9 | 29622 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29623 | builtin and then its argument prototype would still apply. */ |
29624 | char pthread_cancel (); | |
009fead0 VZ |
29625 | /* The GNU C library defines this for functions which it implements |
29626 | to always fail with ENOSYS. Some functions are actually named | |
29627 | something starting with __ and the normal name is an alias. */ | |
29628 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29629 | choke me | |
29630 | #else | |
e6cc62c6 VS |
29631 | char (*f) () = pthread_cancel; |
29632 | #endif | |
29633 | #ifdef __cplusplus | |
29634 | } | |
009fead0 VZ |
29635 | #endif |
29636 | ||
e6cc62c6 VS |
29637 | int |
29638 | main () | |
29639 | { | |
29640 | return f != pthread_cancel; | |
29641 | ; | |
29642 | return 0; | |
29643 | } | |
29644 | _ACEOF | |
29645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29647 | (eval $ac_link) 2>&5 | |
29648 | ac_status=$? | |
29649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29650 | (exit $ac_status); } && | |
29651 | { ac_try='test -s conftest$ac_exeext' | |
29652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29653 | (eval $ac_try) 2>&5 | |
29654 | ac_status=$? | |
29655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29656 | (exit $ac_status); }; }; then | |
29657 | ac_cv_func_pthread_cancel=yes | |
29658 | else | |
29659 | echo "$as_me: failed program was:" >&5 | |
29660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29661 | ||
29662 | ac_cv_func_pthread_cancel=no | |
29663 | fi | |
29664 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29665 | fi | |
29666 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29667 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29668 | if test $ac_cv_func_pthread_cancel = yes; then | |
29669 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29670 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29671 | _ACEOF |
4f14bcd8 | 29672 | |
698dcdb6 | 29673 | else |
e6cc62c6 VS |
29674 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29675 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29676 | fi |
29677 | ||
5c6fa7d2 | 29678 | |
e6cc62c6 VS |
29679 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29680 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29681 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29683 | else |
e6cc62c6 VS |
29684 | |
29685 | cat >conftest.$ac_ext <<_ACEOF | |
29686 | #line $LINENO "configure" | |
29687 | /* confdefs.h. */ | |
29688 | _ACEOF | |
29689 | cat confdefs.h >>conftest.$ac_ext | |
29690 | cat >>conftest.$ac_ext <<_ACEOF | |
29691 | /* end confdefs.h. */ | |
4f14bcd8 | 29692 | #include <pthread.h> |
e6cc62c6 VS |
29693 | int |
29694 | main () | |
29695 | { | |
4f14bcd8 | 29696 | |
7274f1c7 RL |
29697 | pthread_cleanup_push(NULL, NULL); |
29698 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29699 | |
29700 | ; | |
29701 | return 0; | |
29702 | } | |
29703 | _ACEOF | |
29704 | rm -f conftest.$ac_objext | |
29705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29706 | (eval $ac_compile) 2>&5 | |
29707 | ac_status=$? | |
29708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29709 | (exit $ac_status); } && | |
29710 | { ac_try='test -s conftest.$ac_objext' | |
29711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29712 | (eval $ac_try) 2>&5 | |
29713 | ac_status=$? | |
29714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29715 | (exit $ac_status); }; }; then | |
29716 | ||
7274f1c7 | 29717 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29718 | |
4f14bcd8 | 29719 | else |
e6cc62c6 VS |
29720 | echo "$as_me: failed program was:" >&5 |
29721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29722 | ||
29723 | ||
7274f1c7 | 29724 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29725 | |
247f5006 | 29726 | fi |
e6cc62c6 | 29727 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29728 | |
e6cc62c6 VS |
29729 | fi |
29730 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29731 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29732 | |
7274f1c7 | 29733 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29734 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29735 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29736 | _ACEOF |
c7a2bf27 | 29737 | |
7274f1c7 | 29738 | fi |
4f14bcd8 | 29739 | |
e6cc62c6 VS |
29740 | |
29741 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29742 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29743 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29745 | else |
e6cc62c6 VS |
29746 | |
29747 | cat >conftest.$ac_ext <<_ACEOF | |
29748 | #line $LINENO "configure" | |
29749 | /* confdefs.h. */ | |
29750 | _ACEOF | |
29751 | cat confdefs.h >>conftest.$ac_ext | |
29752 | cat >>conftest.$ac_ext <<_ACEOF | |
29753 | /* end confdefs.h. */ | |
4f14bcd8 | 29754 | #include <pthread.h> |
e6cc62c6 VS |
29755 | int |
29756 | main () | |
29757 | { | |
4f14bcd8 | 29758 | |
7274f1c7 RL |
29759 | pthread_mutexattr_t attr; |
29760 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29761 | |
29762 | ; | |
29763 | return 0; | |
29764 | } | |
29765 | _ACEOF | |
29766 | rm -f conftest.$ac_objext | |
29767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29768 | (eval $ac_compile) 2>&5 | |
29769 | ac_status=$? | |
29770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29771 | (exit $ac_status); } && | |
29772 | { ac_try='test -s conftest.$ac_objext' | |
29773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29774 | (eval $ac_try) 2>&5 | |
29775 | ac_status=$? | |
29776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29777 | (exit $ac_status); }; }; then | |
29778 | ||
7274f1c7 | 29779 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29780 | |
3fed1840 | 29781 | else |
e6cc62c6 VS |
29782 | echo "$as_me: failed program was:" >&5 |
29783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29784 | ||
29785 | ||
7274f1c7 | 29786 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29787 | |
29788 | ||
247f5006 | 29789 | fi |
e6cc62c6 | 29790 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29791 | |
e6cc62c6 VS |
29792 | fi |
29793 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29794 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29795 | |
7274f1c7 | 29796 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29797 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29798 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29799 | _ACEOF |
4f14bcd8 | 29800 | |
7274f1c7 | 29801 | else |
e6cc62c6 VS |
29802 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29803 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29804 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29806 | else | |
29807 | ||
29808 | cat >conftest.$ac_ext <<_ACEOF | |
29809 | #line $LINENO "configure" | |
29810 | /* confdefs.h. */ | |
29811 | _ACEOF | |
29812 | cat confdefs.h >>conftest.$ac_ext | |
29813 | cat >>conftest.$ac_ext <<_ACEOF | |
29814 | /* end confdefs.h. */ | |
4f14bcd8 | 29815 | #include <pthread.h> |
e6cc62c6 VS |
29816 | int |
29817 | main () | |
29818 | { | |
4f14bcd8 | 29819 | |
7274f1c7 | 29820 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29821 | |
29822 | ; | |
29823 | return 0; | |
29824 | } | |
29825 | _ACEOF | |
29826 | rm -f conftest.$ac_objext | |
29827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29828 | (eval $ac_compile) 2>&5 | |
29829 | ac_status=$? | |
29830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29831 | (exit $ac_status); } && | |
29832 | { ac_try='test -s conftest.$ac_objext' | |
29833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29834 | (eval $ac_try) 2>&5 | |
29835 | ac_status=$? | |
29836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29837 | (exit $ac_status); }; }; then | |
29838 | ||
7274f1c7 | 29839 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 29840 | |
698dcdb6 | 29841 | else |
e6cc62c6 VS |
29842 | echo "$as_me: failed program was:" >&5 |
29843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29844 | ||
29845 | ||
7274f1c7 | 29846 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
29847 | |
29848 | ||
247f5006 | 29849 | fi |
e6cc62c6 | 29850 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29851 | |
e6cc62c6 VS |
29852 | fi |
29853 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29854 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 29855 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 29856 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29857 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 29858 | _ACEOF |
3fed1840 | 29859 | |
7274f1c7 | 29860 | else |
e6cc62c6 VS |
29861 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
29862 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
29863 | fi |
29864 | fi | |
7274f1c7 | 29865 | fi |
3fed1840 | 29866 | |
a0b9e27f MB |
29867 | else |
29868 | if test "$wxUSE_THREADS" = "yes" ; then | |
29869 | case "${host}" in | |
29870 | *-*-mingw32* ) | |
e6cc62c6 VS |
29871 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
29872 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29873 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 29875 | else |
e6cc62c6 | 29876 | |
ca8e52b3 VZ |
29877 | CFLAGS_OLD="$CFLAGS" |
29878 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
29879 | cat >conftest.$ac_ext <<_ACEOF |
29880 | #line $LINENO "configure" | |
29881 | /* confdefs.h. */ | |
29882 | _ACEOF | |
29883 | cat confdefs.h >>conftest.$ac_ext | |
29884 | cat >>conftest.$ac_ext <<_ACEOF | |
29885 | /* end confdefs.h. */ | |
29886 | ||
29887 | int | |
29888 | main () | |
29889 | { | |
ca8e52b3 | 29890 | |
e6cc62c6 VS |
29891 | ; |
29892 | return 0; | |
29893 | } | |
29894 | _ACEOF | |
29895 | rm -f conftest.$ac_objext | |
29896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29897 | (eval $ac_compile) 2>&5 | |
29898 | ac_status=$? | |
29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29900 | (exit $ac_status); } && | |
29901 | { ac_try='test -s conftest.$ac_objext' | |
29902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29903 | (eval $ac_try) 2>&5 | |
29904 | ac_status=$? | |
29905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29906 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
29907 | wx_cv_cflags_mthread=yes |
29908 | else | |
e6cc62c6 VS |
29909 | echo "$as_me: failed program was:" >&5 |
29910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29911 | ||
29912 | wx_cv_cflags_mthread=no | |
29913 | ||
ca8e52b3 | 29914 | fi |
e6cc62c6 VS |
29915 | rm -f conftest.$ac_objext conftest.$ac_ext |
29916 | ||
ca8e52b3 | 29917 | |
e6cc62c6 VS |
29918 | fi |
29919 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29920 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
29921 | |
29922 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29923 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29924 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29925 | LDFLAGS="$LDFLAGS -mthreads" | |
29926 | else | |
29927 | CFLAGS="$CFLAGS_OLD" | |
29928 | fi | |
a0b9e27f MB |
29929 | ;; |
29930 | esac | |
29931 | fi | |
4f14bcd8 GD |
29932 | fi |
29933 | ||
29934 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 29935 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29936 | #define wxUSE_THREADS 1 |
e6cc62c6 | 29937 | _ACEOF |
7b6058cd | 29938 | |
8284b0c5 | 29939 | |
4f14bcd8 | 29940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 29941 | else |
4f14bcd8 | 29942 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
29943 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
29944 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
29945 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
29946 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
29947 | echo "$as_me:$LINENO: result: yes" >&5 |
29948 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 29949 | else |
e6cc62c6 VS |
29950 | echo "$as_me:$LINENO: result: no" >&5 |
29951 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
29952 | fi |
29953 | fi | |
29954 | fi | |
29955 | ||
29956 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 29957 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29958 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 29959 | _ACEOF |
4f14bcd8 GD |
29960 | |
29961 | WXGTK12=1 | |
10f2d63a | 29962 | fi |
4f14bcd8 GD |
29963 | |
29964 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 29965 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29966 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 29967 | _ACEOF |
4f14bcd8 | 29968 | |
10f2d63a | 29969 | fi |
698dcdb6 | 29970 | |
4f14bcd8 | 29971 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 29972 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29973 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 29974 | _ACEOF |
4f14bcd8 | 29975 | |
698dcdb6 | 29976 | fi |
10f2d63a | 29977 | |
4f14bcd8 GD |
29978 | WXDEBUG= |
29979 | ||
29980 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29981 | WXDEBUG="-g" | |
29982 | wxUSE_OPTIMISE=no | |
698dcdb6 | 29983 | fi |
4f14bcd8 GD |
29984 | |
29985 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29986 | wxUSE_DEBUG_INFO=yes | |
29987 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
29988 | fi |
29989 | ||
4f14bcd8 | 29990 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 29991 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29992 | #define WXDEBUG 1 |
e6cc62c6 | 29993 | _ACEOF |
4f14bcd8 GD |
29994 | |
29995 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 29996 | else |
4f14bcd8 GD |
29997 | if test "$wxUSE_GTK" = 1 ; then |
29998 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29999 | fi | |
30000 | fi | |
30001 | ||
30002 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30003 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30004 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30005 | _ACEOF |
4f14bcd8 | 30006 | |
e6cc62c6 | 30007 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30008 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30009 | _ACEOF |
4f14bcd8 | 30010 | |
e6cc62c6 | 30011 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30012 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30013 | _ACEOF |
4f14bcd8 GD |
30014 | |
30015 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30016 | fi | |
30017 | ||
30018 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30019 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30020 | fi |
30021 | ||
30022 | PROFILE= | |
30023 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30024 | PROFILE=" -pg" |
10f2d63a VZ |
30025 | fi |
30026 | ||
009fead0 VZ |
30027 | CODE_GEN_FLAGS= |
30028 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30029 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30030 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30031 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30032 | fi |
4f14bcd8 GD |
30033 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30034 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30035 | fi | |
30036 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30037 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30038 | fi | |
1d1b75ac | 30039 | |
2b5f62a0 | 30040 | case "${host}" in |
1d1b75ac VZ |
30041 | powerpc*-*-aix* ) |
30042 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30043 | ;; | |
2b5f62a0 VZ |
30044 | *-hppa* ) |
30045 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30046 | ;; | |
1d1b75ac | 30047 | esac |
4f14bcd8 GD |
30048 | fi |
30049 | ||
af7b5345 | 30050 | OPTIMISE= |
4f14bcd8 | 30051 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30052 | if test "$GCC" = yes ; then |
30053 | OPTIMISE="-O0" | |
30054 | fi | |
4f14bcd8 GD |
30055 | else |
30056 | if test "$GCC" = yes ; then | |
30057 | OPTIMISE="-O2" | |
af7b5345 VZ |
30058 | |
30059 | case "${host}" in | |
4f14bcd8 GD |
30060 | i586-*-*|i686-*-* ) |
30061 | OPTIMISE="${OPTIMISE} " | |
30062 | ;; | |
30063 | esac | |
30064 | else | |
30065 | OPTIMISE="-O" | |
30066 | fi | |
30067 | fi | |
30068 | ||
8d90d2f2 | 30069 | |
65d8ef1e | 30070 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30071 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30072 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30073 | _ACEOF |
4f14bcd8 | 30074 | |
8d90d2f2 VZ |
30075 | |
30076 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30077 | fi |
30078 | ||
65d8ef1e | 30079 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30080 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30081 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30082 | _ACEOF |
65d8ef1e VS |
30083 | |
30084 | fi | |
30085 | ||
8284b0c5 | 30086 | |
10f2d63a | 30087 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30088 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30089 | #define wxUSE_GUI 1 |
e6cc62c6 | 30090 | _ACEOF |
10f2d63a | 30091 | |
8284b0c5 | 30092 | |
10f2d63a | 30093 | else |
e6cc62c6 | 30094 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30095 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30096 | _ACEOF |
10f2d63a VZ |
30097 | |
30098 | fi | |
30099 | ||
8284b0c5 | 30100 | |
10f2d63a | 30101 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30102 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30103 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30104 | _ACEOF |
10f2d63a VZ |
30105 | |
30106 | fi | |
30107 | ||
8284b0c5 | 30108 | |
df5168c4 MB |
30109 | if test "$wxUSE_STL" = "yes"; then |
30110 | cat >>confdefs.h <<\_ACEOF | |
30111 | #define wxUSE_STL 1 | |
30112 | _ACEOF | |
30113 | ||
30114 | fi | |
30115 | ||
10f2d63a | 30116 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30117 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30118 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30119 | _ACEOF |
10f2d63a VZ |
30120 | |
30121 | fi | |
30122 | ||
1e6feb95 | 30123 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30124 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30125 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30126 | _ACEOF |
1e6feb95 VZ |
30127 | |
30128 | fi | |
30129 | ||
10f2d63a | 30130 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30131 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30132 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30133 | _ACEOF |
10f2d63a VZ |
30134 | |
30135 | fi | |
30136 | ||
1e6feb95 | 30137 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30138 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30139 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30140 | _ACEOF |
1e6feb95 VZ |
30141 | |
30142 | fi | |
30143 | ||
30144 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30145 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30146 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30147 | _ACEOF |
1e6feb95 VZ |
30148 | |
30149 | fi | |
30150 | ||
30151 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30152 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30153 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30154 | _ACEOF |
1e6feb95 VZ |
30155 | |
30156 | fi | |
30157 | ||
10f2d63a | 30158 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30159 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30160 | #define wxUSE_FILE 1 |
e6cc62c6 | 30161 | _ACEOF |
10f2d63a VZ |
30162 | |
30163 | fi | |
30164 | ||
1e6feb95 | 30165 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30166 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30167 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30168 | _ACEOF |
1e6feb95 VZ |
30169 | |
30170 | fi | |
30171 | ||
24528b0c | 30172 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30173 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30174 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30175 | _ACEOF |
24528b0c VS |
30176 | |
30177 | fi | |
30178 | ||
10f2d63a | 30179 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30180 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30181 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30182 | _ACEOF |
10f2d63a VZ |
30183 | |
30184 | fi | |
30185 | ||
30186 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30187 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30188 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30189 | _ACEOF |
10f2d63a VZ |
30190 | |
30191 | fi | |
30192 | ||
eb4efbdc | 30193 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30194 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30195 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30196 | _ACEOF |
eb4efbdc VZ |
30197 | |
30198 | fi | |
30199 | ||
4f3c5f06 | 30200 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30201 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30202 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30203 | _ACEOF |
4f3c5f06 VZ |
30204 | |
30205 | fi | |
30206 | ||
10f2d63a | 30207 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30208 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30209 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30210 | _ACEOF |
10f2d63a VZ |
30211 | |
30212 | fi | |
30213 | ||
30214 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30215 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30216 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30217 | _ACEOF |
10f2d63a VZ |
30218 | |
30219 | fi | |
30220 | ||
a3a584a7 | 30221 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30222 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30223 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30224 | _ACEOF |
a3a584a7 VZ |
30225 | |
30226 | fi | |
30227 | ||
10f2d63a | 30228 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30229 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30230 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30231 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30232 | else |
e6cc62c6 | 30233 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30234 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30235 | _ACEOF |
10f2d63a VZ |
30236 | |
30237 | fi | |
30238 | fi | |
30239 | ||
30240 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30241 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30242 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30243 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30244 | else |
e6cc62c6 | 30245 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30246 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30247 | _ACEOF |
10f2d63a VZ |
30248 | |
30249 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30250 | fi | |
30251 | fi | |
30252 | ||
30253 | if test "$wxUSE_INTL" = "yes" ; then | |
30254 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30255 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30256 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30257 | else |
e6cc62c6 | 30258 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30259 | #define wxUSE_INTL 1 |
e6cc62c6 | 30260 | _ACEOF |
10f2d63a VZ |
30261 | |
30262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30263 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30264 | fi |
30265 | fi | |
30266 | ||
30267 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30268 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30269 | #define wxUSE_LOG 1 |
e6cc62c6 | 30270 | _ACEOF |
10f2d63a | 30271 | |
8284b0c5 | 30272 | |
d73be714 | 30273 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30274 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30275 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30276 | _ACEOF |
d73be714 VZ |
30277 | |
30278 | fi | |
30279 | ||
30280 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30281 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30282 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30283 | _ACEOF |
69d27ff7 MB |
30284 | |
30285 | fi | |
30286 | ||
30287 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30288 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30289 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30290 | _ACEOF |
d73be714 VZ |
30291 | |
30292 | fi | |
10f2d63a VZ |
30293 | fi |
30294 | ||
30295 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30296 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30297 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30298 | _ACEOF |
10f2d63a VZ |
30299 | |
30300 | fi | |
30301 | ||
e8f65ba6 | 30302 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30303 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30304 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30305 | _ACEOF |
e8f65ba6 RR |
30306 | |
30307 | fi | |
30308 | ||
10f2d63a | 30309 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30310 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30311 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30312 | _ACEOF |
10f2d63a | 30313 | |
70f7a477 | 30314 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30315 | fi |
30316 | ||
30317 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30318 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30319 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30320 | _ACEOF |
10f2d63a VZ |
30321 | |
30322 | fi | |
30323 | ||
5c6fa7d2 | 30324 | |
8284b0c5 | 30325 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30326 | |
30327 | for ac_func in strptime | |
83307f33 | 30328 | do |
e6cc62c6 VS |
30329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30330 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30332 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30334 | else | |
30335 | cat >conftest.$ac_ext <<_ACEOF | |
30336 | #line $LINENO "configure" | |
30337 | /* confdefs.h. */ | |
30338 | _ACEOF | |
30339 | cat confdefs.h >>conftest.$ac_ext | |
30340 | cat >>conftest.$ac_ext <<_ACEOF | |
30341 | /* end confdefs.h. */ | |
83307f33 | 30342 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30343 | which can conflict with char $ac_func (); below. |
30344 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30345 | <limits.h> exists even on freestanding compilers. */ | |
30346 | #ifdef __STDC__ | |
30347 | # include <limits.h> | |
30348 | #else | |
30349 | # include <assert.h> | |
30350 | #endif | |
83307f33 | 30351 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30352 | #ifdef __cplusplus |
30353 | extern "C" | |
30354 | { | |
30355 | #endif | |
83307f33 | 30356 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30357 | builtin and then its argument prototype would still apply. */ |
30358 | char $ac_func (); | |
83307f33 VZ |
30359 | /* The GNU C library defines this for functions which it implements |
30360 | to always fail with ENOSYS. Some functions are actually named | |
30361 | something starting with __ and the normal name is an alias. */ | |
30362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30363 | choke me | |
30364 | #else | |
e6cc62c6 VS |
30365 | char (*f) () = $ac_func; |
30366 | #endif | |
30367 | #ifdef __cplusplus | |
30368 | } | |
83307f33 VZ |
30369 | #endif |
30370 | ||
e6cc62c6 VS |
30371 | int |
30372 | main () | |
30373 | { | |
30374 | return f != $ac_func; | |
30375 | ; | |
30376 | return 0; | |
30377 | } | |
30378 | _ACEOF | |
30379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30381 | (eval $ac_link) 2>&5 | |
30382 | ac_status=$? | |
30383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30384 | (exit $ac_status); } && | |
30385 | { ac_try='test -s conftest$ac_exeext' | |
30386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30387 | (eval $ac_try) 2>&5 | |
30388 | ac_status=$? | |
30389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30390 | (exit $ac_status); }; }; then | |
30391 | eval "$as_ac_var=yes" | |
30392 | else | |
30393 | echo "$as_me: failed program was:" >&5 | |
30394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30395 | ||
30396 | eval "$as_ac_var=no" | |
30397 | fi | |
30398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30399 | fi | |
30400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30402 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30403 | cat >>confdefs.h <<_ACEOF | |
30404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30405 | _ACEOF | |
83307f33 | 30406 | |
83307f33 VZ |
30407 | fi |
30408 | done | |
30409 | ||
5c6fa7d2 | 30410 | |
e6cc62c6 VS |
30411 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30412 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30413 | if test "${wx_cv_var_timezone+set}" = set; then | |
30414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30415 | else |
e6cc62c6 VS |
30416 | |
30417 | cat >conftest.$ac_ext <<_ACEOF | |
30418 | #line $LINENO "configure" | |
30419 | /* confdefs.h. */ | |
30420 | _ACEOF | |
30421 | cat confdefs.h >>conftest.$ac_ext | |
30422 | cat >>conftest.$ac_ext <<_ACEOF | |
30423 | /* end confdefs.h. */ | |
360d6699 | 30424 | |
b4085ce6 | 30425 | #include <time.h> |
e6cc62c6 VS |
30426 | |
30427 | int | |
30428 | main () | |
30429 | { | |
360d6699 VZ |
30430 | |
30431 | int tz; | |
4f11a343 | 30432 | tz = timezone; |
e6cc62c6 VS |
30433 | |
30434 | ; | |
30435 | return 0; | |
30436 | } | |
30437 | _ACEOF | |
30438 | rm -f conftest.$ac_objext | |
30439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30440 | (eval $ac_compile) 2>&5 | |
30441 | ac_status=$? | |
30442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30443 | (exit $ac_status); } && | |
30444 | { ac_try='test -s conftest.$ac_objext' | |
30445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30446 | (eval $ac_try) 2>&5 | |
30447 | ac_status=$? | |
30448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30449 | (exit $ac_status); }; }; then | |
30450 | ||
4f11a343 | 30451 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30452 | |
360d6699 | 30453 | else |
e6cc62c6 VS |
30454 | echo "$as_me: failed program was:" >&5 |
30455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30456 | ||
30457 | ||
30458 | cat >conftest.$ac_ext <<_ACEOF | |
30459 | #line $LINENO "configure" | |
30460 | /* confdefs.h. */ | |
30461 | _ACEOF | |
30462 | cat confdefs.h >>conftest.$ac_ext | |
30463 | cat >>conftest.$ac_ext <<_ACEOF | |
30464 | /* end confdefs.h. */ | |
360d6699 | 30465 | |
b4085ce6 | 30466 | #include <time.h> |
e6cc62c6 VS |
30467 | |
30468 | int | |
30469 | main () | |
30470 | { | |
360d6699 VZ |
30471 | |
30472 | int tz; | |
30473 | tz = _timezone; | |
e6cc62c6 VS |
30474 | |
30475 | ; | |
30476 | return 0; | |
30477 | } | |
30478 | _ACEOF | |
30479 | rm -f conftest.$ac_objext | |
30480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30481 | (eval $ac_compile) 2>&5 | |
30482 | ac_status=$? | |
30483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30484 | (exit $ac_status); } && | |
30485 | { ac_try='test -s conftest.$ac_objext' | |
30486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30487 | (eval $ac_try) 2>&5 | |
30488 | ac_status=$? | |
30489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30490 | (exit $ac_status); }; }; then | |
30491 | ||
360d6699 | 30492 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30493 | |
5357c8e8 | 30494 | else |
e6cc62c6 VS |
30495 | echo "$as_me: failed program was:" >&5 |
30496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30497 | ||
30498 | ||
30499 | cat >conftest.$ac_ext <<_ACEOF | |
30500 | #line $LINENO "configure" | |
30501 | /* confdefs.h. */ | |
30502 | _ACEOF | |
30503 | cat confdefs.h >>conftest.$ac_ext | |
30504 | cat >>conftest.$ac_ext <<_ACEOF | |
30505 | /* end confdefs.h. */ | |
5357c8e8 | 30506 | |
b4085ce6 | 30507 | #include <time.h> |
e6cc62c6 VS |
30508 | |
30509 | int | |
30510 | main () | |
30511 | { | |
5357c8e8 VZ |
30512 | |
30513 | int tz; | |
4f11a343 | 30514 | tz = __timezone; |
e6cc62c6 VS |
30515 | |
30516 | ; | |
30517 | return 0; | |
30518 | } | |
30519 | _ACEOF | |
30520 | rm -f conftest.$ac_objext | |
30521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30522 | (eval $ac_compile) 2>&5 | |
30523 | ac_status=$? | |
30524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30525 | (exit $ac_status); } && | |
30526 | { ac_try='test -s conftest.$ac_objext' | |
30527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30528 | (eval $ac_try) 2>&5 | |
30529 | ac_status=$? | |
30530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30531 | (exit $ac_status); }; }; then | |
30532 | ||
4f11a343 | 30533 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30534 | |
360d6699 | 30535 | else |
e6cc62c6 VS |
30536 | echo "$as_me: failed program was:" >&5 |
30537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30538 | ||
30539 | ||
f9bc1684 | 30540 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30541 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30542 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30543 | fi |
e6cc62c6 VS |
30544 | |
30545 | ||
7b4a847f | 30546 | fi |
e6cc62c6 VS |
30547 | rm -f conftest.$ac_objext conftest.$ac_ext |
30548 | ||
30549 | ||
5c6fa7d2 | 30550 | fi |
e6cc62c6 VS |
30551 | rm -f conftest.$ac_objext conftest.$ac_ext |
30552 | ||
30553 | ||
247f5006 | 30554 | fi |
e6cc62c6 | 30555 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30556 | |
e6cc62c6 VS |
30557 | |
30558 | fi | |
30559 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30560 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30561 | |
f9bc1684 | 30562 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30563 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30564 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30565 | _ACEOF |
360d6699 | 30566 | |
f9bc1684 | 30567 | fi |
698dcdb6 | 30568 | |
e6cc62c6 VS |
30569 | |
30570 | for ac_func in localtime | |
afc31813 | 30571 | do |
e6cc62c6 VS |
30572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30573 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30575 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30577 | else | |
30578 | cat >conftest.$ac_ext <<_ACEOF | |
30579 | #line $LINENO "configure" | |
30580 | /* confdefs.h. */ | |
30581 | _ACEOF | |
30582 | cat confdefs.h >>conftest.$ac_ext | |
30583 | cat >>conftest.$ac_ext <<_ACEOF | |
30584 | /* end confdefs.h. */ | |
afc31813 | 30585 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30586 | which can conflict with char $ac_func (); below. |
30587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30588 | <limits.h> exists even on freestanding compilers. */ | |
30589 | #ifdef __STDC__ | |
30590 | # include <limits.h> | |
30591 | #else | |
30592 | # include <assert.h> | |
30593 | #endif | |
afc31813 | 30594 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30595 | #ifdef __cplusplus |
30596 | extern "C" | |
30597 | { | |
30598 | #endif | |
afc31813 | 30599 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30600 | builtin and then its argument prototype would still apply. */ |
30601 | char $ac_func (); | |
afc31813 VZ |
30602 | /* The GNU C library defines this for functions which it implements |
30603 | to always fail with ENOSYS. Some functions are actually named | |
30604 | something starting with __ and the normal name is an alias. */ | |
30605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30606 | choke me | |
30607 | #else | |
e6cc62c6 VS |
30608 | char (*f) () = $ac_func; |
30609 | #endif | |
30610 | #ifdef __cplusplus | |
30611 | } | |
afc31813 VZ |
30612 | #endif |
30613 | ||
e6cc62c6 VS |
30614 | int |
30615 | main () | |
30616 | { | |
30617 | return f != $ac_func; | |
30618 | ; | |
30619 | return 0; | |
30620 | } | |
30621 | _ACEOF | |
30622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30624 | (eval $ac_link) 2>&5 | |
30625 | ac_status=$? | |
30626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30627 | (exit $ac_status); } && | |
30628 | { ac_try='test -s conftest$ac_exeext' | |
30629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30630 | (eval $ac_try) 2>&5 | |
30631 | ac_status=$? | |
30632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30633 | (exit $ac_status); }; }; then | |
30634 | eval "$as_ac_var=yes" | |
30635 | else | |
30636 | echo "$as_me: failed program was:" >&5 | |
30637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30638 | ||
30639 | eval "$as_ac_var=no" | |
30640 | fi | |
30641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30642 | fi | |
30643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30644 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30645 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30646 | cat >>confdefs.h <<_ACEOF | |
30647 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30648 | _ACEOF | |
afc31813 | 30649 | |
afc31813 VZ |
30650 | fi |
30651 | done | |
30652 | ||
5c6fa7d2 | 30653 | |
8284b0c5 | 30654 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30655 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30656 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30657 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30659 | else |
e6cc62c6 VS |
30660 | |
30661 | cat >conftest.$ac_ext <<_ACEOF | |
30662 | #line $LINENO "configure" | |
30663 | /* confdefs.h. */ | |
30664 | _ACEOF | |
30665 | cat confdefs.h >>conftest.$ac_ext | |
30666 | cat >>conftest.$ac_ext <<_ACEOF | |
30667 | /* end confdefs.h. */ | |
0470b1e6 | 30668 | |
b4085ce6 | 30669 | #include <time.h> |
e6cc62c6 VS |
30670 | |
30671 | int | |
30672 | main () | |
30673 | { | |
0470b1e6 VZ |
30674 | |
30675 | struct tm tm; | |
30676 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30677 | |
30678 | ; | |
30679 | return 0; | |
30680 | } | |
30681 | _ACEOF | |
30682 | rm -f conftest.$ac_objext | |
30683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30684 | (eval $ac_compile) 2>&5 | |
30685 | ac_status=$? | |
30686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30687 | (exit $ac_status); } && | |
30688 | { ac_try='test -s conftest.$ac_objext' | |
30689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30690 | (eval $ac_try) 2>&5 | |
30691 | ac_status=$? | |
30692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30693 | (exit $ac_status); }; }; then | |
30694 | ||
f03a98d8 | 30695 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30696 | |
0470b1e6 | 30697 | else |
e6cc62c6 VS |
30698 | echo "$as_me: failed program was:" >&5 |
30699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30700 | ||
30701 | wx_cv_struct_tm_has_gmtoff=no | |
30702 | ||
247f5006 | 30703 | fi |
e6cc62c6 | 30704 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30705 | |
e6cc62c6 VS |
30706 | fi |
30707 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30708 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30709 | fi |
30710 | ||
30711 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30712 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30713 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30714 | _ACEOF |
0470b1e6 | 30715 | |
3fcdd07b VZ |
30716 | fi |
30717 | ||
e6cc62c6 VS |
30718 | |
30719 | ||
30720 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30721 | do |
e6cc62c6 VS |
30722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30727 | else | |
30728 | cat >conftest.$ac_ext <<_ACEOF | |
30729 | #line $LINENO "configure" | |
30730 | /* confdefs.h. */ | |
30731 | _ACEOF | |
30732 | cat confdefs.h >>conftest.$ac_ext | |
30733 | cat >>conftest.$ac_ext <<_ACEOF | |
30734 | /* end confdefs.h. */ | |
3fcdd07b | 30735 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30736 | which can conflict with char $ac_func (); below. |
30737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30738 | <limits.h> exists even on freestanding compilers. */ | |
30739 | #ifdef __STDC__ | |
30740 | # include <limits.h> | |
30741 | #else | |
30742 | # include <assert.h> | |
30743 | #endif | |
3fcdd07b | 30744 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30745 | #ifdef __cplusplus |
30746 | extern "C" | |
30747 | { | |
30748 | #endif | |
3fcdd07b | 30749 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30750 | builtin and then its argument prototype would still apply. */ |
30751 | char $ac_func (); | |
3fcdd07b VZ |
30752 | /* The GNU C library defines this for functions which it implements |
30753 | to always fail with ENOSYS. Some functions are actually named | |
30754 | something starting with __ and the normal name is an alias. */ | |
30755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30756 | choke me | |
30757 | #else | |
e6cc62c6 VS |
30758 | char (*f) () = $ac_func; |
30759 | #endif | |
30760 | #ifdef __cplusplus | |
30761 | } | |
3fcdd07b VZ |
30762 | #endif |
30763 | ||
e6cc62c6 VS |
30764 | int |
30765 | main () | |
30766 | { | |
30767 | return f != $ac_func; | |
30768 | ; | |
30769 | return 0; | |
30770 | } | |
30771 | _ACEOF | |
30772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30774 | (eval $ac_link) 2>&5 | |
30775 | ac_status=$? | |
30776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30777 | (exit $ac_status); } && | |
30778 | { ac_try='test -s conftest$ac_exeext' | |
30779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30780 | (eval $ac_try) 2>&5 | |
30781 | ac_status=$? | |
30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30783 | (exit $ac_status); }; }; then | |
30784 | eval "$as_ac_var=yes" | |
30785 | else | |
30786 | echo "$as_me: failed program was:" >&5 | |
30787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30788 | ||
30789 | eval "$as_ac_var=no" | |
30790 | fi | |
30791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30792 | fi | |
30793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30794 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30795 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30796 | cat >>confdefs.h <<_ACEOF | |
30797 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30798 | _ACEOF | |
3fcdd07b | 30799 | break |
3fcdd07b VZ |
30800 | fi |
30801 | done | |
30802 | ||
698dcdb6 | 30803 | |
8284b0c5 | 30804 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30805 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30806 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30807 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30809 | else | |
30810 | ||
30811 | ||
30812 | ||
30813 | ac_ext=cc | |
5c6fa7d2 | 30814 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30818 | |
8284b0c5 | 30819 | |
e6cc62c6 VS |
30820 | cat >conftest.$ac_ext <<_ACEOF |
30821 | #line $LINENO "configure" | |
30822 | /* confdefs.h. */ | |
30823 | _ACEOF | |
30824 | cat confdefs.h >>conftest.$ac_ext | |
30825 | cat >>conftest.$ac_ext <<_ACEOF | |
30826 | /* end confdefs.h. */ | |
afc31813 VZ |
30827 | |
30828 | #include <sys/time.h> | |
30829 | #include <unistd.h> | |
e6cc62c6 VS |
30830 | |
30831 | int | |
30832 | main () | |
30833 | { | |
afc31813 VZ |
30834 | |
30835 | struct timeval tv; | |
776862b4 | 30836 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
30837 | |
30838 | ; | |
30839 | return 0; | |
30840 | } | |
30841 | _ACEOF | |
30842 | rm -f conftest.$ac_objext | |
30843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30844 | (eval $ac_compile) 2>&5 | |
30845 | ac_status=$? | |
30846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30847 | (exit $ac_status); } && | |
30848 | { ac_try='test -s conftest.$ac_objext' | |
30849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30850 | (eval $ac_try) 2>&5 | |
30851 | ac_status=$? | |
30852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30853 | (exit $ac_status); }; }; then | |
afc31813 | 30854 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 30855 | else |
e6cc62c6 VS |
30856 | echo "$as_me: failed program was:" >&5 |
30857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30858 | ||
30859 | cat >conftest.$ac_ext <<_ACEOF | |
30860 | #line $LINENO "configure" | |
30861 | /* confdefs.h. */ | |
30862 | _ACEOF | |
30863 | cat confdefs.h >>conftest.$ac_ext | |
30864 | cat >>conftest.$ac_ext <<_ACEOF | |
30865 | /* end confdefs.h. */ | |
afc31813 VZ |
30866 | |
30867 | #include <sys/time.h> | |
30868 | #include <unistd.h> | |
e6cc62c6 VS |
30869 | |
30870 | int | |
30871 | main () | |
30872 | { | |
afc31813 VZ |
30873 | |
30874 | struct timeval tv; | |
30875 | gettimeofday(&tv); | |
e6cc62c6 VS |
30876 | |
30877 | ; | |
30878 | return 0; | |
30879 | } | |
30880 | _ACEOF | |
30881 | rm -f conftest.$ac_objext | |
30882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30883 | (eval $ac_compile) 2>&5 | |
30884 | ac_status=$? | |
30885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30886 | (exit $ac_status); } && | |
30887 | { ac_try='test -s conftest.$ac_objext' | |
30888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30889 | (eval $ac_try) 2>&5 | |
30890 | ac_status=$? | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); }; }; then | |
afc31813 | 30893 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 30894 | else |
e6cc62c6 VS |
30895 | echo "$as_me: failed program was:" >&5 |
30896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30897 | ||
30898 | ||
30899 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30900 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 30901 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
30902 | |
30903 | ||
10f2d63a | 30904 | fi |
e6cc62c6 VS |
30905 | rm -f conftest.$ac_objext conftest.$ac_ext |
30906 | ||
10f2d63a | 30907 | fi |
e6cc62c6 | 30908 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 30909 | ac_ext=c |
10f2d63a | 30910 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 30914 | |
a0b9e27f | 30915 | |
e6cc62c6 VS |
30916 | fi |
30917 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30918 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 30919 | |
afc31813 | 30920 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 30921 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30922 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 30923 | _ACEOF |
afc31813 VZ |
30924 | |
30925 | fi | |
30926 | fi | |
30927 | ||
afc31813 VZ |
30928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
30929 | fi | |
30930 | ||
8284b0c5 | 30931 | |
52127426 | 30932 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 30933 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
30934 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
30935 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
30936 | wxUSE_SOCKETS="no" |
30937 | fi | |
3879ecda VZ |
30938 | if test "$wxUSE_COCOA" = "1"; then |
30939 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
30940 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
30941 | wxUSE_SOCKETS="no" | |
30942 | fi | |
0feee163 | 30943 | fi |
b089607b | 30944 | |
0feee163 VZ |
30945 | if test "$wxUSE_SOCKETS" = "yes"; then |
30946 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30947 | echo "$as_me:$LINENO: checking for socket" >&5 |
30948 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30949 | if test "${ac_cv_func_socket+set}" = set; then | |
30950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30951 | else | |
30952 | cat >conftest.$ac_ext <<_ACEOF | |
30953 | #line $LINENO "configure" | |
30954 | /* confdefs.h. */ | |
30955 | _ACEOF | |
30956 | cat confdefs.h >>conftest.$ac_ext | |
30957 | cat >>conftest.$ac_ext <<_ACEOF | |
30958 | /* end confdefs.h. */ | |
c63c7106 | 30959 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30960 | which can conflict with char socket (); below. |
30961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30962 | <limits.h> exists even on freestanding compilers. */ | |
30963 | #ifdef __STDC__ | |
30964 | # include <limits.h> | |
30965 | #else | |
30966 | # include <assert.h> | |
30967 | #endif | |
c63c7106 | 30968 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30969 | #ifdef __cplusplus |
30970 | extern "C" | |
30971 | { | |
30972 | #endif | |
c63c7106 | 30973 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30974 | builtin and then its argument prototype would still apply. */ |
30975 | char socket (); | |
c63c7106 VZ |
30976 | /* The GNU C library defines this for functions which it implements |
30977 | to always fail with ENOSYS. Some functions are actually named | |
30978 | something starting with __ and the normal name is an alias. */ | |
30979 | #if defined (__stub_socket) || defined (__stub___socket) | |
30980 | choke me | |
30981 | #else | |
e6cc62c6 VS |
30982 | char (*f) () = socket; |
30983 | #endif | |
30984 | #ifdef __cplusplus | |
30985 | } | |
c63c7106 VZ |
30986 | #endif |
30987 | ||
e6cc62c6 VS |
30988 | int |
30989 | main () | |
30990 | { | |
30991 | return f != socket; | |
30992 | ; | |
30993 | return 0; | |
30994 | } | |
30995 | _ACEOF | |
30996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30998 | (eval $ac_link) 2>&5 | |
30999 | ac_status=$? | |
31000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31001 | (exit $ac_status); } && | |
31002 | { ac_try='test -s conftest$ac_exeext' | |
31003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31004 | (eval $ac_try) 2>&5 | |
31005 | ac_status=$? | |
31006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31007 | (exit $ac_status); }; }; then | |
31008 | ac_cv_func_socket=yes | |
31009 | else | |
31010 | echo "$as_me: failed program was:" >&5 | |
31011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31012 | ||
31013 | ac_cv_func_socket=no | |
31014 | fi | |
31015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31016 | fi | |
31017 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31018 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31019 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31020 | : |
31021 | else | |
e6cc62c6 VS |
31022 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
31023 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
31024 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31026 | else |
e6cc62c6 | 31027 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31028 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
31029 | cat >conftest.$ac_ext <<_ACEOF |
31030 | #line $LINENO "configure" | |
31031 | /* confdefs.h. */ | |
31032 | _ACEOF | |
31033 | cat confdefs.h >>conftest.$ac_ext | |
31034 | cat >>conftest.$ac_ext <<_ACEOF | |
31035 | /* end confdefs.h. */ | |
31036 | ||
c63c7106 | 31037 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31038 | #ifdef __cplusplus |
31039 | extern "C" | |
31040 | #endif | |
c63c7106 | 31041 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31042 | builtin and then its argument prototype would still apply. */ |
31043 | char socket (); | |
31044 | int | |
31045 | main () | |
31046 | { | |
31047 | socket (); | |
31048 | ; | |
31049 | return 0; | |
31050 | } | |
31051 | _ACEOF | |
31052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31054 | (eval $ac_link) 2>&5 | |
31055 | ac_status=$? | |
31056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31057 | (exit $ac_status); } && | |
31058 | { ac_try='test -s conftest$ac_exeext' | |
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 | |
31064 | ac_cv_lib_socket_socket=yes | |
31065 | else | |
31066 | echo "$as_me: failed program was:" >&5 | |
31067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31068 | ||
31069 | ac_cv_lib_socket_socket=no | |
31070 | fi | |
31071 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31072 | LIBS=$ac_check_lib_save_LIBS | |
31073 | fi | |
31074 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31075 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31076 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
31077 | if test "$INET_LINK" != " -lsocket"; then |
31078 | INET_LINK="$INET_LINK -lsocket" | |
31079 | fi | |
c63c7106 | 31080 | else |
afc31813 | 31081 | |
e6cc62c6 VS |
31082 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
31083 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 31084 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31085 | |
31086 | ||
6232543b | 31087 | fi |
b089607b | 31088 | |
e6cc62c6 | 31089 | |
1e487827 | 31090 | fi |
afc31813 | 31091 | |
3a922bb4 | 31092 | fi |
0feee163 | 31093 | fi |
51a9faba | 31094 | |
0feee163 VZ |
31095 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31096 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31097 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31098 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31099 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31101 | else |
e6cc62c6 VS |
31102 | |
31103 | cat >conftest.$ac_ext <<_ACEOF | |
31104 | #line $LINENO "configure" | |
31105 | /* confdefs.h. */ | |
31106 | _ACEOF | |
31107 | cat confdefs.h >>conftest.$ac_ext | |
31108 | cat >>conftest.$ac_ext <<_ACEOF | |
31109 | /* end confdefs.h. */ | |
51a9faba | 31110 | |
3a922bb4 RL |
31111 | #include <sys/types.h> |
31112 | #include <sys/socket.h> | |
e6cc62c6 VS |
31113 | |
31114 | int | |
31115 | main () | |
31116 | { | |
51a9faba | 31117 | |
3a922bb4 RL |
31118 | socklen_t len; |
31119 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31120 | |
31121 | ; | |
31122 | return 0; | |
31123 | } | |
31124 | _ACEOF | |
31125 | rm -f conftest.$ac_objext | |
31126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31127 | (eval $ac_compile) 2>&5 | |
31128 | ac_status=$? | |
31129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31130 | (exit $ac_status); } && | |
31131 | { ac_try='test -s conftest.$ac_objext' | |
31132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31133 | (eval $ac_try) 2>&5 | |
31134 | ac_status=$? | |
31135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31136 | (exit $ac_status); }; }; then | |
51a9faba | 31137 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31138 | else |
e6cc62c6 VS |
31139 | echo "$as_me: failed program was:" >&5 |
31140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31141 | ||
31142 | ||
9711d31e GD |
31143 | CFLAGS_OLD="$CFLAGS" |
31144 | if test "$GCC" = yes ; then | |
31145 | CFLAGS="$CFLAGS -Werror" | |
31146 | fi | |
31147 | ||
e6cc62c6 VS |
31148 | cat >conftest.$ac_ext <<_ACEOF |
31149 | #line $LINENO "configure" | |
31150 | /* confdefs.h. */ | |
31151 | _ACEOF | |
31152 | cat confdefs.h >>conftest.$ac_ext | |
31153 | cat >>conftest.$ac_ext <<_ACEOF | |
31154 | /* end confdefs.h. */ | |
51a9faba | 31155 | |
9711d31e GD |
31156 | #include <sys/types.h> |
31157 | #include <sys/socket.h> | |
e6cc62c6 VS |
31158 | |
31159 | int | |
31160 | main () | |
31161 | { | |
51a9faba | 31162 | |
9711d31e GD |
31163 | size_t len; |
31164 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31165 | |
31166 | ; | |
31167 | return 0; | |
31168 | } | |
31169 | _ACEOF | |
31170 | rm -f conftest.$ac_objext | |
31171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31172 | (eval $ac_compile) 2>&5 | |
31173 | ac_status=$? | |
31174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31175 | (exit $ac_status); } && | |
31176 | { ac_try='test -s conftest.$ac_objext' | |
31177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31178 | (eval $ac_try) 2>&5 | |
31179 | ac_status=$? | |
31180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31181 | (exit $ac_status); }; }; then | |
51a9faba | 31182 | wx_cv_type_getsockname3=size_t |
afc31813 | 31183 | else |
e6cc62c6 VS |
31184 | echo "$as_me: failed program was:" >&5 |
31185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31186 | ||
31187 | cat >conftest.$ac_ext <<_ACEOF | |
31188 | #line $LINENO "configure" | |
31189 | /* confdefs.h. */ | |
31190 | _ACEOF | |
31191 | cat confdefs.h >>conftest.$ac_ext | |
31192 | cat >>conftest.$ac_ext <<_ACEOF | |
31193 | /* end confdefs.h. */ | |
51a9faba | 31194 | |
9711d31e GD |
31195 | #include <sys/types.h> |
31196 | #include <sys/socket.h> | |
e6cc62c6 VS |
31197 | |
31198 | int | |
31199 | main () | |
31200 | { | |
51a9faba | 31201 | |
9711d31e GD |
31202 | int len; |
31203 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31204 | |
31205 | ; | |
31206 | return 0; | |
31207 | } | |
31208 | _ACEOF | |
31209 | rm -f conftest.$ac_objext | |
31210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31211 | (eval $ac_compile) 2>&5 | |
31212 | ac_status=$? | |
31213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31214 | (exit $ac_status); } && | |
31215 | { ac_try='test -s conftest.$ac_objext' | |
31216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31217 | (eval $ac_try) 2>&5 | |
31218 | ac_status=$? | |
31219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31220 | (exit $ac_status); }; }; then | |
51a9faba | 31221 | wx_cv_type_getsockname3=int |
afc31813 | 31222 | else |
e6cc62c6 VS |
31223 | echo "$as_me: failed program was:" >&5 |
31224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31225 | ||
31226 | wx_cv_type_getsockname3=unknown | |
31227 | ||
afc31813 | 31228 | fi |
e6cc62c6 VS |
31229 | rm -f conftest.$ac_objext conftest.$ac_ext |
31230 | ||
afc31813 | 31231 | fi |
e6cc62c6 | 31232 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31233 | |
31234 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31235 | |
31236 | ||
247f5006 | 31237 | fi |
e6cc62c6 | 31238 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31239 | |
e6cc62c6 VS |
31240 | fi |
31241 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31242 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31243 | |
3a922bb4 RL |
31244 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31245 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31246 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31247 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31248 | else |
e6cc62c6 | 31249 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31250 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31251 | _ACEOF |
51a9faba | 31252 | |
3a922bb4 | 31253 | fi |
51a9faba VZ |
31254 | fi |
31255 | fi | |
afc31813 | 31256 | |
51a9faba | 31257 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31258 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31259 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31260 | _ACEOF |
afc31813 | 31261 | |
70f7a477 | 31262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31263 | fi |
31264 | ||
3879ecda VZ |
31265 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31266 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31267 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31268 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31269 | wxUSE_PROTOCOL=no | |
31270 | fi | |
31271 | fi | |
31272 | ||
31273 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31274 | cat >>confdefs.h <<\_ACEOF | |
31275 | #define wxUSE_PROTOCOL 1 | |
31276 | _ACEOF | |
31277 | ||
31278 | ||
31279 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31280 | cat >>confdefs.h <<\_ACEOF | |
31281 | #define wxUSE_PROTOCOL_HTTP 1 | |
31282 | _ACEOF | |
31283 | ||
31284 | fi | |
31285 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31286 | cat >>confdefs.h <<\_ACEOF | |
31287 | #define wxUSE_PROTOCOL_FTP 1 | |
31288 | _ACEOF | |
31289 | ||
31290 | fi | |
31291 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31292 | cat >>confdefs.h <<\_ACEOF | |
31293 | #define wxUSE_PROTOCOL_FILE 1 | |
31294 | _ACEOF | |
31295 | ||
31296 | fi | |
31297 | else | |
31298 | if test "$wxUSE_FS_INET" = "yes"; then | |
31299 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31300 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31301 | wxUSE_FS_INET="no" | |
31302 | fi | |
31303 | fi | |
31304 | ||
31305 | if test "$wxUSE_URL" = "yes"; then | |
31306 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31307 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31308 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31309 | wxUSE_URL=no | |
31310 | fi | |
31311 | if test "$wxUSE_URL" = "yes"; then | |
31312 | cat >>confdefs.h <<\_ACEOF | |
31313 | #define wxUSE_URL 1 | |
31314 | _ACEOF | |
31315 | ||
31316 | fi | |
31317 | fi | |
31318 | ||
31319 | if test "$wxUSE_FS_INET" = "yes"; then | |
31320 | cat >>confdefs.h <<\_ACEOF | |
31321 | #define wxUSE_FS_INET 1 | |
31322 | _ACEOF | |
31323 | ||
31324 | fi | |
31325 | ||
8284b0c5 | 31326 | |
dc3d889d VZ |
31327 | if test "$wxUSE_GUI" = "yes"; then |
31328 | ||
ac0c4cc3 | 31329 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31330 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31331 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31332 | wxUSE_JOYSTICK=no |
156b2523 GD |
31333 | fi |
31334 | ||
131f235d | 31335 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31336 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31337 | |
31338 | for ac_header in linux/joystick.h | |
10f2d63a | 31339 | do |
e6cc62c6 VS |
31340 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31346 | fi | |
31347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31349 | else | |
31350 | # Is the header compilable? | |
31351 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31353 | cat >conftest.$ac_ext <<_ACEOF | |
31354 | #line $LINENO "configure" | |
31355 | /* confdefs.h. */ | |
31356 | _ACEOF | |
31357 | cat confdefs.h >>conftest.$ac_ext | |
31358 | cat >>conftest.$ac_ext <<_ACEOF | |
31359 | /* end confdefs.h. */ | |
31360 | $ac_includes_default | |
31361 | #include <$ac_header> | |
31362 | _ACEOF | |
31363 | rm -f conftest.$ac_objext | |
31364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31365 | (eval $ac_compile) 2>&5 | |
31366 | ac_status=$? | |
31367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31368 | (exit $ac_status); } && | |
31369 | { ac_try='test -s conftest.$ac_objext' | |
31370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31371 | (eval $ac_try) 2>&5 | |
31372 | ac_status=$? | |
31373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31374 | (exit $ac_status); }; }; then | |
31375 | ac_header_compiler=yes | |
31376 | else | |
31377 | echo "$as_me: failed program was:" >&5 | |
31378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31379 | ||
31380 | ac_header_compiler=no | |
31381 | fi | |
31382 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31384 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31385 | ||
31386 | # Is the header present? | |
31387 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31388 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31389 | cat >conftest.$ac_ext <<_ACEOF | |
31390 | #line $LINENO "configure" | |
31391 | /* confdefs.h. */ | |
31392 | _ACEOF | |
31393 | cat confdefs.h >>conftest.$ac_ext | |
31394 | cat >>conftest.$ac_ext <<_ACEOF | |
31395 | /* end confdefs.h. */ | |
31396 | #include <$ac_header> | |
31397 | _ACEOF | |
31398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31400 | ac_status=$? | |
31401 | grep -v '^ *+' conftest.er1 >conftest.err | |
31402 | rm -f conftest.er1 | |
31403 | cat conftest.err >&5 | |
31404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31405 | (exit $ac_status); } >/dev/null; then | |
31406 | if test -s conftest.err; then | |
31407 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31408 | else | |
31409 | ac_cpp_err= | |
31410 | fi | |
31411 | else | |
31412 | ac_cpp_err=yes | |
31413 | fi | |
31414 | if test -z "$ac_cpp_err"; then | |
31415 | ac_header_preproc=yes | |
31416 | else | |
31417 | echo "$as_me: failed program was:" >&5 | |
31418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31419 | ||
31420 | ac_header_preproc=no | |
31421 | fi | |
31422 | rm -f conftest.err conftest.$ac_ext | |
31423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31424 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31425 | ||
31426 | # So? What about this header? | |
31427 | case $ac_header_compiler:$ac_header_preproc in | |
31428 | yes:no ) | |
31429 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31430 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31432 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31433 | ( | |
31434 | cat <<\_ASBOX | |
31435 | ## ------------------------------------ ## | |
31436 | ## Report this to bug-autoconf@gnu.org. ## | |
31437 | ## ------------------------------------ ## | |
31438 | _ASBOX | |
31439 | ) | | |
31440 | sed "s/^/$as_me: WARNING: /" >&2 | |
31441 | ;; | |
31442 | no:yes ) | |
31443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31447 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31448 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31449 | ( | |
31450 | cat <<\_ASBOX | |
31451 | ## ------------------------------------ ## | |
31452 | ## Report this to bug-autoconf@gnu.org. ## | |
31453 | ## ------------------------------------ ## | |
31454 | _ASBOX | |
31455 | ) | | |
31456 | sed "s/^/$as_me: WARNING: /" >&2 | |
31457 | ;; | |
31458 | esac | |
31459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31463 | else | |
31464 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31465 | fi |
e6cc62c6 VS |
31466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31468 | ||
10f2d63a | 31469 | fi |
e6cc62c6 VS |
31470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31471 | cat >>confdefs.h <<_ACEOF | |
31472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31473 | _ACEOF | |
31474 | ||
247f5006 | 31475 | fi |
e6cc62c6 | 31476 | |
10f2d63a VZ |
31477 | done |
31478 | ||
3a922bb4 RL |
31479 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31480 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31481 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31482 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31483 | fi |
31484 | fi | |
31485 | fi | |
b089607b | 31486 | |
3a922bb4 | 31487 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31488 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31489 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31490 | _ACEOF |
10f2d63a | 31491 | |
3a922bb4 RL |
31492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31493 | fi | |
dc3d889d VZ |
31494 | fi |
31495 | ||
8284b0c5 | 31496 | |
b089607b VZ |
31497 | if test "$TOOLKIT" != "MSW"; then |
31498 | ||
3a922bb4 RL |
31499 | HAVE_DL_FUNCS=0 |
31500 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31501 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31502 | if test "$USE_DARWIN" = 1; then |
31503 | HAVE_DL_FUNCS=1 | |
31504 | else | |
e6cc62c6 VS |
31505 | |
31506 | for ac_func in dlopen | |
10f2d63a | 31507 | do |
e6cc62c6 VS |
31508 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31509 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31510 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31511 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31513 | else | |
31514 | cat >conftest.$ac_ext <<_ACEOF | |
31515 | #line $LINENO "configure" | |
31516 | /* confdefs.h. */ | |
31517 | _ACEOF | |
31518 | cat confdefs.h >>conftest.$ac_ext | |
31519 | cat >>conftest.$ac_ext <<_ACEOF | |
31520 | /* end confdefs.h. */ | |
10f2d63a | 31521 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31522 | which can conflict with char $ac_func (); below. |
31523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31524 | <limits.h> exists even on freestanding compilers. */ | |
31525 | #ifdef __STDC__ | |
31526 | # include <limits.h> | |
31527 | #else | |
31528 | # include <assert.h> | |
31529 | #endif | |
10f2d63a | 31530 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31531 | #ifdef __cplusplus |
31532 | extern "C" | |
31533 | { | |
31534 | #endif | |
10f2d63a | 31535 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31536 | builtin and then its argument prototype would still apply. */ |
31537 | char $ac_func (); | |
10f2d63a VZ |
31538 | /* The GNU C library defines this for functions which it implements |
31539 | to always fail with ENOSYS. Some functions are actually named | |
31540 | something starting with __ and the normal name is an alias. */ | |
31541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31542 | choke me | |
31543 | #else | |
e6cc62c6 VS |
31544 | char (*f) () = $ac_func; |
31545 | #endif | |
31546 | #ifdef __cplusplus | |
31547 | } | |
10f2d63a VZ |
31548 | #endif |
31549 | ||
e6cc62c6 VS |
31550 | int |
31551 | main () | |
31552 | { | |
31553 | return f != $ac_func; | |
31554 | ; | |
31555 | return 0; | |
31556 | } | |
31557 | _ACEOF | |
31558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31560 | (eval $ac_link) 2>&5 | |
31561 | ac_status=$? | |
31562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31563 | (exit $ac_status); } && | |
31564 | { ac_try='test -s conftest$ac_exeext' | |
31565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31566 | (eval $ac_try) 2>&5 | |
31567 | ac_status=$? | |
31568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31569 | (exit $ac_status); }; }; then | |
31570 | eval "$as_ac_var=yes" | |
31571 | else | |
31572 | echo "$as_me: failed program was:" >&5 | |
31573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31574 | ||
31575 | eval "$as_ac_var=no" | |
31576 | fi | |
31577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31578 | fi | |
31579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31580 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31581 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31582 | cat >>confdefs.h <<_ACEOF | |
31583 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31584 | _ACEOF | |
31585 | ||
31586 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31587 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31588 | _ACEOF |
10f2d63a | 31589 | |
3a922bb4 | 31590 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31591 | |
10f2d63a | 31592 | else |
e6cc62c6 VS |
31593 | |
31594 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31595 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31596 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31598 | else |
e6cc62c6 | 31599 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31600 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31601 | cat >conftest.$ac_ext <<_ACEOF |
31602 | #line $LINENO "configure" | |
31603 | /* confdefs.h. */ | |
31604 | _ACEOF | |
31605 | cat confdefs.h >>conftest.$ac_ext | |
31606 | cat >>conftest.$ac_ext <<_ACEOF | |
31607 | /* end confdefs.h. */ | |
31608 | ||
10f2d63a | 31609 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31610 | #ifdef __cplusplus |
31611 | extern "C" | |
31612 | #endif | |
10f2d63a | 31613 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31614 | builtin and then its argument prototype would still apply. */ |
31615 | char dlopen (); | |
31616 | int | |
31617 | main () | |
31618 | { | |
31619 | dlopen (); | |
31620 | ; | |
31621 | return 0; | |
31622 | } | |
31623 | _ACEOF | |
31624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31626 | (eval $ac_link) 2>&5 | |
31627 | ac_status=$? | |
31628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31629 | (exit $ac_status); } && | |
31630 | { ac_try='test -s conftest$ac_exeext' | |
31631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31632 | (eval $ac_try) 2>&5 | |
31633 | ac_status=$? | |
31634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31635 | (exit $ac_status); }; }; then | |
31636 | ac_cv_lib_dl_dlopen=yes | |
31637 | else | |
31638 | echo "$as_me: failed program was:" >&5 | |
31639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31640 | ||
31641 | ac_cv_lib_dl_dlopen=no | |
31642 | fi | |
31643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31644 | LIBS=$ac_check_lib_save_LIBS | |
31645 | fi | |
31646 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31647 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31648 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31649 | ||
31650 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31651 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31652 | _ACEOF |
10f2d63a | 31653 | |
3a922bb4 | 31654 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31655 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31656 | |
10f2d63a | 31657 | else |
10f2d63a | 31658 | |
e6cc62c6 VS |
31659 | |
31660 | for ac_func in shl_load | |
10f2d63a | 31661 | do |
e6cc62c6 VS |
31662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31665 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31667 | else | |
31668 | cat >conftest.$ac_ext <<_ACEOF | |
31669 | #line $LINENO "configure" | |
31670 | /* confdefs.h. */ | |
31671 | _ACEOF | |
31672 | cat confdefs.h >>conftest.$ac_ext | |
31673 | cat >>conftest.$ac_ext <<_ACEOF | |
31674 | /* end confdefs.h. */ | |
10f2d63a | 31675 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31676 | which can conflict with char $ac_func (); below. |
31677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31678 | <limits.h> exists even on freestanding compilers. */ | |
31679 | #ifdef __STDC__ | |
31680 | # include <limits.h> | |
31681 | #else | |
31682 | # include <assert.h> | |
31683 | #endif | |
10f2d63a | 31684 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31685 | #ifdef __cplusplus |
31686 | extern "C" | |
31687 | { | |
31688 | #endif | |
10f2d63a | 31689 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31690 | builtin and then its argument prototype would still apply. */ |
31691 | char $ac_func (); | |
10f2d63a VZ |
31692 | /* The GNU C library defines this for functions which it implements |
31693 | to always fail with ENOSYS. Some functions are actually named | |
31694 | something starting with __ and the normal name is an alias. */ | |
31695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31696 | choke me | |
31697 | #else | |
e6cc62c6 VS |
31698 | char (*f) () = $ac_func; |
31699 | #endif | |
31700 | #ifdef __cplusplus | |
31701 | } | |
10f2d63a VZ |
31702 | #endif |
31703 | ||
e6cc62c6 VS |
31704 | int |
31705 | main () | |
31706 | { | |
31707 | return f != $ac_func; | |
31708 | ; | |
31709 | return 0; | |
31710 | } | |
31711 | _ACEOF | |
31712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31714 | (eval $ac_link) 2>&5 | |
31715 | ac_status=$? | |
31716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31717 | (exit $ac_status); } && | |
31718 | { ac_try='test -s conftest$ac_exeext' | |
31719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31720 | (eval $ac_try) 2>&5 | |
31721 | ac_status=$? | |
31722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31723 | (exit $ac_status); }; }; then | |
31724 | eval "$as_ac_var=yes" | |
31725 | else | |
31726 | echo "$as_me: failed program was:" >&5 | |
31727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31728 | ||
31729 | eval "$as_ac_var=no" | |
31730 | fi | |
31731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31732 | fi | |
31733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31736 | cat >>confdefs.h <<_ACEOF | |
31737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31738 | _ACEOF | |
31739 | ||
31740 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31741 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31742 | _ACEOF |
10f2d63a | 31743 | |
3a922bb4 | 31744 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31745 | |
10f2d63a | 31746 | else |
e6cc62c6 VS |
31747 | |
31748 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31749 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31750 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31752 | else |
e6cc62c6 | 31753 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31754 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31755 | cat >conftest.$ac_ext <<_ACEOF |
31756 | #line $LINENO "configure" | |
31757 | /* confdefs.h. */ | |
31758 | _ACEOF | |
31759 | cat confdefs.h >>conftest.$ac_ext | |
31760 | cat >>conftest.$ac_ext <<_ACEOF | |
31761 | /* end confdefs.h. */ | |
31762 | ||
8284b0c5 | 31763 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31764 | #ifdef __cplusplus |
31765 | extern "C" | |
31766 | #endif | |
f6bcfd97 | 31767 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31768 | builtin and then its argument prototype would still apply. */ |
31769 | char dld (); | |
31770 | int | |
31771 | main () | |
31772 | { | |
31773 | dld (); | |
31774 | ; | |
31775 | return 0; | |
31776 | } | |
31777 | _ACEOF | |
31778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31780 | (eval $ac_link) 2>&5 | |
31781 | ac_status=$? | |
31782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31783 | (exit $ac_status); } && | |
31784 | { ac_try='test -s conftest$ac_exeext' | |
31785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31786 | (eval $ac_try) 2>&5 | |
31787 | ac_status=$? | |
31788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31789 | (exit $ac_status); }; }; then | |
31790 | ac_cv_lib_shl_load_dld=yes | |
31791 | else | |
31792 | echo "$as_me: failed program was:" >&5 | |
31793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31794 | ||
31795 | ac_cv_lib_shl_load_dld=no | |
31796 | fi | |
31797 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31798 | LIBS=$ac_check_lib_save_LIBS | |
31799 | fi | |
31800 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31801 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31802 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31803 | |
3a922bb4 | 31804 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31805 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31806 | |
f6bcfd97 BP |
31807 | fi |
31808 | ||
e6cc62c6 | 31809 | |
10f2d63a VZ |
31810 | fi |
31811 | done | |
31812 | ||
e6cc62c6 | 31813 | |
10f2d63a VZ |
31814 | fi |
31815 | ||
e6cc62c6 | 31816 | |
10f2d63a VZ |
31817 | fi |
31818 | done | |
31819 | ||
5c6fa7d2 | 31820 | |
8284b0c5 | 31821 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31822 | |
31823 | for ac_func in dlerror | |
f6bcfd97 | 31824 | do |
e6cc62c6 VS |
31825 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31826 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31827 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31828 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31830 | else | |
31831 | cat >conftest.$ac_ext <<_ACEOF | |
31832 | #line $LINENO "configure" | |
31833 | /* confdefs.h. */ | |
31834 | _ACEOF | |
31835 | cat confdefs.h >>conftest.$ac_ext | |
31836 | cat >>conftest.$ac_ext <<_ACEOF | |
31837 | /* end confdefs.h. */ | |
f6bcfd97 | 31838 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31839 | which can conflict with char $ac_func (); below. |
31840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31841 | <limits.h> exists even on freestanding compilers. */ | |
31842 | #ifdef __STDC__ | |
31843 | # include <limits.h> | |
31844 | #else | |
31845 | # include <assert.h> | |
31846 | #endif | |
f6bcfd97 | 31847 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31848 | #ifdef __cplusplus |
31849 | extern "C" | |
31850 | { | |
31851 | #endif | |
f6bcfd97 | 31852 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31853 | builtin and then its argument prototype would still apply. */ |
31854 | char $ac_func (); | |
f6bcfd97 BP |
31855 | /* The GNU C library defines this for functions which it implements |
31856 | to always fail with ENOSYS. Some functions are actually named | |
31857 | something starting with __ and the normal name is an alias. */ | |
31858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31859 | choke me | |
31860 | #else | |
e6cc62c6 VS |
31861 | char (*f) () = $ac_func; |
31862 | #endif | |
31863 | #ifdef __cplusplus | |
31864 | } | |
f6bcfd97 BP |
31865 | #endif |
31866 | ||
e6cc62c6 VS |
31867 | int |
31868 | main () | |
31869 | { | |
31870 | return f != $ac_func; | |
31871 | ; | |
31872 | return 0; | |
31873 | } | |
31874 | _ACEOF | |
31875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31877 | (eval $ac_link) 2>&5 | |
31878 | ac_status=$? | |
31879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31880 | (exit $ac_status); } && | |
31881 | { ac_try='test -s conftest$ac_exeext' | |
31882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31883 | (eval $ac_try) 2>&5 | |
31884 | ac_status=$? | |
31885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31886 | (exit $ac_status); }; }; then | |
31887 | eval "$as_ac_var=yes" | |
31888 | else | |
31889 | echo "$as_me: failed program was:" >&5 | |
31890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31891 | ||
31892 | eval "$as_ac_var=no" | |
31893 | fi | |
31894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31895 | fi | |
31896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31897 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31899 | cat >>confdefs.h <<_ACEOF | |
31900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31901 | _ACEOF | |
31902 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31903 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31904 | _ACEOF |
f6bcfd97 BP |
31905 | |
31906 | else | |
e6cc62c6 VS |
31907 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31908 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31909 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31911 | else |
e6cc62c6 | 31912 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31913 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31914 | cat >conftest.$ac_ext <<_ACEOF |
31915 | #line $LINENO "configure" | |
31916 | /* confdefs.h. */ | |
31917 | _ACEOF | |
31918 | cat confdefs.h >>conftest.$ac_ext | |
31919 | cat >>conftest.$ac_ext <<_ACEOF | |
31920 | /* end confdefs.h. */ | |
31921 | ||
f6bcfd97 | 31922 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31923 | #ifdef __cplusplus |
31924 | extern "C" | |
31925 | #endif | |
f6bcfd97 | 31926 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31927 | builtin and then its argument prototype would still apply. */ |
31928 | char dlerror (); | |
31929 | int | |
31930 | main () | |
31931 | { | |
31932 | dlerror (); | |
31933 | ; | |
31934 | return 0; | |
31935 | } | |
31936 | _ACEOF | |
31937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31939 | (eval $ac_link) 2>&5 | |
31940 | ac_status=$? | |
31941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31942 | (exit $ac_status); } && | |
31943 | { ac_try='test -s conftest$ac_exeext' | |
31944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31945 | (eval $ac_try) 2>&5 | |
31946 | ac_status=$? | |
31947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31948 | (exit $ac_status); }; }; then | |
31949 | ac_cv_lib_dl_dlerror=yes | |
31950 | else | |
31951 | echo "$as_me: failed program was:" >&5 | |
31952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31953 | ||
31954 | ac_cv_lib_dl_dlerror=no | |
31955 | fi | |
31956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31957 | LIBS=$ac_check_lib_save_LIBS | |
31958 | fi | |
31959 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31960 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31961 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31962 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31963 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31964 | _ACEOF |
f6bcfd97 | 31965 | |
f6bcfd97 BP |
31966 | fi |
31967 | ||
31968 | fi | |
31969 | done | |
31970 | ||
3a922bb4 RL |
31971 | fi |
31972 | fi | |
f6bcfd97 | 31973 | |
3a922bb4 RL |
31974 | if test "$HAVE_DL_FUNCS" = 0; then |
31975 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31976 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
31977 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
31978 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 31979 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
31980 | wxUSE_DYNLIB_CLASS=no |
31981 | else | |
e6cc62c6 VS |
31982 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
31983 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
31984 | fi |
31985 | fi | |
10f2d63a VZ |
31986 | fi |
31987 | fi | |
31988 | fi | |
31989 | ||
0b9ab0bd | 31990 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 31991 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 31992 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 31993 | _ACEOF |
0b9ab0bd | 31994 | |
1948bb32 VS |
31995 | fi |
31996 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 31997 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31998 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 31999 | _ACEOF |
10f2d63a VZ |
32000 | |
32001 | fi | |
32002 | ||
8284b0c5 | 32003 | |
1e6feb95 | 32004 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 32005 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32006 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 32007 | _ACEOF |
1e6feb95 VZ |
32008 | |
32009 | fi | |
32010 | ||
10f2d63a | 32011 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 32012 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32013 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 32014 | _ACEOF |
10f2d63a | 32015 | |
8284b0c5 | 32016 | |
eb854003 | 32017 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
32018 | wxUSE_UNICODE_MSLU=no |
32019 | fi | |
a72a4bfa | 32020 | |
eb854003 | 32021 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
32022 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32023 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32024 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32026 | else |
e6cc62c6 | 32027 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32028 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
32029 | cat >conftest.$ac_ext <<_ACEOF |
32030 | #line $LINENO "configure" | |
32031 | /* confdefs.h. */ | |
32032 | _ACEOF | |
32033 | cat confdefs.h >>conftest.$ac_ext | |
32034 | cat >>conftest.$ac_ext <<_ACEOF | |
32035 | /* end confdefs.h. */ | |
a72a4bfa | 32036 | |
8284b0c5 | 32037 | |
e6cc62c6 VS |
32038 | int |
32039 | main () | |
32040 | { | |
32041 | main (); | |
32042 | ; | |
32043 | return 0; | |
32044 | } | |
32045 | _ACEOF | |
32046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32048 | (eval $ac_link) 2>&5 | |
32049 | ac_status=$? | |
32050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32051 | (exit $ac_status); } && | |
32052 | { ac_try='test -s conftest$ac_exeext' | |
32053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32054 | (eval $ac_try) 2>&5 | |
32055 | ac_status=$? | |
32056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32057 | (exit $ac_status); }; }; then | |
32058 | ac_cv_lib_unicows_main=yes | |
32059 | else | |
32060 | echo "$as_me: failed program was:" >&5 | |
32061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32062 | ||
32063 | ac_cv_lib_unicows_main=no | |
32064 | fi | |
32065 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32066 | LIBS=$ac_check_lib_save_LIBS | |
32067 | fi | |
32068 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32069 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32070 | if test $ac_cv_lib_unicows_main = yes; then | |
32071 | ||
32072 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32073 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32074 | _ACEOF |
32075 | ||
a72a4bfa | 32076 | |
a72a4bfa | 32077 | else |
a72a4bfa | 32078 | |
e6cc62c6 VS |
32079 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32080 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32081 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32082 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32083 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32084 | |
a72a4bfa VS |
32085 | fi |
32086 | ||
32087 | fi | |
10f2d63a VZ |
32088 | fi |
32089 | ||
10f2d63a | 32090 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32091 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32092 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32093 | _ACEOF |
10f2d63a VZ |
32094 | |
32095 | fi | |
32096 | ||
8284b0c5 | 32097 | |
10f2d63a | 32098 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32099 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32100 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32101 | _ACEOF |
10f2d63a VZ |
32102 | |
32103 | fi | |
32104 | ||
e6cc62c6 | 32105 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32106 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32107 | _ACEOF |
10f2d63a | 32108 | |
8284b0c5 | 32109 | |
e6cc62c6 | 32110 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32111 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32112 | _ACEOF |
10f2d63a | 32113 | |
8284b0c5 MB |
32114 | |
32115 | ||
10f2d63a | 32116 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32117 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32118 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32119 | _ACEOF |
10f2d63a VZ |
32120 | |
32121 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32122 | fi | |
32123 | ||
3879ecda | 32124 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32125 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32126 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32127 | _ACEOF |
10f2d63a | 32128 | |
1772d20c | 32129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32130 | fi |
32131 | ||
32132 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32133 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32134 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32135 | _ACEOF |
10f2d63a VZ |
32136 | |
32137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32138 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32139 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32140 | fi | |
32141 | fi | |
32142 | ||
32143 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32144 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32145 | #define wxUSE_HELP 1 |
e6cc62c6 | 32146 | _ACEOF |
10f2d63a VZ |
32147 | |
32148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32149 | |
77e13408 | 32150 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32151 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32152 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32153 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32154 | _ACEOF |
29fd3c0c | 32155 | |
3e44f09d | 32156 | fi |
3379ed37 | 32157 | fi |
031d8228 VS |
32158 | |
32159 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32160 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32161 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32162 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32163 | _ACEOF |
031d8228 VS |
32164 | |
32165 | else | |
e6cc62c6 VS |
32166 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32167 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32168 | wxUSE_WXHTML_HELP=no |
32169 | fi | |
32170 | fi | |
10f2d63a VZ |
32171 | fi |
32172 | ||
32173 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32174 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32175 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32176 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32177 | else |
e6cc62c6 | 32178 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32179 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32180 | _ACEOF |
10f2d63a VZ |
32181 | |
32182 | fi | |
32183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32184 | fi | |
32185 | ||
e6cc62c6 VS |
32186 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32187 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32188 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32189 | { (exit 1); exit 1; }; } | |
32190 | fi | |
32191 | ||
32192 | ||
32193 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32194 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32195 | -o "$wxUSE_OLE" = "yes" \ | |
32196 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32197 | ||
32198 | for ac_header in ole2.h | |
32199 | do | |
32200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32206 | fi | |
32207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32209 | else | |
32210 | # Is the header compilable? | |
32211 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32212 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32213 | cat >conftest.$ac_ext <<_ACEOF | |
32214 | #line $LINENO "configure" | |
32215 | /* confdefs.h. */ | |
32216 | _ACEOF | |
32217 | cat confdefs.h >>conftest.$ac_ext | |
32218 | cat >>conftest.$ac_ext <<_ACEOF | |
32219 | /* end confdefs.h. */ | |
32220 | $ac_includes_default | |
32221 | #include <$ac_header> | |
32222 | _ACEOF | |
32223 | rm -f conftest.$ac_objext | |
32224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32225 | (eval $ac_compile) 2>&5 | |
32226 | ac_status=$? | |
32227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32228 | (exit $ac_status); } && | |
32229 | { ac_try='test -s conftest.$ac_objext' | |
32230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32231 | (eval $ac_try) 2>&5 | |
32232 | ac_status=$? | |
32233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32234 | (exit $ac_status); }; }; then | |
32235 | ac_header_compiler=yes | |
32236 | else | |
32237 | echo "$as_me: failed program was:" >&5 | |
32238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32239 | ||
32240 | ac_header_compiler=no | |
32241 | fi | |
32242 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32243 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32244 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32245 | ||
32246 | # Is the header present? | |
32247 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32249 | cat >conftest.$ac_ext <<_ACEOF | |
32250 | #line $LINENO "configure" | |
32251 | /* confdefs.h. */ | |
32252 | _ACEOF | |
32253 | cat confdefs.h >>conftest.$ac_ext | |
32254 | cat >>conftest.$ac_ext <<_ACEOF | |
32255 | /* end confdefs.h. */ | |
32256 | #include <$ac_header> | |
32257 | _ACEOF | |
32258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32260 | ac_status=$? | |
32261 | grep -v '^ *+' conftest.er1 >conftest.err | |
32262 | rm -f conftest.er1 | |
32263 | cat conftest.err >&5 | |
32264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32265 | (exit $ac_status); } >/dev/null; then | |
32266 | if test -s conftest.err; then | |
32267 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32268 | else | |
32269 | ac_cpp_err= | |
32270 | fi | |
32271 | else | |
32272 | ac_cpp_err=yes | |
32273 | fi | |
32274 | if test -z "$ac_cpp_err"; then | |
32275 | ac_header_preproc=yes | |
32276 | else | |
32277 | echo "$as_me: failed program was:" >&5 | |
32278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32279 | ||
32280 | ac_header_preproc=no | |
32281 | fi | |
32282 | rm -f conftest.err conftest.$ac_ext | |
32283 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32284 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32285 | ||
32286 | # So? What about this header? | |
32287 | case $ac_header_compiler:$ac_header_preproc in | |
32288 | yes:no ) | |
32289 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32290 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32293 | ( | |
32294 | cat <<\_ASBOX | |
32295 | ## ------------------------------------ ## | |
32296 | ## Report this to bug-autoconf@gnu.org. ## | |
32297 | ## ------------------------------------ ## | |
32298 | _ASBOX | |
32299 | ) | | |
32300 | sed "s/^/$as_me: WARNING: /" >&2 | |
32301 | ;; | |
32302 | no:yes ) | |
32303 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32304 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32305 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32306 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32308 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32309 | ( | |
32310 | cat <<\_ASBOX | |
32311 | ## ------------------------------------ ## | |
32312 | ## Report this to bug-autoconf@gnu.org. ## | |
32313 | ## ------------------------------------ ## | |
32314 | _ASBOX | |
32315 | ) | | |
32316 | sed "s/^/$as_me: WARNING: /" >&2 | |
32317 | ;; | |
32318 | esac | |
32319 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32323 | else | |
32324 | eval "$as_ac_Header=$ac_header_preproc" | |
32325 | fi | |
32326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32328 | ||
10f2d63a | 32329 | fi |
e6cc62c6 VS |
32330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32331 | cat >>confdefs.h <<_ACEOF | |
32332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32333 | _ACEOF | |
10f2d63a | 32334 | |
10f2d63a | 32335 | fi |
e6cc62c6 | 32336 | |
10f2d63a VZ |
32337 | done |
32338 | ||
8284b0c5 | 32339 | |
2b9bdf71 VZ |
32340 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32341 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32342 | |
32343 | ||
e6cc62c6 VS |
32344 | ac_ext=cc |
32345 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32349 | ||
32350 | ||
32351 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32352 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32353 | cat >conftest.$ac_ext <<_ACEOF | |
32354 | #line $LINENO "configure" | |
32355 | /* confdefs.h. */ | |
32356 | _ACEOF | |
32357 | cat confdefs.h >>conftest.$ac_ext | |
32358 | cat >>conftest.$ac_ext <<_ACEOF | |
32359 | /* end confdefs.h. */ | |
8284b0c5 MB |
32360 | #include <windows.h> |
32361 | #include <ole2.h> | |
e6cc62c6 VS |
32362 | int |
32363 | main () | |
32364 | { | |
8284b0c5 | 32365 | |
e6cc62c6 VS |
32366 | ; |
32367 | return 0; | |
32368 | } | |
32369 | _ACEOF | |
32370 | rm -f conftest.$ac_objext | |
32371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32372 | (eval $ac_compile) 2>&5 | |
32373 | ac_status=$? | |
32374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32375 | (exit $ac_status); } && | |
32376 | { ac_try='test -s conftest.$ac_objext' | |
32377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32378 | (eval $ac_try) 2>&5 | |
32379 | ac_status=$? | |
32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32381 | (exit $ac_status); }; }; then | |
32382 | echo "$as_me:$LINENO: result: no" >&5 | |
32383 | echo "${ECHO_T}no" >&6 | |
32384 | else | |
32385 | echo "$as_me: failed program was:" >&5 | |
32386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32387 | ||
32388 | echo "$as_me:$LINENO: result: yes" >&5 | |
32389 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32390 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32391 | fi | |
e6cc62c6 | 32392 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32393 | ac_ext=c |
8284b0c5 | 32394 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32398 | |
2b9bdf71 | 32399 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32400 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32401 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32402 | #define wxUSE_OLE 1 |
e6cc62c6 | 32403 | _ACEOF |
4f11a343 | 32404 | |
8284b0c5 | 32405 | |
2b9bdf71 VZ |
32406 | fi |
32407 | ||
e6cc62c6 | 32408 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32409 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32410 | _ACEOF |
2b9bdf71 VZ |
32411 | |
32412 | else | |
e6cc62c6 VS |
32413 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32414 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32415 | |
32416 | wxUSE_CLIPBOARD=no | |
32417 | wxUSE_DRAG_AND_DROP=no | |
32418 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32419 | wxUSE_OLE=no |
32420 | fi | |
32421 | ||
32422 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32423 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32424 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32425 | _ACEOF |
3bce6687 JS |
32426 | |
32427 | ||
e6cc62c6 | 32428 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32429 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32430 | _ACEOF |
3bce6687 JS |
32431 | |
32432 | fi | |
32433 | fi | |
32434 | ||
2b9bdf71 VZ |
32435 | if test "$wxUSE_IPC" = "yes"; then |
32436 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32437 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32438 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32439 | fi |
32440 | ||
e6cc62c6 | 32441 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32442 | #define wxUSE_IPC 1 |
e6cc62c6 | 32443 | _ACEOF |
2b9bdf71 VZ |
32444 | |
32445 | fi | |
32446 | ||
32447 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32448 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32449 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32450 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32451 | wxUSE_CLIPBOARD=no |
32452 | fi | |
32453 | ||
32454 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32455 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32456 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32457 | _ACEOF |
2b9bdf71 | 32458 | |
8284b0c5 | 32459 | |
e6cc62c6 | 32460 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32461 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32462 | _ACEOF |
673f4220 | 32463 | |
6c657b52 | 32464 | fi |
2b9bdf71 VZ |
32465 | fi |
32466 | ||
32467 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32468 | if test "$wxUSE_GTK" = 1; then | |
32469 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32470 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32471 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32472 | wxUSE_DRAG_AND_DROP=no |
32473 | fi | |
32474 | fi | |
32475 | ||
2b9bdf71 | 32476 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32477 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32478 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32479 | wxUSE_DRAG_AND_DROP=no |
32480 | fi | |
32481 | ||
f79bd02d | 32482 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32483 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32484 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32485 | wxUSE_DRAG_AND_DROP=no |
32486 | fi | |
32487 | ||
6c657b52 | 32488 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32489 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32490 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32491 | wxUSE_DRAG_AND_DROP=no |
32492 | fi | |
32493 | ||
10f2d63a | 32494 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32495 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32496 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32497 | _ACEOF |
10f2d63a VZ |
32498 | |
32499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32500 | fi | |
32501 | ||
32502 | fi | |
32503 | ||
32504 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32505 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32506 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32507 | _ACEOF |
10f2d63a VZ |
32508 | |
32509 | fi | |
32510 | ||
8284b0c5 | 32511 | |
1e6feb95 VZ |
32512 | USES_CONTROLS=0 |
32513 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32514 | USES_CONTROLS=1 | |
32515 | fi | |
32516 | ||
10f2d63a | 32517 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32518 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32519 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32520 | _ACEOF |
10f2d63a | 32521 | |
1e6feb95 VZ |
32522 | USES_CONTROLS=1 |
32523 | fi | |
32524 | ||
32525 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32526 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32527 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32528 | _ACEOF |
1e6feb95 VZ |
32529 | |
32530 | USES_CONTROLS=1 | |
32531 | fi | |
32532 | ||
32533 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32534 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32535 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32536 | _ACEOF |
1e6feb95 VZ |
32537 | |
32538 | USES_CONTROLS=1 | |
32539 | fi | |
32540 | ||
32541 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32542 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32543 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32544 | _ACEOF |
1e6feb95 VZ |
32545 | |
32546 | USES_CONTROLS=1 | |
32547 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32548 | fi |
32549 | ||
32550 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32551 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32552 | #define wxUSE_CARET 1 |
e6cc62c6 | 32553 | _ACEOF |
10f2d63a | 32554 | |
1e6feb95 | 32555 | USES_CONTROLS=1 |
10f2d63a VZ |
32556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32557 | fi | |
32558 | ||
32559 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32560 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32561 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32562 | _ACEOF |
10f2d63a | 32563 | |
1e6feb95 | 32564 | USES_CONTROLS=1 |
10f2d63a VZ |
32565 | fi |
32566 | ||
32567 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32568 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32569 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32570 | _ACEOF |
10f2d63a | 32571 | |
1e6feb95 | 32572 | USES_CONTROLS=1 |
10f2d63a VZ |
32573 | fi |
32574 | ||
32575 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32576 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32577 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32578 | _ACEOF |
10f2d63a | 32579 | |
1e6feb95 | 32580 | USES_CONTROLS=1 |
10f2d63a VZ |
32581 | fi |
32582 | ||
32583 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32584 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32585 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32586 | _ACEOF |
10f2d63a | 32587 | |
1e6feb95 | 32588 | USES_CONTROLS=1 |
10f2d63a VZ |
32589 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32590 | fi | |
32591 | ||
da494b40 | 32592 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32593 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32594 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32595 | _ACEOF |
da494b40 MB |
32596 | |
32597 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32598 | fi | |
32599 | ||
10f2d63a | 32600 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32601 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32602 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32603 | _ACEOF |
10f2d63a | 32604 | |
1e6feb95 | 32605 | USES_CONTROLS=1 |
10f2d63a VZ |
32606 | fi |
32607 | ||
d6a55c4b | 32608 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32609 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32610 | #define wxUSE_GRID 1 |
e6cc62c6 | 32611 | _ACEOF |
10f2d63a | 32612 | |
1e6feb95 | 32613 | USES_CONTROLS=1 |
d6a55c4b | 32614 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32615 | fi |
32616 | ||
32617 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32618 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32619 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32620 | _ACEOF |
10f2d63a VZ |
32621 | |
32622 | fi | |
32623 | ||
32624 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32625 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32626 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32627 | _ACEOF |
10f2d63a | 32628 | |
1e6feb95 | 32629 | USES_CONTROLS=1 |
10f2d63a VZ |
32630 | fi |
32631 | ||
32632 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32633 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32634 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32635 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32636 | _ACEOF |
10f2d63a | 32637 | |
1e6feb95 | 32638 | USES_CONTROLS=1 |
10f2d63a VZ |
32639 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32640 | else | |
e6cc62c6 VS |
32641 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32642 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32643 | fi |
32644 | fi | |
32645 | ||
32646 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32647 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32648 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32649 | _ACEOF |
10f2d63a | 32650 | |
1e6feb95 | 32651 | USES_CONTROLS=1 |
10f2d63a VZ |
32652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32653 | fi | |
32654 | ||
24176f2c | 32655 | |
10f2d63a | 32656 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32657 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32658 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32659 | _ACEOF |
10f2d63a | 32660 | |
1e6feb95 | 32661 | USES_CONTROLS=1 |
10f2d63a VZ |
32662 | fi |
32663 | ||
32664 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32665 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32666 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32667 | _ACEOF |
10f2d63a | 32668 | |
1e6feb95 | 32669 | USES_CONTROLS=1 |
10f2d63a VZ |
32670 | fi |
32671 | ||
32672 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32673 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32674 | #define wxUSE_SASH 1 |
e6cc62c6 | 32675 | _ACEOF |
10f2d63a VZ |
32676 | |
32677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32678 | fi | |
32679 | ||
32680 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32681 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32682 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32683 | _ACEOF |
10f2d63a | 32684 | |
1e6feb95 | 32685 | USES_CONTROLS=1 |
741a9306 | 32686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32687 | fi |
32688 | ||
32689 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32690 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32691 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32692 | _ACEOF |
10f2d63a | 32693 | |
1e6feb95 | 32694 | USES_CONTROLS=1 |
10f2d63a VZ |
32695 | fi |
32696 | ||
32697 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32698 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32699 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32700 | _ACEOF |
10f2d63a | 32701 | |
1e6feb95 | 32702 | USES_CONTROLS=1 |
10f2d63a VZ |
32703 | fi |
32704 | ||
56cfaa52 | 32705 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32706 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32707 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32708 | _ACEOF |
56cfaa52 | 32709 | |
1e6feb95 | 32710 | USES_CONTROLS=1 |
56cfaa52 RR |
32711 | fi |
32712 | ||
10f2d63a | 32713 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32714 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32715 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32716 | _ACEOF |
10f2d63a VZ |
32717 | |
32718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32719 | fi | |
32720 | ||
32721 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32722 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32723 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32724 | _ACEOF |
10f2d63a | 32725 | |
1e6feb95 | 32726 | USES_CONTROLS=1 |
10f2d63a VZ |
32727 | fi |
32728 | ||
32729 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32730 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32731 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32732 | _ACEOF |
10f2d63a | 32733 | |
1e6feb95 VZ |
32734 | USES_CONTROLS=1 |
32735 | fi | |
32736 | ||
32737 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32738 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32739 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32740 | _ACEOF |
1e6feb95 VZ |
32741 | |
32742 | USES_CONTROLS=1 | |
10f2d63a VZ |
32743 | fi |
32744 | ||
32745 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32746 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32747 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32748 | _ACEOF |
10f2d63a | 32749 | |
89e6bf6d | 32750 | USES_CONTROLS=1 |
10f2d63a VZ |
32751 | fi |
32752 | ||
32753 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32754 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32755 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32756 | _ACEOF |
10f2d63a | 32757 | |
1e6feb95 | 32758 | USES_CONTROLS=1 |
698dcdb6 | 32759 | |
2286341c | 32760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32761 | fi |
32762 | ||
32763 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32764 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32765 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32766 | _ACEOF |
10f2d63a VZ |
32767 | |
32768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32769 | fi | |
32770 | ||
1e6feb95 | 32771 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32772 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32773 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32774 | _ACEOF |
1e6feb95 VZ |
32775 | |
32776 | USES_CONTROLS=1 | |
32777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32778 | fi | |
32779 | ||
1db8dc4a | 32780 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32781 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32782 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32783 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32784 | wxUSE_TOGGLEBTN=no |
32785 | fi | |
32786 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32787 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32788 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32789 | wxUSE_TOGGLEBTN=no |
32790 | fi | |
32791 | ||
32792 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32793 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32794 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32795 | _ACEOF |
1db8dc4a | 32796 | |
1e6feb95 | 32797 | USES_CONTROLS=1 |
a45d7ab7 | 32798 | fi |
1db8dc4a VZ |
32799 | fi |
32800 | ||
360d6699 | 32801 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32802 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32803 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32804 | _ACEOF |
360d6699 VZ |
32805 | |
32806 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32807 | USES_CONTROLS=1 |
360d6699 VZ |
32808 | fi |
32809 | ||
10f2d63a | 32810 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32811 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32812 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32813 | _ACEOF |
10f2d63a | 32814 | |
1e6feb95 | 32815 | USES_CONTROLS=1 |
698dcdb6 | 32816 | |
360d6699 VZ |
32817 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
32818 | wxUSE_TOOLBAR_NATIVE="yes" | |
32819 | fi | |
32820 | ||
1e6feb95 | 32821 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 32822 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32823 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 32824 | _ACEOF |
360d6699 | 32825 | |
1e6feb95 VZ |
32826 | USES_CONTROLS=1 |
32827 | fi | |
32828 | ||
32829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
32830 | fi |
32831 | ||
10f2d63a VZ |
32832 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
32833 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
32834 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
32835 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 32836 | else |
89e6bf6d | 32837 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
32838 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
32839 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 32840 | else |
e6cc62c6 | 32841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32842 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 32843 | _ACEOF |
10f2d63a VZ |
32844 | |
32845 | fi | |
32846 | fi | |
32847 | fi | |
32848 | ||
32849 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32850 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32851 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32852 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 32853 | _ACEOF |
10f2d63a | 32854 | |
1e6feb95 | 32855 | USES_CONTROLS=1 |
10f2d63a VZ |
32856 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
32857 | else | |
e6cc62c6 VS |
32858 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
32859 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32860 | fi |
32861 | fi | |
32862 | ||
9f41d601 | 32863 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 32864 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32865 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
32866 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 32867 | else |
485cf710 | 32868 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32869 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
32870 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 32871 | else |
3c011993 | 32872 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32873 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
32874 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32875 | else |
e6cc62c6 | 32876 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 32877 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 32878 | _ACEOF |
9f41d601 | 32879 | |
8284b0c5 | 32880 | |
3c011993 VZ |
32881 | USES_CONTROLS=1 |
32882 | fi | |
485cf710 | 32883 | fi |
6abe4b65 | 32884 | fi |
9f41d601 RR |
32885 | fi |
32886 | ||
dd964dcc | 32887 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 32888 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32889 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
32890 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32891 | else |
e6cc62c6 | 32892 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 32893 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 32894 | _ACEOF |
dd964dcc | 32895 | |
3c011993 | 32896 | fi |
dd964dcc VZ |
32897 | fi |
32898 | ||
1e6feb95 | 32899 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 32900 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32901 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 32902 | _ACEOF |
10f2d63a | 32903 | |
10f2d63a VZ |
32904 | fi |
32905 | ||
8284b0c5 | 32906 | |
1e6feb95 | 32907 | |
24fd6d87 | 32908 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 32909 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 32910 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 32911 | _ACEOF |
24fd6d87 VZ |
32912 | |
32913 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32914 | fi | |
32915 | ||
7bb2947d | 32916 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 32917 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 32918 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 32919 | _ACEOF |
7bb2947d MB |
32920 | |
32921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32922 | fi | |
32923 | ||
1e6feb95 | 32924 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 32925 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32926 | #define wxUSE_MENUS 1 |
e6cc62c6 | 32927 | _ACEOF |
10f2d63a | 32928 | |
1e6feb95 | 32929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
32930 | fi |
32931 | ||
1e6feb95 | 32932 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 32933 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32934 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32935 | _ACEOF |
10f2d63a | 32936 | |
10f2d63a VZ |
32937 | fi |
32938 | ||
1e6feb95 | 32939 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 32940 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32941 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 32942 | _ACEOF |
10f2d63a | 32943 | |
10f2d63a VZ |
32944 | fi |
32945 | ||
3e44f09d | 32946 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 32947 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 32948 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 32949 | _ACEOF |
3e44f09d | 32950 | |
131f235d VS |
32951 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
32952 | "$TOOLKIT" = "MOTIF"; then | |
321d2b14 VZ |
32953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
32954 | fi | |
32955 | ||
3e44f09d VZ |
32956 | fi |
32957 | ||
10f2d63a | 32958 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 32959 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32960 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 32961 | _ACEOF |
10f2d63a VZ |
32962 | |
32963 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32964 | fi | |
32965 | ||
4d264332 | 32966 | USE_HTML=0 |
10f2d63a | 32967 | if test "$wxUSE_HTML" = "yes"; then |
e6cc62c6 | 32968 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32969 | #define wxUSE_HTML 1 |
e6cc62c6 | 32970 | _ACEOF |
10f2d63a | 32971 | |
4d264332 | 32972 | USE_HTML=1 |
c74dc163 | 32973 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
32974 | fi |
32975 | ||
32976 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 32977 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 32978 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 32979 | _ACEOF |
703e0a69 | 32980 | |
698dcdb6 VZ |
32981 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
32982 | fi | |
32983 | ||
edae8572 | 32984 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 32985 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 32986 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 32987 | _ACEOF |
edae8572 VZ |
32988 | |
32989 | fi | |
32990 | ||
698dcdb6 | 32991 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 32992 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32993 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 32994 | _ACEOF |
698dcdb6 VZ |
32995 | |
32996 | fi | |
32997 | ||
32998 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 32999 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33000 | #define wxUSE_GIF 1 |
e6cc62c6 | 33001 | _ACEOF |
698dcdb6 VZ |
33002 | |
33003 | fi | |
33004 | ||
33005 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 33006 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33007 | #define wxUSE_PCX 1 |
e6cc62c6 | 33008 | _ACEOF |
698dcdb6 VZ |
33009 | |
33010 | fi | |
33011 | ||
4b6b4dfc | 33012 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 33013 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 33014 | #define wxUSE_IFF 1 |
e6cc62c6 | 33015 | _ACEOF |
4b6b4dfc RR |
33016 | |
33017 | fi | |
33018 | ||
698dcdb6 | 33019 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 33020 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33021 | #define wxUSE_PNM 1 |
e6cc62c6 | 33022 | _ACEOF |
698dcdb6 VZ |
33023 | |
33024 | fi | |
33025 | ||
33026 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 33027 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33028 | #define wxUSE_XPM 1 |
e6cc62c6 | 33029 | _ACEOF |
698dcdb6 VZ |
33030 | |
33031 | fi | |
33032 | ||
658974ae | 33033 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 33034 | cat >>confdefs.h <<\_ACEOF |
658974ae | 33035 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33036 | _ACEOF |
658974ae VS |
33037 | |
33038 | fi | |
33039 | ||
a72a4bfa VS |
33040 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33041 | LIBS=" -lunicows $LIBS" | |
33042 | fi | |
33043 | ||
8284b0c5 | 33044 | |
1e6feb95 | 33045 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33046 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33047 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33048 | _ACEOF |
1e6feb95 VZ |
33049 | |
33050 | fi | |
33051 | ||
33052 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33053 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33054 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33055 | _ACEOF |
1e6feb95 VZ |
33056 | |
33057 | fi | |
33058 | ||
33059 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33060 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33061 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33062 | _ACEOF |
1e6feb95 VZ |
33063 | |
33064 | fi | |
33065 | ||
8db37e06 | 33066 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33067 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33068 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33069 | _ACEOF |
8db37e06 VZ |
33070 | |
33071 | fi | |
33072 | ||
1e6feb95 | 33073 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33074 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33075 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33076 | _ACEOF |
1e6feb95 VZ |
33077 | |
33078 | fi | |
33079 | ||
33080 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33081 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33082 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33083 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33084 | else |
e6cc62c6 | 33085 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33086 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33087 | _ACEOF |
1e6feb95 | 33088 | |
1e6feb95 VZ |
33089 | fi |
33090 | fi | |
33091 | ||
33092 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33093 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33094 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33095 | _ACEOF |
1e6feb95 VZ |
33096 | |
33097 | fi | |
33098 | ||
33099 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33100 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33101 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33102 | _ACEOF |
1e6feb95 VZ |
33103 | |
33104 | fi | |
33105 | ||
33106 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33107 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33108 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33109 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33110 | else |
e6cc62c6 | 33111 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33112 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33113 | _ACEOF |
1e6feb95 VZ |
33114 | |
33115 | fi | |
33116 | fi | |
33117 | ||
cbca9943 | 33118 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33119 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33120 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33121 | _ACEOF |
cbca9943 VZ |
33122 | |
33123 | fi | |
33124 | ||
1e6feb95 VZ |
33125 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33126 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33127 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33128 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33129 | else |
e6cc62c6 | 33130 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33131 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33132 | _ACEOF |
1e6feb95 | 33133 | |
7b4a847f RR |
33134 | fi |
33135 | fi | |
579d8138 | 33136 | |
8284b0c5 | 33137 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33138 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33139 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33140 | _ACEOF |
8284b0c5 MB |
33141 | |
33142 | fi | |
33143 | ||
33144 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33145 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33146 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33147 | _ACEOF |
8284b0c5 MB |
33148 | |
33149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33150 | fi | |
33151 | ||
33152 | ||
33153 | if test "$cross_compiling" = "yes"; then | |
33154 | OSINFO="\"$host\"" | |
33155 | else | |
33156 | OSINFO=`uname -s -r -m` | |
33157 | OSINFO="\"$OSINFO\"" | |
33158 | fi | |
33159 | ||
e6cc62c6 | 33160 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33161 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33162 | _ACEOF |
8284b0c5 MB |
33163 | |
33164 | ||
33165 | ||
33166 | if test "x$prefix" != "xNONE"; then | |
33167 | wxPREFIX=$prefix | |
33168 | else | |
33169 | wxPREFIX=$ac_default_prefix | |
33170 | fi | |
33171 | ||
e6cc62c6 | 33172 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33173 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33174 | _ACEOF |
8284b0c5 MB |
33175 | |
33176 | ||
e6cc62c6 | 33177 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33178 | |
8284b0c5 MB |
33179 | |
33180 | ||
edd891e2 VS |
33181 | CORE_BASE_LIBS="net base" |
33182 | CORE_GUI_LIBS="adv core" | |
33183 | ||
33184 | if test "$wxUSE_XML" = "yes" ; then | |
33185 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33186 | fi | |
45293562 VS |
33187 | if test "$wxUSE_ODBC" != "no" ; then |
33188 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33189 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33190 | fi |
33191 | if test "$wxUSE_HTML" = "yes" ; then | |
33192 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33193 | fi | |
33194 | ||
33195 | ||
33196 | ||
33197 | ||
33198 | ||
33199 | ||
33200 | ||
8284b0c5 MB |
33201 | |
33202 | if test "$wxUSE_MAC" = 1 ; then | |
33203 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33204 | fi | |
ac0c4cc3 DE |
33205 | if test "$wxUSE_COCOA" = 1 ; then |
33206 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33207 | fi | |
8284b0c5 MB |
33208 | |
33209 | ||
2b5f62a0 VZ |
33210 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33211 | ||
33212 | have_cos=0 | |
33213 | have_floor=0 | |
e6cc62c6 | 33214 | |
2b5f62a0 VZ |
33215 | for ac_func in cos |
33216 | do | |
e6cc62c6 VS |
33217 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33218 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33219 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33220 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33222 | else | |
33223 | cat >conftest.$ac_ext <<_ACEOF | |
33224 | #line $LINENO "configure" | |
33225 | /* confdefs.h. */ | |
33226 | _ACEOF | |
33227 | cat confdefs.h >>conftest.$ac_ext | |
33228 | cat >>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 |
33241 | extern "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. */ |
33246 | char $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) | |
33251 | choke me | |
33252 | #else | |
e6cc62c6 VS |
33253 | char (*f) () = $ac_func; |
33254 | #endif | |
33255 | #ifdef __cplusplus | |
33256 | } | |
2b5f62a0 VZ |
33257 | #endif |
33258 | ||
e6cc62c6 VS |
33259 | int |
33260 | main () | |
33261 | { | |
33262 | return f != $ac_func; | |
33263 | ; | |
33264 | return 0; | |
33265 | } | |
33266 | _ACEOF | |
33267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33268 | if { (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" | |
33280 | else | |
33281 | echo "$as_me: failed program was:" >&5 | |
33282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33283 | ||
33284 | eval "$as_ac_var=no" | |
33285 | fi | |
33286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33287 | fi | |
33288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33289 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33290 | if 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_cos=1 |
2b5f62a0 VZ |
33295 | fi |
33296 | done | |
33297 | ||
e6cc62c6 | 33298 | |
2b5f62a0 VZ |
33299 | for ac_func in floor |
33300 | do | |
e6cc62c6 VS |
33301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33302 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33304 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33306 | else | |
33307 | cat >conftest.$ac_ext <<_ACEOF | |
33308 | #line $LINENO "configure" | |
33309 | /* confdefs.h. */ | |
33310 | _ACEOF | |
33311 | cat confdefs.h >>conftest.$ac_ext | |
33312 | cat >>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 |
33325 | extern "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. */ |
33330 | char $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) | |
33335 | choke me | |
33336 | #else | |
e6cc62c6 VS |
33337 | char (*f) () = $ac_func; |
33338 | #endif | |
33339 | #ifdef __cplusplus | |
33340 | } | |
2b5f62a0 VZ |
33341 | #endif |
33342 | ||
e6cc62c6 VS |
33343 | int |
33344 | main () | |
33345 | { | |
33346 | return f != $ac_func; | |
33347 | ; | |
33348 | return 0; | |
33349 | } | |
33350 | _ACEOF | |
33351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33352 | if { (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" | |
33364 | else | |
33365 | echo "$as_me: failed program was:" >&5 | |
33366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33367 | ||
33368 | eval "$as_ac_var=no" | |
33369 | fi | |
33370 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33371 | fi | |
33372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33374 | if 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_floor=1 |
2b5f62a0 VZ |
33379 | fi |
33380 | done | |
33381 | ||
e6cc62c6 VS |
33382 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33383 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33384 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33385 | echo "$as_me:$LINENO: result: yes" >&5 |
33386 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33387 | else |
e6cc62c6 VS |
33388 | echo "$as_me:$LINENO: result: no" >&5 |
33389 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33390 | LIBS="$LIBS -lm" |
33391 | # use different functions to avoid configure caching | |
33392 | have_sin=0 | |
33393 | have_ceil=0 | |
e6cc62c6 VS |
33394 | |
33395 | for ac_func in sin | |
2b5f62a0 | 33396 | do |
e6cc62c6 VS |
33397 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33398 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33399 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33400 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33402 | else | |
33403 | cat >conftest.$ac_ext <<_ACEOF | |
33404 | #line $LINENO "configure" | |
33405 | /* confdefs.h. */ | |
33406 | _ACEOF | |
33407 | cat confdefs.h >>conftest.$ac_ext | |
33408 | cat >>conftest.$ac_ext <<_ACEOF | |
33409 | /* end confdefs.h. */ | |
2b5f62a0 | 33410 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33411 | which can conflict with char $ac_func (); below. |
33412 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33413 | <limits.h> exists even on freestanding compilers. */ | |
33414 | #ifdef __STDC__ | |
33415 | # include <limits.h> | |
33416 | #else | |
33417 | # include <assert.h> | |
33418 | #endif | |
2b5f62a0 | 33419 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33420 | #ifdef __cplusplus |
33421 | extern "C" | |
33422 | { | |
33423 | #endif | |
2b5f62a0 | 33424 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33425 | builtin and then its argument prototype would still apply. */ |
33426 | char $ac_func (); | |
2b5f62a0 VZ |
33427 | /* The GNU C library defines this for functions which it implements |
33428 | to always fail with ENOSYS. Some functions are actually named | |
33429 | something starting with __ and the normal name is an alias. */ | |
33430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33431 | choke me | |
33432 | #else | |
e6cc62c6 VS |
33433 | char (*f) () = $ac_func; |
33434 | #endif | |
33435 | #ifdef __cplusplus | |
33436 | } | |
2b5f62a0 VZ |
33437 | #endif |
33438 | ||
e6cc62c6 VS |
33439 | int |
33440 | main () | |
33441 | { | |
33442 | return f != $ac_func; | |
33443 | ; | |
33444 | return 0; | |
33445 | } | |
33446 | _ACEOF | |
33447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33449 | (eval $ac_link) 2>&5 | |
33450 | ac_status=$? | |
33451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33452 | (exit $ac_status); } && | |
33453 | { ac_try='test -s conftest$ac_exeext' | |
33454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33455 | (eval $ac_try) 2>&5 | |
33456 | ac_status=$? | |
33457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33458 | (exit $ac_status); }; }; then | |
33459 | eval "$as_ac_var=yes" | |
33460 | else | |
33461 | echo "$as_me: failed program was:" >&5 | |
33462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33463 | ||
33464 | eval "$as_ac_var=no" | |
33465 | fi | |
33466 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33467 | fi | |
33468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33470 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33471 | cat >>confdefs.h <<_ACEOF | |
33472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33473 | _ACEOF | |
2b5f62a0 | 33474 | have_sin=1 |
2b5f62a0 VZ |
33475 | fi |
33476 | done | |
33477 | ||
e6cc62c6 VS |
33478 | |
33479 | for ac_func in ceil | |
2b5f62a0 | 33480 | do |
e6cc62c6 VS |
33481 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33482 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33483 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33484 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33486 | else | |
33487 | cat >conftest.$ac_ext <<_ACEOF | |
33488 | #line $LINENO "configure" | |
33489 | /* confdefs.h. */ | |
33490 | _ACEOF | |
33491 | cat confdefs.h >>conftest.$ac_ext | |
33492 | cat >>conftest.$ac_ext <<_ACEOF | |
33493 | /* end confdefs.h. */ | |
2b5f62a0 | 33494 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33495 | which can conflict with char $ac_func (); below. |
33496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33497 | <limits.h> exists even on freestanding compilers. */ | |
33498 | #ifdef __STDC__ | |
33499 | # include <limits.h> | |
33500 | #else | |
33501 | # include <assert.h> | |
33502 | #endif | |
2b5f62a0 | 33503 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33504 | #ifdef __cplusplus |
33505 | extern "C" | |
33506 | { | |
33507 | #endif | |
2b5f62a0 | 33508 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33509 | builtin and then its argument prototype would still apply. */ |
33510 | char $ac_func (); | |
2b5f62a0 VZ |
33511 | /* The GNU C library defines this for functions which it implements |
33512 | to always fail with ENOSYS. Some functions are actually named | |
33513 | something starting with __ and the normal name is an alias. */ | |
33514 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33515 | choke me | |
33516 | #else | |
e6cc62c6 VS |
33517 | char (*f) () = $ac_func; |
33518 | #endif | |
33519 | #ifdef __cplusplus | |
33520 | } | |
2b5f62a0 VZ |
33521 | #endif |
33522 | ||
e6cc62c6 VS |
33523 | int |
33524 | main () | |
33525 | { | |
33526 | return f != $ac_func; | |
33527 | ; | |
33528 | return 0; | |
33529 | } | |
33530 | _ACEOF | |
33531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33533 | (eval $ac_link) 2>&5 | |
33534 | ac_status=$? | |
33535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33536 | (exit $ac_status); } && | |
33537 | { ac_try='test -s conftest$ac_exeext' | |
33538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33539 | (eval $ac_try) 2>&5 | |
33540 | ac_status=$? | |
33541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33542 | (exit $ac_status); }; }; then | |
33543 | eval "$as_ac_var=yes" | |
33544 | else | |
33545 | echo "$as_me: failed program was:" >&5 | |
33546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33547 | ||
33548 | eval "$as_ac_var=no" | |
33549 | fi | |
33550 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33551 | fi | |
33552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33553 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33554 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33555 | cat >>confdefs.h <<_ACEOF | |
33556 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33557 | _ACEOF | |
2b5f62a0 | 33558 | have_ceil=1 |
2b5f62a0 VZ |
33559 | fi |
33560 | done | |
33561 | ||
e6cc62c6 VS |
33562 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33563 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33564 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33565 | echo "$as_me:$LINENO: result: yes" >&5 |
33566 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33567 | else |
e6cc62c6 VS |
33568 | echo "$as_me:$LINENO: result: no" >&5 |
33569 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33570 | # not sure we should warn the user, crash, etc. |
33571 | fi | |
33572 | fi | |
8284b0c5 MB |
33573 | |
33574 | if test "$wxUSE_GUI" = "yes"; then | |
33575 | ||
e6cc62c6 | 33576 | |
8284b0c5 MB |
33577 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33578 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 33579 | minimal propsize rotate shaped widgets render" |
b625909c VS |
33580 | |
33581 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33582 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33583 | fi | |
8284b0c5 MB |
33584 | else |
33585 | SAMPLES_SUBDIRS="console" | |
33586 | fi | |
33587 | ||
33588 | ||
e6cc62c6 | 33589 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33590 | -I\${top_srcdir}/include \ |
33591 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33592 | $TOOLKIT_INCLUDE" | |
33593 | ||
fddeb06b VS |
33594 | if test "$GXX" = yes ; then |
33595 | CXXWARNINGS="-Wall" | |
33596 | fi | |
33597 | ||
33598 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33599 | ||
95318f7d | 33600 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33601 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33602 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33603 | |
33604 | ||
fddeb06b | 33605 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 33606 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 33607 | EXTRALIBS_XML="$EXPAT_LINK" |
bb41dcbe | 33608 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
33609 | if test "$wxUSE_GUI" = "yes"; then |
33610 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33611 | fi | |
34b08d2c VS |
33612 | if test "$wxUSE_OPENGL" = "yes"; then |
33613 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
33614 | fi | |
fddeb06b VS |
33615 | |
33616 | LDFLAGS="$LDFLAGS $PROFILE" | |
33617 | ||
8284b0c5 MB |
33618 | if test "$wxUSE_GTK" = 1; then |
33619 | WXCONFIG_INCLUDE= | |
33620 | else | |
33621 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33622 | fi | |
33623 | ||
67c13b6c VS |
33624 | WXCONFIG_EXTRALIBS="$LIBS" |
33625 | ||
33626 | if test "$wxUSE_REGEX" = "builtin" ; then | |
33627 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
33628 | fi | |
33629 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
33630 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
33631 | fi | |
33632 | if test "$wxUSE_ODBC" = "builtin" ; then | |
33633 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33634 | fi | |
33635 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
33636 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
33637 | fi | |
33638 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
33639 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
33640 | fi | |
33641 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
33642 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
33643 | fi | |
33644 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
33645 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
33646 | fi | |
bb41dcbe VS |
33647 | if test "$wxUSE_ODBC" = "builtin" ; then |
33648 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33649 | fi | |
67c13b6c VS |
33650 | |
33651 | for i in $wxconfig_3rdparty ; do | |
33652 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
33653 | done | |
33654 | ||
33655 | ||
fe0895cf VS |
33656 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33657 | WXUNIV=1 | |
33658 | else | |
33659 | WXUNIV=0 | |
8284b0c5 MB |
33660 | fi |
33661 | ||
8284b0c5 MB |
33662 | |
33663 | ||
33664 | ||
33665 | ||
33666 | ||
33667 | ||
33668 | ||
672abd7a | 33669 | |
9747f85d VS |
33670 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33671 | MONOLITHIC=1 | |
33672 | else | |
33673 | MONOLITHIC=0 | |
33674 | fi | |
8284b0c5 | 33675 | |
bb41dcbe VS |
33676 | if test $wxUSE_ODBC != "no" ; then |
33677 | USE_ODBC=1 | |
33678 | else | |
33679 | USE_ODBC=0 | |
33680 | fi | |
33681 | ||
029b47ad VS |
33682 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
33683 | OFFICIAL_BUILD=1 | |
33684 | else | |
33685 | OFFICIAL_BUILD=0 | |
33686 | fi | |
33687 | ||
8ee2dd05 VS |
33688 | |
33689 | ||
33690 | ||
8284b0c5 MB |
33691 | |
33692 | ||
33693 | ||
33694 | ||
33695 | ||
33696 | ||
c74dc163 | 33697 | |
34b08d2c | 33698 | |
672abd7a | 33699 | |
cf615ebb | 33700 | |
6c67131a VS |
33701 | |
33702 | ||
bb41dcbe | 33703 | |
fe0895cf | 33704 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33705 | |
33706 | ||
33707 | ||
33708 | ||
33709 | ||
ea66c762 | 33710 | |
0f1bc9c2 | 33711 | |
fe0895cf | 33712 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33713 | |
33714 | if test -n "$ac_tool_prefix"; then | |
33715 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33716 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33719 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33721 | else |
fe0895cf VS |
33722 | if test -n "$RANLIB"; then |
33723 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33724 | else |
e6cc62c6 VS |
33725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33726 | for as_dir in $PATH | |
33727 | do | |
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_RANLIB="${ac_tool_prefix}ranlib" | |
33733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33734 | break 2 | |
33735 | fi | |
33736 | done | |
33737 | done | |
33738 | ||
10f2d63a | 33739 | fi |
10f2d63a | 33740 | fi |
e6cc62c6 | 33741 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33742 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33743 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33744 | echo "${ECHO_T}$RANLIB" >&6 | |
33745 | else | |
33746 | echo "$as_me:$LINENO: result: no" >&5 | |
33747 | echo "${ECHO_T}no" >&6 | |
33748 | fi | |
33749 | ||
33750 | fi | |
33751 | if test -z "$ac_cv_prog_RANLIB"; then | |
33752 | ac_ct_RANLIB=$RANLIB | |
33753 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33754 | set dummy ranlib; ac_word=$2 | |
33755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33757 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33759 | else | |
33760 | if test -n "$ac_ct_RANLIB"; then | |
33761 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33762 | else | |
33763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33764 | for as_dir in $PATH | |
33765 | do | |
33766 | IFS=$as_save_IFS | |
33767 | test -z "$as_dir" && as_dir=. | |
33768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33770 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33772 | break 2 | |
33773 | fi | |
33774 | done | |
33775 | done | |
33776 | ||
33777 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33778 | fi | |
33779 | fi | |
33780 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33781 | if test -n "$ac_ct_RANLIB"; then | |
33782 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33783 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33784 | else |
e6cc62c6 VS |
33785 | echo "$as_me:$LINENO: result: no" >&5 |
33786 | echo "${ECHO_T}no" >&6 | |
33787 | fi | |
33788 | ||
33789 | RANLIB=$ac_ct_RANLIB | |
33790 | else | |
33791 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33792 | fi |
665bbe97 | 33793 | |
fe0895cf VS |
33794 | # Find a good install program. We prefer a C program (faster), |
33795 | # so one script is as good as another. But avoid the broken or | |
33796 | # incompatible versions: | |
33797 | # SysV /etc/install, /usr/sbin/install | |
33798 | # SunOS /usr/etc/install | |
33799 | # IRIX /sbin/install | |
33800 | # AIX /bin/install | |
e6cc62c6 | 33801 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33802 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33803 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33804 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33805 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33806 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33807 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33808 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33809 | if test "${ac_cv_path_install+set}" = set; then |
33810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33811 | else | |
33812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33813 | for as_dir in $PATH | |
33814 | do | |
33815 | IFS=$as_save_IFS | |
33816 | test -z "$as_dir" && as_dir=. | |
33817 | # Account for people who put trailing slashes in PATH elements. | |
33818 | case $as_dir/ in | |
33819 | ./ | .// | /cC/* | \ | |
33820 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33821 | /usr/ucb/* ) ;; | |
33822 | *) | |
33823 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33824 | # Don't use installbsd from OSF since it installs stuff as root | |
33825 | # by default. | |
33826 | for ac_prog in ginstall scoinst install; do | |
33827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33828 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33829 | if test $ac_prog = install && | |
33830 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33831 | # AIX install. It has an incompatible calling convention. | |
33832 | : | |
33833 | elif test $ac_prog = install && | |
33834 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33835 | # program-specific install script used by HP pwplus--don't use. | |
33836 | : | |
33837 | else | |
33838 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33839 | break 3 | |
33840 | fi | |
33841 | fi | |
fe0895cf | 33842 | done |
e6cc62c6 VS |
33843 | done |
33844 | ;; | |
33845 | esac | |
33846 | done | |
33847 | ||
fe0895cf VS |
33848 | |
33849 | fi | |
33850 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 33851 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
33852 | else |
33853 | # As a last resort, use the slow shell script. We don't cache a | |
33854 | # path for INSTALL within a source directory, because that will | |
33855 | # break other packages using the cache if that directory is | |
33856 | # removed, or if the path is relative. | |
e6cc62c6 | 33857 | INSTALL=$ac_install_sh |
fe0895cf VS |
33858 | fi |
33859 | fi | |
e6cc62c6 VS |
33860 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
33861 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
33862 | |
33863 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33864 | # It thinks the first close brace ends the variable substitution. | |
33865 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33866 | ||
e6cc62c6 | 33867 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
33868 | |
33869 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33870 | ||
e6cc62c6 VS |
33871 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
33872 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33873 | LN_S=$as_ln_s | |
33874 | if test "$LN_S" = "ln -s"; then | |
33875 | echo "$as_me:$LINENO: result: yes" >&5 | |
33876 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 33877 | else |
e6cc62c6 VS |
33878 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
33879 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
33880 | fi |
33881 | ||
33882 | ||
e6cc62c6 VS |
33883 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33884 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33885 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33886 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33888 | else |
e6cc62c6 | 33889 | cat >conftest.make <<\_ACEOF |
fe0895cf | 33890 | all: |
e6cc62c6 VS |
33891 | @echo 'ac_maketemp="$(MAKE)"' |
33892 | _ACEOF | |
fe0895cf | 33893 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 33894 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
33895 | if test -n "$ac_maketemp"; then |
33896 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33897 | else | |
33898 | eval ac_cv_prog_make_${ac_make}_set=no | |
33899 | fi | |
e6cc62c6 | 33900 | rm -f conftest.make |
fe0895cf VS |
33901 | fi |
33902 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
33903 | echo "$as_me:$LINENO: result: yes" >&5 |
33904 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
33905 | SET_MAKE= |
33906 | else | |
e6cc62c6 VS |
33907 | echo "$as_me:$LINENO: result: no" >&5 |
33908 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33909 | SET_MAKE="MAKE=${MAKE-make}" |
33910 | fi | |
33911 | ||
e6cc62c6 VS |
33912 | |
33913 | ||
fe0895cf VS |
33914 | if test "$build" != "$host" ; then |
33915 | AR=$host_alias-ar | |
33916 | STRIP=$host_alias-strip | |
33917 | else | |
33918 | # Extract the first word of "ar", so it can be a program name with args. | |
33919 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
33920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33922 | if test "${ac_cv_prog_AR+set}" = set; then | |
33923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33924 | else |
33925 | if test -n "$AR"; then | |
33926 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33927 | else | |
e6cc62c6 VS |
33928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33929 | for as_dir in $PATH | |
33930 | do | |
33931 | IFS=$as_save_IFS | |
33932 | test -z "$as_dir" && as_dir=. | |
33933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33935 | ac_cv_prog_AR="ar" | |
33936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33937 | break 2 | |
33938 | fi | |
33939 | done | |
33940 | done | |
33941 | ||
fe0895cf VS |
33942 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
33943 | fi | |
33944 | fi | |
e6cc62c6 | 33945 | AR=$ac_cv_prog_AR |
fe0895cf | 33946 | if test -n "$AR"; then |
e6cc62c6 VS |
33947 | echo "$as_me:$LINENO: result: $AR" >&5 |
33948 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 33949 | else |
e6cc62c6 VS |
33950 | echo "$as_me:$LINENO: result: no" >&5 |
33951 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33952 | fi |
33953 | ||
33954 | # Extract the first word of "strip", so it can be a program name with args. | |
33955 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
33956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33958 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33960 | else |
33961 | if test -n "$STRIP"; then | |
33962 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33963 | else | |
e6cc62c6 VS |
33964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33965 | for as_dir in $PATH | |
33966 | do | |
33967 | IFS=$as_save_IFS | |
33968 | test -z "$as_dir" && as_dir=. | |
33969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33970 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33971 | ac_cv_prog_STRIP="strip" | |
33972 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33973 | break 2 | |
33974 | fi | |
33975 | done | |
33976 | done | |
33977 | ||
fe0895cf VS |
33978 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
33979 | fi | |
33980 | fi | |
e6cc62c6 | 33981 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 33982 | if test -n "$STRIP"; then |
e6cc62c6 VS |
33983 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
33984 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 33985 | else |
e6cc62c6 VS |
33986 | echo "$as_me:$LINENO: result: no" >&5 |
33987 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33988 | fi |
33989 | ||
33990 | fi | |
33991 | ||
33992 | case ${host} in | |
33993 | *-hp-hpux* ) | |
33994 | INSTALL_DIR="mkdir" | |
33995 | ;; | |
33996 | *) INSTALL_DIR="$INSTALL -d" | |
33997 | ;; | |
33998 | esac | |
e6cc62c6 | 33999 | |
fe0895cf | 34000 | |
6b9d41a5 VS |
34001 | LDFLAGS_GUI= |
34002 | case ${host} in | |
34003 | *-*-cygwin* | *-*-mingw32* ) | |
34004 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
34005 | esac | |
34006 | ||
34007 | ||
fe0895cf | 34008 | fi |
e6cc62c6 VS |
34009 | |
34010 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
34011 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 34012 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 34013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 34014 | else |
e6cc62c6 | 34015 | |
fe0895cf VS |
34016 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34017 | egrep -s GNU > /dev/null); then | |
34018 | bakefile_cv_prog_makeisgnu="yes" | |
34019 | else | |
34020 | bakefile_cv_prog_makeisgnu="no" | |
34021 | fi | |
fe0895cf | 34022 | |
e6cc62c6 | 34023 | fi |
49b0a3aa VS |
34024 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34025 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34026 | |
34027 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34028 | IF_GNU_MAKE="" | |
34029 | else | |
34030 | IF_GNU_MAKE="#" | |
34031 | fi | |
fe0895cf | 34032 | |
e6cc62c6 VS |
34033 | |
34034 | ||
fe0895cf VS |
34035 | PLATFORM_UNIX=0 |
34036 | PLATFORM_WIN32=0 | |
34037 | PLATFORM_MSDOS=0 | |
34038 | PLATFORM_MAC=0 | |
34039 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 34040 | |
fe0895cf VS |
34041 | case "${host}" in |
34042 | *-*-cygwin* | *-*-mingw32* ) | |
34043 | PLATFORM_WIN32=1 | |
34044 | ;; | |
34045 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34046 | PLATFORM_MSDOS=1 | |
34047 | ;; | |
34048 | powerpc-*-darwin* ) | |
34049 | PLATFORM_MAC=1 | |
34050 | PLATFORM_MACOSX=1 | |
34051 | ;; | |
34052 | * ) | |
34053 | PLATFORM_UNIX=1 | |
34054 | ;; | |
34055 | esac | |
34056 | ||
fe0895cf | 34057 | |
e6cc62c6 VS |
34058 | |
34059 | ||
34060 | ||
34061 | ||
34062 | ||
34063 | ||
fe0895cf | 34064 | SO_SUFFIX="so" |
131f235d | 34065 | SO_SUFFIX_MODULE="so" |
fe0895cf VS |
34066 | EXEEXT="" |
34067 | DLLPREFIX=lib | |
131f235d | 34068 | DLLPREFIX_MODULE= |
e6cc62c6 | 34069 | |
fe0895cf VS |
34070 | case "${host}" in |
34071 | *-hp-hpux* ) | |
34072 | SO_SUFFIX="sl" | |
131f235d | 34073 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34074 | ;; |
34075 | *-*-aix* ) | |
34076 | SO_SUFFIX="a" | |
131f235d | 34077 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34078 | ;; |
34079 | *-*-cygwin* | *-*-mingw32* ) | |
34080 | SO_SUFFIX="dll" | |
131f235d | 34081 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34082 | EXEEXT=".exe" |
34083 | DLLPREFIX="" | |
34084 | ;; | |
34085 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34086 | EXEEXT=".exe" | |
34087 | DLLPREFIX="" | |
34088 | ;; | |
34089 | powerpc-*-darwin* ) | |
34090 | SO_SUFFIX="dylib" | |
131f235d | 34091 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34092 | ;; |
34093 | esac | |
34094 | ||
fe0895cf | 34095 | |
e6cc62c6 VS |
34096 | |
34097 | ||
34098 | ||
34099 | ||
131f235d VS |
34100 | |
34101 | ||
fe0895cf VS |
34102 | SHARED_LD_CC="\$(CC) -shared -o" |
34103 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34104 | ||
34105 | if test "x$GCC" = "xyes"; then | |
34106 | PIC_FLAG="-fPIC" | |
34107 | fi | |
34108 | ||
34109 | case "${host}" in | |
34110 | *-hp-hpux* ) | |
34111 | if test "x$GCC" = "xyes"; then | |
34112 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34113 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34114 | else | |
34115 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34116 | ||
34117 | SHARED_LD_CC="${CC} -b -o" | |
34118 | SHARED_LD_CXX="${CXX} -b -o" | |
34119 | PIC_FLAG="+Z" | |
34120 | fi | |
34121 | ;; | |
34122 | ||
34123 | *-*-linux* ) | |
34124 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34125 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34126 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34127 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34129 | else |
fe0895cf | 34130 | |
e6cc62c6 VS |
34131 | cat >conftest.$ac_ext <<_ACEOF |
34132 | #line $LINENO "configure" | |
34133 | /* confdefs.h. */ | |
34134 | _ACEOF | |
34135 | cat confdefs.h >>conftest.$ac_ext | |
34136 | cat >>conftest.$ac_ext <<_ACEOF | |
34137 | /* end confdefs.h. */ | |
34138 | ||
34139 | int | |
34140 | main () | |
34141 | { | |
fe0895cf VS |
34142 | |
34143 | #ifndef __INTEL_COMPILER | |
34144 | #error Not icc | |
34145 | #endif | |
e6cc62c6 VS |
34146 | |
34147 | ; | |
34148 | return 0; | |
34149 | } | |
34150 | _ACEOF | |
34151 | rm -f conftest.$ac_objext | |
34152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34153 | (eval $ac_compile) 2>&5 | |
34154 | ac_status=$? | |
34155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34156 | (exit $ac_status); } && | |
34157 | { ac_try='test -s conftest.$ac_objext' | |
34158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34159 | (eval $ac_try) 2>&5 | |
34160 | ac_status=$? | |
34161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34162 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34163 | bakefile_cv_prog_icc=yes |
34164 | else | |
e6cc62c6 VS |
34165 | echo "$as_me: failed program was:" >&5 |
34166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34167 | ||
34168 | bakefile_cv_prog_icc=no | |
34169 | ||
fe0895cf | 34170 | fi |
e6cc62c6 | 34171 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34172 | |
e6cc62c6 VS |
34173 | fi |
34174 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34175 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34176 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34177 | PIC_FLAG="-KPIC" | |
34178 | fi | |
34179 | fi | |
34180 | ;; | |
34181 | ||
34182 | *-*-solaris2* ) | |
34183 | if test "x$GCC" != xyes ; then | |
34184 | SHARED_LD_CC="${CC} -G -o" | |
34185 | SHARED_LD_CXX="${CXX} -G -o" | |
34186 | PIC_FLAG="-KPIC" | |
34187 | fi | |
34188 | ;; | |
34189 | ||
34190 | *-*-darwin* ) | |
34191 | CFLAGS="$CFLAGS -fno-common" | |
34192 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34193 | |
34194 | ||
fe0895cf VS |
34195 | cat <<EOF >shared-ld-sh |
34196 | #!/bin/sh | |
34197 | #----------------------------------------------------------------------------- | |
34198 | #-- Name: distrib/mac/shared-ld-sh | |
34199 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34200 | #-- Author: Gilles Depeyrot | |
34201 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34202 | #-- Licence: any use permitted | |
34203 | #----------------------------------------------------------------------------- | |
34204 | ||
34205 | verbose=0 | |
34206 | args="" | |
34207 | objects="" | |
131f235d | 34208 | linking_flag="-dynamiclib" |
fe0895cf VS |
34209 | |
34210 | while test \${#} -gt 0; do | |
34211 | case \${1} in | |
34212 | ||
34213 | -v) | |
34214 | verbose=1 | |
34215 | ;; | |
34216 | ||
34217 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34218 | # collect these options and values | |
34219 | args="\${args} \${1} \${2}" | |
34220 | shift | |
34221 | ;; | |
34222 | ||
34223 | -l*|-L*|-flat_namespace) | |
34224 | # collect these options | |
34225 | args="\${args} \${1}" | |
34226 | ;; | |
34227 | ||
131f235d VS |
34228 | -dynamiclib|-bundle) |
34229 | linking_flag="\${1}" | |
fe0895cf VS |
34230 | ;; |
34231 | ||
34232 | -*) | |
34233 | echo "shared-ld: unhandled option '\${1}'" | |
34234 | exit 1 | |
34235 | ;; | |
34236 | ||
4d264332 | 34237 | *.o | *.a | *.dylib) |
fe0895cf VS |
34238 | # collect object files |
34239 | objects="\${objects} \${1}" | |
34240 | ;; | |
34241 | ||
34242 | *) | |
34243 | echo "shared-ld: unhandled argument '\${1}'" | |
34244 | exit 1 | |
34245 | ;; | |
34246 | ||
34247 | esac | |
34248 | shift | |
34249 | done | |
34250 | ||
34251 | # | |
34252 | # Link one module containing all the others | |
34253 | # | |
34254 | if test \${verbose} = 1; then | |
34255 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34256 | fi | |
34257 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34258 | status=\$? | |
34259 | if test \${status} != 0; then | |
34260 | exit \${status} | |
34261 | fi | |
34262 | ||
34263 | # | |
34264 | # Link the shared library from the single module created | |
34265 | # | |
34266 | if test \${verbose} = 1; then | |
131f235d | 34267 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34268 | fi |
131f235d | 34269 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34270 | status=\$? |
34271 | if test \${status} != 0; then | |
34272 | exit \${status} | |
34273 | fi | |
34274 | ||
34275 | # | |
34276 | # Remove intermediate module | |
34277 | # | |
34278 | rm -f master.\$\$.o | |
34279 | ||
34280 | exit 0 | |
34281 | EOF | |
34282 | chmod +x shared-ld-sh | |
34283 | ||
131f235d VS |
34284 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o" |
34285 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o" | |
fe0895cf | 34286 | SHARED_LD_CXX="$SHARED_LD_CC" |
131f235d | 34287 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" |
fe0895cf VS |
34288 | PIC_FLAG="-dynamic -fPIC" |
34289 | ;; | |
34290 | ||
34291 | *-*-aix* ) | |
34292 | if test "x$GCC" != "xyes"; then | |
34293 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34294 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34295 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34297 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34299 | else |
34300 | if test -n "$AIX_CXX_LD"; then | |
34301 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34302 | else | |
e6cc62c6 VS |
34303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34304 | for as_dir in $PATH | |
34305 | do | |
34306 | IFS=$as_save_IFS | |
34307 | test -z "$as_dir" && as_dir=. | |
34308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34310 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34312 | break 2 | |
34313 | fi | |
34314 | done | |
34315 | done | |
34316 | ||
fe0895cf VS |
34317 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34318 | fi | |
34319 | fi | |
e6cc62c6 | 34320 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34321 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34322 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34323 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34324 | else |
e6cc62c6 VS |
34325 | echo "$as_me:$LINENO: result: no" >&5 |
34326 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34327 | fi |
34328 | ||
34329 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34330 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34331 | fi | |
34332 | ;; | |
34333 | ||
34334 | *-*-beos* ) | |
34335 | SHARED_LD_CC="${LD} -shared -o" | |
34336 | SHARED_LD_CXX="${LD} -shared -o" | |
34337 | ;; | |
34338 | ||
34339 | *-*-irix* ) | |
34340 | if test "x$GCC" != "xyes"; then | |
34341 | PIC_FLAG="-KPIC" | |
34342 | fi | |
34343 | ;; | |
e6cc62c6 | 34344 | |
fe0895cf VS |
34345 | *-*-cygwin* | *-*-mingw32* ) |
34346 | PIC_FLAG="" | |
34347 | ;; | |
e6cc62c6 | 34348 | |
fe0895cf VS |
34349 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34350 | *-*-sunos4* | \ | |
34351 | *-*-osf* | \ | |
34352 | *-*-dgux5* | \ | |
d5fc095c | 34353 | *-pc-os2-emx | \ |
fe0895cf VS |
34354 | *-*-sysv5* ) |
34355 | ;; | |
34356 | ||
34357 | *) | |
e6cc62c6 VS |
34358 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34359 | echo "$as_me: error: unknown system type $host." >&2;} | |
34360 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34361 | esac |
34362 | ||
131f235d VS |
34363 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
34364 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
34365 | fi | |
34366 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 34367 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
34368 | fi |
34369 | ||
34370 | ||
34371 | ||
fe0895cf | 34372 | |
e6cc62c6 VS |
34373 | |
34374 | ||
34375 | ||
34376 | ||
fe0895cf VS |
34377 | USE_SOVERSION=0 |
34378 | USE_SOVERLINUX=0 | |
34379 | USE_SOVERSOLARIS=0 | |
34380 | USE_SOSYMLINKS=0 | |
34381 | USE_MACVERSION=0 | |
34382 | SONAME_FLAG= | |
34383 | ||
34384 | case "${host}" in | |
34385 | *-*-linux* ) | |
34386 | SONAME_FLAG="-Wl,-soname," | |
34387 | USE_SOVERSION=1 | |
34388 | USE_SOVERLINUX=1 | |
34389 | USE_SOSYMLINKS=1 | |
34390 | ;; | |
34391 | ||
34392 | *-*-solaris2* ) | |
34393 | SONAME_FLAG="-h " | |
34394 | USE_SOVERSION=1 | |
34395 | USE_SOVERSOLARIS=1 | |
34396 | USE_SOSYMLINKS=1 | |
34397 | ;; | |
34398 | ||
34399 | *-*-darwin* ) | |
34400 | USE_MACVERSION=1 | |
34401 | USE_SOVERSION=1 | |
34402 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34403 | ;; |
fe0895cf VS |
34404 | esac |
34405 | ||
fe0895cf | 34406 | |
e6cc62c6 VS |
34407 | |
34408 | ||
34409 | ||
34410 | ||
34411 | ||
34412 | ||
34413 | ||
49b0a3aa VS |
34414 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34415 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34416 | DEPS_TRACKING=0 | |
34417 | ||
fe0895cf | 34418 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34419 | DEPSMODE=gcc |
34420 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
34421 | case "${host}" in |
34422 | powerpc-*-darwin* ) | |
34423 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
34424 | ;; | |
34425 | * ) | |
34426 | DEPSFLAG_GCC="-MMD" | |
34427 | ;; | |
34428 | esac | |
49b0a3aa VS |
34429 | echo "$as_me:$LINENO: result: gcc" >&5 |
34430 | echo "${ECHO_T}gcc" >&6 | |
34431 | else | |
34432 | echo "$as_me:$LINENO: result: none" >&5 | |
34433 | echo "${ECHO_T}none" >&6 | |
34434 | fi | |
34435 | ||
34436 | if test $DEPS_TRACKING = 1 ; then | |
34437 | cat <<EOF >bk-deps | |
34438 | #!/bin/sh | |
34439 | ||
45842500 VS |
34440 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
34441 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
34442 | # |
34443 | # Permission is given to use this file in any way. | |
34444 | ||
34445 | DEPSMODE=$DEPSMODE | |
34446 | DEPSDIR=.deps | |
3e5c3c83 | 34447 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
34448 | |
34449 | mkdir -p \$DEPSDIR | |
34450 | ||
34451 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 34452 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
34453 | status=\${?} |
34454 | if test \${status} != 0 ; then | |
34455 | exit \${status} | |
34456 | fi | |
34457 | # move created file to the location we want it in: | |
34458 | while test \${#} -gt 0; do | |
34459 | case "\${1}" in | |
34460 | -o ) | |
34461 | shift | |
34462 | objfile=\${1} | |
34463 | ;; | |
34464 | -* ) | |
34465 | ;; | |
34466 | * ) | |
34467 | srcfile=\${1} | |
34468 | ;; | |
34469 | esac | |
34470 | shift | |
34471 | done | |
34472 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34473 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34474 | if test -f \$depfile ; then |
34475 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34476 | rm -f \$depfile | |
34477 | else | |
34478 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34479 | if test -f \$depfile ; then | |
4c8b7f4b | 34480 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34481 | rm -f \$depfile |
34482 | fi | |
34483 | fi | |
49b0a3aa VS |
34484 | exit 0 |
34485 | else | |
34486 | \${*} | |
34487 | exit \${?} | |
34488 | fi | |
34489 | EOF | |
34490 | chmod +x bk-deps | |
fe0895cf | 34491 | fi |
fe0895cf | 34492 | |
e6cc62c6 VS |
34493 | |
34494 | ||
34495 | ||
fe0895cf VS |
34496 | RESCOMP= |
34497 | SETFILE= | |
34498 | ||
e6cc62c6 | 34499 | case ${host} in |
fe0895cf VS |
34500 | *-*-cygwin* | *-*-mingw32* ) |
34501 | if test "$build" != "$host" ; then | |
34502 | RESCOMP=$host_alias-windres | |
34503 | else | |
34504 | # Extract the first word of "windres", so it can be a program name with args. | |
34505 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34508 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34510 | else |
34511 | if test -n "$RESCOMP"; then | |
34512 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34513 | else | |
e6cc62c6 VS |
34514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34515 | for as_dir in $PATH | |
34516 | do | |
34517 | IFS=$as_save_IFS | |
34518 | test -z "$as_dir" && as_dir=. | |
34519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34521 | ac_cv_prog_RESCOMP="windres" | |
34522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34523 | break 2 | |
34524 | fi | |
34525 | done | |
34526 | done | |
34527 | ||
fe0895cf VS |
34528 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34529 | fi | |
34530 | fi | |
e6cc62c6 | 34531 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34532 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34533 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34534 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34535 | else |
e6cc62c6 VS |
34536 | echo "$as_me:$LINENO: result: no" >&5 |
34537 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34538 | fi |
34539 | ||
34540 | fi | |
34541 | ;; | |
e6cc62c6 | 34542 | |
fe0895cf VS |
34543 | *-*-darwin* ) |
34544 | # Extract the first word of "Rez", so it can be a program name with args. | |
34545 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34548 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34550 | else |
34551 | if test -n "$RESCOMP"; then | |
34552 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34553 | else | |
e6cc62c6 VS |
34554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34555 | for as_dir in $PATH | |
34556 | do | |
34557 | IFS=$as_save_IFS | |
34558 | test -z "$as_dir" && as_dir=. | |
34559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34561 | ac_cv_prog_RESCOMP="Rez" | |
34562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34563 | break 2 | |
34564 | fi | |
34565 | done | |
34566 | done | |
34567 | ||
fe0895cf VS |
34568 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34569 | fi | |
34570 | fi | |
e6cc62c6 | 34571 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34572 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34573 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34574 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34575 | else |
e6cc62c6 VS |
34576 | echo "$as_me:$LINENO: result: no" >&5 |
34577 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34578 | fi |
34579 | ||
34580 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34581 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34584 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34586 | else |
34587 | if test -n "$SETFILE"; then | |
34588 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34589 | else | |
e6cc62c6 VS |
34590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34591 | for as_dir in $PATH | |
34592 | do | |
34593 | IFS=$as_save_IFS | |
34594 | test -z "$as_dir" && as_dir=. | |
34595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34597 | ac_cv_prog_SETFILE="SetFile" | |
34598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34599 | break 2 | |
34600 | fi | |
34601 | done | |
34602 | done | |
34603 | ||
fe0895cf VS |
34604 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34605 | fi | |
34606 | fi | |
e6cc62c6 | 34607 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34608 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34609 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34610 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34611 | else |
e6cc62c6 VS |
34612 | echo "$as_me:$LINENO: result: no" >&5 |
34613 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34614 | fi |
34615 | ||
34616 | ;; | |
34617 | esac | |
34618 | ||
fe0895cf VS |
34619 | |
34620 | ||
e6cc62c6 VS |
34621 | |
34622 | ||
34623 | ||
34624 | ||
45842500 | 34625 | |
40b46a49 VS |
34626 | |
34627 | ||
45842500 VS |
34628 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
34629 | if test "${enable_precomp_headers+set}" = set; then | |
34630 | enableval="$enable_precomp_headers" | |
34631 | bk_use_pch="$enableval" | |
34632 | fi; | |
34633 | ||
34634 | GCC_PCH=0 | |
34635 | ||
34636 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
34637 | if test "x$GCC" = "xyes"; then | |
34638 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
34639 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
34640 | cat >conftest.$ac_ext <<_ACEOF | |
34641 | #line $LINENO "configure" | |
34642 | /* confdefs.h. */ | |
34643 | _ACEOF | |
34644 | cat confdefs.h >>conftest.$ac_ext | |
34645 | cat >>conftest.$ac_ext <<_ACEOF | |
34646 | /* end confdefs.h. */ | |
34647 | ||
34648 | int | |
34649 | main () | |
34650 | { | |
34651 | ||
8bcf2d20 VS |
34652 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
34653 | #error "no pch support" | |
34654 | #endif | |
34655 | #if (__GNUC__ < 3) | |
34656 | #error "no pch support" | |
34657 | #endif | |
34658 | #if (__GNUC__ == 3) && \ | |
34659 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
34660 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
34661 | #error "no pch support" | |
45842500 VS |
34662 | #endif |
34663 | ||
34664 | ; | |
34665 | return 0; | |
34666 | } | |
34667 | _ACEOF | |
34668 | rm -f conftest.$ac_objext | |
34669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34670 | (eval $ac_compile) 2>&5 | |
34671 | ac_status=$? | |
34672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34673 | (exit $ac_status); } && | |
34674 | { ac_try='test -s conftest.$ac_objext' | |
34675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34676 | (eval $ac_try) 2>&5 | |
34677 | ac_status=$? | |
34678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34679 | (exit $ac_status); }; }; then | |
34680 | ||
34681 | echo "$as_me:$LINENO: result: yes" >&5 | |
34682 | echo "${ECHO_T}yes" >&6 | |
34683 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
34684 | GCC_PCH=1 | |
34685 | ||
34686 | else | |
34687 | echo "$as_me: failed program was:" >&5 | |
34688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34689 | ||
34690 | ||
34691 | echo "$as_me:$LINENO: result: no" >&5 | |
34692 | echo "${ECHO_T}no" >&6 | |
34693 | ||
34694 | fi | |
34695 | rm -f conftest.$ac_objext conftest.$ac_ext | |
34696 | if test $GCC_PCH = 1 ; then | |
34697 | cat <<EOF >bk-make-pch | |
34698 | #!/bin/sh | |
34699 | ||
34700 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
34701 | # script. It is used to generated precompiled headers. | |
34702 | # | |
34703 | # Permission is given to use this file in any way. | |
34704 | ||
34705 | outfile="\${1}" | |
34706 | header="\${2}" | |
34707 | shift | |
34708 | shift | |
34709 | ||
34710 | compiler= | |
34711 | headerfile= | |
34712 | while test \${#} -gt 0; do | |
34713 | case "\${1}" in | |
34714 | -I* ) | |
34715 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
34716 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
34717 | headerfile="\${incdir}/\${header}" | |
34718 | fi | |
34719 | ;; | |
34720 | esac | |
34721 | compiler="\${compiler} \${1}" | |
34722 | shift | |
34723 | done | |
34724 | ||
34725 | if test "x\${headerfile}" = "x" ; then | |
34726 | echo "error: can't find header \${header} in include paths" >2 | |
34727 | else | |
34728 | if test -f \${outfile} ; then | |
34729 | rm -f \${outfile} | |
34730 | else | |
34731 | mkdir -p \`dirname \${outfile}\` | |
34732 | fi | |
34733 | depsfile=".deps/\`basename \${outfile}\`.d" | |
34734 | mkdir -p .deps | |
34735 | # can do this because gcc is >= 3.4: | |
34736 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
34737 | exit \${?} | |
34738 | fi | |
34739 | EOF | |
34740 | chmod +x bk-make-pch | |
34741 | fi | |
34742 | fi | |
34743 | fi | |
34744 | ||
34745 | ||
34746 | ||
34747 | ||
34748 | ||
d78c94f2 | 34749 | COND_BUILD_DEBUG="#" |
6f628073 | 34750 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34751 | COND_BUILD_DEBUG="" |
6f628073 VS |
34752 | fi |
34753 | ||
6c67131a VS |
34754 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
34755 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
34756 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
34757 | fi | |
34758 | ||
34759 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
34760 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34761 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
34762 | fi | |
34763 | ||
d78c94f2 | 34764 | COND_BUILD_RELEASE="#" |
6f628073 | 34765 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34766 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34767 | fi |
34768 | ||
6c67131a VS |
34769 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
34770 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34771 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
34772 | fi | |
34773 | ||
34774 | COND_DEBUG_FLAG_1="#" | |
34775 | if test "x$DEBUG_FLAG" = "x1" ; then | |
34776 | COND_DEBUG_FLAG_1="" | |
34777 | fi | |
34778 | ||
34779 | COND_DEBUG_INFO_0="#" | |
34780 | if test "x$DEBUG_INFO" = "x0" ; then | |
34781 | COND_DEBUG_INFO_0="" | |
34782 | fi | |
34783 | ||
34784 | COND_DEBUG_INFO_1="#" | |
34785 | if test "x$DEBUG_INFO" = "x1" ; then | |
34786 | COND_DEBUG_INFO_1="" | |
34787 | fi | |
34788 | ||
f95cd8fa VS |
34789 | COND_DEPS_TRACKING_0="#" |
34790 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34791 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34792 | fi |
34793 | ||
8ee2dd05 VS |
34794 | COND_DEPS_TRACKING_1="#" |
34795 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34796 | COND_DEPS_TRACKING_1="" | |
34797 | fi | |
34798 | ||
45842500 VS |
34799 | COND_GCC_PCH_1="#" |
34800 | if test "x$GCC_PCH" = "x1" ; then | |
34801 | COND_GCC_PCH_1="" | |
34802 | fi | |
34803 | ||
6f628073 VS |
34804 | COND_MONOLITHIC_0="#" |
34805 | if test "x$MONOLITHIC" = "x0" ; then | |
34806 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
34807 | fi |
34808 | ||
6f628073 VS |
34809 | COND_MONOLITHIC_0_SHARED_0="#" |
34810 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34811 | COND_MONOLITHIC_0_SHARED_0="" | |
34812 | fi | |
34813 | ||
34814 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34815 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34816 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 34817 | fi |
e6cc62c6 | 34818 | |
8772a1a7 VS |
34819 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
34820 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34821 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
34822 | fi | |
34823 | ||
250700e4 RD |
34824 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
34825 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
34826 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
34827 | fi | |
34828 | ||
eb69fda5 VS |
34829 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
34830 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
34831 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
34832 | fi | |
34833 | ||
8ee2dd05 VS |
34834 | COND_MONOLITHIC_0_SHARED_1="#" |
34835 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34836 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 34837 | fi |
e6cc62c6 | 34838 | |
6f628073 VS |
34839 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
34840 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34841 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34842 | fi | |
34843 | ||
8772a1a7 VS |
34844 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
34845 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34846 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
34847 | fi | |
34848 | ||
250700e4 RD |
34849 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
34850 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
34851 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
34852 | fi | |
34853 | ||
eb69fda5 VS |
34854 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
34855 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34856 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
34857 | fi | |
34858 | ||
3af038c0 VS |
34859 | COND_MONOLITHIC_1="#" |
34860 | if test "x$MONOLITHIC" = "x1" ; then | |
34861 | COND_MONOLITHIC_1="" | |
34862 | fi | |
34863 | ||
6f628073 VS |
34864 | COND_MONOLITHIC_1_SHARED_0="#" |
34865 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34866 | COND_MONOLITHIC_1_SHARED_0="" | |
34867 | fi | |
34868 | ||
34869 | COND_MONOLITHIC_1_SHARED_1="#" | |
34870 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34871 | COND_MONOLITHIC_1_SHARED_1="" | |
34872 | fi | |
34873 | ||
3af038c0 VS |
34874 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
34875 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34876 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34877 | fi | |
34878 | ||
34879 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34880 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34881 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34882 | fi | |
34883 | ||
6f628073 VS |
34884 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
34885 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34886 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34887 | fi | |
34888 | ||
3af038c0 VS |
34889 | COND_PLATFORM_MACOSX_1="#" |
34890 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34891 | COND_PLATFORM_MACOSX_1="" | |
34892 | fi | |
34893 | ||
250700e4 RD |
34894 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
34895 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
34896 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
34897 | fi | |
34898 | ||
34899 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
34900 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
34901 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
34902 | fi | |
34903 | ||
34904 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
34905 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
34906 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
34907 | fi | |
34908 | ||
8ee2dd05 VS |
34909 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
34910 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
34911 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
34912 | fi | |
34913 | ||
45842500 VS |
34914 | COND_PLATFORM_MAC_1="#" |
34915 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34916 | COND_PLATFORM_MAC_1="" | |
34917 | fi | |
34918 | ||
8772a1a7 VS |
34919 | COND_PLATFORM_UNIX_0="#" |
34920 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
34921 | COND_PLATFORM_UNIX_0="" | |
34922 | fi | |
34923 | ||
3af038c0 VS |
34924 | COND_PLATFORM_UNIX_1="#" |
34925 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34926 | COND_PLATFORM_UNIX_1="" | |
34927 | fi | |
34928 | ||
34929 | COND_PLATFORM_WIN32_0="#" | |
34930 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34931 | COND_PLATFORM_WIN32_0="" | |
34932 | fi | |
34933 | ||
34934 | COND_PLATFORM_WIN32_1="#" | |
34935 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34936 | COND_PLATFORM_WIN32_1="" | |
34937 | fi | |
34938 | ||
45842500 VS |
34939 | COND_SHARED_0="#" |
34940 | if test "x$SHARED" = "x0" ; then | |
34941 | COND_SHARED_0="" | |
34942 | fi | |
34943 | ||
250700e4 RD |
34944 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
34945 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
34946 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
34947 | fi | |
34948 | ||
52a5a009 VS |
34949 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
34950 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34951 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
34952 | fi | |
34953 | ||
34954 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
34955 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34956 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
34957 | fi | |
34958 | ||
34959 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
34960 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34961 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
34962 | fi | |
34963 | ||
34964 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
34965 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
34966 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
34967 | fi | |
34968 | ||
34969 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
34970 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34971 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
34972 | fi | |
34973 | ||
34974 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
34975 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34976 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
34977 | fi | |
34978 | ||
34979 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
34980 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34981 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
34982 | fi | |
34983 | ||
45842500 VS |
34984 | COND_SHARED_1="#" |
34985 | if test "x$SHARED" = "x1" ; then | |
34986 | COND_SHARED_1="" | |
34987 | fi | |
34988 | ||
250700e4 RD |
34989 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
34990 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
34991 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
34992 | fi | |
34993 | ||
6f628073 VS |
34994 | COND_TOOLKIT_COCOA="#" |
34995 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34996 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
34997 | fi |
34998 | ||
6f628073 VS |
34999 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
35000 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35001 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35002 | fi |
35003 | ||
6f628073 VS |
35004 | COND_TOOLKIT_GTK="#" |
35005 | if test "x$TOOLKIT" = "xGTK" ; then | |
35006 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
35007 | fi |
35008 | ||
6f628073 VS |
35009 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
35010 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
35011 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
35012 | fi |
35013 | ||
6f628073 VS |
35014 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
35015 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35016 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35017 | fi |
35018 | ||
3af038c0 VS |
35019 | COND_TOOLKIT_MAC="#" |
35020 | if test "x$TOOLKIT" = "xMAC" ; then | |
35021 | COND_TOOLKIT_MAC="" | |
35022 | fi | |
35023 | ||
8772a1a7 VS |
35024 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35025 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35026 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35027 | fi | |
35028 | ||
6f628073 VS |
35029 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35030 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35031 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35032 | fi |
35033 | ||
6f628073 VS |
35034 | COND_TOOLKIT_MGL="#" |
35035 | if test "x$TOOLKIT" = "xMGL" ; then | |
35036 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35037 | fi |
35038 | ||
6f628073 VS |
35039 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35040 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35041 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35042 | fi |
35043 | ||
6f628073 VS |
35044 | COND_TOOLKIT_MOTIF="#" |
35045 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35046 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35047 | fi |
35048 | ||
6f628073 VS |
35049 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35050 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35051 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35052 | fi |
e6cc62c6 | 35053 | |
6f628073 VS |
35054 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35055 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35056 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35057 | fi |
35058 | ||
6f628073 VS |
35059 | COND_TOOLKIT_MSW="#" |
35060 | if test "x$TOOLKIT" = "xMSW" ; then | |
35061 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35062 | fi |
35063 | ||
6f628073 VS |
35064 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35065 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35066 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35067 | fi |
e6cc62c6 | 35068 | |
6f628073 VS |
35069 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35070 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35071 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35072 | fi |
e6cc62c6 | 35073 | |
6f628073 VS |
35074 | COND_TOOLKIT_OS2="#" |
35075 | if test "x$TOOLKIT" = "xOS2" ; then | |
35076 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
35077 | fi |
35078 | ||
8772a1a7 VS |
35079 | COND_TOOLKIT_OS2_USE_GUI_1="#" |
35080 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then | |
35081 | COND_TOOLKIT_OS2_USE_GUI_1="" | |
35082 | fi | |
35083 | ||
6f628073 VS |
35084 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
35085 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35086 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
35087 | fi |
35088 | ||
6f628073 VS |
35089 | COND_TOOLKIT_X11="#" |
35090 | if test "x$TOOLKIT" = "xX11" ; then | |
35091 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35092 | fi |
35093 | ||
6f628073 VS |
35094 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35095 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35096 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35097 | fi |
35098 | ||
3af038c0 VS |
35099 | COND_UNICODE_1="#" |
35100 | if test "x$UNICODE" = "x1" ; then | |
35101 | COND_UNICODE_1="" | |
35102 | fi | |
35103 | ||
35104 | COND_USE_GUI_0="#" | |
35105 | if test "x$USE_GUI" = "x0" ; then | |
35106 | COND_USE_GUI_0="" | |
35107 | fi | |
35108 | ||
35109 | COND_USE_GUI_1="#" | |
35110 | if test "x$USE_GUI" = "x1" ; then | |
35111 | COND_USE_GUI_1="" | |
35112 | fi | |
35113 | ||
e6cc62c6 | 35114 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35115 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35116 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35117 | fi |
e6cc62c6 VS |
35118 | |
35119 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35120 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35121 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35122 | fi |
35123 | ||
66a96744 VS |
35124 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35125 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35126 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35127 | fi | |
35128 | ||
35129 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35130 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35131 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35132 | fi | |
35133 | ||
35134 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35135 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35136 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35137 | fi | |
35138 | ||
6f628073 VS |
35139 | COND_USE_SOSYMLINKS_1="#" |
35140 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35141 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35142 | fi |
35143 | ||
6f628073 VS |
35144 | COND_USE_SOVERLINUX_1="#" |
35145 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35146 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35147 | fi |
35148 | ||
6f628073 VS |
35149 | COND_USE_SOVERSION_0="#" |
35150 | if test "x$USE_SOVERSION" = "x0" ; then | |
35151 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35152 | fi |
fe0895cf | 35153 | |
6f628073 VS |
35154 | COND_USE_SOVERSOLARIS_1="#" |
35155 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35156 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35157 | fi |
fe0895cf | 35158 | |
3af038c0 VS |
35159 | COND_WXUNIV_1="#" |
35160 | if test "x$WXUNIV" = "x1" ; then | |
35161 | COND_WXUNIV_1="" | |
35162 | fi | |
35163 | ||
66a96744 VS |
35164 | COND_WXUSE_EXPAT_BUILTIN="#" |
35165 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35166 | COND_WXUSE_EXPAT_BUILTIN="" | |
35167 | fi | |
35168 | ||
02980527 VS |
35169 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35170 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35171 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35172 | fi | |
35173 | ||
35174 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35175 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35176 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35177 | fi | |
35178 | ||
35179 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35180 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35181 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35182 | fi | |
35183 | ||
35184 | COND_WXUSE_ODBC_BUILTIN="#" | |
35185 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35186 | COND_WXUSE_ODBC_BUILTIN="" | |
35187 | fi | |
35188 | ||
35189 | COND_WXUSE_REGEX_BUILTIN="#" | |
35190 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35191 | COND_WXUSE_REGEX_BUILTIN="" | |
35192 | fi | |
35193 | ||
35194 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35195 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35196 | COND_WXUSE_ZLIB_BUILTIN="" | |
35197 | fi | |
35198 | ||
1772d20c | 35199 | |
fe0895cf | 35200 | |
fe0895cf | 35201 | |
fe0895cf | 35202 | |
45842500 VS |
35203 | if test $GCC_PCH = 1 ; then |
35204 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
35205 | else | |
35206 | case "${host}" in | |
35207 | powerpc-*-darwin* ) | |
35208 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
35209 | ;; | |
45842500 VS |
35210 | esac |
35211 | fi | |
2c6f14e1 VS |
35212 | case "${host}" in |
35213 | powerpc-*-darwin* ) | |
35214 | CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX" | |
35215 | ;; | |
35216 | esac | |
fe0895cf VS |
35217 | |
35218 | ||
fddeb06b | 35219 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35220 | |
35221 | ||
35222 | ||
35223 | ||
35224 | ||
35225 | ||
35226 | ||
35227 | ||
35228 | ||
35229 | ||
35230 | ||
35231 | ||
35232 | ||
35233 | ||
35234 | ||
35235 | ||
35236 | ||
35237 | ||
35238 | ||
35239 | ||
35240 | ||
35241 | ||
35242 | ||
35243 | ||
35244 | ||
35245 | ||
35246 | ||
35247 | ||
35248 | ||
35249 | ||
35250 | ||
35251 | ||
35252 | ||
35253 | ||
35254 | ||
35255 | ||
35256 | ||
35257 | ||
35258 | ||
35259 | ||
35260 | ||
35261 | ||
35262 | ||
35263 | ||
35264 | ||
35265 | ||
35266 | ||
35267 | ||
35268 | ||
35269 | ||
35270 | ||
35271 | ||
35272 | ||
35273 | ||
35274 | ||
35275 | ||
35276 | ||
35277 | ||
35278 | ||
35279 | ||
35280 | ||
35281 | ||
35282 | ||
35283 | ||
35284 | ||
35285 | ||
35286 | ||
35287 | ||
35288 | ||
35289 | ||
35290 | ||
35291 | ||
35292 | ||
35293 | ||
35294 | ||
35295 | ||
35296 | ||
35297 | ||
35298 | ||
35299 | ||
35300 | ||
35301 | ||
35302 | ||
35303 | ||
35304 | ||
35305 | ||
35306 | ||
35307 | ||
35308 | ||
35309 | ||
35310 | ||
35311 | ||
35312 | ||
35313 | ||
fe0895cf | 35314 | |
f0290fca VS |
35315 | |
35316 | ||
67c13b6c | 35317 | |
e6cc62c6 VS |
35318 | |
35319 | ||
35320 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35321 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35322 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
35323 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
35324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35325 | else | |
35326 | cat >conftest.make <<\_ACEOF | |
35327 | all: | |
35328 | @echo 'ac_maketemp="$(MAKE)"' | |
35329 | _ACEOF | |
35330 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35331 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35332 | if test -n "$ac_maketemp"; then | |
35333 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35334 | else | |
35335 | eval ac_cv_prog_make_${ac_make}_set=no | |
35336 | fi | |
35337 | rm -f conftest.make | |
35338 | fi | |
35339 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35340 | echo "$as_me:$LINENO: result: yes" >&5 | |
35341 | echo "${ECHO_T}yes" >&6 | |
35342 | SET_MAKE= | |
35343 | else | |
35344 | echo "$as_me:$LINENO: result: no" >&5 | |
35345 | echo "${ECHO_T}no" >&6 | |
35346 | SET_MAKE="MAKE=${MAKE-make}" | |
35347 | fi | |
35348 | ||
35349 | ||
35350 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
35351 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
35352 | fi | |
35353 | ||
35354 | ac_config_headers="$ac_config_headers setup.h" | |
35355 | ||
35356 | ||
81345eef | 35357 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
35358 | |
35359 | ||
35360 | ac_config_commands="$ac_config_commands default" | |
35361 | ||
35362 | ||
9de9b8f0 | 35363 | |
6c3e36af VZ |
35364 | if test "$wxUSE_GUI" = "yes"; then |
35365 | SUBDIRS="samples demos utils contrib" | |
35366 | else SUBDIRS="samples utils" | |
35367 | fi | |
e6cc62c6 | 35368 | |
166263e6 | 35369 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 35370 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 35371 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 35372 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
35373 | makefiles="samples/Makefile.in $makefiles" |
35374 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
35375 | if test -d $srcdir/samples/$sample; then |
35376 | makefiles="samples/$sample/Makefile.in $makefiles" | |
35377 | fi | |
35378 | done | |
35379 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
35380 | fi | |
6c3e36af | 35381 | else if test ${subdir} = "samples"; then |
8772a1a7 | 35382 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af VZ |
35383 | else makefiles="utils/HelpGen/Makefile.in \ |
35384 | utils/HelpGen/src/Makefile.in \ | |
35385 | utils/makegen/Makefile.in" | |
35386 | fi | |
35387 | fi | |
35388 | ||
9747f85d VS |
35389 | for mkin in $makefiles ; do |
35390 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
35391 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 35392 | |
9747f85d VS |
35393 | done |
35394 | fi | |
35395 | done | |
e6cc62c6 | 35396 | |
9de9b8f0 | 35397 | |
e6cc62c6 VS |
35398 | cat >confcache <<\_ACEOF |
35399 | # This file is a shell script that caches the results of configure | |
35400 | # tests run on this system so they can be shared between configure | |
35401 | # scripts and configure runs, see configure's option --config-cache. | |
35402 | # It is not useful on other systems. If it contains results you don't | |
35403 | # want to keep, you may remove or edit it. | |
35404 | # | |
35405 | # config.status only pays attention to the cache file if you give it | |
35406 | # the --recheck option to rerun configure. | |
35407 | # | |
35408 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35409 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35410 | # following values. | |
35411 | ||
35412 | _ACEOF | |
35413 | ||
35414 | # The following way of writing the cache mishandles newlines in values, | |
35415 | # but we know of no workaround that is simple, portable, and efficient. | |
35416 | # So, don't put newlines in cache variables' values. | |
35417 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35418 | # and sets the high bit in the cache file unless we assign to the vars. | |
35419 | { | |
35420 | (set) 2>&1 | | |
35421 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35422 | *ac_space=\ *) | |
35423 | # `set' does not quote correctly, so add quotes (double-quote | |
35424 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35425 | sed -n \ | |
35426 | "s/'/'\\\\''/g; | |
35427 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
35428 | ;; | |
35429 | *) | |
35430 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35431 | sed -n \ | |
35432 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
35433 | ;; | |
35434 | esac; | |
35435 | } | | |
35436 | sed ' | |
35437 | t clear | |
35438 | : clear | |
35439 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35440 | t end | |
35441 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35442 | : end' >>confcache | |
35443 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35444 | if test -w $cache_file; then | |
35445 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35446 | cat confcache >$cache_file | |
35447 | else | |
35448 | echo "not updating unwritable cache $cache_file" | |
35449 | fi | |
35450 | fi | |
35451 | rm -f confcache | |
35452 | ||
35453 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
35454 | # Let make expand exec_prefix. | |
35455 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
35456 | ||
35457 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
35458 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
35459 | # trailing colons and then remove the whole line if VPATH becomes empty | |
35460 | # (actually we leave an empty line to preserve line numbers). | |
35461 | if test "x$srcdir" = x.; then | |
35462 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
35463 | s/:*\$(srcdir):*/:/; | |
35464 | s/:*\${srcdir}:*/:/; | |
35465 | s/:*@srcdir@:*/:/; | |
35466 | s/^\([^=]*=[ ]*\):*/\1/; | |
35467 | s/:*$//; | |
35468 | s/^[^=]*=[ ]*$//; | |
35469 | }' | |
35470 | fi | |
35471 | ||
35472 | DEFS=-DHAVE_CONFIG_H | |
35473 | ||
35474 | ac_libobjs= | |
35475 | ac_ltlibobjs= | |
35476 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
35477 | # 1. Remove the extension, and $U if already installed. | |
35478 | ac_i=`echo "$ac_i" | | |
35479 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
35480 | # 2. Add them. | |
35481 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
35482 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
35483 | done | |
35484 | LIBOBJS=$ac_libobjs | |
35485 | ||
35486 | LTLIBOBJS=$ac_ltlibobjs | |
35487 | ||
35488 | ||
35489 | ||
35490 | : ${CONFIG_STATUS=./config.status} | |
35491 | ac_clean_files_save=$ac_clean_files | |
35492 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
35493 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
35494 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
35495 | cat >$CONFIG_STATUS <<_ACEOF | |
35496 | #! $SHELL | |
35497 | # Generated by $as_me. | |
35498 | # Run this file to recreate the current configuration. | |
35499 | # Compiler output produced by configure, useful for debugging | |
35500 | # configure, is in config.log if it exists. | |
35501 | ||
35502 | debug=false | |
35503 | ac_cs_recheck=false | |
35504 | ac_cs_silent=false | |
35505 | SHELL=\${CONFIG_SHELL-$SHELL} | |
35506 | _ACEOF | |
35507 | ||
35508 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35509 | ## --------------------- ## | |
35510 | ## M4sh Initialization. ## | |
35511 | ## --------------------- ## | |
35512 | ||
35513 | # Be Bourne compatible | |
35514 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35515 | emulate sh | |
35516 | NULLCMD=: | |
35517 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35518 | # is contrary to our usage. Disable this feature. | |
35519 | alias -g '${1+"$@"}'='"$@"' | |
35520 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
35521 | set -o posix | |
35522 | fi | |
35523 | ||
35524 | # Support unset when possible. | |
35525 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
35526 | as_unset=unset | |
35527 | else | |
35528 | as_unset=false | |
35529 | fi | |
35530 | ||
35531 | ||
35532 | # Work around bugs in pre-3.0 UWIN ksh. | |
35533 | $as_unset ENV MAIL MAILPATH | |
35534 | PS1='$ ' | |
35535 | PS2='> ' | |
35536 | PS4='+ ' | |
35537 | ||
35538 | # NLS nuisances. | |
35539 | for as_var in \ | |
35540 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
35541 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
35542 | LC_TELEPHONE LC_TIME | |
35543 | do | |
35544 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
35545 | eval $as_var=C; export $as_var | |
35546 | else | |
35547 | $as_unset $as_var | |
35548 | fi | |
35549 | done | |
35550 | ||
35551 | # Required to use basename. | |
35552 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35553 | as_expr=expr | |
35554 | else | |
35555 | as_expr=false | |
35556 | fi | |
35557 | ||
35558 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
35559 | as_basename=basename | |
35560 | else | |
35561 | as_basename=false | |
35562 | fi | |
35563 | ||
35564 | ||
35565 | # Name of the executable. | |
35566 | as_me=`$as_basename "$0" || | |
35567 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
35568 | X"$0" : 'X\(//\)$' \| \ | |
35569 | X"$0" : 'X\(/\)$' \| \ | |
35570 | . : '\(.\)' 2>/dev/null || | |
35571 | echo X/"$0" | | |
35572 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
35573 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
35574 | /^X\/\(\/\).*/{ s//\1/; q; } | |
35575 | s/.*/./; q'` | |
35576 | ||
35577 | ||
35578 | # PATH needs CR, and LINENO needs CR and PATH. | |
35579 | # Avoid depending upon Character Ranges. | |
35580 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35581 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35582 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35583 | as_cr_digits='0123456789' | |
35584 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35585 | ||
35586 | # The user is always right. | |
35587 | if test "${PATH_SEPARATOR+set}" != set; then | |
35588 | echo "#! /bin/sh" >conf$$.sh | |
35589 | echo "exit 0" >>conf$$.sh | |
35590 | chmod +x conf$$.sh | |
35591 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
35592 | PATH_SEPARATOR=';' | |
35593 | else | |
35594 | PATH_SEPARATOR=: | |
35595 | fi | |
35596 | rm -f conf$$.sh | |
35597 | fi | |
35598 | ||
35599 | ||
35600 | as_lineno_1=$LINENO | |
35601 | as_lineno_2=$LINENO | |
35602 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35603 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35604 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
35605 | # Find who we are. Look in the path if we contain no path at all | |
35606 | # relative or not. | |
35607 | case $0 in | |
35608 | *[\\/]* ) as_myself=$0 ;; | |
35609 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35610 | for as_dir in $PATH | |
35611 | do | |
35612 | IFS=$as_save_IFS | |
35613 | test -z "$as_dir" && as_dir=. | |
35614 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
35615 | done | |
35616 | ||
35617 | ;; | |
35618 | esac | |
35619 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
35620 | # in which case we are not to be found in the path. | |
35621 | if test "x$as_myself" = x; then | |
35622 | as_myself=$0 | |
35623 | fi | |
35624 | if test ! -f "$as_myself"; then | |
35625 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
35626 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
35627 | { (exit 1); exit 1; }; } | |
35628 | fi | |
35629 | case $CONFIG_SHELL in | |
35630 | '') | |
35631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35632 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
35633 | do | |
35634 | IFS=$as_save_IFS | |
35635 | test -z "$as_dir" && as_dir=. | |
35636 | for as_base in sh bash ksh sh5; do | |
35637 | case $as_dir in | |
35638 | /*) | |
35639 | if ("$as_dir/$as_base" -c ' | |
35640 | as_lineno_1=$LINENO | |
35641 | as_lineno_2=$LINENO | |
35642 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35643 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35644 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
35645 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
35646 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
35647 | CONFIG_SHELL=$as_dir/$as_base | |
35648 | export CONFIG_SHELL | |
35649 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
35650 | fi;; | |
35651 | esac | |
35652 | done | |
35653 | done | |
35654 | ;; | |
35655 | esac | |
35656 | ||
35657 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35658 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35659 | # line-number line before each line; the second 'sed' does the real | |
35660 | # work. The second script uses 'N' to pair each line-number line | |
35661 | # with the numbered line, and appends trailing '-' during | |
35662 | # substitution so that $LINENO is not a special case at line end. | |
35663 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35664 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35665 | sed '=' <$as_myself | | |
35666 | sed ' | |
35667 | N | |
35668 | s,$,-, | |
35669 | : loop | |
35670 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35671 | t loop | |
35672 | s,-$,, | |
35673 | s,^['$as_cr_digits']*\n,, | |
35674 | ' >$as_me.lineno && | |
35675 | chmod +x $as_me.lineno || | |
35676 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35677 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35678 | { (exit 1); exit 1; }; } | |
35679 | ||
35680 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35681 | # (the dirname of $[0] is not the place where we might find the | |
35682 | # original and so on. Autoconf is especially sensible to this). | |
35683 | . ./$as_me.lineno | |
35684 | # Exit status is that of the last command. | |
35685 | exit | |
35686 | } | |
35687 | ||
35688 | ||
35689 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35690 | *c*,-n*) ECHO_N= ECHO_C=' | |
35691 | ' ECHO_T=' ' ;; | |
35692 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35693 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35694 | esac | |
35695 | ||
35696 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35697 | as_expr=expr | |
35698 | else | |
35699 | as_expr=false | |
35700 | fi | |
35701 | ||
35702 | rm -f conf$$ conf$$.exe conf$$.file | |
35703 | echo >conf$$.file | |
35704 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35705 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35706 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35707 | if test -f conf$$.exe; then | |
35708 | # Don't use ln at all; we don't have any links | |
35709 | as_ln_s='cp -p' | |
35710 | else | |
35711 | as_ln_s='ln -s' | |
35712 | fi | |
35713 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35714 | as_ln_s=ln | |
35715 | else | |
35716 | as_ln_s='cp -p' | |
35717 | fi | |
35718 | rm -f conf$$ conf$$.exe conf$$.file | |
35719 | ||
35720 | if mkdir -p . 2>/dev/null; then | |
35721 | as_mkdir_p=: | |
35722 | else | |
35723 | as_mkdir_p=false | |
35724 | fi | |
35725 | ||
35726 | as_executable_p="test -f" | |
35727 | ||
35728 | # Sed expression to map a string onto a valid CPP name. | |
35729 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35730 | ||
35731 | # Sed expression to map a string onto a valid variable name. | |
35732 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35733 | ||
35734 | ||
35735 | # IFS | |
35736 | # We need space, tab and new line, in precisely that order. | |
35737 | as_nl=' | |
35738 | ' | |
35739 | IFS=" $as_nl" | |
35740 | ||
35741 | # CDPATH. | |
35742 | $as_unset CDPATH | |
35743 | ||
35744 | exec 6>&1 | |
35745 | ||
35746 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35747 | # report actual input values of CONFIG_FILES etc. instead of their | |
35748 | # values after options handling. Logging --version etc. is OK. | |
35749 | exec 5>>config.log | |
35750 | { | |
35751 | echo | |
35752 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35753 | ## Running $as_me. ## | |
35754 | _ASBOX | |
35755 | } >&5 | |
35756 | cat >&5 <<_CSEOF | |
35757 | ||
35758 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35759 | generated by GNU Autoconf 2.57. Invocation command line was | |
35760 | ||
35761 | CONFIG_FILES = $CONFIG_FILES | |
35762 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35763 | CONFIG_LINKS = $CONFIG_LINKS | |
35764 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35765 | $ $0 $@ | |
35766 | ||
35767 | _CSEOF | |
35768 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35769 | echo >&5 | |
35770 | _ACEOF | |
35771 | ||
35772 | # Files that config.status was made for. | |
35773 | if test -n "$ac_config_files"; then | |
35774 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35775 | fi | |
35776 | ||
35777 | if test -n "$ac_config_headers"; then | |
35778 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35779 | fi | |
35780 | ||
35781 | if test -n "$ac_config_links"; then | |
35782 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35783 | fi | |
35784 | ||
35785 | if test -n "$ac_config_commands"; then | |
35786 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35787 | fi | |
35788 | ||
35789 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35790 | ||
35791 | ac_cs_usage="\ | |
35792 | \`$as_me' instantiates files from templates according to the | |
35793 | current configuration. | |
35794 | ||
35795 | Usage: $0 [OPTIONS] [FILE]... | |
35796 | ||
35797 | -h, --help print this help, then exit | |
35798 | -V, --version print version number, then exit | |
35799 | -q, --quiet do not print progress messages | |
35800 | -d, --debug don't remove temporary files | |
35801 | --recheck update $as_me by reconfiguring in the same conditions | |
35802 | --file=FILE[:TEMPLATE] | |
35803 | instantiate the configuration file FILE | |
35804 | --header=FILE[:TEMPLATE] | |
35805 | instantiate the configuration header FILE | |
35806 | ||
35807 | Configuration files: | |
35808 | $config_files | |
35809 | ||
35810 | Configuration headers: | |
35811 | $config_headers | |
35812 | ||
35813 | Configuration commands: | |
35814 | $config_commands | |
35815 | ||
35816 | Report bugs to <bug-autoconf@gnu.org>." | |
35817 | _ACEOF | |
35818 | ||
35819 | cat >>$CONFIG_STATUS <<_ACEOF | |
35820 | ac_cs_version="\\ | |
35821 | wxWindows config.status 2.5.0 | |
35822 | configured by $0, generated by GNU Autoconf 2.57, | |
35823 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35824 | ||
35825 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35826 | Free Software Foundation, Inc. | |
35827 | This config.status script is free software; the Free Software Foundation | |
35828 | gives unlimited permission to copy, distribute and modify it." | |
35829 | srcdir=$srcdir | |
35830 | INSTALL="$INSTALL" | |
35831 | _ACEOF | |
35832 | ||
35833 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35834 | # If no file are specified by the user, then we need to provide default | |
35835 | # value. By we need to know if files were specified by the user. | |
35836 | ac_need_defaults=: | |
35837 | while test $# != 0 | |
35838 | do | |
35839 | case $1 in | |
35840 | --*=*) | |
35841 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35842 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35843 | ac_shift=: | |
35844 | ;; | |
35845 | -*) | |
35846 | ac_option=$1 | |
35847 | ac_optarg=$2 | |
35848 | ac_shift=shift | |
35849 | ;; | |
35850 | *) # This is not an option, so the user has probably given explicit | |
35851 | # arguments. | |
35852 | ac_option=$1 | |
35853 | ac_need_defaults=false;; | |
35854 | esac | |
35855 | ||
35856 | case $ac_option in | |
35857 | # Handling of the options. | |
35858 | _ACEOF | |
35859 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35860 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35861 | ac_cs_recheck=: ;; | |
35862 | --version | --vers* | -V ) | |
35863 | echo "$ac_cs_version"; exit 0 ;; | |
35864 | --he | --h) | |
35865 | # Conflict between --help and --header | |
35866 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35867 | Try \`$0 --help' for more information." >&5 | |
35868 | echo "$as_me: error: ambiguous option: $1 | |
35869 | Try \`$0 --help' for more information." >&2;} | |
35870 | { (exit 1); exit 1; }; };; | |
35871 | --help | --hel | -h ) | |
35872 | echo "$ac_cs_usage"; exit 0 ;; | |
35873 | --debug | --d* | -d ) | |
35874 | debug=: ;; | |
35875 | --file | --fil | --fi | --f ) | |
35876 | $ac_shift | |
35877 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35878 | ac_need_defaults=false;; | |
35879 | --header | --heade | --head | --hea ) | |
35880 | $ac_shift | |
35881 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35882 | ac_need_defaults=false;; | |
35883 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35884 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35885 | ac_cs_silent=: ;; | |
35886 | ||
35887 | # This is an error. | |
35888 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35889 | Try \`$0 --help' for more information." >&5 | |
35890 | echo "$as_me: error: unrecognized option: $1 | |
35891 | Try \`$0 --help' for more information." >&2;} | |
35892 | { (exit 1); exit 1; }; } ;; | |
35893 | ||
35894 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35895 | ||
35896 | esac | |
35897 | shift | |
35898 | done | |
35899 | ||
35900 | ac_configure_extra_args= | |
35901 | ||
35902 | if $ac_cs_silent; then | |
35903 | exec 6>/dev/null | |
35904 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35905 | fi |
35906 | ||
e6cc62c6 VS |
35907 | _ACEOF |
35908 | cat >>$CONFIG_STATUS <<_ACEOF | |
35909 | if \$ac_cs_recheck; then | |
35910 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35911 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35912 | fi |
35913 | ||
e6cc62c6 | 35914 | _ACEOF |
fe0895cf | 35915 | |
e6cc62c6 | 35916 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35917 | # |
e6cc62c6 | 35918 | # INIT-COMMANDS section. |
10f2d63a | 35919 | # |
10f2d63a | 35920 | |
a0b9e27f | 35921 | |
e6cc62c6 VS |
35922 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35923 | LN_S="${LN_S}" | |
10f2d63a | 35924 | |
10f2d63a | 35925 | |
10f2d63a | 35926 | |
e6cc62c6 | 35927 | _ACEOF |
8284b0c5 | 35928 | |
52127426 | 35929 | |
247f5006 | 35930 | |
e6cc62c6 VS |
35931 | cat >>$CONFIG_STATUS <<\_ACEOF |
35932 | for ac_config_target in $ac_config_targets | |
247f5006 | 35933 | do |
e6cc62c6 VS |
35934 | case "$ac_config_target" in |
35935 | # Handling of arguments. | |
81345eef VZ |
35936 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
35937 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35938 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 35939 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
35940 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
35941 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35942 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35943 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35944 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
35945 | esac |
35946 | done | |
35947 | ||
e6cc62c6 VS |
35948 | # If the user did not use the arguments to specify the items to instantiate, |
35949 | # then the envvar interface is used. Set only those that are not. | |
35950 | # We use the long form for the default assignment because of an extremely | |
35951 | # bizarre bug on SunOS 4.1.3. | |
35952 | if $ac_need_defaults; then | |
35953 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35954 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35955 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35956 | fi | |
35957 | ||
35958 | # Have a temporary directory for convenience. Make it in the build tree | |
35959 | # simply because there is no reason to put it here, and in addition, | |
35960 | # creating and moving files from /tmp can sometimes cause problems. | |
35961 | # Create a temporary directory, and hook for its removal unless debugging. | |
35962 | $debug || | |
35963 | { | |
35964 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35965 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35966 | } | |
247f5006 | 35967 | |
e6cc62c6 | 35968 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 35969 | |
e6cc62c6 VS |
35970 | { |
35971 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35972 | test -n "$tmp" && test -d "$tmp" | |
35973 | } || | |
35974 | { | |
35975 | tmp=./confstat$$-$RANDOM | |
35976 | (umask 077 && mkdir $tmp) | |
35977 | } || | |
35978 | { | |
35979 | echo "$me: cannot create a temporary directory in ." >&2 | |
35980 | { (exit 1); exit 1; } | |
35981 | } | |
35982 | ||
35983 | _ACEOF | |
35984 | ||
35985 | cat >>$CONFIG_STATUS <<_ACEOF | |
35986 | ||
35987 | # | |
35988 | # CONFIG_FILES section. | |
35989 | # | |
247f5006 | 35990 | |
e6cc62c6 VS |
35991 | # No need to generate the scripts if there are no CONFIG_FILES. |
35992 | # This happens for instance when ./config.status config.h | |
35993 | if test -n "\$CONFIG_FILES"; then | |
35994 | # Protect against being on the right side of a sed subst in config.status. | |
35995 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35996 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35997 | s,@SHELL@,$SHELL,;t t | |
35998 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35999 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
36000 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
36001 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
36002 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
36003 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
36004 | s,@exec_prefix@,$exec_prefix,;t t | |
36005 | s,@prefix@,$prefix,;t t | |
36006 | s,@program_transform_name@,$program_transform_name,;t t | |
36007 | s,@bindir@,$bindir,;t t | |
36008 | s,@sbindir@,$sbindir,;t t | |
36009 | s,@libexecdir@,$libexecdir,;t t | |
36010 | s,@datadir@,$datadir,;t t | |
36011 | s,@sysconfdir@,$sysconfdir,;t t | |
36012 | s,@sharedstatedir@,$sharedstatedir,;t t | |
36013 | s,@localstatedir@,$localstatedir,;t t | |
36014 | s,@libdir@,$libdir,;t t | |
36015 | s,@includedir@,$includedir,;t t | |
36016 | s,@oldincludedir@,$oldincludedir,;t t | |
36017 | s,@infodir@,$infodir,;t t | |
36018 | s,@mandir@,$mandir,;t t | |
36019 | s,@build_alias@,$build_alias,;t t | |
36020 | s,@host_alias@,$host_alias,;t t | |
36021 | s,@target_alias@,$target_alias,;t t | |
36022 | s,@DEFS@,$DEFS,;t t | |
36023 | s,@ECHO_C@,$ECHO_C,;t t | |
36024 | s,@ECHO_N@,$ECHO_N,;t t | |
36025 | s,@ECHO_T@,$ECHO_T,;t t | |
36026 | s,@LIBS@,$LIBS,;t t | |
36027 | s,@build@,$build,;t t | |
36028 | s,@build_cpu@,$build_cpu,;t t | |
36029 | s,@build_vendor@,$build_vendor,;t t | |
36030 | s,@build_os@,$build_os,;t t | |
36031 | s,@host@,$host,;t t | |
36032 | s,@host_cpu@,$host_cpu,;t t | |
36033 | s,@host_vendor@,$host_vendor,;t t | |
36034 | s,@host_os@,$host_os,;t t | |
36035 | s,@target@,$target,;t t | |
36036 | s,@target_cpu@,$target_cpu,;t t | |
36037 | s,@target_vendor@,$target_vendor,;t t | |
36038 | s,@target_os@,$target_os,;t t | |
36039 | s,@CC@,$CC,;t t | |
36040 | s,@CFLAGS@,$CFLAGS,;t t | |
36041 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36042 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36043 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36044 | s,@EXEEXT@,$EXEEXT,;t t | |
36045 | s,@OBJEXT@,$OBJEXT,;t t | |
36046 | s,@CPP@,$CPP,;t t | |
36047 | s,@EGREP@,$EGREP,;t t | |
36048 | s,@CXX@,$CXX,;t t | |
36049 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36050 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36051 | s,@RANLIB@,$RANLIB,;t t | |
36052 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36053 | s,@AR@,$AR,;t t | |
36054 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36055 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36056 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36057 | s,@STRIP@,$STRIP,;t t | |
36058 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
36059 | s,@LN_S@,$LN_S,;t t |
36060 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36061 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36062 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36063 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36064 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36065 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36066 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36067 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36068 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36069 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36070 | s,@X_LIBS@,$X_LIBS,;t t | |
36071 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36072 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36073 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36074 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36075 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36076 | s,@RESCOMP@,$RESCOMP,;t t |
36077 | s,@DEREZ@,$DEREZ,;t t | |
36078 | s,@SETFILE@,$SETFILE,;t t | |
36079 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36080 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36081 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36082 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36083 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36084 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36085 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36086 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36087 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36088 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36089 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36090 | s,@VENDOR@,$VENDOR,;t t |
36091 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36092 | s,@WXUNIV@,$WXUNIV,;t t |
36093 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36094 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36095 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
bb41dcbe | 36096 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36097 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36098 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36099 | s,@UNICODE@,$UNICODE,;t t |
36100 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36101 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36102 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36103 | s,@SHARED@,$SHARED,;t t |
36104 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36105 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36106 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 36107 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 36108 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36109 | s,@SET_MAKE@,$SET_MAKE,;t t |
36110 | s,@MAKE_SET@,$MAKE_SET,;t t | |
36111 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 36112 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36113 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36114 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36115 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36116 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36117 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
36118 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
131f235d | 36119 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
e6cc62c6 | 36120 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36121 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36122 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36123 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36124 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36125 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36126 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36127 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36128 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36129 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36130 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36131 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36132 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36133 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36134 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 36135 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 36136 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36137 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36138 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36139 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36140 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36141 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36142 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36143 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36144 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36145 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 36146 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 36147 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36148 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36149 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 36150 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
250700e4 | 36151 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 36152 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 36153 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36154 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 36155 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t |
250700e4 | 36156 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 36157 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
3af038c0 | 36158 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36159 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36160 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36161 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36162 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36163 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36164 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36165 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36166 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36167 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
8ee2dd05 | 36168 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 36169 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
8772a1a7 | 36170 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 VS |
36171 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
36172 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
36173 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 36174 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 36175 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
36176 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36177 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36178 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
36179 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
36180 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
36181 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
36182 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 36183 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 36184 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
36185 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36186 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36187 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36188 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 36189 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 36190 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 36191 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
36192 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36193 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36194 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
36195 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
36196 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36197 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36198 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36199 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36200 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 | 36201 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
8772a1a7 | 36202 | s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t |
6f628073 VS |
36203 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t |
36204 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
36205 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 VS |
36206 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
36207 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
36208 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36209 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36210 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36211 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36212 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36213 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
6f628073 VS |
36214 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36215 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36216 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36217 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36218 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36219 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36220 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36221 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36222 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36223 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36224 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36225 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
36226 | s,@PATH_IFS@,$PATH_IFS,;t t |
36227 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36228 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36229 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36230 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36231 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36232 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36233 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36234 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36235 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36236 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36237 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36238 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36239 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36240 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36241 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36242 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36243 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36244 | s,@WX_ALL@,$WX_ALL,;t t | |
36245 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36246 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36247 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36248 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36249 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36250 | s,@USE_GUI@,$USE_GUI,;t t | |
36251 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36252 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36253 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36254 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36255 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36256 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36257 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36258 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36259 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36260 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36261 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36262 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36263 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36264 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36265 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36266 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36267 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 36268 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 36269 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
36270 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36271 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36272 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36273 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36274 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36275 | s,@GUIDIST@,$GUIDIST,;t t | |
36276 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36277 | s,@DISTDIR@,$DISTDIR,;t t | |
36278 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36279 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36280 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36281 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36282 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36283 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36284 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36285 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36286 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36287 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36288 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
36289 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
36290 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
36291 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36292 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36293 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36294 | s,@GCC@,$GCC,;t t | |
36295 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36296 | s,@AS@,$AS,;t t | |
36297 | s,@NM@,$NM,;t t | |
36298 | s,@LD@,$LD,;t t | |
36299 | s,@MAKEINFO@,$MAKEINFO,;t t | |
36300 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
36301 | s,@LIBOBJS@,$LIBOBJS,;t t |
36302 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
36303 | CEOF |
36304 | ||
e6cc62c6 VS |
36305 | _ACEOF |
36306 | ||
36307 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36308 | # Split the substitutions into bite-sized pieces for seds with | |
36309 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
36310 | ac_max_sed_lines=48 | |
36311 | ac_sed_frag=1 # Number of current file. | |
36312 | ac_beg=1 # First line for current file. | |
36313 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
36314 | ac_more_lines=: | |
36315 | ac_sed_cmds= | |
36316 | while $ac_more_lines; do | |
36317 | if test $ac_beg -gt 1; then | |
36318 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 36319 | else |
e6cc62c6 VS |
36320 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
36321 | fi | |
36322 | if test ! -s $tmp/subs.frag; then | |
36323 | ac_more_lines=false | |
36324 | else | |
36325 | # The purpose of the label and of the branching condition is to | |
36326 | # speed up the sed processing (if there are no `@' at all, there | |
36327 | # is no need to browse any of the substitutions). | |
36328 | # These are the two extra sed commands mentioned above. | |
36329 | (echo ':t | |
36330 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
36331 | if test -z "$ac_sed_cmds"; then | |
36332 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
36333 | else | |
36334 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
36335 | fi | |
36336 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
36337 | ac_beg=$ac_end | |
36338 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 36339 | fi |
e6cc62c6 VS |
36340 | done |
36341 | if test -z "$ac_sed_cmds"; then | |
36342 | ac_sed_cmds=cat | |
10f2d63a | 36343 | fi |
e6cc62c6 | 36344 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 36345 | |
e6cc62c6 VS |
36346 | _ACEOF |
36347 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36348 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 36349 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36350 | case $ac_file in |
36351 | - | *:- | *:-:* ) # input from stdin | |
36352 | cat >$tmp/stdin | |
36353 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36354 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36355 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36356 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36357 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 36358 | esac |
247f5006 | 36359 | |
e6cc62c6 VS |
36360 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
36361 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36362 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36363 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36364 | X"$ac_file" : 'X\(//\)$' \| \ | |
36365 | X"$ac_file" : 'X\(/\)' \| \ | |
36366 | . : '\(.\)' 2>/dev/null || | |
36367 | echo X"$ac_file" | | |
36368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36369 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36370 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36371 | /^X\(\/\).*/{ s//\1/; q; } | |
36372 | s/.*/./; q'` | |
36373 | { if $as_mkdir_p; then | |
36374 | mkdir -p "$ac_dir" | |
a0b9e27f | 36375 | else |
e6cc62c6 VS |
36376 | as_dir="$ac_dir" |
36377 | as_dirs= | |
36378 | while test ! -d "$as_dir"; do | |
36379 | as_dirs="$as_dir $as_dirs" | |
36380 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36381 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36382 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36383 | X"$as_dir" : 'X\(//\)$' \| \ | |
36384 | X"$as_dir" : 'X\(/\)' \| \ | |
36385 | . : '\(.\)' 2>/dev/null || | |
36386 | echo X"$as_dir" | | |
36387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36388 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36389 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36390 | /^X\(\/\).*/{ s//\1/; q; } | |
36391 | s/.*/./; q'` | |
36392 | done | |
36393 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36394 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36395 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36396 | { (exit 1); exit 1; }; }; } | |
36397 | ||
36398 | ac_builddir=. | |
36399 | ||
36400 | if test "$ac_dir" != .; then | |
36401 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36402 | # A "../" for each directory in $ac_dir_suffix. | |
36403 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36404 | else | |
36405 | ac_dir_suffix= ac_top_builddir= | |
36406 | fi | |
247f5006 | 36407 | |
e6cc62c6 VS |
36408 | case $srcdir in |
36409 | .) # No --srcdir option. We are building in place. | |
36410 | ac_srcdir=. | |
36411 | if test -z "$ac_top_builddir"; then | |
36412 | ac_top_srcdir=. | |
36413 | else | |
36414 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36415 | fi ;; | |
36416 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36417 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36418 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 36419 | *) # Relative path. |
e6cc62c6 VS |
36420 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
36421 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36422 | esac | |
36423 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36424 | # absolute. | |
36425 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36426 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36427 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36428 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 36429 | |
247f5006 | 36430 | |
e6cc62c6 VS |
36431 | case $INSTALL in |
36432 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
36433 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 36434 | esac |
247f5006 | 36435 | |
e6cc62c6 VS |
36436 | if test x"$ac_file" != x-; then |
36437 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
36438 | echo "$as_me: creating $ac_file" >&6;} | |
36439 | rm -f "$ac_file" | |
36440 | fi | |
36441 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36442 | # use $as_me), people would be surprised to read: | |
36443 | # /* config.h. Generated by config.status. */ | |
36444 | if test x"$ac_file" = x-; then | |
36445 | configure_input= | |
36446 | else | |
36447 | configure_input="$ac_file. " | |
36448 | fi | |
36449 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
36450 | sed 's,.*/,,'` by configure." | |
36451 | ||
36452 | # First look for the input files in the build tree, otherwise in the | |
36453 | # src tree. | |
36454 | ac_file_inputs=`IFS=: | |
36455 | for f in $ac_file_in; do | |
36456 | case $f in | |
36457 | -) echo $tmp/stdin ;; | |
36458 | [\\/$]*) | |
36459 | # Absolute (can't be DOS-style, as IFS=:) | |
36460 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36461 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36462 | { (exit 1); exit 1; }; } | |
36463 | echo $f;; | |
36464 | *) # Relative | |
36465 | if test -f "$f"; then | |
36466 | # Build tree | |
36467 | echo $f | |
36468 | elif test -f "$srcdir/$f"; then | |
36469 | # Source tree | |
36470 | echo $srcdir/$f | |
36471 | else | |
36472 | # /dev/null tree | |
36473 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36474 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36475 | { (exit 1); exit 1; }; } | |
36476 | fi;; | |
36477 | esac | |
36478 | done` || { (exit 1); exit 1; } | |
36479 | _ACEOF | |
36480 | cat >>$CONFIG_STATUS <<_ACEOF | |
36481 | sed "$ac_vpsub | |
36482 | $extrasub | |
36483 | _ACEOF | |
36484 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36485 | :t | |
36486 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
36487 | s,@configure_input@,$configure_input,;t t | |
36488 | s,@srcdir@,$ac_srcdir,;t t | |
36489 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
36490 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
36491 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
36492 | s,@builddir@,$ac_builddir,;t t | |
36493 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
36494 | s,@top_builddir@,$ac_top_builddir,;t t | |
36495 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
36496 | s,@INSTALL@,$ac_INSTALL,;t t | |
36497 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
36498 | rm -f $tmp/stdin | |
36499 | if test x"$ac_file" != x-; then | |
36500 | mv $tmp/out $ac_file | |
36501 | else | |
36502 | cat $tmp/out | |
36503 | rm -f $tmp/out | |
36504 | fi | |
36505 | ||
36506 | done | |
36507 | _ACEOF | |
36508 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36509 | ||
36510 | # | |
36511 | # CONFIG_HEADER section. | |
36512 | # | |
10f2d63a VZ |
36513 | |
36514 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
36515 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
36516 | # | |
36517 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
36518 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
36519 | ac_dB='[ ].*$,\1#\2' | |
36520 | ac_dC=' ' | |
36521 | ac_dD=',;t' | |
36522 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
36523 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
36524 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 36525 | ac_uC=' ' |
e6cc62c6 VS |
36526 | ac_uD=',;t' |
36527 | ||
36528 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 36529 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36530 | case $ac_file in |
36531 | - | *:- | *:-:* ) # input from stdin | |
36532 | cat >$tmp/stdin | |
36533 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36534 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36535 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36536 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36537 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
36538 | esac |
36539 | ||
e6cc62c6 VS |
36540 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
36541 | echo "$as_me: creating $ac_file" >&6;} | |
36542 | ||
36543 | # First look for the input files in the build tree, otherwise in the | |
36544 | # src tree. | |
36545 | ac_file_inputs=`IFS=: | |
36546 | for f in $ac_file_in; do | |
36547 | case $f in | |
36548 | -) echo $tmp/stdin ;; | |
36549 | [\\/$]*) | |
36550 | # Absolute (can't be DOS-style, as IFS=:) | |
36551 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36552 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36553 | { (exit 1); exit 1; }; } | |
36554 | echo $f;; | |
36555 | *) # Relative | |
36556 | if test -f "$f"; then | |
36557 | # Build tree | |
36558 | echo $f | |
36559 | elif test -f "$srcdir/$f"; then | |
36560 | # Source tree | |
36561 | echo $srcdir/$f | |
36562 | else | |
36563 | # /dev/null tree | |
36564 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36565 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36566 | { (exit 1); exit 1; }; } | |
36567 | fi;; | |
36568 | esac | |
36569 | done` || { (exit 1); exit 1; } | |
36570 | # Remove the trailing spaces. | |
36571 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
36572 | ||
36573 | _ACEOF | |
36574 | ||
36575 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
36576 | # `conftest.undefs', that substitutes the proper values into | |
36577 | # config.h.in to produce config.h. The first handles `#define' | |
36578 | # templates, and the second `#undef' templates. | |
36579 | # And first: Protect against being on the right side of a sed subst in | |
36580 | # config.status. Protect against being in an unquoted here document | |
36581 | # in config.status. | |
36582 | rm -f conftest.defines conftest.undefs | |
36583 | # Using a here document instead of a string reduces the quoting nightmare. | |
36584 | # Putting comments in sed scripts is not portable. | |
36585 | # | |
36586 | # `end' is used to avoid that the second main sed command (meant for | |
36587 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
36588 | # See the Autoconf documentation for `clear'. | |
36589 | cat >confdef2sed.sed <<\_ACEOF | |
36590 | s/[\\&,]/\\&/g | |
36591 | s,[\\$`],\\&,g | |
36592 | t clear | |
36593 | : clear | |
36594 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
36595 | t end | |
36596 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
36597 | : end | |
36598 | _ACEOF | |
36599 | # If some macros were called several times there might be several times | |
36600 | # the same #defines, which is useless. Nevertheless, we may not want to | |
36601 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
36602 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
36603 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
36604 | rm -f confdef2sed.sed | |
10f2d63a VZ |
36605 | |
36606 | # This sed command replaces #undef with comments. This is necessary, for | |
36607 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
36608 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
36609 | cat >>conftest.undefs <<\_ACEOF |
36610 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
36611 | _ACEOF | |
36612 | ||
36613 | # Break up conftest.defines because some shells have a limit on the size | |
36614 | # of here documents, and old seds have small limits too (100 cmds). | |
36615 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
36616 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
36617 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
36618 | echo ' :' >>$CONFIG_STATUS | |
36619 | rm -f conftest.tail | |
36620 | while grep . conftest.defines >/dev/null | |
36621 | do | |
36622 | # Write a limited-size here document to $tmp/defines.sed. | |
36623 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
36624 | # Speed up: don't consider the non `#define' lines. | |
36625 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
36626 | # Work around the forget-to-reset-the-flag bug. | |
36627 | echo 't clr' >>$CONFIG_STATUS | |
36628 | echo ': clr' >>$CONFIG_STATUS | |
36629 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
36630 | echo 'CEOF | |
36631 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
36632 | rm -f $tmp/in | |
36633 | mv $tmp/out $tmp/in | |
36634 | ' >>$CONFIG_STATUS | |
36635 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
36636 | rm -f conftest.defines | |
36637 | mv conftest.tail conftest.defines | |
36638 | done | |
36639 | rm -f conftest.defines | |
36640 | echo ' fi # grep' >>$CONFIG_STATUS | |
36641 | echo >>$CONFIG_STATUS | |
10f2d63a | 36642 | |
e6cc62c6 VS |
36643 | # Break up conftest.undefs because some shells have a limit on the size |
36644 | # of here documents, and old seds have small limits too (100 cmds). | |
36645 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 36646 | rm -f conftest.tail |
e6cc62c6 | 36647 | while grep . conftest.undefs >/dev/null |
10f2d63a | 36648 | do |
e6cc62c6 VS |
36649 | # Write a limited-size here document to $tmp/undefs.sed. |
36650 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
36651 | # Speed up: don't consider the non `#undef' | |
36652 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
36653 | # Work around the forget-to-reset-the-flag bug. | |
36654 | echo 't clr' >>$CONFIG_STATUS | |
36655 | echo ': clr' >>$CONFIG_STATUS | |
36656 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 36657 | echo 'CEOF |
e6cc62c6 VS |
36658 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
36659 | rm -f $tmp/in | |
36660 | mv $tmp/out $tmp/in | |
36661 | ' >>$CONFIG_STATUS | |
36662 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
36663 | rm -f conftest.undefs | |
36664 | mv conftest.tail conftest.undefs | |
10f2d63a | 36665 | done |
e6cc62c6 VS |
36666 | rm -f conftest.undefs |
36667 | ||
36668 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36669 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36670 | # use $as_me), people would be surprised to read: | |
36671 | # /* config.h. Generated by config.status. */ | |
36672 | if test x"$ac_file" = x-; then | |
36673 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 36674 | else |
e6cc62c6 | 36675 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 36676 | fi |
e6cc62c6 VS |
36677 | cat $tmp/in >>$tmp/config.h |
36678 | rm -f $tmp/in | |
36679 | if test x"$ac_file" != x-; then | |
36680 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
36681 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
36682 | echo "$as_me: $ac_file is unchanged" >&6;} | |
36683 | else | |
36684 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36685 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36686 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36687 | X"$ac_file" : 'X\(//\)$' \| \ | |
36688 | X"$ac_file" : 'X\(/\)' \| \ | |
36689 | . : '\(.\)' 2>/dev/null || | |
36690 | echo X"$ac_file" | | |
36691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36692 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36693 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36694 | /^X\(\/\).*/{ s//\1/; q; } | |
36695 | s/.*/./; q'` | |
36696 | { if $as_mkdir_p; then | |
36697 | mkdir -p "$ac_dir" | |
36698 | else | |
36699 | as_dir="$ac_dir" | |
36700 | as_dirs= | |
36701 | while test ! -d "$as_dir"; do | |
36702 | as_dirs="$as_dir $as_dirs" | |
36703 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36704 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36705 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36706 | X"$as_dir" : 'X\(//\)$' \| \ | |
36707 | X"$as_dir" : 'X\(/\)' \| \ | |
36708 | . : '\(.\)' 2>/dev/null || | |
36709 | echo X"$as_dir" | | |
36710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36711 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36712 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36713 | /^X\(\/\).*/{ s//\1/; q; } | |
36714 | s/.*/./; q'` | |
36715 | done | |
36716 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36717 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36718 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36719 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36720 | |
e6cc62c6 VS |
36721 | rm -f $ac_file |
36722 | mv $tmp/config.h $ac_file | |
36723 | fi | |
36724 | else | |
36725 | cat $tmp/config.h | |
36726 | rm -f $tmp/config.h | |
36727 | fi | |
36728 | done | |
36729 | _ACEOF | |
36730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36731 | |
e6cc62c6 VS |
36732 | # |
36733 | # CONFIG_COMMANDS section. | |
36734 | # | |
36735 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36736 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36737 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36738 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36739 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36740 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36741 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36742 | X"$ac_dest" : 'X\(/\)' \| \ | |
36743 | . : '\(.\)' 2>/dev/null || | |
36744 | echo X"$ac_dest" | | |
36745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36746 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36747 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36748 | /^X\(\/\).*/{ s//\1/; q; } | |
36749 | s/.*/./; q'` | |
36750 | ac_builddir=. | |
36751 | ||
36752 | if test "$ac_dir" != .; then | |
36753 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36754 | # A "../" for each directory in $ac_dir_suffix. | |
36755 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36756 | else | |
36757 | ac_dir_suffix= ac_top_builddir= | |
36758 | fi | |
36759 | ||
36760 | case $srcdir in | |
36761 | .) # No --srcdir option. We are building in place. | |
36762 | ac_srcdir=. | |
36763 | if test -z "$ac_top_builddir"; then | |
36764 | ac_top_srcdir=. | |
36765 | else | |
36766 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36767 | fi ;; | |
36768 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36769 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36770 | ac_top_srcdir=$srcdir ;; | |
36771 | *) # Relative path. | |
36772 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36773 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36774 | esac | |
36775 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36776 | # absolute. | |
36777 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36778 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36779 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36780 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36781 | ||
36782 | ||
36783 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36784 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36785 | case $ac_dest in | |
36786 | default ) | |
652d930d | 36787 | if test ! -h wx-config; then |
991a5759 | 36788 | chmod +x wx-config |
3a922bb4 RL |
36789 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36790 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36791 | fi |
665bbe97 | 36792 | |
00cf1208 RR |
36793 | if test ! -d lib; then |
36794 | mkdir lib | |
36795 | fi | |
36796 | if test ! -d lib/wx; then | |
36797 | mkdir lib/wx | |
36798 | fi | |
36799 | if test ! -d lib/wx/include; then | |
36800 | mkdir lib/wx/include | |
36801 | fi | |
3a922bb4 RL |
36802 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36803 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36804 | fi |
3a922bb4 RL |
36805 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36806 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36807 | fi |
36808 | if test -f setup.h; then | |
3a922bb4 | 36809 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36810 | fi |
e6cc62c6 VS |
36811 | ;; |
36812 | esac | |
36813 | done | |
36814 | _ACEOF | |
2224580a | 36815 | |
e6cc62c6 | 36816 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36817 | |
e6cc62c6 VS |
36818 | { (exit 0); exit 0; } |
36819 | _ACEOF | |
36820 | chmod +x $CONFIG_STATUS | |
36821 | ac_clean_files=$ac_clean_files_save | |
36822 | ||
36823 | ||
36824 | # configure is writing to config.log, and then calls config.status. | |
36825 | # config.status does its own redirection, appending to config.log. | |
36826 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36827 | # by configure, so config.status won't be able to write to it; its | |
36828 | # output is simply discarded. So we exec the FD to /dev/null, | |
36829 | # effectively closing config.log, so it can be properly (re)opened and | |
36830 | # appended to by config.status. When coming back to configure, we | |
36831 | # need to make the FD available again. | |
36832 | if test "$no_create" != yes; then | |
36833 | ac_cs_success=: | |
36834 | ac_config_status_args= | |
36835 | test "$silent" = yes && | |
36836 | ac_config_status_args="$ac_config_status_args --quiet" | |
36837 | exec 5>/dev/null | |
36838 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36839 | exec 5>>config.log | |
36840 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36841 | # would make configure fail if this is the last instruction. | |
36842 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36843 | fi |
36844 | ||
672abd7a VS |
36845 | # |
36846 | # CONFIG_SUBDIRS section. | |
36847 | # | |
36848 | if test "$no_recursion" != yes; then | |
36849 | ||
36850 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
36851 | ac_sub_configure_args= | |
36852 | ac_prev= | |
36853 | for ac_arg in $ac_configure_args; do | |
36854 | if test -n "$ac_prev"; then | |
36855 | ac_prev= | |
36856 | continue | |
36857 | fi | |
36858 | case $ac_arg in | |
36859 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
36860 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
36861 | ac_prev=cache_file ;; | |
36862 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
36863 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
36864 | | --c=*) | |
36865 | ;; | |
36866 | --config-cache | -C) | |
36867 | ;; | |
36868 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
36869 | ac_prev=srcdir ;; | |
36870 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
36871 | ;; | |
36872 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
36873 | ac_prev=prefix ;; | |
36874 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
36875 | ;; | |
36876 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
36877 | esac | |
36878 | done | |
36879 | ||
36880 | # Always prepend --prefix to ensure using the same prefix | |
36881 | # in subdir configurations. | |
36882 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
36883 | ||
36884 | ac_popdir=`pwd` | |
36885 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
36886 | ||
36887 | # Do not complain, so a configure script can configure whichever | |
36888 | # parts of a large source tree are present. | |
36889 | test -d $srcdir/$ac_dir || continue | |
36890 | ||
36891 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
36892 | echo "$as_me: configuring in $ac_dir" >&6;} | |
36893 | { if $as_mkdir_p; then | |
36894 | mkdir -p "$ac_dir" | |
36895 | else | |
36896 | as_dir="$ac_dir" | |
36897 | as_dirs= | |
36898 | while test ! -d "$as_dir"; do | |
36899 | as_dirs="$as_dir $as_dirs" | |
36900 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36901 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36902 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36903 | X"$as_dir" : 'X\(//\)$' \| \ | |
36904 | X"$as_dir" : 'X\(/\)' \| \ | |
36905 | . : '\(.\)' 2>/dev/null || | |
36906 | echo X"$as_dir" | | |
36907 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36908 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36909 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36910 | /^X\(\/\).*/{ s//\1/; q; } | |
36911 | s/.*/./; q'` | |
36912 | done | |
36913 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36914 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36915 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36916 | { (exit 1); exit 1; }; }; } | |
36917 | ||
36918 | ac_builddir=. | |
36919 | ||
36920 | if test "$ac_dir" != .; then | |
36921 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36922 | # A "../" for each directory in $ac_dir_suffix. | |
36923 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36924 | else | |
36925 | ac_dir_suffix= ac_top_builddir= | |
36926 | fi | |
36927 | ||
36928 | case $srcdir in | |
36929 | .) # No --srcdir option. We are building in place. | |
36930 | ac_srcdir=. | |
36931 | if test -z "$ac_top_builddir"; then | |
36932 | ac_top_srcdir=. | |
36933 | else | |
36934 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36935 | fi ;; | |
36936 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36937 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36938 | ac_top_srcdir=$srcdir ;; | |
36939 | *) # Relative path. | |
36940 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36941 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36942 | esac | |
36943 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36944 | # absolute. | |
36945 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36946 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36947 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36948 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36949 | ||
36950 | ||
36951 | cd $ac_dir | |
36952 | ||
36953 | # Check for guested configure; otherwise get Cygnus style configure. | |
36954 | if test -f $ac_srcdir/configure.gnu; then | |
36955 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
36956 | elif test -f $ac_srcdir/configure; then | |
36957 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
36958 | elif test -f $ac_srcdir/configure.in; then | |
36959 | ac_sub_configure=$ac_configure | |
36960 | else | |
36961 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
36962 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
36963 | ac_sub_configure= | |
36964 | fi | |
36965 | ||
36966 | # The recursion is here. | |
36967 | if test -n "$ac_sub_configure"; then | |
36968 | # Make the cache file name correct relative to the subdirectory. | |
36969 | case $cache_file in | |
36970 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
36971 | *) # Relative path. | |
36972 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
36973 | esac | |
36974 | ||
36975 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
36976 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
36977 | # The eval makes quoting arguments work. | |
36978 | eval $ac_sub_configure $ac_sub_configure_args \ | |
36979 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
36980 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
36981 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
36982 | { (exit 1); exit 1; }; } | |
36983 | fi | |
36984 | ||
36985 | cd $ac_popdir | |
36986 | done | |
36987 | fi | |
36988 | ||
8284b0c5 | 36989 | |
2b5f62a0 VZ |
36990 | echo |
36991 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36992 | echo "" | |
36993 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 36994 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
36995 | |
36996 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36997 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36998 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36999 | ||
0c98a14e | 37000 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
37001 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
37002 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 37003 | |
2b5f62a0 VZ |
37004 | echo " Which libraries should wxWindows use?" |
37005 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
37006 | echo " png ${wxUSE_LIBPNG-none}" | |
37007 | echo " regex ${wxUSE_REGEX}" | |
37008 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
37009 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 37010 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 37011 | echo " expat ${wxUSE_EXPAT}" |
2b5f62a0 VZ |
37012 | |
37013 | echo "" | |
37014 |